1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libranlip 1.0.
4#
5# Report bugs to <gleb@deakin.edu.au esteban@v7w.com>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='libranlip'
425PACKAGE_TARNAME='libranlip'
426PACKAGE_VERSION='1.0'
427PACKAGE_STRING='libranlip 1.0'
428PACKAGE_BUGREPORT='gleb@deakin.edu.au esteban@v7w.com'
429
430ac_unique_file="src/ranlipdist.h"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS 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 libranlip 1.0 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_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of libranlip 1.0:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --enable-shared[=PKGS]
1031                          build shared libraries [default=yes]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=yes]
1034  --enable-fast-install[=PKGS]
1035                          optimize for fast installation [default=yes]
1036  --disable-dependency-tracking Speeds up one-time builds
1037  --enable-dependency-tracking  Do not reject slow dependency extractors
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044  --with-pic              try to use only PIC/non-PIC objects [default=use
1045                          both]
1046  --with-tags[=TAGS]
1047                          include additional configurations [automatic]
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CPP         C preprocessor
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  CXXCPP      C++ preprocessor
1060  F77         Fortran 77 compiler command
1061  FFLAGS      Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066Report bugs to <gleb@deakin.edu.au esteban@v7w.com>.
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071  # If there are subdirs, report their specific --help.
1072  ac_popdir=`pwd`
1073  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074    test -d $ac_dir || continue
1075    ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079  # A "../" for each directory in $ac_dir_suffix.
1080  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082  ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086  .)  # No --srcdir option.  We are building in place.
1087    ac_srcdir=.
1088    if test -z "$ac_top_builddir"; then
1089       ac_top_srcdir=.
1090    else
1091       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092    fi ;;
1093  [\\/]* | ?:[\\/]* )  # Absolute path.
1094    ac_srcdir=$srcdir$ac_dir_suffix;
1095    ac_top_srcdir=$srcdir ;;
1096  *) # Relative path.
1097    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
1100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106  case "$ac_dir" in
1107  .) ac_abs_builddir=`pwd`;;
1108  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110  esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115  case ${ac_top_builddir}. in
1116  .) ac_abs_top_builddir=$ac_abs_builddir;;
1117  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119  esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124  case $ac_srcdir in
1125  .) ac_abs_srcdir=$ac_abs_builddir;;
1126  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128  esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133  case $ac_top_srcdir in
1134  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137  esac;;
1138esac
1139
1140    cd $ac_dir
1141    # Check for guested configure; otherwise get Cygnus style configure.
1142    if test -f $ac_srcdir/configure.gnu; then
1143      echo
1144      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145    elif test -f $ac_srcdir/configure; then
1146      echo
1147      $SHELL $ac_srcdir/configure  --help=recursive
1148    elif test -f $ac_srcdir/configure.ac ||
1149	   test -f $ac_srcdir/configure.in; then
1150      echo
1151      $ac_configure --help
1152    else
1153      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154    fi
1155    cd "$ac_popdir"
1156  done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161  cat <<\_ACEOF
1162libranlip configure 1.0
1163generated by GNU Autoconf 2.59
1164
1165Copyright (C) 2003 Free Software Foundation, Inc.
1166This configure script is free software; the Free Software Foundation
1167gives unlimited permission to copy, distribute and modify it.
1168_ACEOF
1169  exit 0
1170fi
1171exec 5>config.log
1172cat >&5 <<_ACEOF
1173This file contains any messages produced by compilers while
1174running configure, to aid debugging if configure makes a mistake.
1175
1176It was created by libranlip $as_me 1.0, which was
1177generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179  $ $0 $@
1180
1181_ACEOF
1182{
1183cat <<_ASUNAME
1184## --------- ##
1185## Platform. ##
1186## --------- ##
1187
1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205_ASUNAME
1206
1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208for as_dir in $PATH
1209do
1210  IFS=$as_save_IFS
1211  test -z "$as_dir" && as_dir=.
1212  echo "PATH: $as_dir"
1213done
1214
1215} >&5
1216
1217cat >&5 <<_ACEOF
1218
1219
1220## ----------- ##
1221## Core tests. ##
1222## ----------- ##
1223
1224_ACEOF
1225
1226
1227# Keep a trace of the command line.
1228# Strip out --no-create and --no-recursion so they do not pile up.
1229# Strip out --silent because we don't want to record it for future runs.
1230# Also quote any args containing shell meta-characters.
1231# Make two passes to allow for proper duplicate-argument suppression.
1232ac_configure_args=
1233ac_configure_args0=
1234ac_configure_args1=
1235ac_sep=
1236ac_must_keep_next=false
1237for ac_pass in 1 2
1238do
1239  for ac_arg
1240  do
1241    case $ac_arg in
1242    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244    | -silent | --silent | --silen | --sile | --sil)
1245      continue ;;
1246    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248    esac
1249    case $ac_pass in
1250    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251    2)
1252      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253      if test $ac_must_keep_next = true; then
1254	ac_must_keep_next=false # Got value, back to normal.
1255      else
1256	case $ac_arg in
1257	  *=* | --config-cache | -C | -disable-* | --disable-* \
1258	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260	  | -with-* | --with-* | -without-* | --without-* | --x)
1261	    case "$ac_configure_args0 " in
1262	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263	    esac
1264	    ;;
1265	  -* ) ac_must_keep_next=true ;;
1266	esac
1267      fi
1268      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269      # Get rid of the leading space.
1270      ac_sep=" "
1271      ;;
1272    esac
1273  done
1274done
1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278# When interrupted or exit'd, cleanup temporary files, and complete
1279# config.log.  We remove comments because anyway the quotes in there
1280# would cause problems or look ugly.
1281# WARNING: Be sure not to use single quotes in there, as some shells,
1282# such as our DU 5.0 friend, will then `close' the trap.
1283trap 'exit_status=$?
1284  # Save into config.log some information that might help in debugging.
1285  {
1286    echo
1287
1288    cat <<\_ASBOX
1289## ---------------- ##
1290## Cache variables. ##
1291## ---------------- ##
1292_ASBOX
1293    echo
1294    # The following way of writing the cache mishandles newlines in values,
1295{
1296  (set) 2>&1 |
1297    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298    *ac_space=\ *)
1299      sed -n \
1300	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302      ;;
1303    *)
1304      sed -n \
1305	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306      ;;
1307    esac;
1308}
1309    echo
1310
1311    cat <<\_ASBOX
1312## ----------------- ##
1313## Output variables. ##
1314## ----------------- ##
1315_ASBOX
1316    echo
1317    for ac_var in $ac_subst_vars
1318    do
1319      eval ac_val=$`echo $ac_var`
1320      echo "$ac_var='"'"'$ac_val'"'"'"
1321    done | sort
1322    echo
1323
1324    if test -n "$ac_subst_files"; then
1325      cat <<\_ASBOX
1326## ------------- ##
1327## Output files. ##
1328## ------------- ##
1329_ASBOX
1330      echo
1331      for ac_var in $ac_subst_files
1332      do
1333	eval ac_val=$`echo $ac_var`
1334	echo "$ac_var='"'"'$ac_val'"'"'"
1335      done | sort
1336      echo
1337    fi
1338
1339    if test -s confdefs.h; then
1340      cat <<\_ASBOX
1341## ----------- ##
1342## confdefs.h. ##
1343## ----------- ##
1344_ASBOX
1345      echo
1346      sed "/^$/d" confdefs.h | sort
1347      echo
1348    fi
1349    test "$ac_signal" != 0 &&
1350      echo "$as_me: caught signal $ac_signal"
1351    echo "$as_me: exit $exit_status"
1352  } >&5
1353  rm -f core *.core &&
1354  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355    exit $exit_status
1356     ' 0
1357for ac_signal in 1 2 13 15; do
1358  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359done
1360ac_signal=0
1361
1362# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363rm -rf conftest* confdefs.h
1364# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365echo >confdefs.h
1366
1367# Predefined preprocessor variables.
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_NAME "$PACKAGE_NAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_VERSION "$PACKAGE_VERSION"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_STRING "$PACKAGE_STRING"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391_ACEOF
1392
1393
1394# Let the site file select an alternate cache file if it wants to.
1395# Prefer explicitly selected file to automatically selected ones.
1396if test -z "$CONFIG_SITE"; then
1397  if test "x$prefix" != xNONE; then
1398    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399  else
1400    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401  fi
1402fi
1403for ac_site_file in $CONFIG_SITE; do
1404  if test -r "$ac_site_file"; then
1405    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406echo "$as_me: loading site script $ac_site_file" >&6;}
1407    sed 's/^/| /' "$ac_site_file" >&5
1408    . "$ac_site_file"
1409  fi
1410done
1411
1412if test -r "$cache_file"; then
1413  # Some versions of bash will fail to source /dev/null (special
1414  # files actually), so we avoid doing that.
1415  if test -f "$cache_file"; then
1416    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417echo "$as_me: loading cache $cache_file" >&6;}
1418    case $cache_file in
1419      [\\/]* | ?:[\\/]* ) . $cache_file;;
1420      *)                      . ./$cache_file;;
1421    esac
1422  fi
1423else
1424  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425echo "$as_me: creating cache $cache_file" >&6;}
1426  >$cache_file
1427fi
1428
1429# Check that the precious variables saved in the cache have kept the same
1430# value.
1431ac_cache_corrupted=false
1432for ac_var in `(set) 2>&1 |
1433	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435  eval ac_new_set=\$ac_env_${ac_var}_set
1436  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437  eval ac_new_val="\$ac_env_${ac_var}_value"
1438  case $ac_old_set,$ac_new_set in
1439    set,)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,set)
1444      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446      ac_cache_corrupted=: ;;
1447    ,);;
1448    *)
1449      if test "x$ac_old_val" != "x$ac_new_val"; then
1450	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453echo "$as_me:   former value:  $ac_old_val" >&2;}
1454	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455echo "$as_me:   current value: $ac_new_val" >&2;}
1456	ac_cache_corrupted=:
1457      fi;;
1458  esac
1459  # Pass precious variables to config.status.
1460  if test "$ac_new_set" = set; then
1461    case $ac_new_val in
1462    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464    *) ac_arg=$ac_var=$ac_new_val ;;
1465    esac
1466    case " $ac_configure_args " in
1467      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469    esac
1470  fi
1471done
1472if $ac_cache_corrupted; then
1473  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
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
1512am__api_version="1.7"
1513ac_aux_dir=
1514for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1515  if test -f $ac_dir/install-sh; then
1516    ac_aux_dir=$ac_dir
1517    ac_install_sh="$ac_aux_dir/install-sh -c"
1518    break
1519  elif test -f $ac_dir/install.sh; then
1520    ac_aux_dir=$ac_dir
1521    ac_install_sh="$ac_aux_dir/install.sh -c"
1522    break
1523  elif test -f $ac_dir/shtool; then
1524    ac_aux_dir=$ac_dir
1525    ac_install_sh="$ac_aux_dir/shtool install -c"
1526    break
1527  fi
1528done
1529if test -z "$ac_aux_dir"; then
1530  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1531echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1532   { (exit 1); exit 1; }; }
1533fi
1534ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1535ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1536ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1537
1538# Find a good install program.  We prefer a C program (faster),
1539# so one script is as good as another.  But avoid the broken or
1540# incompatible versions:
1541# SysV /etc/install, /usr/sbin/install
1542# SunOS /usr/etc/install
1543# IRIX /sbin/install
1544# AIX /bin/install
1545# AmigaOS /C/install, which installs bootblocks on floppy discs
1546# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1547# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1548# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1549# OS/2's system install, which has a completely different semantic
1550# ./install, which can be erroneously created by make from ./install.sh.
1551echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1552echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1553if test -z "$INSTALL"; then
1554if test "${ac_cv_path_install+set}" = set; then
1555  echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558for as_dir in $PATH
1559do
1560  IFS=$as_save_IFS
1561  test -z "$as_dir" && as_dir=.
1562  # Account for people who put trailing slashes in PATH elements.
1563case $as_dir/ in
1564  ./ | .// | /cC/* | \
1565  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1566  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1567  /usr/ucb/* ) ;;
1568  *)
1569    # OSF1 and SCO ODT 3.0 have their own names for install.
1570    # Don't use installbsd from OSF since it installs stuff as root
1571    # by default.
1572    for ac_prog in ginstall scoinst install; do
1573      for ac_exec_ext in '' $ac_executable_extensions; do
1574	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1575	  if test $ac_prog = install &&
1576	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577	    # AIX install.  It has an incompatible calling convention.
1578	    :
1579	  elif test $ac_prog = install &&
1580	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581	    # program-specific install script used by HP pwplus--don't use.
1582	    :
1583	  else
1584	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1585	    break 3
1586	  fi
1587	fi
1588      done
1589    done
1590    ;;
1591esac
1592done
1593
1594
1595fi
1596  if test "${ac_cv_path_install+set}" = set; then
1597    INSTALL=$ac_cv_path_install
1598  else
1599    # As a last resort, use the slow shell script.  We don't cache a
1600    # path for INSTALL within a source directory, because that will
1601    # break other packages using the cache if that directory is
1602    # removed, or if the path is relative.
1603    INSTALL=$ac_install_sh
1604  fi
1605fi
1606echo "$as_me:$LINENO: result: $INSTALL" >&5
1607echo "${ECHO_T}$INSTALL" >&6
1608
1609# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1610# It thinks the first close brace ends the variable substitution.
1611test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1612
1613test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1614
1615test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1616
1617echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1618echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1619# Just in case
1620sleep 1
1621echo timestamp > conftest.file
1622# Do `set' in a subshell so we don't clobber the current shell's
1623# arguments.  Must try -L first in case configure is actually a
1624# symlink; some systems play weird games with the mod time of symlinks
1625# (eg FreeBSD returns the mod time of the symlink's containing
1626# directory).
1627if (
1628   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1629   if test "$*" = "X"; then
1630      # -L didn't work.
1631      set X `ls -t $srcdir/configure conftest.file`
1632   fi
1633   rm -f conftest.file
1634   if test "$*" != "X $srcdir/configure conftest.file" \
1635      && test "$*" != "X conftest.file $srcdir/configure"; then
1636
1637      # If neither matched, then we have a broken ls.  This can happen
1638      # if, for instance, CONFIG_SHELL is bash and it inherits a
1639      # broken ls alias from the environment.  This has actually
1640      # happened.  Such a system could not be considered "sane".
1641      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1642alias in your environment" >&5
1643echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1644alias in your environment" >&2;}
1645   { (exit 1); exit 1; }; }
1646   fi
1647
1648   test "$2" = conftest.file
1649   )
1650then
1651   # Ok.
1652   :
1653else
1654   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1655Check your system clock" >&5
1656echo "$as_me: error: newly created file is older than distributed files!
1657Check your system clock" >&2;}
1658   { (exit 1); exit 1; }; }
1659fi
1660echo "$as_me:$LINENO: result: yes" >&5
1661echo "${ECHO_T}yes" >&6
1662test "$program_prefix" != NONE &&
1663  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1664# Use a double $ so make ignores it.
1665test "$program_suffix" != NONE &&
1666  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1667# Double any \ or $.  echo might interpret backslashes.
1668# By default was `s,x,x', remove it if useless.
1669cat <<\_ACEOF >conftest.sed
1670s/[\\$]/&&/g;s/;s,x,x,$//
1671_ACEOF
1672program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1673rm conftest.sed
1674
1675
1676# expand $ac_aux_dir to an absolute path
1677am_aux_dir=`cd $ac_aux_dir && pwd`
1678
1679test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1680# Use eval to expand $SHELL
1681if eval "$MISSING --run true"; then
1682  am_missing_run="$MISSING --run "
1683else
1684  am_missing_run=
1685  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1686echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1687fi
1688
1689for ac_prog in gawk mawk nawk awk
1690do
1691  # Extract the first word of "$ac_prog", so it can be a program name with args.
1692set dummy $ac_prog; ac_word=$2
1693echo "$as_me:$LINENO: checking for $ac_word" >&5
1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695if test "${ac_cv_prog_AWK+set}" = set; then
1696  echo $ECHO_N "(cached) $ECHO_C" >&6
1697else
1698  if test -n "$AWK"; then
1699  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1700else
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704  IFS=$as_save_IFS
1705  test -z "$as_dir" && as_dir=.
1706  for ac_exec_ext in '' $ac_executable_extensions; do
1707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708    ac_cv_prog_AWK="$ac_prog"
1709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710    break 2
1711  fi
1712done
1713done
1714
1715fi
1716fi
1717AWK=$ac_cv_prog_AWK
1718if test -n "$AWK"; then
1719  echo "$as_me:$LINENO: result: $AWK" >&5
1720echo "${ECHO_T}$AWK" >&6
1721else
1722  echo "$as_me:$LINENO: result: no" >&5
1723echo "${ECHO_T}no" >&6
1724fi
1725
1726  test -n "$AWK" && break
1727done
1728
1729echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1730echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1731set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1732if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1733  echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735  cat >conftest.make <<\_ACEOF
1736all:
1737	@echo 'ac_maketemp="$(MAKE)"'
1738_ACEOF
1739# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1740eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1741if test -n "$ac_maketemp"; then
1742  eval ac_cv_prog_make_${ac_make}_set=yes
1743else
1744  eval ac_cv_prog_make_${ac_make}_set=no
1745fi
1746rm -f conftest.make
1747fi
1748if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1749  echo "$as_me:$LINENO: result: yes" >&5
1750echo "${ECHO_T}yes" >&6
1751  SET_MAKE=
1752else
1753  echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755  SET_MAKE="MAKE=${MAKE-make}"
1756fi
1757
1758rm -rf .tst 2>/dev/null
1759mkdir .tst 2>/dev/null
1760if test -d .tst; then
1761  am__leading_dot=.
1762else
1763  am__leading_dot=_
1764fi
1765rmdir .tst 2>/dev/null
1766
1767 # test to see if srcdir already configured
1768if test "`cd $srcdir && pwd`" != "`pwd`" &&
1769   test -f $srcdir/config.status; then
1770  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1771echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1772   { (exit 1); exit 1; }; }
1773fi
1774
1775# test whether we have cygpath
1776if test -z "$CYGPATH_W"; then
1777  if (cygpath --version) >/dev/null 2>/dev/null; then
1778    CYGPATH_W='cygpath -w'
1779  else
1780    CYGPATH_W=echo
1781  fi
1782fi
1783
1784
1785# Define the identity of the package.
1786 PACKAGE=libranlip
1787 VERSION=1.0
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE "$PACKAGE"
1792_ACEOF
1793
1794
1795cat >>confdefs.h <<_ACEOF
1796#define VERSION "$VERSION"
1797_ACEOF
1798
1799# Some tools Automake needs.
1800
1801ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1802
1803
1804AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1805
1806
1807AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1808
1809
1810AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1811
1812
1813MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1814
1815
1816AMTAR=${AMTAR-"${am_missing_run}tar"}
1817
1818install_sh=${install_sh-"$am_aux_dir/install-sh"}
1819
1820# Installed binaries are usually stripped using `strip' when the user
1821# run `make install-strip'.  However `strip' might not be the right
1822# tool to use in cross-compilation environments, therefore Automake
1823# will honor the `STRIP' environment variable to overrule this program.
1824if test "$cross_compiling" != no; then
1825  if test -n "$ac_tool_prefix"; then
1826  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1827set dummy ${ac_tool_prefix}strip; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_STRIP+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  if test -n "$STRIP"; then
1834  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  test -z "$as_dir" && as_dir=.
1841  for ac_exec_ext in '' $ac_executable_extensions; do
1842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845    break 2
1846  fi
1847done
1848done
1849
1850fi
1851fi
1852STRIP=$ac_cv_prog_STRIP
1853if test -n "$STRIP"; then
1854  echo "$as_me:$LINENO: result: $STRIP" >&5
1855echo "${ECHO_T}$STRIP" >&6
1856else
1857  echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861fi
1862if test -z "$ac_cv_prog_STRIP"; then
1863  ac_ct_STRIP=$STRIP
1864  # Extract the first word of "strip", so it can be a program name with args.
1865set dummy strip; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1869  echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871  if test -n "$ac_ct_STRIP"; then
1872  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877  IFS=$as_save_IFS
1878  test -z "$as_dir" && as_dir=.
1879  for ac_exec_ext in '' $ac_executable_extensions; do
1880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881    ac_cv_prog_ac_ct_STRIP="strip"
1882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883    break 2
1884  fi
1885done
1886done
1887
1888  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1889fi
1890fi
1891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1892if test -n "$ac_ct_STRIP"; then
1893  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1894echo "${ECHO_T}$ac_ct_STRIP" >&6
1895else
1896  echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900  STRIP=$ac_ct_STRIP
1901else
1902  STRIP="$ac_cv_prog_STRIP"
1903fi
1904
1905fi
1906INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1907
1908# We need awk for the "check" target.  The system "awk" is bad on
1909# some platforms.
1910
1911
1912
1913
1914
1915          ac_config_headers="$ac_config_headers config.h"
1916
1917
1918#get libtool going
1919# Check whether --enable-shared or --disable-shared was given.
1920if test "${enable_shared+set}" = set; then
1921  enableval="$enable_shared"
1922  p=${PACKAGE-default}
1923    case $enableval in
1924    yes) enable_shared=yes ;;
1925    no) enable_shared=no ;;
1926    *)
1927      enable_shared=no
1928      # Look at the argument we got.  We use all the common list separators.
1929      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1930      for pkg in $enableval; do
1931	IFS="$lt_save_ifs"
1932	if test "X$pkg" = "X$p"; then
1933	  enable_shared=yes
1934	fi
1935      done
1936      IFS="$lt_save_ifs"
1937      ;;
1938    esac
1939else
1940  enable_shared=yes
1941fi;
1942
1943# Check whether --enable-static or --disable-static was given.
1944if test "${enable_static+set}" = set; then
1945  enableval="$enable_static"
1946  p=${PACKAGE-default}
1947    case $enableval in
1948    yes) enable_static=yes ;;
1949    no) enable_static=no ;;
1950    *)
1951     enable_static=no
1952      # Look at the argument we got.  We use all the common list separators.
1953      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1954      for pkg in $enableval; do
1955	IFS="$lt_save_ifs"
1956	if test "X$pkg" = "X$p"; then
1957	  enable_static=yes
1958	fi
1959      done
1960      IFS="$lt_save_ifs"
1961      ;;
1962    esac
1963else
1964  enable_static=yes
1965fi;
1966
1967# Check whether --enable-fast-install or --disable-fast-install was given.
1968if test "${enable_fast_install+set}" = set; then
1969  enableval="$enable_fast_install"
1970  p=${PACKAGE-default}
1971    case $enableval in
1972    yes) enable_fast_install=yes ;;
1973    no) enable_fast_install=no ;;
1974    *)
1975      enable_fast_install=no
1976      # Look at the argument we got.  We use all the common list separators.
1977      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1978      for pkg in $enableval; do
1979	IFS="$lt_save_ifs"
1980	if test "X$pkg" = "X$p"; then
1981	  enable_fast_install=yes
1982	fi
1983      done
1984      IFS="$lt_save_ifs"
1985      ;;
1986    esac
1987else
1988  enable_fast_install=yes
1989fi;
1990
1991# Make sure we can run config.sub.
1992$ac_config_sub sun4 >/dev/null 2>&1 ||
1993  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1994echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1995   { (exit 1); exit 1; }; }
1996
1997echo "$as_me:$LINENO: checking build system type" >&5
1998echo $ECHO_N "checking build system type... $ECHO_C" >&6
1999if test "${ac_cv_build+set}" = set; then
2000  echo $ECHO_N "(cached) $ECHO_C" >&6
2001else
2002  ac_cv_build_alias=$build_alias
2003test -z "$ac_cv_build_alias" &&
2004  ac_cv_build_alias=`$ac_config_guess`
2005test -z "$ac_cv_build_alias" &&
2006  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2007echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2008   { (exit 1); exit 1; }; }
2009ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2010  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2011echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2012   { (exit 1); exit 1; }; }
2013
2014fi
2015echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2016echo "${ECHO_T}$ac_cv_build" >&6
2017build=$ac_cv_build
2018build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2019build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2020build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2021
2022
2023echo "$as_me:$LINENO: checking host system type" >&5
2024echo $ECHO_N "checking host system type... $ECHO_C" >&6
2025if test "${ac_cv_host+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  ac_cv_host_alias=$host_alias
2029test -z "$ac_cv_host_alias" &&
2030  ac_cv_host_alias=$ac_cv_build_alias
2031ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2032  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2033echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2034   { (exit 1); exit 1; }; }
2035
2036fi
2037echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2038echo "${ECHO_T}$ac_cv_host" >&6
2039host=$ac_cv_host
2040host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2041host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2042host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2043
2044
2045DEPDIR="${am__leading_dot}deps"
2046
2047          ac_config_commands="$ac_config_commands depfiles"
2048
2049
2050am_make=${MAKE-make}
2051cat > confinc << 'END'
2052am__doit:
2053	@echo done
2054.PHONY: am__doit
2055END
2056# If we don't find an include directive, just comment out the code.
2057echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2058echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2059am__include="#"
2060am__quote=
2061_am_result=none
2062# First try GNU make style include.
2063echo "include confinc" > confmf
2064# We grep out `Entering directory' and `Leaving directory'
2065# messages which can occur if `w' ends up in MAKEFLAGS.
2066# In particular we don't look at `^make:' because GNU make might
2067# be invoked under some other name (usually "gmake"), in which
2068# case it prints its new name instead of `make'.
2069if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2070   am__include=include
2071   am__quote=
2072   _am_result=GNU
2073fi
2074# Now try BSD make style include.
2075if test "$am__include" = "#"; then
2076   echo '.include "confinc"' > confmf
2077   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2078      am__include=.include
2079      am__quote="\""
2080      _am_result=BSD
2081   fi
2082fi
2083
2084
2085echo "$as_me:$LINENO: result: $_am_result" >&5
2086echo "${ECHO_T}$_am_result" >&6
2087rm -f confinc confmf
2088
2089# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2090if test "${enable_dependency_tracking+set}" = set; then
2091  enableval="$enable_dependency_tracking"
2092
2093fi;
2094if test "x$enable_dependency_tracking" != xno; then
2095  am_depcomp="$ac_aux_dir/depcomp"
2096  AMDEPBACKSLASH='\'
2097fi
2098
2099
2100if test "x$enable_dependency_tracking" != xno; then
2101  AMDEP_TRUE=
2102  AMDEP_FALSE='#'
2103else
2104  AMDEP_TRUE='#'
2105  AMDEP_FALSE=
2106fi
2107
2108
2109
2110ac_ext=c
2111ac_cpp='$CPP $CPPFLAGS'
2112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2114ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115if test -n "$ac_tool_prefix"; then
2116  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2117set dummy ${ac_tool_prefix}gcc; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_CC+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test -n "$CC"; then
2124  ac_cv_prog_CC="$CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  for ac_exec_ext in '' $ac_executable_extensions; do
2132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135    break 2
2136  fi
2137done
2138done
2139
2140fi
2141fi
2142CC=$ac_cv_prog_CC
2143if test -n "$CC"; then
2144  echo "$as_me:$LINENO: result: $CC" >&5
2145echo "${ECHO_T}$CC" >&6
2146else
2147  echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151fi
2152if test -z "$ac_cv_prog_CC"; then
2153  ac_ct_CC=$CC
2154  # Extract the first word of "gcc", so it can be a program name with args.
2155set dummy gcc; ac_word=$2
2156echo "$as_me:$LINENO: checking for $ac_word" >&5
2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159  echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161  if test -n "$ac_ct_CC"; then
2162  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163else
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167  IFS=$as_save_IFS
2168  test -z "$as_dir" && as_dir=.
2169  for ac_exec_ext in '' $ac_executable_extensions; do
2170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171    ac_cv_prog_ac_ct_CC="gcc"
2172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173    break 2
2174  fi
2175done
2176done
2177
2178fi
2179fi
2180ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181if test -n "$ac_ct_CC"; then
2182  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183echo "${ECHO_T}$ac_ct_CC" >&6
2184else
2185  echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6
2187fi
2188
2189  CC=$ac_ct_CC
2190else
2191  CC="$ac_cv_prog_CC"
2192fi
2193
2194if test -z "$CC"; then
2195  if test -n "$ac_tool_prefix"; then
2196  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2197set dummy ${ac_tool_prefix}cc; ac_word=$2
2198echo "$as_me:$LINENO: checking for $ac_word" >&5
2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200if test "${ac_cv_prog_CC+set}" = set; then
2201  echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203  if test -n "$CC"; then
2204  ac_cv_prog_CC="$CC" # Let the user override the test.
2205else
2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207for as_dir in $PATH
2208do
2209  IFS=$as_save_IFS
2210  test -z "$as_dir" && as_dir=.
2211  for ac_exec_ext in '' $ac_executable_extensions; do
2212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213    ac_cv_prog_CC="${ac_tool_prefix}cc"
2214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215    break 2
2216  fi
2217done
2218done
2219
2220fi
2221fi
2222CC=$ac_cv_prog_CC
2223if test -n "$CC"; then
2224  echo "$as_me:$LINENO: result: $CC" >&5
2225echo "${ECHO_T}$CC" >&6
2226else
2227  echo "$as_me:$LINENO: result: no" >&5
2228echo "${ECHO_T}no" >&6
2229fi
2230
2231fi
2232if test -z "$ac_cv_prog_CC"; then
2233  ac_ct_CC=$CC
2234  # Extract the first word of "cc", so it can be a program name with args.
2235set dummy cc; ac_word=$2
2236echo "$as_me:$LINENO: checking for $ac_word" >&5
2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2239  echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241  if test -n "$ac_ct_CC"; then
2242  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243else
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  test -z "$as_dir" && as_dir=.
2249  for ac_exec_ext in '' $ac_executable_extensions; do
2250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251    ac_cv_prog_ac_ct_CC="cc"
2252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253    break 2
2254  fi
2255done
2256done
2257
2258fi
2259fi
2260ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261if test -n "$ac_ct_CC"; then
2262  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263echo "${ECHO_T}$ac_ct_CC" >&6
2264else
2265  echo "$as_me:$LINENO: result: no" >&5
2266echo "${ECHO_T}no" >&6
2267fi
2268
2269  CC=$ac_ct_CC
2270else
2271  CC="$ac_cv_prog_CC"
2272fi
2273
2274fi
2275if test -z "$CC"; then
2276  # Extract the first word of "cc", so it can be a program name with args.
2277set dummy cc; ac_word=$2
2278echo "$as_me:$LINENO: checking for $ac_word" >&5
2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280if test "${ac_cv_prog_CC+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  if test -n "$CC"; then
2284  ac_cv_prog_CC="$CC" # Let the user override the test.
2285else
2286  ac_prog_rejected=no
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  for ac_exec_ext in '' $ac_executable_extensions; do
2293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2295       ac_prog_rejected=yes
2296       continue
2297     fi
2298    ac_cv_prog_CC="cc"
2299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300    break 2
2301  fi
2302done
2303done
2304
2305if test $ac_prog_rejected = yes; then
2306  # We found a bogon in the path, so make sure we never use it.
2307  set dummy $ac_cv_prog_CC
2308  shift
2309  if test $# != 0; then
2310    # We chose a different compiler from the bogus one.
2311    # However, it has the same basename, so the bogon will be chosen
2312    # first if we set CC to just the basename; use the full file name.
2313    shift
2314    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2315  fi
2316fi
2317fi
2318fi
2319CC=$ac_cv_prog_CC
2320if test -n "$CC"; then
2321  echo "$as_me:$LINENO: result: $CC" >&5
2322echo "${ECHO_T}$CC" >&6
2323else
2324  echo "$as_me:$LINENO: result: no" >&5
2325echo "${ECHO_T}no" >&6
2326fi
2327
2328fi
2329if test -z "$CC"; then
2330  if test -n "$ac_tool_prefix"; then
2331  for ac_prog in cl
2332  do
2333    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2335echo "$as_me:$LINENO: checking for $ac_word" >&5
2336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337if test "${ac_cv_prog_CC+set}" = set; then
2338  echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340  if test -n "$CC"; then
2341  ac_cv_prog_CC="$CC" # Let the user override the test.
2342else
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346  IFS=$as_save_IFS
2347  test -z "$as_dir" && as_dir=.
2348  for ac_exec_ext in '' $ac_executable_extensions; do
2349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352    break 2
2353  fi
2354done
2355done
2356
2357fi
2358fi
2359CC=$ac_cv_prog_CC
2360if test -n "$CC"; then
2361  echo "$as_me:$LINENO: result: $CC" >&5
2362echo "${ECHO_T}$CC" >&6
2363else
2364  echo "$as_me:$LINENO: result: no" >&5
2365echo "${ECHO_T}no" >&6
2366fi
2367
2368    test -n "$CC" && break
2369  done
2370fi
2371if test -z "$CC"; then
2372  ac_ct_CC=$CC
2373  for ac_prog in cl
2374do
2375  # Extract the first word of "$ac_prog", so it can be a program name with args.
2376set dummy $ac_prog; ac_word=$2
2377echo "$as_me:$LINENO: checking for $ac_word" >&5
2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380  echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382  if test -n "$ac_ct_CC"; then
2383  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388  IFS=$as_save_IFS
2389  test -z "$as_dir" && as_dir=.
2390  for ac_exec_ext in '' $ac_executable_extensions; do
2391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392    ac_cv_prog_ac_ct_CC="$ac_prog"
2393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394    break 2
2395  fi
2396done
2397done
2398
2399fi
2400fi
2401ac_ct_CC=$ac_cv_prog_ac_ct_CC
2402if test -n "$ac_ct_CC"; then
2403  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2404echo "${ECHO_T}$ac_ct_CC" >&6
2405else
2406  echo "$as_me:$LINENO: result: no" >&5
2407echo "${ECHO_T}no" >&6
2408fi
2409
2410  test -n "$ac_ct_CC" && break
2411done
2412
2413  CC=$ac_ct_CC
2414fi
2415
2416fi
2417
2418
2419test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: no acceptable C compiler found in \$PATH
2422See \`config.log' for more details." >&2;}
2423   { (exit 1); exit 1; }; }
2424
2425# Provide some information about the compiler.
2426echo "$as_me:$LINENO:" \
2427     "checking for C compiler version" >&5
2428ac_compiler=`set X $ac_compile; echo $2`
2429{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2430  (eval $ac_compiler --version </dev/null >&5) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }
2434{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2435  (eval $ac_compiler -v </dev/null >&5) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }
2439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2440  (eval $ac_compiler -V </dev/null >&5) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }
2444
2445cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h.  */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h.  */
2451
2452int
2453main ()
2454{
2455
2456  ;
2457  return 0;
2458}
2459_ACEOF
2460ac_clean_files_save=$ac_clean_files
2461ac_clean_files="$ac_clean_files a.out a.exe b.out"
2462# Try to create an executable without -o first, disregard a.out.
2463# It will help us diagnose broken compilers, and finding out an intuition
2464# of exeext.
2465echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2466echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2467ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2468if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2469  (eval $ac_link_default) 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; then
2473  # Find the output, starting from the most likely.  This scheme is
2474# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2475# resort.
2476
2477# Be careful to initialize this variable, since it used to be cached.
2478# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2479ac_cv_exeext=
2480# b.out is created by i960 compilers.
2481for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2482do
2483  test -f "$ac_file" || continue
2484  case $ac_file in
2485    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2486	;;
2487    conftest.$ac_ext )
2488	# This is the source file.
2489	;;
2490    [ab].out )
2491	# We found the default executable, but exeext='' is most
2492	# certainly right.
2493	break;;
2494    *.* )
2495	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496	# FIXME: I believe we export ac_cv_exeext for Libtool,
2497	# but it would be cool to find out if it's true.  Does anybody
2498	# maintain Libtool? --akim.
2499	export ac_cv_exeext
2500	break;;
2501    * )
2502	break;;
2503  esac
2504done
2505else
2506  echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2510See \`config.log' for more details." >&5
2511echo "$as_me: error: C compiler cannot create executables
2512See \`config.log' for more details." >&2;}
2513   { (exit 77); exit 77; }; }
2514fi
2515
2516ac_exeext=$ac_cv_exeext
2517echo "$as_me:$LINENO: result: $ac_file" >&5
2518echo "${ECHO_T}$ac_file" >&6
2519
2520# Check the compiler produces executables we can run.  If not, either
2521# the compiler is broken, or we cross compile.
2522echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2523echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2524# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2525# If not cross compiling, check that we can run a simple program.
2526if test "$cross_compiling" != yes; then
2527  if { ac_try='./$ac_file'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533    cross_compiling=no
2534  else
2535    if test "$cross_compiling" = maybe; then
2536	cross_compiling=yes
2537    else
2538	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2539If you meant to cross compile, use \`--host'.
2540See \`config.log' for more details." >&5
2541echo "$as_me: error: cannot run C compiled programs.
2542If you meant to cross compile, use \`--host'.
2543See \`config.log' for more details." >&2;}
2544   { (exit 1); exit 1; }; }
2545    fi
2546  fi
2547fi
2548echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550
2551rm -f a.out a.exe conftest$ac_cv_exeext b.out
2552ac_clean_files=$ac_clean_files_save
2553# Check the compiler produces executables we can run.  If not, either
2554# the compiler is broken, or we cross compile.
2555echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2556echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2557echo "$as_me:$LINENO: result: $cross_compiling" >&5
2558echo "${ECHO_T}$cross_compiling" >&6
2559
2560echo "$as_me:$LINENO: checking for suffix of executables" >&5
2561echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2563  (eval $ac_link) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; then
2567  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2568# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2569# work properly (i.e., refer to `conftest.exe'), while it won't with
2570# `rm'.
2571for ac_file in conftest.exe conftest conftest.*; do
2572  test -f "$ac_file" || continue
2573  case $ac_file in
2574    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2575    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2576	  export ac_cv_exeext
2577	  break;;
2578    * ) break;;
2579  esac
2580done
2581else
2582  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2583See \`config.log' for more details." >&5
2584echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2585See \`config.log' for more details." >&2;}
2586   { (exit 1); exit 1; }; }
2587fi
2588
2589rm -f conftest$ac_cv_exeext
2590echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2591echo "${ECHO_T}$ac_cv_exeext" >&6
2592
2593rm -f conftest.$ac_ext
2594EXEEXT=$ac_cv_exeext
2595ac_exeext=$EXEEXT
2596echo "$as_me:$LINENO: checking for suffix of object files" >&5
2597echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2598if test "${ac_cv_objext+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h.  */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h.  */
2607
2608int
2609main ()
2610{
2611
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616rm -f conftest.o conftest.obj
2617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618  (eval $ac_compile) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; then
2622  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2623  case $ac_file in
2624    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2625    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2626       break;;
2627  esac
2628done
2629else
2630  echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2634See \`config.log' for more details." >&5
2635echo "$as_me: error: cannot compute suffix of object files: cannot compile
2636See \`config.log' for more details." >&2;}
2637   { (exit 1); exit 1; }; }
2638fi
2639
2640rm -f conftest.$ac_cv_objext conftest.$ac_ext
2641fi
2642echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2643echo "${ECHO_T}$ac_cv_objext" >&6
2644OBJEXT=$ac_cv_objext
2645ac_objext=$OBJEXT
2646echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2647echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2648if test "${ac_cv_c_compiler_gnu+set}" = set; then
2649  echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651  cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657
2658int
2659main ()
2660{
2661#ifndef __GNUC__
2662       choke me
2663#endif
2664
2665  ;
2666  return 0;
2667}
2668_ACEOF
2669rm -f conftest.$ac_objext
2670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671  (eval $ac_compile) 2>conftest.er1
2672  ac_status=$?
2673  grep -v '^ *+' conftest.er1 >conftest.err
2674  rm -f conftest.er1
2675  cat conftest.err >&5
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); } &&
2678	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
2684	 { ac_try='test -s conftest.$ac_objext'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; }; then
2690  ac_compiler_gnu=yes
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695ac_compiler_gnu=no
2696fi
2697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698ac_cv_c_compiler_gnu=$ac_compiler_gnu
2699
2700fi
2701echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2702echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2703GCC=`test $ac_compiler_gnu = yes && echo yes`
2704ac_test_CFLAGS=${CFLAGS+set}
2705ac_save_CFLAGS=$CFLAGS
2706CFLAGS="-g"
2707echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2708echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2709if test "${ac_cv_prog_cc_g+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712  cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h.  */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h.  */
2718
2719int
2720main ()
2721{
2722
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>conftest.er1
2730  ac_status=$?
2731  grep -v '^ *+' conftest.er1 >conftest.err
2732  rm -f conftest.er1
2733  cat conftest.err >&5
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); } &&
2736	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738  (eval $ac_try) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); }; } &&
2742	 { ac_try='test -s conftest.$ac_objext'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; }; then
2748  ac_cv_prog_cc_g=yes
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753ac_cv_prog_cc_g=no
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756fi
2757echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2758echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2759if test "$ac_test_CFLAGS" = set; then
2760  CFLAGS=$ac_save_CFLAGS
2761elif test $ac_cv_prog_cc_g = yes; then
2762  if test "$GCC" = yes; then
2763    CFLAGS="-g -O2"
2764  else
2765    CFLAGS="-g"
2766  fi
2767else
2768  if test "$GCC" = yes; then
2769    CFLAGS="-O2"
2770  else
2771    CFLAGS=
2772  fi
2773fi
2774echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2775echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2776if test "${ac_cv_prog_cc_stdc+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  ac_cv_prog_cc_stdc=no
2780ac_save_CC=$CC
2781cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h.  */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h.  */
2787#include <stdarg.h>
2788#include <stdio.h>
2789#include <sys/types.h>
2790#include <sys/stat.h>
2791/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2792struct buf { int x; };
2793FILE * (*rcsopen) (struct buf *, struct stat *, int);
2794static char *e (p, i)
2795     char **p;
2796     int i;
2797{
2798  return p[i];
2799}
2800static char *f (char * (*g) (char **, int), char **p, ...)
2801{
2802  char *s;
2803  va_list v;
2804  va_start (v,p);
2805  s = g (p, va_arg (v,int));
2806  va_end (v);
2807  return s;
2808}
2809
2810/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2811   function prototypes and stuff, but not '\xHH' hex character constants.
2812   These don't provoke an error unfortunately, instead are silently treated
2813   as 'x'.  The following induces an error, until -std1 is added to get
2814   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2815   array size at least.  It's necessary to write '\x00'==0 to get something
2816   that's true only with -std1.  */
2817int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2818
2819int test (int i, double x);
2820struct s1 {int (*f) (int a);};
2821struct s2 {int (*f) (double a);};
2822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2823int argc;
2824char **argv;
2825int
2826main ()
2827{
2828return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2829  ;
2830  return 0;
2831}
2832_ACEOF
2833# Don't try gcc -ansi; that turns off useful extensions and
2834# breaks some systems' header files.
2835# AIX			-qlanglvl=ansi
2836# Ultrix and OSF/1	-std1
2837# HP-UX 10.20 and later	-Ae
2838# HP-UX older versions	-Aa -D_HPUX_SOURCE
2839# SVR4			-Xc -D__EXTENSIONS__
2840for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2841do
2842  CC="$ac_save_CC $ac_arg"
2843  rm -f conftest.$ac_objext
2844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845  (eval $ac_compile) 2>conftest.er1
2846  ac_status=$?
2847  grep -v '^ *+' conftest.er1 >conftest.err
2848  rm -f conftest.er1
2849  cat conftest.err >&5
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); } &&
2852	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854  (eval $ac_try) 2>&5
2855  ac_status=$?
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); }; } &&
2858	 { ac_try='test -s conftest.$ac_objext'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; }; then
2864  ac_cv_prog_cc_stdc=$ac_arg
2865break
2866else
2867  echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870fi
2871rm -f conftest.err conftest.$ac_objext
2872done
2873rm -f conftest.$ac_ext conftest.$ac_objext
2874CC=$ac_save_CC
2875
2876fi
2877
2878case "x$ac_cv_prog_cc_stdc" in
2879  x|xno)
2880    echo "$as_me:$LINENO: result: none needed" >&5
2881echo "${ECHO_T}none needed" >&6 ;;
2882  *)
2883    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885    CC="$CC $ac_cv_prog_cc_stdc" ;;
2886esac
2887
2888# Some people use a C++ compiler to compile C.  Since we use `exit',
2889# in C++ we need to declare it.  In case someone uses the same compiler
2890# for both compiling C and C++ we need to have the C++ compiler decide
2891# the declaration of exit, since it's the most demanding environment.
2892cat >conftest.$ac_ext <<_ACEOF
2893#ifndef __cplusplus
2894  choke me
2895#endif
2896_ACEOF
2897rm -f conftest.$ac_objext
2898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899  (eval $ac_compile) 2>conftest.er1
2900  ac_status=$?
2901  grep -v '^ *+' conftest.er1 >conftest.err
2902  rm -f conftest.er1
2903  cat conftest.err >&5
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); } &&
2906	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908  (eval $ac_try) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }; } &&
2912	 { ac_try='test -s conftest.$ac_objext'
2913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914  (eval $ac_try) 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }; }; then
2918  for ac_declaration in \
2919   '' \
2920   'extern "C" void std::exit (int) throw (); using std::exit;' \
2921   'extern "C" void std::exit (int); using std::exit;' \
2922   'extern "C" void exit (int) throw ();' \
2923   'extern "C" void exit (int);' \
2924   'void exit (int);'
2925do
2926  cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h.  */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h.  */
2932$ac_declaration
2933#include <stdlib.h>
2934int
2935main ()
2936{
2937exit (42);
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944  (eval $ac_compile) 2>conftest.er1
2945  ac_status=$?
2946  grep -v '^ *+' conftest.er1 >conftest.err
2947  rm -f conftest.er1
2948  cat conftest.err >&5
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); } &&
2951	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; } &&
2957	 { ac_try='test -s conftest.$ac_objext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  :
2964else
2965  echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968continue
2969fi
2970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2971  cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977$ac_declaration
2978int
2979main ()
2980{
2981exit (42);
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
2987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988  (eval $ac_compile) 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; } &&
3001	 { ac_try='test -s conftest.$ac_objext'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; }; then
3007  break
3008else
3009  echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012fi
3013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014done
3015rm -f conftest*
3016if test -n "$ac_declaration"; then
3017  echo '#ifdef __cplusplus' >>confdefs.h
3018  echo $ac_declaration      >>confdefs.h
3019  echo '#endif'             >>confdefs.h
3020fi
3021
3022else
3023  echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026fi
3027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028ac_ext=c
3029ac_cpp='$CPP $CPPFLAGS'
3030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034depcc="$CC"   am_compiler_list=
3035
3036echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3037echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3038if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3039  echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
3041  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3042  # We make a subdir and do the tests there.  Otherwise we can end up
3043  # making bogus files that we don't know about and never remove.  For
3044  # instance it was reported that on HP-UX the gcc test will end up
3045  # making a dummy file named `D' -- because `-MD' means `put the output
3046  # in D'.
3047  mkdir conftest.dir
3048  # Copy depcomp to subdir because otherwise we won't find it if we're
3049  # using a relative directory.
3050  cp "$am_depcomp" conftest.dir
3051  cd conftest.dir
3052  # We will build objects and dependencies in a subdirectory because
3053  # it helps to detect inapplicable dependency modes.  For instance
3054  # both Tru64's cc and ICC support -MD to output dependencies as a
3055  # side effect of compilation, but ICC will put the dependencies in
3056  # the current directory while Tru64 will put them in the object
3057  # directory.
3058  mkdir sub
3059
3060  am_cv_CC_dependencies_compiler_type=none
3061  if test "$am_compiler_list" = ""; then
3062     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3063  fi
3064  for depmode in $am_compiler_list; do
3065    # Setup a source with many dependencies, because some compilers
3066    # like to wrap large dependency lists on column 80 (with \), and
3067    # we should not choose a depcomp mode which is confused by this.
3068    #
3069    # We need to recreate these files for each test, as the compiler may
3070    # overwrite some of them when testing with obscure command lines.
3071    # This happens at least with the AIX C compiler.
3072    : > sub/conftest.c
3073    for i in 1 2 3 4 5 6; do
3074      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3075      : > sub/conftst$i.h
3076    done
3077    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3078
3079    case $depmode in
3080    nosideeffect)
3081      # after this tag, mechanisms are not by side-effect, so they'll
3082      # only be used when explicitly requested
3083      if test "x$enable_dependency_tracking" = xyes; then
3084	continue
3085      else
3086	break
3087      fi
3088      ;;
3089    none) break ;;
3090    esac
3091    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3092    # mode.  It turns out that the SunPro C++ compiler does not properly
3093    # handle `-M -o', and we need to detect this.
3094    if depmode=$depmode \
3095       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3096       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3097       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3098         >/dev/null 2>conftest.err &&
3099       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3100       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3101       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3102      # icc doesn't choke on unknown options, it will just issue warnings
3103      # (even with -Werror).  So we grep stderr for any message
3104      # that says an option was ignored.
3105      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3106        am_cv_CC_dependencies_compiler_type=$depmode
3107        break
3108      fi
3109    fi
3110  done
3111
3112  cd ..
3113  rm -rf conftest.dir
3114else
3115  am_cv_CC_dependencies_compiler_type=none
3116fi
3117
3118fi
3119echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3120echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3121CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3122
3123
3124
3125if
3126  test "x$enable_dependency_tracking" != xno \
3127  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3128  am__fastdepCC_TRUE=
3129  am__fastdepCC_FALSE='#'
3130else
3131  am__fastdepCC_TRUE='#'
3132  am__fastdepCC_FALSE=
3133fi
3134
3135
3136echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3137echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3138if test "${lt_cv_path_SED+set}" = set; then
3139  echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141  # Loop through the user's path and test for sed and gsed.
3142# Then use that list of sed's as ones to test for truncation.
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148  for lt_ac_prog in sed gsed; do
3149    for ac_exec_ext in '' $ac_executable_extensions; do
3150      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3151        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3152      fi
3153    done
3154  done
3155done
3156lt_ac_max=0
3157lt_ac_count=0
3158# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3159# along with /bin/sed that truncates output.
3160for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3161  test ! -f $lt_ac_sed && break
3162  cat /dev/null > conftest.in
3163  lt_ac_count=0
3164  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3165  # Check for GNU sed and select it if it is found.
3166  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3167    lt_cv_path_SED=$lt_ac_sed
3168    break
3169  fi
3170  while true; do
3171    cat conftest.in conftest.in >conftest.tmp
3172    mv conftest.tmp conftest.in
3173    cp conftest.in conftest.nl
3174    echo >>conftest.nl
3175    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3176    cmp -s conftest.out conftest.nl || break
3177    # 10000 chars as input seems more than enough
3178    test $lt_ac_count -gt 10 && break
3179    lt_ac_count=`expr $lt_ac_count + 1`
3180    if test $lt_ac_count -gt $lt_ac_max; then
3181      lt_ac_max=$lt_ac_count
3182      lt_cv_path_SED=$lt_ac_sed
3183    fi
3184  done
3185done
3186SED=$lt_cv_path_SED
3187
3188fi
3189
3190echo "$as_me:$LINENO: result: $SED" >&5
3191echo "${ECHO_T}$SED" >&6
3192
3193echo "$as_me:$LINENO: checking for egrep" >&5
3194echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3195if test "${ac_cv_prog_egrep+set}" = set; then
3196  echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3199    then ac_cv_prog_egrep='grep -E'
3200    else ac_cv_prog_egrep='egrep'
3201    fi
3202fi
3203echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3204echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3205 EGREP=$ac_cv_prog_egrep
3206
3207
3208
3209# Check whether --with-gnu-ld or --without-gnu-ld was given.
3210if test "${with_gnu_ld+set}" = set; then
3211  withval="$with_gnu_ld"
3212  test "$withval" = no || with_gnu_ld=yes
3213else
3214  with_gnu_ld=no
3215fi;
3216ac_prog=ld
3217if test "$GCC" = yes; then
3218  # Check if gcc -print-prog-name=ld gives a path.
3219  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3220echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3221  case $host in
3222  *-*-mingw*)
3223    # gcc leaves a trailing carriage return which upsets mingw
3224    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3225  *)
3226    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3227  esac
3228  case $ac_prog in
3229    # Accept absolute paths.
3230    [\\/]* | ?:[\\/]*)
3231      re_direlt='/[^/][^/]*/\.\./'
3232      # Canonicalize the pathname of ld
3233      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3234      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3235	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3236      done
3237      test -z "$LD" && LD="$ac_prog"
3238      ;;
3239  "")
3240    # If it fails, then pretend we aren't using GCC.
3241    ac_prog=ld
3242    ;;
3243  *)
3244    # If it is relative, then search for the first ld in PATH.
3245    with_gnu_ld=unknown
3246    ;;
3247  esac
3248elif test "$with_gnu_ld" = yes; then
3249  echo "$as_me:$LINENO: checking for GNU ld" >&5
3250echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3251else
3252  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3253echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3254fi
3255if test "${lt_cv_path_LD+set}" = set; then
3256  echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258  if test -z "$LD"; then
3259  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3260  for ac_dir in $PATH; do
3261    IFS="$lt_save_ifs"
3262    test -z "$ac_dir" && ac_dir=.
3263    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3264      lt_cv_path_LD="$ac_dir/$ac_prog"
3265      # Check to see if the program is GNU ld.  I'd rather use --version,
3266      # but apparently some GNU ld's only accept -v.
3267      # Break only if it was the GNU/non-GNU ld that we prefer.
3268      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3269      *GNU* | *'with BFD'*)
3270	test "$with_gnu_ld" != no && break
3271	;;
3272      *)
3273	test "$with_gnu_ld" != yes && break
3274	;;
3275      esac
3276    fi
3277  done
3278  IFS="$lt_save_ifs"
3279else
3280  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3281fi
3282fi
3283
3284LD="$lt_cv_path_LD"
3285if test -n "$LD"; then
3286  echo "$as_me:$LINENO: result: $LD" >&5
3287echo "${ECHO_T}$LD" >&6
3288else
3289  echo "$as_me:$LINENO: result: no" >&5
3290echo "${ECHO_T}no" >&6
3291fi
3292test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3293echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3294   { (exit 1); exit 1; }; }
3295echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3296echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3297if test "${lt_cv_prog_gnu_ld+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3301case `$LD -v 2>&1 </dev/null` in
3302*GNU* | *'with BFD'*)
3303  lt_cv_prog_gnu_ld=yes
3304  ;;
3305*)
3306  lt_cv_prog_gnu_ld=no
3307  ;;
3308esac
3309fi
3310echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3311echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3312with_gnu_ld=$lt_cv_prog_gnu_ld
3313
3314
3315echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3316echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3317if test "${lt_cv_ld_reload_flag+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320  lt_cv_ld_reload_flag='-r'
3321fi
3322echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3323echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3324reload_flag=$lt_cv_ld_reload_flag
3325case $reload_flag in
3326"" | " "*) ;;
3327*) reload_flag=" $reload_flag" ;;
3328esac
3329reload_cmds='$LD$reload_flag -o $output$reload_objs'
3330
3331echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3332echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3333if test "${lt_cv_path_NM+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  if test -n "$NM"; then
3337  # Let the user override the test.
3338  lt_cv_path_NM="$NM"
3339else
3340  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3341  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3342    IFS="$lt_save_ifs"
3343    test -z "$ac_dir" && ac_dir=.
3344    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3345    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3346      # Check to see if the nm accepts a BSD-compat flag.
3347      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3348      #   nm: unknown option "B" ignored
3349      # Tru64's nm complains that /dev/null is an invalid object file
3350      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3351      */dev/null* | *'Invalid file or object type'*)
3352	lt_cv_path_NM="$tmp_nm -B"
3353	break
3354        ;;
3355      *)
3356	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3357	*/dev/null*)
3358	  lt_cv_path_NM="$tmp_nm -p"
3359	  break
3360	  ;;
3361	*)
3362	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3363	  continue # so that we can try to find one that supports BSD flags
3364	  ;;
3365	esac
3366      esac
3367    fi
3368  done
3369  IFS="$lt_save_ifs"
3370  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3371fi
3372fi
3373echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3374echo "${ECHO_T}$lt_cv_path_NM" >&6
3375NM="$lt_cv_path_NM"
3376
3377echo "$as_me:$LINENO: checking whether ln -s works" >&5
3378echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3379LN_S=$as_ln_s
3380if test "$LN_S" = "ln -s"; then
3381  echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383else
3384  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3385echo "${ECHO_T}no, using $LN_S" >&6
3386fi
3387
3388echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3389echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3390if test "${lt_cv_deplibs_check_method+set}" = set; then
3391  echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393  lt_cv_file_magic_cmd='$MAGIC_CMD'
3394lt_cv_file_magic_test_file=
3395lt_cv_deplibs_check_method='unknown'
3396# Need to set the preceding variable on all platforms that support
3397# interlibrary dependencies.
3398# 'none' -- dependencies not supported.
3399# `unknown' -- same as none, but documents that we really don't know.
3400# 'pass_all' -- all dependencies passed with no checks.
3401# 'test_compile' -- check by making test program.
3402# 'file_magic [[regex]]' -- check by looking for files in library path
3403# which responds to the $file_magic_cmd with a given extended regex.
3404# If you have `file' or equivalent on your system and you're not sure
3405# whether `pass_all' will *always* work, you probably want this one.
3406
3407case $host_os in
3408aix4* | aix5*)
3409  lt_cv_deplibs_check_method=pass_all
3410  ;;
3411
3412beos*)
3413  lt_cv_deplibs_check_method=pass_all
3414  ;;
3415
3416bsdi4*)
3417  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3418  lt_cv_file_magic_cmd='/usr/bin/file -L'
3419  lt_cv_file_magic_test_file=/shlib/libc.so
3420  ;;
3421
3422cygwin*)
3423  # func_win32_libid is a shell function defined in ltmain.sh
3424  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3425  lt_cv_file_magic_cmd='func_win32_libid'
3426  ;;
3427
3428mingw* | pw32*)
3429  # Base MSYS/MinGW do not provide the 'file' command needed by
3430  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3431  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3432  lt_cv_file_magic_cmd='$OBJDUMP -f'
3433  ;;
3434
3435darwin* | rhapsody*)
3436  lt_cv_deplibs_check_method=pass_all
3437  ;;
3438
3439freebsd* | kfreebsd*-gnu)
3440  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3441    case $host_cpu in
3442    i*86 )
3443      # Not sure whether the presence of OpenBSD here was a mistake.
3444      # Let's accept both of them until this is cleared up.
3445      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3446      lt_cv_file_magic_cmd=/usr/bin/file
3447      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3448      ;;
3449    esac
3450  else
3451    lt_cv_deplibs_check_method=pass_all
3452  fi
3453  ;;
3454
3455gnu*)
3456  lt_cv_deplibs_check_method=pass_all
3457  ;;
3458
3459hpux10.20* | hpux11*)
3460  lt_cv_file_magic_cmd=/usr/bin/file
3461  case "$host_cpu" in
3462  ia64*)
3463    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3464    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3465    ;;
3466  hppa*64*)
3467    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]'
3468    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3469    ;;
3470  *)
3471    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3472    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3473    ;;
3474  esac
3475  ;;
3476
3477irix5* | irix6* | nonstopux*)
3478  case $LD in
3479  *-32|*"-32 ") libmagic=32-bit;;
3480  *-n32|*"-n32 ") libmagic=N32;;
3481  *-64|*"-64 ") libmagic=64-bit;;
3482  *) libmagic=never-match;;
3483  esac
3484  lt_cv_deplibs_check_method=pass_all
3485  ;;
3486
3487# This must be Linux ELF.
3488linux*)
3489  lt_cv_deplibs_check_method=pass_all
3490  ;;
3491
3492netbsd* | knetbsd*-gnu)
3493  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3494    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3495  else
3496    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3497  fi
3498  ;;
3499
3500newos6*)
3501  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3502  lt_cv_file_magic_cmd=/usr/bin/file
3503  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3504  ;;
3505
3506nto-qnx*)
3507  lt_cv_deplibs_check_method=unknown
3508  ;;
3509
3510openbsd*)
3511  lt_cv_file_magic_cmd=/usr/bin/file
3512  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3513  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3514    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3515  else
3516    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3517  fi
3518  ;;
3519
3520osf3* | osf4* | osf5*)
3521  lt_cv_deplibs_check_method=pass_all
3522  ;;
3523
3524sco3.2v5*)
3525  lt_cv_deplibs_check_method=pass_all
3526  ;;
3527
3528solaris*)
3529  lt_cv_deplibs_check_method=pass_all
3530  ;;
3531
3532sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3533  case $host_vendor in
3534  motorola)
3535    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]'
3536    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3537    ;;
3538  ncr)
3539    lt_cv_deplibs_check_method=pass_all
3540    ;;
3541  sequent)
3542    lt_cv_file_magic_cmd='/bin/file'
3543    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3544    ;;
3545  sni)
3546    lt_cv_file_magic_cmd='/bin/file'
3547    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3548    lt_cv_file_magic_test_file=/lib/libc.so
3549    ;;
3550  siemens)
3551    lt_cv_deplibs_check_method=pass_all
3552    ;;
3553  esac
3554  ;;
3555
3556sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3557  lt_cv_deplibs_check_method=pass_all
3558  ;;
3559esac
3560
3561fi
3562echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3563echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3564file_magic_cmd=$lt_cv_file_magic_cmd
3565deplibs_check_method=$lt_cv_deplibs_check_method
3566test -z "$deplibs_check_method" && deplibs_check_method=unknown
3567
3568
3569
3570
3571# If no C compiler was specified, use CC.
3572LTCC=${LTCC-"$CC"}
3573
3574# Allow CC to be a program name with arguments.
3575compiler=$CC
3576
3577
3578# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3579if test "${enable_libtool_lock+set}" = set; then
3580  enableval="$enable_libtool_lock"
3581
3582fi;
3583test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3584
3585# Some flags need to be propagated to the compiler or linker for good
3586# libtool support.
3587case $host in
3588ia64-*-hpux*)
3589  # Find out which ABI we are using.
3590  echo 'int i;' > conftest.$ac_ext
3591  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592  (eval $ac_compile) 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); }; then
3596    case `/usr/bin/file conftest.$ac_objext` in
3597    *ELF-32*)
3598      HPUX_IA64_MODE="32"
3599      ;;
3600    *ELF-64*)
3601      HPUX_IA64_MODE="64"
3602      ;;
3603    esac
3604  fi
3605  rm -rf conftest*
3606  ;;
3607*-*-irix6*)
3608  # Find out which ABI we are using.
3609  echo '#line 3609 "configure"' > conftest.$ac_ext
3610  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611  (eval $ac_compile) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; then
3615   if test "$lt_cv_prog_gnu_ld" = yes; then
3616    case `/usr/bin/file conftest.$ac_objext` in
3617    *32-bit*)
3618      LD="${LD-ld} -melf32bsmip"
3619      ;;
3620    *N32*)
3621      LD="${LD-ld} -melf32bmipn32"
3622      ;;
3623    *64-bit*)
3624      LD="${LD-ld} -melf64bmip"
3625      ;;
3626    esac
3627   else
3628    case `/usr/bin/file conftest.$ac_objext` in
3629    *32-bit*)
3630      LD="${LD-ld} -32"
3631      ;;
3632    *N32*)
3633      LD="${LD-ld} -n32"
3634      ;;
3635    *64-bit*)
3636      LD="${LD-ld} -64"
3637      ;;
3638    esac
3639   fi
3640  fi
3641  rm -rf conftest*
3642  ;;
3643
3644x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3645  # Find out which ABI we are using.
3646  echo 'int i;' > conftest.$ac_ext
3647  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648  (eval $ac_compile) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }; then
3652    case "`/usr/bin/file conftest.o`" in
3653    *32-bit*)
3654      case $host in
3655        x86_64-*linux*)
3656          LD="${LD-ld} -m elf_i386"
3657          ;;
3658        ppc64-*linux*|powerpc64-*linux*)
3659          LD="${LD-ld} -m elf32ppclinux"
3660          ;;
3661        s390x-*linux*)
3662          LD="${LD-ld} -m elf_s390"
3663          ;;
3664        sparc64-*linux*)
3665          LD="${LD-ld} -m elf32_sparc"
3666          ;;
3667      esac
3668      ;;
3669    *64-bit*)
3670      case $host in
3671        x86_64-*linux*)
3672          LD="${LD-ld} -m elf_x86_64"
3673          ;;
3674        ppc*-*linux*|powerpc*-*linux*)
3675          LD="${LD-ld} -m elf64ppc"
3676          ;;
3677        s390*-*linux*)
3678          LD="${LD-ld} -m elf64_s390"
3679          ;;
3680        sparc*-*linux*)
3681          LD="${LD-ld} -m elf64_sparc"
3682          ;;
3683      esac
3684      ;;
3685    esac
3686  fi
3687  rm -rf conftest*
3688  ;;
3689
3690*-*-sco3.2v5*)
3691  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3692  SAVE_CFLAGS="$CFLAGS"
3693  CFLAGS="$CFLAGS -belf"
3694  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3695echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3696if test "${lt_cv_cc_needs_belf+set}" = set; then
3697  echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699  ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705     cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h.  */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h.  */
3711
3712int
3713main ()
3714{
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720rm -f conftest.$ac_objext conftest$ac_exeext
3721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722  (eval $ac_link) 2>conftest.er1
3723  ac_status=$?
3724  grep -v '^ *+' conftest.er1 >conftest.err
3725  rm -f conftest.er1
3726  cat conftest.err >&5
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); } &&
3729	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731  (eval $ac_try) 2>&5
3732  ac_status=$?
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); }; } &&
3735	 { ac_try='test -s conftest$ac_exeext'
3736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737  (eval $ac_try) 2>&5
3738  ac_status=$?
3739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740  (exit $ac_status); }; }; then
3741  lt_cv_cc_needs_belf=yes
3742else
3743  echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746lt_cv_cc_needs_belf=no
3747fi
3748rm -f conftest.err conftest.$ac_objext \
3749      conftest$ac_exeext conftest.$ac_ext
3750     ac_ext=c
3751ac_cpp='$CPP $CPPFLAGS'
3752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756fi
3757echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3758echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3759  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3760    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3761    CFLAGS="$SAVE_CFLAGS"
3762  fi
3763  ;;
3764
3765esac
3766
3767need_locks="$enable_libtool_lock"
3768
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3776echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3777# On Suns, sometimes $CPP names a directory.
3778if test -n "$CPP" && test -d "$CPP"; then
3779  CPP=
3780fi
3781if test -z "$CPP"; then
3782  if test "${ac_cv_prog_CPP+set}" = set; then
3783  echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785      # Double quotes because CPP needs to be expanded
3786    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3787    do
3788      ac_preproc_ok=false
3789for ac_c_preproc_warn_flag in '' yes
3790do
3791  # Use a header file that comes with gcc, so configuring glibc
3792  # with a fresh cross-compiler works.
3793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794  # <limits.h> exists even on freestanding compilers.
3795  # On the NeXT, cc -E runs the code through the compiler's parser,
3796  # not just through cpp. "Syntax error" is here to catch this case.
3797  cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803#ifdef __STDC__
3804# include <limits.h>
3805#else
3806# include <assert.h>
3807#endif
3808		     Syntax error
3809_ACEOF
3810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } >/dev/null; then
3818  if test -s conftest.err; then
3819    ac_cpp_err=$ac_c_preproc_warn_flag
3820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3821  else
3822    ac_cpp_err=
3823  fi
3824else
3825  ac_cpp_err=yes
3826fi
3827if test -z "$ac_cpp_err"; then
3828  :
3829else
3830  echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833  # Broken: fails on valid input.
3834continue
3835fi
3836rm -f conftest.err conftest.$ac_ext
3837
3838  # OK, works on sane cases.  Now check whether non-existent headers
3839  # can be detected and how.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <ac_nonexistent.h>
3847_ACEOF
3848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3850  ac_status=$?
3851  grep -v '^ *+' conftest.er1 >conftest.err
3852  rm -f conftest.er1
3853  cat conftest.err >&5
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } >/dev/null; then
3856  if test -s conftest.err; then
3857    ac_cpp_err=$ac_c_preproc_warn_flag
3858    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3859  else
3860    ac_cpp_err=
3861  fi
3862else
3863  ac_cpp_err=yes
3864fi
3865if test -z "$ac_cpp_err"; then
3866  # Broken: success on invalid input.
3867continue
3868else
3869  echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872  # Passes both tests.
3873ac_preproc_ok=:
3874break
3875fi
3876rm -f conftest.err conftest.$ac_ext
3877
3878done
3879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880rm -f conftest.err conftest.$ac_ext
3881if $ac_preproc_ok; then
3882  break
3883fi
3884
3885    done
3886    ac_cv_prog_CPP=$CPP
3887
3888fi
3889  CPP=$ac_cv_prog_CPP
3890else
3891  ac_cv_prog_CPP=$CPP
3892fi
3893echo "$as_me:$LINENO: result: $CPP" >&5
3894echo "${ECHO_T}$CPP" >&6
3895ac_preproc_ok=false
3896for ac_c_preproc_warn_flag in '' yes
3897do
3898  # Use a header file that comes with gcc, so configuring glibc
3899  # with a fresh cross-compiler works.
3900  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3901  # <limits.h> exists even on freestanding compilers.
3902  # On the NeXT, cc -E runs the code through the compiler's parser,
3903  # not just through cpp. "Syntax error" is here to catch this case.
3904  cat >conftest.$ac_ext <<_ACEOF
3905/* confdefs.h.  */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h.  */
3910#ifdef __STDC__
3911# include <limits.h>
3912#else
3913# include <assert.h>
3914#endif
3915		     Syntax error
3916_ACEOF
3917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3918  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } >/dev/null; then
3925  if test -s conftest.err; then
3926    ac_cpp_err=$ac_c_preproc_warn_flag
3927    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3928  else
3929    ac_cpp_err=
3930  fi
3931else
3932  ac_cpp_err=yes
3933fi
3934if test -z "$ac_cpp_err"; then
3935  :
3936else
3937  echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940  # Broken: fails on valid input.
3941continue
3942fi
3943rm -f conftest.err conftest.$ac_ext
3944
3945  # OK, works on sane cases.  Now check whether non-existent headers
3946  # can be detected and how.
3947  cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h.  */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h.  */
3953#include <ac_nonexistent.h>
3954_ACEOF
3955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3957  ac_status=$?
3958  grep -v '^ *+' conftest.er1 >conftest.err
3959  rm -f conftest.er1
3960  cat conftest.err >&5
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); } >/dev/null; then
3963  if test -s conftest.err; then
3964    ac_cpp_err=$ac_c_preproc_warn_flag
3965    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3966  else
3967    ac_cpp_err=
3968  fi
3969else
3970  ac_cpp_err=yes
3971fi
3972if test -z "$ac_cpp_err"; then
3973  # Broken: success on invalid input.
3974continue
3975else
3976  echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979  # Passes both tests.
3980ac_preproc_ok=:
3981break
3982fi
3983rm -f conftest.err conftest.$ac_ext
3984
3985done
3986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987rm -f conftest.err conftest.$ac_ext
3988if $ac_preproc_ok; then
3989  :
3990else
3991  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3992See \`config.log' for more details." >&5
3993echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3994See \`config.log' for more details." >&2;}
3995   { (exit 1); exit 1; }; }
3996fi
3997
3998ac_ext=c
3999ac_cpp='$CPP $CPPFLAGS'
4000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004
4005echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4006echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4007if test "${ac_cv_header_stdc+set}" = set; then
4008  echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010  cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h.  */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h.  */
4016#include <stdlib.h>
4017#include <stdarg.h>
4018#include <string.h>
4019#include <float.h>
4020
4021int
4022main ()
4023{
4024
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031  (eval $ac_compile) 2>conftest.er1
4032  ac_status=$?
4033  grep -v '^ *+' conftest.er1 >conftest.err
4034  rm -f conftest.er1
4035  cat conftest.err >&5
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } &&
4038	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040  (eval $ac_try) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }; } &&
4044	 { ac_try='test -s conftest.$ac_objext'
4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046  (eval $ac_try) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  ac_cv_header_stdc=yes
4051else
4052  echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055ac_cv_header_stdc=no
4056fi
4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4058
4059if test $ac_cv_header_stdc = yes; then
4060  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4061  cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h.  */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h.  */
4067#include <string.h>
4068
4069_ACEOF
4070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071  $EGREP "memchr" >/dev/null 2>&1; then
4072  :
4073else
4074  ac_cv_header_stdc=no
4075fi
4076rm -f conftest*
4077
4078fi
4079
4080if test $ac_cv_header_stdc = yes; then
4081  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4082  cat >conftest.$ac_ext <<_ACEOF
4083/* confdefs.h.  */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h.  */
4088#include <stdlib.h>
4089
4090_ACEOF
4091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092  $EGREP "free" >/dev/null 2>&1; then
4093  :
4094else
4095  ac_cv_header_stdc=no
4096fi
4097rm -f conftest*
4098
4099fi
4100
4101if test $ac_cv_header_stdc = yes; then
4102  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4103  if test "$cross_compiling" = yes; then
4104  :
4105else
4106  cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h.  */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h.  */
4112#include <ctype.h>
4113#if ((' ' & 0x0FF) == 0x020)
4114# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4115# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4116#else
4117# define ISLOWER(c) \
4118		   (('a' <= (c) && (c) <= 'i') \
4119		     || ('j' <= (c) && (c) <= 'r') \
4120		     || ('s' <= (c) && (c) <= 'z'))
4121# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4122#endif
4123
4124#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4125int
4126main ()
4127{
4128  int i;
4129  for (i = 0; i < 256; i++)
4130    if (XOR (islower (i), ISLOWER (i))
4131	|| toupper (i) != TOUPPER (i))
4132      exit(2);
4133  exit (0);
4134}
4135_ACEOF
4136rm -f conftest$ac_exeext
4137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4138  (eval $ac_link) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143  (eval $ac_try) 2>&5
4144  ac_status=$?
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); }; }; then
4147  :
4148else
4149  echo "$as_me: program exited with status $ac_status" >&5
4150echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153( exit $ac_status )
4154ac_cv_header_stdc=no
4155fi
4156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4157fi
4158fi
4159fi
4160echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4161echo "${ECHO_T}$ac_cv_header_stdc" >&6
4162if test $ac_cv_header_stdc = yes; then
4163
4164cat >>confdefs.h <<\_ACEOF
4165#define STDC_HEADERS 1
4166_ACEOF
4167
4168fi
4169
4170# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4181		  inttypes.h stdint.h unistd.h
4182do
4183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4184echo "$as_me:$LINENO: checking for $ac_header" >&5
4185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4186if eval "test \"\${$as_ac_Header+set}\" = set"; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h.  */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
4194/* end confdefs.h.  */
4195$ac_includes_default
4196
4197#include <$ac_header>
4198_ACEOF
4199rm -f conftest.$ac_objext
4200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201  (eval $ac_compile) 2>conftest.er1
4202  ac_status=$?
4203  grep -v '^ *+' conftest.er1 >conftest.err
4204  rm -f conftest.er1
4205  cat conftest.err >&5
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); } &&
4208	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210  (eval $ac_try) 2>&5
4211  ac_status=$?
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); }; } &&
4214	 { ac_try='test -s conftest.$ac_objext'
4215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216  (eval $ac_try) 2>&5
4217  ac_status=$?
4218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219  (exit $ac_status); }; }; then
4220  eval "$as_ac_Header=yes"
4221else
4222  echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225eval "$as_ac_Header=no"
4226fi
4227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228fi
4229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4231if test `eval echo '${'$as_ac_Header'}'` = yes; then
4232  cat >>confdefs.h <<_ACEOF
4233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4234_ACEOF
4235
4236fi
4237
4238done
4239
4240
4241
4242for ac_header in dlfcn.h
4243do
4244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245if eval "test \"\${$as_ac_Header+set}\" = set"; then
4246  echo "$as_me:$LINENO: checking for $ac_header" >&5
4247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4248if eval "test \"\${$as_ac_Header+set}\" = set"; then
4249  echo $ECHO_N "(cached) $ECHO_C" >&6
4250fi
4251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4253else
4254  # Is the header compilable?
4255echo "$as_me:$LINENO: checking $ac_header usability" >&5
4256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4257cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h.  */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h.  */
4263$ac_includes_default
4264#include <$ac_header>
4265_ACEOF
4266rm -f conftest.$ac_objext
4267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268  (eval $ac_compile) 2>conftest.er1
4269  ac_status=$?
4270  grep -v '^ *+' conftest.er1 >conftest.err
4271  rm -f conftest.er1
4272  cat conftest.err >&5
4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); } &&
4275	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277  (eval $ac_try) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }; } &&
4281	 { ac_try='test -s conftest.$ac_objext'
4282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283  (eval $ac_try) 2>&5
4284  ac_status=$?
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); }; }; then
4287  ac_header_compiler=yes
4288else
4289  echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292ac_header_compiler=no
4293fi
4294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4296echo "${ECHO_T}$ac_header_compiler" >&6
4297
4298# Is the header present?
4299echo "$as_me:$LINENO: checking $ac_header presence" >&5
4300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4301cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h.  */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
4306/* end confdefs.h.  */
4307#include <$ac_header>
4308_ACEOF
4309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4310  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4311  ac_status=$?
4312  grep -v '^ *+' conftest.er1 >conftest.err
4313  rm -f conftest.er1
4314  cat conftest.err >&5
4315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316  (exit $ac_status); } >/dev/null; then
4317  if test -s conftest.err; then
4318    ac_cpp_err=$ac_c_preproc_warn_flag
4319    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4320  else
4321    ac_cpp_err=
4322  fi
4323else
4324  ac_cpp_err=yes
4325fi
4326if test -z "$ac_cpp_err"; then
4327  ac_header_preproc=yes
4328else
4329  echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332  ac_header_preproc=no
4333fi
4334rm -f conftest.err conftest.$ac_ext
4335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4336echo "${ECHO_T}$ac_header_preproc" >&6
4337
4338# So?  What about this header?
4339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4340  yes:no: )
4341    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4343    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4345    ac_header_preproc=yes
4346    ;;
4347  no:yes:* )
4348    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4350    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4351echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4352    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4354    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4355echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4356    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4358    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4360    (
4361      cat <<\_ASBOX
4362## ------------------------------------------------- ##
4363## Report this to gleb@deakin.edu.au esteban@v7w.com ##
4364## ------------------------------------------------- ##
4365_ASBOX
4366    ) |
4367      sed "s/^/$as_me: WARNING:     /" >&2
4368    ;;
4369esac
4370echo "$as_me:$LINENO: checking for $ac_header" >&5
4371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  eval "$as_ac_Header=\$ac_header_preproc"
4376fi
4377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4379
4380fi
4381if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382  cat >>confdefs.h <<_ACEOF
4383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4384_ACEOF
4385
4386fi
4387
4388done
4389
4390ac_ext=cc
4391ac_cpp='$CXXCPP $CPPFLAGS'
4392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4395if test -n "$ac_tool_prefix"; then
4396  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4397  do
4398    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400echo "$as_me:$LINENO: checking for $ac_word" >&5
4401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402if test "${ac_cv_prog_CXX+set}" = set; then
4403  echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405  if test -n "$CXX"; then
4406  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411  IFS=$as_save_IFS
4412  test -z "$as_dir" && as_dir=.
4413  for ac_exec_ext in '' $ac_executable_extensions; do
4414  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417    break 2
4418  fi
4419done
4420done
4421
4422fi
4423fi
4424CXX=$ac_cv_prog_CXX
4425if test -n "$CXX"; then
4426  echo "$as_me:$LINENO: result: $CXX" >&5
4427echo "${ECHO_T}$CXX" >&6
4428else
4429  echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
4431fi
4432
4433    test -n "$CXX" && break
4434  done
4435fi
4436if test -z "$CXX"; then
4437  ac_ct_CXX=$CXX
4438  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4439do
4440  # Extract the first word of "$ac_prog", so it can be a program name with args.
4441set dummy $ac_prog; ac_word=$2
4442echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  if test -n "$ac_ct_CXX"; then
4448  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455  for ac_exec_ext in '' $ac_executable_extensions; do
4456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_ac_ct_CXX="$ac_prog"
4458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462done
4463
4464fi
4465fi
4466ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467if test -n "$ac_ct_CXX"; then
4468  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4469echo "${ECHO_T}$ac_ct_CXX" >&6
4470else
4471  echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
4473fi
4474
4475  test -n "$ac_ct_CXX" && break
4476done
4477test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4478
4479  CXX=$ac_ct_CXX
4480fi
4481
4482
4483# Provide some information about the compiler.
4484echo "$as_me:$LINENO:" \
4485     "checking for C++ compiler version" >&5
4486ac_compiler=`set X $ac_compile; echo $2`
4487{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4488  (eval $ac_compiler --version </dev/null >&5) 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }
4492{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4493  (eval $ac_compiler -v </dev/null >&5) 2>&5
4494  ac_status=$?
4495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496  (exit $ac_status); }
4497{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4498  (eval $ac_compiler -V </dev/null >&5) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }
4502
4503echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4504echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4506  echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508  cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h.  */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h.  */
4514
4515int
4516main ()
4517{
4518#ifndef __GNUC__
4519       choke me
4520#endif
4521
4522  ;
4523  return 0;
4524}
4525_ACEOF
4526rm -f conftest.$ac_objext
4527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528  (eval $ac_compile) 2>conftest.er1
4529  ac_status=$?
4530  grep -v '^ *+' conftest.er1 >conftest.err
4531  rm -f conftest.er1
4532  cat conftest.err >&5
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); } &&
4535	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537  (eval $ac_try) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; } &&
4541	 { ac_try='test -s conftest.$ac_objext'
4542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543  (eval $ac_try) 2>&5
4544  ac_status=$?
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); }; }; then
4547  ac_compiler_gnu=yes
4548else
4549  echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552ac_compiler_gnu=no
4553fi
4554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4556
4557fi
4558echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4559echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4560GXX=`test $ac_compiler_gnu = yes && echo yes`
4561ac_test_CXXFLAGS=${CXXFLAGS+set}
4562ac_save_CXXFLAGS=$CXXFLAGS
4563CXXFLAGS="-g"
4564echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4565echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4566if test "${ac_cv_prog_cxx_g+set}" = set; then
4567  echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569  cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h.  */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h.  */
4575
4576int
4577main ()
4578{
4579
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586  (eval $ac_compile) 2>conftest.er1
4587  ac_status=$?
4588  grep -v '^ *+' conftest.er1 >conftest.err
4589  rm -f conftest.er1
4590  cat conftest.err >&5
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); } &&
4593	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595  (eval $ac_try) 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; } &&
4599	 { ac_try='test -s conftest.$ac_objext'
4600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601  (eval $ac_try) 2>&5
4602  ac_status=$?
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); }; }; then
4605  ac_cv_prog_cxx_g=yes
4606else
4607  echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610ac_cv_prog_cxx_g=no
4611fi
4612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4615echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4616if test "$ac_test_CXXFLAGS" = set; then
4617  CXXFLAGS=$ac_save_CXXFLAGS
4618elif test $ac_cv_prog_cxx_g = yes; then
4619  if test "$GXX" = yes; then
4620    CXXFLAGS="-g -O2"
4621  else
4622    CXXFLAGS="-g"
4623  fi
4624else
4625  if test "$GXX" = yes; then
4626    CXXFLAGS="-O2"
4627  else
4628    CXXFLAGS=
4629  fi
4630fi
4631for ac_declaration in \
4632   '' \
4633   'extern "C" void std::exit (int) throw (); using std::exit;' \
4634   'extern "C" void std::exit (int); using std::exit;' \
4635   'extern "C" void exit (int) throw ();' \
4636   'extern "C" void exit (int);' \
4637   'void exit (int);'
4638do
4639  cat >conftest.$ac_ext <<_ACEOF
4640/* confdefs.h.  */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h.  */
4645$ac_declaration
4646#include <stdlib.h>
4647int
4648main ()
4649{
4650exit (42);
4651  ;
4652  return 0;
4653}
4654_ACEOF
4655rm -f conftest.$ac_objext
4656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657  (eval $ac_compile) 2>conftest.er1
4658  ac_status=$?
4659  grep -v '^ *+' conftest.er1 >conftest.err
4660  rm -f conftest.er1
4661  cat conftest.err >&5
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); } &&
4664	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666  (eval $ac_try) 2>&5
4667  ac_status=$?
4668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669  (exit $ac_status); }; } &&
4670	 { ac_try='test -s conftest.$ac_objext'
4671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672  (eval $ac_try) 2>&5
4673  ac_status=$?
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); }; }; then
4676  :
4677else
4678  echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681continue
4682fi
4683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684  cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690$ac_declaration
4691int
4692main ()
4693{
4694exit (42);
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext
4700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701  (eval $ac_compile) 2>conftest.er1
4702  ac_status=$?
4703  grep -v '^ *+' conftest.er1 >conftest.err
4704  rm -f conftest.er1
4705  cat conftest.err >&5
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); } &&
4708	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710  (eval $ac_try) 2>&5
4711  ac_status=$?
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); }; } &&
4714	 { ac_try='test -s conftest.$ac_objext'
4715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716  (eval $ac_try) 2>&5
4717  ac_status=$?
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); }; }; then
4720  break
4721else
4722  echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725fi
4726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4727done
4728rm -f conftest*
4729if test -n "$ac_declaration"; then
4730  echo '#ifdef __cplusplus' >>confdefs.h
4731  echo $ac_declaration      >>confdefs.h
4732  echo '#endif'             >>confdefs.h
4733fi
4734
4735ac_ext=cc
4736ac_cpp='$CXXCPP $CPPFLAGS'
4737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740
4741depcc="$CXX"  am_compiler_list=
4742
4743echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4744echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4745if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4749  # We make a subdir and do the tests there.  Otherwise we can end up
4750  # making bogus files that we don't know about and never remove.  For
4751  # instance it was reported that on HP-UX the gcc test will end up
4752  # making a dummy file named `D' -- because `-MD' means `put the output
4753  # in D'.
4754  mkdir conftest.dir
4755  # Copy depcomp to subdir because otherwise we won't find it if we're
4756  # using a relative directory.
4757  cp "$am_depcomp" conftest.dir
4758  cd conftest.dir
4759  # We will build objects and dependencies in a subdirectory because
4760  # it helps to detect inapplicable dependency modes.  For instance
4761  # both Tru64's cc and ICC support -MD to output dependencies as a
4762  # side effect of compilation, but ICC will put the dependencies in
4763  # the current directory while Tru64 will put them in the object
4764  # directory.
4765  mkdir sub
4766
4767  am_cv_CXX_dependencies_compiler_type=none
4768  if test "$am_compiler_list" = ""; then
4769     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4770  fi
4771  for depmode in $am_compiler_list; do
4772    # Setup a source with many dependencies, because some compilers
4773    # like to wrap large dependency lists on column 80 (with \), and
4774    # we should not choose a depcomp mode which is confused by this.
4775    #
4776    # We need to recreate these files for each test, as the compiler may
4777    # overwrite some of them when testing with obscure command lines.
4778    # This happens at least with the AIX C compiler.
4779    : > sub/conftest.c
4780    for i in 1 2 3 4 5 6; do
4781      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4782      : > sub/conftst$i.h
4783    done
4784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4785
4786    case $depmode in
4787    nosideeffect)
4788      # after this tag, mechanisms are not by side-effect, so they'll
4789      # only be used when explicitly requested
4790      if test "x$enable_dependency_tracking" = xyes; then
4791	continue
4792      else
4793	break
4794      fi
4795      ;;
4796    none) break ;;
4797    esac
4798    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4799    # mode.  It turns out that the SunPro C++ compiler does not properly
4800    # handle `-M -o', and we need to detect this.
4801    if depmode=$depmode \
4802       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4803       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4805         >/dev/null 2>conftest.err &&
4806       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4807       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4808       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4809      # icc doesn't choke on unknown options, it will just issue warnings
4810      # (even with -Werror).  So we grep stderr for any message
4811      # that says an option was ignored.
4812      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4813        am_cv_CXX_dependencies_compiler_type=$depmode
4814        break
4815      fi
4816    fi
4817  done
4818
4819  cd ..
4820  rm -rf conftest.dir
4821else
4822  am_cv_CXX_dependencies_compiler_type=none
4823fi
4824
4825fi
4826echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4827echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4828CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4829
4830
4831
4832if
4833  test "x$enable_dependency_tracking" != xno \
4834  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4835  am__fastdepCXX_TRUE=
4836  am__fastdepCXX_FALSE='#'
4837else
4838  am__fastdepCXX_TRUE='#'
4839  am__fastdepCXX_FALSE=
4840fi
4841
4842
4843ac_ext=cc
4844ac_cpp='$CXXCPP $CPPFLAGS'
4845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4848echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4849echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4850if test -z "$CXXCPP"; then
4851  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4852  echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854      # Double quotes because CXXCPP needs to be expanded
4855    for CXXCPP in "$CXX -E" "/lib/cpp"
4856    do
4857      ac_preproc_ok=false
4858for ac_cxx_preproc_warn_flag in '' yes
4859do
4860  # Use a header file that comes with gcc, so configuring glibc
4861  # with a fresh cross-compiler works.
4862  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863  # <limits.h> exists even on freestanding compilers.
4864  # On the NeXT, cc -E runs the code through the compiler's parser,
4865  # not just through cpp. "Syntax error" is here to catch this case.
4866  cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h.  */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h.  */
4872#ifdef __STDC__
4873# include <limits.h>
4874#else
4875# include <assert.h>
4876#endif
4877		     Syntax error
4878_ACEOF
4879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4880  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } >/dev/null; then
4887  if test -s conftest.err; then
4888    ac_cpp_err=$ac_cxx_preproc_warn_flag
4889    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4890  else
4891    ac_cpp_err=
4892  fi
4893else
4894  ac_cpp_err=yes
4895fi
4896if test -z "$ac_cpp_err"; then
4897  :
4898else
4899  echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902  # Broken: fails on valid input.
4903continue
4904fi
4905rm -f conftest.err conftest.$ac_ext
4906
4907  # OK, works on sane cases.  Now check whether non-existent headers
4908  # can be detected and how.
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915#include <ac_nonexistent.h>
4916_ACEOF
4917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4918  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919  ac_status=$?
4920  grep -v '^ *+' conftest.er1 >conftest.err
4921  rm -f conftest.er1
4922  cat conftest.err >&5
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); } >/dev/null; then
4925  if test -s conftest.err; then
4926    ac_cpp_err=$ac_cxx_preproc_warn_flag
4927    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4928  else
4929    ac_cpp_err=
4930  fi
4931else
4932  ac_cpp_err=yes
4933fi
4934if test -z "$ac_cpp_err"; then
4935  # Broken: success on invalid input.
4936continue
4937else
4938  echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941  # Passes both tests.
4942ac_preproc_ok=:
4943break
4944fi
4945rm -f conftest.err conftest.$ac_ext
4946
4947done
4948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949rm -f conftest.err conftest.$ac_ext
4950if $ac_preproc_ok; then
4951  break
4952fi
4953
4954    done
4955    ac_cv_prog_CXXCPP=$CXXCPP
4956
4957fi
4958  CXXCPP=$ac_cv_prog_CXXCPP
4959else
4960  ac_cv_prog_CXXCPP=$CXXCPP
4961fi
4962echo "$as_me:$LINENO: result: $CXXCPP" >&5
4963echo "${ECHO_T}$CXXCPP" >&6
4964ac_preproc_ok=false
4965for ac_cxx_preproc_warn_flag in '' yes
4966do
4967  # Use a header file that comes with gcc, so configuring glibc
4968  # with a fresh cross-compiler works.
4969  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970  # <limits.h> exists even on freestanding compilers.
4971  # On the NeXT, cc -E runs the code through the compiler's parser,
4972  # not just through cpp. "Syntax error" is here to catch this case.
4973  cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979#ifdef __STDC__
4980# include <limits.h>
4981#else
4982# include <assert.h>
4983#endif
4984		     Syntax error
4985_ACEOF
4986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988  ac_status=$?
4989  grep -v '^ *+' conftest.er1 >conftest.err
4990  rm -f conftest.er1
4991  cat conftest.err >&5
4992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); } >/dev/null; then
4994  if test -s conftest.err; then
4995    ac_cpp_err=$ac_cxx_preproc_warn_flag
4996    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4997  else
4998    ac_cpp_err=
4999  fi
5000else
5001  ac_cpp_err=yes
5002fi
5003if test -z "$ac_cpp_err"; then
5004  :
5005else
5006  echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009  # Broken: fails on valid input.
5010continue
5011fi
5012rm -f conftest.err conftest.$ac_ext
5013
5014  # OK, works on sane cases.  Now check whether non-existent headers
5015  # can be detected and how.
5016  cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h.  */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h.  */
5022#include <ac_nonexistent.h>
5023_ACEOF
5024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026  ac_status=$?
5027  grep -v '^ *+' conftest.er1 >conftest.err
5028  rm -f conftest.er1
5029  cat conftest.err >&5
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); } >/dev/null; then
5032  if test -s conftest.err; then
5033    ac_cpp_err=$ac_cxx_preproc_warn_flag
5034    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5035  else
5036    ac_cpp_err=
5037  fi
5038else
5039  ac_cpp_err=yes
5040fi
5041if test -z "$ac_cpp_err"; then
5042  # Broken: success on invalid input.
5043continue
5044else
5045  echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048  # Passes both tests.
5049ac_preproc_ok=:
5050break
5051fi
5052rm -f conftest.err conftest.$ac_ext
5053
5054done
5055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5056rm -f conftest.err conftest.$ac_ext
5057if $ac_preproc_ok; then
5058  :
5059else
5060  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5061See \`config.log' for more details." >&5
5062echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5063See \`config.log' for more details." >&2;}
5064   { (exit 1); exit 1; }; }
5065fi
5066
5067ac_ext=cc
5068ac_cpp='$CXXCPP $CPPFLAGS'
5069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5072
5073
5074ac_ext=f
5075ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5076ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5078if test -n "$ac_tool_prefix"; then
5079  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5080  do
5081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083echo "$as_me:$LINENO: checking for $ac_word" >&5
5084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085if test "${ac_cv_prog_F77+set}" = set; then
5086  echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088  if test -n "$F77"; then
5089  ac_cv_prog_F77="$F77" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094  IFS=$as_save_IFS
5095  test -z "$as_dir" && as_dir=.
5096  for ac_exec_ext in '' $ac_executable_extensions; do
5097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103done
5104
5105fi
5106fi
5107F77=$ac_cv_prog_F77
5108if test -n "$F77"; then
5109  echo "$as_me:$LINENO: result: $F77" >&5
5110echo "${ECHO_T}$F77" >&6
5111else
5112  echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114fi
5115
5116    test -n "$F77" && break
5117  done
5118fi
5119if test -z "$F77"; then
5120  ac_ct_F77=$F77
5121  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5122do
5123  # Extract the first word of "$ac_prog", so it can be a program name with args.
5124set dummy $ac_prog; ac_word=$2
5125echo "$as_me:$LINENO: checking for $ac_word" >&5
5126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5127if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  if test -n "$ac_ct_F77"; then
5131  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138  for ac_exec_ext in '' $ac_executable_extensions; do
5139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140    ac_cv_prog_ac_ct_F77="$ac_prog"
5141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145done
5146
5147fi
5148fi
5149ac_ct_F77=$ac_cv_prog_ac_ct_F77
5150if test -n "$ac_ct_F77"; then
5151  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5152echo "${ECHO_T}$ac_ct_F77" >&6
5153else
5154  echo "$as_me:$LINENO: result: no" >&5
5155echo "${ECHO_T}no" >&6
5156fi
5157
5158  test -n "$ac_ct_F77" && break
5159done
5160
5161  F77=$ac_ct_F77
5162fi
5163
5164
5165# Provide some information about the compiler.
5166echo "$as_me:5166:" \
5167     "checking for Fortran 77 compiler version" >&5
5168ac_compiler=`set X $ac_compile; echo $2`
5169{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5170  (eval $ac_compiler --version </dev/null >&5) 2>&5
5171  ac_status=$?
5172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); }
5174{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5175  (eval $ac_compiler -v </dev/null >&5) 2>&5
5176  ac_status=$?
5177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178  (exit $ac_status); }
5179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5180  (eval $ac_compiler -V </dev/null >&5) 2>&5
5181  ac_status=$?
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); }
5184rm -f a.out
5185
5186# If we don't use `.F' as extension, the preprocessor is not run on the
5187# input file.  (Note that this only needs to work for GNU compilers.)
5188ac_save_ext=$ac_ext
5189ac_ext=F
5190echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5191echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5192if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  cat >conftest.$ac_ext <<_ACEOF
5196      program main
5197#ifndef __GNUC__
5198       choke me
5199#endif
5200
5201      end
5202_ACEOF
5203rm -f conftest.$ac_objext
5204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205  (eval $ac_compile) 2>conftest.er1
5206  ac_status=$?
5207  grep -v '^ *+' conftest.er1 >conftest.err
5208  rm -f conftest.er1
5209  cat conftest.err >&5
5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  (exit $ac_status); } &&
5212	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; } &&
5218	 { ac_try='test -s conftest.$ac_objext'
5219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220  (eval $ac_try) 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }; }; then
5224  ac_compiler_gnu=yes
5225else
5226  echo "$as_me: failed program was:" >&5
5227sed 's/^/| /' conftest.$ac_ext >&5
5228
5229ac_compiler_gnu=no
5230fi
5231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5233
5234fi
5235echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5236echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5237ac_ext=$ac_save_ext
5238ac_test_FFLAGS=${FFLAGS+set}
5239ac_save_FFLAGS=$FFLAGS
5240FFLAGS=
5241echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5242echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5243if test "${ac_cv_prog_f77_g+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  FFLAGS=-g
5247cat >conftest.$ac_ext <<_ACEOF
5248      program main
5249
5250      end
5251_ACEOF
5252rm -f conftest.$ac_objext
5253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254  (eval $ac_compile) 2>conftest.er1
5255  ac_status=$?
5256  grep -v '^ *+' conftest.er1 >conftest.err
5257  rm -f conftest.er1
5258  cat conftest.err >&5
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); } &&
5261	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263  (eval $ac_try) 2>&5
5264  ac_status=$?
5265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266  (exit $ac_status); }; } &&
5267	 { ac_try='test -s conftest.$ac_objext'
5268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269  (eval $ac_try) 2>&5
5270  ac_status=$?
5271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272  (exit $ac_status); }; }; then
5273  ac_cv_prog_f77_g=yes
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278ac_cv_prog_f77_g=no
5279fi
5280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5281
5282fi
5283echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5284echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5285if test "$ac_test_FFLAGS" = set; then
5286  FFLAGS=$ac_save_FFLAGS
5287elif test $ac_cv_prog_f77_g = yes; then
5288  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5289    FFLAGS="-g -O2"
5290  else
5291    FFLAGS="-g"
5292  fi
5293else
5294  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5295    FFLAGS="-O2"
5296  else
5297    FFLAGS=
5298  fi
5299fi
5300
5301G77=`test $ac_compiler_gnu = yes && echo yes`
5302ac_ext=c
5303ac_cpp='$CPP $CPPFLAGS'
5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308
5309
5310# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5311
5312# find the maximum length of command line arguments
5313echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5314echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5315if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318    i=0
5319  teststring="ABCD"
5320
5321  case $build_os in
5322  msdosdjgpp*)
5323    # On DJGPP, this test can blow up pretty badly due to problems in libc
5324    # (any single argument exceeding 2000 bytes causes a buffer overrun
5325    # during glob expansion).  Even if it were fixed, the result of this
5326    # check would be larger than it should be.
5327    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5328    ;;
5329
5330  gnu*)
5331    # Under GNU Hurd, this test is not required because there is
5332    # no limit to the length of command line arguments.
5333    # Libtool will interpret -1 as no limit whatsoever
5334    lt_cv_sys_max_cmd_len=-1;
5335    ;;
5336
5337  cygwin* | mingw*)
5338    # On Win9x/ME, this test blows up -- it succeeds, but takes
5339    # about 5 minutes as the teststring grows exponentially.
5340    # Worse, since 9x/ME are not pre-emptively multitasking,
5341    # you end up with a "frozen" computer, even though with patience
5342    # the test eventually succeeds (with a max line length of 256k).
5343    # Instead, let's just punt: use the minimum linelength reported by
5344    # all of the supported platforms: 8192 (on NT/2K/XP).
5345    lt_cv_sys_max_cmd_len=8192;
5346    ;;
5347
5348  amigaos*)
5349    # On AmigaOS with pdksh, this test takes hours, literally.
5350    # So we just punt and use a minimum line length of 8192.
5351    lt_cv_sys_max_cmd_len=8192;
5352    ;;
5353
5354 *)
5355    # If test is not a shell built-in, we'll probably end up computing a
5356    # maximum length that is only half of the actual maximum length, but
5357    # we can't tell.
5358    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5359	       = "XX$teststring") >/dev/null 2>&1 &&
5360	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5361	    lt_cv_sys_max_cmd_len=$new_result &&
5362	    test $i != 17 # 1/2 MB should be enough
5363    do
5364      i=`expr $i + 1`
5365      teststring=$teststring$teststring
5366    done
5367    teststring=
5368    # Add a significant safety factor because C++ compilers can tack on massive
5369    # amounts of additional arguments before passing them to the linker.
5370    # It appears as though 1/2 is a usable value.
5371    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5372    ;;
5373  esac
5374
5375fi
5376
5377if test -n $lt_cv_sys_max_cmd_len ; then
5378  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5379echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5380else
5381  echo "$as_me:$LINENO: result: none" >&5
5382echo "${ECHO_T}none" >&6
5383fi
5384
5385
5386
5387
5388# Check for command to grab the raw symbol name followed by C symbol from nm.
5389echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5390echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5391if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394
5395# These are sane defaults that work on at least a few old systems.
5396# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5397
5398# Character class describing NM global symbol codes.
5399symcode='[BCDEGRST]'
5400
5401# Regexp to match symbols that can be accessed directly from C.
5402sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5403
5404# Transform the above into a raw symbol and a C symbol.
5405symxfrm='\1 \2\3 \3'
5406
5407# Transform an extracted symbol line into a proper C declaration
5408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5409
5410# Transform an extracted symbol line into symbol name and symbol address
5411lt_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'"
5412
5413# Define system-specific variables.
5414case $host_os in
5415aix*)
5416  symcode='[BCDT]'
5417  ;;
5418cygwin* | mingw* | pw32*)
5419  symcode='[ABCDGISTW]'
5420  ;;
5421hpux*) # Its linker distinguishes data from code symbols
5422  if test "$host_cpu" = ia64; then
5423    symcode='[ABCDEGRST]'
5424  fi
5425  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5426  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'"
5427  ;;
5428irix* | nonstopux*)
5429  symcode='[BCDEGRST]'
5430  ;;
5431osf*)
5432  symcode='[BCDEGQRST]'
5433  ;;
5434solaris* | sysv5*)
5435  symcode='[BDRT]'
5436  ;;
5437sysv4)
5438  symcode='[DFNSTU]'
5439  ;;
5440esac
5441
5442# Handle CRLF in mingw tool chain
5443opt_cr=
5444case $build_os in
5445mingw*)
5446  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5447  ;;
5448esac
5449
5450# If we're using GNU nm, then use its standard symbol codes.
5451case `$NM -V 2>&1` in
5452*GNU* | *'with BFD'*)
5453  symcode='[ABCDGIRSTW]' ;;
5454esac
5455
5456# Try without a prefix undercore, then with it.
5457for ac_symprfx in "" "_"; do
5458
5459  # Write the raw and C identifiers.
5460  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5461
5462  # Check to see that the pipe works correctly.
5463  pipe_works=no
5464
5465  rm -f conftest*
5466  cat > conftest.$ac_ext <<EOF
5467#ifdef __cplusplus
5468extern "C" {
5469#endif
5470char nm_test_var;
5471void nm_test_func(){}
5472#ifdef __cplusplus
5473}
5474#endif
5475int main(){nm_test_var='a';nm_test_func();return(0);}
5476EOF
5477
5478  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479  (eval $ac_compile) 2>&5
5480  ac_status=$?
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); }; then
5483    # Now try to grab the symbols.
5484    nlist=conftest.nm
5485    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5486  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5487  ac_status=$?
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); } && test -s "$nlist"; then
5490      # Try sorting and uniquifying the output.
5491      if sort "$nlist" | uniq > "$nlist"T; then
5492	mv -f "$nlist"T "$nlist"
5493      else
5494	rm -f "$nlist"T
5495      fi
5496
5497      # Make sure that we snagged all the symbols we need.
5498      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5499	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5500	  cat <<EOF > conftest.$ac_ext
5501#ifdef __cplusplus
5502extern "C" {
5503#endif
5504
5505EOF
5506	  # Now generate the symbol file.
5507	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5508
5509	  cat <<EOF >> conftest.$ac_ext
5510#if defined (__STDC__) && __STDC__
5511# define lt_ptr_t void *
5512#else
5513# define lt_ptr_t char *
5514# define const
5515#endif
5516
5517/* The mapping between symbol names and symbols. */
5518const struct {
5519  const char *name;
5520  lt_ptr_t address;
5521}
5522lt_preloaded_symbols[] =
5523{
5524EOF
5525	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5526	  cat <<\EOF >> conftest.$ac_ext
5527  {0, (lt_ptr_t) 0}
5528};
5529
5530#ifdef __cplusplus
5531}
5532#endif
5533EOF
5534	  # Now try linking the two files.
5535	  mv conftest.$ac_objext conftstm.$ac_objext
5536	  lt_save_LIBS="$LIBS"
5537	  lt_save_CFLAGS="$CFLAGS"
5538	  LIBS="conftstm.$ac_objext"
5539	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5540	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541  (eval $ac_link) 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5545	    pipe_works=yes
5546	  fi
5547	  LIBS="$lt_save_LIBS"
5548	  CFLAGS="$lt_save_CFLAGS"
5549	else
5550	  echo "cannot find nm_test_func in $nlist" >&5
5551	fi
5552      else
5553	echo "cannot find nm_test_var in $nlist" >&5
5554      fi
5555    else
5556      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5557    fi
5558  else
5559    echo "$progname: failed program was:" >&5
5560    cat conftest.$ac_ext >&5
5561  fi
5562  rm -f conftest* conftst*
5563
5564  # Do not use the global_symbol_pipe unless it works.
5565  if test "$pipe_works" = yes; then
5566    break
5567  else
5568    lt_cv_sys_global_symbol_pipe=
5569  fi
5570done
5571
5572fi
5573
5574if test -z "$lt_cv_sys_global_symbol_pipe"; then
5575  lt_cv_sys_global_symbol_to_cdecl=
5576fi
5577if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5578  echo "$as_me:$LINENO: result: failed" >&5
5579echo "${ECHO_T}failed" >&6
5580else
5581  echo "$as_me:$LINENO: result: ok" >&5
5582echo "${ECHO_T}ok" >&6
5583fi
5584
5585echo "$as_me:$LINENO: checking for objdir" >&5
5586echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5587if test "${lt_cv_objdir+set}" = set; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  rm -f .libs 2>/dev/null
5591mkdir .libs 2>/dev/null
5592if test -d .libs; then
5593  lt_cv_objdir=.libs
5594else
5595  # MS-DOS does not allow filenames that begin with a dot.
5596  lt_cv_objdir=_libs
5597fi
5598rmdir .libs 2>/dev/null
5599fi
5600echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5601echo "${ECHO_T}$lt_cv_objdir" >&6
5602objdir=$lt_cv_objdir
5603
5604
5605
5606
5607
5608case $host_os in
5609aix3*)
5610  # AIX sometimes has problems with the GCC collect2 program.  For some
5611  # reason, if we set the COLLECT_NAMES environment variable, the problems
5612  # vanish in a puff of smoke.
5613  if test "X${COLLECT_NAMES+set}" != Xset; then
5614    COLLECT_NAMES=
5615    export COLLECT_NAMES
5616  fi
5617  ;;
5618esac
5619
5620# Sed substitution that helps us do robust quoting.  It backslashifies
5621# metacharacters that are still active within double-quoted strings.
5622Xsed='sed -e s/^X//'
5623sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5624
5625# Same as above, but do not quote variable references.
5626double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5627
5628# Sed substitution to delay expansion of an escaped shell variable in a
5629# double_quote_subst'ed string.
5630delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5631
5632# Sed substitution to avoid accidental globbing in evaled expressions
5633no_glob_subst='s/\*/\\\*/g'
5634
5635# Constants:
5636rm="rm -f"
5637
5638# Global variables:
5639default_ofile=libtool
5640can_build_shared=yes
5641
5642# All known linkers require a `.a' archive for static linking (except M$VC,
5643# which needs '.lib').
5644libext=a
5645ltmain="$ac_aux_dir/ltmain.sh"
5646ofile="$default_ofile"
5647with_gnu_ld="$lt_cv_prog_gnu_ld"
5648
5649if test -n "$ac_tool_prefix"; then
5650  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5651set dummy ${ac_tool_prefix}ar; ac_word=$2
5652echo "$as_me:$LINENO: checking for $ac_word" >&5
5653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5654if test "${ac_cv_prog_AR+set}" = set; then
5655  echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657  if test -n "$AR"; then
5658  ac_cv_prog_AR="$AR" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665  for ac_exec_ext in '' $ac_executable_extensions; do
5666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667    ac_cv_prog_AR="${ac_tool_prefix}ar"
5668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669    break 2
5670  fi
5671done
5672done
5673
5674fi
5675fi
5676AR=$ac_cv_prog_AR
5677if test -n "$AR"; then
5678  echo "$as_me:$LINENO: result: $AR" >&5
5679echo "${ECHO_T}$AR" >&6
5680else
5681  echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6
5683fi
5684
5685fi
5686if test -z "$ac_cv_prog_AR"; then
5687  ac_ct_AR=$AR
5688  # Extract the first word of "ar", so it can be a program name with args.
5689set dummy ar; ac_word=$2
5690echo "$as_me:$LINENO: checking for $ac_word" >&5
5691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5692if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5693  echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695  if test -n "$ac_ct_AR"; then
5696  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701  IFS=$as_save_IFS
5702  test -z "$as_dir" && as_dir=.
5703  for ac_exec_ext in '' $ac_executable_extensions; do
5704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705    ac_cv_prog_ac_ct_AR="ar"
5706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707    break 2
5708  fi
5709done
5710done
5711
5712  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5713fi
5714fi
5715ac_ct_AR=$ac_cv_prog_ac_ct_AR
5716if test -n "$ac_ct_AR"; then
5717  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5718echo "${ECHO_T}$ac_ct_AR" >&6
5719else
5720  echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722fi
5723
5724  AR=$ac_ct_AR
5725else
5726  AR="$ac_cv_prog_AR"
5727fi
5728
5729if test -n "$ac_tool_prefix"; then
5730  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5731set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5732echo "$as_me:$LINENO: checking for $ac_word" >&5
5733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734if test "${ac_cv_prog_RANLIB+set}" = set; then
5735  echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737  if test -n "$RANLIB"; then
5738  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743  IFS=$as_save_IFS
5744  test -z "$as_dir" && as_dir=.
5745  for ac_exec_ext in '' $ac_executable_extensions; do
5746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749    break 2
5750  fi
5751done
5752done
5753
5754fi
5755fi
5756RANLIB=$ac_cv_prog_RANLIB
5757if test -n "$RANLIB"; then
5758  echo "$as_me:$LINENO: result: $RANLIB" >&5
5759echo "${ECHO_T}$RANLIB" >&6
5760else
5761  echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763fi
5764
5765fi
5766if test -z "$ac_cv_prog_RANLIB"; then
5767  ac_ct_RANLIB=$RANLIB
5768  # Extract the first word of "ranlib", so it can be a program name with args.
5769set dummy ranlib; ac_word=$2
5770echo "$as_me:$LINENO: checking for $ac_word" >&5
5771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5773  echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775  if test -n "$ac_ct_RANLIB"; then
5776  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781  IFS=$as_save_IFS
5782  test -z "$as_dir" && as_dir=.
5783  for ac_exec_ext in '' $ac_executable_extensions; do
5784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785    ac_cv_prog_ac_ct_RANLIB="ranlib"
5786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787    break 2
5788  fi
5789done
5790done
5791
5792  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5793fi
5794fi
5795ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5796if test -n "$ac_ct_RANLIB"; then
5797  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5798echo "${ECHO_T}$ac_ct_RANLIB" >&6
5799else
5800  echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802fi
5803
5804  RANLIB=$ac_ct_RANLIB
5805else
5806  RANLIB="$ac_cv_prog_RANLIB"
5807fi
5808
5809if test -n "$ac_tool_prefix"; then
5810  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}strip; ac_word=$2
5812echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814if test "${ac_cv_prog_STRIP+set}" = set; then
5815  echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817  if test -n "$STRIP"; then
5818  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825  for ac_exec_ext in '' $ac_executable_extensions; do
5826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832done
5833
5834fi
5835fi
5836STRIP=$ac_cv_prog_STRIP
5837if test -n "$STRIP"; then
5838  echo "$as_me:$LINENO: result: $STRIP" >&5
5839echo "${ECHO_T}$STRIP" >&6
5840else
5841  echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843fi
5844
5845fi
5846if test -z "$ac_cv_prog_STRIP"; then
5847  ac_ct_STRIP=$STRIP
5848  # Extract the first word of "strip", so it can be a program name with args.
5849set dummy strip; ac_word=$2
5850echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5853  echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855  if test -n "$ac_ct_STRIP"; then
5856  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863  for ac_exec_ext in '' $ac_executable_extensions; do
5864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865    ac_cv_prog_ac_ct_STRIP="strip"
5866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870done
5871
5872  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5873fi
5874fi
5875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876if test -n "$ac_ct_STRIP"; then
5877  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5878echo "${ECHO_T}$ac_ct_STRIP" >&6
5879else
5880  echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882fi
5883
5884  STRIP=$ac_ct_STRIP
5885else
5886  STRIP="$ac_cv_prog_STRIP"
5887fi
5888
5889
5890old_CC="$CC"
5891old_CFLAGS="$CFLAGS"
5892
5893# Set sane defaults for various variables
5894test -z "$AR" && AR=ar
5895test -z "$AR_FLAGS" && AR_FLAGS=cru
5896test -z "$AS" && AS=as
5897test -z "$CC" && CC=cc
5898test -z "$LTCC" && LTCC=$CC
5899test -z "$DLLTOOL" && DLLTOOL=dlltool
5900test -z "$LD" && LD=ld
5901test -z "$LN_S" && LN_S="ln -s"
5902test -z "$MAGIC_CMD" && MAGIC_CMD=file
5903test -z "$NM" && NM=nm
5904test -z "$SED" && SED=sed
5905test -z "$OBJDUMP" && OBJDUMP=objdump
5906test -z "$RANLIB" && RANLIB=:
5907test -z "$STRIP" && STRIP=:
5908test -z "$ac_objext" && ac_objext=o
5909
5910# Determine commands to create old-style static archives.
5911old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5912old_postinstall_cmds='chmod 644 $oldlib'
5913old_postuninstall_cmds=
5914
5915if test -n "$RANLIB"; then
5916  case $host_os in
5917  openbsd*)
5918    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5919    ;;
5920  *)
5921    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5922    ;;
5923  esac
5924  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5925fi
5926
5927# Only perform the check for file, if the check method requires it
5928case $deplibs_check_method in
5929file_magic*)
5930  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5931    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5932echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5933if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936  case $MAGIC_CMD in
5937[\\/*] |  ?:[\\/]*)
5938  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5939  ;;
5940*)
5941  lt_save_MAGIC_CMD="$MAGIC_CMD"
5942  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5943  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5944  for ac_dir in $ac_dummy; do
5945    IFS="$lt_save_ifs"
5946    test -z "$ac_dir" && ac_dir=.
5947    if test -f $ac_dir/${ac_tool_prefix}file; then
5948      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5949      if test -n "$file_magic_test_file"; then
5950	case $deplibs_check_method in
5951	"file_magic "*)
5952	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5953	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5954	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5955	    $EGREP "$file_magic_regex" > /dev/null; then
5956	    :
5957	  else
5958	    cat <<EOF 1>&2
5959
5960*** Warning: the command libtool uses to detect shared libraries,
5961*** $file_magic_cmd, produces output that libtool cannot recognize.
5962*** The result is that libtool may fail to recognize shared libraries
5963*** as such.  This will affect the creation of libtool libraries that
5964*** depend on shared libraries, but programs linked with such libtool
5965*** libraries will work regardless of this problem.  Nevertheless, you
5966*** may want to report the problem to your system manager and/or to
5967*** bug-libtool@gnu.org
5968
5969EOF
5970	  fi ;;
5971	esac
5972      fi
5973      break
5974    fi
5975  done
5976  IFS="$lt_save_ifs"
5977  MAGIC_CMD="$lt_save_MAGIC_CMD"
5978  ;;
5979esac
5980fi
5981
5982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5983if test -n "$MAGIC_CMD"; then
5984  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5985echo "${ECHO_T}$MAGIC_CMD" >&6
5986else
5987  echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989fi
5990
5991if test -z "$lt_cv_path_MAGIC_CMD"; then
5992  if test -n "$ac_tool_prefix"; then
5993    echo "$as_me:$LINENO: checking for file" >&5
5994echo $ECHO_N "checking for file... $ECHO_C" >&6
5995if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  case $MAGIC_CMD in
5999[\\/*] |  ?:[\\/]*)
6000  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6001  ;;
6002*)
6003  lt_save_MAGIC_CMD="$MAGIC_CMD"
6004  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6005  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6006  for ac_dir in $ac_dummy; do
6007    IFS="$lt_save_ifs"
6008    test -z "$ac_dir" && ac_dir=.
6009    if test -f $ac_dir/file; then
6010      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6011      if test -n "$file_magic_test_file"; then
6012	case $deplibs_check_method in
6013	"file_magic "*)
6014	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6015	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6016	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6017	    $EGREP "$file_magic_regex" > /dev/null; then
6018	    :
6019	  else
6020	    cat <<EOF 1>&2
6021
6022*** Warning: the command libtool uses to detect shared libraries,
6023*** $file_magic_cmd, produces output that libtool cannot recognize.
6024*** The result is that libtool may fail to recognize shared libraries
6025*** as such.  This will affect the creation of libtool libraries that
6026*** depend on shared libraries, but programs linked with such libtool
6027*** libraries will work regardless of this problem.  Nevertheless, you
6028*** may want to report the problem to your system manager and/or to
6029*** bug-libtool@gnu.org
6030
6031EOF
6032	  fi ;;
6033	esac
6034      fi
6035      break
6036    fi
6037  done
6038  IFS="$lt_save_ifs"
6039  MAGIC_CMD="$lt_save_MAGIC_CMD"
6040  ;;
6041esac
6042fi
6043
6044MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6045if test -n "$MAGIC_CMD"; then
6046  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6047echo "${ECHO_T}$MAGIC_CMD" >&6
6048else
6049  echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051fi
6052
6053  else
6054    MAGIC_CMD=:
6055  fi
6056fi
6057
6058  fi
6059  ;;
6060esac
6061
6062enable_dlopen=no
6063enable_win32_dll=no
6064
6065# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6066if test "${enable_libtool_lock+set}" = set; then
6067  enableval="$enable_libtool_lock"
6068
6069fi;
6070test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6071
6072
6073# Check whether --with-pic or --without-pic was given.
6074if test "${with_pic+set}" = set; then
6075  withval="$with_pic"
6076  pic_mode="$withval"
6077else
6078  pic_mode=default
6079fi;
6080test -z "$pic_mode" && pic_mode=default
6081
6082# Use C for the default configuration in the libtool script
6083tagname=
6084lt_save_CC="$CC"
6085ac_ext=c
6086ac_cpp='$CPP $CPPFLAGS'
6087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090
6091
6092# Source file extension for C test sources.
6093ac_ext=c
6094
6095# Object file extension for compiled C test sources.
6096objext=o
6097objext=$objext
6098
6099# Code to be used in simple compile tests
6100lt_simple_compile_test_code="int some_variable = 0;\n"
6101
6102# Code to be used in simple link tests
6103lt_simple_link_test_code='int main(){return(0);}\n'
6104
6105
6106# If no C compiler was specified, use CC.
6107LTCC=${LTCC-"$CC"}
6108
6109# Allow CC to be a program name with arguments.
6110compiler=$CC
6111
6112
6113#
6114# Check for any special shared library compilation flags.
6115#
6116lt_prog_cc_shlib=
6117if test "$GCC" = no; then
6118  case $host_os in
6119  sco3.2v5*)
6120    lt_prog_cc_shlib='-belf'
6121    ;;
6122  esac
6123fi
6124if test -n "$lt_prog_cc_shlib"; then
6125  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6126echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6127  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6128  else
6129    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6130echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6131    lt_cv_prog_cc_can_build_shared=no
6132  fi
6133fi
6134
6135
6136#
6137# Check to make sure the static flag actually works.
6138#
6139echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6140echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6141if test "${lt_prog_compiler_static_works+set}" = set; then
6142  echo $ECHO_N "(cached) $ECHO_C" >&6
6143else
6144  lt_prog_compiler_static_works=no
6145   save_LDFLAGS="$LDFLAGS"
6146   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6147   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6148   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6149     # The compiler can only warn and ignore the option if not recognized
6150     # So say no if there are warnings
6151     if test -s conftest.err; then
6152       # Append any errors to the config.log.
6153       cat conftest.err 1>&5
6154     else
6155       lt_prog_compiler_static_works=yes
6156     fi
6157   fi
6158   $rm conftest*
6159   LDFLAGS="$save_LDFLAGS"
6160
6161fi
6162echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6163echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6164
6165if test x"$lt_prog_compiler_static_works" = xyes; then
6166    :
6167else
6168    lt_prog_compiler_static=
6169fi
6170
6171
6172
6173
6174lt_prog_compiler_no_builtin_flag=
6175
6176if test "$GCC" = yes; then
6177  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6178
6179
6180echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6181echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6182if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6183  echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185  lt_cv_prog_compiler_rtti_exceptions=no
6186  ac_outfile=conftest.$ac_objext
6187   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6188   lt_compiler_flag="-fno-rtti -fno-exceptions"
6189   # Insert the option either (1) after the last *FLAGS variable, or
6190   # (2) before a word containing "conftest.", or (3) at the end.
6191   # Note that $ac_compile itself does not contain backslashes and begins
6192   # with a dollar sign (not a hyphen), so the echo should work correctly.
6193   # The option is referenced via a variable to avoid confusing sed.
6194   lt_compile=`echo "$ac_compile" | $SED \
6195   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6196   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6197   -e 's:$: $lt_compiler_flag:'`
6198   (eval echo "\"\$as_me:6198: $lt_compile\"" >&5)
6199   (eval "$lt_compile" 2>conftest.err)
6200   ac_status=$?
6201   cat conftest.err >&5
6202   echo "$as_me:6202: \$? = $ac_status" >&5
6203   if (exit $ac_status) && test -s "$ac_outfile"; then
6204     # The compiler can only warn and ignore the option if not recognized
6205     # So say no if there are warnings
6206     if test ! -s conftest.err; then
6207       lt_cv_prog_compiler_rtti_exceptions=yes
6208     fi
6209   fi
6210   $rm conftest*
6211
6212fi
6213echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6214echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6215
6216if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6217    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6218else
6219    :
6220fi
6221
6222fi
6223
6224lt_prog_compiler_wl=
6225lt_prog_compiler_pic=
6226lt_prog_compiler_static=
6227
6228echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6229echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6230
6231  if test "$GCC" = yes; then
6232    lt_prog_compiler_wl='-Wl,'
6233    lt_prog_compiler_static='-static'
6234
6235    case $host_os in
6236      aix*)
6237      # All AIX code is PIC.
6238      if test "$host_cpu" = ia64; then
6239	# AIX 5 now supports IA64 processor
6240	lt_prog_compiler_static='-Bstatic'
6241      fi
6242      ;;
6243
6244    amigaos*)
6245      # FIXME: we need at least 68020 code to build shared libraries, but
6246      # adding the `-m68020' flag to GCC prevents building anything better,
6247      # like `-m68040'.
6248      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6249      ;;
6250
6251    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6252      # PIC is the default for these OSes.
6253      ;;
6254
6255    mingw* | pw32* | os2*)
6256      # This hack is so that the source file can tell whether it is being
6257      # built for inclusion in a dll (and should export symbols for example).
6258      lt_prog_compiler_pic='-DDLL_EXPORT'
6259      ;;
6260
6261    darwin* | rhapsody*)
6262      # PIC is the default on this platform
6263      # Common symbols not allowed in MH_DYLIB files
6264      lt_prog_compiler_pic='-fno-common'
6265      ;;
6266
6267    msdosdjgpp*)
6268      # Just because we use GCC doesn't mean we suddenly get shared libraries
6269      # on systems that don't support them.
6270      lt_prog_compiler_can_build_shared=no
6271      enable_shared=no
6272      ;;
6273
6274    sysv4*MP*)
6275      if test -d /usr/nec; then
6276	lt_prog_compiler_pic=-Kconform_pic
6277      fi
6278      ;;
6279
6280    hpux*)
6281      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6282      # not for PA HP-UX.
6283      case "$host_cpu" in
6284      hppa*64*|ia64*)
6285	# +Z the default
6286	;;
6287      *)
6288	lt_prog_compiler_pic='-fPIC'
6289	;;
6290      esac
6291      ;;
6292
6293    *)
6294      lt_prog_compiler_pic='-fPIC'
6295      ;;
6296    esac
6297  else
6298    # PORTME Check for flag to pass linker flags through the system compiler.
6299    case $host_os in
6300    aix*)
6301      lt_prog_compiler_wl='-Wl,'
6302      if test "$host_cpu" = ia64; then
6303	# AIX 5 now supports IA64 processor
6304	lt_prog_compiler_static='-Bstatic'
6305      else
6306	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6307      fi
6308      ;;
6309
6310    mingw* | pw32* | os2*)
6311      # This hack is so that the source file can tell whether it is being
6312      # built for inclusion in a dll (and should export symbols for example).
6313      lt_prog_compiler_pic='-DDLL_EXPORT'
6314      ;;
6315
6316    hpux9* | hpux10* | hpux11*)
6317      lt_prog_compiler_wl='-Wl,'
6318      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6319      # not for PA HP-UX.
6320      case "$host_cpu" in
6321      hppa*64*|ia64*)
6322	# +Z the default
6323	;;
6324      *)
6325	lt_prog_compiler_pic='+Z'
6326	;;
6327      esac
6328      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6329      lt_prog_compiler_static='${wl}-a ${wl}archive'
6330      ;;
6331
6332    irix5* | irix6* | nonstopux*)
6333      lt_prog_compiler_wl='-Wl,'
6334      # PIC (with -KPIC) is the default.
6335      lt_prog_compiler_static='-non_shared'
6336      ;;
6337
6338    newsos6)
6339      lt_prog_compiler_pic='-KPIC'
6340      lt_prog_compiler_static='-Bstatic'
6341      ;;
6342
6343    linux*)
6344      case $CC in
6345      icc* | ecc*)
6346	lt_prog_compiler_wl='-Wl,'
6347	lt_prog_compiler_pic='-KPIC'
6348	lt_prog_compiler_static='-static'
6349        ;;
6350      ccc*)
6351        lt_prog_compiler_wl='-Wl,'
6352        # All Alpha code is PIC.
6353        lt_prog_compiler_static='-non_shared'
6354        ;;
6355      esac
6356      ;;
6357
6358    osf3* | osf4* | osf5*)
6359      lt_prog_compiler_wl='-Wl,'
6360      # All OSF/1 code is PIC.
6361      lt_prog_compiler_static='-non_shared'
6362      ;;
6363
6364    sco3.2v5*)
6365      lt_prog_compiler_pic='-Kpic'
6366      lt_prog_compiler_static='-dn'
6367      ;;
6368
6369    solaris*)
6370      lt_prog_compiler_wl='-Wl,'
6371      lt_prog_compiler_pic='-KPIC'
6372      lt_prog_compiler_static='-Bstatic'
6373      ;;
6374
6375    sunos4*)
6376      lt_prog_compiler_wl='-Qoption ld '
6377      lt_prog_compiler_pic='-PIC'
6378      lt_prog_compiler_static='-Bstatic'
6379      ;;
6380
6381    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6382      lt_prog_compiler_wl='-Wl,'
6383      lt_prog_compiler_pic='-KPIC'
6384      lt_prog_compiler_static='-Bstatic'
6385      ;;
6386
6387    sysv4*MP*)
6388      if test -d /usr/nec ;then
6389	lt_prog_compiler_pic='-Kconform_pic'
6390	lt_prog_compiler_static='-Bstatic'
6391      fi
6392      ;;
6393
6394    uts4*)
6395      lt_prog_compiler_pic='-pic'
6396      lt_prog_compiler_static='-Bstatic'
6397      ;;
6398
6399    *)
6400      lt_prog_compiler_can_build_shared=no
6401      ;;
6402    esac
6403  fi
6404
6405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6406echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6407
6408#
6409# Check to make sure the PIC flag actually works.
6410#
6411if test -n "$lt_prog_compiler_pic"; then
6412
6413echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6414echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6415if test "${lt_prog_compiler_pic_works+set}" = set; then
6416  echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418  lt_prog_compiler_pic_works=no
6419  ac_outfile=conftest.$ac_objext
6420   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6421   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6422   # Insert the option either (1) after the last *FLAGS variable, or
6423   # (2) before a word containing "conftest.", or (3) at the end.
6424   # Note that $ac_compile itself does not contain backslashes and begins
6425   # with a dollar sign (not a hyphen), so the echo should work correctly.
6426   # The option is referenced via a variable to avoid confusing sed.
6427   lt_compile=`echo "$ac_compile" | $SED \
6428   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6430   -e 's:$: $lt_compiler_flag:'`
6431   (eval echo "\"\$as_me:6431: $lt_compile\"" >&5)
6432   (eval "$lt_compile" 2>conftest.err)
6433   ac_status=$?
6434   cat conftest.err >&5
6435   echo "$as_me:6435: \$? = $ac_status" >&5
6436   if (exit $ac_status) && test -s "$ac_outfile"; then
6437     # The compiler can only warn and ignore the option if not recognized
6438     # So say no if there are warnings
6439     if test ! -s conftest.err; then
6440       lt_prog_compiler_pic_works=yes
6441     fi
6442   fi
6443   $rm conftest*
6444
6445fi
6446echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6447echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6448
6449if test x"$lt_prog_compiler_pic_works" = xyes; then
6450    case $lt_prog_compiler_pic in
6451     "" | " "*) ;;
6452     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6453     esac
6454else
6455    lt_prog_compiler_pic=
6456     lt_prog_compiler_can_build_shared=no
6457fi
6458
6459fi
6460case "$host_os" in
6461  # For platforms which do not support PIC, -DPIC is meaningless:
6462  *djgpp*)
6463    lt_prog_compiler_pic=
6464    ;;
6465  *)
6466    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6467    ;;
6468esac
6469
6470echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6471echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6472if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6473  echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475  lt_cv_prog_compiler_c_o=no
6476   $rm -r conftest 2>/dev/null
6477   mkdir conftest
6478   cd conftest
6479   mkdir out
6480   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6481
6482   lt_compiler_flag="-o out/conftest2.$ac_objext"
6483   # Insert the option either (1) after the last *FLAGS variable, or
6484   # (2) before a word containing "conftest.", or (3) at the end.
6485   # Note that $ac_compile itself does not contain backslashes and begins
6486   # with a dollar sign (not a hyphen), so the echo should work correctly.
6487   lt_compile=`echo "$ac_compile" | $SED \
6488   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6489   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6490   -e 's:$: $lt_compiler_flag:'`
6491   (eval echo "\"\$as_me:6491: $lt_compile\"" >&5)
6492   (eval "$lt_compile" 2>out/conftest.err)
6493   ac_status=$?
6494   cat out/conftest.err >&5
6495   echo "$as_me:6495: \$? = $ac_status" >&5
6496   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6497   then
6498     # The compiler can only warn and ignore the option if not recognized
6499     # So say no if there are warnings
6500     if test ! -s out/conftest.err; then
6501       lt_cv_prog_compiler_c_o=yes
6502     fi
6503   fi
6504   chmod u+w .
6505   $rm conftest*
6506   # SGI C++ compiler will create directory out/ii_files/ for
6507   # template instantiation
6508   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6509   $rm out/* && rmdir out
6510   cd ..
6511   rmdir conftest
6512   $rm conftest*
6513
6514fi
6515echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6516echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6517
6518
6519hard_links="nottested"
6520if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6521  # do not overwrite the value of need_locks provided by the user
6522  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6523echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6524  hard_links=yes
6525  $rm conftest*
6526  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6527  touch conftest.a
6528  ln conftest.a conftest.b 2>&5 || hard_links=no
6529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6530  echo "$as_me:$LINENO: result: $hard_links" >&5
6531echo "${ECHO_T}$hard_links" >&6
6532  if test "$hard_links" = no; then
6533    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6534echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6535    need_locks=warn
6536  fi
6537else
6538  need_locks=no
6539fi
6540
6541echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6542echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6543
6544  runpath_var=
6545  allow_undefined_flag=
6546  enable_shared_with_static_runtimes=no
6547  archive_cmds=
6548  archive_expsym_cmds=
6549  old_archive_From_new_cmds=
6550  old_archive_from_expsyms_cmds=
6551  export_dynamic_flag_spec=
6552  whole_archive_flag_spec=
6553  thread_safe_flag_spec=
6554  hardcode_libdir_flag_spec=
6555  hardcode_libdir_flag_spec_ld=
6556  hardcode_libdir_separator=
6557  hardcode_direct=no
6558  hardcode_minus_L=no
6559  hardcode_shlibpath_var=unsupported
6560  link_all_deplibs=unknown
6561  hardcode_automatic=no
6562  module_cmds=
6563  module_expsym_cmds=
6564  always_export_symbols=no
6565  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6566  # include_expsyms should be a list of space-separated symbols to be *always*
6567  # included in the symbol list
6568  include_expsyms=
6569  # exclude_expsyms can be an extended regexp of symbols to exclude
6570  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6571  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6572  # as well as any symbol that contains `d'.
6573  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6574  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6575  # platforms (ab)use it in PIC code, but their linkers get confused if
6576  # the symbol is explicitly referenced.  Since portable code cannot
6577  # rely on this symbol name, it's probably fine to never include it in
6578  # preloaded symbol tables.
6579  extract_expsyms_cmds=
6580
6581  case $host_os in
6582  cygwin* | mingw* | pw32*)
6583    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6584    # When not using gcc, we currently assume that we are using
6585    # Microsoft Visual C++.
6586    if test "$GCC" != yes; then
6587      with_gnu_ld=no
6588    fi
6589    ;;
6590  openbsd*)
6591    with_gnu_ld=no
6592    ;;
6593  esac
6594
6595  ld_shlibs=yes
6596  if test "$with_gnu_ld" = yes; then
6597    # If archive_cmds runs LD, not CC, wlarc should be empty
6598    wlarc='${wl}'
6599
6600    # See if GNU ld supports shared libraries.
6601    case $host_os in
6602    aix3* | aix4* | aix5*)
6603      # On AIX/PPC, the GNU linker is very broken
6604      if test "$host_cpu" != ia64; then
6605	ld_shlibs=no
6606	cat <<EOF 1>&2
6607
6608*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6609*** to be unable to reliably create shared libraries on AIX.
6610*** Therefore, libtool is disabling shared libraries support.  If you
6611*** really care for shared libraries, you may want to modify your PATH
6612*** so that a non-GNU linker is found, and then restart.
6613
6614EOF
6615      fi
6616      ;;
6617
6618    amigaos*)
6619      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)'
6620      hardcode_libdir_flag_spec='-L$libdir'
6621      hardcode_minus_L=yes
6622
6623      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6624      # that the semantics of dynamic libraries on AmigaOS, at least up
6625      # to version 4, is to share data among multiple programs linked
6626      # with the same dynamic library.  Since this doesn't match the
6627      # behavior of shared libraries on other platforms, we can't use
6628      # them.
6629      ld_shlibs=no
6630      ;;
6631
6632    beos*)
6633      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6634	allow_undefined_flag=unsupported
6635	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6636	# support --undefined.  This deserves some investigation.  FIXME
6637	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6638      else
6639	ld_shlibs=no
6640      fi
6641      ;;
6642
6643    cygwin* | mingw* | pw32*)
6644      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6645      # as there is no search path for DLLs.
6646      hardcode_libdir_flag_spec='-L$libdir'
6647      allow_undefined_flag=unsupported
6648      always_export_symbols=no
6649      enable_shared_with_static_runtimes=yes
6650      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6651
6652      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6653        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6654	# If the export-symbols file already is a .def file (1st line
6655	# is EXPORTS), use it as is; otherwise, prepend...
6656	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6657	  cp $export_symbols $output_objdir/$soname.def;
6658	else
6659	  echo EXPORTS > $output_objdir/$soname.def;
6660	  cat $export_symbols >> $output_objdir/$soname.def;
6661	fi~
6662	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6663      else
6664	ld_shlibs=no
6665      fi
6666      ;;
6667
6668    netbsd* | knetbsd*-gnu)
6669      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6670	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6671	wlarc=
6672      else
6673	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6674	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6675      fi
6676      ;;
6677
6678    solaris* | sysv5*)
6679      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6680	ld_shlibs=no
6681	cat <<EOF 1>&2
6682
6683*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6684*** create shared libraries on Solaris systems.  Therefore, libtool
6685*** is disabling shared libraries support.  We urge you to upgrade GNU
6686*** binutils to release 2.9.1 or newer.  Another option is to modify
6687*** your PATH or compiler configuration so that the native linker is
6688*** used, and then restart.
6689
6690EOF
6691      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6692	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6693	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6694      else
6695	ld_shlibs=no
6696      fi
6697      ;;
6698
6699    sunos4*)
6700      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6701      wlarc=
6702      hardcode_direct=yes
6703      hardcode_shlibpath_var=no
6704      ;;
6705
6706  linux*)
6707    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6708        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6709	archive_cmds="$tmp_archive_cmds"
6710      supports_anon_versioning=no
6711      case `$LD -v 2>/dev/null` in
6712        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6713        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6714        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6715        *\ 2.11.*) ;; # other 2.11 versions
6716        *) supports_anon_versioning=yes ;;
6717      esac
6718      if test $supports_anon_versioning = yes; then
6719        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6720cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6721$echo "local: *; };" >> $output_objdir/$libname.ver~
6722        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6723      else
6724        archive_expsym_cmds="$tmp_archive_cmds"
6725      fi
6726      link_all_deplibs=no
6727    else
6728      ld_shlibs=no
6729    fi
6730    ;;
6731
6732    *)
6733      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6734	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6736      else
6737	ld_shlibs=no
6738      fi
6739      ;;
6740    esac
6741
6742    if test "$ld_shlibs" = yes; then
6743      runpath_var=LD_RUN_PATH
6744      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6745      export_dynamic_flag_spec='${wl}--export-dynamic'
6746      # ancient GNU ld didn't support --whole-archive et. al.
6747      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6748 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6749      else
6750  	whole_archive_flag_spec=
6751      fi
6752    fi
6753  else
6754    # PORTME fill in a description of your system's linker (not GNU ld)
6755    case $host_os in
6756    aix3*)
6757      allow_undefined_flag=unsupported
6758      always_export_symbols=yes
6759      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'
6760      # Note: this linker hardcodes the directories in LIBPATH if there
6761      # are no directories specified by -L.
6762      hardcode_minus_L=yes
6763      if test "$GCC" = yes && test -z "$link_static_flag"; then
6764	# Neither direct hardcoding nor static linking is supported with a
6765	# broken collect2.
6766	hardcode_direct=unsupported
6767      fi
6768      ;;
6769
6770    aix4* | aix5*)
6771      if test "$host_cpu" = ia64; then
6772	# On IA64, the linker does run time linking by default, so we don't
6773	# have to do anything special.
6774	aix_use_runtimelinking=no
6775	exp_sym_flag='-Bexport'
6776	no_entry_flag=""
6777      else
6778	# If we're using GNU nm, then we don't want the "-C" option.
6779	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6780	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6781	  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'
6782	else
6783	  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'
6784	fi
6785	aix_use_runtimelinking=no
6786
6787	# Test if we are trying to use run time linking or normal
6788	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6789	# need to do runtime linking.
6790	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6791	  for ld_flag in $LDFLAGS; do
6792  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6793  	    aix_use_runtimelinking=yes
6794  	    break
6795  	  fi
6796	  done
6797	esac
6798
6799	exp_sym_flag='-bexport'
6800	no_entry_flag='-bnoentry'
6801      fi
6802
6803      # When large executables or shared objects are built, AIX ld can
6804      # have problems creating the table of contents.  If linking a library
6805      # or program results in "error TOC overflow" add -mminimal-toc to
6806      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6807      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6808
6809      archive_cmds=''
6810      hardcode_direct=yes
6811      hardcode_libdir_separator=':'
6812      link_all_deplibs=yes
6813
6814      if test "$GCC" = yes; then
6815	case $host_os in aix4.012|aix4.012.*)
6816	# We only want to do this on AIX 4.2 and lower, the check
6817	# below for broken collect2 doesn't work under 4.3+
6818	  collect2name=`${CC} -print-prog-name=collect2`
6819	  if test -f "$collect2name" && \
6820  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6821	  then
6822  	  # We have reworked collect2
6823  	  hardcode_direct=yes
6824	  else
6825  	  # We have old collect2
6826  	  hardcode_direct=unsupported
6827  	  # It fails to find uninstalled libraries when the uninstalled
6828  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6829  	  # to unsupported forces relinking
6830  	  hardcode_minus_L=yes
6831  	  hardcode_libdir_flag_spec='-L$libdir'
6832  	  hardcode_libdir_separator=
6833	  fi
6834	esac
6835	shared_flag='-shared'
6836      else
6837	# not using gcc
6838	if test "$host_cpu" = ia64; then
6839  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6840  	# chokes on -Wl,-G. The following line is correct:
6841	  shared_flag='-G'
6842	else
6843  	if test "$aix_use_runtimelinking" = yes; then
6844	    shared_flag='${wl}-G'
6845	  else
6846	    shared_flag='${wl}-bM:SRE'
6847  	fi
6848	fi
6849      fi
6850
6851      # It seems that -bexpall does not export symbols beginning with
6852      # underscore (_), so it is better to generate a list of symbols to export.
6853      always_export_symbols=yes
6854      if test "$aix_use_runtimelinking" = yes; then
6855	# Warning - without using the other runtime loading flags (-brtl),
6856	# -berok will link without error, but may produce a broken library.
6857	allow_undefined_flag='-berok'
6858       # Determine the default libpath from the value encoded in an empty executable.
6859       cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865
6866int
6867main ()
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874rm -f conftest.$ac_objext conftest$ac_exeext
6875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876  (eval $ac_link) 2>conftest.er1
6877  ac_status=$?
6878  grep -v '^ *+' conftest.er1 >conftest.err
6879  rm -f conftest.er1
6880  cat conftest.err >&5
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); } &&
6883	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885  (eval $ac_try) 2>&5
6886  ac_status=$?
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); }; } &&
6889	 { ac_try='test -s conftest$ac_exeext'
6890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891  (eval $ac_try) 2>&5
6892  ac_status=$?
6893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894  (exit $ac_status); }; }; then
6895
6896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6897}'`
6898# Check for a 64-bit object if we didn't find anything.
6899if 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; }
6900}'`; fi
6901else
6902  echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905fi
6906rm -f conftest.err conftest.$ac_objext \
6907      conftest$ac_exeext conftest.$ac_ext
6908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6909
6910       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6911	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"
6912       else
6913	if test "$host_cpu" = ia64; then
6914	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6915	  allow_undefined_flag="-z nodefs"
6916	  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"
6917	else
6918	 # Determine the default libpath from the value encoded in an empty executable.
6919	 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h.  */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h.  */
6925
6926int
6927main ()
6928{
6929
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934rm -f conftest.$ac_objext conftest$ac_exeext
6935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936  (eval $ac_link) 2>conftest.er1
6937  ac_status=$?
6938  grep -v '^ *+' conftest.er1 >conftest.err
6939  rm -f conftest.er1
6940  cat conftest.err >&5
6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); } &&
6943	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945  (eval $ac_try) 2>&5
6946  ac_status=$?
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); }; } &&
6949	 { ac_try='test -s conftest$ac_exeext'
6950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951  (eval $ac_try) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }; }; then
6955
6956aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6957}'`
6958# Check for a 64-bit object if we didn't find anything.
6959if 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; }
6960}'`; fi
6961else
6962  echo "$as_me: failed program was:" >&5
6963sed 's/^/| /' conftest.$ac_ext >&5
6964
6965fi
6966rm -f conftest.err conftest.$ac_objext \
6967      conftest$ac_exeext conftest.$ac_ext
6968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6969
6970	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6971	  # Warning - without using the other run time loading flags,
6972	  # -berok will link without error, but may produce a broken library.
6973	  no_undefined_flag=' ${wl}-bernotok'
6974	  allow_undefined_flag=' ${wl}-berok'
6975	  # -bexpall does not export symbols beginning with underscore (_)
6976	  always_export_symbols=yes
6977	  # Exported symbols can be pulled into shared objects from archives
6978	  whole_archive_flag_spec=' '
6979	  archive_cmds_need_lc=yes
6980	  # This is similar to how AIX traditionally builds it's shared libraries.
6981	  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'
6982	fi
6983      fi
6984      ;;
6985
6986    amigaos*)
6987      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)'
6988      hardcode_libdir_flag_spec='-L$libdir'
6989      hardcode_minus_L=yes
6990      # see comment about different semantics on the GNU ld section
6991      ld_shlibs=no
6992      ;;
6993
6994    bsdi4*)
6995      export_dynamic_flag_spec=-rdynamic
6996      ;;
6997
6998    cygwin* | mingw* | pw32*)
6999      # When not using gcc, we currently assume that we are using
7000      # Microsoft Visual C++.
7001      # hardcode_libdir_flag_spec is actually meaningless, as there is
7002      # no search path for DLLs.
7003      hardcode_libdir_flag_spec=' '
7004      allow_undefined_flag=unsupported
7005      # Tell ltmain to make .lib files, not .a files.
7006      libext=lib
7007      # Tell ltmain to make .dll files, not .so files.
7008      shrext_cmds=".dll"
7009      # FIXME: Setting linknames here is a bad hack.
7010      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7011      # The linker will automatically build a .lib file if we build a DLL.
7012      old_archive_From_new_cmds='true'
7013      # FIXME: Should let the user specify the lib program.
7014      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7015      fix_srcfile_path='`cygpath -w "$srcfile"`'
7016      enable_shared_with_static_runtimes=yes
7017      ;;
7018
7019    darwin* | rhapsody*)
7020    if test "$GXX" = yes ; then
7021      archive_cmds_need_lc=no
7022      case "$host_os" in
7023      rhapsody* | darwin1.[012])
7024	allow_undefined_flag='-undefined suppress'
7025	;;
7026      *) # Darwin 1.3 on
7027      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7028      	allow_undefined_flag='-flat_namespace -undefined suppress'
7029      else
7030        case ${MACOSX_DEPLOYMENT_TARGET} in
7031          10.[012])
7032            allow_undefined_flag='-flat_namespace -undefined suppress'
7033            ;;
7034          10.*)
7035            allow_undefined_flag='-undefined dynamic_lookup'
7036            ;;
7037        esac
7038      fi
7039	;;
7040      esac
7041    	lt_int_apple_cc_single_mod=no
7042    	output_verbose_link_cmd='echo'
7043    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7044    	  lt_int_apple_cc_single_mod=yes
7045    	fi
7046    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7047    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7048    	else
7049        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7050      fi
7051      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7052      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7053        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7054          archive_expsym_cmds='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}'
7055        else
7056          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7057        fi
7058          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}'
7059      hardcode_direct=no
7060      hardcode_automatic=yes
7061      hardcode_shlibpath_var=unsupported
7062      whole_archive_flag_spec='-all_load $convenience'
7063      link_all_deplibs=yes
7064    else
7065      ld_shlibs=no
7066    fi
7067      ;;
7068
7069    dgux*)
7070      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7071      hardcode_libdir_flag_spec='-L$libdir'
7072      hardcode_shlibpath_var=no
7073      ;;
7074
7075    freebsd1*)
7076      ld_shlibs=no
7077      ;;
7078
7079    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7080    # support.  Future versions do this automatically, but an explicit c++rt0.o
7081    # does not break anything, and helps significantly (at the cost of a little
7082    # extra space).
7083    freebsd2.2*)
7084      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7085      hardcode_libdir_flag_spec='-R$libdir'
7086      hardcode_direct=yes
7087      hardcode_shlibpath_var=no
7088      ;;
7089
7090    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7091    freebsd2*)
7092      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7093      hardcode_direct=yes
7094      hardcode_minus_L=yes
7095      hardcode_shlibpath_var=no
7096      ;;
7097
7098    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7099    freebsd* | kfreebsd*-gnu)
7100      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7101      hardcode_libdir_flag_spec='-R$libdir'
7102      hardcode_direct=yes
7103      hardcode_shlibpath_var=no
7104      ;;
7105
7106    hpux9*)
7107      if test "$GCC" = yes; then
7108	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'
7109      else
7110	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'
7111      fi
7112      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7113      hardcode_libdir_separator=:
7114      hardcode_direct=yes
7115
7116      # hardcode_minus_L: Not really in the search PATH,
7117      # but as the default location of the library.
7118      hardcode_minus_L=yes
7119      export_dynamic_flag_spec='${wl}-E'
7120      ;;
7121
7122    hpux10* | hpux11*)
7123      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7124	case "$host_cpu" in
7125	hppa*64*|ia64*)
7126	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7127	  ;;
7128	*)
7129	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7130	  ;;
7131	esac
7132      else
7133	case "$host_cpu" in
7134	hppa*64*|ia64*)
7135	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7136	  ;;
7137	*)
7138	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7139	  ;;
7140	esac
7141      fi
7142      if test "$with_gnu_ld" = no; then
7143	case "$host_cpu" in
7144	hppa*64*)
7145	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7146	  hardcode_libdir_flag_spec_ld='+b $libdir'
7147	  hardcode_libdir_separator=:
7148	  hardcode_direct=no
7149	  hardcode_shlibpath_var=no
7150	  ;;
7151	ia64*)
7152	  hardcode_libdir_flag_spec='-L$libdir'
7153	  hardcode_direct=no
7154	  hardcode_shlibpath_var=no
7155
7156	  # hardcode_minus_L: Not really in the search PATH,
7157	  # but as the default location of the library.
7158	  hardcode_minus_L=yes
7159	  ;;
7160	*)
7161	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7162	  hardcode_libdir_separator=:
7163	  hardcode_direct=yes
7164	  export_dynamic_flag_spec='${wl}-E'
7165
7166	  # hardcode_minus_L: Not really in the search PATH,
7167	  # but as the default location of the library.
7168	  hardcode_minus_L=yes
7169	  ;;
7170	esac
7171      fi
7172      ;;
7173
7174    irix5* | irix6* | nonstopux*)
7175      if test "$GCC" = yes; then
7176	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'
7177      else
7178	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'
7179	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7180      fi
7181      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7182      hardcode_libdir_separator=:
7183      link_all_deplibs=yes
7184      ;;
7185
7186    netbsd* | knetbsd*-gnu)
7187      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7188	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7189      else
7190	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7191      fi
7192      hardcode_libdir_flag_spec='-R$libdir'
7193      hardcode_direct=yes
7194      hardcode_shlibpath_var=no
7195      ;;
7196
7197    newsos6)
7198      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7199      hardcode_direct=yes
7200      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7201      hardcode_libdir_separator=:
7202      hardcode_shlibpath_var=no
7203      ;;
7204
7205    openbsd*)
7206      hardcode_direct=yes
7207      hardcode_shlibpath_var=no
7208      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7209	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7210	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7211	export_dynamic_flag_spec='${wl}-E'
7212      else
7213       case $host_os in
7214	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7215	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7216	   hardcode_libdir_flag_spec='-R$libdir'
7217	   ;;
7218	 *)
7219	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7220	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7221	   ;;
7222       esac
7223      fi
7224      ;;
7225
7226    os2*)
7227      hardcode_libdir_flag_spec='-L$libdir'
7228      hardcode_minus_L=yes
7229      allow_undefined_flag=unsupported
7230      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'
7231      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7232      ;;
7233
7234    osf3*)
7235      if test "$GCC" = yes; then
7236	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7237	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'
7238      else
7239	allow_undefined_flag=' -expect_unresolved \*'
7240	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'
7241      fi
7242      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7243      hardcode_libdir_separator=:
7244      ;;
7245
7246    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7247      if test "$GCC" = yes; then
7248	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7249	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'
7250	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7251      else
7252	allow_undefined_flag=' -expect_unresolved \*'
7253	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'
7254	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7255	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7256
7257	# Both c and cxx compiler support -rpath directly
7258	hardcode_libdir_flag_spec='-rpath $libdir'
7259      fi
7260      hardcode_libdir_separator=:
7261      ;;
7262
7263    sco3.2v5*)
7264      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265      hardcode_shlibpath_var=no
7266      export_dynamic_flag_spec='${wl}-Bexport'
7267      runpath_var=LD_RUN_PATH
7268      hardcode_runpath_var=yes
7269      ;;
7270
7271    solaris*)
7272      no_undefined_flag=' -z text'
7273      if test "$GCC" = yes; then
7274	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7275	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7276	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7277      else
7278	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7279	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7280  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7281      fi
7282      hardcode_libdir_flag_spec='-R$libdir'
7283      hardcode_shlibpath_var=no
7284      case $host_os in
7285      solaris2.[0-5] | solaris2.[0-5].*) ;;
7286      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7287	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7288      esac
7289      link_all_deplibs=yes
7290      ;;
7291
7292    sunos4*)
7293      if test "x$host_vendor" = xsequent; then
7294	# Use $CC to link under sequent, because it throws in some extra .o
7295	# files that make .init and .fini sections work.
7296	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7297      else
7298	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7299      fi
7300      hardcode_libdir_flag_spec='-L$libdir'
7301      hardcode_direct=yes
7302      hardcode_minus_L=yes
7303      hardcode_shlibpath_var=no
7304      ;;
7305
7306    sysv4)
7307      case $host_vendor in
7308	sni)
7309	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7310	  hardcode_direct=yes # is this really true???
7311	;;
7312	siemens)
7313	  ## LD is ld it makes a PLAMLIB
7314	  ## CC just makes a GrossModule.
7315	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7316	  reload_cmds='$CC -r -o $output$reload_objs'
7317	  hardcode_direct=no
7318        ;;
7319	motorola)
7320	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7322	;;
7323      esac
7324      runpath_var='LD_RUN_PATH'
7325      hardcode_shlibpath_var=no
7326      ;;
7327
7328    sysv4.3*)
7329      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330      hardcode_shlibpath_var=no
7331      export_dynamic_flag_spec='-Bexport'
7332      ;;
7333
7334    sysv4*MP*)
7335      if test -d /usr/nec; then
7336	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337	hardcode_shlibpath_var=no
7338	runpath_var=LD_RUN_PATH
7339	hardcode_runpath_var=yes
7340	ld_shlibs=yes
7341      fi
7342      ;;
7343
7344    sysv4.2uw2*)
7345      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7346      hardcode_direct=yes
7347      hardcode_minus_L=no
7348      hardcode_shlibpath_var=no
7349      hardcode_runpath_var=yes
7350      runpath_var=LD_RUN_PATH
7351      ;;
7352
7353   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7354      no_undefined_flag='${wl}-z ${wl}text'
7355      if test "$GCC" = yes; then
7356	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7357      else
7358	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7359      fi
7360      runpath_var='LD_RUN_PATH'
7361      hardcode_shlibpath_var=no
7362      ;;
7363
7364    sysv5*)
7365      no_undefined_flag=' -z text'
7366      # $CC -shared without GNU ld will not create a library from C++
7367      # object files and a static libstdc++, better avoid it by now
7368      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7370  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7371      hardcode_libdir_flag_spec=
7372      hardcode_shlibpath_var=no
7373      runpath_var='LD_RUN_PATH'
7374      ;;
7375
7376    uts4*)
7377      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378      hardcode_libdir_flag_spec='-L$libdir'
7379      hardcode_shlibpath_var=no
7380      ;;
7381
7382    *)
7383      ld_shlibs=no
7384      ;;
7385    esac
7386  fi
7387
7388echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7389echo "${ECHO_T}$ld_shlibs" >&6
7390test "$ld_shlibs" = no && can_build_shared=no
7391
7392variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7393if test "$GCC" = yes; then
7394  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7395fi
7396
7397#
7398# Do we need to explicitly link libc?
7399#
7400case "x$archive_cmds_need_lc" in
7401x|xyes)
7402  # Assume -lc should be added
7403  archive_cmds_need_lc=yes
7404
7405  if test "$enable_shared" = yes && test "$GCC" = yes; then
7406    case $archive_cmds in
7407    *'~'*)
7408      # FIXME: we may have to deal with multi-command sequences.
7409      ;;
7410    '$CC '*)
7411      # Test whether the compiler implicitly links with -lc since on some
7412      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7413      # to ld, don't add -lc before -lgcc.
7414      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7415echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7416      $rm conftest*
7417      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7418
7419      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420  (eval $ac_compile) 2>&5
7421  ac_status=$?
7422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423  (exit $ac_status); } 2>conftest.err; then
7424        soname=conftest
7425        lib=conftest
7426        libobjs=conftest.$ac_objext
7427        deplibs=
7428        wl=$lt_prog_compiler_wl
7429        compiler_flags=-v
7430        linker_flags=-v
7431        verstring=
7432        output_objdir=.
7433        libname=conftest
7434        lt_save_allow_undefined_flag=$allow_undefined_flag
7435        allow_undefined_flag=
7436        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7437  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7438  ac_status=$?
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); }
7441        then
7442	  archive_cmds_need_lc=no
7443        else
7444	  archive_cmds_need_lc=yes
7445        fi
7446        allow_undefined_flag=$lt_save_allow_undefined_flag
7447      else
7448        cat conftest.err 1>&5
7449      fi
7450      $rm conftest*
7451      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7452echo "${ECHO_T}$archive_cmds_need_lc" >&6
7453      ;;
7454    esac
7455  fi
7456  ;;
7457esac
7458
7459echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7460echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7461library_names_spec=
7462libname_spec='lib$name'
7463soname_spec=
7464shrext_cmds=".so"
7465postinstall_cmds=
7466postuninstall_cmds=
7467finish_cmds=
7468finish_eval=
7469shlibpath_var=
7470shlibpath_overrides_runpath=unknown
7471version_type=none
7472dynamic_linker="$host_os ld.so"
7473sys_lib_dlsearch_path_spec="/lib /usr/lib"
7474if test "$GCC" = yes; then
7475  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7476  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7477    # if the path contains ";" then we assume it to be the separator
7478    # otherwise default to the standard path separator (i.e. ":") - it is
7479    # assumed that no part of a normal pathname contains ";" but that should
7480    # okay in the real world where ";" in dirpaths is itself problematic.
7481    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7482  else
7483    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7484  fi
7485else
7486  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7487fi
7488need_lib_prefix=unknown
7489hardcode_into_libs=no
7490
7491# when you set need_version to no, make sure it does not cause -set_version
7492# flags to be left without arguments
7493need_version=unknown
7494
7495case $host_os in
7496aix3*)
7497  version_type=linux
7498  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7499  shlibpath_var=LIBPATH
7500
7501  # AIX 3 has no versioning support, so we append a major version to the name.
7502  soname_spec='${libname}${release}${shared_ext}$major'
7503  ;;
7504
7505aix4* | aix5*)
7506  version_type=linux
7507  need_lib_prefix=no
7508  need_version=no
7509  hardcode_into_libs=yes
7510  if test "$host_cpu" = ia64; then
7511    # AIX 5 supports IA64
7512    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7513    shlibpath_var=LD_LIBRARY_PATH
7514  else
7515    # With GCC up to 2.95.x, collect2 would create an import file
7516    # for dependence libraries.  The import file would start with
7517    # the line `#! .'.  This would cause the generated library to
7518    # depend on `.', always an invalid library.  This was fixed in
7519    # development snapshots of GCC prior to 3.0.
7520    case $host_os in
7521      aix4 | aix4.[01] | aix4.[01].*)
7522      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7523	   echo ' yes '
7524	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7525	:
7526      else
7527	can_build_shared=no
7528      fi
7529      ;;
7530    esac
7531    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7532    # soname into executable. Probably we can add versioning support to
7533    # collect2, so additional links can be useful in future.
7534    if test "$aix_use_runtimelinking" = yes; then
7535      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7536      # instead of lib<name>.a to let people know that these are not
7537      # typical AIX shared libraries.
7538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7539    else
7540      # We preserve .a as extension for shared libraries through AIX4.2
7541      # and later when we are not doing run time linking.
7542      library_names_spec='${libname}${release}.a $libname.a'
7543      soname_spec='${libname}${release}${shared_ext}$major'
7544    fi
7545    shlibpath_var=LIBPATH
7546  fi
7547  ;;
7548
7549amigaos*)
7550  library_names_spec='$libname.ixlibrary $libname.a'
7551  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7552  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'
7553  ;;
7554
7555beos*)
7556  library_names_spec='${libname}${shared_ext}'
7557  dynamic_linker="$host_os ld.so"
7558  shlibpath_var=LIBRARY_PATH
7559  ;;
7560
7561bsdi4*)
7562  version_type=linux
7563  need_version=no
7564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7565  soname_spec='${libname}${release}${shared_ext}$major'
7566  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7567  shlibpath_var=LD_LIBRARY_PATH
7568  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7569  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7570  # the default ld.so.conf also contains /usr/contrib/lib and
7571  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7572  # libtool to hard-code these into programs
7573  ;;
7574
7575cygwin* | mingw* | pw32*)
7576  version_type=windows
7577  shrext_cmds=".dll"
7578  need_version=no
7579  need_lib_prefix=no
7580
7581  case $GCC,$host_os in
7582  yes,cygwin* | yes,mingw* | yes,pw32*)
7583    library_names_spec='$libname.dll.a'
7584    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7585    postinstall_cmds='base_file=`basename \${file}`~
7586      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7587      dldir=$destdir/`dirname \$dlpath`~
7588      test -d \$dldir || mkdir -p \$dldir~
7589      $install_prog $dir/$dlname \$dldir/$dlname'
7590    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7591      dlpath=$dir/\$dldll~
7592       $rm \$dlpath'
7593    shlibpath_overrides_runpath=yes
7594
7595    case $host_os in
7596    cygwin*)
7597      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7598      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7599      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7600      ;;
7601    mingw*)
7602      # MinGW DLLs use traditional 'lib' prefix
7603      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7604      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7605      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7606        # It is most probably a Windows format PATH printed by
7607        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7608        # path with ; separators, and with drive letters. We can handle the
7609        # drive letters (cygwin fileutils understands them), so leave them,
7610        # especially as we might pass files found there to a mingw objdump,
7611        # which wouldn't understand a cygwinified path. Ahh.
7612        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7613      else
7614        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7615      fi
7616      ;;
7617    pw32*)
7618      # pw32 DLLs use 'pw' prefix rather than 'lib'
7619      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7620      ;;
7621    esac
7622    ;;
7623
7624  *)
7625    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7626    ;;
7627  esac
7628  dynamic_linker='Win32 ld.exe'
7629  # FIXME: first we should search . and the directory the executable is in
7630  shlibpath_var=PATH
7631  ;;
7632
7633darwin* | rhapsody*)
7634  dynamic_linker="$host_os dyld"
7635  version_type=darwin
7636  need_lib_prefix=no
7637  need_version=no
7638  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7639  soname_spec='${libname}${release}${major}$shared_ext'
7640  shlibpath_overrides_runpath=yes
7641  shlibpath_var=DYLD_LIBRARY_PATH
7642  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7643  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7644  if test "$GCC" = yes; then
7645    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"`
7646  else
7647    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7648  fi
7649  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7650  ;;
7651
7652dgux*)
7653  version_type=linux
7654  need_lib_prefix=no
7655  need_version=no
7656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7657  soname_spec='${libname}${release}${shared_ext}$major'
7658  shlibpath_var=LD_LIBRARY_PATH
7659  ;;
7660
7661freebsd1*)
7662  dynamic_linker=no
7663  ;;
7664
7665kfreebsd*-gnu)
7666  version_type=linux
7667  need_lib_prefix=no
7668  need_version=no
7669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7670  soname_spec='${libname}${release}${shared_ext}$major'
7671  shlibpath_var=LD_LIBRARY_PATH
7672  shlibpath_overrides_runpath=no
7673  hardcode_into_libs=yes
7674  dynamic_linker='GNU ld.so'
7675  ;;
7676
7677freebsd*)
7678  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7679  version_type=freebsd-$objformat
7680  case $version_type in
7681    freebsd-elf*)
7682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7683      need_version=no
7684      need_lib_prefix=no
7685      ;;
7686    freebsd-*)
7687      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7688      need_version=yes
7689      ;;
7690  esac
7691  shlibpath_var=LD_LIBRARY_PATH
7692  case $host_os in
7693  freebsd2*)
7694    shlibpath_overrides_runpath=yes
7695    ;;
7696  freebsd3.01* | freebsdelf3.01*)
7697    shlibpath_overrides_runpath=yes
7698    hardcode_into_libs=yes
7699    ;;
7700  *) # from 3.2 on
7701    shlibpath_overrides_runpath=no
7702    hardcode_into_libs=yes
7703    ;;
7704  esac
7705  ;;
7706
7707gnu*)
7708  version_type=linux
7709  need_lib_prefix=no
7710  need_version=no
7711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7712  soname_spec='${libname}${release}${shared_ext}$major'
7713  shlibpath_var=LD_LIBRARY_PATH
7714  hardcode_into_libs=yes
7715  ;;
7716
7717hpux9* | hpux10* | hpux11*)
7718  # Give a soname corresponding to the major version so that dld.sl refuses to
7719  # link against other versions.
7720  version_type=sunos
7721  need_lib_prefix=no
7722  need_version=no
7723  case "$host_cpu" in
7724  ia64*)
7725    shrext_cmds='.so'
7726    hardcode_into_libs=yes
7727    dynamic_linker="$host_os dld.so"
7728    shlibpath_var=LD_LIBRARY_PATH
7729    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7730    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7731    soname_spec='${libname}${release}${shared_ext}$major'
7732    if test "X$HPUX_IA64_MODE" = X32; then
7733      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7734    else
7735      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7736    fi
7737    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7738    ;;
7739   hppa*64*)
7740     shrext_cmds='.sl'
7741     hardcode_into_libs=yes
7742     dynamic_linker="$host_os dld.sl"
7743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7746     soname_spec='${libname}${release}${shared_ext}$major'
7747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7749     ;;
7750   *)
7751    shrext_cmds='.sl'
7752    dynamic_linker="$host_os dld.sl"
7753    shlibpath_var=SHLIB_PATH
7754    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7756    soname_spec='${libname}${release}${shared_ext}$major'
7757    ;;
7758  esac
7759  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7760  postinstall_cmds='chmod 555 $lib'
7761  ;;
7762
7763irix5* | irix6* | nonstopux*)
7764  case $host_os in
7765    nonstopux*) version_type=nonstopux ;;
7766    *)
7767	if test "$lt_cv_prog_gnu_ld" = yes; then
7768		version_type=linux
7769	else
7770		version_type=irix
7771	fi ;;
7772  esac
7773  need_lib_prefix=no
7774  need_version=no
7775  soname_spec='${libname}${release}${shared_ext}$major'
7776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7777  case $host_os in
7778  irix5* | nonstopux*)
7779    libsuff= shlibsuff=
7780    ;;
7781  *)
7782    case $LD in # libtool.m4 will add one of these switches to LD
7783    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7784      libsuff= shlibsuff= libmagic=32-bit;;
7785    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7786      libsuff=32 shlibsuff=N32 libmagic=N32;;
7787    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7788      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7789    *) libsuff= shlibsuff= libmagic=never-match;;
7790    esac
7791    ;;
7792  esac
7793  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7794  shlibpath_overrides_runpath=no
7795  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7796  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7797  hardcode_into_libs=yes
7798  ;;
7799
7800# No shared lib support for Linux oldld, aout, or coff.
7801linux*oldld* | linux*aout* | linux*coff*)
7802  dynamic_linker=no
7803  ;;
7804
7805# This must be Linux ELF.
7806linux*)
7807  version_type=linux
7808  need_lib_prefix=no
7809  need_version=no
7810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811  soname_spec='${libname}${release}${shared_ext}$major'
7812  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7813  shlibpath_var=LD_LIBRARY_PATH
7814  shlibpath_overrides_runpath=no
7815  # This implies no fast_install, which is unacceptable.
7816  # Some rework will be needed to allow for fast_install
7817  # before this can be enabled.
7818  hardcode_into_libs=yes
7819
7820  # Append ld.so.conf contents to the search path
7821  if test -f /etc/ld.so.conf; then
7822    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7823    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7824  fi
7825
7826  # We used to test for /lib/ld.so.1 and disable shared libraries on
7827  # powerpc, because MkLinux only supported shared libraries with the
7828  # GNU dynamic linker.  Since this was broken with cross compilers,
7829  # most powerpc-linux boxes support dynamic linking these days and
7830  # people can always --disable-shared, the test was removed, and we
7831  # assume the GNU/Linux dynamic linker is in use.
7832  dynamic_linker='GNU/Linux ld.so'
7833  ;;
7834
7835knetbsd*-gnu)
7836  version_type=linux
7837  need_lib_prefix=no
7838  need_version=no
7839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7840  soname_spec='${libname}${release}${shared_ext}$major'
7841  shlibpath_var=LD_LIBRARY_PATH
7842  shlibpath_overrides_runpath=no
7843  hardcode_into_libs=yes
7844  dynamic_linker='GNU ld.so'
7845  ;;
7846
7847netbsd*)
7848  version_type=sunos
7849  need_lib_prefix=no
7850  need_version=no
7851  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7853    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7854    dynamic_linker='NetBSD (a.out) ld.so'
7855  else
7856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7857    soname_spec='${libname}${release}${shared_ext}$major'
7858    dynamic_linker='NetBSD ld.elf_so'
7859  fi
7860  shlibpath_var=LD_LIBRARY_PATH
7861  shlibpath_overrides_runpath=yes
7862  hardcode_into_libs=yes
7863  ;;
7864
7865newsos6)
7866  version_type=linux
7867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868  shlibpath_var=LD_LIBRARY_PATH
7869  shlibpath_overrides_runpath=yes
7870  ;;
7871
7872nto-qnx*)
7873  version_type=linux
7874  need_lib_prefix=no
7875  need_version=no
7876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7877  soname_spec='${libname}${release}${shared_ext}$major'
7878  shlibpath_var=LD_LIBRARY_PATH
7879  shlibpath_overrides_runpath=yes
7880  ;;
7881
7882openbsd*)
7883  version_type=sunos
7884  need_lib_prefix=no
7885  need_version=yes
7886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7887  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7888  shlibpath_var=LD_LIBRARY_PATH
7889  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7890    case $host_os in
7891      openbsd2.[89] | openbsd2.[89].*)
7892	shlibpath_overrides_runpath=no
7893	;;
7894      *)
7895	shlibpath_overrides_runpath=yes
7896	;;
7897      esac
7898  else
7899    shlibpath_overrides_runpath=yes
7900  fi
7901  ;;
7902
7903os2*)
7904  libname_spec='$name'
7905  shrext_cmds=".dll"
7906  need_lib_prefix=no
7907  library_names_spec='$libname${shared_ext} $libname.a'
7908  dynamic_linker='OS/2 ld.exe'
7909  shlibpath_var=LIBPATH
7910  ;;
7911
7912osf3* | osf4* | osf5*)
7913  version_type=osf
7914  need_lib_prefix=no
7915  need_version=no
7916  soname_spec='${libname}${release}${shared_ext}$major'
7917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918  shlibpath_var=LD_LIBRARY_PATH
7919  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7920  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7921  ;;
7922
7923sco3.2v5*)
7924  version_type=osf
7925  soname_spec='${libname}${release}${shared_ext}$major'
7926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927  shlibpath_var=LD_LIBRARY_PATH
7928  ;;
7929
7930solaris*)
7931  version_type=linux
7932  need_lib_prefix=no
7933  need_version=no
7934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7935  soname_spec='${libname}${release}${shared_ext}$major'
7936  shlibpath_var=LD_LIBRARY_PATH
7937  shlibpath_overrides_runpath=yes
7938  hardcode_into_libs=yes
7939  # ldd complains unless libraries are executable
7940  postinstall_cmds='chmod +x $lib'
7941  ;;
7942
7943sunos4*)
7944  version_type=sunos
7945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7946  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7947  shlibpath_var=LD_LIBRARY_PATH
7948  shlibpath_overrides_runpath=yes
7949  if test "$with_gnu_ld" = yes; then
7950    need_lib_prefix=no
7951  fi
7952  need_version=yes
7953  ;;
7954
7955sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7956  version_type=linux
7957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958  soname_spec='${libname}${release}${shared_ext}$major'
7959  shlibpath_var=LD_LIBRARY_PATH
7960  case $host_vendor in
7961    sni)
7962      shlibpath_overrides_runpath=no
7963      need_lib_prefix=no
7964      export_dynamic_flag_spec='${wl}-Blargedynsym'
7965      runpath_var=LD_RUN_PATH
7966      ;;
7967    siemens)
7968      need_lib_prefix=no
7969      ;;
7970    motorola)
7971      need_lib_prefix=no
7972      need_version=no
7973      shlibpath_overrides_runpath=no
7974      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7975      ;;
7976  esac
7977  ;;
7978
7979sysv4*MP*)
7980  if test -d /usr/nec ;then
7981    version_type=linux
7982    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7983    soname_spec='$libname${shared_ext}.$major'
7984    shlibpath_var=LD_LIBRARY_PATH
7985  fi
7986  ;;
7987
7988uts4*)
7989  version_type=linux
7990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991  soname_spec='${libname}${release}${shared_ext}$major'
7992  shlibpath_var=LD_LIBRARY_PATH
7993  ;;
7994
7995*)
7996  dynamic_linker=no
7997  ;;
7998esac
7999echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8000echo "${ECHO_T}$dynamic_linker" >&6
8001test "$dynamic_linker" = no && can_build_shared=no
8002
8003echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8004echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8005hardcode_action=
8006if test -n "$hardcode_libdir_flag_spec" || \
8007   test -n "$runpath_var " || \
8008   test "X$hardcode_automatic"="Xyes" ; then
8009
8010  # We can hardcode non-existant directories.
8011  if test "$hardcode_direct" != no &&
8012     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8013     # have to relink, otherwise we might link with an installed library
8014     # when we should be linking with a yet-to-be-installed one
8015     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8016     test "$hardcode_minus_L" != no; then
8017    # Linking always hardcodes the temporary library directory.
8018    hardcode_action=relink
8019  else
8020    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8021    hardcode_action=immediate
8022  fi
8023else
8024  # We cannot hardcode anything, or else we can only hardcode existing
8025  # directories.
8026  hardcode_action=unsupported
8027fi
8028echo "$as_me:$LINENO: result: $hardcode_action" >&5
8029echo "${ECHO_T}$hardcode_action" >&6
8030
8031if test "$hardcode_action" = relink; then
8032  # Fast installation is not supported
8033  enable_fast_install=no
8034elif test "$shlibpath_overrides_runpath" = yes ||
8035     test "$enable_shared" = no; then
8036  # Fast installation is not necessary
8037  enable_fast_install=needless
8038fi
8039
8040striplib=
8041old_striplib=
8042echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8043echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8044if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8045  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8046  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8047  echo "$as_me:$LINENO: result: yes" >&5
8048echo "${ECHO_T}yes" >&6
8049else
8050# FIXME - insert some real tests, host_os isn't really good enough
8051  case $host_os in
8052   darwin*)
8053       if test -n "$STRIP" ; then
8054         striplib="$STRIP -x"
8055         echo "$as_me:$LINENO: result: yes" >&5
8056echo "${ECHO_T}yes" >&6
8057       else
8058  echo "$as_me:$LINENO: result: no" >&5
8059echo "${ECHO_T}no" >&6
8060fi
8061       ;;
8062   *)
8063  echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
8065    ;;
8066  esac
8067fi
8068
8069if test "x$enable_dlopen" != xyes; then
8070  enable_dlopen=unknown
8071  enable_dlopen_self=unknown
8072  enable_dlopen_self_static=unknown
8073else
8074  lt_cv_dlopen=no
8075  lt_cv_dlopen_libs=
8076
8077  case $host_os in
8078  beos*)
8079    lt_cv_dlopen="load_add_on"
8080    lt_cv_dlopen_libs=
8081    lt_cv_dlopen_self=yes
8082    ;;
8083
8084  mingw* | pw32*)
8085    lt_cv_dlopen="LoadLibrary"
8086    lt_cv_dlopen_libs=
8087   ;;
8088
8089  cygwin*)
8090    lt_cv_dlopen="dlopen"
8091    lt_cv_dlopen_libs=
8092   ;;
8093
8094  darwin*)
8095  # if libdl is installed we need to link against it
8096    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8097echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8098if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8099  echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101  ac_check_lib_save_LIBS=$LIBS
8102LIBS="-ldl  $LIBS"
8103cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h.  */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h.  */
8109
8110/* Override any gcc2 internal prototype to avoid an error.  */
8111#ifdef __cplusplus
8112extern "C"
8113#endif
8114/* We use char because int might match the return type of a gcc2
8115   builtin and then its argument prototype would still apply.  */
8116char dlopen ();
8117int
8118main ()
8119{
8120dlopen ();
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
8126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127  (eval $ac_link) 2>conftest.er1
8128  ac_status=$?
8129  grep -v '^ *+' conftest.er1 >conftest.err
8130  rm -f conftest.er1
8131  cat conftest.err >&5
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); } &&
8134	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136  (eval $ac_try) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); }; } &&
8140	 { ac_try='test -s conftest$ac_exeext'
8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142  (eval $ac_try) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); }; }; then
8146  ac_cv_lib_dl_dlopen=yes
8147else
8148  echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
8151ac_cv_lib_dl_dlopen=no
8152fi
8153rm -f conftest.err conftest.$ac_objext \
8154      conftest$ac_exeext conftest.$ac_ext
8155LIBS=$ac_check_lib_save_LIBS
8156fi
8157echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8158echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8159if test $ac_cv_lib_dl_dlopen = yes; then
8160  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8161else
8162
8163    lt_cv_dlopen="dyld"
8164    lt_cv_dlopen_libs=
8165    lt_cv_dlopen_self=yes
8166
8167fi
8168
8169   ;;
8170
8171  *)
8172    echo "$as_me:$LINENO: checking for shl_load" >&5
8173echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8174if test "${ac_cv_func_shl_load+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177  cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h.  */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h.  */
8183/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8185#define shl_load innocuous_shl_load
8186
8187/* System header to define __stub macros and hopefully few prototypes,
8188    which can conflict with char shl_load (); below.
8189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190    <limits.h> exists even on freestanding compilers.  */
8191
8192#ifdef __STDC__
8193# include <limits.h>
8194#else
8195# include <assert.h>
8196#endif
8197
8198#undef shl_load
8199
8200/* Override any gcc2 internal prototype to avoid an error.  */
8201#ifdef __cplusplus
8202extern "C"
8203{
8204#endif
8205/* We use char because int might match the return type of a gcc2
8206   builtin and then its argument prototype would still apply.  */
8207char shl_load ();
8208/* The GNU C library defines this for functions which it implements
8209    to always fail with ENOSYS.  Some functions are actually named
8210    something starting with __ and the normal name is an alias.  */
8211#if defined (__stub_shl_load) || defined (__stub___shl_load)
8212choke me
8213#else
8214char (*f) () = shl_load;
8215#endif
8216#ifdef __cplusplus
8217}
8218#endif
8219
8220int
8221main ()
8222{
8223return f != shl_load;
8224  ;
8225  return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230  (eval $ac_link) 2>conftest.er1
8231  ac_status=$?
8232  grep -v '^ *+' conftest.er1 >conftest.err
8233  rm -f conftest.er1
8234  cat conftest.err >&5
8235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236  (exit $ac_status); } &&
8237	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239  (eval $ac_try) 2>&5
8240  ac_status=$?
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); }; } &&
8243	 { ac_try='test -s conftest$ac_exeext'
8244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245  (eval $ac_try) 2>&5
8246  ac_status=$?
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); }; }; then
8249  ac_cv_func_shl_load=yes
8250else
8251  echo "$as_me: failed program was:" >&5
8252sed 's/^/| /' conftest.$ac_ext >&5
8253
8254ac_cv_func_shl_load=no
8255fi
8256rm -f conftest.err conftest.$ac_objext \
8257      conftest$ac_exeext conftest.$ac_ext
8258fi
8259echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8260echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8261if test $ac_cv_func_shl_load = yes; then
8262  lt_cv_dlopen="shl_load"
8263else
8264  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8265echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8266if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8267  echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269  ac_check_lib_save_LIBS=$LIBS
8270LIBS="-ldld  $LIBS"
8271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h.  */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h.  */
8277
8278/* Override any gcc2 internal prototype to avoid an error.  */
8279#ifdef __cplusplus
8280extern "C"
8281#endif
8282/* We use char because int might match the return type of a gcc2
8283   builtin and then its argument prototype would still apply.  */
8284char shl_load ();
8285int
8286main ()
8287{
8288shl_load ();
8289  ;
8290  return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext conftest$ac_exeext
8294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295  (eval $ac_link) 2>conftest.er1
8296  ac_status=$?
8297  grep -v '^ *+' conftest.er1 >conftest.err
8298  rm -f conftest.er1
8299  cat conftest.err >&5
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); } &&
8302	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304  (eval $ac_try) 2>&5
8305  ac_status=$?
8306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307  (exit $ac_status); }; } &&
8308	 { ac_try='test -s conftest$ac_exeext'
8309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310  (eval $ac_try) 2>&5
8311  ac_status=$?
8312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313  (exit $ac_status); }; }; then
8314  ac_cv_lib_dld_shl_load=yes
8315else
8316  echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319ac_cv_lib_dld_shl_load=no
8320fi
8321rm -f conftest.err conftest.$ac_objext \
8322      conftest$ac_exeext conftest.$ac_ext
8323LIBS=$ac_check_lib_save_LIBS
8324fi
8325echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8326echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8327if test $ac_cv_lib_dld_shl_load = yes; then
8328  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8329else
8330  echo "$as_me:$LINENO: checking for dlopen" >&5
8331echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8332if test "${ac_cv_func_dlopen+set}" = set; then
8333  echo $ECHO_N "(cached) $ECHO_C" >&6
8334else
8335  cat >conftest.$ac_ext <<_ACEOF
8336/* confdefs.h.  */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h.  */
8341/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8342   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8343#define dlopen innocuous_dlopen
8344
8345/* System header to define __stub macros and hopefully few prototypes,
8346    which can conflict with char dlopen (); below.
8347    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8348    <limits.h> exists even on freestanding compilers.  */
8349
8350#ifdef __STDC__
8351# include <limits.h>
8352#else
8353# include <assert.h>
8354#endif
8355
8356#undef dlopen
8357
8358/* Override any gcc2 internal prototype to avoid an error.  */
8359#ifdef __cplusplus
8360extern "C"
8361{
8362#endif
8363/* We use char because int might match the return type of a gcc2
8364   builtin and then its argument prototype would still apply.  */
8365char dlopen ();
8366/* The GNU C library defines this for functions which it implements
8367    to always fail with ENOSYS.  Some functions are actually named
8368    something starting with __ and the normal name is an alias.  */
8369#if defined (__stub_dlopen) || defined (__stub___dlopen)
8370choke me
8371#else
8372char (*f) () = dlopen;
8373#endif
8374#ifdef __cplusplus
8375}
8376#endif
8377
8378int
8379main ()
8380{
8381return f != dlopen;
8382  ;
8383  return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388  (eval $ac_link) 2>conftest.er1
8389  ac_status=$?
8390  grep -v '^ *+' conftest.er1 >conftest.err
8391  rm -f conftest.er1
8392  cat conftest.err >&5
8393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); } &&
8395	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397  (eval $ac_try) 2>&5
8398  ac_status=$?
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); }; } &&
8401	 { ac_try='test -s conftest$ac_exeext'
8402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403  (eval $ac_try) 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; }; then
8407  ac_cv_func_dlopen=yes
8408else
8409  echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412ac_cv_func_dlopen=no
8413fi
8414rm -f conftest.err conftest.$ac_objext \
8415      conftest$ac_exeext conftest.$ac_ext
8416fi
8417echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8418echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8419if test $ac_cv_func_dlopen = yes; then
8420  lt_cv_dlopen="dlopen"
8421else
8422  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8423echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8424if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8425  echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427  ac_check_lib_save_LIBS=$LIBS
8428LIBS="-ldl  $LIBS"
8429cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h.  */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h.  */
8435
8436/* Override any gcc2 internal prototype to avoid an error.  */
8437#ifdef __cplusplus
8438extern "C"
8439#endif
8440/* We use char because int might match the return type of a gcc2
8441   builtin and then its argument prototype would still apply.  */
8442char dlopen ();
8443int
8444main ()
8445{
8446dlopen ();
8447  ;
8448  return 0;
8449}
8450_ACEOF
8451rm -f conftest.$ac_objext conftest$ac_exeext
8452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8453  (eval $ac_link) 2>conftest.er1
8454  ac_status=$?
8455  grep -v '^ *+' conftest.er1 >conftest.err
8456  rm -f conftest.er1
8457  cat conftest.err >&5
8458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459  (exit $ac_status); } &&
8460	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462  (eval $ac_try) 2>&5
8463  ac_status=$?
8464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465  (exit $ac_status); }; } &&
8466	 { ac_try='test -s conftest$ac_exeext'
8467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468  (eval $ac_try) 2>&5
8469  ac_status=$?
8470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); }; }; then
8472  ac_cv_lib_dl_dlopen=yes
8473else
8474  echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477ac_cv_lib_dl_dlopen=no
8478fi
8479rm -f conftest.err conftest.$ac_objext \
8480      conftest$ac_exeext conftest.$ac_ext
8481LIBS=$ac_check_lib_save_LIBS
8482fi
8483echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8484echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8485if test $ac_cv_lib_dl_dlopen = yes; then
8486  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8487else
8488  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8489echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8490if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8491  echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493  ac_check_lib_save_LIBS=$LIBS
8494LIBS="-lsvld  $LIBS"
8495cat >conftest.$ac_ext <<_ACEOF
8496/* confdefs.h.  */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h.  */
8501
8502/* Override any gcc2 internal prototype to avoid an error.  */
8503#ifdef __cplusplus
8504extern "C"
8505#endif
8506/* We use char because int might match the return type of a gcc2
8507   builtin and then its argument prototype would still apply.  */
8508char dlopen ();
8509int
8510main ()
8511{
8512dlopen ();
8513  ;
8514  return 0;
8515}
8516_ACEOF
8517rm -f conftest.$ac_objext conftest$ac_exeext
8518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519  (eval $ac_link) 2>conftest.er1
8520  ac_status=$?
8521  grep -v '^ *+' conftest.er1 >conftest.err
8522  rm -f conftest.er1
8523  cat conftest.err >&5
8524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525  (exit $ac_status); } &&
8526	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528  (eval $ac_try) 2>&5
8529  ac_status=$?
8530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531  (exit $ac_status); }; } &&
8532	 { ac_try='test -s conftest$ac_exeext'
8533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534  (eval $ac_try) 2>&5
8535  ac_status=$?
8536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537  (exit $ac_status); }; }; then
8538  ac_cv_lib_svld_dlopen=yes
8539else
8540  echo "$as_me: failed program was:" >&5
8541sed 's/^/| /' conftest.$ac_ext >&5
8542
8543ac_cv_lib_svld_dlopen=no
8544fi
8545rm -f conftest.err conftest.$ac_objext \
8546      conftest$ac_exeext conftest.$ac_ext
8547LIBS=$ac_check_lib_save_LIBS
8548fi
8549echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8550echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8551if test $ac_cv_lib_svld_dlopen = yes; then
8552  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8553else
8554  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8555echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8556if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8557  echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8559  ac_check_lib_save_LIBS=$LIBS
8560LIBS="-ldld  $LIBS"
8561cat >conftest.$ac_ext <<_ACEOF
8562/* confdefs.h.  */
8563_ACEOF
8564cat confdefs.h >>conftest.$ac_ext
8565cat >>conftest.$ac_ext <<_ACEOF
8566/* end confdefs.h.  */
8567
8568/* Override any gcc2 internal prototype to avoid an error.  */
8569#ifdef __cplusplus
8570extern "C"
8571#endif
8572/* We use char because int might match the return type of a gcc2
8573   builtin and then its argument prototype would still apply.  */
8574char dld_link ();
8575int
8576main ()
8577{
8578dld_link ();
8579  ;
8580  return 0;
8581}
8582_ACEOF
8583rm -f conftest.$ac_objext conftest$ac_exeext
8584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585  (eval $ac_link) 2>conftest.er1
8586  ac_status=$?
8587  grep -v '^ *+' conftest.er1 >conftest.err
8588  rm -f conftest.er1
8589  cat conftest.err >&5
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); } &&
8592	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594  (eval $ac_try) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; } &&
8598	 { ac_try='test -s conftest$ac_exeext'
8599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600  (eval $ac_try) 2>&5
8601  ac_status=$?
8602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603  (exit $ac_status); }; }; then
8604  ac_cv_lib_dld_dld_link=yes
8605else
8606  echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
8609ac_cv_lib_dld_dld_link=no
8610fi
8611rm -f conftest.err conftest.$ac_objext \
8612      conftest$ac_exeext conftest.$ac_ext
8613LIBS=$ac_check_lib_save_LIBS
8614fi
8615echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8616echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8617if test $ac_cv_lib_dld_dld_link = yes; then
8618  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8619fi
8620
8621
8622fi
8623
8624
8625fi
8626
8627
8628fi
8629
8630
8631fi
8632
8633
8634fi
8635
8636    ;;
8637  esac
8638
8639  if test "x$lt_cv_dlopen" != xno; then
8640    enable_dlopen=yes
8641  else
8642    enable_dlopen=no
8643  fi
8644
8645  case $lt_cv_dlopen in
8646  dlopen)
8647    save_CPPFLAGS="$CPPFLAGS"
8648    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8649
8650    save_LDFLAGS="$LDFLAGS"
8651    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8652
8653    save_LIBS="$LIBS"
8654    LIBS="$lt_cv_dlopen_libs $LIBS"
8655
8656    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8657echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8658if test "${lt_cv_dlopen_self+set}" = set; then
8659  echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661  	  if test "$cross_compiling" = yes; then :
8662  lt_cv_dlopen_self=cross
8663else
8664  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8665  lt_status=$lt_dlunknown
8666  cat > conftest.$ac_ext <<EOF
8667#line 8667 "configure"
8668#include "confdefs.h"
8669
8670#if HAVE_DLFCN_H
8671#include <dlfcn.h>
8672#endif
8673
8674#include <stdio.h>
8675
8676#ifdef RTLD_GLOBAL
8677#  define LT_DLGLOBAL		RTLD_GLOBAL
8678#else
8679#  ifdef DL_GLOBAL
8680#    define LT_DLGLOBAL		DL_GLOBAL
8681#  else
8682#    define LT_DLGLOBAL		0
8683#  endif
8684#endif
8685
8686/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8687   find out it does not work in some platform. */
8688#ifndef LT_DLLAZY_OR_NOW
8689#  ifdef RTLD_LAZY
8690#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8691#  else
8692#    ifdef DL_LAZY
8693#      define LT_DLLAZY_OR_NOW		DL_LAZY
8694#    else
8695#      ifdef RTLD_NOW
8696#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8697#      else
8698#        ifdef DL_NOW
8699#          define LT_DLLAZY_OR_NOW	DL_NOW
8700#        else
8701#          define LT_DLLAZY_OR_NOW	0
8702#        endif
8703#      endif
8704#    endif
8705#  endif
8706#endif
8707
8708#ifdef __cplusplus
8709extern "C" void exit (int);
8710#endif
8711
8712void fnord() { int i=42;}
8713int main ()
8714{
8715  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8716  int status = $lt_dlunknown;
8717
8718  if (self)
8719    {
8720      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8721      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8722      /* dlclose (self); */
8723    }
8724
8725    exit (status);
8726}
8727EOF
8728  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729  (eval $ac_link) 2>&5
8730  ac_status=$?
8731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8733    (./conftest; exit; ) 2>/dev/null
8734    lt_status=$?
8735    case x$lt_status in
8736      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8737      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8738      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8739    esac
8740  else :
8741    # compilation failed
8742    lt_cv_dlopen_self=no
8743  fi
8744fi
8745rm -fr conftest*
8746
8747
8748fi
8749echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8750echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8751
8752    if test "x$lt_cv_dlopen_self" = xyes; then
8753      LDFLAGS="$LDFLAGS $link_static_flag"
8754      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8755echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8756if test "${lt_cv_dlopen_self_static+set}" = set; then
8757  echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759  	  if test "$cross_compiling" = yes; then :
8760  lt_cv_dlopen_self_static=cross
8761else
8762  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8763  lt_status=$lt_dlunknown
8764  cat > conftest.$ac_ext <<EOF
8765#line 8765 "configure"
8766#include "confdefs.h"
8767
8768#if HAVE_DLFCN_H
8769#include <dlfcn.h>
8770#endif
8771
8772#include <stdio.h>
8773
8774#ifdef RTLD_GLOBAL
8775#  define LT_DLGLOBAL		RTLD_GLOBAL
8776#else
8777#  ifdef DL_GLOBAL
8778#    define LT_DLGLOBAL		DL_GLOBAL
8779#  else
8780#    define LT_DLGLOBAL		0
8781#  endif
8782#endif
8783
8784/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8785   find out it does not work in some platform. */
8786#ifndef LT_DLLAZY_OR_NOW
8787#  ifdef RTLD_LAZY
8788#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8789#  else
8790#    ifdef DL_LAZY
8791#      define LT_DLLAZY_OR_NOW		DL_LAZY
8792#    else
8793#      ifdef RTLD_NOW
8794#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8795#      else
8796#        ifdef DL_NOW
8797#          define LT_DLLAZY_OR_NOW	DL_NOW
8798#        else
8799#          define LT_DLLAZY_OR_NOW	0
8800#        endif
8801#      endif
8802#    endif
8803#  endif
8804#endif
8805
8806#ifdef __cplusplus
8807extern "C" void exit (int);
8808#endif
8809
8810void fnord() { int i=42;}
8811int main ()
8812{
8813  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8814  int status = $lt_dlunknown;
8815
8816  if (self)
8817    {
8818      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8819      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8820      /* dlclose (self); */
8821    }
8822
8823    exit (status);
8824}
8825EOF
8826  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827  (eval $ac_link) 2>&5
8828  ac_status=$?
8829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8831    (./conftest; exit; ) 2>/dev/null
8832    lt_status=$?
8833    case x$lt_status in
8834      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8835      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8836      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8837    esac
8838  else :
8839    # compilation failed
8840    lt_cv_dlopen_self_static=no
8841  fi
8842fi
8843rm -fr conftest*
8844
8845
8846fi
8847echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8848echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8849    fi
8850
8851    CPPFLAGS="$save_CPPFLAGS"
8852    LDFLAGS="$save_LDFLAGS"
8853    LIBS="$save_LIBS"
8854    ;;
8855  esac
8856
8857  case $lt_cv_dlopen_self in
8858  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8859  *) enable_dlopen_self=unknown ;;
8860  esac
8861
8862  case $lt_cv_dlopen_self_static in
8863  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8864  *) enable_dlopen_self_static=unknown ;;
8865  esac
8866fi
8867
8868
8869# Report which librarie types wil actually be built
8870echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8871echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8872echo "$as_me:$LINENO: result: $can_build_shared" >&5
8873echo "${ECHO_T}$can_build_shared" >&6
8874
8875echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8876echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8877test "$can_build_shared" = "no" && enable_shared=no
8878
8879# On AIX, shared libraries and static libraries use the same namespace, and
8880# are all built from PIC.
8881case "$host_os" in
8882aix3*)
8883  test "$enable_shared" = yes && enable_static=no
8884  if test -n "$RANLIB"; then
8885    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8886    postinstall_cmds='$RANLIB $lib'
8887  fi
8888  ;;
8889
8890aix4* | aix5*)
8891  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8892    test "$enable_shared" = yes && enable_static=no
8893  fi
8894  ;;
8895  darwin* | rhapsody*)
8896  if test "$GCC" = yes; then
8897    archive_cmds_need_lc=no
8898    case "$host_os" in
8899    rhapsody* | darwin1.[012])
8900      allow_undefined_flag='-undefined suppress'
8901      ;;
8902    *) # Darwin 1.3 on
8903      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8904      	allow_undefined_flag='-flat_namespace -undefined suppress'
8905      else
8906        case ${MACOSX_DEPLOYMENT_TARGET} in
8907          10.[012])
8908            allow_undefined_flag='-flat_namespace -undefined suppress'
8909            ;;
8910          10.*)
8911            allow_undefined_flag='-undefined dynamic_lookup'
8912            ;;
8913        esac
8914      fi
8915      ;;
8916    esac
8917    output_verbose_link_cmd='echo'
8918    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8919    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8920    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8921    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}'
8922    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}'
8923    hardcode_direct=no
8924    hardcode_automatic=yes
8925    hardcode_shlibpath_var=unsupported
8926    whole_archive_flag_spec='-all_load $convenience'
8927    link_all_deplibs=yes
8928  else
8929    ld_shlibs=no
8930  fi
8931    ;;
8932esac
8933echo "$as_me:$LINENO: result: $enable_shared" >&5
8934echo "${ECHO_T}$enable_shared" >&6
8935
8936echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8937echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8938# Make sure either enable_shared or enable_static is yes.
8939test "$enable_shared" = yes || enable_static=yes
8940echo "$as_me:$LINENO: result: $enable_static" >&5
8941echo "${ECHO_T}$enable_static" >&6
8942
8943# The else clause should only fire when bootstrapping the
8944# libtool distribution, otherwise you forgot to ship ltmain.sh
8945# with your package, and you will get complaints that there are
8946# no rules to generate ltmain.sh.
8947if test -f "$ltmain"; then
8948  # See if we are running on zsh, and set the options which allow our commands through
8949  # without removal of \ escapes.
8950  if test -n "${ZSH_VERSION+set}" ; then
8951    setopt NO_GLOB_SUBST
8952  fi
8953  # Now quote all the things that may contain metacharacters while being
8954  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8955  # variables and quote the copies for generation of the libtool script.
8956  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8957    SED SHELL STRIP \
8958    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8959    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8960    deplibs_check_method reload_flag reload_cmds need_locks \
8961    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8962    lt_cv_sys_global_symbol_to_c_name_address \
8963    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8964    old_postinstall_cmds old_postuninstall_cmds \
8965    compiler \
8966    CC \
8967    LD \
8968    lt_prog_compiler_wl \
8969    lt_prog_compiler_pic \
8970    lt_prog_compiler_static \
8971    lt_prog_compiler_no_builtin_flag \
8972    export_dynamic_flag_spec \
8973    thread_safe_flag_spec \
8974    whole_archive_flag_spec \
8975    enable_shared_with_static_runtimes \
8976    old_archive_cmds \
8977    old_archive_from_new_cmds \
8978    predep_objects \
8979    postdep_objects \
8980    predeps \
8981    postdeps \
8982    compiler_lib_search_path \
8983    archive_cmds \
8984    archive_expsym_cmds \
8985    postinstall_cmds \
8986    postuninstall_cmds \
8987    old_archive_from_expsyms_cmds \
8988    allow_undefined_flag \
8989    no_undefined_flag \
8990    export_symbols_cmds \
8991    hardcode_libdir_flag_spec \
8992    hardcode_libdir_flag_spec_ld \
8993    hardcode_libdir_separator \
8994    hardcode_automatic \
8995    module_cmds \
8996    module_expsym_cmds \
8997    lt_cv_prog_compiler_c_o \
8998    exclude_expsyms \
8999    include_expsyms; do
9000
9001    case $var in
9002    old_archive_cmds | \
9003    old_archive_from_new_cmds | \
9004    archive_cmds | \
9005    archive_expsym_cmds | \
9006    module_cmds | \
9007    module_expsym_cmds | \
9008    old_archive_from_expsyms_cmds | \
9009    export_symbols_cmds | \
9010    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9011    postinstall_cmds | postuninstall_cmds | \
9012    old_postinstall_cmds | old_postuninstall_cmds | \
9013    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9014      # Double-quote double-evaled strings.
9015      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9016      ;;
9017    *)
9018      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9019      ;;
9020    esac
9021  done
9022
9023  case $lt_echo in
9024  *'\$0 --fallback-echo"')
9025    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9026    ;;
9027  esac
9028
9029cfgfile="${ofile}T"
9030  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9031  $rm -f "$cfgfile"
9032  { echo "$as_me:$LINENO: creating $ofile" >&5
9033echo "$as_me: creating $ofile" >&6;}
9034
9035  cat <<__EOF__ >> "$cfgfile"
9036#! $SHELL
9037
9038# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9039# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9040# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9041#
9042# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9043# Free Software Foundation, Inc.
9044#
9045# This file is part of GNU Libtool:
9046# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9047#
9048# This program is free software; you can redistribute it and/or modify
9049# it under the terms of the GNU General Public License as published by
9050# the Free Software Foundation; either version 2 of the License, or
9051# (at your option) any later version.
9052#
9053# This program is distributed in the hope that it will be useful, but
9054# WITHOUT ANY WARRANTY; without even the implied warranty of
9055# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9056# General Public License for more details.
9057#
9058# You should have received a copy of the GNU General Public License
9059# along with this program; if not, write to the Free Software
9060# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9061#
9062# As a special exception to the GNU General Public License, if you
9063# distribute this file as part of a program that contains a
9064# configuration script generated by Autoconf, you may include it under
9065# the same distribution terms that you use for the rest of that program.
9066
9067# A sed program that does not truncate output.
9068SED=$lt_SED
9069
9070# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9071Xsed="$SED -e s/^X//"
9072
9073# The HP-UX ksh and POSIX shell print the target directory to stdout
9074# if CDPATH is set.
9075if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9076
9077# The names of the tagged configurations supported by this script.
9078available_tags=
9079
9080# ### BEGIN LIBTOOL CONFIG
9081
9082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9083
9084# Shell to use when invoking shell scripts.
9085SHELL=$lt_SHELL
9086
9087# Whether or not to build shared libraries.
9088build_libtool_libs=$enable_shared
9089
9090# Whether or not to build static libraries.
9091build_old_libs=$enable_static
9092
9093# Whether or not to add -lc for building shared libraries.
9094build_libtool_need_lc=$archive_cmds_need_lc
9095
9096# Whether or not to disallow shared libs when runtime libs are static
9097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9098
9099# Whether or not to optimize for fast installation.
9100fast_install=$enable_fast_install
9101
9102# The host system.
9103host_alias=$host_alias
9104host=$host
9105
9106# An echo program that does not interpret backslashes.
9107echo=$lt_echo
9108
9109# The archiver.
9110AR=$lt_AR
9111AR_FLAGS=$lt_AR_FLAGS
9112
9113# A C compiler.
9114LTCC=$lt_LTCC
9115
9116# A language-specific compiler.
9117CC=$lt_compiler
9118
9119# Is the compiler the GNU C compiler?
9120with_gcc=$GCC
9121
9122# An ERE matcher.
9123EGREP=$lt_EGREP
9124
9125# The linker used to build libraries.
9126LD=$lt_LD
9127
9128# Whether we need hard or soft links.
9129LN_S=$lt_LN_S
9130
9131# A BSD-compatible nm program.
9132NM=$lt_NM
9133
9134# A symbol stripping program
9135STRIP=$lt_STRIP
9136
9137# Used to examine libraries when file_magic_cmd begins "file"
9138MAGIC_CMD=$MAGIC_CMD
9139
9140# Used on cygwin: DLL creation program.
9141DLLTOOL="$DLLTOOL"
9142
9143# Used on cygwin: object dumper.
9144OBJDUMP="$OBJDUMP"
9145
9146# Used on cygwin: assembler.
9147AS="$AS"
9148
9149# The name of the directory that contains temporary libtool files.
9150objdir=$objdir
9151
9152# How to create reloadable object files.
9153reload_flag=$lt_reload_flag
9154reload_cmds=$lt_reload_cmds
9155
9156# How to pass a linker flag through the compiler.
9157wl=$lt_lt_prog_compiler_wl
9158
9159# Object file suffix (normally "o").
9160objext="$ac_objext"
9161
9162# Old archive suffix (normally "a").
9163libext="$libext"
9164
9165# Shared library suffix (normally ".so").
9166shrext_cmds='$shrext_cmds'
9167
9168# Executable file suffix (normally "").
9169exeext="$exeext"
9170
9171# Additional compiler flags for building library objects.
9172pic_flag=$lt_lt_prog_compiler_pic
9173pic_mode=$pic_mode
9174
9175# What is the maximum length of a command?
9176max_cmd_len=$lt_cv_sys_max_cmd_len
9177
9178# Does compiler simultaneously support -c and -o options?
9179compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9180
9181# Must we lock files when doing compilation ?
9182need_locks=$lt_need_locks
9183
9184# Do we need the lib prefix for modules?
9185need_lib_prefix=$need_lib_prefix
9186
9187# Do we need a version for libraries?
9188need_version=$need_version
9189
9190# Whether dlopen is supported.
9191dlopen_support=$enable_dlopen
9192
9193# Whether dlopen of programs is supported.
9194dlopen_self=$enable_dlopen_self
9195
9196# Whether dlopen of statically linked programs is supported.
9197dlopen_self_static=$enable_dlopen_self_static
9198
9199# Compiler flag to prevent dynamic linking.
9200link_static_flag=$lt_lt_prog_compiler_static
9201
9202# Compiler flag to turn off builtin functions.
9203no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9204
9205# Compiler flag to allow reflexive dlopens.
9206export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9207
9208# Compiler flag to generate shared objects directly from archives.
9209whole_archive_flag_spec=$lt_whole_archive_flag_spec
9210
9211# Compiler flag to generate thread-safe objects.
9212thread_safe_flag_spec=$lt_thread_safe_flag_spec
9213
9214# Library versioning type.
9215version_type=$version_type
9216
9217# Format of library name prefix.
9218libname_spec=$lt_libname_spec
9219
9220# List of archive names.  First name is the real one, the rest are links.
9221# The last name is the one that the linker finds with -lNAME.
9222library_names_spec=$lt_library_names_spec
9223
9224# The coded name of the library, if different from the real name.
9225soname_spec=$lt_soname_spec
9226
9227# Commands used to build and install an old-style archive.
9228RANLIB=$lt_RANLIB
9229old_archive_cmds=$lt_old_archive_cmds
9230old_postinstall_cmds=$lt_old_postinstall_cmds
9231old_postuninstall_cmds=$lt_old_postuninstall_cmds
9232
9233# Create an old-style archive from a shared archive.
9234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9235
9236# Create a temporary old-style archive to link instead of a shared archive.
9237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9238
9239# Commands used to build and install a shared archive.
9240archive_cmds=$lt_archive_cmds
9241archive_expsym_cmds=$lt_archive_expsym_cmds
9242postinstall_cmds=$lt_postinstall_cmds
9243postuninstall_cmds=$lt_postuninstall_cmds
9244
9245# Commands used to build a loadable module (assumed same as above if empty)
9246module_cmds=$lt_module_cmds
9247module_expsym_cmds=$lt_module_expsym_cmds
9248
9249# Commands to strip libraries.
9250old_striplib=$lt_old_striplib
9251striplib=$lt_striplib
9252
9253# Dependencies to place before the objects being linked to create a
9254# shared library.
9255predep_objects=$lt_predep_objects
9256
9257# Dependencies to place after the objects being linked to create a
9258# shared library.
9259postdep_objects=$lt_postdep_objects
9260
9261# Dependencies to place before the objects being linked to create a
9262# shared library.
9263predeps=$lt_predeps
9264
9265# Dependencies to place after the objects being linked to create a
9266# shared library.
9267postdeps=$lt_postdeps
9268
9269# The library search path used internally by the compiler when linking
9270# a shared library.
9271compiler_lib_search_path=$lt_compiler_lib_search_path
9272
9273# Method to check whether dependent libraries are shared objects.
9274deplibs_check_method=$lt_deplibs_check_method
9275
9276# Command to use when deplibs_check_method == file_magic.
9277file_magic_cmd=$lt_file_magic_cmd
9278
9279# Flag that allows shared libraries with undefined symbols to be built.
9280allow_undefined_flag=$lt_allow_undefined_flag
9281
9282# Flag that forces no undefined symbols.
9283no_undefined_flag=$lt_no_undefined_flag
9284
9285# Commands used to finish a libtool library installation in a directory.
9286finish_cmds=$lt_finish_cmds
9287
9288# Same as above, but a single script fragment to be evaled but not shown.
9289finish_eval=$lt_finish_eval
9290
9291# Take the output of nm and produce a listing of raw symbols and C names.
9292global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9293
9294# Transform the output of nm in a proper C declaration
9295global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9296
9297# Transform the output of nm in a C name address pair
9298global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9299
9300# This is the shared library runtime path variable.
9301runpath_var=$runpath_var
9302
9303# This is the shared library path variable.
9304shlibpath_var=$shlibpath_var
9305
9306# Is shlibpath searched before the hard-coded library search path?
9307shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9308
9309# How to hardcode a shared library path into an executable.
9310hardcode_action=$hardcode_action
9311
9312# Whether we should hardcode library paths into libraries.
9313hardcode_into_libs=$hardcode_into_libs
9314
9315# Flag to hardcode \$libdir into a binary during linking.
9316# This must work even if \$libdir does not exist.
9317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9318
9319# If ld is used when linking, flag to hardcode \$libdir into
9320# a binary during linking. This must work even if \$libdir does
9321# not exist.
9322hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9323
9324# Whether we need a single -rpath flag with a separated argument.
9325hardcode_libdir_separator=$lt_hardcode_libdir_separator
9326
9327# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9328# resulting binary.
9329hardcode_direct=$hardcode_direct
9330
9331# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9332# resulting binary.
9333hardcode_minus_L=$hardcode_minus_L
9334
9335# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9336# the resulting binary.
9337hardcode_shlibpath_var=$hardcode_shlibpath_var
9338
9339# Set to yes if building a shared library automatically hardcodes DIR into the library
9340# and all subsequent libraries and executables linked against it.
9341hardcode_automatic=$hardcode_automatic
9342
9343# Variables whose values should be saved in libtool wrapper scripts and
9344# restored at relink time.
9345variables_saved_for_relink="$variables_saved_for_relink"
9346
9347# Whether libtool must link a program against all its dependency libraries.
9348link_all_deplibs=$link_all_deplibs
9349
9350# Compile-time system search path for libraries
9351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9352
9353# Run-time system search path for libraries
9354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9355
9356# Fix the shell variable \$srcfile for the compiler.
9357fix_srcfile_path="$fix_srcfile_path"
9358
9359# Set to yes if exported symbols are required.
9360always_export_symbols=$always_export_symbols
9361
9362# The commands to list exported symbols.
9363export_symbols_cmds=$lt_export_symbols_cmds
9364
9365# The commands to extract the exported symbol list from a shared archive.
9366extract_expsyms_cmds=$lt_extract_expsyms_cmds
9367
9368# Symbols that should not be listed in the preloaded symbols.
9369exclude_expsyms=$lt_exclude_expsyms
9370
9371# Symbols that must always be exported.
9372include_expsyms=$lt_include_expsyms
9373
9374# ### END LIBTOOL CONFIG
9375
9376__EOF__
9377
9378
9379  case $host_os in
9380  aix3*)
9381    cat <<\EOF >> "$cfgfile"
9382
9383# AIX sometimes has problems with the GCC collect2 program.  For some
9384# reason, if we set the COLLECT_NAMES environment variable, the problems
9385# vanish in a puff of smoke.
9386if test "X${COLLECT_NAMES+set}" != Xset; then
9387  COLLECT_NAMES=
9388  export COLLECT_NAMES
9389fi
9390EOF
9391    ;;
9392  esac
9393
9394  # We use sed instead of cat because bash on DJGPP gets confused if
9395  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9396  # text mode, it properly converts lines to CR/LF.  This bash problem
9397  # is reportedly fixed, but why not run on old versions too?
9398  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9399
9400  mv -f "$cfgfile" "$ofile" || \
9401    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9402  chmod +x "$ofile"
9403
9404else
9405  # If there is no Makefile yet, we rely on a make rule to execute
9406  # `config.status --recheck' to rerun these tests and create the
9407  # libtool script then.
9408  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9409  if test -f "$ltmain_in"; then
9410    test -f Makefile && make "$ltmain"
9411  fi
9412fi
9413
9414
9415ac_ext=c
9416ac_cpp='$CPP $CPPFLAGS'
9417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9419ac_compiler_gnu=$ac_cv_c_compiler_gnu
9420
9421CC="$lt_save_CC"
9422
9423
9424# Check whether --with-tags or --without-tags was given.
9425if test "${with_tags+set}" = set; then
9426  withval="$with_tags"
9427  tagnames="$withval"
9428fi;
9429
9430if test -f "$ltmain" && test -n "$tagnames"; then
9431  if test ! -f "${ofile}"; then
9432    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9433echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9434  fi
9435
9436  if test -z "$LTCC"; then
9437    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9438    if test -z "$LTCC"; then
9439      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9440echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9441    else
9442      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9443echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9444    fi
9445  fi
9446
9447  # Extract list of available tagged configurations in $ofile.
9448  # Note that this assumes the entire list is on one line.
9449  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9450
9451  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9452  for tagname in $tagnames; do
9453    IFS="$lt_save_ifs"
9454    # Check whether tagname contains only valid characters
9455    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9456    "") ;;
9457    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9458echo "$as_me: error: invalid tag name: $tagname" >&2;}
9459   { (exit 1); exit 1; }; }
9460	;;
9461    esac
9462
9463    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9464    then
9465      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9466echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9467   { (exit 1); exit 1; }; }
9468    fi
9469
9470    # Update the list of available tags.
9471    if test -n "$tagname"; then
9472      echo appending configuration tag \"$tagname\" to $ofile
9473
9474      case $tagname in
9475      CXX)
9476	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9477	  ac_ext=cc
9478ac_cpp='$CXXCPP $CPPFLAGS'
9479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9482
9483
9484
9485
9486archive_cmds_need_lc_CXX=no
9487allow_undefined_flag_CXX=
9488always_export_symbols_CXX=no
9489archive_expsym_cmds_CXX=
9490export_dynamic_flag_spec_CXX=
9491hardcode_direct_CXX=no
9492hardcode_libdir_flag_spec_CXX=
9493hardcode_libdir_flag_spec_ld_CXX=
9494hardcode_libdir_separator_CXX=
9495hardcode_minus_L_CXX=no
9496hardcode_automatic_CXX=no
9497module_cmds_CXX=
9498module_expsym_cmds_CXX=
9499link_all_deplibs_CXX=unknown
9500old_archive_cmds_CXX=$old_archive_cmds
9501no_undefined_flag_CXX=
9502whole_archive_flag_spec_CXX=
9503enable_shared_with_static_runtimes_CXX=no
9504
9505# Dependencies to place before and after the object being linked:
9506predep_objects_CXX=
9507postdep_objects_CXX=
9508predeps_CXX=
9509postdeps_CXX=
9510compiler_lib_search_path_CXX=
9511
9512# Source file extension for C++ test sources.
9513ac_ext=cc
9514
9515# Object file extension for compiled C++ test sources.
9516objext=o
9517objext_CXX=$objext
9518
9519# Code to be used in simple compile tests
9520lt_simple_compile_test_code="int some_variable = 0;\n"
9521
9522# Code to be used in simple link tests
9523lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9524
9525# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9526
9527# If no C compiler was specified, use CC.
9528LTCC=${LTCC-"$CC"}
9529
9530# Allow CC to be a program name with arguments.
9531compiler=$CC
9532
9533
9534# Allow CC to be a program name with arguments.
9535lt_save_CC=$CC
9536lt_save_LD=$LD
9537lt_save_GCC=$GCC
9538GCC=$GXX
9539lt_save_with_gnu_ld=$with_gnu_ld
9540lt_save_path_LD=$lt_cv_path_LD
9541if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9542  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9543else
9544  unset lt_cv_prog_gnu_ld
9545fi
9546if test -n "${lt_cv_path_LDCXX+set}"; then
9547  lt_cv_path_LD=$lt_cv_path_LDCXX
9548else
9549  unset lt_cv_path_LD
9550fi
9551test -z "${LDCXX+set}" || LD=$LDCXX
9552CC=${CXX-"c++"}
9553compiler=$CC
9554compiler_CXX=$CC
9555cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9556
9557# We don't want -fno-exception wen compiling C++ code, so set the
9558# no_builtin_flag separately
9559if test "$GXX" = yes; then
9560  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9561else
9562  lt_prog_compiler_no_builtin_flag_CXX=
9563fi
9564
9565if test "$GXX" = yes; then
9566  # Set up default GNU C++ configuration
9567
9568
9569# Check whether --with-gnu-ld or --without-gnu-ld was given.
9570if test "${with_gnu_ld+set}" = set; then
9571  withval="$with_gnu_ld"
9572  test "$withval" = no || with_gnu_ld=yes
9573else
9574  with_gnu_ld=no
9575fi;
9576ac_prog=ld
9577if test "$GCC" = yes; then
9578  # Check if gcc -print-prog-name=ld gives a path.
9579  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9580echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9581  case $host in
9582  *-*-mingw*)
9583    # gcc leaves a trailing carriage return which upsets mingw
9584    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9585  *)
9586    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9587  esac
9588  case $ac_prog in
9589    # Accept absolute paths.
9590    [\\/]* | ?:[\\/]*)
9591      re_direlt='/[^/][^/]*/\.\./'
9592      # Canonicalize the pathname of ld
9593      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9594      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9595	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9596      done
9597      test -z "$LD" && LD="$ac_prog"
9598      ;;
9599  "")
9600    # If it fails, then pretend we aren't using GCC.
9601    ac_prog=ld
9602    ;;
9603  *)
9604    # If it is relative, then search for the first ld in PATH.
9605    with_gnu_ld=unknown
9606    ;;
9607  esac
9608elif test "$with_gnu_ld" = yes; then
9609  echo "$as_me:$LINENO: checking for GNU ld" >&5
9610echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9611else
9612  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9613echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9614fi
9615if test "${lt_cv_path_LD+set}" = set; then
9616  echo $ECHO_N "(cached) $ECHO_C" >&6
9617else
9618  if test -z "$LD"; then
9619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9620  for ac_dir in $PATH; do
9621    IFS="$lt_save_ifs"
9622    test -z "$ac_dir" && ac_dir=.
9623    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9624      lt_cv_path_LD="$ac_dir/$ac_prog"
9625      # Check to see if the program is GNU ld.  I'd rather use --version,
9626      # but apparently some GNU ld's only accept -v.
9627      # Break only if it was the GNU/non-GNU ld that we prefer.
9628      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9629      *GNU* | *'with BFD'*)
9630	test "$with_gnu_ld" != no && break
9631	;;
9632      *)
9633	test "$with_gnu_ld" != yes && break
9634	;;
9635      esac
9636    fi
9637  done
9638  IFS="$lt_save_ifs"
9639else
9640  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9641fi
9642fi
9643
9644LD="$lt_cv_path_LD"
9645if test -n "$LD"; then
9646  echo "$as_me:$LINENO: result: $LD" >&5
9647echo "${ECHO_T}$LD" >&6
9648else
9649  echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6
9651fi
9652test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9653echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9654   { (exit 1); exit 1; }; }
9655echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9656echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9657if test "${lt_cv_prog_gnu_ld+set}" = set; then
9658  echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9661case `$LD -v 2>&1 </dev/null` in
9662*GNU* | *'with BFD'*)
9663  lt_cv_prog_gnu_ld=yes
9664  ;;
9665*)
9666  lt_cv_prog_gnu_ld=no
9667  ;;
9668esac
9669fi
9670echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9671echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9672with_gnu_ld=$lt_cv_prog_gnu_ld
9673
9674
9675
9676  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9677  # archiving commands below assume that GNU ld is being used.
9678  if test "$with_gnu_ld" = yes; then
9679    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680    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'
9681
9682    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9683    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9684
9685    # If archive_cmds runs LD, not CC, wlarc should be empty
9686    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9687    #     investigate it a little bit more. (MM)
9688    wlarc='${wl}'
9689
9690    # ancient GNU ld didn't support --whole-archive et. al.
9691    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9692	grep 'no-whole-archive' > /dev/null; then
9693      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9694    else
9695      whole_archive_flag_spec_CXX=
9696    fi
9697  else
9698    with_gnu_ld=no
9699    wlarc=
9700
9701    # A generic and very simple default shared library creation
9702    # command for GNU C++ for the case where it uses the native
9703    # linker, instead of GNU ld.  If possible, this setting should
9704    # overridden to take advantage of the native linker features on
9705    # the platform it is being used on.
9706    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9707  fi
9708
9709  # Commands to make compiler produce verbose output that lists
9710  # what "hidden" libraries, object files and flags are used when
9711  # linking a shared library.
9712  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9713
9714else
9715  GXX=no
9716  with_gnu_ld=no
9717  wlarc=
9718fi
9719
9720# PORTME: fill in a description of your system's C++ link characteristics
9721echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9722echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9723ld_shlibs_CXX=yes
9724case $host_os in
9725  aix3*)
9726    # FIXME: insert proper C++ library support
9727    ld_shlibs_CXX=no
9728    ;;
9729  aix4* | aix5*)
9730    if test "$host_cpu" = ia64; then
9731      # On IA64, the linker does run time linking by default, so we don't
9732      # have to do anything special.
9733      aix_use_runtimelinking=no
9734      exp_sym_flag='-Bexport'
9735      no_entry_flag=""
9736    else
9737      aix_use_runtimelinking=no
9738
9739      # Test if we are trying to use run time linking or normal
9740      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9741      # need to do runtime linking.
9742      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9743	for ld_flag in $LDFLAGS; do
9744	  case $ld_flag in
9745	  *-brtl*)
9746	    aix_use_runtimelinking=yes
9747	    break
9748	    ;;
9749	  esac
9750	done
9751      esac
9752
9753      exp_sym_flag='-bexport'
9754      no_entry_flag='-bnoentry'
9755    fi
9756
9757    # When large executables or shared objects are built, AIX ld can
9758    # have problems creating the table of contents.  If linking a library
9759    # or program results in "error TOC overflow" add -mminimal-toc to
9760    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9761    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9762
9763    archive_cmds_CXX=''
9764    hardcode_direct_CXX=yes
9765    hardcode_libdir_separator_CXX=':'
9766    link_all_deplibs_CXX=yes
9767
9768    if test "$GXX" = yes; then
9769      case $host_os in aix4.012|aix4.012.*)
9770      # We only want to do this on AIX 4.2 and lower, the check
9771      # below for broken collect2 doesn't work under 4.3+
9772	collect2name=`${CC} -print-prog-name=collect2`
9773	if test -f "$collect2name" && \
9774	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9775	then
9776	  # We have reworked collect2
9777	  hardcode_direct_CXX=yes
9778	else
9779	  # We have old collect2
9780	  hardcode_direct_CXX=unsupported
9781	  # It fails to find uninstalled libraries when the uninstalled
9782	  # path is not listed in the libpath.  Setting hardcode_minus_L
9783	  # to unsupported forces relinking
9784	  hardcode_minus_L_CXX=yes
9785	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9786	  hardcode_libdir_separator_CXX=
9787	fi
9788      esac
9789      shared_flag='-shared'
9790    else
9791      # not using gcc
9792      if test "$host_cpu" = ia64; then
9793	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9794	# chokes on -Wl,-G. The following line is correct:
9795	shared_flag='-G'
9796      else
9797	if test "$aix_use_runtimelinking" = yes; then
9798	  shared_flag='${wl}-G'
9799	else
9800	  shared_flag='${wl}-bM:SRE'
9801	fi
9802      fi
9803    fi
9804
9805    # It seems that -bexpall does not export symbols beginning with
9806    # underscore (_), so it is better to generate a list of symbols to export.
9807    always_export_symbols_CXX=yes
9808    if test "$aix_use_runtimelinking" = yes; then
9809      # Warning - without using the other runtime loading flags (-brtl),
9810      # -berok will link without error, but may produce a broken library.
9811      allow_undefined_flag_CXX='-berok'
9812      # Determine the default libpath from the value encoded in an empty executable.
9813      cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h.  */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h.  */
9819
9820int
9821main ()
9822{
9823
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830  (eval $ac_link) 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } &&
9837	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839  (eval $ac_try) 2>&5
9840  ac_status=$?
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }; } &&
9843	 { ac_try='test -s conftest$ac_exeext'
9844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845  (eval $ac_try) 2>&5
9846  ac_status=$?
9847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848  (exit $ac_status); }; }; then
9849
9850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9851}'`
9852# Check for a 64-bit object if we didn't find anything.
9853if 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; }
9854}'`; fi
9855else
9856  echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859fi
9860rm -f conftest.err conftest.$ac_objext \
9861      conftest$ac_exeext conftest.$ac_ext
9862if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9863
9864      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9865
9866      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"
9867     else
9868      if test "$host_cpu" = ia64; then
9869	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9870	allow_undefined_flag_CXX="-z nodefs"
9871	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"
9872      else
9873	# Determine the default libpath from the value encoded in an empty executable.
9874	cat >conftest.$ac_ext <<_ACEOF
9875/* confdefs.h.  */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h.  */
9880
9881int
9882main ()
9883{
9884
9885  ;
9886  return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891  (eval $ac_link) 2>conftest.er1
9892  ac_status=$?
9893  grep -v '^ *+' conftest.er1 >conftest.err
9894  rm -f conftest.er1
9895  cat conftest.err >&5
9896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); } &&
9898	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900  (eval $ac_try) 2>&5
9901  ac_status=$?
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); }; } &&
9904	 { ac_try='test -s conftest$ac_exeext'
9905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906  (eval $ac_try) 2>&5
9907  ac_status=$?
9908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909  (exit $ac_status); }; }; then
9910
9911aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9912}'`
9913# Check for a 64-bit object if we didn't find anything.
9914if 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; }
9915}'`; fi
9916else
9917  echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
9920fi
9921rm -f conftest.err conftest.$ac_objext \
9922      conftest$ac_exeext conftest.$ac_ext
9923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9924
9925	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9926	# Warning - without using the other run time loading flags,
9927	# -berok will link without error, but may produce a broken library.
9928	no_undefined_flag_CXX=' ${wl}-bernotok'
9929	allow_undefined_flag_CXX=' ${wl}-berok'
9930	# -bexpall does not export symbols beginning with underscore (_)
9931	always_export_symbols_CXX=yes
9932	# Exported symbols can be pulled into shared objects from archives
9933	whole_archive_flag_spec_CXX=' '
9934	archive_cmds_need_lc_CXX=yes
9935	# This is similar to how AIX traditionally builds it's shared libraries.
9936	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'
9937      fi
9938    fi
9939    ;;
9940  chorus*)
9941    case $cc_basename in
9942      *)
9943	# FIXME: insert proper C++ library support
9944	ld_shlibs_CXX=no
9945	;;
9946    esac
9947    ;;
9948
9949  cygwin* | mingw* | pw32*)
9950    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9951    # as there is no search path for DLLs.
9952    hardcode_libdir_flag_spec_CXX='-L$libdir'
9953    allow_undefined_flag_CXX=unsupported
9954    always_export_symbols_CXX=no
9955    enable_shared_with_static_runtimes_CXX=yes
9956
9957    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9958      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'
9959      # If the export-symbols file already is a .def file (1st line
9960      # is EXPORTS), use it as is; otherwise, prepend...
9961      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9962	cp $export_symbols $output_objdir/$soname.def;
9963      else
9964	echo EXPORTS > $output_objdir/$soname.def;
9965	cat $export_symbols >> $output_objdir/$soname.def;
9966      fi~
9967      $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'
9968    else
9969      ld_shlibs_CXX=no
9970    fi
9971  ;;
9972
9973  darwin* | rhapsody*)
9974  if test "$GXX" = yes; then
9975    archive_cmds_need_lc_CXX=no
9976    case "$host_os" in
9977    rhapsody* | darwin1.[012])
9978      allow_undefined_flag_CXX='-undefined suppress'
9979      ;;
9980    *) # Darwin 1.3 on
9981      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9982      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9983      else
9984        case ${MACOSX_DEPLOYMENT_TARGET} in
9985          10.[012])
9986            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9987            ;;
9988          10.*)
9989            allow_undefined_flag_CXX='-undefined dynamic_lookup'
9990            ;;
9991        esac
9992      fi
9993      ;;
9994    esac
9995    lt_int_apple_cc_single_mod=no
9996    output_verbose_link_cmd='echo'
9997    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9998      lt_int_apple_cc_single_mod=yes
9999    fi
10000    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10001      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10002    else
10003      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10004    fi
10005    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10006
10007    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10008    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10009      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}'
10010    else
10011      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10012    fi
10013    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}'
10014    hardcode_direct_CXX=no
10015    hardcode_automatic_CXX=yes
10016    hardcode_shlibpath_var_CXX=unsupported
10017    whole_archive_flag_spec_CXX='-all_load $convenience'
10018    link_all_deplibs_CXX=yes
10019  else
10020    ld_shlibs_CXX=no
10021  fi
10022    ;;
10023
10024  dgux*)
10025    case $cc_basename in
10026      ec++)
10027	# FIXME: insert proper C++ library support
10028	ld_shlibs_CXX=no
10029	;;
10030      ghcx)
10031	# Green Hills C++ Compiler
10032	# FIXME: insert proper C++ library support
10033	ld_shlibs_CXX=no
10034	;;
10035      *)
10036	# FIXME: insert proper C++ library support
10037	ld_shlibs_CXX=no
10038	;;
10039    esac
10040    ;;
10041  freebsd12*)
10042    # C++ shared libraries reported to be fairly broken before switch to ELF
10043    ld_shlibs_CXX=no
10044    ;;
10045  freebsd-elf*)
10046    archive_cmds_need_lc_CXX=no
10047    ;;
10048  freebsd* | kfreebsd*-gnu)
10049    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10050    # conventions
10051    ld_shlibs_CXX=yes
10052    ;;
10053  gnu*)
10054    ;;
10055  hpux9*)
10056    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10057    hardcode_libdir_separator_CXX=:
10058    export_dynamic_flag_spec_CXX='${wl}-E'
10059    hardcode_direct_CXX=yes
10060    hardcode_minus_L_CXX=yes # Not in the search PATH,
10061				# but as the default
10062				# location of the library.
10063
10064    case $cc_basename in
10065    CC)
10066      # FIXME: insert proper C++ library support
10067      ld_shlibs_CXX=no
10068      ;;
10069    aCC)
10070      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'
10071      # Commands to make compiler produce verbose output that lists
10072      # what "hidden" libraries, object files and flags are used when
10073      # linking a shared library.
10074      #
10075      # There doesn't appear to be a way to prevent this compiler from
10076      # explicitly linking system object files so we need to strip them
10077      # from the output so that they don't get included in the library
10078      # dependencies.
10079      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'
10080      ;;
10081    *)
10082      if test "$GXX" = yes; then
10083        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'
10084      else
10085        # FIXME: insert proper C++ library support
10086        ld_shlibs_CXX=no
10087      fi
10088      ;;
10089    esac
10090    ;;
10091  hpux10*|hpux11*)
10092    if test $with_gnu_ld = no; then
10093      case "$host_cpu" in
10094      hppa*64*)
10095	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10096	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10097	hardcode_libdir_separator_CXX=:
10098        ;;
10099      ia64*)
10100	hardcode_libdir_flag_spec_CXX='-L$libdir'
10101        ;;
10102      *)
10103	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10104	hardcode_libdir_separator_CXX=:
10105	export_dynamic_flag_spec_CXX='${wl}-E'
10106        ;;
10107      esac
10108    fi
10109    case "$host_cpu" in
10110    hppa*64*)
10111      hardcode_direct_CXX=no
10112      hardcode_shlibpath_var_CXX=no
10113      ;;
10114    ia64*)
10115      hardcode_direct_CXX=no
10116      hardcode_shlibpath_var_CXX=no
10117      hardcode_minus_L_CXX=yes # Not in the search PATH,
10118					      # but as the default
10119					      # location of the library.
10120      ;;
10121    *)
10122      hardcode_direct_CXX=yes
10123      hardcode_minus_L_CXX=yes # Not in the search PATH,
10124					      # but as the default
10125					      # location of the library.
10126      ;;
10127    esac
10128
10129    case $cc_basename in
10130      CC)
10131	# FIXME: insert proper C++ library support
10132	ld_shlibs_CXX=no
10133	;;
10134      aCC)
10135	case "$host_cpu" in
10136	hppa*64*|ia64*)
10137	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10138	  ;;
10139	*)
10140	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10141	  ;;
10142	esac
10143	# Commands to make compiler produce verbose output that lists
10144	# what "hidden" libraries, object files and flags are used when
10145	# linking a shared library.
10146	#
10147	# There doesn't appear to be a way to prevent this compiler from
10148	# explicitly linking system object files so we need to strip them
10149	# from the output so that they don't get included in the library
10150	# dependencies.
10151	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'
10152	;;
10153      *)
10154	if test "$GXX" = yes; then
10155	  if test $with_gnu_ld = no; then
10156	    case "$host_cpu" in
10157	    ia64*|hppa*64*)
10158	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10159	      ;;
10160	    *)
10161	      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'
10162	      ;;
10163	    esac
10164	  fi
10165	else
10166	  # FIXME: insert proper C++ library support
10167	  ld_shlibs_CXX=no
10168	fi
10169	;;
10170    esac
10171    ;;
10172  irix5* | irix6*)
10173    case $cc_basename in
10174      CC)
10175	# SGI C++
10176	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 ${objdir}/so_locations -o $lib'
10177
10178	# Archives containing C++ object files must be created using
10179	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10180	# necessary to make sure instantiated templates are included
10181	# in the archive.
10182	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10183	;;
10184      *)
10185	if test "$GXX" = yes; then
10186	  if test "$with_gnu_ld" = no; then
10187	    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}${objdir}/so_locations -o $lib'
10188	  else
10189	    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'
10190	  fi
10191	fi
10192	link_all_deplibs_CXX=yes
10193	;;
10194    esac
10195    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10196    hardcode_libdir_separator_CXX=:
10197    ;;
10198  linux*)
10199    case $cc_basename in
10200      KCC)
10201	# Kuck and Associates, Inc. (KAI) C++ Compiler
10202
10203	# KCC will only create a shared library if the output file
10204	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10205	# to its proper name (with version) after linking.
10206	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'
10207	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'
10208	# Commands to make compiler produce verbose output that lists
10209	# what "hidden" libraries, object files and flags are used when
10210	# linking a shared library.
10211	#
10212	# There doesn't appear to be a way to prevent this compiler from
10213	# explicitly linking system object files so we need to strip them
10214	# from the output so that they don't get included in the library
10215	# dependencies.
10216	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'
10217
10218	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10219	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10220
10221	# Archives containing C++ object files must be created using
10222	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10223	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10224	;;
10225      icpc)
10226	# Intel C++
10227	with_gnu_ld=yes
10228	archive_cmds_need_lc_CXX=no
10229	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230	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'
10231	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10232	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10233	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10234	;;
10235      cxx)
10236	# Compaq C++
10237	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238	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'
10239
10240	runpath_var=LD_RUN_PATH
10241	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10242	hardcode_libdir_separator_CXX=:
10243
10244	# Commands to make compiler produce verbose output that lists
10245	# what "hidden" libraries, object files and flags are used when
10246	# linking a shared library.
10247	#
10248	# There doesn't appear to be a way to prevent this compiler from
10249	# explicitly linking system object files so we need to strip them
10250	# from the output so that they don't get included in the library
10251	# dependencies.
10252	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'
10253	;;
10254    esac
10255    ;;
10256  lynxos*)
10257    # FIXME: insert proper C++ library support
10258    ld_shlibs_CXX=no
10259    ;;
10260  m88k*)
10261    # FIXME: insert proper C++ library support
10262    ld_shlibs_CXX=no
10263    ;;
10264  mvs*)
10265    case $cc_basename in
10266      cxx)
10267	# FIXME: insert proper C++ library support
10268	ld_shlibs_CXX=no
10269	;;
10270      *)
10271	# FIXME: insert proper C++ library support
10272	ld_shlibs_CXX=no
10273	;;
10274    esac
10275    ;;
10276  netbsd* | knetbsd*-gnu)
10277    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10279      wlarc=
10280      hardcode_libdir_flag_spec_CXX='-R$libdir'
10281      hardcode_direct_CXX=yes
10282      hardcode_shlibpath_var_CXX=no
10283    fi
10284    # Workaround some broken pre-1.5 toolchains
10285    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10286    ;;
10287  osf3*)
10288    case $cc_basename in
10289      KCC)
10290	# Kuck and Associates, Inc. (KAI) C++ Compiler
10291
10292	# KCC will only create a shared library if the output file
10293	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10294	# to its proper name (with version) after linking.
10295	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'
10296
10297	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10298	hardcode_libdir_separator_CXX=:
10299
10300	# Archives containing C++ object files must be created using
10301	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10302	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10303
10304	;;
10305      RCC)
10306	# Rational C++ 2.4.1
10307	# FIXME: insert proper C++ library support
10308	ld_shlibs_CXX=no
10309	;;
10310      cxx)
10311	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10312	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 ${objdir}/so_locations -o $lib'
10313
10314	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10315	hardcode_libdir_separator_CXX=:
10316
10317	# Commands to make compiler produce verbose output that lists
10318	# what "hidden" libraries, object files and flags are used when
10319	# linking a shared library.
10320	#
10321	# There doesn't appear to be a way to prevent this compiler from
10322	# explicitly linking system object files so we need to strip them
10323	# from the output so that they don't get included in the library
10324	# dependencies.
10325	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'
10326	;;
10327      *)
10328	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10329	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10330	  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}${objdir}/so_locations -o $lib'
10331
10332	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10333	  hardcode_libdir_separator_CXX=:
10334
10335	  # Commands to make compiler produce verbose output that lists
10336	  # what "hidden" libraries, object files and flags are used when
10337	  # linking a shared library.
10338	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10339
10340	else
10341	  # FIXME: insert proper C++ library support
10342	  ld_shlibs_CXX=no
10343	fi
10344	;;
10345    esac
10346    ;;
10347  osf4* | osf5*)
10348    case $cc_basename in
10349      KCC)
10350	# Kuck and Associates, Inc. (KAI) C++ Compiler
10351
10352	# KCC will only create a shared library if the output file
10353	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10354	# to its proper name (with version) after linking.
10355	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'
10356
10357	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10358	hardcode_libdir_separator_CXX=:
10359
10360	# Archives containing C++ object files must be created using
10361	# the KAI C++ compiler.
10362	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10363	;;
10364      RCC)
10365	# Rational C++ 2.4.1
10366	# FIXME: insert proper C++ library support
10367	ld_shlibs_CXX=no
10368	;;
10369      cxx)
10370	allow_undefined_flag_CXX=' -expect_unresolved \*'
10371	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 ${objdir}/so_locations -o $lib'
10372	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10373	  echo "-hidden">> $lib.exp~
10374	  $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 $objdir/so_locations -o $lib~
10375	  $rm $lib.exp'
10376
10377	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10378	hardcode_libdir_separator_CXX=:
10379
10380	# Commands to make compiler produce verbose output that lists
10381	# what "hidden" libraries, object files and flags are used when
10382	# linking a shared library.
10383	#
10384	# There doesn't appear to be a way to prevent this compiler from
10385	# explicitly linking system object files so we need to strip them
10386	# from the output so that they don't get included in the library
10387	# dependencies.
10388	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'
10389	;;
10390      *)
10391	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10392	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10393	 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}${objdir}/so_locations -o $lib'
10394
10395	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10396	  hardcode_libdir_separator_CXX=:
10397
10398	  # Commands to make compiler produce verbose output that lists
10399	  # what "hidden" libraries, object files and flags are used when
10400	  # linking a shared library.
10401	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10402
10403	else
10404	  # FIXME: insert proper C++ library support
10405	  ld_shlibs_CXX=no
10406	fi
10407	;;
10408    esac
10409    ;;
10410  psos*)
10411    # FIXME: insert proper C++ library support
10412    ld_shlibs_CXX=no
10413    ;;
10414  sco*)
10415    archive_cmds_need_lc_CXX=no
10416    case $cc_basename in
10417      CC)
10418	# FIXME: insert proper C++ library support
10419	ld_shlibs_CXX=no
10420	;;
10421      *)
10422	# FIXME: insert proper C++ library support
10423	ld_shlibs_CXX=no
10424	;;
10425    esac
10426    ;;
10427  sunos4*)
10428    case $cc_basename in
10429      CC)
10430	# Sun C++ 4.x
10431	# FIXME: insert proper C++ library support
10432	ld_shlibs_CXX=no
10433	;;
10434      lcc)
10435	# Lucid
10436	# FIXME: insert proper C++ library support
10437	ld_shlibs_CXX=no
10438	;;
10439      *)
10440	# FIXME: insert proper C++ library support
10441	ld_shlibs_CXX=no
10442	;;
10443    esac
10444    ;;
10445  solaris*)
10446    case $cc_basename in
10447      CC)
10448	# Sun C++ 4.2, 5.x and Centerline C++
10449	no_undefined_flag_CXX=' -zdefs'
10450	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10451	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10452	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10453
10454	hardcode_libdir_flag_spec_CXX='-R$libdir'
10455	hardcode_shlibpath_var_CXX=no
10456	case $host_os in
10457	  solaris2.0-5 | solaris2.0-5.*) ;;
10458	  *)
10459	    # The C++ compiler is used as linker so we must use $wl
10460	    # flag to pass the commands to the underlying system
10461	    # linker.
10462	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10463	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10464	    ;;
10465	esac
10466	link_all_deplibs_CXX=yes
10467
10468	# Commands to make compiler produce verbose output that lists
10469	# what "hidden" libraries, object files and flags are used when
10470	# linking a shared library.
10471	#
10472	# There doesn't appear to be a way to prevent this compiler from
10473	# explicitly linking system object files so we need to strip them
10474	# from the output so that they don't get included in the library
10475	# dependencies.
10476	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10477
10478	# Archives containing C++ object files must be created using
10479	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10480	# necessary to make sure instantiated templates are included
10481	# in the archive.
10482	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10483	;;
10484      gcx)
10485	# Green Hills C++ Compiler
10486	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10487
10488	# The C++ compiler must be used to create the archive.
10489	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10490	;;
10491      *)
10492	# GNU C++ compiler with Solaris linker
10493	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10494	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10495	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10496	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10497	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10498		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10499
10500	    # Commands to make compiler produce verbose output that lists
10501	    # what "hidden" libraries, object files and flags are used when
10502	    # linking a shared library.
10503	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10504	  else
10505	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10506	    # platform.
10507	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10508	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10509		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10510
10511	    # Commands to make compiler produce verbose output that lists
10512	    # what "hidden" libraries, object files and flags are used when
10513	    # linking a shared library.
10514	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10515	  fi
10516
10517	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10518	fi
10519	;;
10520    esac
10521    ;;
10522  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10523    archive_cmds_need_lc_CXX=no
10524    ;;
10525  tandem*)
10526    case $cc_basename in
10527      NCC)
10528	# NonStop-UX NCC 3.20
10529	# FIXME: insert proper C++ library support
10530	ld_shlibs_CXX=no
10531	;;
10532      *)
10533	# FIXME: insert proper C++ library support
10534	ld_shlibs_CXX=no
10535	;;
10536    esac
10537    ;;
10538  vxworks*)
10539    # FIXME: insert proper C++ library support
10540    ld_shlibs_CXX=no
10541    ;;
10542  *)
10543    # FIXME: insert proper C++ library support
10544    ld_shlibs_CXX=no
10545    ;;
10546esac
10547echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10548echo "${ECHO_T}$ld_shlibs_CXX" >&6
10549test "$ld_shlibs_CXX" = no && can_build_shared=no
10550
10551GCC_CXX="$GXX"
10552LD_CXX="$LD"
10553
10554
10555cat > conftest.$ac_ext <<EOF
10556class Foo
10557{
10558public:
10559  Foo (void) { a = 0; }
10560private:
10561  int a;
10562};
10563EOF
10564
10565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566  (eval $ac_compile) 2>&5
10567  ac_status=$?
10568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569  (exit $ac_status); }; then
10570  # Parse the compiler output and extract the necessary
10571  # objects, libraries and library flags.
10572
10573  # Sentinel used to keep track of whether or not we are before
10574  # the conftest object file.
10575  pre_test_object_deps_done=no
10576
10577  # The `*' in the case matches for architectures that use `case' in
10578  # $output_verbose_cmd can trigger glob expansion during the loop
10579  # eval without this substitution.
10580  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10581
10582  for p in `eval $output_verbose_link_cmd`; do
10583    case $p in
10584
10585    -L* | -R* | -l*)
10586       # Some compilers place space between "-{L,R}" and the path.
10587       # Remove the space.
10588       if test $p = "-L" \
10589	  || test $p = "-R"; then
10590	 prev=$p
10591	 continue
10592       else
10593	 prev=
10594       fi
10595
10596       if test "$pre_test_object_deps_done" = no; then
10597	 case $p in
10598	 -L* | -R*)
10599	   # Internal compiler library paths should come after those
10600	   # provided the user.  The postdeps already come after the
10601	   # user supplied libs so there is no need to process them.
10602	   if test -z "$compiler_lib_search_path_CXX"; then
10603	     compiler_lib_search_path_CXX="${prev}${p}"
10604	   else
10605	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10606	   fi
10607	   ;;
10608	 # The "-l" case would never come before the object being
10609	 # linked, so don't bother handling this case.
10610	 esac
10611       else
10612	 if test -z "$postdeps_CXX"; then
10613	   postdeps_CXX="${prev}${p}"
10614	 else
10615	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10616	 fi
10617       fi
10618       ;;
10619
10620    *.$objext)
10621       # This assumes that the test object file only shows up
10622       # once in the compiler output.
10623       if test "$p" = "conftest.$objext"; then
10624	 pre_test_object_deps_done=yes
10625	 continue
10626       fi
10627
10628       if test "$pre_test_object_deps_done" = no; then
10629	 if test -z "$predep_objects_CXX"; then
10630	   predep_objects_CXX="$p"
10631	 else
10632	   predep_objects_CXX="$predep_objects_CXX $p"
10633	 fi
10634       else
10635	 if test -z "$postdep_objects_CXX"; then
10636	   postdep_objects_CXX="$p"
10637	 else
10638	   postdep_objects_CXX="$postdep_objects_CXX $p"
10639	 fi
10640       fi
10641       ;;
10642
10643    *) ;; # Ignore the rest.
10644
10645    esac
10646  done
10647
10648  # Clean up.
10649  rm -f a.out a.exe
10650else
10651  echo "libtool.m4: error: problem compiling CXX test program"
10652fi
10653
10654$rm -f confest.$objext
10655
10656case " $postdeps_CXX " in
10657*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10658esac
10659
10660lt_prog_compiler_wl_CXX=
10661lt_prog_compiler_pic_CXX=
10662lt_prog_compiler_static_CXX=
10663
10664echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10665echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10666
10667  # C++ specific cases for pic, static, wl, etc.
10668  if test "$GXX" = yes; then
10669    lt_prog_compiler_wl_CXX='-Wl,'
10670    lt_prog_compiler_static_CXX='-static'
10671
10672    case $host_os in
10673    aix*)
10674      # All AIX code is PIC.
10675      if test "$host_cpu" = ia64; then
10676	# AIX 5 now supports IA64 processor
10677	lt_prog_compiler_static_CXX='-Bstatic'
10678      fi
10679      ;;
10680    amigaos*)
10681      # FIXME: we need at least 68020 code to build shared libraries, but
10682      # adding the `-m68020' flag to GCC prevents building anything better,
10683      # like `-m68040'.
10684      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10685      ;;
10686    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10687      # PIC is the default for these OSes.
10688      ;;
10689    mingw* | os2* | pw32*)
10690      # This hack is so that the source file can tell whether it is being
10691      # built for inclusion in a dll (and should export symbols for example).
10692      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10693      ;;
10694    darwin* | rhapsody*)
10695      # PIC is the default on this platform
10696      # Common symbols not allowed in MH_DYLIB files
10697      lt_prog_compiler_pic_CXX='-fno-common'
10698      ;;
10699    *djgpp*)
10700      # DJGPP does not support shared libraries at all
10701      lt_prog_compiler_pic_CXX=
10702      ;;
10703    sysv4*MP*)
10704      if test -d /usr/nec; then
10705	lt_prog_compiler_pic_CXX=-Kconform_pic
10706      fi
10707      ;;
10708    hpux*)
10709      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10710      # not for PA HP-UX.
10711      case "$host_cpu" in
10712      hppa*64*|ia64*)
10713	;;
10714      *)
10715	lt_prog_compiler_pic_CXX='-fPIC'
10716	;;
10717      esac
10718      ;;
10719    *)
10720      lt_prog_compiler_pic_CXX='-fPIC'
10721      ;;
10722    esac
10723  else
10724    case $host_os in
10725      aix4* | aix5*)
10726	# All AIX code is PIC.
10727	if test "$host_cpu" = ia64; then
10728	  # AIX 5 now supports IA64 processor
10729	  lt_prog_compiler_static_CXX='-Bstatic'
10730	else
10731	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10732	fi
10733	;;
10734      chorus*)
10735	case $cc_basename in
10736	cxch68)
10737	  # Green Hills C++ Compiler
10738	  # _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"
10739	  ;;
10740	esac
10741	;;
10742      dgux*)
10743	case $cc_basename in
10744	  ec++)
10745	    lt_prog_compiler_pic_CXX='-KPIC'
10746	    ;;
10747	  ghcx)
10748	    # Green Hills C++ Compiler
10749	    lt_prog_compiler_pic_CXX='-pic'
10750	    ;;
10751	  *)
10752	    ;;
10753	esac
10754	;;
10755      freebsd* | kfreebsd*-gnu)
10756	# FreeBSD uses GNU C++
10757	;;
10758      hpux9* | hpux10* | hpux11*)
10759	case $cc_basename in
10760	  CC)
10761	    lt_prog_compiler_wl_CXX='-Wl,'
10762	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10763	    if test "$host_cpu" != ia64; then
10764	      lt_prog_compiler_pic_CXX='+Z'
10765	    fi
10766	    ;;
10767	  aCC)
10768	    lt_prog_compiler_wl_CXX='-Wl,'
10769	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10770	    case "$host_cpu" in
10771	    hppa*64*|ia64*)
10772	      # +Z the default
10773	      ;;
10774	    *)
10775	      lt_prog_compiler_pic_CXX='+Z'
10776	      ;;
10777	    esac
10778	    ;;
10779	  *)
10780	    ;;
10781	esac
10782	;;
10783      irix5* | irix6* | nonstopux*)
10784	case $cc_basename in
10785	  CC)
10786	    lt_prog_compiler_wl_CXX='-Wl,'
10787	    lt_prog_compiler_static_CXX='-non_shared'
10788	    # CC pic flag -KPIC is the default.
10789	    ;;
10790	  *)
10791	    ;;
10792	esac
10793	;;
10794      linux*)
10795	case $cc_basename in
10796	  KCC)
10797	    # KAI C++ Compiler
10798	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10799	    lt_prog_compiler_pic_CXX='-fPIC'
10800	    ;;
10801	  icpc)
10802	    # Intel C++
10803	    lt_prog_compiler_wl_CXX='-Wl,'
10804	    lt_prog_compiler_pic_CXX='-KPIC'
10805	    lt_prog_compiler_static_CXX='-static'
10806	    ;;
10807	  cxx)
10808	    # Compaq C++
10809	    # Make sure the PIC flag is empty.  It appears that all Alpha
10810	    # Linux and Compaq Tru64 Unix objects are PIC.
10811	    lt_prog_compiler_pic_CXX=
10812	    lt_prog_compiler_static_CXX='-non_shared'
10813	    ;;
10814	  *)
10815	    ;;
10816	esac
10817	;;
10818      lynxos*)
10819	;;
10820      m88k*)
10821	;;
10822      mvs*)
10823	case $cc_basename in
10824	  cxx)
10825	    lt_prog_compiler_pic_CXX='-W c,exportall'
10826	    ;;
10827	  *)
10828	    ;;
10829	esac
10830	;;
10831      netbsd* | knetbsd*-gnu)
10832	;;
10833      osf3* | osf4* | osf5*)
10834	case $cc_basename in
10835	  KCC)
10836	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10837	    ;;
10838	  RCC)
10839	    # Rational C++ 2.4.1
10840	    lt_prog_compiler_pic_CXX='-pic'
10841	    ;;
10842	  cxx)
10843	    # Digital/Compaq C++
10844	    lt_prog_compiler_wl_CXX='-Wl,'
10845	    # Make sure the PIC flag is empty.  It appears that all Alpha
10846	    # Linux and Compaq Tru64 Unix objects are PIC.
10847	    lt_prog_compiler_pic_CXX=
10848	    lt_prog_compiler_static_CXX='-non_shared'
10849	    ;;
10850	  *)
10851	    ;;
10852	esac
10853	;;
10854      psos*)
10855	;;
10856      sco*)
10857	case $cc_basename in
10858	  CC)
10859	    lt_prog_compiler_pic_CXX='-fPIC'
10860	    ;;
10861	  *)
10862	    ;;
10863	esac
10864	;;
10865      solaris*)
10866	case $cc_basename in
10867	  CC)
10868	    # Sun C++ 4.2, 5.x and Centerline C++
10869	    lt_prog_compiler_pic_CXX='-KPIC'
10870	    lt_prog_compiler_static_CXX='-Bstatic'
10871	    lt_prog_compiler_wl_CXX='-Qoption ld '
10872	    ;;
10873	  gcx)
10874	    # Green Hills C++ Compiler
10875	    lt_prog_compiler_pic_CXX='-PIC'
10876	    ;;
10877	  *)
10878	    ;;
10879	esac
10880	;;
10881      sunos4*)
10882	case $cc_basename in
10883	  CC)
10884	    # Sun C++ 4.x
10885	    lt_prog_compiler_pic_CXX='-pic'
10886	    lt_prog_compiler_static_CXX='-Bstatic'
10887	    ;;
10888	  lcc)
10889	    # Lucid
10890	    lt_prog_compiler_pic_CXX='-pic'
10891	    ;;
10892	  *)
10893	    ;;
10894	esac
10895	;;
10896      tandem*)
10897	case $cc_basename in
10898	  NCC)
10899	    # NonStop-UX NCC 3.20
10900	    lt_prog_compiler_pic_CXX='-KPIC'
10901	    ;;
10902	  *)
10903	    ;;
10904	esac
10905	;;
10906      unixware*)
10907	;;
10908      vxworks*)
10909	;;
10910      *)
10911	lt_prog_compiler_can_build_shared_CXX=no
10912	;;
10913    esac
10914  fi
10915
10916echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10917echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10918
10919#
10920# Check to make sure the PIC flag actually works.
10921#
10922if test -n "$lt_prog_compiler_pic_CXX"; then
10923
10924echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10925echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10926if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10927  echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929  lt_prog_compiler_pic_works_CXX=no
10930  ac_outfile=conftest.$ac_objext
10931   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10932   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10933   # Insert the option either (1) after the last *FLAGS variable, or
10934   # (2) before a word containing "conftest.", or (3) at the end.
10935   # Note that $ac_compile itself does not contain backslashes and begins
10936   # with a dollar sign (not a hyphen), so the echo should work correctly.
10937   # The option is referenced via a variable to avoid confusing sed.
10938   lt_compile=`echo "$ac_compile" | $SED \
10939   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10940   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10941   -e 's:$: $lt_compiler_flag:'`
10942   (eval echo "\"\$as_me:10942: $lt_compile\"" >&5)
10943   (eval "$lt_compile" 2>conftest.err)
10944   ac_status=$?
10945   cat conftest.err >&5
10946   echo "$as_me:10946: \$? = $ac_status" >&5
10947   if (exit $ac_status) && test -s "$ac_outfile"; then
10948     # The compiler can only warn and ignore the option if not recognized
10949     # So say no if there are warnings
10950     if test ! -s conftest.err; then
10951       lt_prog_compiler_pic_works_CXX=yes
10952     fi
10953   fi
10954   $rm conftest*
10955
10956fi
10957echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10958echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10959
10960if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10961    case $lt_prog_compiler_pic_CXX in
10962     "" | " "*) ;;
10963     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10964     esac
10965else
10966    lt_prog_compiler_pic_CXX=
10967     lt_prog_compiler_can_build_shared_CXX=no
10968fi
10969
10970fi
10971case "$host_os" in
10972  # For platforms which do not support PIC, -DPIC is meaningless:
10973  *djgpp*)
10974    lt_prog_compiler_pic_CXX=
10975    ;;
10976  *)
10977    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10978    ;;
10979esac
10980
10981echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10982echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10983if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10984  echo $ECHO_N "(cached) $ECHO_C" >&6
10985else
10986  lt_cv_prog_compiler_c_o_CXX=no
10987   $rm -r conftest 2>/dev/null
10988   mkdir conftest
10989   cd conftest
10990   mkdir out
10991   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10992
10993   lt_compiler_flag="-o out/conftest2.$ac_objext"
10994   # Insert the option either (1) after the last *FLAGS variable, or
10995   # (2) before a word containing "conftest.", or (3) at the end.
10996   # Note that $ac_compile itself does not contain backslashes and begins
10997   # with a dollar sign (not a hyphen), so the echo should work correctly.
10998   lt_compile=`echo "$ac_compile" | $SED \
10999   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11001   -e 's:$: $lt_compiler_flag:'`
11002   (eval echo "\"\$as_me:11002: $lt_compile\"" >&5)
11003   (eval "$lt_compile" 2>out/conftest.err)
11004   ac_status=$?
11005   cat out/conftest.err >&5
11006   echo "$as_me:11006: \$? = $ac_status" >&5
11007   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11008   then
11009     # The compiler can only warn and ignore the option if not recognized
11010     # So say no if there are warnings
11011     if test ! -s out/conftest.err; then
11012       lt_cv_prog_compiler_c_o_CXX=yes
11013     fi
11014   fi
11015   chmod u+w .
11016   $rm conftest*
11017   # SGI C++ compiler will create directory out/ii_files/ for
11018   # template instantiation
11019   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11020   $rm out/* && rmdir out
11021   cd ..
11022   rmdir conftest
11023   $rm conftest*
11024
11025fi
11026echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11027echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11028
11029
11030hard_links="nottested"
11031if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11032  # do not overwrite the value of need_locks provided by the user
11033  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11034echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11035  hard_links=yes
11036  $rm conftest*
11037  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11038  touch conftest.a
11039  ln conftest.a conftest.b 2>&5 || hard_links=no
11040  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11041  echo "$as_me:$LINENO: result: $hard_links" >&5
11042echo "${ECHO_T}$hard_links" >&6
11043  if test "$hard_links" = no; then
11044    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11045echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11046    need_locks=warn
11047  fi
11048else
11049  need_locks=no
11050fi
11051
11052echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11053echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11054
11055  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11056  case $host_os in
11057  aix4* | aix5*)
11058    # If we're using GNU nm, then we don't want the "-C" option.
11059    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11060    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11061      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'
11062    else
11063      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'
11064    fi
11065    ;;
11066  pw32*)
11067    export_symbols_cmds_CXX="$ltdll_cmds"
11068  ;;
11069  cygwin* | mingw*)
11070    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11071  ;;
11072  linux*)
11073    link_all_deplibs_CXX=no
11074  ;;
11075  *)
11076    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11077  ;;
11078  esac
11079
11080echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11081echo "${ECHO_T}$ld_shlibs_CXX" >&6
11082test "$ld_shlibs_CXX" = no && can_build_shared=no
11083
11084variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11085if test "$GCC" = yes; then
11086  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11087fi
11088
11089#
11090# Do we need to explicitly link libc?
11091#
11092case "x$archive_cmds_need_lc_CXX" in
11093x|xyes)
11094  # Assume -lc should be added
11095  archive_cmds_need_lc_CXX=yes
11096
11097  if test "$enable_shared" = yes && test "$GCC" = yes; then
11098    case $archive_cmds_CXX in
11099    *'~'*)
11100      # FIXME: we may have to deal with multi-command sequences.
11101      ;;
11102    '$CC '*)
11103      # Test whether the compiler implicitly links with -lc since on some
11104      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11105      # to ld, don't add -lc before -lgcc.
11106      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11107echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11108      $rm conftest*
11109      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11110
11111      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112  (eval $ac_compile) 2>&5
11113  ac_status=$?
11114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115  (exit $ac_status); } 2>conftest.err; then
11116        soname=conftest
11117        lib=conftest
11118        libobjs=conftest.$ac_objext
11119        deplibs=
11120        wl=$lt_prog_compiler_wl_CXX
11121        compiler_flags=-v
11122        linker_flags=-v
11123        verstring=
11124        output_objdir=.
11125        libname=conftest
11126        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11127        allow_undefined_flag_CXX=
11128        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11129  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11130  ac_status=$?
11131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132  (exit $ac_status); }
11133        then
11134	  archive_cmds_need_lc_CXX=no
11135        else
11136	  archive_cmds_need_lc_CXX=yes
11137        fi
11138        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11139      else
11140        cat conftest.err 1>&5
11141      fi
11142      $rm conftest*
11143      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11144echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11145      ;;
11146    esac
11147  fi
11148  ;;
11149esac
11150
11151echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11152echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11153library_names_spec=
11154libname_spec='lib$name'
11155soname_spec=
11156shrext_cmds=".so"
11157postinstall_cmds=
11158postuninstall_cmds=
11159finish_cmds=
11160finish_eval=
11161shlibpath_var=
11162shlibpath_overrides_runpath=unknown
11163version_type=none
11164dynamic_linker="$host_os ld.so"
11165sys_lib_dlsearch_path_spec="/lib /usr/lib"
11166if test "$GCC" = yes; then
11167  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11168  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11169    # if the path contains ";" then we assume it to be the separator
11170    # otherwise default to the standard path separator (i.e. ":") - it is
11171    # assumed that no part of a normal pathname contains ";" but that should
11172    # okay in the real world where ";" in dirpaths is itself problematic.
11173    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11174  else
11175    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11176  fi
11177else
11178  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11179fi
11180need_lib_prefix=unknown
11181hardcode_into_libs=no
11182
11183# when you set need_version to no, make sure it does not cause -set_version
11184# flags to be left without arguments
11185need_version=unknown
11186
11187case $host_os in
11188aix3*)
11189  version_type=linux
11190  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11191  shlibpath_var=LIBPATH
11192
11193  # AIX 3 has no versioning support, so we append a major version to the name.
11194  soname_spec='${libname}${release}${shared_ext}$major'
11195  ;;
11196
11197aix4* | aix5*)
11198  version_type=linux
11199  need_lib_prefix=no
11200  need_version=no
11201  hardcode_into_libs=yes
11202  if test "$host_cpu" = ia64; then
11203    # AIX 5 supports IA64
11204    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11205    shlibpath_var=LD_LIBRARY_PATH
11206  else
11207    # With GCC up to 2.95.x, collect2 would create an import file
11208    # for dependence libraries.  The import file would start with
11209    # the line `#! .'.  This would cause the generated library to
11210    # depend on `.', always an invalid library.  This was fixed in
11211    # development snapshots of GCC prior to 3.0.
11212    case $host_os in
11213      aix4 | aix4.[01] | aix4.[01].*)
11214      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11215	   echo ' yes '
11216	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11217	:
11218      else
11219	can_build_shared=no
11220      fi
11221      ;;
11222    esac
11223    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11224    # soname into executable. Probably we can add versioning support to
11225    # collect2, so additional links can be useful in future.
11226    if test "$aix_use_runtimelinking" = yes; then
11227      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11228      # instead of lib<name>.a to let people know that these are not
11229      # typical AIX shared libraries.
11230      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231    else
11232      # We preserve .a as extension for shared libraries through AIX4.2
11233      # and later when we are not doing run time linking.
11234      library_names_spec='${libname}${release}.a $libname.a'
11235      soname_spec='${libname}${release}${shared_ext}$major'
11236    fi
11237    shlibpath_var=LIBPATH
11238  fi
11239  ;;
11240
11241amigaos*)
11242  library_names_spec='$libname.ixlibrary $libname.a'
11243  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11244  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'
11245  ;;
11246
11247beos*)
11248  library_names_spec='${libname}${shared_ext}'
11249  dynamic_linker="$host_os ld.so"
11250  shlibpath_var=LIBRARY_PATH
11251  ;;
11252
11253bsdi4*)
11254  version_type=linux
11255  need_version=no
11256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257  soname_spec='${libname}${release}${shared_ext}$major'
11258  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11259  shlibpath_var=LD_LIBRARY_PATH
11260  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11261  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11262  # the default ld.so.conf also contains /usr/contrib/lib and
11263  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11264  # libtool to hard-code these into programs
11265  ;;
11266
11267cygwin* | mingw* | pw32*)
11268  version_type=windows
11269  shrext_cmds=".dll"
11270  need_version=no
11271  need_lib_prefix=no
11272
11273  case $GCC,$host_os in
11274  yes,cygwin* | yes,mingw* | yes,pw32*)
11275    library_names_spec='$libname.dll.a'
11276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11277    postinstall_cmds='base_file=`basename \${file}`~
11278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11279      dldir=$destdir/`dirname \$dlpath`~
11280      test -d \$dldir || mkdir -p \$dldir~
11281      $install_prog $dir/$dlname \$dldir/$dlname'
11282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11283      dlpath=$dir/\$dldll~
11284       $rm \$dlpath'
11285    shlibpath_overrides_runpath=yes
11286
11287    case $host_os in
11288    cygwin*)
11289      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11290      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11291      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11292      ;;
11293    mingw*)
11294      # MinGW DLLs use traditional 'lib' prefix
11295      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11296      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11297      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11298        # It is most probably a Windows format PATH printed by
11299        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11300        # path with ; separators, and with drive letters. We can handle the
11301        # drive letters (cygwin fileutils understands them), so leave them,
11302        # especially as we might pass files found there to a mingw objdump,
11303        # which wouldn't understand a cygwinified path. Ahh.
11304        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11305      else
11306        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11307      fi
11308      ;;
11309    pw32*)
11310      # pw32 DLLs use 'pw' prefix rather than 'lib'
11311      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11312      ;;
11313    esac
11314    ;;
11315
11316  *)
11317    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11318    ;;
11319  esac
11320  dynamic_linker='Win32 ld.exe'
11321  # FIXME: first we should search . and the directory the executable is in
11322  shlibpath_var=PATH
11323  ;;
11324
11325darwin* | rhapsody*)
11326  dynamic_linker="$host_os dyld"
11327  version_type=darwin
11328  need_lib_prefix=no
11329  need_version=no
11330  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11331  soname_spec='${libname}${release}${major}$shared_ext'
11332  shlibpath_overrides_runpath=yes
11333  shlibpath_var=DYLD_LIBRARY_PATH
11334  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11335  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11336  if test "$GCC" = yes; then
11337    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"`
11338  else
11339    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11340  fi
11341  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11342  ;;
11343
11344dgux*)
11345  version_type=linux
11346  need_lib_prefix=no
11347  need_version=no
11348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11349  soname_spec='${libname}${release}${shared_ext}$major'
11350  shlibpath_var=LD_LIBRARY_PATH
11351  ;;
11352
11353freebsd1*)
11354  dynamic_linker=no
11355  ;;
11356
11357kfreebsd*-gnu)
11358  version_type=linux
11359  need_lib_prefix=no
11360  need_version=no
11361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11362  soname_spec='${libname}${release}${shared_ext}$major'
11363  shlibpath_var=LD_LIBRARY_PATH
11364  shlibpath_overrides_runpath=no
11365  hardcode_into_libs=yes
11366  dynamic_linker='GNU ld.so'
11367  ;;
11368
11369freebsd*)
11370  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11371  version_type=freebsd-$objformat
11372  case $version_type in
11373    freebsd-elf*)
11374      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11375      need_version=no
11376      need_lib_prefix=no
11377      ;;
11378    freebsd-*)
11379      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11380      need_version=yes
11381      ;;
11382  esac
11383  shlibpath_var=LD_LIBRARY_PATH
11384  case $host_os in
11385  freebsd2*)
11386    shlibpath_overrides_runpath=yes
11387    ;;
11388  freebsd3.01* | freebsdelf3.01*)
11389    shlibpath_overrides_runpath=yes
11390    hardcode_into_libs=yes
11391    ;;
11392  *) # from 3.2 on
11393    shlibpath_overrides_runpath=no
11394    hardcode_into_libs=yes
11395    ;;
11396  esac
11397  ;;
11398
11399gnu*)
11400  version_type=linux
11401  need_lib_prefix=no
11402  need_version=no
11403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11404  soname_spec='${libname}${release}${shared_ext}$major'
11405  shlibpath_var=LD_LIBRARY_PATH
11406  hardcode_into_libs=yes
11407  ;;
11408
11409hpux9* | hpux10* | hpux11*)
11410  # Give a soname corresponding to the major version so that dld.sl refuses to
11411  # link against other versions.
11412  version_type=sunos
11413  need_lib_prefix=no
11414  need_version=no
11415  case "$host_cpu" in
11416  ia64*)
11417    shrext_cmds='.so'
11418    hardcode_into_libs=yes
11419    dynamic_linker="$host_os dld.so"
11420    shlibpath_var=LD_LIBRARY_PATH
11421    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11422    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423    soname_spec='${libname}${release}${shared_ext}$major'
11424    if test "X$HPUX_IA64_MODE" = X32; then
11425      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11426    else
11427      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11428    fi
11429    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11430    ;;
11431   hppa*64*)
11432     shrext_cmds='.sl'
11433     hardcode_into_libs=yes
11434     dynamic_linker="$host_os dld.sl"
11435     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11436     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438     soname_spec='${libname}${release}${shared_ext}$major'
11439     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11441     ;;
11442   *)
11443    shrext_cmds='.sl'
11444    dynamic_linker="$host_os dld.sl"
11445    shlibpath_var=SHLIB_PATH
11446    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448    soname_spec='${libname}${release}${shared_ext}$major'
11449    ;;
11450  esac
11451  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11452  postinstall_cmds='chmod 555 $lib'
11453  ;;
11454
11455irix5* | irix6* | nonstopux*)
11456  case $host_os in
11457    nonstopux*) version_type=nonstopux ;;
11458    *)
11459	if test "$lt_cv_prog_gnu_ld" = yes; then
11460		version_type=linux
11461	else
11462		version_type=irix
11463	fi ;;
11464  esac
11465  need_lib_prefix=no
11466  need_version=no
11467  soname_spec='${libname}${release}${shared_ext}$major'
11468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11469  case $host_os in
11470  irix5* | nonstopux*)
11471    libsuff= shlibsuff=
11472    ;;
11473  *)
11474    case $LD in # libtool.m4 will add one of these switches to LD
11475    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11476      libsuff= shlibsuff= libmagic=32-bit;;
11477    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11478      libsuff=32 shlibsuff=N32 libmagic=N32;;
11479    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11480      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11481    *) libsuff= shlibsuff= libmagic=never-match;;
11482    esac
11483    ;;
11484  esac
11485  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11486  shlibpath_overrides_runpath=no
11487  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11488  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11489  hardcode_into_libs=yes
11490  ;;
11491
11492# No shared lib support for Linux oldld, aout, or coff.
11493linux*oldld* | linux*aout* | linux*coff*)
11494  dynamic_linker=no
11495  ;;
11496
11497# This must be Linux ELF.
11498linux*)
11499  version_type=linux
11500  need_lib_prefix=no
11501  need_version=no
11502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503  soname_spec='${libname}${release}${shared_ext}$major'
11504  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11505  shlibpath_var=LD_LIBRARY_PATH
11506  shlibpath_overrides_runpath=no
11507  # This implies no fast_install, which is unacceptable.
11508  # Some rework will be needed to allow for fast_install
11509  # before this can be enabled.
11510  hardcode_into_libs=yes
11511
11512  # Append ld.so.conf contents to the search path
11513  if test -f /etc/ld.so.conf; then
11514    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11515    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11516  fi
11517
11518  # We used to test for /lib/ld.so.1 and disable shared libraries on
11519  # powerpc, because MkLinux only supported shared libraries with the
11520  # GNU dynamic linker.  Since this was broken with cross compilers,
11521  # most powerpc-linux boxes support dynamic linking these days and
11522  # people can always --disable-shared, the test was removed, and we
11523  # assume the GNU/Linux dynamic linker is in use.
11524  dynamic_linker='GNU/Linux ld.so'
11525  ;;
11526
11527knetbsd*-gnu)
11528  version_type=linux
11529  need_lib_prefix=no
11530  need_version=no
11531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11532  soname_spec='${libname}${release}${shared_ext}$major'
11533  shlibpath_var=LD_LIBRARY_PATH
11534  shlibpath_overrides_runpath=no
11535  hardcode_into_libs=yes
11536  dynamic_linker='GNU ld.so'
11537  ;;
11538
11539netbsd*)
11540  version_type=sunos
11541  need_lib_prefix=no
11542  need_version=no
11543  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11545    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11546    dynamic_linker='NetBSD (a.out) ld.so'
11547  else
11548    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11549    soname_spec='${libname}${release}${shared_ext}$major'
11550    dynamic_linker='NetBSD ld.elf_so'
11551  fi
11552  shlibpath_var=LD_LIBRARY_PATH
11553  shlibpath_overrides_runpath=yes
11554  hardcode_into_libs=yes
11555  ;;
11556
11557newsos6)
11558  version_type=linux
11559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  shlibpath_overrides_runpath=yes
11562  ;;
11563
11564nto-qnx*)
11565  version_type=linux
11566  need_lib_prefix=no
11567  need_version=no
11568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569  soname_spec='${libname}${release}${shared_ext}$major'
11570  shlibpath_var=LD_LIBRARY_PATH
11571  shlibpath_overrides_runpath=yes
11572  ;;
11573
11574openbsd*)
11575  version_type=sunos
11576  need_lib_prefix=no
11577  need_version=yes
11578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11579  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11582    case $host_os in
11583      openbsd2.[89] | openbsd2.[89].*)
11584	shlibpath_overrides_runpath=no
11585	;;
11586      *)
11587	shlibpath_overrides_runpath=yes
11588	;;
11589      esac
11590  else
11591    shlibpath_overrides_runpath=yes
11592  fi
11593  ;;
11594
11595os2*)
11596  libname_spec='$name'
11597  shrext_cmds=".dll"
11598  need_lib_prefix=no
11599  library_names_spec='$libname${shared_ext} $libname.a'
11600  dynamic_linker='OS/2 ld.exe'
11601  shlibpath_var=LIBPATH
11602  ;;
11603
11604osf3* | osf4* | osf5*)
11605  version_type=osf
11606  need_lib_prefix=no
11607  need_version=no
11608  soname_spec='${libname}${release}${shared_ext}$major'
11609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610  shlibpath_var=LD_LIBRARY_PATH
11611  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11612  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11613  ;;
11614
11615sco3.2v5*)
11616  version_type=osf
11617  soname_spec='${libname}${release}${shared_ext}$major'
11618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619  shlibpath_var=LD_LIBRARY_PATH
11620  ;;
11621
11622solaris*)
11623  version_type=linux
11624  need_lib_prefix=no
11625  need_version=no
11626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627  soname_spec='${libname}${release}${shared_ext}$major'
11628  shlibpath_var=LD_LIBRARY_PATH
11629  shlibpath_overrides_runpath=yes
11630  hardcode_into_libs=yes
11631  # ldd complains unless libraries are executable
11632  postinstall_cmds='chmod +x $lib'
11633  ;;
11634
11635sunos4*)
11636  version_type=sunos
11637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11638  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11639  shlibpath_var=LD_LIBRARY_PATH
11640  shlibpath_overrides_runpath=yes
11641  if test "$with_gnu_ld" = yes; then
11642    need_lib_prefix=no
11643  fi
11644  need_version=yes
11645  ;;
11646
11647sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11648  version_type=linux
11649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650  soname_spec='${libname}${release}${shared_ext}$major'
11651  shlibpath_var=LD_LIBRARY_PATH
11652  case $host_vendor in
11653    sni)
11654      shlibpath_overrides_runpath=no
11655      need_lib_prefix=no
11656      export_dynamic_flag_spec='${wl}-Blargedynsym'
11657      runpath_var=LD_RUN_PATH
11658      ;;
11659    siemens)
11660      need_lib_prefix=no
11661      ;;
11662    motorola)
11663      need_lib_prefix=no
11664      need_version=no
11665      shlibpath_overrides_runpath=no
11666      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11667      ;;
11668  esac
11669  ;;
11670
11671sysv4*MP*)
11672  if test -d /usr/nec ;then
11673    version_type=linux
11674    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11675    soname_spec='$libname${shared_ext}.$major'
11676    shlibpath_var=LD_LIBRARY_PATH
11677  fi
11678  ;;
11679
11680uts4*)
11681  version_type=linux
11682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683  soname_spec='${libname}${release}${shared_ext}$major'
11684  shlibpath_var=LD_LIBRARY_PATH
11685  ;;
11686
11687*)
11688  dynamic_linker=no
11689  ;;
11690esac
11691echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11692echo "${ECHO_T}$dynamic_linker" >&6
11693test "$dynamic_linker" = no && can_build_shared=no
11694
11695echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11696echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11697hardcode_action_CXX=
11698if test -n "$hardcode_libdir_flag_spec_CXX" || \
11699   test -n "$runpath_var CXX" || \
11700   test "X$hardcode_automatic_CXX"="Xyes" ; then
11701
11702  # We can hardcode non-existant directories.
11703  if test "$hardcode_direct_CXX" != no &&
11704     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11705     # have to relink, otherwise we might link with an installed library
11706     # when we should be linking with a yet-to-be-installed one
11707     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11708     test "$hardcode_minus_L_CXX" != no; then
11709    # Linking always hardcodes the temporary library directory.
11710    hardcode_action_CXX=relink
11711  else
11712    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11713    hardcode_action_CXX=immediate
11714  fi
11715else
11716  # We cannot hardcode anything, or else we can only hardcode existing
11717  # directories.
11718  hardcode_action_CXX=unsupported
11719fi
11720echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11721echo "${ECHO_T}$hardcode_action_CXX" >&6
11722
11723if test "$hardcode_action_CXX" = relink; then
11724  # Fast installation is not supported
11725  enable_fast_install=no
11726elif test "$shlibpath_overrides_runpath" = yes ||
11727     test "$enable_shared" = no; then
11728  # Fast installation is not necessary
11729  enable_fast_install=needless
11730fi
11731
11732striplib=
11733old_striplib=
11734echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11735echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11736if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11737  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11738  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11739  echo "$as_me:$LINENO: result: yes" >&5
11740echo "${ECHO_T}yes" >&6
11741else
11742# FIXME - insert some real tests, host_os isn't really good enough
11743  case $host_os in
11744   darwin*)
11745       if test -n "$STRIP" ; then
11746         striplib="$STRIP -x"
11747         echo "$as_me:$LINENO: result: yes" >&5
11748echo "${ECHO_T}yes" >&6
11749       else
11750  echo "$as_me:$LINENO: result: no" >&5
11751echo "${ECHO_T}no" >&6
11752fi
11753       ;;
11754   *)
11755  echo "$as_me:$LINENO: result: no" >&5
11756echo "${ECHO_T}no" >&6
11757    ;;
11758  esac
11759fi
11760
11761if test "x$enable_dlopen" != xyes; then
11762  enable_dlopen=unknown
11763  enable_dlopen_self=unknown
11764  enable_dlopen_self_static=unknown
11765else
11766  lt_cv_dlopen=no
11767  lt_cv_dlopen_libs=
11768
11769  case $host_os in
11770  beos*)
11771    lt_cv_dlopen="load_add_on"
11772    lt_cv_dlopen_libs=
11773    lt_cv_dlopen_self=yes
11774    ;;
11775
11776  mingw* | pw32*)
11777    lt_cv_dlopen="LoadLibrary"
11778    lt_cv_dlopen_libs=
11779   ;;
11780
11781  cygwin*)
11782    lt_cv_dlopen="dlopen"
11783    lt_cv_dlopen_libs=
11784   ;;
11785
11786  darwin*)
11787  # if libdl is installed we need to link against it
11788    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11789echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11790if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11791  echo $ECHO_N "(cached) $ECHO_C" >&6
11792else
11793  ac_check_lib_save_LIBS=$LIBS
11794LIBS="-ldl  $LIBS"
11795cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h.  */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h.  */
11801
11802/* Override any gcc2 internal prototype to avoid an error.  */
11803#ifdef __cplusplus
11804extern "C"
11805#endif
11806/* We use char because int might match the return type of a gcc2
11807   builtin and then its argument prototype would still apply.  */
11808char dlopen ();
11809int
11810main ()
11811{
11812dlopen ();
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817rm -f conftest.$ac_objext conftest$ac_exeext
11818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819  (eval $ac_link) 2>conftest.er1
11820  ac_status=$?
11821  grep -v '^ *+' conftest.er1 >conftest.err
11822  rm -f conftest.er1
11823  cat conftest.err >&5
11824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825  (exit $ac_status); } &&
11826	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828  (eval $ac_try) 2>&5
11829  ac_status=$?
11830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831  (exit $ac_status); }; } &&
11832	 { ac_try='test -s conftest$ac_exeext'
11833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834  (eval $ac_try) 2>&5
11835  ac_status=$?
11836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837  (exit $ac_status); }; }; then
11838  ac_cv_lib_dl_dlopen=yes
11839else
11840  echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
11842
11843ac_cv_lib_dl_dlopen=no
11844fi
11845rm -f conftest.err conftest.$ac_objext \
11846      conftest$ac_exeext conftest.$ac_ext
11847LIBS=$ac_check_lib_save_LIBS
11848fi
11849echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11850echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11851if test $ac_cv_lib_dl_dlopen = yes; then
11852  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11853else
11854
11855    lt_cv_dlopen="dyld"
11856    lt_cv_dlopen_libs=
11857    lt_cv_dlopen_self=yes
11858
11859fi
11860
11861   ;;
11862
11863  *)
11864    echo "$as_me:$LINENO: checking for shl_load" >&5
11865echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11866if test "${ac_cv_func_shl_load+set}" = set; then
11867  echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869  cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h.  */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h.  */
11875/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11876   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11877#define shl_load innocuous_shl_load
11878
11879/* System header to define __stub macros and hopefully few prototypes,
11880    which can conflict with char shl_load (); below.
11881    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882    <limits.h> exists even on freestanding compilers.  */
11883
11884#ifdef __STDC__
11885# include <limits.h>
11886#else
11887# include <assert.h>
11888#endif
11889
11890#undef shl_load
11891
11892/* Override any gcc2 internal prototype to avoid an error.  */
11893#ifdef __cplusplus
11894extern "C"
11895{
11896#endif
11897/* We use char because int might match the return type of a gcc2
11898   builtin and then its argument prototype would still apply.  */
11899char shl_load ();
11900/* The GNU C library defines this for functions which it implements
11901    to always fail with ENOSYS.  Some functions are actually named
11902    something starting with __ and the normal name is an alias.  */
11903#if defined (__stub_shl_load) || defined (__stub___shl_load)
11904choke me
11905#else
11906char (*f) () = shl_load;
11907#endif
11908#ifdef __cplusplus
11909}
11910#endif
11911
11912int
11913main ()
11914{
11915return f != shl_load;
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext conftest$ac_exeext
11921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922  (eval $ac_link) 2>conftest.er1
11923  ac_status=$?
11924  grep -v '^ *+' conftest.er1 >conftest.err
11925  rm -f conftest.er1
11926  cat conftest.err >&5
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } &&
11929	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931  (eval $ac_try) 2>&5
11932  ac_status=$?
11933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); }; } &&
11935	 { ac_try='test -s conftest$ac_exeext'
11936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937  (eval $ac_try) 2>&5
11938  ac_status=$?
11939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940  (exit $ac_status); }; }; then
11941  ac_cv_func_shl_load=yes
11942else
11943  echo "$as_me: failed program was:" >&5
11944sed 's/^/| /' conftest.$ac_ext >&5
11945
11946ac_cv_func_shl_load=no
11947fi
11948rm -f conftest.err conftest.$ac_objext \
11949      conftest$ac_exeext conftest.$ac_ext
11950fi
11951echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11952echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11953if test $ac_cv_func_shl_load = yes; then
11954  lt_cv_dlopen="shl_load"
11955else
11956  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11957echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11958if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11959  echo $ECHO_N "(cached) $ECHO_C" >&6
11960else
11961  ac_check_lib_save_LIBS=$LIBS
11962LIBS="-ldld  $LIBS"
11963cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h.  */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h.  */
11969
11970/* Override any gcc2 internal prototype to avoid an error.  */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974/* We use char because int might match the return type of a gcc2
11975   builtin and then its argument prototype would still apply.  */
11976char shl_load ();
11977int
11978main ()
11979{
11980shl_load ();
11981  ;
11982  return 0;
11983}
11984_ACEOF
11985rm -f conftest.$ac_objext conftest$ac_exeext
11986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987  (eval $ac_link) 2>conftest.er1
11988  ac_status=$?
11989  grep -v '^ *+' conftest.er1 >conftest.err
11990  rm -f conftest.er1
11991  cat conftest.err >&5
11992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993  (exit $ac_status); } &&
11994	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996  (eval $ac_try) 2>&5
11997  ac_status=$?
11998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999  (exit $ac_status); }; } &&
12000	 { ac_try='test -s conftest$ac_exeext'
12001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002  (eval $ac_try) 2>&5
12003  ac_status=$?
12004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005  (exit $ac_status); }; }; then
12006  ac_cv_lib_dld_shl_load=yes
12007else
12008  echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
12011ac_cv_lib_dld_shl_load=no
12012fi
12013rm -f conftest.err conftest.$ac_objext \
12014      conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_check_lib_save_LIBS
12016fi
12017echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12018echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12019if test $ac_cv_lib_dld_shl_load = yes; then
12020  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12021else
12022  echo "$as_me:$LINENO: checking for dlopen" >&5
12023echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12024if test "${ac_cv_func_dlopen+set}" = set; then
12025  echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027  cat >conftest.$ac_ext <<_ACEOF
12028/* confdefs.h.  */
12029_ACEOF
12030cat confdefs.h >>conftest.$ac_ext
12031cat >>conftest.$ac_ext <<_ACEOF
12032/* end confdefs.h.  */
12033/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12034   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12035#define dlopen innocuous_dlopen
12036
12037/* System header to define __stub macros and hopefully few prototypes,
12038    which can conflict with char dlopen (); below.
12039    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12040    <limits.h> exists even on freestanding compilers.  */
12041
12042#ifdef __STDC__
12043# include <limits.h>
12044#else
12045# include <assert.h>
12046#endif
12047
12048#undef dlopen
12049
12050/* Override any gcc2 internal prototype to avoid an error.  */
12051#ifdef __cplusplus
12052extern "C"
12053{
12054#endif
12055/* We use char because int might match the return type of a gcc2
12056   builtin and then its argument prototype would still apply.  */
12057char dlopen ();
12058/* The GNU C library defines this for functions which it implements
12059    to always fail with ENOSYS.  Some functions are actually named
12060    something starting with __ and the normal name is an alias.  */
12061#if defined (__stub_dlopen) || defined (__stub___dlopen)
12062choke me
12063#else
12064char (*f) () = dlopen;
12065#endif
12066#ifdef __cplusplus
12067}
12068#endif
12069
12070int
12071main ()
12072{
12073return f != dlopen;
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078rm -f conftest.$ac_objext conftest$ac_exeext
12079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12080  (eval $ac_link) 2>conftest.er1
12081  ac_status=$?
12082  grep -v '^ *+' conftest.er1 >conftest.err
12083  rm -f conftest.er1
12084  cat conftest.err >&5
12085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086  (exit $ac_status); } &&
12087	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089  (eval $ac_try) 2>&5
12090  ac_status=$?
12091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092  (exit $ac_status); }; } &&
12093	 { ac_try='test -s conftest$ac_exeext'
12094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095  (eval $ac_try) 2>&5
12096  ac_status=$?
12097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098  (exit $ac_status); }; }; then
12099  ac_cv_func_dlopen=yes
12100else
12101  echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104ac_cv_func_dlopen=no
12105fi
12106rm -f conftest.err conftest.$ac_objext \
12107      conftest$ac_exeext conftest.$ac_ext
12108fi
12109echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12110echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12111if test $ac_cv_func_dlopen = yes; then
12112  lt_cv_dlopen="dlopen"
12113else
12114  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12115echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12116if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12117  echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119  ac_check_lib_save_LIBS=$LIBS
12120LIBS="-ldl  $LIBS"
12121cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h.  */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h.  */
12127
12128/* Override any gcc2 internal prototype to avoid an error.  */
12129#ifdef __cplusplus
12130extern "C"
12131#endif
12132/* We use char because int might match the return type of a gcc2
12133   builtin and then its argument prototype would still apply.  */
12134char dlopen ();
12135int
12136main ()
12137{
12138dlopen ();
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143rm -f conftest.$ac_objext conftest$ac_exeext
12144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145  (eval $ac_link) 2>conftest.er1
12146  ac_status=$?
12147  grep -v '^ *+' conftest.er1 >conftest.err
12148  rm -f conftest.er1
12149  cat conftest.err >&5
12150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151  (exit $ac_status); } &&
12152	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154  (eval $ac_try) 2>&5
12155  ac_status=$?
12156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157  (exit $ac_status); }; } &&
12158	 { ac_try='test -s conftest$ac_exeext'
12159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160  (eval $ac_try) 2>&5
12161  ac_status=$?
12162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163  (exit $ac_status); }; }; then
12164  ac_cv_lib_dl_dlopen=yes
12165else
12166  echo "$as_me: failed program was:" >&5
12167sed 's/^/| /' conftest.$ac_ext >&5
12168
12169ac_cv_lib_dl_dlopen=no
12170fi
12171rm -f conftest.err conftest.$ac_objext \
12172      conftest$ac_exeext conftest.$ac_ext
12173LIBS=$ac_check_lib_save_LIBS
12174fi
12175echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12176echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12177if test $ac_cv_lib_dl_dlopen = yes; then
12178  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12179else
12180  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12181echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12182if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12183  echo $ECHO_N "(cached) $ECHO_C" >&6
12184else
12185  ac_check_lib_save_LIBS=$LIBS
12186LIBS="-lsvld  $LIBS"
12187cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h.  */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h.  */
12193
12194/* Override any gcc2 internal prototype to avoid an error.  */
12195#ifdef __cplusplus
12196extern "C"
12197#endif
12198/* We use char because int might match the return type of a gcc2
12199   builtin and then its argument prototype would still apply.  */
12200char dlopen ();
12201int
12202main ()
12203{
12204dlopen ();
12205  ;
12206  return 0;
12207}
12208_ACEOF
12209rm -f conftest.$ac_objext conftest$ac_exeext
12210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12211  (eval $ac_link) 2>conftest.er1
12212  ac_status=$?
12213  grep -v '^ *+' conftest.er1 >conftest.err
12214  rm -f conftest.er1
12215  cat conftest.err >&5
12216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217  (exit $ac_status); } &&
12218	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220  (eval $ac_try) 2>&5
12221  ac_status=$?
12222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223  (exit $ac_status); }; } &&
12224	 { ac_try='test -s conftest$ac_exeext'
12225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226  (eval $ac_try) 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }; }; then
12230  ac_cv_lib_svld_dlopen=yes
12231else
12232  echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235ac_cv_lib_svld_dlopen=no
12236fi
12237rm -f conftest.err conftest.$ac_objext \
12238      conftest$ac_exeext conftest.$ac_ext
12239LIBS=$ac_check_lib_save_LIBS
12240fi
12241echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12242echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12243if test $ac_cv_lib_svld_dlopen = yes; then
12244  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12245else
12246  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12247echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12248if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12249  echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251  ac_check_lib_save_LIBS=$LIBS
12252LIBS="-ldld  $LIBS"
12253cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h.  */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h.  */
12259
12260/* Override any gcc2 internal prototype to avoid an error.  */
12261#ifdef __cplusplus
12262extern "C"
12263#endif
12264/* We use char because int might match the return type of a gcc2
12265   builtin and then its argument prototype would still apply.  */
12266char dld_link ();
12267int
12268main ()
12269{
12270dld_link ();
12271  ;
12272  return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext conftest$ac_exeext
12276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277  (eval $ac_link) 2>conftest.er1
12278  ac_status=$?
12279  grep -v '^ *+' conftest.er1 >conftest.err
12280  rm -f conftest.er1
12281  cat conftest.err >&5
12282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283  (exit $ac_status); } &&
12284	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286  (eval $ac_try) 2>&5
12287  ac_status=$?
12288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289  (exit $ac_status); }; } &&
12290	 { ac_try='test -s conftest$ac_exeext'
12291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292  (eval $ac_try) 2>&5
12293  ac_status=$?
12294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295  (exit $ac_status); }; }; then
12296  ac_cv_lib_dld_dld_link=yes
12297else
12298  echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301ac_cv_lib_dld_dld_link=no
12302fi
12303rm -f conftest.err conftest.$ac_objext \
12304      conftest$ac_exeext conftest.$ac_ext
12305LIBS=$ac_check_lib_save_LIBS
12306fi
12307echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12308echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12309if test $ac_cv_lib_dld_dld_link = yes; then
12310  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12311fi
12312
12313
12314fi
12315
12316
12317fi
12318
12319
12320fi
12321
12322
12323fi
12324
12325
12326fi
12327
12328    ;;
12329  esac
12330
12331  if test "x$lt_cv_dlopen" != xno; then
12332    enable_dlopen=yes
12333  else
12334    enable_dlopen=no
12335  fi
12336
12337  case $lt_cv_dlopen in
12338  dlopen)
12339    save_CPPFLAGS="$CPPFLAGS"
12340    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12341
12342    save_LDFLAGS="$LDFLAGS"
12343    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12344
12345    save_LIBS="$LIBS"
12346    LIBS="$lt_cv_dlopen_libs $LIBS"
12347
12348    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12349echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12350if test "${lt_cv_dlopen_self+set}" = set; then
12351  echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353  	  if test "$cross_compiling" = yes; then :
12354  lt_cv_dlopen_self=cross
12355else
12356  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12357  lt_status=$lt_dlunknown
12358  cat > conftest.$ac_ext <<EOF
12359#line 12359 "configure"
12360#include "confdefs.h"
12361
12362#if HAVE_DLFCN_H
12363#include <dlfcn.h>
12364#endif
12365
12366#include <stdio.h>
12367
12368#ifdef RTLD_GLOBAL
12369#  define LT_DLGLOBAL		RTLD_GLOBAL
12370#else
12371#  ifdef DL_GLOBAL
12372#    define LT_DLGLOBAL		DL_GLOBAL
12373#  else
12374#    define LT_DLGLOBAL		0
12375#  endif
12376#endif
12377
12378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12379   find out it does not work in some platform. */
12380#ifndef LT_DLLAZY_OR_NOW
12381#  ifdef RTLD_LAZY
12382#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12383#  else
12384#    ifdef DL_LAZY
12385#      define LT_DLLAZY_OR_NOW		DL_LAZY
12386#    else
12387#      ifdef RTLD_NOW
12388#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12389#      else
12390#        ifdef DL_NOW
12391#          define LT_DLLAZY_OR_NOW	DL_NOW
12392#        else
12393#          define LT_DLLAZY_OR_NOW	0
12394#        endif
12395#      endif
12396#    endif
12397#  endif
12398#endif
12399
12400#ifdef __cplusplus
12401extern "C" void exit (int);
12402#endif
12403
12404void fnord() { int i=42;}
12405int main ()
12406{
12407  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12408  int status = $lt_dlunknown;
12409
12410  if (self)
12411    {
12412      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12413      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12414      /* dlclose (self); */
12415    }
12416
12417    exit (status);
12418}
12419EOF
12420  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421  (eval $ac_link) 2>&5
12422  ac_status=$?
12423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12425    (./conftest; exit; ) 2>/dev/null
12426    lt_status=$?
12427    case x$lt_status in
12428      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12429      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12430      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12431    esac
12432  else :
12433    # compilation failed
12434    lt_cv_dlopen_self=no
12435  fi
12436fi
12437rm -fr conftest*
12438
12439
12440fi
12441echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12442echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12443
12444    if test "x$lt_cv_dlopen_self" = xyes; then
12445      LDFLAGS="$LDFLAGS $link_static_flag"
12446      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12447echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12448if test "${lt_cv_dlopen_self_static+set}" = set; then
12449  echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451  	  if test "$cross_compiling" = yes; then :
12452  lt_cv_dlopen_self_static=cross
12453else
12454  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12455  lt_status=$lt_dlunknown
12456  cat > conftest.$ac_ext <<EOF
12457#line 12457 "configure"
12458#include "confdefs.h"
12459
12460#if HAVE_DLFCN_H
12461#include <dlfcn.h>
12462#endif
12463
12464#include <stdio.h>
12465
12466#ifdef RTLD_GLOBAL
12467#  define LT_DLGLOBAL		RTLD_GLOBAL
12468#else
12469#  ifdef DL_GLOBAL
12470#    define LT_DLGLOBAL		DL_GLOBAL
12471#  else
12472#    define LT_DLGLOBAL		0
12473#  endif
12474#endif
12475
12476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12477   find out it does not work in some platform. */
12478#ifndef LT_DLLAZY_OR_NOW
12479#  ifdef RTLD_LAZY
12480#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12481#  else
12482#    ifdef DL_LAZY
12483#      define LT_DLLAZY_OR_NOW		DL_LAZY
12484#    else
12485#      ifdef RTLD_NOW
12486#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12487#      else
12488#        ifdef DL_NOW
12489#          define LT_DLLAZY_OR_NOW	DL_NOW
12490#        else
12491#          define LT_DLLAZY_OR_NOW	0
12492#        endif
12493#      endif
12494#    endif
12495#  endif
12496#endif
12497
12498#ifdef __cplusplus
12499extern "C" void exit (int);
12500#endif
12501
12502void fnord() { int i=42;}
12503int main ()
12504{
12505  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12506  int status = $lt_dlunknown;
12507
12508  if (self)
12509    {
12510      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12511      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12512      /* dlclose (self); */
12513    }
12514
12515    exit (status);
12516}
12517EOF
12518  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519  (eval $ac_link) 2>&5
12520  ac_status=$?
12521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12523    (./conftest; exit; ) 2>/dev/null
12524    lt_status=$?
12525    case x$lt_status in
12526      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12527      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12528      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12529    esac
12530  else :
12531    # compilation failed
12532    lt_cv_dlopen_self_static=no
12533  fi
12534fi
12535rm -fr conftest*
12536
12537
12538fi
12539echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12540echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12541    fi
12542
12543    CPPFLAGS="$save_CPPFLAGS"
12544    LDFLAGS="$save_LDFLAGS"
12545    LIBS="$save_LIBS"
12546    ;;
12547  esac
12548
12549  case $lt_cv_dlopen_self in
12550  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12551  *) enable_dlopen_self=unknown ;;
12552  esac
12553
12554  case $lt_cv_dlopen_self_static in
12555  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12556  *) enable_dlopen_self_static=unknown ;;
12557  esac
12558fi
12559
12560
12561# The else clause should only fire when bootstrapping the
12562# libtool distribution, otherwise you forgot to ship ltmain.sh
12563# with your package, and you will get complaints that there are
12564# no rules to generate ltmain.sh.
12565if test -f "$ltmain"; then
12566  # See if we are running on zsh, and set the options which allow our commands through
12567  # without removal of \ escapes.
12568  if test -n "${ZSH_VERSION+set}" ; then
12569    setopt NO_GLOB_SUBST
12570  fi
12571  # Now quote all the things that may contain metacharacters while being
12572  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12573  # variables and quote the copies for generation of the libtool script.
12574  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12575    SED SHELL STRIP \
12576    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12577    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12578    deplibs_check_method reload_flag reload_cmds need_locks \
12579    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12580    lt_cv_sys_global_symbol_to_c_name_address \
12581    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12582    old_postinstall_cmds old_postuninstall_cmds \
12583    compiler_CXX \
12584    CC_CXX \
12585    LD_CXX \
12586    lt_prog_compiler_wl_CXX \
12587    lt_prog_compiler_pic_CXX \
12588    lt_prog_compiler_static_CXX \
12589    lt_prog_compiler_no_builtin_flag_CXX \
12590    export_dynamic_flag_spec_CXX \
12591    thread_safe_flag_spec_CXX \
12592    whole_archive_flag_spec_CXX \
12593    enable_shared_with_static_runtimes_CXX \
12594    old_archive_cmds_CXX \
12595    old_archive_from_new_cmds_CXX \
12596    predep_objects_CXX \
12597    postdep_objects_CXX \
12598    predeps_CXX \
12599    postdeps_CXX \
12600    compiler_lib_search_path_CXX \
12601    archive_cmds_CXX \
12602    archive_expsym_cmds_CXX \
12603    postinstall_cmds_CXX \
12604    postuninstall_cmds_CXX \
12605    old_archive_from_expsyms_cmds_CXX \
12606    allow_undefined_flag_CXX \
12607    no_undefined_flag_CXX \
12608    export_symbols_cmds_CXX \
12609    hardcode_libdir_flag_spec_CXX \
12610    hardcode_libdir_flag_spec_ld_CXX \
12611    hardcode_libdir_separator_CXX \
12612    hardcode_automatic_CXX \
12613    module_cmds_CXX \
12614    module_expsym_cmds_CXX \
12615    lt_cv_prog_compiler_c_o_CXX \
12616    exclude_expsyms_CXX \
12617    include_expsyms_CXX; do
12618
12619    case $var in
12620    old_archive_cmds_CXX | \
12621    old_archive_from_new_cmds_CXX | \
12622    archive_cmds_CXX | \
12623    archive_expsym_cmds_CXX | \
12624    module_cmds_CXX | \
12625    module_expsym_cmds_CXX | \
12626    old_archive_from_expsyms_cmds_CXX | \
12627    export_symbols_cmds_CXX | \
12628    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12629    postinstall_cmds | postuninstall_cmds | \
12630    old_postinstall_cmds | old_postuninstall_cmds | \
12631    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12632      # Double-quote double-evaled strings.
12633      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12634      ;;
12635    *)
12636      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12637      ;;
12638    esac
12639  done
12640
12641  case $lt_echo in
12642  *'\$0 --fallback-echo"')
12643    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12644    ;;
12645  esac
12646
12647cfgfile="$ofile"
12648
12649  cat <<__EOF__ >> "$cfgfile"
12650# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12651
12652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12653
12654# Shell to use when invoking shell scripts.
12655SHELL=$lt_SHELL
12656
12657# Whether or not to build shared libraries.
12658build_libtool_libs=$enable_shared
12659
12660# Whether or not to build static libraries.
12661build_old_libs=$enable_static
12662
12663# Whether or not to add -lc for building shared libraries.
12664build_libtool_need_lc=$archive_cmds_need_lc_CXX
12665
12666# Whether or not to disallow shared libs when runtime libs are static
12667allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12668
12669# Whether or not to optimize for fast installation.
12670fast_install=$enable_fast_install
12671
12672# The host system.
12673host_alias=$host_alias
12674host=$host
12675
12676# An echo program that does not interpret backslashes.
12677echo=$lt_echo
12678
12679# The archiver.
12680AR=$lt_AR
12681AR_FLAGS=$lt_AR_FLAGS
12682
12683# A C compiler.
12684LTCC=$lt_LTCC
12685
12686# A language-specific compiler.
12687CC=$lt_compiler_CXX
12688
12689# Is the compiler the GNU C compiler?
12690with_gcc=$GCC_CXX
12691
12692# An ERE matcher.
12693EGREP=$lt_EGREP
12694
12695# The linker used to build libraries.
12696LD=$lt_LD_CXX
12697
12698# Whether we need hard or soft links.
12699LN_S=$lt_LN_S
12700
12701# A BSD-compatible nm program.
12702NM=$lt_NM
12703
12704# A symbol stripping program
12705STRIP=$lt_STRIP
12706
12707# Used to examine libraries when file_magic_cmd begins "file"
12708MAGIC_CMD=$MAGIC_CMD
12709
12710# Used on cygwin: DLL creation program.
12711DLLTOOL="$DLLTOOL"
12712
12713# Used on cygwin: object dumper.
12714OBJDUMP="$OBJDUMP"
12715
12716# Used on cygwin: assembler.
12717AS="$AS"
12718
12719# The name of the directory that contains temporary libtool files.
12720objdir=$objdir
12721
12722# How to create reloadable object files.
12723reload_flag=$lt_reload_flag
12724reload_cmds=$lt_reload_cmds
12725
12726# How to pass a linker flag through the compiler.
12727wl=$lt_lt_prog_compiler_wl_CXX
12728
12729# Object file suffix (normally "o").
12730objext="$ac_objext"
12731
12732# Old archive suffix (normally "a").
12733libext="$libext"
12734
12735# Shared library suffix (normally ".so").
12736shrext_cmds='$shrext_cmds'
12737
12738# Executable file suffix (normally "").
12739exeext="$exeext"
12740
12741# Additional compiler flags for building library objects.
12742pic_flag=$lt_lt_prog_compiler_pic_CXX
12743pic_mode=$pic_mode
12744
12745# What is the maximum length of a command?
12746max_cmd_len=$lt_cv_sys_max_cmd_len
12747
12748# Does compiler simultaneously support -c and -o options?
12749compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12750
12751# Must we lock files when doing compilation ?
12752need_locks=$lt_need_locks
12753
12754# Do we need the lib prefix for modules?
12755need_lib_prefix=$need_lib_prefix
12756
12757# Do we need a version for libraries?
12758need_version=$need_version
12759
12760# Whether dlopen is supported.
12761dlopen_support=$enable_dlopen
12762
12763# Whether dlopen of programs is supported.
12764dlopen_self=$enable_dlopen_self
12765
12766# Whether dlopen of statically linked programs is supported.
12767dlopen_self_static=$enable_dlopen_self_static
12768
12769# Compiler flag to prevent dynamic linking.
12770link_static_flag=$lt_lt_prog_compiler_static_CXX
12771
12772# Compiler flag to turn off builtin functions.
12773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12774
12775# Compiler flag to allow reflexive dlopens.
12776export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12777
12778# Compiler flag to generate shared objects directly from archives.
12779whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12780
12781# Compiler flag to generate thread-safe objects.
12782thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12783
12784# Library versioning type.
12785version_type=$version_type
12786
12787# Format of library name prefix.
12788libname_spec=$lt_libname_spec
12789
12790# List of archive names.  First name is the real one, the rest are links.
12791# The last name is the one that the linker finds with -lNAME.
12792library_names_spec=$lt_library_names_spec
12793
12794# The coded name of the library, if different from the real name.
12795soname_spec=$lt_soname_spec
12796
12797# Commands used to build and install an old-style archive.
12798RANLIB=$lt_RANLIB
12799old_archive_cmds=$lt_old_archive_cmds_CXX
12800old_postinstall_cmds=$lt_old_postinstall_cmds
12801old_postuninstall_cmds=$lt_old_postuninstall_cmds
12802
12803# Create an old-style archive from a shared archive.
12804old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12805
12806# Create a temporary old-style archive to link instead of a shared archive.
12807old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12808
12809# Commands used to build and install a shared archive.
12810archive_cmds=$lt_archive_cmds_CXX
12811archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12812postinstall_cmds=$lt_postinstall_cmds
12813postuninstall_cmds=$lt_postuninstall_cmds
12814
12815# Commands used to build a loadable module (assumed same as above if empty)
12816module_cmds=$lt_module_cmds_CXX
12817module_expsym_cmds=$lt_module_expsym_cmds_CXX
12818
12819# Commands to strip libraries.
12820old_striplib=$lt_old_striplib
12821striplib=$lt_striplib
12822
12823# Dependencies to place before the objects being linked to create a
12824# shared library.
12825predep_objects=$lt_predep_objects_CXX
12826
12827# Dependencies to place after the objects being linked to create a
12828# shared library.
12829postdep_objects=$lt_postdep_objects_CXX
12830
12831# Dependencies to place before the objects being linked to create a
12832# shared library.
12833predeps=$lt_predeps_CXX
12834
12835# Dependencies to place after the objects being linked to create a
12836# shared library.
12837postdeps=$lt_postdeps_CXX
12838
12839# The library search path used internally by the compiler when linking
12840# a shared library.
12841compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12842
12843# Method to check whether dependent libraries are shared objects.
12844deplibs_check_method=$lt_deplibs_check_method
12845
12846# Command to use when deplibs_check_method == file_magic.
12847file_magic_cmd=$lt_file_magic_cmd
12848
12849# Flag that allows shared libraries with undefined symbols to be built.
12850allow_undefined_flag=$lt_allow_undefined_flag_CXX
12851
12852# Flag that forces no undefined symbols.
12853no_undefined_flag=$lt_no_undefined_flag_CXX
12854
12855# Commands used to finish a libtool library installation in a directory.
12856finish_cmds=$lt_finish_cmds
12857
12858# Same as above, but a single script fragment to be evaled but not shown.
12859finish_eval=$lt_finish_eval
12860
12861# Take the output of nm and produce a listing of raw symbols and C names.
12862global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12863
12864# Transform the output of nm in a proper C declaration
12865global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12866
12867# Transform the output of nm in a C name address pair
12868global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12869
12870# This is the shared library runtime path variable.
12871runpath_var=$runpath_var
12872
12873# This is the shared library path variable.
12874shlibpath_var=$shlibpath_var
12875
12876# Is shlibpath searched before the hard-coded library search path?
12877shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12878
12879# How to hardcode a shared library path into an executable.
12880hardcode_action=$hardcode_action_CXX
12881
12882# Whether we should hardcode library paths into libraries.
12883hardcode_into_libs=$hardcode_into_libs
12884
12885# Flag to hardcode \$libdir into a binary during linking.
12886# This must work even if \$libdir does not exist.
12887hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12888
12889# If ld is used when linking, flag to hardcode \$libdir into
12890# a binary during linking. This must work even if \$libdir does
12891# not exist.
12892hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12893
12894# Whether we need a single -rpath flag with a separated argument.
12895hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12896
12897# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12898# resulting binary.
12899hardcode_direct=$hardcode_direct_CXX
12900
12901# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12902# resulting binary.
12903hardcode_minus_L=$hardcode_minus_L_CXX
12904
12905# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12906# the resulting binary.
12907hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12908
12909# Set to yes if building a shared library automatically hardcodes DIR into the library
12910# and all subsequent libraries and executables linked against it.
12911hardcode_automatic=$hardcode_automatic_CXX
12912
12913# Variables whose values should be saved in libtool wrapper scripts and
12914# restored at relink time.
12915variables_saved_for_relink="$variables_saved_for_relink"
12916
12917# Whether libtool must link a program against all its dependency libraries.
12918link_all_deplibs=$link_all_deplibs_CXX
12919
12920# Compile-time system search path for libraries
12921sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12922
12923# Run-time system search path for libraries
12924sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12925
12926# Fix the shell variable \$srcfile for the compiler.
12927fix_srcfile_path="$fix_srcfile_path_CXX"
12928
12929# Set to yes if exported symbols are required.
12930always_export_symbols=$always_export_symbols_CXX
12931
12932# The commands to list exported symbols.
12933export_symbols_cmds=$lt_export_symbols_cmds_CXX
12934
12935# The commands to extract the exported symbol list from a shared archive.
12936extract_expsyms_cmds=$lt_extract_expsyms_cmds
12937
12938# Symbols that should not be listed in the preloaded symbols.
12939exclude_expsyms=$lt_exclude_expsyms_CXX
12940
12941# Symbols that must always be exported.
12942include_expsyms=$lt_include_expsyms_CXX
12943
12944# ### END LIBTOOL TAG CONFIG: $tagname
12945
12946__EOF__
12947
12948
12949else
12950  # If there is no Makefile yet, we rely on a make rule to execute
12951  # `config.status --recheck' to rerun these tests and create the
12952  # libtool script then.
12953  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12954  if test -f "$ltmain_in"; then
12955    test -f Makefile && make "$ltmain"
12956  fi
12957fi
12958
12959
12960ac_ext=c
12961ac_cpp='$CPP $CPPFLAGS'
12962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12964ac_compiler_gnu=$ac_cv_c_compiler_gnu
12965
12966CC=$lt_save_CC
12967LDCXX=$LD
12968LD=$lt_save_LD
12969GCC=$lt_save_GCC
12970with_gnu_ldcxx=$with_gnu_ld
12971with_gnu_ld=$lt_save_with_gnu_ld
12972lt_cv_path_LDCXX=$lt_cv_path_LD
12973lt_cv_path_LD=$lt_save_path_LD
12974lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12975lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12976
12977	else
12978	  tagname=""
12979	fi
12980	;;
12981
12982      F77)
12983	if test -n "$F77" && test "X$F77" != "Xno"; then
12984
12985ac_ext=f
12986ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12987ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12989
12990
12991archive_cmds_need_lc_F77=no
12992allow_undefined_flag_F77=
12993always_export_symbols_F77=no
12994archive_expsym_cmds_F77=
12995export_dynamic_flag_spec_F77=
12996hardcode_direct_F77=no
12997hardcode_libdir_flag_spec_F77=
12998hardcode_libdir_flag_spec_ld_F77=
12999hardcode_libdir_separator_F77=
13000hardcode_minus_L_F77=no
13001hardcode_automatic_F77=no
13002module_cmds_F77=
13003module_expsym_cmds_F77=
13004link_all_deplibs_F77=unknown
13005old_archive_cmds_F77=$old_archive_cmds
13006no_undefined_flag_F77=
13007whole_archive_flag_spec_F77=
13008enable_shared_with_static_runtimes_F77=no
13009
13010# Source file extension for f77 test sources.
13011ac_ext=f
13012
13013# Object file extension for compiled f77 test sources.
13014objext=o
13015objext_F77=$objext
13016
13017# Code to be used in simple compile tests
13018lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13019
13020# Code to be used in simple link tests
13021lt_simple_link_test_code="      program t\n      end\n"
13022
13023# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13024
13025# If no C compiler was specified, use CC.
13026LTCC=${LTCC-"$CC"}
13027
13028# Allow CC to be a program name with arguments.
13029compiler=$CC
13030
13031
13032# Allow CC to be a program name with arguments.
13033lt_save_CC="$CC"
13034CC=${F77-"f77"}
13035compiler=$CC
13036compiler_F77=$CC
13037cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13038
13039echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13040echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13041echo "$as_me:$LINENO: result: $can_build_shared" >&5
13042echo "${ECHO_T}$can_build_shared" >&6
13043
13044echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13045echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13046test "$can_build_shared" = "no" && enable_shared=no
13047
13048# On AIX, shared libraries and static libraries use the same namespace, and
13049# are all built from PIC.
13050case "$host_os" in
13051aix3*)
13052  test "$enable_shared" = yes && enable_static=no
13053  if test -n "$RANLIB"; then
13054    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13055    postinstall_cmds='$RANLIB $lib'
13056  fi
13057  ;;
13058aix4* | aix5*)
13059  test "$enable_shared" = yes && enable_static=no
13060  ;;
13061esac
13062echo "$as_me:$LINENO: result: $enable_shared" >&5
13063echo "${ECHO_T}$enable_shared" >&6
13064
13065echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13066echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13067# Make sure either enable_shared or enable_static is yes.
13068test "$enable_shared" = yes || enable_static=yes
13069echo "$as_me:$LINENO: result: $enable_static" >&5
13070echo "${ECHO_T}$enable_static" >&6
13071
13072test "$ld_shlibs_F77" = no && can_build_shared=no
13073
13074GCC_F77="$G77"
13075LD_F77="$LD"
13076
13077lt_prog_compiler_wl_F77=
13078lt_prog_compiler_pic_F77=
13079lt_prog_compiler_static_F77=
13080
13081echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13082echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13083
13084  if test "$GCC" = yes; then
13085    lt_prog_compiler_wl_F77='-Wl,'
13086    lt_prog_compiler_static_F77='-static'
13087
13088    case $host_os in
13089      aix*)
13090      # All AIX code is PIC.
13091      if test "$host_cpu" = ia64; then
13092	# AIX 5 now supports IA64 processor
13093	lt_prog_compiler_static_F77='-Bstatic'
13094      fi
13095      ;;
13096
13097    amigaos*)
13098      # FIXME: we need at least 68020 code to build shared libraries, but
13099      # adding the `-m68020' flag to GCC prevents building anything better,
13100      # like `-m68040'.
13101      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13102      ;;
13103
13104    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13105      # PIC is the default for these OSes.
13106      ;;
13107
13108    mingw* | pw32* | os2*)
13109      # This hack is so that the source file can tell whether it is being
13110      # built for inclusion in a dll (and should export symbols for example).
13111      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13112      ;;
13113
13114    darwin* | rhapsody*)
13115      # PIC is the default on this platform
13116      # Common symbols not allowed in MH_DYLIB files
13117      lt_prog_compiler_pic_F77='-fno-common'
13118      ;;
13119
13120    msdosdjgpp*)
13121      # Just because we use GCC doesn't mean we suddenly get shared libraries
13122      # on systems that don't support them.
13123      lt_prog_compiler_can_build_shared_F77=no
13124      enable_shared=no
13125      ;;
13126
13127    sysv4*MP*)
13128      if test -d /usr/nec; then
13129	lt_prog_compiler_pic_F77=-Kconform_pic
13130      fi
13131      ;;
13132
13133    hpux*)
13134      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13135      # not for PA HP-UX.
13136      case "$host_cpu" in
13137      hppa*64*|ia64*)
13138	# +Z the default
13139	;;
13140      *)
13141	lt_prog_compiler_pic_F77='-fPIC'
13142	;;
13143      esac
13144      ;;
13145
13146    *)
13147      lt_prog_compiler_pic_F77='-fPIC'
13148      ;;
13149    esac
13150  else
13151    # PORTME Check for flag to pass linker flags through the system compiler.
13152    case $host_os in
13153    aix*)
13154      lt_prog_compiler_wl_F77='-Wl,'
13155      if test "$host_cpu" = ia64; then
13156	# AIX 5 now supports IA64 processor
13157	lt_prog_compiler_static_F77='-Bstatic'
13158      else
13159	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13160      fi
13161      ;;
13162
13163    mingw* | pw32* | os2*)
13164      # This hack is so that the source file can tell whether it is being
13165      # built for inclusion in a dll (and should export symbols for example).
13166      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13167      ;;
13168
13169    hpux9* | hpux10* | hpux11*)
13170      lt_prog_compiler_wl_F77='-Wl,'
13171      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13172      # not for PA HP-UX.
13173      case "$host_cpu" in
13174      hppa*64*|ia64*)
13175	# +Z the default
13176	;;
13177      *)
13178	lt_prog_compiler_pic_F77='+Z'
13179	;;
13180      esac
13181      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13182      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13183      ;;
13184
13185    irix5* | irix6* | nonstopux*)
13186      lt_prog_compiler_wl_F77='-Wl,'
13187      # PIC (with -KPIC) is the default.
13188      lt_prog_compiler_static_F77='-non_shared'
13189      ;;
13190
13191    newsos6)
13192      lt_prog_compiler_pic_F77='-KPIC'
13193      lt_prog_compiler_static_F77='-Bstatic'
13194      ;;
13195
13196    linux*)
13197      case $CC in
13198      icc* | ecc*)
13199	lt_prog_compiler_wl_F77='-Wl,'
13200	lt_prog_compiler_pic_F77='-KPIC'
13201	lt_prog_compiler_static_F77='-static'
13202        ;;
13203      ccc*)
13204        lt_prog_compiler_wl_F77='-Wl,'
13205        # All Alpha code is PIC.
13206        lt_prog_compiler_static_F77='-non_shared'
13207        ;;
13208      esac
13209      ;;
13210
13211    osf3* | osf4* | osf5*)
13212      lt_prog_compiler_wl_F77='-Wl,'
13213      # All OSF/1 code is PIC.
13214      lt_prog_compiler_static_F77='-non_shared'
13215      ;;
13216
13217    sco3.2v5*)
13218      lt_prog_compiler_pic_F77='-Kpic'
13219      lt_prog_compiler_static_F77='-dn'
13220      ;;
13221
13222    solaris*)
13223      lt_prog_compiler_wl_F77='-Wl,'
13224      lt_prog_compiler_pic_F77='-KPIC'
13225      lt_prog_compiler_static_F77='-Bstatic'
13226      ;;
13227
13228    sunos4*)
13229      lt_prog_compiler_wl_F77='-Qoption ld '
13230      lt_prog_compiler_pic_F77='-PIC'
13231      lt_prog_compiler_static_F77='-Bstatic'
13232      ;;
13233
13234    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13235      lt_prog_compiler_wl_F77='-Wl,'
13236      lt_prog_compiler_pic_F77='-KPIC'
13237      lt_prog_compiler_static_F77='-Bstatic'
13238      ;;
13239
13240    sysv4*MP*)
13241      if test -d /usr/nec ;then
13242	lt_prog_compiler_pic_F77='-Kconform_pic'
13243	lt_prog_compiler_static_F77='-Bstatic'
13244      fi
13245      ;;
13246
13247    uts4*)
13248      lt_prog_compiler_pic_F77='-pic'
13249      lt_prog_compiler_static_F77='-Bstatic'
13250      ;;
13251
13252    *)
13253      lt_prog_compiler_can_build_shared_F77=no
13254      ;;
13255    esac
13256  fi
13257
13258echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13259echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13260
13261#
13262# Check to make sure the PIC flag actually works.
13263#
13264if test -n "$lt_prog_compiler_pic_F77"; then
13265
13266echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13267echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13268if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13269  echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271  lt_prog_compiler_pic_works_F77=no
13272  ac_outfile=conftest.$ac_objext
13273   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13274   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13275   # Insert the option either (1) after the last *FLAGS variable, or
13276   # (2) before a word containing "conftest.", or (3) at the end.
13277   # Note that $ac_compile itself does not contain backslashes and begins
13278   # with a dollar sign (not a hyphen), so the echo should work correctly.
13279   # The option is referenced via a variable to avoid confusing sed.
13280   lt_compile=`echo "$ac_compile" | $SED \
13281   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13282   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13283   -e 's:$: $lt_compiler_flag:'`
13284   (eval echo "\"\$as_me:13284: $lt_compile\"" >&5)
13285   (eval "$lt_compile" 2>conftest.err)
13286   ac_status=$?
13287   cat conftest.err >&5
13288   echo "$as_me:13288: \$? = $ac_status" >&5
13289   if (exit $ac_status) && test -s "$ac_outfile"; then
13290     # The compiler can only warn and ignore the option if not recognized
13291     # So say no if there are warnings
13292     if test ! -s conftest.err; then
13293       lt_prog_compiler_pic_works_F77=yes
13294     fi
13295   fi
13296   $rm conftest*
13297
13298fi
13299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13300echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13301
13302if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13303    case $lt_prog_compiler_pic_F77 in
13304     "" | " "*) ;;
13305     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13306     esac
13307else
13308    lt_prog_compiler_pic_F77=
13309     lt_prog_compiler_can_build_shared_F77=no
13310fi
13311
13312fi
13313case "$host_os" in
13314  # For platforms which do not support PIC, -DPIC is meaningless:
13315  *djgpp*)
13316    lt_prog_compiler_pic_F77=
13317    ;;
13318  *)
13319    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13320    ;;
13321esac
13322
13323echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13324echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13325if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13326  echo $ECHO_N "(cached) $ECHO_C" >&6
13327else
13328  lt_cv_prog_compiler_c_o_F77=no
13329   $rm -r conftest 2>/dev/null
13330   mkdir conftest
13331   cd conftest
13332   mkdir out
13333   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13334
13335   lt_compiler_flag="-o out/conftest2.$ac_objext"
13336   # Insert the option either (1) after the last *FLAGS variable, or
13337   # (2) before a word containing "conftest.", or (3) at the end.
13338   # Note that $ac_compile itself does not contain backslashes and begins
13339   # with a dollar sign (not a hyphen), so the echo should work correctly.
13340   lt_compile=`echo "$ac_compile" | $SED \
13341   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13343   -e 's:$: $lt_compiler_flag:'`
13344   (eval echo "\"\$as_me:13344: $lt_compile\"" >&5)
13345   (eval "$lt_compile" 2>out/conftest.err)
13346   ac_status=$?
13347   cat out/conftest.err >&5
13348   echo "$as_me:13348: \$? = $ac_status" >&5
13349   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13350   then
13351     # The compiler can only warn and ignore the option if not recognized
13352     # So say no if there are warnings
13353     if test ! -s out/conftest.err; then
13354       lt_cv_prog_compiler_c_o_F77=yes
13355     fi
13356   fi
13357   chmod u+w .
13358   $rm conftest*
13359   # SGI C++ compiler will create directory out/ii_files/ for
13360   # template instantiation
13361   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13362   $rm out/* && rmdir out
13363   cd ..
13364   rmdir conftest
13365   $rm conftest*
13366
13367fi
13368echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13369echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13370
13371
13372hard_links="nottested"
13373if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13374  # do not overwrite the value of need_locks provided by the user
13375  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13376echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13377  hard_links=yes
13378  $rm conftest*
13379  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13380  touch conftest.a
13381  ln conftest.a conftest.b 2>&5 || hard_links=no
13382  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13383  echo "$as_me:$LINENO: result: $hard_links" >&5
13384echo "${ECHO_T}$hard_links" >&6
13385  if test "$hard_links" = no; then
13386    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13387echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13388    need_locks=warn
13389  fi
13390else
13391  need_locks=no
13392fi
13393
13394echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13395echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13396
13397  runpath_var=
13398  allow_undefined_flag_F77=
13399  enable_shared_with_static_runtimes_F77=no
13400  archive_cmds_F77=
13401  archive_expsym_cmds_F77=
13402  old_archive_From_new_cmds_F77=
13403  old_archive_from_expsyms_cmds_F77=
13404  export_dynamic_flag_spec_F77=
13405  whole_archive_flag_spec_F77=
13406  thread_safe_flag_spec_F77=
13407  hardcode_libdir_flag_spec_F77=
13408  hardcode_libdir_flag_spec_ld_F77=
13409  hardcode_libdir_separator_F77=
13410  hardcode_direct_F77=no
13411  hardcode_minus_L_F77=no
13412  hardcode_shlibpath_var_F77=unsupported
13413  link_all_deplibs_F77=unknown
13414  hardcode_automatic_F77=no
13415  module_cmds_F77=
13416  module_expsym_cmds_F77=
13417  always_export_symbols_F77=no
13418  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13419  # include_expsyms should be a list of space-separated symbols to be *always*
13420  # included in the symbol list
13421  include_expsyms_F77=
13422  # exclude_expsyms can be an extended regexp of symbols to exclude
13423  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13424  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13425  # as well as any symbol that contains `d'.
13426  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13427  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13428  # platforms (ab)use it in PIC code, but their linkers get confused if
13429  # the symbol is explicitly referenced.  Since portable code cannot
13430  # rely on this symbol name, it's probably fine to never include it in
13431  # preloaded symbol tables.
13432  extract_expsyms_cmds=
13433
13434  case $host_os in
13435  cygwin* | mingw* | pw32*)
13436    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13437    # When not using gcc, we currently assume that we are using
13438    # Microsoft Visual C++.
13439    if test "$GCC" != yes; then
13440      with_gnu_ld=no
13441    fi
13442    ;;
13443  openbsd*)
13444    with_gnu_ld=no
13445    ;;
13446  esac
13447
13448  ld_shlibs_F77=yes
13449  if test "$with_gnu_ld" = yes; then
13450    # If archive_cmds runs LD, not CC, wlarc should be empty
13451    wlarc='${wl}'
13452
13453    # See if GNU ld supports shared libraries.
13454    case $host_os in
13455    aix3* | aix4* | aix5*)
13456      # On AIX/PPC, the GNU linker is very broken
13457      if test "$host_cpu" != ia64; then
13458	ld_shlibs_F77=no
13459	cat <<EOF 1>&2
13460
13461*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13462*** to be unable to reliably create shared libraries on AIX.
13463*** Therefore, libtool is disabling shared libraries support.  If you
13464*** really care for shared libraries, you may want to modify your PATH
13465*** so that a non-GNU linker is found, and then restart.
13466
13467EOF
13468      fi
13469      ;;
13470
13471    amigaos*)
13472      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)'
13473      hardcode_libdir_flag_spec_F77='-L$libdir'
13474      hardcode_minus_L_F77=yes
13475
13476      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13477      # that the semantics of dynamic libraries on AmigaOS, at least up
13478      # to version 4, is to share data among multiple programs linked
13479      # with the same dynamic library.  Since this doesn't match the
13480      # behavior of shared libraries on other platforms, we can't use
13481      # them.
13482      ld_shlibs_F77=no
13483      ;;
13484
13485    beos*)
13486      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13487	allow_undefined_flag_F77=unsupported
13488	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13489	# support --undefined.  This deserves some investigation.  FIXME
13490	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13491      else
13492	ld_shlibs_F77=no
13493      fi
13494      ;;
13495
13496    cygwin* | mingw* | pw32*)
13497      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13498      # as there is no search path for DLLs.
13499      hardcode_libdir_flag_spec_F77='-L$libdir'
13500      allow_undefined_flag_F77=unsupported
13501      always_export_symbols_F77=no
13502      enable_shared_with_static_runtimes_F77=yes
13503      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13504
13505      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13506        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13507	# If the export-symbols file already is a .def file (1st line
13508	# is EXPORTS), use it as is; otherwise, prepend...
13509	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13510	  cp $export_symbols $output_objdir/$soname.def;
13511	else
13512	  echo EXPORTS > $output_objdir/$soname.def;
13513	  cat $export_symbols >> $output_objdir/$soname.def;
13514	fi~
13515	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13516      else
13517	ld_shlibs=no
13518      fi
13519      ;;
13520
13521    netbsd* | knetbsd*-gnu)
13522      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13523	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13524	wlarc=
13525      else
13526	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13527	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13528      fi
13529      ;;
13530
13531    solaris* | sysv5*)
13532      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13533	ld_shlibs_F77=no
13534	cat <<EOF 1>&2
13535
13536*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13537*** create shared libraries on Solaris systems.  Therefore, libtool
13538*** is disabling shared libraries support.  We urge you to upgrade GNU
13539*** binutils to release 2.9.1 or newer.  Another option is to modify
13540*** your PATH or compiler configuration so that the native linker is
13541*** used, and then restart.
13542
13543EOF
13544      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13545	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13546	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13547      else
13548	ld_shlibs_F77=no
13549      fi
13550      ;;
13551
13552    sunos4*)
13553      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13554      wlarc=
13555      hardcode_direct_F77=yes
13556      hardcode_shlibpath_var_F77=no
13557      ;;
13558
13559  linux*)
13560    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562	archive_cmds_F77="$tmp_archive_cmds"
13563      supports_anon_versioning=no
13564      case `$LD -v 2>/dev/null` in
13565        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13566        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13567        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13568        *\ 2.11.*) ;; # other 2.11 versions
13569        *) supports_anon_versioning=yes ;;
13570      esac
13571      if test $supports_anon_versioning = yes; then
13572        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13573cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13574$echo "local: *; };" >> $output_objdir/$libname.ver~
13575        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13576      else
13577        archive_expsym_cmds_F77="$tmp_archive_cmds"
13578      fi
13579      link_all_deplibs_F77=no
13580    else
13581      ld_shlibs_F77=no
13582    fi
13583    ;;
13584
13585    *)
13586      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13587	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13589      else
13590	ld_shlibs_F77=no
13591      fi
13592      ;;
13593    esac
13594
13595    if test "$ld_shlibs_F77" = yes; then
13596      runpath_var=LD_RUN_PATH
13597      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13598      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13599      # ancient GNU ld didn't support --whole-archive et. al.
13600      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13601 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13602      else
13603  	whole_archive_flag_spec_F77=
13604      fi
13605    fi
13606  else
13607    # PORTME fill in a description of your system's linker (not GNU ld)
13608    case $host_os in
13609    aix3*)
13610      allow_undefined_flag_F77=unsupported
13611      always_export_symbols_F77=yes
13612      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'
13613      # Note: this linker hardcodes the directories in LIBPATH if there
13614      # are no directories specified by -L.
13615      hardcode_minus_L_F77=yes
13616      if test "$GCC" = yes && test -z "$link_static_flag"; then
13617	# Neither direct hardcoding nor static linking is supported with a
13618	# broken collect2.
13619	hardcode_direct_F77=unsupported
13620      fi
13621      ;;
13622
13623    aix4* | aix5*)
13624      if test "$host_cpu" = ia64; then
13625	# On IA64, the linker does run time linking by default, so we don't
13626	# have to do anything special.
13627	aix_use_runtimelinking=no
13628	exp_sym_flag='-Bexport'
13629	no_entry_flag=""
13630      else
13631	# If we're using GNU nm, then we don't want the "-C" option.
13632	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13633	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13634	  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'
13635	else
13636	  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'
13637	fi
13638	aix_use_runtimelinking=no
13639
13640	# Test if we are trying to use run time linking or normal
13641	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13642	# need to do runtime linking.
13643	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13644	  for ld_flag in $LDFLAGS; do
13645  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13646  	    aix_use_runtimelinking=yes
13647  	    break
13648  	  fi
13649	  done
13650	esac
13651
13652	exp_sym_flag='-bexport'
13653	no_entry_flag='-bnoentry'
13654      fi
13655
13656      # When large executables or shared objects are built, AIX ld can
13657      # have problems creating the table of contents.  If linking a library
13658      # or program results in "error TOC overflow" add -mminimal-toc to
13659      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13660      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13661
13662      archive_cmds_F77=''
13663      hardcode_direct_F77=yes
13664      hardcode_libdir_separator_F77=':'
13665      link_all_deplibs_F77=yes
13666
13667      if test "$GCC" = yes; then
13668	case $host_os in aix4.012|aix4.012.*)
13669	# We only want to do this on AIX 4.2 and lower, the check
13670	# below for broken collect2 doesn't work under 4.3+
13671	  collect2name=`${CC} -print-prog-name=collect2`
13672	  if test -f "$collect2name" && \
13673  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13674	  then
13675  	  # We have reworked collect2
13676  	  hardcode_direct_F77=yes
13677	  else
13678  	  # We have old collect2
13679  	  hardcode_direct_F77=unsupported
13680  	  # It fails to find uninstalled libraries when the uninstalled
13681  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13682  	  # to unsupported forces relinking
13683  	  hardcode_minus_L_F77=yes
13684  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13685  	  hardcode_libdir_separator_F77=
13686	  fi
13687	esac
13688	shared_flag='-shared'
13689      else
13690	# not using gcc
13691	if test "$host_cpu" = ia64; then
13692  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13693  	# chokes on -Wl,-G. The following line is correct:
13694	  shared_flag='-G'
13695	else
13696  	if test "$aix_use_runtimelinking" = yes; then
13697	    shared_flag='${wl}-G'
13698	  else
13699	    shared_flag='${wl}-bM:SRE'
13700  	fi
13701	fi
13702      fi
13703
13704      # It seems that -bexpall does not export symbols beginning with
13705      # underscore (_), so it is better to generate a list of symbols to export.
13706      always_export_symbols_F77=yes
13707      if test "$aix_use_runtimelinking" = yes; then
13708	# Warning - without using the other runtime loading flags (-brtl),
13709	# -berok will link without error, but may produce a broken library.
13710	allow_undefined_flag_F77='-berok'
13711       # Determine the default libpath from the value encoded in an empty executable.
13712       cat >conftest.$ac_ext <<_ACEOF
13713      program main
13714
13715      end
13716_ACEOF
13717rm -f conftest.$ac_objext conftest$ac_exeext
13718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719  (eval $ac_link) 2>conftest.er1
13720  ac_status=$?
13721  grep -v '^ *+' conftest.er1 >conftest.err
13722  rm -f conftest.er1
13723  cat conftest.err >&5
13724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725  (exit $ac_status); } &&
13726	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728  (eval $ac_try) 2>&5
13729  ac_status=$?
13730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731  (exit $ac_status); }; } &&
13732	 { ac_try='test -s conftest$ac_exeext'
13733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734  (eval $ac_try) 2>&5
13735  ac_status=$?
13736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737  (exit $ac_status); }; }; then
13738
13739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13740}'`
13741# Check for a 64-bit object if we didn't find anything.
13742if 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; }
13743}'`; fi
13744else
13745  echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748fi
13749rm -f conftest.err conftest.$ac_objext \
13750      conftest$ac_exeext conftest.$ac_ext
13751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13752
13753       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13754	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"
13755       else
13756	if test "$host_cpu" = ia64; then
13757	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13758	  allow_undefined_flag_F77="-z nodefs"
13759	  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"
13760	else
13761	 # Determine the default libpath from the value encoded in an empty executable.
13762	 cat >conftest.$ac_ext <<_ACEOF
13763      program main
13764
13765      end
13766_ACEOF
13767rm -f conftest.$ac_objext conftest$ac_exeext
13768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13769  (eval $ac_link) 2>conftest.er1
13770  ac_status=$?
13771  grep -v '^ *+' conftest.er1 >conftest.err
13772  rm -f conftest.er1
13773  cat conftest.err >&5
13774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775  (exit $ac_status); } &&
13776	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778  (eval $ac_try) 2>&5
13779  ac_status=$?
13780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781  (exit $ac_status); }; } &&
13782	 { ac_try='test -s conftest$ac_exeext'
13783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784  (eval $ac_try) 2>&5
13785  ac_status=$?
13786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787  (exit $ac_status); }; }; then
13788
13789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13790}'`
13791# Check for a 64-bit object if we didn't find anything.
13792if 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; }
13793}'`; fi
13794else
13795  echo "$as_me: failed program was:" >&5
13796sed 's/^/| /' conftest.$ac_ext >&5
13797
13798fi
13799rm -f conftest.err conftest.$ac_objext \
13800      conftest$ac_exeext conftest.$ac_ext
13801if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13802
13803	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13804	  # Warning - without using the other run time loading flags,
13805	  # -berok will link without error, but may produce a broken library.
13806	  no_undefined_flag_F77=' ${wl}-bernotok'
13807	  allow_undefined_flag_F77=' ${wl}-berok'
13808	  # -bexpall does not export symbols beginning with underscore (_)
13809	  always_export_symbols_F77=yes
13810	  # Exported symbols can be pulled into shared objects from archives
13811	  whole_archive_flag_spec_F77=' '
13812	  archive_cmds_need_lc_F77=yes
13813	  # This is similar to how AIX traditionally builds it's shared libraries.
13814	  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'
13815	fi
13816      fi
13817      ;;
13818
13819    amigaos*)
13820      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)'
13821      hardcode_libdir_flag_spec_F77='-L$libdir'
13822      hardcode_minus_L_F77=yes
13823      # see comment about different semantics on the GNU ld section
13824      ld_shlibs_F77=no
13825      ;;
13826
13827    bsdi4*)
13828      export_dynamic_flag_spec_F77=-rdynamic
13829      ;;
13830
13831    cygwin* | mingw* | pw32*)
13832      # When not using gcc, we currently assume that we are using
13833      # Microsoft Visual C++.
13834      # hardcode_libdir_flag_spec is actually meaningless, as there is
13835      # no search path for DLLs.
13836      hardcode_libdir_flag_spec_F77=' '
13837      allow_undefined_flag_F77=unsupported
13838      # Tell ltmain to make .lib files, not .a files.
13839      libext=lib
13840      # Tell ltmain to make .dll files, not .so files.
13841      shrext_cmds=".dll"
13842      # FIXME: Setting linknames here is a bad hack.
13843      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13844      # The linker will automatically build a .lib file if we build a DLL.
13845      old_archive_From_new_cmds_F77='true'
13846      # FIXME: Should let the user specify the lib program.
13847      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13848      fix_srcfile_path='`cygpath -w "$srcfile"`'
13849      enable_shared_with_static_runtimes_F77=yes
13850      ;;
13851
13852    darwin* | rhapsody*)
13853    if test "$GXX" = yes ; then
13854      archive_cmds_need_lc_F77=no
13855      case "$host_os" in
13856      rhapsody* | darwin1.[012])
13857	allow_undefined_flag_F77='-undefined suppress'
13858	;;
13859      *) # Darwin 1.3 on
13860      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13861      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13862      else
13863        case ${MACOSX_DEPLOYMENT_TARGET} in
13864          10.[012])
13865            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13866            ;;
13867          10.*)
13868            allow_undefined_flag_F77='-undefined dynamic_lookup'
13869            ;;
13870        esac
13871      fi
13872	;;
13873      esac
13874    	lt_int_apple_cc_single_mod=no
13875    	output_verbose_link_cmd='echo'
13876    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13877    	  lt_int_apple_cc_single_mod=yes
13878    	fi
13879    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13880    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13881    	else
13882        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13883      fi
13884      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13885      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13886        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13887          archive_expsym_cmds_F77='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}'
13888        else
13889          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13890        fi
13891          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}'
13892      hardcode_direct_F77=no
13893      hardcode_automatic_F77=yes
13894      hardcode_shlibpath_var_F77=unsupported
13895      whole_archive_flag_spec_F77='-all_load $convenience'
13896      link_all_deplibs_F77=yes
13897    else
13898      ld_shlibs_F77=no
13899    fi
13900      ;;
13901
13902    dgux*)
13903      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13904      hardcode_libdir_flag_spec_F77='-L$libdir'
13905      hardcode_shlibpath_var_F77=no
13906      ;;
13907
13908    freebsd1*)
13909      ld_shlibs_F77=no
13910      ;;
13911
13912    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13913    # support.  Future versions do this automatically, but an explicit c++rt0.o
13914    # does not break anything, and helps significantly (at the cost of a little
13915    # extra space).
13916    freebsd2.2*)
13917      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13918      hardcode_libdir_flag_spec_F77='-R$libdir'
13919      hardcode_direct_F77=yes
13920      hardcode_shlibpath_var_F77=no
13921      ;;
13922
13923    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13924    freebsd2*)
13925      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13926      hardcode_direct_F77=yes
13927      hardcode_minus_L_F77=yes
13928      hardcode_shlibpath_var_F77=no
13929      ;;
13930
13931    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13932    freebsd* | kfreebsd*-gnu)
13933      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13934      hardcode_libdir_flag_spec_F77='-R$libdir'
13935      hardcode_direct_F77=yes
13936      hardcode_shlibpath_var_F77=no
13937      ;;
13938
13939    hpux9*)
13940      if test "$GCC" = yes; then
13941	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'
13942      else
13943	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'
13944      fi
13945      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13946      hardcode_libdir_separator_F77=:
13947      hardcode_direct_F77=yes
13948
13949      # hardcode_minus_L: Not really in the search PATH,
13950      # but as the default location of the library.
13951      hardcode_minus_L_F77=yes
13952      export_dynamic_flag_spec_F77='${wl}-E'
13953      ;;
13954
13955    hpux10* | hpux11*)
13956      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13957	case "$host_cpu" in
13958	hppa*64*|ia64*)
13959	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13960	  ;;
13961	*)
13962	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13963	  ;;
13964	esac
13965      else
13966	case "$host_cpu" in
13967	hppa*64*|ia64*)
13968	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13969	  ;;
13970	*)
13971	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13972	  ;;
13973	esac
13974      fi
13975      if test "$with_gnu_ld" = no; then
13976	case "$host_cpu" in
13977	hppa*64*)
13978	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13979	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13980	  hardcode_libdir_separator_F77=:
13981	  hardcode_direct_F77=no
13982	  hardcode_shlibpath_var_F77=no
13983	  ;;
13984	ia64*)
13985	  hardcode_libdir_flag_spec_F77='-L$libdir'
13986	  hardcode_direct_F77=no
13987	  hardcode_shlibpath_var_F77=no
13988
13989	  # hardcode_minus_L: Not really in the search PATH,
13990	  # but as the default location of the library.
13991	  hardcode_minus_L_F77=yes
13992	  ;;
13993	*)
13994	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13995	  hardcode_libdir_separator_F77=:
13996	  hardcode_direct_F77=yes
13997	  export_dynamic_flag_spec_F77='${wl}-E'
13998
13999	  # hardcode_minus_L: Not really in the search PATH,
14000	  # but as the default location of the library.
14001	  hardcode_minus_L_F77=yes
14002	  ;;
14003	esac
14004      fi
14005      ;;
14006
14007    irix5* | irix6* | nonstopux*)
14008      if test "$GCC" = yes; then
14009	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'
14010      else
14011	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'
14012	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14013      fi
14014      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14015      hardcode_libdir_separator_F77=:
14016      link_all_deplibs_F77=yes
14017      ;;
14018
14019    netbsd* | knetbsd*-gnu)
14020      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14021	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14022      else
14023	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14024      fi
14025      hardcode_libdir_flag_spec_F77='-R$libdir'
14026      hardcode_direct_F77=yes
14027      hardcode_shlibpath_var_F77=no
14028      ;;
14029
14030    newsos6)
14031      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032      hardcode_direct_F77=yes
14033      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14034      hardcode_libdir_separator_F77=:
14035      hardcode_shlibpath_var_F77=no
14036      ;;
14037
14038    openbsd*)
14039      hardcode_direct_F77=yes
14040      hardcode_shlibpath_var_F77=no
14041      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14042	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14043	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14044	export_dynamic_flag_spec_F77='${wl}-E'
14045      else
14046       case $host_os in
14047	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14048	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14049	   hardcode_libdir_flag_spec_F77='-R$libdir'
14050	   ;;
14051	 *)
14052	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14053	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14054	   ;;
14055       esac
14056      fi
14057      ;;
14058
14059    os2*)
14060      hardcode_libdir_flag_spec_F77='-L$libdir'
14061      hardcode_minus_L_F77=yes
14062      allow_undefined_flag_F77=unsupported
14063      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'
14064      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14065      ;;
14066
14067    osf3*)
14068      if test "$GCC" = yes; then
14069	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14070	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'
14071      else
14072	allow_undefined_flag_F77=' -expect_unresolved \*'
14073	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'
14074      fi
14075      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14076      hardcode_libdir_separator_F77=:
14077      ;;
14078
14079    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14080      if test "$GCC" = yes; then
14081	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14082	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'
14083	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14084      else
14085	allow_undefined_flag_F77=' -expect_unresolved \*'
14086	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'
14087	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~
14088	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14089
14090	# Both c and cxx compiler support -rpath directly
14091	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14092      fi
14093      hardcode_libdir_separator_F77=:
14094      ;;
14095
14096    sco3.2v5*)
14097      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14098      hardcode_shlibpath_var_F77=no
14099      export_dynamic_flag_spec_F77='${wl}-Bexport'
14100      runpath_var=LD_RUN_PATH
14101      hardcode_runpath_var=yes
14102      ;;
14103
14104    solaris*)
14105      no_undefined_flag_F77=' -z text'
14106      if test "$GCC" = yes; then
14107	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14108	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14109	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14110      else
14111	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14113  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14114      fi
14115      hardcode_libdir_flag_spec_F77='-R$libdir'
14116      hardcode_shlibpath_var_F77=no
14117      case $host_os in
14118      solaris2.[0-5] | solaris2.[0-5].*) ;;
14119      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14120	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14121      esac
14122      link_all_deplibs_F77=yes
14123      ;;
14124
14125    sunos4*)
14126      if test "x$host_vendor" = xsequent; then
14127	# Use $CC to link under sequent, because it throws in some extra .o
14128	# files that make .init and .fini sections work.
14129	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14130      else
14131	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14132      fi
14133      hardcode_libdir_flag_spec_F77='-L$libdir'
14134      hardcode_direct_F77=yes
14135      hardcode_minus_L_F77=yes
14136      hardcode_shlibpath_var_F77=no
14137      ;;
14138
14139    sysv4)
14140      case $host_vendor in
14141	sni)
14142	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14143	  hardcode_direct_F77=yes # is this really true???
14144	;;
14145	siemens)
14146	  ## LD is ld it makes a PLAMLIB
14147	  ## CC just makes a GrossModule.
14148	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14149	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14150	  hardcode_direct_F77=no
14151        ;;
14152	motorola)
14153	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14155	;;
14156      esac
14157      runpath_var='LD_RUN_PATH'
14158      hardcode_shlibpath_var_F77=no
14159      ;;
14160
14161    sysv4.3*)
14162      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14163      hardcode_shlibpath_var_F77=no
14164      export_dynamic_flag_spec_F77='-Bexport'
14165      ;;
14166
14167    sysv4*MP*)
14168      if test -d /usr/nec; then
14169	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14170	hardcode_shlibpath_var_F77=no
14171	runpath_var=LD_RUN_PATH
14172	hardcode_runpath_var=yes
14173	ld_shlibs_F77=yes
14174      fi
14175      ;;
14176
14177    sysv4.2uw2*)
14178      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14179      hardcode_direct_F77=yes
14180      hardcode_minus_L_F77=no
14181      hardcode_shlibpath_var_F77=no
14182      hardcode_runpath_var=yes
14183      runpath_var=LD_RUN_PATH
14184      ;;
14185
14186   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14187      no_undefined_flag_F77='${wl}-z ${wl}text'
14188      if test "$GCC" = yes; then
14189	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14190      else
14191	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14192      fi
14193      runpath_var='LD_RUN_PATH'
14194      hardcode_shlibpath_var_F77=no
14195      ;;
14196
14197    sysv5*)
14198      no_undefined_flag_F77=' -z text'
14199      # $CC -shared without GNU ld will not create a library from C++
14200      # object files and a static libstdc++, better avoid it by now
14201      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14202      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14203  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14204      hardcode_libdir_flag_spec_F77=
14205      hardcode_shlibpath_var_F77=no
14206      runpath_var='LD_RUN_PATH'
14207      ;;
14208
14209    uts4*)
14210      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211      hardcode_libdir_flag_spec_F77='-L$libdir'
14212      hardcode_shlibpath_var_F77=no
14213      ;;
14214
14215    *)
14216      ld_shlibs_F77=no
14217      ;;
14218    esac
14219  fi
14220
14221echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14222echo "${ECHO_T}$ld_shlibs_F77" >&6
14223test "$ld_shlibs_F77" = no && can_build_shared=no
14224
14225variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14226if test "$GCC" = yes; then
14227  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14228fi
14229
14230#
14231# Do we need to explicitly link libc?
14232#
14233case "x$archive_cmds_need_lc_F77" in
14234x|xyes)
14235  # Assume -lc should be added
14236  archive_cmds_need_lc_F77=yes
14237
14238  if test "$enable_shared" = yes && test "$GCC" = yes; then
14239    case $archive_cmds_F77 in
14240    *'~'*)
14241      # FIXME: we may have to deal with multi-command sequences.
14242      ;;
14243    '$CC '*)
14244      # Test whether the compiler implicitly links with -lc since on some
14245      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14246      # to ld, don't add -lc before -lgcc.
14247      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14248echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14249      $rm conftest*
14250      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14251
14252      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253  (eval $ac_compile) 2>&5
14254  ac_status=$?
14255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256  (exit $ac_status); } 2>conftest.err; then
14257        soname=conftest
14258        lib=conftest
14259        libobjs=conftest.$ac_objext
14260        deplibs=
14261        wl=$lt_prog_compiler_wl_F77
14262        compiler_flags=-v
14263        linker_flags=-v
14264        verstring=
14265        output_objdir=.
14266        libname=conftest
14267        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14268        allow_undefined_flag_F77=
14269        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14270  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14271  ac_status=$?
14272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273  (exit $ac_status); }
14274        then
14275	  archive_cmds_need_lc_F77=no
14276        else
14277	  archive_cmds_need_lc_F77=yes
14278        fi
14279        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14280      else
14281        cat conftest.err 1>&5
14282      fi
14283      $rm conftest*
14284      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14285echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14286      ;;
14287    esac
14288  fi
14289  ;;
14290esac
14291
14292echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14293echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14294library_names_spec=
14295libname_spec='lib$name'
14296soname_spec=
14297shrext_cmds=".so"
14298postinstall_cmds=
14299postuninstall_cmds=
14300finish_cmds=
14301finish_eval=
14302shlibpath_var=
14303shlibpath_overrides_runpath=unknown
14304version_type=none
14305dynamic_linker="$host_os ld.so"
14306sys_lib_dlsearch_path_spec="/lib /usr/lib"
14307if test "$GCC" = yes; then
14308  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14309  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14310    # if the path contains ";" then we assume it to be the separator
14311    # otherwise default to the standard path separator (i.e. ":") - it is
14312    # assumed that no part of a normal pathname contains ";" but that should
14313    # okay in the real world where ";" in dirpaths is itself problematic.
14314    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14315  else
14316    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14317  fi
14318else
14319  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14320fi
14321need_lib_prefix=unknown
14322hardcode_into_libs=no
14323
14324# when you set need_version to no, make sure it does not cause -set_version
14325# flags to be left without arguments
14326need_version=unknown
14327
14328case $host_os in
14329aix3*)
14330  version_type=linux
14331  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14332  shlibpath_var=LIBPATH
14333
14334  # AIX 3 has no versioning support, so we append a major version to the name.
14335  soname_spec='${libname}${release}${shared_ext}$major'
14336  ;;
14337
14338aix4* | aix5*)
14339  version_type=linux
14340  need_lib_prefix=no
14341  need_version=no
14342  hardcode_into_libs=yes
14343  if test "$host_cpu" = ia64; then
14344    # AIX 5 supports IA64
14345    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14346    shlibpath_var=LD_LIBRARY_PATH
14347  else
14348    # With GCC up to 2.95.x, collect2 would create an import file
14349    # for dependence libraries.  The import file would start with
14350    # the line `#! .'.  This would cause the generated library to
14351    # depend on `.', always an invalid library.  This was fixed in
14352    # development snapshots of GCC prior to 3.0.
14353    case $host_os in
14354      aix4 | aix4.[01] | aix4.[01].*)
14355      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14356	   echo ' yes '
14357	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14358	:
14359      else
14360	can_build_shared=no
14361      fi
14362      ;;
14363    esac
14364    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14365    # soname into executable. Probably we can add versioning support to
14366    # collect2, so additional links can be useful in future.
14367    if test "$aix_use_runtimelinking" = yes; then
14368      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14369      # instead of lib<name>.a to let people know that these are not
14370      # typical AIX shared libraries.
14371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14372    else
14373      # We preserve .a as extension for shared libraries through AIX4.2
14374      # and later when we are not doing run time linking.
14375      library_names_spec='${libname}${release}.a $libname.a'
14376      soname_spec='${libname}${release}${shared_ext}$major'
14377    fi
14378    shlibpath_var=LIBPATH
14379  fi
14380  ;;
14381
14382amigaos*)
14383  library_names_spec='$libname.ixlibrary $libname.a'
14384  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14385  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'
14386  ;;
14387
14388beos*)
14389  library_names_spec='${libname}${shared_ext}'
14390  dynamic_linker="$host_os ld.so"
14391  shlibpath_var=LIBRARY_PATH
14392  ;;
14393
14394bsdi4*)
14395  version_type=linux
14396  need_version=no
14397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398  soname_spec='${libname}${release}${shared_ext}$major'
14399  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14400  shlibpath_var=LD_LIBRARY_PATH
14401  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14402  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14403  # the default ld.so.conf also contains /usr/contrib/lib and
14404  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14405  # libtool to hard-code these into programs
14406  ;;
14407
14408cygwin* | mingw* | pw32*)
14409  version_type=windows
14410  shrext_cmds=".dll"
14411  need_version=no
14412  need_lib_prefix=no
14413
14414  case $GCC,$host_os in
14415  yes,cygwin* | yes,mingw* | yes,pw32*)
14416    library_names_spec='$libname.dll.a'
14417    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14418    postinstall_cmds='base_file=`basename \${file}`~
14419      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14420      dldir=$destdir/`dirname \$dlpath`~
14421      test -d \$dldir || mkdir -p \$dldir~
14422      $install_prog $dir/$dlname \$dldir/$dlname'
14423    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14424      dlpath=$dir/\$dldll~
14425       $rm \$dlpath'
14426    shlibpath_overrides_runpath=yes
14427
14428    case $host_os in
14429    cygwin*)
14430      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14431      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14433      ;;
14434    mingw*)
14435      # MinGW DLLs use traditional 'lib' prefix
14436      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14437      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14439        # It is most probably a Windows format PATH printed by
14440        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14441        # path with ; separators, and with drive letters. We can handle the
14442        # drive letters (cygwin fileutils understands them), so leave them,
14443        # especially as we might pass files found there to a mingw objdump,
14444        # which wouldn't understand a cygwinified path. Ahh.
14445        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14446      else
14447        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14448      fi
14449      ;;
14450    pw32*)
14451      # pw32 DLLs use 'pw' prefix rather than 'lib'
14452      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14453      ;;
14454    esac
14455    ;;
14456
14457  *)
14458    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14459    ;;
14460  esac
14461  dynamic_linker='Win32 ld.exe'
14462  # FIXME: first we should search . and the directory the executable is in
14463  shlibpath_var=PATH
14464  ;;
14465
14466darwin* | rhapsody*)
14467  dynamic_linker="$host_os dyld"
14468  version_type=darwin
14469  need_lib_prefix=no
14470  need_version=no
14471  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14472  soname_spec='${libname}${release}${major}$shared_ext'
14473  shlibpath_overrides_runpath=yes
14474  shlibpath_var=DYLD_LIBRARY_PATH
14475  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14476  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14477  if test "$GCC" = yes; then
14478    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"`
14479  else
14480    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14481  fi
14482  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14483  ;;
14484
14485dgux*)
14486  version_type=linux
14487  need_lib_prefix=no
14488  need_version=no
14489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14490  soname_spec='${libname}${release}${shared_ext}$major'
14491  shlibpath_var=LD_LIBRARY_PATH
14492  ;;
14493
14494freebsd1*)
14495  dynamic_linker=no
14496  ;;
14497
14498kfreebsd*-gnu)
14499  version_type=linux
14500  need_lib_prefix=no
14501  need_version=no
14502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14503  soname_spec='${libname}${release}${shared_ext}$major'
14504  shlibpath_var=LD_LIBRARY_PATH
14505  shlibpath_overrides_runpath=no
14506  hardcode_into_libs=yes
14507  dynamic_linker='GNU ld.so'
14508  ;;
14509
14510freebsd*)
14511  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14512  version_type=freebsd-$objformat
14513  case $version_type in
14514    freebsd-elf*)
14515      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14516      need_version=no
14517      need_lib_prefix=no
14518      ;;
14519    freebsd-*)
14520      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14521      need_version=yes
14522      ;;
14523  esac
14524  shlibpath_var=LD_LIBRARY_PATH
14525  case $host_os in
14526  freebsd2*)
14527    shlibpath_overrides_runpath=yes
14528    ;;
14529  freebsd3.01* | freebsdelf3.01*)
14530    shlibpath_overrides_runpath=yes
14531    hardcode_into_libs=yes
14532    ;;
14533  *) # from 3.2 on
14534    shlibpath_overrides_runpath=no
14535    hardcode_into_libs=yes
14536    ;;
14537  esac
14538  ;;
14539
14540gnu*)
14541  version_type=linux
14542  need_lib_prefix=no
14543  need_version=no
14544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14545  soname_spec='${libname}${release}${shared_ext}$major'
14546  shlibpath_var=LD_LIBRARY_PATH
14547  hardcode_into_libs=yes
14548  ;;
14549
14550hpux9* | hpux10* | hpux11*)
14551  # Give a soname corresponding to the major version so that dld.sl refuses to
14552  # link against other versions.
14553  version_type=sunos
14554  need_lib_prefix=no
14555  need_version=no
14556  case "$host_cpu" in
14557  ia64*)
14558    shrext_cmds='.so'
14559    hardcode_into_libs=yes
14560    dynamic_linker="$host_os dld.so"
14561    shlibpath_var=LD_LIBRARY_PATH
14562    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564    soname_spec='${libname}${release}${shared_ext}$major'
14565    if test "X$HPUX_IA64_MODE" = X32; then
14566      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14567    else
14568      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14569    fi
14570    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14571    ;;
14572   hppa*64*)
14573     shrext_cmds='.sl'
14574     hardcode_into_libs=yes
14575     dynamic_linker="$host_os dld.sl"
14576     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14577     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579     soname_spec='${libname}${release}${shared_ext}$major'
14580     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582     ;;
14583   *)
14584    shrext_cmds='.sl'
14585    dynamic_linker="$host_os dld.sl"
14586    shlibpath_var=SHLIB_PATH
14587    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589    soname_spec='${libname}${release}${shared_ext}$major'
14590    ;;
14591  esac
14592  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14593  postinstall_cmds='chmod 555 $lib'
14594  ;;
14595
14596irix5* | irix6* | nonstopux*)
14597  case $host_os in
14598    nonstopux*) version_type=nonstopux ;;
14599    *)
14600	if test "$lt_cv_prog_gnu_ld" = yes; then
14601		version_type=linux
14602	else
14603		version_type=irix
14604	fi ;;
14605  esac
14606  need_lib_prefix=no
14607  need_version=no
14608  soname_spec='${libname}${release}${shared_ext}$major'
14609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14610  case $host_os in
14611  irix5* | nonstopux*)
14612    libsuff= shlibsuff=
14613    ;;
14614  *)
14615    case $LD in # libtool.m4 will add one of these switches to LD
14616    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14617      libsuff= shlibsuff= libmagic=32-bit;;
14618    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14619      libsuff=32 shlibsuff=N32 libmagic=N32;;
14620    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14621      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14622    *) libsuff= shlibsuff= libmagic=never-match;;
14623    esac
14624    ;;
14625  esac
14626  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14627  shlibpath_overrides_runpath=no
14628  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14629  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14630  hardcode_into_libs=yes
14631  ;;
14632
14633# No shared lib support for Linux oldld, aout, or coff.
14634linux*oldld* | linux*aout* | linux*coff*)
14635  dynamic_linker=no
14636  ;;
14637
14638# This must be Linux ELF.
14639linux*)
14640  version_type=linux
14641  need_lib_prefix=no
14642  need_version=no
14643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644  soname_spec='${libname}${release}${shared_ext}$major'
14645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14646  shlibpath_var=LD_LIBRARY_PATH
14647  shlibpath_overrides_runpath=no
14648  # This implies no fast_install, which is unacceptable.
14649  # Some rework will be needed to allow for fast_install
14650  # before this can be enabled.
14651  hardcode_into_libs=yes
14652
14653  # Append ld.so.conf contents to the search path
14654  if test -f /etc/ld.so.conf; then
14655    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14656    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14657  fi
14658
14659  # We used to test for /lib/ld.so.1 and disable shared libraries on
14660  # powerpc, because MkLinux only supported shared libraries with the
14661  # GNU dynamic linker.  Since this was broken with cross compilers,
14662  # most powerpc-linux boxes support dynamic linking these days and
14663  # people can always --disable-shared, the test was removed, and we
14664  # assume the GNU/Linux dynamic linker is in use.
14665  dynamic_linker='GNU/Linux ld.so'
14666  ;;
14667
14668knetbsd*-gnu)
14669  version_type=linux
14670  need_lib_prefix=no
14671  need_version=no
14672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14673  soname_spec='${libname}${release}${shared_ext}$major'
14674  shlibpath_var=LD_LIBRARY_PATH
14675  shlibpath_overrides_runpath=no
14676  hardcode_into_libs=yes
14677  dynamic_linker='GNU ld.so'
14678  ;;
14679
14680netbsd*)
14681  version_type=sunos
14682  need_lib_prefix=no
14683  need_version=no
14684  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14685    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14686    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14687    dynamic_linker='NetBSD (a.out) ld.so'
14688  else
14689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14690    soname_spec='${libname}${release}${shared_ext}$major'
14691    dynamic_linker='NetBSD ld.elf_so'
14692  fi
14693  shlibpath_var=LD_LIBRARY_PATH
14694  shlibpath_overrides_runpath=yes
14695  hardcode_into_libs=yes
14696  ;;
14697
14698newsos6)
14699  version_type=linux
14700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701  shlibpath_var=LD_LIBRARY_PATH
14702  shlibpath_overrides_runpath=yes
14703  ;;
14704
14705nto-qnx*)
14706  version_type=linux
14707  need_lib_prefix=no
14708  need_version=no
14709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710  soname_spec='${libname}${release}${shared_ext}$major'
14711  shlibpath_var=LD_LIBRARY_PATH
14712  shlibpath_overrides_runpath=yes
14713  ;;
14714
14715openbsd*)
14716  version_type=sunos
14717  need_lib_prefix=no
14718  need_version=yes
14719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14721  shlibpath_var=LD_LIBRARY_PATH
14722  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14723    case $host_os in
14724      openbsd2.[89] | openbsd2.[89].*)
14725	shlibpath_overrides_runpath=no
14726	;;
14727      *)
14728	shlibpath_overrides_runpath=yes
14729	;;
14730      esac
14731  else
14732    shlibpath_overrides_runpath=yes
14733  fi
14734  ;;
14735
14736os2*)
14737  libname_spec='$name'
14738  shrext_cmds=".dll"
14739  need_lib_prefix=no
14740  library_names_spec='$libname${shared_ext} $libname.a'
14741  dynamic_linker='OS/2 ld.exe'
14742  shlibpath_var=LIBPATH
14743  ;;
14744
14745osf3* | osf4* | osf5*)
14746  version_type=osf
14747  need_lib_prefix=no
14748  need_version=no
14749  soname_spec='${libname}${release}${shared_ext}$major'
14750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751  shlibpath_var=LD_LIBRARY_PATH
14752  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14753  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14754  ;;
14755
14756sco3.2v5*)
14757  version_type=osf
14758  soname_spec='${libname}${release}${shared_ext}$major'
14759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760  shlibpath_var=LD_LIBRARY_PATH
14761  ;;
14762
14763solaris*)
14764  version_type=linux
14765  need_lib_prefix=no
14766  need_version=no
14767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768  soname_spec='${libname}${release}${shared_ext}$major'
14769  shlibpath_var=LD_LIBRARY_PATH
14770  shlibpath_overrides_runpath=yes
14771  hardcode_into_libs=yes
14772  # ldd complains unless libraries are executable
14773  postinstall_cmds='chmod +x $lib'
14774  ;;
14775
14776sunos4*)
14777  version_type=sunos
14778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14779  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14780  shlibpath_var=LD_LIBRARY_PATH
14781  shlibpath_overrides_runpath=yes
14782  if test "$with_gnu_ld" = yes; then
14783    need_lib_prefix=no
14784  fi
14785  need_version=yes
14786  ;;
14787
14788sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14789  version_type=linux
14790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791  soname_spec='${libname}${release}${shared_ext}$major'
14792  shlibpath_var=LD_LIBRARY_PATH
14793  case $host_vendor in
14794    sni)
14795      shlibpath_overrides_runpath=no
14796      need_lib_prefix=no
14797      export_dynamic_flag_spec='${wl}-Blargedynsym'
14798      runpath_var=LD_RUN_PATH
14799      ;;
14800    siemens)
14801      need_lib_prefix=no
14802      ;;
14803    motorola)
14804      need_lib_prefix=no
14805      need_version=no
14806      shlibpath_overrides_runpath=no
14807      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14808      ;;
14809  esac
14810  ;;
14811
14812sysv4*MP*)
14813  if test -d /usr/nec ;then
14814    version_type=linux
14815    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14816    soname_spec='$libname${shared_ext}.$major'
14817    shlibpath_var=LD_LIBRARY_PATH
14818  fi
14819  ;;
14820
14821uts4*)
14822  version_type=linux
14823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824  soname_spec='${libname}${release}${shared_ext}$major'
14825  shlibpath_var=LD_LIBRARY_PATH
14826  ;;
14827
14828*)
14829  dynamic_linker=no
14830  ;;
14831esac
14832echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14833echo "${ECHO_T}$dynamic_linker" >&6
14834test "$dynamic_linker" = no && can_build_shared=no
14835
14836echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14837echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14838hardcode_action_F77=
14839if test -n "$hardcode_libdir_flag_spec_F77" || \
14840   test -n "$runpath_var F77" || \
14841   test "X$hardcode_automatic_F77"="Xyes" ; then
14842
14843  # We can hardcode non-existant directories.
14844  if test "$hardcode_direct_F77" != no &&
14845     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14846     # have to relink, otherwise we might link with an installed library
14847     # when we should be linking with a yet-to-be-installed one
14848     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14849     test "$hardcode_minus_L_F77" != no; then
14850    # Linking always hardcodes the temporary library directory.
14851    hardcode_action_F77=relink
14852  else
14853    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14854    hardcode_action_F77=immediate
14855  fi
14856else
14857  # We cannot hardcode anything, or else we can only hardcode existing
14858  # directories.
14859  hardcode_action_F77=unsupported
14860fi
14861echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14862echo "${ECHO_T}$hardcode_action_F77" >&6
14863
14864if test "$hardcode_action_F77" = relink; then
14865  # Fast installation is not supported
14866  enable_fast_install=no
14867elif test "$shlibpath_overrides_runpath" = yes ||
14868     test "$enable_shared" = no; then
14869  # Fast installation is not necessary
14870  enable_fast_install=needless
14871fi
14872
14873striplib=
14874old_striplib=
14875echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14876echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14877if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14878  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14879  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14880  echo "$as_me:$LINENO: result: yes" >&5
14881echo "${ECHO_T}yes" >&6
14882else
14883# FIXME - insert some real tests, host_os isn't really good enough
14884  case $host_os in
14885   darwin*)
14886       if test -n "$STRIP" ; then
14887         striplib="$STRIP -x"
14888         echo "$as_me:$LINENO: result: yes" >&5
14889echo "${ECHO_T}yes" >&6
14890       else
14891  echo "$as_me:$LINENO: result: no" >&5
14892echo "${ECHO_T}no" >&6
14893fi
14894       ;;
14895   *)
14896  echo "$as_me:$LINENO: result: no" >&5
14897echo "${ECHO_T}no" >&6
14898    ;;
14899  esac
14900fi
14901
14902
14903
14904# The else clause should only fire when bootstrapping the
14905# libtool distribution, otherwise you forgot to ship ltmain.sh
14906# with your package, and you will get complaints that there are
14907# no rules to generate ltmain.sh.
14908if test -f "$ltmain"; then
14909  # See if we are running on zsh, and set the options which allow our commands through
14910  # without removal of \ escapes.
14911  if test -n "${ZSH_VERSION+set}" ; then
14912    setopt NO_GLOB_SUBST
14913  fi
14914  # Now quote all the things that may contain metacharacters while being
14915  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14916  # variables and quote the copies for generation of the libtool script.
14917  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14918    SED SHELL STRIP \
14919    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14920    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14921    deplibs_check_method reload_flag reload_cmds need_locks \
14922    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14923    lt_cv_sys_global_symbol_to_c_name_address \
14924    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14925    old_postinstall_cmds old_postuninstall_cmds \
14926    compiler_F77 \
14927    CC_F77 \
14928    LD_F77 \
14929    lt_prog_compiler_wl_F77 \
14930    lt_prog_compiler_pic_F77 \
14931    lt_prog_compiler_static_F77 \
14932    lt_prog_compiler_no_builtin_flag_F77 \
14933    export_dynamic_flag_spec_F77 \
14934    thread_safe_flag_spec_F77 \
14935    whole_archive_flag_spec_F77 \
14936    enable_shared_with_static_runtimes_F77 \
14937    old_archive_cmds_F77 \
14938    old_archive_from_new_cmds_F77 \
14939    predep_objects_F77 \
14940    postdep_objects_F77 \
14941    predeps_F77 \
14942    postdeps_F77 \
14943    compiler_lib_search_path_F77 \
14944    archive_cmds_F77 \
14945    archive_expsym_cmds_F77 \
14946    postinstall_cmds_F77 \
14947    postuninstall_cmds_F77 \
14948    old_archive_from_expsyms_cmds_F77 \
14949    allow_undefined_flag_F77 \
14950    no_undefined_flag_F77 \
14951    export_symbols_cmds_F77 \
14952    hardcode_libdir_flag_spec_F77 \
14953    hardcode_libdir_flag_spec_ld_F77 \
14954    hardcode_libdir_separator_F77 \
14955    hardcode_automatic_F77 \
14956    module_cmds_F77 \
14957    module_expsym_cmds_F77 \
14958    lt_cv_prog_compiler_c_o_F77 \
14959    exclude_expsyms_F77 \
14960    include_expsyms_F77; do
14961
14962    case $var in
14963    old_archive_cmds_F77 | \
14964    old_archive_from_new_cmds_F77 | \
14965    archive_cmds_F77 | \
14966    archive_expsym_cmds_F77 | \
14967    module_cmds_F77 | \
14968    module_expsym_cmds_F77 | \
14969    old_archive_from_expsyms_cmds_F77 | \
14970    export_symbols_cmds_F77 | \
14971    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14972    postinstall_cmds | postuninstall_cmds | \
14973    old_postinstall_cmds | old_postuninstall_cmds | \
14974    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14975      # Double-quote double-evaled strings.
14976      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14977      ;;
14978    *)
14979      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14980      ;;
14981    esac
14982  done
14983
14984  case $lt_echo in
14985  *'\$0 --fallback-echo"')
14986    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14987    ;;
14988  esac
14989
14990cfgfile="$ofile"
14991
14992  cat <<__EOF__ >> "$cfgfile"
14993# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14994
14995# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14996
14997# Shell to use when invoking shell scripts.
14998SHELL=$lt_SHELL
14999
15000# Whether or not to build shared libraries.
15001build_libtool_libs=$enable_shared
15002
15003# Whether or not to build static libraries.
15004build_old_libs=$enable_static
15005
15006# Whether or not to add -lc for building shared libraries.
15007build_libtool_need_lc=$archive_cmds_need_lc_F77
15008
15009# Whether or not to disallow shared libs when runtime libs are static
15010allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15011
15012# Whether or not to optimize for fast installation.
15013fast_install=$enable_fast_install
15014
15015# The host system.
15016host_alias=$host_alias
15017host=$host
15018
15019# An echo program that does not interpret backslashes.
15020echo=$lt_echo
15021
15022# The archiver.
15023AR=$lt_AR
15024AR_FLAGS=$lt_AR_FLAGS
15025
15026# A C compiler.
15027LTCC=$lt_LTCC
15028
15029# A language-specific compiler.
15030CC=$lt_compiler_F77
15031
15032# Is the compiler the GNU C compiler?
15033with_gcc=$GCC_F77
15034
15035# An ERE matcher.
15036EGREP=$lt_EGREP
15037
15038# The linker used to build libraries.
15039LD=$lt_LD_F77
15040
15041# Whether we need hard or soft links.
15042LN_S=$lt_LN_S
15043
15044# A BSD-compatible nm program.
15045NM=$lt_NM
15046
15047# A symbol stripping program
15048STRIP=$lt_STRIP
15049
15050# Used to examine libraries when file_magic_cmd begins "file"
15051MAGIC_CMD=$MAGIC_CMD
15052
15053# Used on cygwin: DLL creation program.
15054DLLTOOL="$DLLTOOL"
15055
15056# Used on cygwin: object dumper.
15057OBJDUMP="$OBJDUMP"
15058
15059# Used on cygwin: assembler.
15060AS="$AS"
15061
15062# The name of the directory that contains temporary libtool files.
15063objdir=$objdir
15064
15065# How to create reloadable object files.
15066reload_flag=$lt_reload_flag
15067reload_cmds=$lt_reload_cmds
15068
15069# How to pass a linker flag through the compiler.
15070wl=$lt_lt_prog_compiler_wl_F77
15071
15072# Object file suffix (normally "o").
15073objext="$ac_objext"
15074
15075# Old archive suffix (normally "a").
15076libext="$libext"
15077
15078# Shared library suffix (normally ".so").
15079shrext_cmds='$shrext_cmds'
15080
15081# Executable file suffix (normally "").
15082exeext="$exeext"
15083
15084# Additional compiler flags for building library objects.
15085pic_flag=$lt_lt_prog_compiler_pic_F77
15086pic_mode=$pic_mode
15087
15088# What is the maximum length of a command?
15089max_cmd_len=$lt_cv_sys_max_cmd_len
15090
15091# Does compiler simultaneously support -c and -o options?
15092compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15093
15094# Must we lock files when doing compilation ?
15095need_locks=$lt_need_locks
15096
15097# Do we need the lib prefix for modules?
15098need_lib_prefix=$need_lib_prefix
15099
15100# Do we need a version for libraries?
15101need_version=$need_version
15102
15103# Whether dlopen is supported.
15104dlopen_support=$enable_dlopen
15105
15106# Whether dlopen of programs is supported.
15107dlopen_self=$enable_dlopen_self
15108
15109# Whether dlopen of statically linked programs is supported.
15110dlopen_self_static=$enable_dlopen_self_static
15111
15112# Compiler flag to prevent dynamic linking.
15113link_static_flag=$lt_lt_prog_compiler_static_F77
15114
15115# Compiler flag to turn off builtin functions.
15116no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15117
15118# Compiler flag to allow reflexive dlopens.
15119export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15120
15121# Compiler flag to generate shared objects directly from archives.
15122whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15123
15124# Compiler flag to generate thread-safe objects.
15125thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15126
15127# Library versioning type.
15128version_type=$version_type
15129
15130# Format of library name prefix.
15131libname_spec=$lt_libname_spec
15132
15133# List of archive names.  First name is the real one, the rest are links.
15134# The last name is the one that the linker finds with -lNAME.
15135library_names_spec=$lt_library_names_spec
15136
15137# The coded name of the library, if different from the real name.
15138soname_spec=$lt_soname_spec
15139
15140# Commands used to build and install an old-style archive.
15141RANLIB=$lt_RANLIB
15142old_archive_cmds=$lt_old_archive_cmds_F77
15143old_postinstall_cmds=$lt_old_postinstall_cmds
15144old_postuninstall_cmds=$lt_old_postuninstall_cmds
15145
15146# Create an old-style archive from a shared archive.
15147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15148
15149# Create a temporary old-style archive to link instead of a shared archive.
15150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15151
15152# Commands used to build and install a shared archive.
15153archive_cmds=$lt_archive_cmds_F77
15154archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15155postinstall_cmds=$lt_postinstall_cmds
15156postuninstall_cmds=$lt_postuninstall_cmds
15157
15158# Commands used to build a loadable module (assumed same as above if empty)
15159module_cmds=$lt_module_cmds_F77
15160module_expsym_cmds=$lt_module_expsym_cmds_F77
15161
15162# Commands to strip libraries.
15163old_striplib=$lt_old_striplib
15164striplib=$lt_striplib
15165
15166# Dependencies to place before the objects being linked to create a
15167# shared library.
15168predep_objects=$lt_predep_objects_F77
15169
15170# Dependencies to place after the objects being linked to create a
15171# shared library.
15172postdep_objects=$lt_postdep_objects_F77
15173
15174# Dependencies to place before the objects being linked to create a
15175# shared library.
15176predeps=$lt_predeps_F77
15177
15178# Dependencies to place after the objects being linked to create a
15179# shared library.
15180postdeps=$lt_postdeps_F77
15181
15182# The library search path used internally by the compiler when linking
15183# a shared library.
15184compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15185
15186# Method to check whether dependent libraries are shared objects.
15187deplibs_check_method=$lt_deplibs_check_method
15188
15189# Command to use when deplibs_check_method == file_magic.
15190file_magic_cmd=$lt_file_magic_cmd
15191
15192# Flag that allows shared libraries with undefined symbols to be built.
15193allow_undefined_flag=$lt_allow_undefined_flag_F77
15194
15195# Flag that forces no undefined symbols.
15196no_undefined_flag=$lt_no_undefined_flag_F77
15197
15198# Commands used to finish a libtool library installation in a directory.
15199finish_cmds=$lt_finish_cmds
15200
15201# Same as above, but a single script fragment to be evaled but not shown.
15202finish_eval=$lt_finish_eval
15203
15204# Take the output of nm and produce a listing of raw symbols and C names.
15205global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15206
15207# Transform the output of nm in a proper C declaration
15208global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15209
15210# Transform the output of nm in a C name address pair
15211global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15212
15213# This is the shared library runtime path variable.
15214runpath_var=$runpath_var
15215
15216# This is the shared library path variable.
15217shlibpath_var=$shlibpath_var
15218
15219# Is shlibpath searched before the hard-coded library search path?
15220shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15221
15222# How to hardcode a shared library path into an executable.
15223hardcode_action=$hardcode_action_F77
15224
15225# Whether we should hardcode library paths into libraries.
15226hardcode_into_libs=$hardcode_into_libs
15227
15228# Flag to hardcode \$libdir into a binary during linking.
15229# This must work even if \$libdir does not exist.
15230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15231
15232# If ld is used when linking, flag to hardcode \$libdir into
15233# a binary during linking. This must work even if \$libdir does
15234# not exist.
15235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15236
15237# Whether we need a single -rpath flag with a separated argument.
15238hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15239
15240# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15241# resulting binary.
15242hardcode_direct=$hardcode_direct_F77
15243
15244# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15245# resulting binary.
15246hardcode_minus_L=$hardcode_minus_L_F77
15247
15248# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15249# the resulting binary.
15250hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15251
15252# Set to yes if building a shared library automatically hardcodes DIR into the library
15253# and all subsequent libraries and executables linked against it.
15254hardcode_automatic=$hardcode_automatic_F77
15255
15256# Variables whose values should be saved in libtool wrapper scripts and
15257# restored at relink time.
15258variables_saved_for_relink="$variables_saved_for_relink"
15259
15260# Whether libtool must link a program against all its dependency libraries.
15261link_all_deplibs=$link_all_deplibs_F77
15262
15263# Compile-time system search path for libraries
15264sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15265
15266# Run-time system search path for libraries
15267sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15268
15269# Fix the shell variable \$srcfile for the compiler.
15270fix_srcfile_path="$fix_srcfile_path_F77"
15271
15272# Set to yes if exported symbols are required.
15273always_export_symbols=$always_export_symbols_F77
15274
15275# The commands to list exported symbols.
15276export_symbols_cmds=$lt_export_symbols_cmds_F77
15277
15278# The commands to extract the exported symbol list from a shared archive.
15279extract_expsyms_cmds=$lt_extract_expsyms_cmds
15280
15281# Symbols that should not be listed in the preloaded symbols.
15282exclude_expsyms=$lt_exclude_expsyms_F77
15283
15284# Symbols that must always be exported.
15285include_expsyms=$lt_include_expsyms_F77
15286
15287# ### END LIBTOOL TAG CONFIG: $tagname
15288
15289__EOF__
15290
15291
15292else
15293  # If there is no Makefile yet, we rely on a make rule to execute
15294  # `config.status --recheck' to rerun these tests and create the
15295  # libtool script then.
15296  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15297  if test -f "$ltmain_in"; then
15298    test -f Makefile && make "$ltmain"
15299  fi
15300fi
15301
15302
15303ac_ext=c
15304ac_cpp='$CPP $CPPFLAGS'
15305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307ac_compiler_gnu=$ac_cv_c_compiler_gnu
15308
15309CC="$lt_save_CC"
15310
15311	else
15312	  tagname=""
15313	fi
15314	;;
15315
15316      GCJ)
15317	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15318
15319
15320
15321# Source file extension for Java test sources.
15322ac_ext=java
15323
15324# Object file extension for compiled Java test sources.
15325objext=o
15326objext_GCJ=$objext
15327
15328# Code to be used in simple compile tests
15329lt_simple_compile_test_code="class foo {}\n"
15330
15331# Code to be used in simple link tests
15332lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15333
15334# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15335
15336# If no C compiler was specified, use CC.
15337LTCC=${LTCC-"$CC"}
15338
15339# Allow CC to be a program name with arguments.
15340compiler=$CC
15341
15342
15343# Allow CC to be a program name with arguments.
15344lt_save_CC="$CC"
15345CC=${GCJ-"gcj"}
15346compiler=$CC
15347compiler_GCJ=$CC
15348
15349# GCJ did not exist at the time GCC didn't implicitly link libc in.
15350archive_cmds_need_lc_GCJ=no
15351
15352
15353lt_prog_compiler_no_builtin_flag_GCJ=
15354
15355if test "$GCC" = yes; then
15356  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15357
15358
15359echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15360echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15361if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15362  echo $ECHO_N "(cached) $ECHO_C" >&6
15363else
15364  lt_cv_prog_compiler_rtti_exceptions=no
15365  ac_outfile=conftest.$ac_objext
15366   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15367   lt_compiler_flag="-fno-rtti -fno-exceptions"
15368   # Insert the option either (1) after the last *FLAGS variable, or
15369   # (2) before a word containing "conftest.", or (3) at the end.
15370   # Note that $ac_compile itself does not contain backslashes and begins
15371   # with a dollar sign (not a hyphen), so the echo should work correctly.
15372   # The option is referenced via a variable to avoid confusing sed.
15373   lt_compile=`echo "$ac_compile" | $SED \
15374   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15375   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15376   -e 's:$: $lt_compiler_flag:'`
15377   (eval echo "\"\$as_me:15377: $lt_compile\"" >&5)
15378   (eval "$lt_compile" 2>conftest.err)
15379   ac_status=$?
15380   cat conftest.err >&5
15381   echo "$as_me:15381: \$? = $ac_status" >&5
15382   if (exit $ac_status) && test -s "$ac_outfile"; then
15383     # The compiler can only warn and ignore the option if not recognized
15384     # So say no if there are warnings
15385     if test ! -s conftest.err; then
15386       lt_cv_prog_compiler_rtti_exceptions=yes
15387     fi
15388   fi
15389   $rm conftest*
15390
15391fi
15392echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15393echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15394
15395if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15396    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15397else
15398    :
15399fi
15400
15401fi
15402
15403lt_prog_compiler_wl_GCJ=
15404lt_prog_compiler_pic_GCJ=
15405lt_prog_compiler_static_GCJ=
15406
15407echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15408echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15409
15410  if test "$GCC" = yes; then
15411    lt_prog_compiler_wl_GCJ='-Wl,'
15412    lt_prog_compiler_static_GCJ='-static'
15413
15414    case $host_os in
15415      aix*)
15416      # All AIX code is PIC.
15417      if test "$host_cpu" = ia64; then
15418	# AIX 5 now supports IA64 processor
15419	lt_prog_compiler_static_GCJ='-Bstatic'
15420      fi
15421      ;;
15422
15423    amigaos*)
15424      # FIXME: we need at least 68020 code to build shared libraries, but
15425      # adding the `-m68020' flag to GCC prevents building anything better,
15426      # like `-m68040'.
15427      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15428      ;;
15429
15430    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15431      # PIC is the default for these OSes.
15432      ;;
15433
15434    mingw* | pw32* | os2*)
15435      # This hack is so that the source file can tell whether it is being
15436      # built for inclusion in a dll (and should export symbols for example).
15437      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15438      ;;
15439
15440    darwin* | rhapsody*)
15441      # PIC is the default on this platform
15442      # Common symbols not allowed in MH_DYLIB files
15443      lt_prog_compiler_pic_GCJ='-fno-common'
15444      ;;
15445
15446    msdosdjgpp*)
15447      # Just because we use GCC doesn't mean we suddenly get shared libraries
15448      # on systems that don't support them.
15449      lt_prog_compiler_can_build_shared_GCJ=no
15450      enable_shared=no
15451      ;;
15452
15453    sysv4*MP*)
15454      if test -d /usr/nec; then
15455	lt_prog_compiler_pic_GCJ=-Kconform_pic
15456      fi
15457      ;;
15458
15459    hpux*)
15460      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15461      # not for PA HP-UX.
15462      case "$host_cpu" in
15463      hppa*64*|ia64*)
15464	# +Z the default
15465	;;
15466      *)
15467	lt_prog_compiler_pic_GCJ='-fPIC'
15468	;;
15469      esac
15470      ;;
15471
15472    *)
15473      lt_prog_compiler_pic_GCJ='-fPIC'
15474      ;;
15475    esac
15476  else
15477    # PORTME Check for flag to pass linker flags through the system compiler.
15478    case $host_os in
15479    aix*)
15480      lt_prog_compiler_wl_GCJ='-Wl,'
15481      if test "$host_cpu" = ia64; then
15482	# AIX 5 now supports IA64 processor
15483	lt_prog_compiler_static_GCJ='-Bstatic'
15484      else
15485	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15486      fi
15487      ;;
15488
15489    mingw* | pw32* | os2*)
15490      # This hack is so that the source file can tell whether it is being
15491      # built for inclusion in a dll (and should export symbols for example).
15492      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15493      ;;
15494
15495    hpux9* | hpux10* | hpux11*)
15496      lt_prog_compiler_wl_GCJ='-Wl,'
15497      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15498      # not for PA HP-UX.
15499      case "$host_cpu" in
15500      hppa*64*|ia64*)
15501	# +Z the default
15502	;;
15503      *)
15504	lt_prog_compiler_pic_GCJ='+Z'
15505	;;
15506      esac
15507      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15508      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15509      ;;
15510
15511    irix5* | irix6* | nonstopux*)
15512      lt_prog_compiler_wl_GCJ='-Wl,'
15513      # PIC (with -KPIC) is the default.
15514      lt_prog_compiler_static_GCJ='-non_shared'
15515      ;;
15516
15517    newsos6)
15518      lt_prog_compiler_pic_GCJ='-KPIC'
15519      lt_prog_compiler_static_GCJ='-Bstatic'
15520      ;;
15521
15522    linux*)
15523      case $CC in
15524      icc* | ecc*)
15525	lt_prog_compiler_wl_GCJ='-Wl,'
15526	lt_prog_compiler_pic_GCJ='-KPIC'
15527	lt_prog_compiler_static_GCJ='-static'
15528        ;;
15529      ccc*)
15530        lt_prog_compiler_wl_GCJ='-Wl,'
15531        # All Alpha code is PIC.
15532        lt_prog_compiler_static_GCJ='-non_shared'
15533        ;;
15534      esac
15535      ;;
15536
15537    osf3* | osf4* | osf5*)
15538      lt_prog_compiler_wl_GCJ='-Wl,'
15539      # All OSF/1 code is PIC.
15540      lt_prog_compiler_static_GCJ='-non_shared'
15541      ;;
15542
15543    sco3.2v5*)
15544      lt_prog_compiler_pic_GCJ='-Kpic'
15545      lt_prog_compiler_static_GCJ='-dn'
15546      ;;
15547
15548    solaris*)
15549      lt_prog_compiler_wl_GCJ='-Wl,'
15550      lt_prog_compiler_pic_GCJ='-KPIC'
15551      lt_prog_compiler_static_GCJ='-Bstatic'
15552      ;;
15553
15554    sunos4*)
15555      lt_prog_compiler_wl_GCJ='-Qoption ld '
15556      lt_prog_compiler_pic_GCJ='-PIC'
15557      lt_prog_compiler_static_GCJ='-Bstatic'
15558      ;;
15559
15560    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15561      lt_prog_compiler_wl_GCJ='-Wl,'
15562      lt_prog_compiler_pic_GCJ='-KPIC'
15563      lt_prog_compiler_static_GCJ='-Bstatic'
15564      ;;
15565
15566    sysv4*MP*)
15567      if test -d /usr/nec ;then
15568	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15569	lt_prog_compiler_static_GCJ='-Bstatic'
15570      fi
15571      ;;
15572
15573    uts4*)
15574      lt_prog_compiler_pic_GCJ='-pic'
15575      lt_prog_compiler_static_GCJ='-Bstatic'
15576      ;;
15577
15578    *)
15579      lt_prog_compiler_can_build_shared_GCJ=no
15580      ;;
15581    esac
15582  fi
15583
15584echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15585echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15586
15587#
15588# Check to make sure the PIC flag actually works.
15589#
15590if test -n "$lt_prog_compiler_pic_GCJ"; then
15591
15592echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15593echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15594if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15595  echo $ECHO_N "(cached) $ECHO_C" >&6
15596else
15597  lt_prog_compiler_pic_works_GCJ=no
15598  ac_outfile=conftest.$ac_objext
15599   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15600   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15601   # Insert the option either (1) after the last *FLAGS variable, or
15602   # (2) before a word containing "conftest.", or (3) at the end.
15603   # Note that $ac_compile itself does not contain backslashes and begins
15604   # with a dollar sign (not a hyphen), so the echo should work correctly.
15605   # The option is referenced via a variable to avoid confusing sed.
15606   lt_compile=`echo "$ac_compile" | $SED \
15607   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15609   -e 's:$: $lt_compiler_flag:'`
15610   (eval echo "\"\$as_me:15610: $lt_compile\"" >&5)
15611   (eval "$lt_compile" 2>conftest.err)
15612   ac_status=$?
15613   cat conftest.err >&5
15614   echo "$as_me:15614: \$? = $ac_status" >&5
15615   if (exit $ac_status) && test -s "$ac_outfile"; then
15616     # The compiler can only warn and ignore the option if not recognized
15617     # So say no if there are warnings
15618     if test ! -s conftest.err; then
15619       lt_prog_compiler_pic_works_GCJ=yes
15620     fi
15621   fi
15622   $rm conftest*
15623
15624fi
15625echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15626echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15627
15628if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15629    case $lt_prog_compiler_pic_GCJ in
15630     "" | " "*) ;;
15631     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15632     esac
15633else
15634    lt_prog_compiler_pic_GCJ=
15635     lt_prog_compiler_can_build_shared_GCJ=no
15636fi
15637
15638fi
15639case "$host_os" in
15640  # For platforms which do not support PIC, -DPIC is meaningless:
15641  *djgpp*)
15642    lt_prog_compiler_pic_GCJ=
15643    ;;
15644  *)
15645    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15646    ;;
15647esac
15648
15649echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15650echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15651if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15652  echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
15654  lt_cv_prog_compiler_c_o_GCJ=no
15655   $rm -r conftest 2>/dev/null
15656   mkdir conftest
15657   cd conftest
15658   mkdir out
15659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15660
15661   lt_compiler_flag="-o out/conftest2.$ac_objext"
15662   # Insert the option either (1) after the last *FLAGS variable, or
15663   # (2) before a word containing "conftest.", or (3) at the end.
15664   # Note that $ac_compile itself does not contain backslashes and begins
15665   # with a dollar sign (not a hyphen), so the echo should work correctly.
15666   lt_compile=`echo "$ac_compile" | $SED \
15667   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15669   -e 's:$: $lt_compiler_flag:'`
15670   (eval echo "\"\$as_me:15670: $lt_compile\"" >&5)
15671   (eval "$lt_compile" 2>out/conftest.err)
15672   ac_status=$?
15673   cat out/conftest.err >&5
15674   echo "$as_me:15674: \$? = $ac_status" >&5
15675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15676   then
15677     # The compiler can only warn and ignore the option if not recognized
15678     # So say no if there are warnings
15679     if test ! -s out/conftest.err; then
15680       lt_cv_prog_compiler_c_o_GCJ=yes
15681     fi
15682   fi
15683   chmod u+w .
15684   $rm conftest*
15685   # SGI C++ compiler will create directory out/ii_files/ for
15686   # template instantiation
15687   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15688   $rm out/* && rmdir out
15689   cd ..
15690   rmdir conftest
15691   $rm conftest*
15692
15693fi
15694echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15695echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15696
15697
15698hard_links="nottested"
15699if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15700  # do not overwrite the value of need_locks provided by the user
15701  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15702echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15703  hard_links=yes
15704  $rm conftest*
15705  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15706  touch conftest.a
15707  ln conftest.a conftest.b 2>&5 || hard_links=no
15708  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15709  echo "$as_me:$LINENO: result: $hard_links" >&5
15710echo "${ECHO_T}$hard_links" >&6
15711  if test "$hard_links" = no; then
15712    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15713echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15714    need_locks=warn
15715  fi
15716else
15717  need_locks=no
15718fi
15719
15720echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15721echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15722
15723  runpath_var=
15724  allow_undefined_flag_GCJ=
15725  enable_shared_with_static_runtimes_GCJ=no
15726  archive_cmds_GCJ=
15727  archive_expsym_cmds_GCJ=
15728  old_archive_From_new_cmds_GCJ=
15729  old_archive_from_expsyms_cmds_GCJ=
15730  export_dynamic_flag_spec_GCJ=
15731  whole_archive_flag_spec_GCJ=
15732  thread_safe_flag_spec_GCJ=
15733  hardcode_libdir_flag_spec_GCJ=
15734  hardcode_libdir_flag_spec_ld_GCJ=
15735  hardcode_libdir_separator_GCJ=
15736  hardcode_direct_GCJ=no
15737  hardcode_minus_L_GCJ=no
15738  hardcode_shlibpath_var_GCJ=unsupported
15739  link_all_deplibs_GCJ=unknown
15740  hardcode_automatic_GCJ=no
15741  module_cmds_GCJ=
15742  module_expsym_cmds_GCJ=
15743  always_export_symbols_GCJ=no
15744  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15745  # include_expsyms should be a list of space-separated symbols to be *always*
15746  # included in the symbol list
15747  include_expsyms_GCJ=
15748  # exclude_expsyms can be an extended regexp of symbols to exclude
15749  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15750  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15751  # as well as any symbol that contains `d'.
15752  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15753  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15754  # platforms (ab)use it in PIC code, but their linkers get confused if
15755  # the symbol is explicitly referenced.  Since portable code cannot
15756  # rely on this symbol name, it's probably fine to never include it in
15757  # preloaded symbol tables.
15758  extract_expsyms_cmds=
15759
15760  case $host_os in
15761  cygwin* | mingw* | pw32*)
15762    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15763    # When not using gcc, we currently assume that we are using
15764    # Microsoft Visual C++.
15765    if test "$GCC" != yes; then
15766      with_gnu_ld=no
15767    fi
15768    ;;
15769  openbsd*)
15770    with_gnu_ld=no
15771    ;;
15772  esac
15773
15774  ld_shlibs_GCJ=yes
15775  if test "$with_gnu_ld" = yes; then
15776    # If archive_cmds runs LD, not CC, wlarc should be empty
15777    wlarc='${wl}'
15778
15779    # See if GNU ld supports shared libraries.
15780    case $host_os in
15781    aix3* | aix4* | aix5*)
15782      # On AIX/PPC, the GNU linker is very broken
15783      if test "$host_cpu" != ia64; then
15784	ld_shlibs_GCJ=no
15785	cat <<EOF 1>&2
15786
15787*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15788*** to be unable to reliably create shared libraries on AIX.
15789*** Therefore, libtool is disabling shared libraries support.  If you
15790*** really care for shared libraries, you may want to modify your PATH
15791*** so that a non-GNU linker is found, and then restart.
15792
15793EOF
15794      fi
15795      ;;
15796
15797    amigaos*)
15798      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)'
15799      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800      hardcode_minus_L_GCJ=yes
15801
15802      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15803      # that the semantics of dynamic libraries on AmigaOS, at least up
15804      # to version 4, is to share data among multiple programs linked
15805      # with the same dynamic library.  Since this doesn't match the
15806      # behavior of shared libraries on other platforms, we can't use
15807      # them.
15808      ld_shlibs_GCJ=no
15809      ;;
15810
15811    beos*)
15812      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15813	allow_undefined_flag_GCJ=unsupported
15814	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15815	# support --undefined.  This deserves some investigation.  FIXME
15816	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15817      else
15818	ld_shlibs_GCJ=no
15819      fi
15820      ;;
15821
15822    cygwin* | mingw* | pw32*)
15823      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15824      # as there is no search path for DLLs.
15825      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15826      allow_undefined_flag_GCJ=unsupported
15827      always_export_symbols_GCJ=no
15828      enable_shared_with_static_runtimes_GCJ=yes
15829      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15830
15831      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15832        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15833	# If the export-symbols file already is a .def file (1st line
15834	# is EXPORTS), use it as is; otherwise, prepend...
15835	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15836	  cp $export_symbols $output_objdir/$soname.def;
15837	else
15838	  echo EXPORTS > $output_objdir/$soname.def;
15839	  cat $export_symbols >> $output_objdir/$soname.def;
15840	fi~
15841	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15842      else
15843	ld_shlibs=no
15844      fi
15845      ;;
15846
15847    netbsd* | knetbsd*-gnu)
15848      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15849	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15850	wlarc=
15851      else
15852	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15854      fi
15855      ;;
15856
15857    solaris* | sysv5*)
15858      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15859	ld_shlibs_GCJ=no
15860	cat <<EOF 1>&2
15861
15862*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15863*** create shared libraries on Solaris systems.  Therefore, libtool
15864*** is disabling shared libraries support.  We urge you to upgrade GNU
15865*** binutils to release 2.9.1 or newer.  Another option is to modify
15866*** your PATH or compiler configuration so that the native linker is
15867*** used, and then restart.
15868
15869EOF
15870      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15871	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15873      else
15874	ld_shlibs_GCJ=no
15875      fi
15876      ;;
15877
15878    sunos4*)
15879      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880      wlarc=
15881      hardcode_direct_GCJ=yes
15882      hardcode_shlibpath_var_GCJ=no
15883      ;;
15884
15885  linux*)
15886    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15887        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15888	archive_cmds_GCJ="$tmp_archive_cmds"
15889      supports_anon_versioning=no
15890      case `$LD -v 2>/dev/null` in
15891        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15892        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15893        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15894        *\ 2.11.*) ;; # other 2.11 versions
15895        *) supports_anon_versioning=yes ;;
15896      esac
15897      if test $supports_anon_versioning = yes; then
15898        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15899cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15900$echo "local: *; };" >> $output_objdir/$libname.ver~
15901        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15902      else
15903        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15904      fi
15905      link_all_deplibs_GCJ=no
15906    else
15907      ld_shlibs_GCJ=no
15908    fi
15909    ;;
15910
15911    *)
15912      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15913	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15914	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15915      else
15916	ld_shlibs_GCJ=no
15917      fi
15918      ;;
15919    esac
15920
15921    if test "$ld_shlibs_GCJ" = yes; then
15922      runpath_var=LD_RUN_PATH
15923      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15924      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15925      # ancient GNU ld didn't support --whole-archive et. al.
15926      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15927 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15928      else
15929  	whole_archive_flag_spec_GCJ=
15930      fi
15931    fi
15932  else
15933    # PORTME fill in a description of your system's linker (not GNU ld)
15934    case $host_os in
15935    aix3*)
15936      allow_undefined_flag_GCJ=unsupported
15937      always_export_symbols_GCJ=yes
15938      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'
15939      # Note: this linker hardcodes the directories in LIBPATH if there
15940      # are no directories specified by -L.
15941      hardcode_minus_L_GCJ=yes
15942      if test "$GCC" = yes && test -z "$link_static_flag"; then
15943	# Neither direct hardcoding nor static linking is supported with a
15944	# broken collect2.
15945	hardcode_direct_GCJ=unsupported
15946      fi
15947      ;;
15948
15949    aix4* | aix5*)
15950      if test "$host_cpu" = ia64; then
15951	# On IA64, the linker does run time linking by default, so we don't
15952	# have to do anything special.
15953	aix_use_runtimelinking=no
15954	exp_sym_flag='-Bexport'
15955	no_entry_flag=""
15956      else
15957	# If we're using GNU nm, then we don't want the "-C" option.
15958	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15959	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15960	  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'
15961	else
15962	  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'
15963	fi
15964	aix_use_runtimelinking=no
15965
15966	# Test if we are trying to use run time linking or normal
15967	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15968	# need to do runtime linking.
15969	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15970	  for ld_flag in $LDFLAGS; do
15971  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15972  	    aix_use_runtimelinking=yes
15973  	    break
15974  	  fi
15975	  done
15976	esac
15977
15978	exp_sym_flag='-bexport'
15979	no_entry_flag='-bnoentry'
15980      fi
15981
15982      # When large executables or shared objects are built, AIX ld can
15983      # have problems creating the table of contents.  If linking a library
15984      # or program results in "error TOC overflow" add -mminimal-toc to
15985      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15986      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15987
15988      archive_cmds_GCJ=''
15989      hardcode_direct_GCJ=yes
15990      hardcode_libdir_separator_GCJ=':'
15991      link_all_deplibs_GCJ=yes
15992
15993      if test "$GCC" = yes; then
15994	case $host_os in aix4.012|aix4.012.*)
15995	# We only want to do this on AIX 4.2 and lower, the check
15996	# below for broken collect2 doesn't work under 4.3+
15997	  collect2name=`${CC} -print-prog-name=collect2`
15998	  if test -f "$collect2name" && \
15999  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16000	  then
16001  	  # We have reworked collect2
16002  	  hardcode_direct_GCJ=yes
16003	  else
16004  	  # We have old collect2
16005  	  hardcode_direct_GCJ=unsupported
16006  	  # It fails to find uninstalled libraries when the uninstalled
16007  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16008  	  # to unsupported forces relinking
16009  	  hardcode_minus_L_GCJ=yes
16010  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16011  	  hardcode_libdir_separator_GCJ=
16012	  fi
16013	esac
16014	shared_flag='-shared'
16015      else
16016	# not using gcc
16017	if test "$host_cpu" = ia64; then
16018  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16019  	# chokes on -Wl,-G. The following line is correct:
16020	  shared_flag='-G'
16021	else
16022  	if test "$aix_use_runtimelinking" = yes; then
16023	    shared_flag='${wl}-G'
16024	  else
16025	    shared_flag='${wl}-bM:SRE'
16026  	fi
16027	fi
16028      fi
16029
16030      # It seems that -bexpall does not export symbols beginning with
16031      # underscore (_), so it is better to generate a list of symbols to export.
16032      always_export_symbols_GCJ=yes
16033      if test "$aix_use_runtimelinking" = yes; then
16034	# Warning - without using the other runtime loading flags (-brtl),
16035	# -berok will link without error, but may produce a broken library.
16036	allow_undefined_flag_GCJ='-berok'
16037       # Determine the default libpath from the value encoded in an empty executable.
16038       cat >conftest.$ac_ext <<_ACEOF
16039/* confdefs.h.  */
16040_ACEOF
16041cat confdefs.h >>conftest.$ac_ext
16042cat >>conftest.$ac_ext <<_ACEOF
16043/* end confdefs.h.  */
16044
16045int
16046main ()
16047{
16048
16049  ;
16050  return 0;
16051}
16052_ACEOF
16053rm -f conftest.$ac_objext conftest$ac_exeext
16054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055  (eval $ac_link) 2>conftest.er1
16056  ac_status=$?
16057  grep -v '^ *+' conftest.er1 >conftest.err
16058  rm -f conftest.er1
16059  cat conftest.err >&5
16060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061  (exit $ac_status); } &&
16062	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064  (eval $ac_try) 2>&5
16065  ac_status=$?
16066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067  (exit $ac_status); }; } &&
16068	 { ac_try='test -s conftest$ac_exeext'
16069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070  (eval $ac_try) 2>&5
16071  ac_status=$?
16072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073  (exit $ac_status); }; }; then
16074
16075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16076}'`
16077# Check for a 64-bit object if we didn't find anything.
16078if 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; }
16079}'`; fi
16080else
16081  echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084fi
16085rm -f conftest.err conftest.$ac_objext \
16086      conftest$ac_exeext conftest.$ac_ext
16087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16088
16089       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16090	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"
16091       else
16092	if test "$host_cpu" = ia64; then
16093	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16094	  allow_undefined_flag_GCJ="-z nodefs"
16095	  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"
16096	else
16097	 # Determine the default libpath from the value encoded in an empty executable.
16098	 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h.  */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h.  */
16104
16105int
16106main ()
16107{
16108
16109  ;
16110  return 0;
16111}
16112_ACEOF
16113rm -f conftest.$ac_objext conftest$ac_exeext
16114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16115  (eval $ac_link) 2>conftest.er1
16116  ac_status=$?
16117  grep -v '^ *+' conftest.er1 >conftest.err
16118  rm -f conftest.er1
16119  cat conftest.err >&5
16120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121  (exit $ac_status); } &&
16122	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124  (eval $ac_try) 2>&5
16125  ac_status=$?
16126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127  (exit $ac_status); }; } &&
16128	 { ac_try='test -s conftest$ac_exeext'
16129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130  (eval $ac_try) 2>&5
16131  ac_status=$?
16132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133  (exit $ac_status); }; }; then
16134
16135aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16136}'`
16137# Check for a 64-bit object if we didn't find anything.
16138if 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; }
16139}'`; fi
16140else
16141  echo "$as_me: failed program was:" >&5
16142sed 's/^/| /' conftest.$ac_ext >&5
16143
16144fi
16145rm -f conftest.err conftest.$ac_objext \
16146      conftest$ac_exeext conftest.$ac_ext
16147if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16148
16149	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16150	  # Warning - without using the other run time loading flags,
16151	  # -berok will link without error, but may produce a broken library.
16152	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16153	  allow_undefined_flag_GCJ=' ${wl}-berok'
16154	  # -bexpall does not export symbols beginning with underscore (_)
16155	  always_export_symbols_GCJ=yes
16156	  # Exported symbols can be pulled into shared objects from archives
16157	  whole_archive_flag_spec_GCJ=' '
16158	  archive_cmds_need_lc_GCJ=yes
16159	  # This is similar to how AIX traditionally builds it's shared libraries.
16160	  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'
16161	fi
16162      fi
16163      ;;
16164
16165    amigaos*)
16166      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)'
16167      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168      hardcode_minus_L_GCJ=yes
16169      # see comment about different semantics on the GNU ld section
16170      ld_shlibs_GCJ=no
16171      ;;
16172
16173    bsdi4*)
16174      export_dynamic_flag_spec_GCJ=-rdynamic
16175      ;;
16176
16177    cygwin* | mingw* | pw32*)
16178      # When not using gcc, we currently assume that we are using
16179      # Microsoft Visual C++.
16180      # hardcode_libdir_flag_spec is actually meaningless, as there is
16181      # no search path for DLLs.
16182      hardcode_libdir_flag_spec_GCJ=' '
16183      allow_undefined_flag_GCJ=unsupported
16184      # Tell ltmain to make .lib files, not .a files.
16185      libext=lib
16186      # Tell ltmain to make .dll files, not .so files.
16187      shrext_cmds=".dll"
16188      # FIXME: Setting linknames here is a bad hack.
16189      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16190      # The linker will automatically build a .lib file if we build a DLL.
16191      old_archive_From_new_cmds_GCJ='true'
16192      # FIXME: Should let the user specify the lib program.
16193      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16194      fix_srcfile_path='`cygpath -w "$srcfile"`'
16195      enable_shared_with_static_runtimes_GCJ=yes
16196      ;;
16197
16198    darwin* | rhapsody*)
16199    if test "$GXX" = yes ; then
16200      archive_cmds_need_lc_GCJ=no
16201      case "$host_os" in
16202      rhapsody* | darwin1.[012])
16203	allow_undefined_flag_GCJ='-undefined suppress'
16204	;;
16205      *) # Darwin 1.3 on
16206      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16207      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16208      else
16209        case ${MACOSX_DEPLOYMENT_TARGET} in
16210          10.[012])
16211            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16212            ;;
16213          10.*)
16214            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16215            ;;
16216        esac
16217      fi
16218	;;
16219      esac
16220    	lt_int_apple_cc_single_mod=no
16221    	output_verbose_link_cmd='echo'
16222    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16223    	  lt_int_apple_cc_single_mod=yes
16224    	fi
16225    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16226    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16227    	else
16228        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16229      fi
16230      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16231      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16232        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16233          archive_expsym_cmds_GCJ='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}'
16234        else
16235          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16236        fi
16237          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}'
16238      hardcode_direct_GCJ=no
16239      hardcode_automatic_GCJ=yes
16240      hardcode_shlibpath_var_GCJ=unsupported
16241      whole_archive_flag_spec_GCJ='-all_load $convenience'
16242      link_all_deplibs_GCJ=yes
16243    else
16244      ld_shlibs_GCJ=no
16245    fi
16246      ;;
16247
16248    dgux*)
16249      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16250      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16251      hardcode_shlibpath_var_GCJ=no
16252      ;;
16253
16254    freebsd1*)
16255      ld_shlibs_GCJ=no
16256      ;;
16257
16258    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16259    # support.  Future versions do this automatically, but an explicit c++rt0.o
16260    # does not break anything, and helps significantly (at the cost of a little
16261    # extra space).
16262    freebsd2.2*)
16263      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16264      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16265      hardcode_direct_GCJ=yes
16266      hardcode_shlibpath_var_GCJ=no
16267      ;;
16268
16269    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16270    freebsd2*)
16271      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16272      hardcode_direct_GCJ=yes
16273      hardcode_minus_L_GCJ=yes
16274      hardcode_shlibpath_var_GCJ=no
16275      ;;
16276
16277    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16278    freebsd* | kfreebsd*-gnu)
16279      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16280      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16281      hardcode_direct_GCJ=yes
16282      hardcode_shlibpath_var_GCJ=no
16283      ;;
16284
16285    hpux9*)
16286      if test "$GCC" = yes; then
16287	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'
16288      else
16289	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'
16290      fi
16291      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16292      hardcode_libdir_separator_GCJ=:
16293      hardcode_direct_GCJ=yes
16294
16295      # hardcode_minus_L: Not really in the search PATH,
16296      # but as the default location of the library.
16297      hardcode_minus_L_GCJ=yes
16298      export_dynamic_flag_spec_GCJ='${wl}-E'
16299      ;;
16300
16301    hpux10* | hpux11*)
16302      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16303	case "$host_cpu" in
16304	hppa*64*|ia64*)
16305	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306	  ;;
16307	*)
16308	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16309	  ;;
16310	esac
16311      else
16312	case "$host_cpu" in
16313	hppa*64*|ia64*)
16314	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16315	  ;;
16316	*)
16317	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16318	  ;;
16319	esac
16320      fi
16321      if test "$with_gnu_ld" = no; then
16322	case "$host_cpu" in
16323	hppa*64*)
16324	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16325	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16326	  hardcode_libdir_separator_GCJ=:
16327	  hardcode_direct_GCJ=no
16328	  hardcode_shlibpath_var_GCJ=no
16329	  ;;
16330	ia64*)
16331	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16332	  hardcode_direct_GCJ=no
16333	  hardcode_shlibpath_var_GCJ=no
16334
16335	  # hardcode_minus_L: Not really in the search PATH,
16336	  # but as the default location of the library.
16337	  hardcode_minus_L_GCJ=yes
16338	  ;;
16339	*)
16340	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16341	  hardcode_libdir_separator_GCJ=:
16342	  hardcode_direct_GCJ=yes
16343	  export_dynamic_flag_spec_GCJ='${wl}-E'
16344
16345	  # hardcode_minus_L: Not really in the search PATH,
16346	  # but as the default location of the library.
16347	  hardcode_minus_L_GCJ=yes
16348	  ;;
16349	esac
16350      fi
16351      ;;
16352
16353    irix5* | irix6* | nonstopux*)
16354      if test "$GCC" = yes; then
16355	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'
16356      else
16357	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'
16358	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16359      fi
16360      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16361      hardcode_libdir_separator_GCJ=:
16362      link_all_deplibs_GCJ=yes
16363      ;;
16364
16365    netbsd* | knetbsd*-gnu)
16366      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16367	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16368      else
16369	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16370      fi
16371      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16372      hardcode_direct_GCJ=yes
16373      hardcode_shlibpath_var_GCJ=no
16374      ;;
16375
16376    newsos6)
16377      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16378      hardcode_direct_GCJ=yes
16379      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16380      hardcode_libdir_separator_GCJ=:
16381      hardcode_shlibpath_var_GCJ=no
16382      ;;
16383
16384    openbsd*)
16385      hardcode_direct_GCJ=yes
16386      hardcode_shlibpath_var_GCJ=no
16387      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16388	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16389	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16390	export_dynamic_flag_spec_GCJ='${wl}-E'
16391      else
16392       case $host_os in
16393	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16394	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16395	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16396	   ;;
16397	 *)
16398	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16399	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16400	   ;;
16401       esac
16402      fi
16403      ;;
16404
16405    os2*)
16406      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16407      hardcode_minus_L_GCJ=yes
16408      allow_undefined_flag_GCJ=unsupported
16409      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'
16410      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16411      ;;
16412
16413    osf3*)
16414      if test "$GCC" = yes; then
16415	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16416	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'
16417      else
16418	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16419	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'
16420      fi
16421      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16422      hardcode_libdir_separator_GCJ=:
16423      ;;
16424
16425    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16426      if test "$GCC" = yes; then
16427	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16428	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'
16429	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16430      else
16431	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16432	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'
16433	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~
16434	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16435
16436	# Both c and cxx compiler support -rpath directly
16437	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16438      fi
16439      hardcode_libdir_separator_GCJ=:
16440      ;;
16441
16442    sco3.2v5*)
16443      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444      hardcode_shlibpath_var_GCJ=no
16445      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16446      runpath_var=LD_RUN_PATH
16447      hardcode_runpath_var=yes
16448      ;;
16449
16450    solaris*)
16451      no_undefined_flag_GCJ=' -z text'
16452      if test "$GCC" = yes; then
16453	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16455	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16456      else
16457	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16459  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16460      fi
16461      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16462      hardcode_shlibpath_var_GCJ=no
16463      case $host_os in
16464      solaris2.[0-5] | solaris2.[0-5].*) ;;
16465      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16466	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16467      esac
16468      link_all_deplibs_GCJ=yes
16469      ;;
16470
16471    sunos4*)
16472      if test "x$host_vendor" = xsequent; then
16473	# Use $CC to link under sequent, because it throws in some extra .o
16474	# files that make .init and .fini sections work.
16475	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16476      else
16477	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16478      fi
16479      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16480      hardcode_direct_GCJ=yes
16481      hardcode_minus_L_GCJ=yes
16482      hardcode_shlibpath_var_GCJ=no
16483      ;;
16484
16485    sysv4)
16486      case $host_vendor in
16487	sni)
16488	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489	  hardcode_direct_GCJ=yes # is this really true???
16490	;;
16491	siemens)
16492	  ## LD is ld it makes a PLAMLIB
16493	  ## CC just makes a GrossModule.
16494	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16495	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16496	  hardcode_direct_GCJ=no
16497        ;;
16498	motorola)
16499	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16501	;;
16502      esac
16503      runpath_var='LD_RUN_PATH'
16504      hardcode_shlibpath_var_GCJ=no
16505      ;;
16506
16507    sysv4.3*)
16508      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509      hardcode_shlibpath_var_GCJ=no
16510      export_dynamic_flag_spec_GCJ='-Bexport'
16511      ;;
16512
16513    sysv4*MP*)
16514      if test -d /usr/nec; then
16515	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16516	hardcode_shlibpath_var_GCJ=no
16517	runpath_var=LD_RUN_PATH
16518	hardcode_runpath_var=yes
16519	ld_shlibs_GCJ=yes
16520      fi
16521      ;;
16522
16523    sysv4.2uw2*)
16524      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16525      hardcode_direct_GCJ=yes
16526      hardcode_minus_L_GCJ=no
16527      hardcode_shlibpath_var_GCJ=no
16528      hardcode_runpath_var=yes
16529      runpath_var=LD_RUN_PATH
16530      ;;
16531
16532   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16533      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16534      if test "$GCC" = yes; then
16535	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16536      else
16537	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16538      fi
16539      runpath_var='LD_RUN_PATH'
16540      hardcode_shlibpath_var_GCJ=no
16541      ;;
16542
16543    sysv5*)
16544      no_undefined_flag_GCJ=' -z text'
16545      # $CC -shared without GNU ld will not create a library from C++
16546      # object files and a static libstdc++, better avoid it by now
16547      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16549  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16550      hardcode_libdir_flag_spec_GCJ=
16551      hardcode_shlibpath_var_GCJ=no
16552      runpath_var='LD_RUN_PATH'
16553      ;;
16554
16555    uts4*)
16556      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16558      hardcode_shlibpath_var_GCJ=no
16559      ;;
16560
16561    *)
16562      ld_shlibs_GCJ=no
16563      ;;
16564    esac
16565  fi
16566
16567echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16568echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16569test "$ld_shlibs_GCJ" = no && can_build_shared=no
16570
16571variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16572if test "$GCC" = yes; then
16573  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16574fi
16575
16576#
16577# Do we need to explicitly link libc?
16578#
16579case "x$archive_cmds_need_lc_GCJ" in
16580x|xyes)
16581  # Assume -lc should be added
16582  archive_cmds_need_lc_GCJ=yes
16583
16584  if test "$enable_shared" = yes && test "$GCC" = yes; then
16585    case $archive_cmds_GCJ in
16586    *'~'*)
16587      # FIXME: we may have to deal with multi-command sequences.
16588      ;;
16589    '$CC '*)
16590      # Test whether the compiler implicitly links with -lc since on some
16591      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16592      # to ld, don't add -lc before -lgcc.
16593      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16594echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16595      $rm conftest*
16596      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16597
16598      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16599  (eval $ac_compile) 2>&5
16600  ac_status=$?
16601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602  (exit $ac_status); } 2>conftest.err; then
16603        soname=conftest
16604        lib=conftest
16605        libobjs=conftest.$ac_objext
16606        deplibs=
16607        wl=$lt_prog_compiler_wl_GCJ
16608        compiler_flags=-v
16609        linker_flags=-v
16610        verstring=
16611        output_objdir=.
16612        libname=conftest
16613        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16614        allow_undefined_flag_GCJ=
16615        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16616  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16617  ac_status=$?
16618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619  (exit $ac_status); }
16620        then
16621	  archive_cmds_need_lc_GCJ=no
16622        else
16623	  archive_cmds_need_lc_GCJ=yes
16624        fi
16625        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16626      else
16627        cat conftest.err 1>&5
16628      fi
16629      $rm conftest*
16630      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16631echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16632      ;;
16633    esac
16634  fi
16635  ;;
16636esac
16637
16638echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16639echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16640library_names_spec=
16641libname_spec='lib$name'
16642soname_spec=
16643shrext_cmds=".so"
16644postinstall_cmds=
16645postuninstall_cmds=
16646finish_cmds=
16647finish_eval=
16648shlibpath_var=
16649shlibpath_overrides_runpath=unknown
16650version_type=none
16651dynamic_linker="$host_os ld.so"
16652sys_lib_dlsearch_path_spec="/lib /usr/lib"
16653if test "$GCC" = yes; then
16654  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16655  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16656    # if the path contains ";" then we assume it to be the separator
16657    # otherwise default to the standard path separator (i.e. ":") - it is
16658    # assumed that no part of a normal pathname contains ";" but that should
16659    # okay in the real world where ";" in dirpaths is itself problematic.
16660    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16661  else
16662    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16663  fi
16664else
16665  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16666fi
16667need_lib_prefix=unknown
16668hardcode_into_libs=no
16669
16670# when you set need_version to no, make sure it does not cause -set_version
16671# flags to be left without arguments
16672need_version=unknown
16673
16674case $host_os in
16675aix3*)
16676  version_type=linux
16677  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16678  shlibpath_var=LIBPATH
16679
16680  # AIX 3 has no versioning support, so we append a major version to the name.
16681  soname_spec='${libname}${release}${shared_ext}$major'
16682  ;;
16683
16684aix4* | aix5*)
16685  version_type=linux
16686  need_lib_prefix=no
16687  need_version=no
16688  hardcode_into_libs=yes
16689  if test "$host_cpu" = ia64; then
16690    # AIX 5 supports IA64
16691    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16692    shlibpath_var=LD_LIBRARY_PATH
16693  else
16694    # With GCC up to 2.95.x, collect2 would create an import file
16695    # for dependence libraries.  The import file would start with
16696    # the line `#! .'.  This would cause the generated library to
16697    # depend on `.', always an invalid library.  This was fixed in
16698    # development snapshots of GCC prior to 3.0.
16699    case $host_os in
16700      aix4 | aix4.[01] | aix4.[01].*)
16701      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16702	   echo ' yes '
16703	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16704	:
16705      else
16706	can_build_shared=no
16707      fi
16708      ;;
16709    esac
16710    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16711    # soname into executable. Probably we can add versioning support to
16712    # collect2, so additional links can be useful in future.
16713    if test "$aix_use_runtimelinking" = yes; then
16714      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16715      # instead of lib<name>.a to let people know that these are not
16716      # typical AIX shared libraries.
16717      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718    else
16719      # We preserve .a as extension for shared libraries through AIX4.2
16720      # and later when we are not doing run time linking.
16721      library_names_spec='${libname}${release}.a $libname.a'
16722      soname_spec='${libname}${release}${shared_ext}$major'
16723    fi
16724    shlibpath_var=LIBPATH
16725  fi
16726  ;;
16727
16728amigaos*)
16729  library_names_spec='$libname.ixlibrary $libname.a'
16730  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16731  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'
16732  ;;
16733
16734beos*)
16735  library_names_spec='${libname}${shared_ext}'
16736  dynamic_linker="$host_os ld.so"
16737  shlibpath_var=LIBRARY_PATH
16738  ;;
16739
16740bsdi4*)
16741  version_type=linux
16742  need_version=no
16743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744  soname_spec='${libname}${release}${shared_ext}$major'
16745  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16746  shlibpath_var=LD_LIBRARY_PATH
16747  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16748  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16749  # the default ld.so.conf also contains /usr/contrib/lib and
16750  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16751  # libtool to hard-code these into programs
16752  ;;
16753
16754cygwin* | mingw* | pw32*)
16755  version_type=windows
16756  shrext_cmds=".dll"
16757  need_version=no
16758  need_lib_prefix=no
16759
16760  case $GCC,$host_os in
16761  yes,cygwin* | yes,mingw* | yes,pw32*)
16762    library_names_spec='$libname.dll.a'
16763    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16764    postinstall_cmds='base_file=`basename \${file}`~
16765      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16766      dldir=$destdir/`dirname \$dlpath`~
16767      test -d \$dldir || mkdir -p \$dldir~
16768      $install_prog $dir/$dlname \$dldir/$dlname'
16769    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16770      dlpath=$dir/\$dldll~
16771       $rm \$dlpath'
16772    shlibpath_overrides_runpath=yes
16773
16774    case $host_os in
16775    cygwin*)
16776      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16777      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16778      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16779      ;;
16780    mingw*)
16781      # MinGW DLLs use traditional 'lib' prefix
16782      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16783      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16784      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16785        # It is most probably a Windows format PATH printed by
16786        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16787        # path with ; separators, and with drive letters. We can handle the
16788        # drive letters (cygwin fileutils understands them), so leave them,
16789        # especially as we might pass files found there to a mingw objdump,
16790        # which wouldn't understand a cygwinified path. Ahh.
16791        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16792      else
16793        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16794      fi
16795      ;;
16796    pw32*)
16797      # pw32 DLLs use 'pw' prefix rather than 'lib'
16798      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16799      ;;
16800    esac
16801    ;;
16802
16803  *)
16804    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16805    ;;
16806  esac
16807  dynamic_linker='Win32 ld.exe'
16808  # FIXME: first we should search . and the directory the executable is in
16809  shlibpath_var=PATH
16810  ;;
16811
16812darwin* | rhapsody*)
16813  dynamic_linker="$host_os dyld"
16814  version_type=darwin
16815  need_lib_prefix=no
16816  need_version=no
16817  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16818  soname_spec='${libname}${release}${major}$shared_ext'
16819  shlibpath_overrides_runpath=yes
16820  shlibpath_var=DYLD_LIBRARY_PATH
16821  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16822  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16823  if test "$GCC" = yes; then
16824    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"`
16825  else
16826    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16827  fi
16828  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16829  ;;
16830
16831dgux*)
16832  version_type=linux
16833  need_lib_prefix=no
16834  need_version=no
16835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16836  soname_spec='${libname}${release}${shared_ext}$major'
16837  shlibpath_var=LD_LIBRARY_PATH
16838  ;;
16839
16840freebsd1*)
16841  dynamic_linker=no
16842  ;;
16843
16844kfreebsd*-gnu)
16845  version_type=linux
16846  need_lib_prefix=no
16847  need_version=no
16848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16849  soname_spec='${libname}${release}${shared_ext}$major'
16850  shlibpath_var=LD_LIBRARY_PATH
16851  shlibpath_overrides_runpath=no
16852  hardcode_into_libs=yes
16853  dynamic_linker='GNU ld.so'
16854  ;;
16855
16856freebsd*)
16857  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16858  version_type=freebsd-$objformat
16859  case $version_type in
16860    freebsd-elf*)
16861      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16862      need_version=no
16863      need_lib_prefix=no
16864      ;;
16865    freebsd-*)
16866      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16867      need_version=yes
16868      ;;
16869  esac
16870  shlibpath_var=LD_LIBRARY_PATH
16871  case $host_os in
16872  freebsd2*)
16873    shlibpath_overrides_runpath=yes
16874    ;;
16875  freebsd3.01* | freebsdelf3.01*)
16876    shlibpath_overrides_runpath=yes
16877    hardcode_into_libs=yes
16878    ;;
16879  *) # from 3.2 on
16880    shlibpath_overrides_runpath=no
16881    hardcode_into_libs=yes
16882    ;;
16883  esac
16884  ;;
16885
16886gnu*)
16887  version_type=linux
16888  need_lib_prefix=no
16889  need_version=no
16890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16891  soname_spec='${libname}${release}${shared_ext}$major'
16892  shlibpath_var=LD_LIBRARY_PATH
16893  hardcode_into_libs=yes
16894  ;;
16895
16896hpux9* | hpux10* | hpux11*)
16897  # Give a soname corresponding to the major version so that dld.sl refuses to
16898  # link against other versions.
16899  version_type=sunos
16900  need_lib_prefix=no
16901  need_version=no
16902  case "$host_cpu" in
16903  ia64*)
16904    shrext_cmds='.so'
16905    hardcode_into_libs=yes
16906    dynamic_linker="$host_os dld.so"
16907    shlibpath_var=LD_LIBRARY_PATH
16908    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910    soname_spec='${libname}${release}${shared_ext}$major'
16911    if test "X$HPUX_IA64_MODE" = X32; then
16912      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16913    else
16914      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16915    fi
16916    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16917    ;;
16918   hppa*64*)
16919     shrext_cmds='.sl'
16920     hardcode_into_libs=yes
16921     dynamic_linker="$host_os dld.sl"
16922     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16923     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925     soname_spec='${libname}${release}${shared_ext}$major'
16926     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16927     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16928     ;;
16929   *)
16930    shrext_cmds='.sl'
16931    dynamic_linker="$host_os dld.sl"
16932    shlibpath_var=SHLIB_PATH
16933    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16934    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935    soname_spec='${libname}${release}${shared_ext}$major'
16936    ;;
16937  esac
16938  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16939  postinstall_cmds='chmod 555 $lib'
16940  ;;
16941
16942irix5* | irix6* | nonstopux*)
16943  case $host_os in
16944    nonstopux*) version_type=nonstopux ;;
16945    *)
16946	if test "$lt_cv_prog_gnu_ld" = yes; then
16947		version_type=linux
16948	else
16949		version_type=irix
16950	fi ;;
16951  esac
16952  need_lib_prefix=no
16953  need_version=no
16954  soname_spec='${libname}${release}${shared_ext}$major'
16955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16956  case $host_os in
16957  irix5* | nonstopux*)
16958    libsuff= shlibsuff=
16959    ;;
16960  *)
16961    case $LD in # libtool.m4 will add one of these switches to LD
16962    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16963      libsuff= shlibsuff= libmagic=32-bit;;
16964    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16965      libsuff=32 shlibsuff=N32 libmagic=N32;;
16966    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16967      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16968    *) libsuff= shlibsuff= libmagic=never-match;;
16969    esac
16970    ;;
16971  esac
16972  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16973  shlibpath_overrides_runpath=no
16974  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16975  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16976  hardcode_into_libs=yes
16977  ;;
16978
16979# No shared lib support for Linux oldld, aout, or coff.
16980linux*oldld* | linux*aout* | linux*coff*)
16981  dynamic_linker=no
16982  ;;
16983
16984# This must be Linux ELF.
16985linux*)
16986  version_type=linux
16987  need_lib_prefix=no
16988  need_version=no
16989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990  soname_spec='${libname}${release}${shared_ext}$major'
16991  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16992  shlibpath_var=LD_LIBRARY_PATH
16993  shlibpath_overrides_runpath=no
16994  # This implies no fast_install, which is unacceptable.
16995  # Some rework will be needed to allow for fast_install
16996  # before this can be enabled.
16997  hardcode_into_libs=yes
16998
16999  # Append ld.so.conf contents to the search path
17000  if test -f /etc/ld.so.conf; then
17001    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17002    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17003  fi
17004
17005  # We used to test for /lib/ld.so.1 and disable shared libraries on
17006  # powerpc, because MkLinux only supported shared libraries with the
17007  # GNU dynamic linker.  Since this was broken with cross compilers,
17008  # most powerpc-linux boxes support dynamic linking these days and
17009  # people can always --disable-shared, the test was removed, and we
17010  # assume the GNU/Linux dynamic linker is in use.
17011  dynamic_linker='GNU/Linux ld.so'
17012  ;;
17013
17014knetbsd*-gnu)
17015  version_type=linux
17016  need_lib_prefix=no
17017  need_version=no
17018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17019  soname_spec='${libname}${release}${shared_ext}$major'
17020  shlibpath_var=LD_LIBRARY_PATH
17021  shlibpath_overrides_runpath=no
17022  hardcode_into_libs=yes
17023  dynamic_linker='GNU ld.so'
17024  ;;
17025
17026netbsd*)
17027  version_type=sunos
17028  need_lib_prefix=no
17029  need_version=no
17030  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17032    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17033    dynamic_linker='NetBSD (a.out) ld.so'
17034  else
17035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17036    soname_spec='${libname}${release}${shared_ext}$major'
17037    dynamic_linker='NetBSD ld.elf_so'
17038  fi
17039  shlibpath_var=LD_LIBRARY_PATH
17040  shlibpath_overrides_runpath=yes
17041  hardcode_into_libs=yes
17042  ;;
17043
17044newsos6)
17045  version_type=linux
17046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047  shlibpath_var=LD_LIBRARY_PATH
17048  shlibpath_overrides_runpath=yes
17049  ;;
17050
17051nto-qnx*)
17052  version_type=linux
17053  need_lib_prefix=no
17054  need_version=no
17055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056  soname_spec='${libname}${release}${shared_ext}$major'
17057  shlibpath_var=LD_LIBRARY_PATH
17058  shlibpath_overrides_runpath=yes
17059  ;;
17060
17061openbsd*)
17062  version_type=sunos
17063  need_lib_prefix=no
17064  need_version=yes
17065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17066  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17067  shlibpath_var=LD_LIBRARY_PATH
17068  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17069    case $host_os in
17070      openbsd2.[89] | openbsd2.[89].*)
17071	shlibpath_overrides_runpath=no
17072	;;
17073      *)
17074	shlibpath_overrides_runpath=yes
17075	;;
17076      esac
17077  else
17078    shlibpath_overrides_runpath=yes
17079  fi
17080  ;;
17081
17082os2*)
17083  libname_spec='$name'
17084  shrext_cmds=".dll"
17085  need_lib_prefix=no
17086  library_names_spec='$libname${shared_ext} $libname.a'
17087  dynamic_linker='OS/2 ld.exe'
17088  shlibpath_var=LIBPATH
17089  ;;
17090
17091osf3* | osf4* | osf5*)
17092  version_type=osf
17093  need_lib_prefix=no
17094  need_version=no
17095  soname_spec='${libname}${release}${shared_ext}$major'
17096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097  shlibpath_var=LD_LIBRARY_PATH
17098  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17099  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17100  ;;
17101
17102sco3.2v5*)
17103  version_type=osf
17104  soname_spec='${libname}${release}${shared_ext}$major'
17105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106  shlibpath_var=LD_LIBRARY_PATH
17107  ;;
17108
17109solaris*)
17110  version_type=linux
17111  need_lib_prefix=no
17112  need_version=no
17113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114  soname_spec='${libname}${release}${shared_ext}$major'
17115  shlibpath_var=LD_LIBRARY_PATH
17116  shlibpath_overrides_runpath=yes
17117  hardcode_into_libs=yes
17118  # ldd complains unless libraries are executable
17119  postinstall_cmds='chmod +x $lib'
17120  ;;
17121
17122sunos4*)
17123  version_type=sunos
17124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17125  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17126  shlibpath_var=LD_LIBRARY_PATH
17127  shlibpath_overrides_runpath=yes
17128  if test "$with_gnu_ld" = yes; then
17129    need_lib_prefix=no
17130  fi
17131  need_version=yes
17132  ;;
17133
17134sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17135  version_type=linux
17136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137  soname_spec='${libname}${release}${shared_ext}$major'
17138  shlibpath_var=LD_LIBRARY_PATH
17139  case $host_vendor in
17140    sni)
17141      shlibpath_overrides_runpath=no
17142      need_lib_prefix=no
17143      export_dynamic_flag_spec='${wl}-Blargedynsym'
17144      runpath_var=LD_RUN_PATH
17145      ;;
17146    siemens)
17147      need_lib_prefix=no
17148      ;;
17149    motorola)
17150      need_lib_prefix=no
17151      need_version=no
17152      shlibpath_overrides_runpath=no
17153      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17154      ;;
17155  esac
17156  ;;
17157
17158sysv4*MP*)
17159  if test -d /usr/nec ;then
17160    version_type=linux
17161    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17162    soname_spec='$libname${shared_ext}.$major'
17163    shlibpath_var=LD_LIBRARY_PATH
17164  fi
17165  ;;
17166
17167uts4*)
17168  version_type=linux
17169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170  soname_spec='${libname}${release}${shared_ext}$major'
17171  shlibpath_var=LD_LIBRARY_PATH
17172  ;;
17173
17174*)
17175  dynamic_linker=no
17176  ;;
17177esac
17178echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17179echo "${ECHO_T}$dynamic_linker" >&6
17180test "$dynamic_linker" = no && can_build_shared=no
17181
17182echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17183echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17184hardcode_action_GCJ=
17185if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17186   test -n "$runpath_var GCJ" || \
17187   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17188
17189  # We can hardcode non-existant directories.
17190  if test "$hardcode_direct_GCJ" != no &&
17191     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17192     # have to relink, otherwise we might link with an installed library
17193     # when we should be linking with a yet-to-be-installed one
17194     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17195     test "$hardcode_minus_L_GCJ" != no; then
17196    # Linking always hardcodes the temporary library directory.
17197    hardcode_action_GCJ=relink
17198  else
17199    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17200    hardcode_action_GCJ=immediate
17201  fi
17202else
17203  # We cannot hardcode anything, or else we can only hardcode existing
17204  # directories.
17205  hardcode_action_GCJ=unsupported
17206fi
17207echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17208echo "${ECHO_T}$hardcode_action_GCJ" >&6
17209
17210if test "$hardcode_action_GCJ" = relink; then
17211  # Fast installation is not supported
17212  enable_fast_install=no
17213elif test "$shlibpath_overrides_runpath" = yes ||
17214     test "$enable_shared" = no; then
17215  # Fast installation is not necessary
17216  enable_fast_install=needless
17217fi
17218
17219striplib=
17220old_striplib=
17221echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17222echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17223if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17224  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17225  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17226  echo "$as_me:$LINENO: result: yes" >&5
17227echo "${ECHO_T}yes" >&6
17228else
17229# FIXME - insert some real tests, host_os isn't really good enough
17230  case $host_os in
17231   darwin*)
17232       if test -n "$STRIP" ; then
17233         striplib="$STRIP -x"
17234         echo "$as_me:$LINENO: result: yes" >&5
17235echo "${ECHO_T}yes" >&6
17236       else
17237  echo "$as_me:$LINENO: result: no" >&5
17238echo "${ECHO_T}no" >&6
17239fi
17240       ;;
17241   *)
17242  echo "$as_me:$LINENO: result: no" >&5
17243echo "${ECHO_T}no" >&6
17244    ;;
17245  esac
17246fi
17247
17248if test "x$enable_dlopen" != xyes; then
17249  enable_dlopen=unknown
17250  enable_dlopen_self=unknown
17251  enable_dlopen_self_static=unknown
17252else
17253  lt_cv_dlopen=no
17254  lt_cv_dlopen_libs=
17255
17256  case $host_os in
17257  beos*)
17258    lt_cv_dlopen="load_add_on"
17259    lt_cv_dlopen_libs=
17260    lt_cv_dlopen_self=yes
17261    ;;
17262
17263  mingw* | pw32*)
17264    lt_cv_dlopen="LoadLibrary"
17265    lt_cv_dlopen_libs=
17266   ;;
17267
17268  cygwin*)
17269    lt_cv_dlopen="dlopen"
17270    lt_cv_dlopen_libs=
17271   ;;
17272
17273  darwin*)
17274  # if libdl is installed we need to link against it
17275    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17276echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17277if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17278  echo $ECHO_N "(cached) $ECHO_C" >&6
17279else
17280  ac_check_lib_save_LIBS=$LIBS
17281LIBS="-ldl  $LIBS"
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h.  */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h.  */
17288
17289/* Override any gcc2 internal prototype to avoid an error.  */
17290#ifdef __cplusplus
17291extern "C"
17292#endif
17293/* We use char because int might match the return type of a gcc2
17294   builtin and then its argument prototype would still apply.  */
17295char dlopen ();
17296int
17297main ()
17298{
17299dlopen ();
17300  ;
17301  return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext conftest$ac_exeext
17305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17306  (eval $ac_link) 2>conftest.er1
17307  ac_status=$?
17308  grep -v '^ *+' conftest.er1 >conftest.err
17309  rm -f conftest.er1
17310  cat conftest.err >&5
17311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312  (exit $ac_status); } &&
17313	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315  (eval $ac_try) 2>&5
17316  ac_status=$?
17317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318  (exit $ac_status); }; } &&
17319	 { ac_try='test -s conftest$ac_exeext'
17320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321  (eval $ac_try) 2>&5
17322  ac_status=$?
17323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324  (exit $ac_status); }; }; then
17325  ac_cv_lib_dl_dlopen=yes
17326else
17327  echo "$as_me: failed program was:" >&5
17328sed 's/^/| /' conftest.$ac_ext >&5
17329
17330ac_cv_lib_dl_dlopen=no
17331fi
17332rm -f conftest.err conftest.$ac_objext \
17333      conftest$ac_exeext conftest.$ac_ext
17334LIBS=$ac_check_lib_save_LIBS
17335fi
17336echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17337echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17338if test $ac_cv_lib_dl_dlopen = yes; then
17339  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17340else
17341
17342    lt_cv_dlopen="dyld"
17343    lt_cv_dlopen_libs=
17344    lt_cv_dlopen_self=yes
17345
17346fi
17347
17348   ;;
17349
17350  *)
17351    echo "$as_me:$LINENO: checking for shl_load" >&5
17352echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17353if test "${ac_cv_func_shl_load+set}" = set; then
17354  echo $ECHO_N "(cached) $ECHO_C" >&6
17355else
17356  cat >conftest.$ac_ext <<_ACEOF
17357/* confdefs.h.  */
17358_ACEOF
17359cat confdefs.h >>conftest.$ac_ext
17360cat >>conftest.$ac_ext <<_ACEOF
17361/* end confdefs.h.  */
17362/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17363   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17364#define shl_load innocuous_shl_load
17365
17366/* System header to define __stub macros and hopefully few prototypes,
17367    which can conflict with char shl_load (); below.
17368    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17369    <limits.h> exists even on freestanding compilers.  */
17370
17371#ifdef __STDC__
17372# include <limits.h>
17373#else
17374# include <assert.h>
17375#endif
17376
17377#undef shl_load
17378
17379/* Override any gcc2 internal prototype to avoid an error.  */
17380#ifdef __cplusplus
17381extern "C"
17382{
17383#endif
17384/* We use char because int might match the return type of a gcc2
17385   builtin and then its argument prototype would still apply.  */
17386char shl_load ();
17387/* The GNU C library defines this for functions which it implements
17388    to always fail with ENOSYS.  Some functions are actually named
17389    something starting with __ and the normal name is an alias.  */
17390#if defined (__stub_shl_load) || defined (__stub___shl_load)
17391choke me
17392#else
17393char (*f) () = shl_load;
17394#endif
17395#ifdef __cplusplus
17396}
17397#endif
17398
17399int
17400main ()
17401{
17402return f != shl_load;
17403  ;
17404  return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext conftest$ac_exeext
17408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409  (eval $ac_link) 2>conftest.er1
17410  ac_status=$?
17411  grep -v '^ *+' conftest.er1 >conftest.err
17412  rm -f conftest.er1
17413  cat conftest.err >&5
17414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415  (exit $ac_status); } &&
17416	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418  (eval $ac_try) 2>&5
17419  ac_status=$?
17420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421  (exit $ac_status); }; } &&
17422	 { ac_try='test -s conftest$ac_exeext'
17423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424  (eval $ac_try) 2>&5
17425  ac_status=$?
17426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427  (exit $ac_status); }; }; then
17428  ac_cv_func_shl_load=yes
17429else
17430  echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
17433ac_cv_func_shl_load=no
17434fi
17435rm -f conftest.err conftest.$ac_objext \
17436      conftest$ac_exeext conftest.$ac_ext
17437fi
17438echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17439echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17440if test $ac_cv_func_shl_load = yes; then
17441  lt_cv_dlopen="shl_load"
17442else
17443  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17444echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17445if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17446  echo $ECHO_N "(cached) $ECHO_C" >&6
17447else
17448  ac_check_lib_save_LIBS=$LIBS
17449LIBS="-ldld  $LIBS"
17450cat >conftest.$ac_ext <<_ACEOF
17451/* confdefs.h.  */
17452_ACEOF
17453cat confdefs.h >>conftest.$ac_ext
17454cat >>conftest.$ac_ext <<_ACEOF
17455/* end confdefs.h.  */
17456
17457/* Override any gcc2 internal prototype to avoid an error.  */
17458#ifdef __cplusplus
17459extern "C"
17460#endif
17461/* We use char because int might match the return type of a gcc2
17462   builtin and then its argument prototype would still apply.  */
17463char shl_load ();
17464int
17465main ()
17466{
17467shl_load ();
17468  ;
17469  return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext conftest$ac_exeext
17473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474  (eval $ac_link) 2>conftest.er1
17475  ac_status=$?
17476  grep -v '^ *+' conftest.er1 >conftest.err
17477  rm -f conftest.er1
17478  cat conftest.err >&5
17479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480  (exit $ac_status); } &&
17481	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483  (eval $ac_try) 2>&5
17484  ac_status=$?
17485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486  (exit $ac_status); }; } &&
17487	 { ac_try='test -s conftest$ac_exeext'
17488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489  (eval $ac_try) 2>&5
17490  ac_status=$?
17491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492  (exit $ac_status); }; }; then
17493  ac_cv_lib_dld_shl_load=yes
17494else
17495  echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498ac_cv_lib_dld_shl_load=no
17499fi
17500rm -f conftest.err conftest.$ac_objext \
17501      conftest$ac_exeext conftest.$ac_ext
17502LIBS=$ac_check_lib_save_LIBS
17503fi
17504echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17505echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17506if test $ac_cv_lib_dld_shl_load = yes; then
17507  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17508else
17509  echo "$as_me:$LINENO: checking for dlopen" >&5
17510echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17511if test "${ac_cv_func_dlopen+set}" = set; then
17512  echo $ECHO_N "(cached) $ECHO_C" >&6
17513else
17514  cat >conftest.$ac_ext <<_ACEOF
17515/* confdefs.h.  */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h.  */
17520/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17521   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17522#define dlopen innocuous_dlopen
17523
17524/* System header to define __stub macros and hopefully few prototypes,
17525    which can conflict with char dlopen (); below.
17526    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17527    <limits.h> exists even on freestanding compilers.  */
17528
17529#ifdef __STDC__
17530# include <limits.h>
17531#else
17532# include <assert.h>
17533#endif
17534
17535#undef dlopen
17536
17537/* Override any gcc2 internal prototype to avoid an error.  */
17538#ifdef __cplusplus
17539extern "C"
17540{
17541#endif
17542/* We use char because int might match the return type of a gcc2
17543   builtin and then its argument prototype would still apply.  */
17544char dlopen ();
17545/* The GNU C library defines this for functions which it implements
17546    to always fail with ENOSYS.  Some functions are actually named
17547    something starting with __ and the normal name is an alias.  */
17548#if defined (__stub_dlopen) || defined (__stub___dlopen)
17549choke me
17550#else
17551char (*f) () = dlopen;
17552#endif
17553#ifdef __cplusplus
17554}
17555#endif
17556
17557int
17558main ()
17559{
17560return f != dlopen;
17561  ;
17562  return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext conftest$ac_exeext
17566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17567  (eval $ac_link) 2>conftest.er1
17568  ac_status=$?
17569  grep -v '^ *+' conftest.er1 >conftest.err
17570  rm -f conftest.er1
17571  cat conftest.err >&5
17572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573  (exit $ac_status); } &&
17574	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576  (eval $ac_try) 2>&5
17577  ac_status=$?
17578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579  (exit $ac_status); }; } &&
17580	 { ac_try='test -s conftest$ac_exeext'
17581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582  (eval $ac_try) 2>&5
17583  ac_status=$?
17584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585  (exit $ac_status); }; }; then
17586  ac_cv_func_dlopen=yes
17587else
17588  echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
17590
17591ac_cv_func_dlopen=no
17592fi
17593rm -f conftest.err conftest.$ac_objext \
17594      conftest$ac_exeext conftest.$ac_ext
17595fi
17596echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17597echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17598if test $ac_cv_func_dlopen = yes; then
17599  lt_cv_dlopen="dlopen"
17600else
17601  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17602echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17603if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17604  echo $ECHO_N "(cached) $ECHO_C" >&6
17605else
17606  ac_check_lib_save_LIBS=$LIBS
17607LIBS="-ldl  $LIBS"
17608cat >conftest.$ac_ext <<_ACEOF
17609/* confdefs.h.  */
17610_ACEOF
17611cat confdefs.h >>conftest.$ac_ext
17612cat >>conftest.$ac_ext <<_ACEOF
17613/* end confdefs.h.  */
17614
17615/* Override any gcc2 internal prototype to avoid an error.  */
17616#ifdef __cplusplus
17617extern "C"
17618#endif
17619/* We use char because int might match the return type of a gcc2
17620   builtin and then its argument prototype would still apply.  */
17621char dlopen ();
17622int
17623main ()
17624{
17625dlopen ();
17626  ;
17627  return 0;
17628}
17629_ACEOF
17630rm -f conftest.$ac_objext conftest$ac_exeext
17631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17632  (eval $ac_link) 2>conftest.er1
17633  ac_status=$?
17634  grep -v '^ *+' conftest.er1 >conftest.err
17635  rm -f conftest.er1
17636  cat conftest.err >&5
17637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638  (exit $ac_status); } &&
17639	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641  (eval $ac_try) 2>&5
17642  ac_status=$?
17643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644  (exit $ac_status); }; } &&
17645	 { ac_try='test -s conftest$ac_exeext'
17646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647  (eval $ac_try) 2>&5
17648  ac_status=$?
17649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650  (exit $ac_status); }; }; then
17651  ac_cv_lib_dl_dlopen=yes
17652else
17653  echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656ac_cv_lib_dl_dlopen=no
17657fi
17658rm -f conftest.err conftest.$ac_objext \
17659      conftest$ac_exeext conftest.$ac_ext
17660LIBS=$ac_check_lib_save_LIBS
17661fi
17662echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17663echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17664if test $ac_cv_lib_dl_dlopen = yes; then
17665  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17666else
17667  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17668echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17669if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17670  echo $ECHO_N "(cached) $ECHO_C" >&6
17671else
17672  ac_check_lib_save_LIBS=$LIBS
17673LIBS="-lsvld  $LIBS"
17674cat >conftest.$ac_ext <<_ACEOF
17675/* confdefs.h.  */
17676_ACEOF
17677cat confdefs.h >>conftest.$ac_ext
17678cat >>conftest.$ac_ext <<_ACEOF
17679/* end confdefs.h.  */
17680
17681/* Override any gcc2 internal prototype to avoid an error.  */
17682#ifdef __cplusplus
17683extern "C"
17684#endif
17685/* We use char because int might match the return type of a gcc2
17686   builtin and then its argument prototype would still apply.  */
17687char dlopen ();
17688int
17689main ()
17690{
17691dlopen ();
17692  ;
17693  return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext conftest$ac_exeext
17697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698  (eval $ac_link) 2>conftest.er1
17699  ac_status=$?
17700  grep -v '^ *+' conftest.er1 >conftest.err
17701  rm -f conftest.er1
17702  cat conftest.err >&5
17703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704  (exit $ac_status); } &&
17705	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707  (eval $ac_try) 2>&5
17708  ac_status=$?
17709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710  (exit $ac_status); }; } &&
17711	 { ac_try='test -s conftest$ac_exeext'
17712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713  (eval $ac_try) 2>&5
17714  ac_status=$?
17715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716  (exit $ac_status); }; }; then
17717  ac_cv_lib_svld_dlopen=yes
17718else
17719  echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
17722ac_cv_lib_svld_dlopen=no
17723fi
17724rm -f conftest.err conftest.$ac_objext \
17725      conftest$ac_exeext conftest.$ac_ext
17726LIBS=$ac_check_lib_save_LIBS
17727fi
17728echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17729echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17730if test $ac_cv_lib_svld_dlopen = yes; then
17731  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17732else
17733  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17734echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17735if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17736  echo $ECHO_N "(cached) $ECHO_C" >&6
17737else
17738  ac_check_lib_save_LIBS=$LIBS
17739LIBS="-ldld  $LIBS"
17740cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h.  */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h.  */
17746
17747/* Override any gcc2 internal prototype to avoid an error.  */
17748#ifdef __cplusplus
17749extern "C"
17750#endif
17751/* We use char because int might match the return type of a gcc2
17752   builtin and then its argument prototype would still apply.  */
17753char dld_link ();
17754int
17755main ()
17756{
17757dld_link ();
17758  ;
17759  return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext conftest$ac_exeext
17763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764  (eval $ac_link) 2>conftest.er1
17765  ac_status=$?
17766  grep -v '^ *+' conftest.er1 >conftest.err
17767  rm -f conftest.er1
17768  cat conftest.err >&5
17769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770  (exit $ac_status); } &&
17771	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773  (eval $ac_try) 2>&5
17774  ac_status=$?
17775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776  (exit $ac_status); }; } &&
17777	 { ac_try='test -s conftest$ac_exeext'
17778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779  (eval $ac_try) 2>&5
17780  ac_status=$?
17781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782  (exit $ac_status); }; }; then
17783  ac_cv_lib_dld_dld_link=yes
17784else
17785  echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788ac_cv_lib_dld_dld_link=no
17789fi
17790rm -f conftest.err conftest.$ac_objext \
17791      conftest$ac_exeext conftest.$ac_ext
17792LIBS=$ac_check_lib_save_LIBS
17793fi
17794echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796if test $ac_cv_lib_dld_dld_link = yes; then
17797  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17798fi
17799
17800
17801fi
17802
17803
17804fi
17805
17806
17807fi
17808
17809
17810fi
17811
17812
17813fi
17814
17815    ;;
17816  esac
17817
17818  if test "x$lt_cv_dlopen" != xno; then
17819    enable_dlopen=yes
17820  else
17821    enable_dlopen=no
17822  fi
17823
17824  case $lt_cv_dlopen in
17825  dlopen)
17826    save_CPPFLAGS="$CPPFLAGS"
17827    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17828
17829    save_LDFLAGS="$LDFLAGS"
17830    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17831
17832    save_LIBS="$LIBS"
17833    LIBS="$lt_cv_dlopen_libs $LIBS"
17834
17835    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837if test "${lt_cv_dlopen_self+set}" = set; then
17838  echo $ECHO_N "(cached) $ECHO_C" >&6
17839else
17840  	  if test "$cross_compiling" = yes; then :
17841  lt_cv_dlopen_self=cross
17842else
17843  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844  lt_status=$lt_dlunknown
17845  cat > conftest.$ac_ext <<EOF
17846#line 17846 "configure"
17847#include "confdefs.h"
17848
17849#if HAVE_DLFCN_H
17850#include <dlfcn.h>
17851#endif
17852
17853#include <stdio.h>
17854
17855#ifdef RTLD_GLOBAL
17856#  define LT_DLGLOBAL		RTLD_GLOBAL
17857#else
17858#  ifdef DL_GLOBAL
17859#    define LT_DLGLOBAL		DL_GLOBAL
17860#  else
17861#    define LT_DLGLOBAL		0
17862#  endif
17863#endif
17864
17865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866   find out it does not work in some platform. */
17867#ifndef LT_DLLAZY_OR_NOW
17868#  ifdef RTLD_LAZY
17869#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17870#  else
17871#    ifdef DL_LAZY
17872#      define LT_DLLAZY_OR_NOW		DL_LAZY
17873#    else
17874#      ifdef RTLD_NOW
17875#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17876#      else
17877#        ifdef DL_NOW
17878#          define LT_DLLAZY_OR_NOW	DL_NOW
17879#        else
17880#          define LT_DLLAZY_OR_NOW	0
17881#        endif
17882#      endif
17883#    endif
17884#  endif
17885#endif
17886
17887#ifdef __cplusplus
17888extern "C" void exit (int);
17889#endif
17890
17891void fnord() { int i=42;}
17892int main ()
17893{
17894  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895  int status = $lt_dlunknown;
17896
17897  if (self)
17898    {
17899      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17900      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901      /* dlclose (self); */
17902    }
17903
17904    exit (status);
17905}
17906EOF
17907  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908  (eval $ac_link) 2>&5
17909  ac_status=$?
17910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912    (./conftest; exit; ) 2>/dev/null
17913    lt_status=$?
17914    case x$lt_status in
17915      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17918    esac
17919  else :
17920    # compilation failed
17921    lt_cv_dlopen_self=no
17922  fi
17923fi
17924rm -fr conftest*
17925
17926
17927fi
17928echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17930
17931    if test "x$lt_cv_dlopen_self" = xyes; then
17932      LDFLAGS="$LDFLAGS $link_static_flag"
17933      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935if test "${lt_cv_dlopen_self_static+set}" = set; then
17936  echo $ECHO_N "(cached) $ECHO_C" >&6
17937else
17938  	  if test "$cross_compiling" = yes; then :
17939  lt_cv_dlopen_self_static=cross
17940else
17941  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942  lt_status=$lt_dlunknown
17943  cat > conftest.$ac_ext <<EOF
17944#line 17944 "configure"
17945#include "confdefs.h"
17946
17947#if HAVE_DLFCN_H
17948#include <dlfcn.h>
17949#endif
17950
17951#include <stdio.h>
17952
17953#ifdef RTLD_GLOBAL
17954#  define LT_DLGLOBAL		RTLD_GLOBAL
17955#else
17956#  ifdef DL_GLOBAL
17957#    define LT_DLGLOBAL		DL_GLOBAL
17958#  else
17959#    define LT_DLGLOBAL		0
17960#  endif
17961#endif
17962
17963/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964   find out it does not work in some platform. */
17965#ifndef LT_DLLAZY_OR_NOW
17966#  ifdef RTLD_LAZY
17967#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17968#  else
17969#    ifdef DL_LAZY
17970#      define LT_DLLAZY_OR_NOW		DL_LAZY
17971#    else
17972#      ifdef RTLD_NOW
17973#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17974#      else
17975#        ifdef DL_NOW
17976#          define LT_DLLAZY_OR_NOW	DL_NOW
17977#        else
17978#          define LT_DLLAZY_OR_NOW	0
17979#        endif
17980#      endif
17981#    endif
17982#  endif
17983#endif
17984
17985#ifdef __cplusplus
17986extern "C" void exit (int);
17987#endif
17988
17989void fnord() { int i=42;}
17990int main ()
17991{
17992  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993  int status = $lt_dlunknown;
17994
17995  if (self)
17996    {
17997      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17998      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999      /* dlclose (self); */
18000    }
18001
18002    exit (status);
18003}
18004EOF
18005  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006  (eval $ac_link) 2>&5
18007  ac_status=$?
18008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010    (./conftest; exit; ) 2>/dev/null
18011    lt_status=$?
18012    case x$lt_status in
18013      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18016    esac
18017  else :
18018    # compilation failed
18019    lt_cv_dlopen_self_static=no
18020  fi
18021fi
18022rm -fr conftest*
18023
18024
18025fi
18026echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18028    fi
18029
18030    CPPFLAGS="$save_CPPFLAGS"
18031    LDFLAGS="$save_LDFLAGS"
18032    LIBS="$save_LIBS"
18033    ;;
18034  esac
18035
18036  case $lt_cv_dlopen_self in
18037  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038  *) enable_dlopen_self=unknown ;;
18039  esac
18040
18041  case $lt_cv_dlopen_self_static in
18042  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043  *) enable_dlopen_self_static=unknown ;;
18044  esac
18045fi
18046
18047
18048# The else clause should only fire when bootstrapping the
18049# libtool distribution, otherwise you forgot to ship ltmain.sh
18050# with your package, and you will get complaints that there are
18051# no rules to generate ltmain.sh.
18052if test -f "$ltmain"; then
18053  # See if we are running on zsh, and set the options which allow our commands through
18054  # without removal of \ escapes.
18055  if test -n "${ZSH_VERSION+set}" ; then
18056    setopt NO_GLOB_SUBST
18057  fi
18058  # Now quote all the things that may contain metacharacters while being
18059  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18060  # variables and quote the copies for generation of the libtool script.
18061  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18062    SED SHELL STRIP \
18063    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18065    deplibs_check_method reload_flag reload_cmds need_locks \
18066    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18067    lt_cv_sys_global_symbol_to_c_name_address \
18068    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18069    old_postinstall_cmds old_postuninstall_cmds \
18070    compiler_GCJ \
18071    CC_GCJ \
18072    LD_GCJ \
18073    lt_prog_compiler_wl_GCJ \
18074    lt_prog_compiler_pic_GCJ \
18075    lt_prog_compiler_static_GCJ \
18076    lt_prog_compiler_no_builtin_flag_GCJ \
18077    export_dynamic_flag_spec_GCJ \
18078    thread_safe_flag_spec_GCJ \
18079    whole_archive_flag_spec_GCJ \
18080    enable_shared_with_static_runtimes_GCJ \
18081    old_archive_cmds_GCJ \
18082    old_archive_from_new_cmds_GCJ \
18083    predep_objects_GCJ \
18084    postdep_objects_GCJ \
18085    predeps_GCJ \
18086    postdeps_GCJ \
18087    compiler_lib_search_path_GCJ \
18088    archive_cmds_GCJ \
18089    archive_expsym_cmds_GCJ \
18090    postinstall_cmds_GCJ \
18091    postuninstall_cmds_GCJ \
18092    old_archive_from_expsyms_cmds_GCJ \
18093    allow_undefined_flag_GCJ \
18094    no_undefined_flag_GCJ \
18095    export_symbols_cmds_GCJ \
18096    hardcode_libdir_flag_spec_GCJ \
18097    hardcode_libdir_flag_spec_ld_GCJ \
18098    hardcode_libdir_separator_GCJ \
18099    hardcode_automatic_GCJ \
18100    module_cmds_GCJ \
18101    module_expsym_cmds_GCJ \
18102    lt_cv_prog_compiler_c_o_GCJ \
18103    exclude_expsyms_GCJ \
18104    include_expsyms_GCJ; do
18105
18106    case $var in
18107    old_archive_cmds_GCJ | \
18108    old_archive_from_new_cmds_GCJ | \
18109    archive_cmds_GCJ | \
18110    archive_expsym_cmds_GCJ | \
18111    module_cmds_GCJ | \
18112    module_expsym_cmds_GCJ | \
18113    old_archive_from_expsyms_cmds_GCJ | \
18114    export_symbols_cmds_GCJ | \
18115    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18116    postinstall_cmds | postuninstall_cmds | \
18117    old_postinstall_cmds | old_postuninstall_cmds | \
18118    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18119      # Double-quote double-evaled strings.
18120      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18121      ;;
18122    *)
18123      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18124      ;;
18125    esac
18126  done
18127
18128  case $lt_echo in
18129  *'\$0 --fallback-echo"')
18130    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18131    ;;
18132  esac
18133
18134cfgfile="$ofile"
18135
18136  cat <<__EOF__ >> "$cfgfile"
18137# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18138
18139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18140
18141# Shell to use when invoking shell scripts.
18142SHELL=$lt_SHELL
18143
18144# Whether or not to build shared libraries.
18145build_libtool_libs=$enable_shared
18146
18147# Whether or not to build static libraries.
18148build_old_libs=$enable_static
18149
18150# Whether or not to add -lc for building shared libraries.
18151build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18152
18153# Whether or not to disallow shared libs when runtime libs are static
18154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18155
18156# Whether or not to optimize for fast installation.
18157fast_install=$enable_fast_install
18158
18159# The host system.
18160host_alias=$host_alias
18161host=$host
18162
18163# An echo program that does not interpret backslashes.
18164echo=$lt_echo
18165
18166# The archiver.
18167AR=$lt_AR
18168AR_FLAGS=$lt_AR_FLAGS
18169
18170# A C compiler.
18171LTCC=$lt_LTCC
18172
18173# A language-specific compiler.
18174CC=$lt_compiler_GCJ
18175
18176# Is the compiler the GNU C compiler?
18177with_gcc=$GCC_GCJ
18178
18179# An ERE matcher.
18180EGREP=$lt_EGREP
18181
18182# The linker used to build libraries.
18183LD=$lt_LD_GCJ
18184
18185# Whether we need hard or soft links.
18186LN_S=$lt_LN_S
18187
18188# A BSD-compatible nm program.
18189NM=$lt_NM
18190
18191# A symbol stripping program
18192STRIP=$lt_STRIP
18193
18194# Used to examine libraries when file_magic_cmd begins "file"
18195MAGIC_CMD=$MAGIC_CMD
18196
18197# Used on cygwin: DLL creation program.
18198DLLTOOL="$DLLTOOL"
18199
18200# Used on cygwin: object dumper.
18201OBJDUMP="$OBJDUMP"
18202
18203# Used on cygwin: assembler.
18204AS="$AS"
18205
18206# The name of the directory that contains temporary libtool files.
18207objdir=$objdir
18208
18209# How to create reloadable object files.
18210reload_flag=$lt_reload_flag
18211reload_cmds=$lt_reload_cmds
18212
18213# How to pass a linker flag through the compiler.
18214wl=$lt_lt_prog_compiler_wl_GCJ
18215
18216# Object file suffix (normally "o").
18217objext="$ac_objext"
18218
18219# Old archive suffix (normally "a").
18220libext="$libext"
18221
18222# Shared library suffix (normally ".so").
18223shrext_cmds='$shrext_cmds'
18224
18225# Executable file suffix (normally "").
18226exeext="$exeext"
18227
18228# Additional compiler flags for building library objects.
18229pic_flag=$lt_lt_prog_compiler_pic_GCJ
18230pic_mode=$pic_mode
18231
18232# What is the maximum length of a command?
18233max_cmd_len=$lt_cv_sys_max_cmd_len
18234
18235# Does compiler simultaneously support -c and -o options?
18236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18237
18238# Must we lock files when doing compilation ?
18239need_locks=$lt_need_locks
18240
18241# Do we need the lib prefix for modules?
18242need_lib_prefix=$need_lib_prefix
18243
18244# Do we need a version for libraries?
18245need_version=$need_version
18246
18247# Whether dlopen is supported.
18248dlopen_support=$enable_dlopen
18249
18250# Whether dlopen of programs is supported.
18251dlopen_self=$enable_dlopen_self
18252
18253# Whether dlopen of statically linked programs is supported.
18254dlopen_self_static=$enable_dlopen_self_static
18255
18256# Compiler flag to prevent dynamic linking.
18257link_static_flag=$lt_lt_prog_compiler_static_GCJ
18258
18259# Compiler flag to turn off builtin functions.
18260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18261
18262# Compiler flag to allow reflexive dlopens.
18263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18264
18265# Compiler flag to generate shared objects directly from archives.
18266whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18267
18268# Compiler flag to generate thread-safe objects.
18269thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18270
18271# Library versioning type.
18272version_type=$version_type
18273
18274# Format of library name prefix.
18275libname_spec=$lt_libname_spec
18276
18277# List of archive names.  First name is the real one, the rest are links.
18278# The last name is the one that the linker finds with -lNAME.
18279library_names_spec=$lt_library_names_spec
18280
18281# The coded name of the library, if different from the real name.
18282soname_spec=$lt_soname_spec
18283
18284# Commands used to build and install an old-style archive.
18285RANLIB=$lt_RANLIB
18286old_archive_cmds=$lt_old_archive_cmds_GCJ
18287old_postinstall_cmds=$lt_old_postinstall_cmds
18288old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
18290# Create an old-style archive from a shared archive.
18291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18292
18293# Create a temporary old-style archive to link instead of a shared archive.
18294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18295
18296# Commands used to build and install a shared archive.
18297archive_cmds=$lt_archive_cmds_GCJ
18298archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18299postinstall_cmds=$lt_postinstall_cmds
18300postuninstall_cmds=$lt_postuninstall_cmds
18301
18302# Commands used to build a loadable module (assumed same as above if empty)
18303module_cmds=$lt_module_cmds_GCJ
18304module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18305
18306# Commands to strip libraries.
18307old_striplib=$lt_old_striplib
18308striplib=$lt_striplib
18309
18310# Dependencies to place before the objects being linked to create a
18311# shared library.
18312predep_objects=$lt_predep_objects_GCJ
18313
18314# Dependencies to place after the objects being linked to create a
18315# shared library.
18316postdep_objects=$lt_postdep_objects_GCJ
18317
18318# Dependencies to place before the objects being linked to create a
18319# shared library.
18320predeps=$lt_predeps_GCJ
18321
18322# Dependencies to place after the objects being linked to create a
18323# shared library.
18324postdeps=$lt_postdeps_GCJ
18325
18326# The library search path used internally by the compiler when linking
18327# a shared library.
18328compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18329
18330# Method to check whether dependent libraries are shared objects.
18331deplibs_check_method=$lt_deplibs_check_method
18332
18333# Command to use when deplibs_check_method == file_magic.
18334file_magic_cmd=$lt_file_magic_cmd
18335
18336# Flag that allows shared libraries with undefined symbols to be built.
18337allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18338
18339# Flag that forces no undefined symbols.
18340no_undefined_flag=$lt_no_undefined_flag_GCJ
18341
18342# Commands used to finish a libtool library installation in a directory.
18343finish_cmds=$lt_finish_cmds
18344
18345# Same as above, but a single script fragment to be evaled but not shown.
18346finish_eval=$lt_finish_eval
18347
18348# Take the output of nm and produce a listing of raw symbols and C names.
18349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18350
18351# Transform the output of nm in a proper C declaration
18352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18353
18354# Transform the output of nm in a C name address pair
18355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18356
18357# This is the shared library runtime path variable.
18358runpath_var=$runpath_var
18359
18360# This is the shared library path variable.
18361shlibpath_var=$shlibpath_var
18362
18363# Is shlibpath searched before the hard-coded library search path?
18364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365
18366# How to hardcode a shared library path into an executable.
18367hardcode_action=$hardcode_action_GCJ
18368
18369# Whether we should hardcode library paths into libraries.
18370hardcode_into_libs=$hardcode_into_libs
18371
18372# Flag to hardcode \$libdir into a binary during linking.
18373# This must work even if \$libdir does not exist.
18374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18375
18376# If ld is used when linking, flag to hardcode \$libdir into
18377# a binary during linking. This must work even if \$libdir does
18378# not exist.
18379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18380
18381# Whether we need a single -rpath flag with a separated argument.
18382hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18383
18384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18385# resulting binary.
18386hardcode_direct=$hardcode_direct_GCJ
18387
18388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18389# resulting binary.
18390hardcode_minus_L=$hardcode_minus_L_GCJ
18391
18392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18393# the resulting binary.
18394hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18395
18396# Set to yes if building a shared library automatically hardcodes DIR into the library
18397# and all subsequent libraries and executables linked against it.
18398hardcode_automatic=$hardcode_automatic_GCJ
18399
18400# Variables whose values should be saved in libtool wrapper scripts and
18401# restored at relink time.
18402variables_saved_for_relink="$variables_saved_for_relink"
18403
18404# Whether libtool must link a program against all its dependency libraries.
18405link_all_deplibs=$link_all_deplibs_GCJ
18406
18407# Compile-time system search path for libraries
18408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18409
18410# Run-time system search path for libraries
18411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18412
18413# Fix the shell variable \$srcfile for the compiler.
18414fix_srcfile_path="$fix_srcfile_path_GCJ"
18415
18416# Set to yes if exported symbols are required.
18417always_export_symbols=$always_export_symbols_GCJ
18418
18419# The commands to list exported symbols.
18420export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18421
18422# The commands to extract the exported symbol list from a shared archive.
18423extract_expsyms_cmds=$lt_extract_expsyms_cmds
18424
18425# Symbols that should not be listed in the preloaded symbols.
18426exclude_expsyms=$lt_exclude_expsyms_GCJ
18427
18428# Symbols that must always be exported.
18429include_expsyms=$lt_include_expsyms_GCJ
18430
18431# ### END LIBTOOL TAG CONFIG: $tagname
18432
18433__EOF__
18434
18435
18436else
18437  # If there is no Makefile yet, we rely on a make rule to execute
18438  # `config.status --recheck' to rerun these tests and create the
18439  # libtool script then.
18440  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18441  if test -f "$ltmain_in"; then
18442    test -f Makefile && make "$ltmain"
18443  fi
18444fi
18445
18446
18447ac_ext=c
18448ac_cpp='$CPP $CPPFLAGS'
18449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452
18453CC="$lt_save_CC"
18454
18455	else
18456	  tagname=""
18457	fi
18458	;;
18459
18460      RC)
18461
18462
18463
18464# Source file extension for RC test sources.
18465ac_ext=rc
18466
18467# Object file extension for compiled RC test sources.
18468objext=o
18469objext_RC=$objext
18470
18471# Code to be used in simple compile tests
18472lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18473
18474# Code to be used in simple link tests
18475lt_simple_link_test_code="$lt_simple_compile_test_code"
18476
18477# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18478
18479# If no C compiler was specified, use CC.
18480LTCC=${LTCC-"$CC"}
18481
18482# Allow CC to be a program name with arguments.
18483compiler=$CC
18484
18485
18486# Allow CC to be a program name with arguments.
18487lt_save_CC="$CC"
18488CC=${RC-"windres"}
18489compiler=$CC
18490compiler_RC=$CC
18491lt_cv_prog_compiler_c_o_RC=yes
18492
18493# The else clause should only fire when bootstrapping the
18494# libtool distribution, otherwise you forgot to ship ltmain.sh
18495# with your package, and you will get complaints that there are
18496# no rules to generate ltmain.sh.
18497if test -f "$ltmain"; then
18498  # See if we are running on zsh, and set the options which allow our commands through
18499  # without removal of \ escapes.
18500  if test -n "${ZSH_VERSION+set}" ; then
18501    setopt NO_GLOB_SUBST
18502  fi
18503  # Now quote all the things that may contain metacharacters while being
18504  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18505  # variables and quote the copies for generation of the libtool script.
18506  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18507    SED SHELL STRIP \
18508    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18509    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18510    deplibs_check_method reload_flag reload_cmds need_locks \
18511    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18512    lt_cv_sys_global_symbol_to_c_name_address \
18513    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18514    old_postinstall_cmds old_postuninstall_cmds \
18515    compiler_RC \
18516    CC_RC \
18517    LD_RC \
18518    lt_prog_compiler_wl_RC \
18519    lt_prog_compiler_pic_RC \
18520    lt_prog_compiler_static_RC \
18521    lt_prog_compiler_no_builtin_flag_RC \
18522    export_dynamic_flag_spec_RC \
18523    thread_safe_flag_spec_RC \
18524    whole_archive_flag_spec_RC \
18525    enable_shared_with_static_runtimes_RC \
18526    old_archive_cmds_RC \
18527    old_archive_from_new_cmds_RC \
18528    predep_objects_RC \
18529    postdep_objects_RC \
18530    predeps_RC \
18531    postdeps_RC \
18532    compiler_lib_search_path_RC \
18533    archive_cmds_RC \
18534    archive_expsym_cmds_RC \
18535    postinstall_cmds_RC \
18536    postuninstall_cmds_RC \
18537    old_archive_from_expsyms_cmds_RC \
18538    allow_undefined_flag_RC \
18539    no_undefined_flag_RC \
18540    export_symbols_cmds_RC \
18541    hardcode_libdir_flag_spec_RC \
18542    hardcode_libdir_flag_spec_ld_RC \
18543    hardcode_libdir_separator_RC \
18544    hardcode_automatic_RC \
18545    module_cmds_RC \
18546    module_expsym_cmds_RC \
18547    lt_cv_prog_compiler_c_o_RC \
18548    exclude_expsyms_RC \
18549    include_expsyms_RC; do
18550
18551    case $var in
18552    old_archive_cmds_RC | \
18553    old_archive_from_new_cmds_RC | \
18554    archive_cmds_RC | \
18555    archive_expsym_cmds_RC | \
18556    module_cmds_RC | \
18557    module_expsym_cmds_RC | \
18558    old_archive_from_expsyms_cmds_RC | \
18559    export_symbols_cmds_RC | \
18560    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18561    postinstall_cmds | postuninstall_cmds | \
18562    old_postinstall_cmds | old_postuninstall_cmds | \
18563    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18564      # Double-quote double-evaled strings.
18565      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18566      ;;
18567    *)
18568      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18569      ;;
18570    esac
18571  done
18572
18573  case $lt_echo in
18574  *'\$0 --fallback-echo"')
18575    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18576    ;;
18577  esac
18578
18579cfgfile="$ofile"
18580
18581  cat <<__EOF__ >> "$cfgfile"
18582# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18583
18584# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18585
18586# Shell to use when invoking shell scripts.
18587SHELL=$lt_SHELL
18588
18589# Whether or not to build shared libraries.
18590build_libtool_libs=$enable_shared
18591
18592# Whether or not to build static libraries.
18593build_old_libs=$enable_static
18594
18595# Whether or not to add -lc for building shared libraries.
18596build_libtool_need_lc=$archive_cmds_need_lc_RC
18597
18598# Whether or not to disallow shared libs when runtime libs are static
18599allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18600
18601# Whether or not to optimize for fast installation.
18602fast_install=$enable_fast_install
18603
18604# The host system.
18605host_alias=$host_alias
18606host=$host
18607
18608# An echo program that does not interpret backslashes.
18609echo=$lt_echo
18610
18611# The archiver.
18612AR=$lt_AR
18613AR_FLAGS=$lt_AR_FLAGS
18614
18615# A C compiler.
18616LTCC=$lt_LTCC
18617
18618# A language-specific compiler.
18619CC=$lt_compiler_RC
18620
18621# Is the compiler the GNU C compiler?
18622with_gcc=$GCC_RC
18623
18624# An ERE matcher.
18625EGREP=$lt_EGREP
18626
18627# The linker used to build libraries.
18628LD=$lt_LD_RC
18629
18630# Whether we need hard or soft links.
18631LN_S=$lt_LN_S
18632
18633# A BSD-compatible nm program.
18634NM=$lt_NM
18635
18636# A symbol stripping program
18637STRIP=$lt_STRIP
18638
18639# Used to examine libraries when file_magic_cmd begins "file"
18640MAGIC_CMD=$MAGIC_CMD
18641
18642# Used on cygwin: DLL creation program.
18643DLLTOOL="$DLLTOOL"
18644
18645# Used on cygwin: object dumper.
18646OBJDUMP="$OBJDUMP"
18647
18648# Used on cygwin: assembler.
18649AS="$AS"
18650
18651# The name of the directory that contains temporary libtool files.
18652objdir=$objdir
18653
18654# How to create reloadable object files.
18655reload_flag=$lt_reload_flag
18656reload_cmds=$lt_reload_cmds
18657
18658# How to pass a linker flag through the compiler.
18659wl=$lt_lt_prog_compiler_wl_RC
18660
18661# Object file suffix (normally "o").
18662objext="$ac_objext"
18663
18664# Old archive suffix (normally "a").
18665libext="$libext"
18666
18667# Shared library suffix (normally ".so").
18668shrext_cmds='$shrext_cmds'
18669
18670# Executable file suffix (normally "").
18671exeext="$exeext"
18672
18673# Additional compiler flags for building library objects.
18674pic_flag=$lt_lt_prog_compiler_pic_RC
18675pic_mode=$pic_mode
18676
18677# What is the maximum length of a command?
18678max_cmd_len=$lt_cv_sys_max_cmd_len
18679
18680# Does compiler simultaneously support -c and -o options?
18681compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18682
18683# Must we lock files when doing compilation ?
18684need_locks=$lt_need_locks
18685
18686# Do we need the lib prefix for modules?
18687need_lib_prefix=$need_lib_prefix
18688
18689# Do we need a version for libraries?
18690need_version=$need_version
18691
18692# Whether dlopen is supported.
18693dlopen_support=$enable_dlopen
18694
18695# Whether dlopen of programs is supported.
18696dlopen_self=$enable_dlopen_self
18697
18698# Whether dlopen of statically linked programs is supported.
18699dlopen_self_static=$enable_dlopen_self_static
18700
18701# Compiler flag to prevent dynamic linking.
18702link_static_flag=$lt_lt_prog_compiler_static_RC
18703
18704# Compiler flag to turn off builtin functions.
18705no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18706
18707# Compiler flag to allow reflexive dlopens.
18708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18709
18710# Compiler flag to generate shared objects directly from archives.
18711whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18712
18713# Compiler flag to generate thread-safe objects.
18714thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18715
18716# Library versioning type.
18717version_type=$version_type
18718
18719# Format of library name prefix.
18720libname_spec=$lt_libname_spec
18721
18722# List of archive names.  First name is the real one, the rest are links.
18723# The last name is the one that the linker finds with -lNAME.
18724library_names_spec=$lt_library_names_spec
18725
18726# The coded name of the library, if different from the real name.
18727soname_spec=$lt_soname_spec
18728
18729# Commands used to build and install an old-style archive.
18730RANLIB=$lt_RANLIB
18731old_archive_cmds=$lt_old_archive_cmds_RC
18732old_postinstall_cmds=$lt_old_postinstall_cmds
18733old_postuninstall_cmds=$lt_old_postuninstall_cmds
18734
18735# Create an old-style archive from a shared archive.
18736old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18737
18738# Create a temporary old-style archive to link instead of a shared archive.
18739old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18740
18741# Commands used to build and install a shared archive.
18742archive_cmds=$lt_archive_cmds_RC
18743archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18744postinstall_cmds=$lt_postinstall_cmds
18745postuninstall_cmds=$lt_postuninstall_cmds
18746
18747# Commands used to build a loadable module (assumed same as above if empty)
18748module_cmds=$lt_module_cmds_RC
18749module_expsym_cmds=$lt_module_expsym_cmds_RC
18750
18751# Commands to strip libraries.
18752old_striplib=$lt_old_striplib
18753striplib=$lt_striplib
18754
18755# Dependencies to place before the objects being linked to create a
18756# shared library.
18757predep_objects=$lt_predep_objects_RC
18758
18759# Dependencies to place after the objects being linked to create a
18760# shared library.
18761postdep_objects=$lt_postdep_objects_RC
18762
18763# Dependencies to place before the objects being linked to create a
18764# shared library.
18765predeps=$lt_predeps_RC
18766
18767# Dependencies to place after the objects being linked to create a
18768# shared library.
18769postdeps=$lt_postdeps_RC
18770
18771# The library search path used internally by the compiler when linking
18772# a shared library.
18773compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18774
18775# Method to check whether dependent libraries are shared objects.
18776deplibs_check_method=$lt_deplibs_check_method
18777
18778# Command to use when deplibs_check_method == file_magic.
18779file_magic_cmd=$lt_file_magic_cmd
18780
18781# Flag that allows shared libraries with undefined symbols to be built.
18782allow_undefined_flag=$lt_allow_undefined_flag_RC
18783
18784# Flag that forces no undefined symbols.
18785no_undefined_flag=$lt_no_undefined_flag_RC
18786
18787# Commands used to finish a libtool library installation in a directory.
18788finish_cmds=$lt_finish_cmds
18789
18790# Same as above, but a single script fragment to be evaled but not shown.
18791finish_eval=$lt_finish_eval
18792
18793# Take the output of nm and produce a listing of raw symbols and C names.
18794global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18795
18796# Transform the output of nm in a proper C declaration
18797global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18798
18799# Transform the output of nm in a C name address pair
18800global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18801
18802# This is the shared library runtime path variable.
18803runpath_var=$runpath_var
18804
18805# This is the shared library path variable.
18806shlibpath_var=$shlibpath_var
18807
18808# Is shlibpath searched before the hard-coded library search path?
18809shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18810
18811# How to hardcode a shared library path into an executable.
18812hardcode_action=$hardcode_action_RC
18813
18814# Whether we should hardcode library paths into libraries.
18815hardcode_into_libs=$hardcode_into_libs
18816
18817# Flag to hardcode \$libdir into a binary during linking.
18818# This must work even if \$libdir does not exist.
18819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18820
18821# If ld is used when linking, flag to hardcode \$libdir into
18822# a binary during linking. This must work even if \$libdir does
18823# not exist.
18824hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18825
18826# Whether we need a single -rpath flag with a separated argument.
18827hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18828
18829# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18830# resulting binary.
18831hardcode_direct=$hardcode_direct_RC
18832
18833# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18834# resulting binary.
18835hardcode_minus_L=$hardcode_minus_L_RC
18836
18837# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18838# the resulting binary.
18839hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18840
18841# Set to yes if building a shared library automatically hardcodes DIR into the library
18842# and all subsequent libraries and executables linked against it.
18843hardcode_automatic=$hardcode_automatic_RC
18844
18845# Variables whose values should be saved in libtool wrapper scripts and
18846# restored at relink time.
18847variables_saved_for_relink="$variables_saved_for_relink"
18848
18849# Whether libtool must link a program against all its dependency libraries.
18850link_all_deplibs=$link_all_deplibs_RC
18851
18852# Compile-time system search path for libraries
18853sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18854
18855# Run-time system search path for libraries
18856sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18857
18858# Fix the shell variable \$srcfile for the compiler.
18859fix_srcfile_path="$fix_srcfile_path_RC"
18860
18861# Set to yes if exported symbols are required.
18862always_export_symbols=$always_export_symbols_RC
18863
18864# The commands to list exported symbols.
18865export_symbols_cmds=$lt_export_symbols_cmds_RC
18866
18867# The commands to extract the exported symbol list from a shared archive.
18868extract_expsyms_cmds=$lt_extract_expsyms_cmds
18869
18870# Symbols that should not be listed in the preloaded symbols.
18871exclude_expsyms=$lt_exclude_expsyms_RC
18872
18873# Symbols that must always be exported.
18874include_expsyms=$lt_include_expsyms_RC
18875
18876# ### END LIBTOOL TAG CONFIG: $tagname
18877
18878__EOF__
18879
18880
18881else
18882  # If there is no Makefile yet, we rely on a make rule to execute
18883  # `config.status --recheck' to rerun these tests and create the
18884  # libtool script then.
18885  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18886  if test -f "$ltmain_in"; then
18887    test -f Makefile && make "$ltmain"
18888  fi
18889fi
18890
18891
18892ac_ext=c
18893ac_cpp='$CPP $CPPFLAGS'
18894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897
18898CC="$lt_save_CC"
18899
18900	;;
18901
18902      *)
18903	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18904echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18905   { (exit 1); exit 1; }; }
18906	;;
18907      esac
18908
18909      # Append the new tag name to the list of available tags.
18910      if test -n "$tagname" ; then
18911      available_tags="$available_tags $tagname"
18912    fi
18913    fi
18914  done
18915  IFS="$lt_save_ifs"
18916
18917  # Now substitute the updated list of available tags.
18918  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18919    mv "${ofile}T" "$ofile"
18920    chmod +x "$ofile"
18921  else
18922    rm -f "${ofile}T"
18923    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18924echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18925   { (exit 1); exit 1; }; }
18926  fi
18927fi
18928
18929
18930
18931# This can be used to rebuild libtool when needed
18932LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18933
18934# Always use our own libtool.
18935LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18936
18937# Prevent multiple expansion
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960# Checks for programs.
18961ac_ext=cc
18962ac_cpp='$CXXCPP $CPPFLAGS'
18963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18966if test -n "$ac_tool_prefix"; then
18967  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
18968  do
18969    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18971echo "$as_me:$LINENO: checking for $ac_word" >&5
18972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18973if test "${ac_cv_prog_CXX+set}" = set; then
18974  echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976  if test -n "$CXX"; then
18977  ac_cv_prog_CXX="$CXX" # Let the user override the test.
18978else
18979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980for as_dir in $PATH
18981do
18982  IFS=$as_save_IFS
18983  test -z "$as_dir" && as_dir=.
18984  for ac_exec_ext in '' $ac_executable_extensions; do
18985  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18987    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18988    break 2
18989  fi
18990done
18991done
18992
18993fi
18994fi
18995CXX=$ac_cv_prog_CXX
18996if test -n "$CXX"; then
18997  echo "$as_me:$LINENO: result: $CXX" >&5
18998echo "${ECHO_T}$CXX" >&6
18999else
19000  echo "$as_me:$LINENO: result: no" >&5
19001echo "${ECHO_T}no" >&6
19002fi
19003
19004    test -n "$CXX" && break
19005  done
19006fi
19007if test -z "$CXX"; then
19008  ac_ct_CXX=$CXX
19009  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19010do
19011  # Extract the first word of "$ac_prog", so it can be a program name with args.
19012set dummy $ac_prog; ac_word=$2
19013echo "$as_me:$LINENO: checking for $ac_word" >&5
19014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19015if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19016  echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018  if test -n "$ac_ct_CXX"; then
19019  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19020else
19021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022for as_dir in $PATH
19023do
19024  IFS=$as_save_IFS
19025  test -z "$as_dir" && as_dir=.
19026  for ac_exec_ext in '' $ac_executable_extensions; do
19027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19028    ac_cv_prog_ac_ct_CXX="$ac_prog"
19029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19030    break 2
19031  fi
19032done
19033done
19034
19035fi
19036fi
19037ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19038if test -n "$ac_ct_CXX"; then
19039  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19040echo "${ECHO_T}$ac_ct_CXX" >&6
19041else
19042  echo "$as_me:$LINENO: result: no" >&5
19043echo "${ECHO_T}no" >&6
19044fi
19045
19046  test -n "$ac_ct_CXX" && break
19047done
19048test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19049
19050  CXX=$ac_ct_CXX
19051fi
19052
19053
19054# Provide some information about the compiler.
19055echo "$as_me:$LINENO:" \
19056     "checking for C++ compiler version" >&5
19057ac_compiler=`set X $ac_compile; echo $2`
19058{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19059  (eval $ac_compiler --version </dev/null >&5) 2>&5
19060  ac_status=$?
19061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062  (exit $ac_status); }
19063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19064  (eval $ac_compiler -v </dev/null >&5) 2>&5
19065  ac_status=$?
19066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067  (exit $ac_status); }
19068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19069  (eval $ac_compiler -V </dev/null >&5) 2>&5
19070  ac_status=$?
19071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072  (exit $ac_status); }
19073
19074echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19075echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19076if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19077  echo $ECHO_N "(cached) $ECHO_C" >&6
19078else
19079  cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h.  */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h.  */
19085
19086int
19087main ()
19088{
19089#ifndef __GNUC__
19090       choke me
19091#endif
19092
19093  ;
19094  return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext
19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099  (eval $ac_compile) 2>conftest.er1
19100  ac_status=$?
19101  grep -v '^ *+' conftest.er1 >conftest.err
19102  rm -f conftest.er1
19103  cat conftest.err >&5
19104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105  (exit $ac_status); } &&
19106	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
19107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108  (eval $ac_try) 2>&5
19109  ac_status=$?
19110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111  (exit $ac_status); }; } &&
19112	 { ac_try='test -s conftest.$ac_objext'
19113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114  (eval $ac_try) 2>&5
19115  ac_status=$?
19116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117  (exit $ac_status); }; }; then
19118  ac_compiler_gnu=yes
19119else
19120  echo "$as_me: failed program was:" >&5
19121sed 's/^/| /' conftest.$ac_ext >&5
19122
19123ac_compiler_gnu=no
19124fi
19125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19126ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19127
19128fi
19129echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19130echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19131GXX=`test $ac_compiler_gnu = yes && echo yes`
19132ac_test_CXXFLAGS=${CXXFLAGS+set}
19133ac_save_CXXFLAGS=$CXXFLAGS
19134CXXFLAGS="-g"
19135echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19136echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19137if test "${ac_cv_prog_cxx_g+set}" = set; then
19138  echo $ECHO_N "(cached) $ECHO_C" >&6
19139else
19140  cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h.  */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h.  */
19146
19147int
19148main ()
19149{
19150
19151  ;
19152  return 0;
19153}
19154_ACEOF
19155rm -f conftest.$ac_objext
19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19157  (eval $ac_compile) 2>conftest.er1
19158  ac_status=$?
19159  grep -v '^ *+' conftest.er1 >conftest.err
19160  rm -f conftest.er1
19161  cat conftest.err >&5
19162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163  (exit $ac_status); } &&
19164	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
19165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166  (eval $ac_try) 2>&5
19167  ac_status=$?
19168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169  (exit $ac_status); }; } &&
19170	 { ac_try='test -s conftest.$ac_objext'
19171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172  (eval $ac_try) 2>&5
19173  ac_status=$?
19174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175  (exit $ac_status); }; }; then
19176  ac_cv_prog_cxx_g=yes
19177else
19178  echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181ac_cv_prog_cxx_g=no
19182fi
19183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19184fi
19185echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19186echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19187if test "$ac_test_CXXFLAGS" = set; then
19188  CXXFLAGS=$ac_save_CXXFLAGS
19189elif test $ac_cv_prog_cxx_g = yes; then
19190  if test "$GXX" = yes; then
19191    CXXFLAGS="-g -O2"
19192  else
19193    CXXFLAGS="-g"
19194  fi
19195else
19196  if test "$GXX" = yes; then
19197    CXXFLAGS="-O2"
19198  else
19199    CXXFLAGS=
19200  fi
19201fi
19202for ac_declaration in \
19203   '' \
19204   'extern "C" void std::exit (int) throw (); using std::exit;' \
19205   'extern "C" void std::exit (int); using std::exit;' \
19206   'extern "C" void exit (int) throw ();' \
19207   'extern "C" void exit (int);' \
19208   'void exit (int);'
19209do
19210  cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h.  */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h.  */
19216$ac_declaration
19217#include <stdlib.h>
19218int
19219main ()
19220{
19221exit (42);
19222  ;
19223  return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext
19227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228  (eval $ac_compile) 2>conftest.er1
19229  ac_status=$?
19230  grep -v '^ *+' conftest.er1 >conftest.err
19231  rm -f conftest.er1
19232  cat conftest.err >&5
19233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234  (exit $ac_status); } &&
19235	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
19236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237  (eval $ac_try) 2>&5
19238  ac_status=$?
19239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240  (exit $ac_status); }; } &&
19241	 { ac_try='test -s conftest.$ac_objext'
19242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243  (eval $ac_try) 2>&5
19244  ac_status=$?
19245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246  (exit $ac_status); }; }; then
19247  :
19248else
19249  echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252continue
19253fi
19254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19255  cat >conftest.$ac_ext <<_ACEOF
19256/* confdefs.h.  */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h.  */
19261$ac_declaration
19262int
19263main ()
19264{
19265exit (42);
19266  ;
19267  return 0;
19268}
19269_ACEOF
19270rm -f conftest.$ac_objext
19271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19272  (eval $ac_compile) 2>conftest.er1
19273  ac_status=$?
19274  grep -v '^ *+' conftest.er1 >conftest.err
19275  rm -f conftest.er1
19276  cat conftest.err >&5
19277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278  (exit $ac_status); } &&
19279	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
19280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281  (eval $ac_try) 2>&5
19282  ac_status=$?
19283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284  (exit $ac_status); }; } &&
19285	 { ac_try='test -s conftest.$ac_objext'
19286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287  (eval $ac_try) 2>&5
19288  ac_status=$?
19289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290  (exit $ac_status); }; }; then
19291  break
19292else
19293  echo "$as_me: failed program was:" >&5
19294sed 's/^/| /' conftest.$ac_ext >&5
19295
19296fi
19297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19298done
19299rm -f conftest*
19300if test -n "$ac_declaration"; then
19301  echo '#ifdef __cplusplus' >>confdefs.h
19302  echo $ac_declaration      >>confdefs.h
19303  echo '#endif'             >>confdefs.h
19304fi
19305
19306ac_ext=c
19307ac_cpp='$CPP $CPPFLAGS'
19308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310ac_compiler_gnu=$ac_cv_c_compiler_gnu
19311
19312depcc="$CXX"  am_compiler_list=
19313
19314echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19315echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19316if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19317  echo $ECHO_N "(cached) $ECHO_C" >&6
19318else
19319  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19320  # We make a subdir and do the tests there.  Otherwise we can end up
19321  # making bogus files that we don't know about and never remove.  For
19322  # instance it was reported that on HP-UX the gcc test will end up
19323  # making a dummy file named `D' -- because `-MD' means `put the output
19324  # in D'.
19325  mkdir conftest.dir
19326  # Copy depcomp to subdir because otherwise we won't find it if we're
19327  # using a relative directory.
19328  cp "$am_depcomp" conftest.dir
19329  cd conftest.dir
19330  # We will build objects and dependencies in a subdirectory because
19331  # it helps to detect inapplicable dependency modes.  For instance
19332  # both Tru64's cc and ICC support -MD to output dependencies as a
19333  # side effect of compilation, but ICC will put the dependencies in
19334  # the current directory while Tru64 will put them in the object
19335  # directory.
19336  mkdir sub
19337
19338  am_cv_CXX_dependencies_compiler_type=none
19339  if test "$am_compiler_list" = ""; then
19340     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19341  fi
19342  for depmode in $am_compiler_list; do
19343    # Setup a source with many dependencies, because some compilers
19344    # like to wrap large dependency lists on column 80 (with \), and
19345    # we should not choose a depcomp mode which is confused by this.
19346    #
19347    # We need to recreate these files for each test, as the compiler may
19348    # overwrite some of them when testing with obscure command lines.
19349    # This happens at least with the AIX C compiler.
19350    : > sub/conftest.c
19351    for i in 1 2 3 4 5 6; do
19352      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19353      : > sub/conftst$i.h
19354    done
19355    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19356
19357    case $depmode in
19358    nosideeffect)
19359      # after this tag, mechanisms are not by side-effect, so they'll
19360      # only be used when explicitly requested
19361      if test "x$enable_dependency_tracking" = xyes; then
19362	continue
19363      else
19364	break
19365      fi
19366      ;;
19367    none) break ;;
19368    esac
19369    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19370    # mode.  It turns out that the SunPro C++ compiler does not properly
19371    # handle `-M -o', and we need to detect this.
19372    if depmode=$depmode \
19373       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19374       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19375       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19376         >/dev/null 2>conftest.err &&
19377       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19378       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19379       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19380      # icc doesn't choke on unknown options, it will just issue warnings
19381      # (even with -Werror).  So we grep stderr for any message
19382      # that says an option was ignored.
19383      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19384        am_cv_CXX_dependencies_compiler_type=$depmode
19385        break
19386      fi
19387    fi
19388  done
19389
19390  cd ..
19391  rm -rf conftest.dir
19392else
19393  am_cv_CXX_dependencies_compiler_type=none
19394fi
19395
19396fi
19397echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19398echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19399CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19400
19401
19402
19403if
19404  test "x$enable_dependency_tracking" != xno \
19405  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19406  am__fastdepCXX_TRUE=
19407  am__fastdepCXX_FALSE='#'
19408else
19409  am__fastdepCXX_TRUE='#'
19410  am__fastdepCXX_FALSE=
19411fi
19412
19413
19414ac_ext=c
19415ac_cpp='$CPP $CPPFLAGS'
19416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19418ac_compiler_gnu=$ac_cv_c_compiler_gnu
19419if test -n "$ac_tool_prefix"; then
19420  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19421set dummy ${ac_tool_prefix}gcc; ac_word=$2
19422echo "$as_me:$LINENO: checking for $ac_word" >&5
19423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19424if test "${ac_cv_prog_CC+set}" = set; then
19425  echo $ECHO_N "(cached) $ECHO_C" >&6
19426else
19427  if test -n "$CC"; then
19428  ac_cv_prog_CC="$CC" # Let the user override the test.
19429else
19430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19431for as_dir in $PATH
19432do
19433  IFS=$as_save_IFS
19434  test -z "$as_dir" && as_dir=.
19435  for ac_exec_ext in '' $ac_executable_extensions; do
19436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19437    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19439    break 2
19440  fi
19441done
19442done
19443
19444fi
19445fi
19446CC=$ac_cv_prog_CC
19447if test -n "$CC"; then
19448  echo "$as_me:$LINENO: result: $CC" >&5
19449echo "${ECHO_T}$CC" >&6
19450else
19451  echo "$as_me:$LINENO: result: no" >&5
19452echo "${ECHO_T}no" >&6
19453fi
19454
19455fi
19456if test -z "$ac_cv_prog_CC"; then
19457  ac_ct_CC=$CC
19458  # Extract the first word of "gcc", so it can be a program name with args.
19459set dummy gcc; ac_word=$2
19460echo "$as_me:$LINENO: checking for $ac_word" >&5
19461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19463  echo $ECHO_N "(cached) $ECHO_C" >&6
19464else
19465  if test -n "$ac_ct_CC"; then
19466  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19467else
19468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469for as_dir in $PATH
19470do
19471  IFS=$as_save_IFS
19472  test -z "$as_dir" && as_dir=.
19473  for ac_exec_ext in '' $ac_executable_extensions; do
19474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19475    ac_cv_prog_ac_ct_CC="gcc"
19476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19477    break 2
19478  fi
19479done
19480done
19481
19482fi
19483fi
19484ac_ct_CC=$ac_cv_prog_ac_ct_CC
19485if test -n "$ac_ct_CC"; then
19486  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19487echo "${ECHO_T}$ac_ct_CC" >&6
19488else
19489  echo "$as_me:$LINENO: result: no" >&5
19490echo "${ECHO_T}no" >&6
19491fi
19492
19493  CC=$ac_ct_CC
19494else
19495  CC="$ac_cv_prog_CC"
19496fi
19497
19498if test -z "$CC"; then
19499  if test -n "$ac_tool_prefix"; then
19500  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19501set dummy ${ac_tool_prefix}cc; ac_word=$2
19502echo "$as_me:$LINENO: checking for $ac_word" >&5
19503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19504if test "${ac_cv_prog_CC+set}" = set; then
19505  echo $ECHO_N "(cached) $ECHO_C" >&6
19506else
19507  if test -n "$CC"; then
19508  ac_cv_prog_CC="$CC" # Let the user override the test.
19509else
19510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511for as_dir in $PATH
19512do
19513  IFS=$as_save_IFS
19514  test -z "$as_dir" && as_dir=.
19515  for ac_exec_ext in '' $ac_executable_extensions; do
19516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19517    ac_cv_prog_CC="${ac_tool_prefix}cc"
19518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19519    break 2
19520  fi
19521done
19522done
19523
19524fi
19525fi
19526CC=$ac_cv_prog_CC
19527if test -n "$CC"; then
19528  echo "$as_me:$LINENO: result: $CC" >&5
19529echo "${ECHO_T}$CC" >&6
19530else
19531  echo "$as_me:$LINENO: result: no" >&5
19532echo "${ECHO_T}no" >&6
19533fi
19534
19535fi
19536if test -z "$ac_cv_prog_CC"; then
19537  ac_ct_CC=$CC
19538  # Extract the first word of "cc", so it can be a program name with args.
19539set dummy cc; ac_word=$2
19540echo "$as_me:$LINENO: checking for $ac_word" >&5
19541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19543  echo $ECHO_N "(cached) $ECHO_C" >&6
19544else
19545  if test -n "$ac_ct_CC"; then
19546  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19547else
19548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549for as_dir in $PATH
19550do
19551  IFS=$as_save_IFS
19552  test -z "$as_dir" && as_dir=.
19553  for ac_exec_ext in '' $ac_executable_extensions; do
19554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19555    ac_cv_prog_ac_ct_CC="cc"
19556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19557    break 2
19558  fi
19559done
19560done
19561
19562fi
19563fi
19564ac_ct_CC=$ac_cv_prog_ac_ct_CC
19565if test -n "$ac_ct_CC"; then
19566  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19567echo "${ECHO_T}$ac_ct_CC" >&6
19568else
19569  echo "$as_me:$LINENO: result: no" >&5
19570echo "${ECHO_T}no" >&6
19571fi
19572
19573  CC=$ac_ct_CC
19574else
19575  CC="$ac_cv_prog_CC"
19576fi
19577
19578fi
19579if test -z "$CC"; then
19580  # Extract the first word of "cc", so it can be a program name with args.
19581set dummy cc; ac_word=$2
19582echo "$as_me:$LINENO: checking for $ac_word" >&5
19583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19584if test "${ac_cv_prog_CC+set}" = set; then
19585  echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587  if test -n "$CC"; then
19588  ac_cv_prog_CC="$CC" # Let the user override the test.
19589else
19590  ac_prog_rejected=no
19591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19592for as_dir in $PATH
19593do
19594  IFS=$as_save_IFS
19595  test -z "$as_dir" && as_dir=.
19596  for ac_exec_ext in '' $ac_executable_extensions; do
19597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19598    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19599       ac_prog_rejected=yes
19600       continue
19601     fi
19602    ac_cv_prog_CC="cc"
19603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19604    break 2
19605  fi
19606done
19607done
19608
19609if test $ac_prog_rejected = yes; then
19610  # We found a bogon in the path, so make sure we never use it.
19611  set dummy $ac_cv_prog_CC
19612  shift
19613  if test $# != 0; then
19614    # We chose a different compiler from the bogus one.
19615    # However, it has the same basename, so the bogon will be chosen
19616    # first if we set CC to just the basename; use the full file name.
19617    shift
19618    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19619  fi
19620fi
19621fi
19622fi
19623CC=$ac_cv_prog_CC
19624if test -n "$CC"; then
19625  echo "$as_me:$LINENO: result: $CC" >&5
19626echo "${ECHO_T}$CC" >&6
19627else
19628  echo "$as_me:$LINENO: result: no" >&5
19629echo "${ECHO_T}no" >&6
19630fi
19631
19632fi
19633if test -z "$CC"; then
19634  if test -n "$ac_tool_prefix"; then
19635  for ac_prog in cl
19636  do
19637    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19639echo "$as_me:$LINENO: checking for $ac_word" >&5
19640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19641if test "${ac_cv_prog_CC+set}" = set; then
19642  echo $ECHO_N "(cached) $ECHO_C" >&6
19643else
19644  if test -n "$CC"; then
19645  ac_cv_prog_CC="$CC" # Let the user override the test.
19646else
19647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648for as_dir in $PATH
19649do
19650  IFS=$as_save_IFS
19651  test -z "$as_dir" && as_dir=.
19652  for ac_exec_ext in '' $ac_executable_extensions; do
19653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19654    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19656    break 2
19657  fi
19658done
19659done
19660
19661fi
19662fi
19663CC=$ac_cv_prog_CC
19664if test -n "$CC"; then
19665  echo "$as_me:$LINENO: result: $CC" >&5
19666echo "${ECHO_T}$CC" >&6
19667else
19668  echo "$as_me:$LINENO: result: no" >&5
19669echo "${ECHO_T}no" >&6
19670fi
19671
19672    test -n "$CC" && break
19673  done
19674fi
19675if test -z "$CC"; then
19676  ac_ct_CC=$CC
19677  for ac_prog in cl
19678do
19679  # Extract the first word of "$ac_prog", so it can be a program name with args.
19680set dummy $ac_prog; ac_word=$2
19681echo "$as_me:$LINENO: checking for $ac_word" >&5
19682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19684  echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686  if test -n "$ac_ct_CC"; then
19687  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19688else
19689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19690for as_dir in $PATH
19691do
19692  IFS=$as_save_IFS
19693  test -z "$as_dir" && as_dir=.
19694  for ac_exec_ext in '' $ac_executable_extensions; do
19695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19696    ac_cv_prog_ac_ct_CC="$ac_prog"
19697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19698    break 2
19699  fi
19700done
19701done
19702
19703fi
19704fi
19705ac_ct_CC=$ac_cv_prog_ac_ct_CC
19706if test -n "$ac_ct_CC"; then
19707  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19708echo "${ECHO_T}$ac_ct_CC" >&6
19709else
19710  echo "$as_me:$LINENO: result: no" >&5
19711echo "${ECHO_T}no" >&6
19712fi
19713
19714  test -n "$ac_ct_CC" && break
19715done
19716
19717  CC=$ac_ct_CC
19718fi
19719
19720fi
19721
19722
19723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19724See \`config.log' for more details." >&5
19725echo "$as_me: error: no acceptable C compiler found in \$PATH
19726See \`config.log' for more details." >&2;}
19727   { (exit 1); exit 1; }; }
19728
19729# Provide some information about the compiler.
19730echo "$as_me:$LINENO:" \
19731     "checking for C compiler version" >&5
19732ac_compiler=`set X $ac_compile; echo $2`
19733{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19734  (eval $ac_compiler --version </dev/null >&5) 2>&5
19735  ac_status=$?
19736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737  (exit $ac_status); }
19738{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19739  (eval $ac_compiler -v </dev/null >&5) 2>&5
19740  ac_status=$?
19741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742  (exit $ac_status); }
19743{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19744  (eval $ac_compiler -V </dev/null >&5) 2>&5
19745  ac_status=$?
19746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747  (exit $ac_status); }
19748
19749echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19750echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19751if test "${ac_cv_c_compiler_gnu+set}" = set; then
19752  echo $ECHO_N "(cached) $ECHO_C" >&6
19753else
19754  cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h.  */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h.  */
19760
19761int
19762main ()
19763{
19764#ifndef __GNUC__
19765       choke me
19766#endif
19767
19768  ;
19769  return 0;
19770}
19771_ACEOF
19772rm -f conftest.$ac_objext
19773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19774  (eval $ac_compile) 2>conftest.er1
19775  ac_status=$?
19776  grep -v '^ *+' conftest.er1 >conftest.err
19777  rm -f conftest.er1
19778  cat conftest.err >&5
19779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780  (exit $ac_status); } &&
19781	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783  (eval $ac_try) 2>&5
19784  ac_status=$?
19785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786  (exit $ac_status); }; } &&
19787	 { ac_try='test -s conftest.$ac_objext'
19788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789  (eval $ac_try) 2>&5
19790  ac_status=$?
19791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792  (exit $ac_status); }; }; then
19793  ac_compiler_gnu=yes
19794else
19795  echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798ac_compiler_gnu=no
19799fi
19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801ac_cv_c_compiler_gnu=$ac_compiler_gnu
19802
19803fi
19804echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19805echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19806GCC=`test $ac_compiler_gnu = yes && echo yes`
19807ac_test_CFLAGS=${CFLAGS+set}
19808ac_save_CFLAGS=$CFLAGS
19809CFLAGS="-g"
19810echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19811echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19812if test "${ac_cv_prog_cc_g+set}" = set; then
19813  echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815  cat >conftest.$ac_ext <<_ACEOF
19816/* confdefs.h.  */
19817_ACEOF
19818cat confdefs.h >>conftest.$ac_ext
19819cat >>conftest.$ac_ext <<_ACEOF
19820/* end confdefs.h.  */
19821
19822int
19823main ()
19824{
19825
19826  ;
19827  return 0;
19828}
19829_ACEOF
19830rm -f conftest.$ac_objext
19831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832  (eval $ac_compile) 2>conftest.er1
19833  ac_status=$?
19834  grep -v '^ *+' conftest.er1 >conftest.err
19835  rm -f conftest.er1
19836  cat conftest.err >&5
19837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838  (exit $ac_status); } &&
19839	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841  (eval $ac_try) 2>&5
19842  ac_status=$?
19843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844  (exit $ac_status); }; } &&
19845	 { ac_try='test -s conftest.$ac_objext'
19846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847  (eval $ac_try) 2>&5
19848  ac_status=$?
19849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850  (exit $ac_status); }; }; then
19851  ac_cv_prog_cc_g=yes
19852else
19853  echo "$as_me: failed program was:" >&5
19854sed 's/^/| /' conftest.$ac_ext >&5
19855
19856ac_cv_prog_cc_g=no
19857fi
19858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19859fi
19860echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19861echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19862if test "$ac_test_CFLAGS" = set; then
19863  CFLAGS=$ac_save_CFLAGS
19864elif test $ac_cv_prog_cc_g = yes; then
19865  if test "$GCC" = yes; then
19866    CFLAGS="-g -O2"
19867  else
19868    CFLAGS="-g"
19869  fi
19870else
19871  if test "$GCC" = yes; then
19872    CFLAGS="-O2"
19873  else
19874    CFLAGS=
19875  fi
19876fi
19877echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19878echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19879if test "${ac_cv_prog_cc_stdc+set}" = set; then
19880  echo $ECHO_N "(cached) $ECHO_C" >&6
19881else
19882  ac_cv_prog_cc_stdc=no
19883ac_save_CC=$CC
19884cat >conftest.$ac_ext <<_ACEOF
19885/* confdefs.h.  */
19886_ACEOF
19887cat confdefs.h >>conftest.$ac_ext
19888cat >>conftest.$ac_ext <<_ACEOF
19889/* end confdefs.h.  */
19890#include <stdarg.h>
19891#include <stdio.h>
19892#include <sys/types.h>
19893#include <sys/stat.h>
19894/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19895struct buf { int x; };
19896FILE * (*rcsopen) (struct buf *, struct stat *, int);
19897static char *e (p, i)
19898     char **p;
19899     int i;
19900{
19901  return p[i];
19902}
19903static char *f (char * (*g) (char **, int), char **p, ...)
19904{
19905  char *s;
19906  va_list v;
19907  va_start (v,p);
19908  s = g (p, va_arg (v,int));
19909  va_end (v);
19910  return s;
19911}
19912
19913/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19914   function prototypes and stuff, but not '\xHH' hex character constants.
19915   These don't provoke an error unfortunately, instead are silently treated
19916   as 'x'.  The following induces an error, until -std1 is added to get
19917   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19918   array size at least.  It's necessary to write '\x00'==0 to get something
19919   that's true only with -std1.  */
19920int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19921
19922int test (int i, double x);
19923struct s1 {int (*f) (int a);};
19924struct s2 {int (*f) (double a);};
19925int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19926int argc;
19927char **argv;
19928int
19929main ()
19930{
19931return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19932  ;
19933  return 0;
19934}
19935_ACEOF
19936# Don't try gcc -ansi; that turns off useful extensions and
19937# breaks some systems' header files.
19938# AIX			-qlanglvl=ansi
19939# Ultrix and OSF/1	-std1
19940# HP-UX 10.20 and later	-Ae
19941# HP-UX older versions	-Aa -D_HPUX_SOURCE
19942# SVR4			-Xc -D__EXTENSIONS__
19943for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19944do
19945  CC="$ac_save_CC $ac_arg"
19946  rm -f conftest.$ac_objext
19947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948  (eval $ac_compile) 2>conftest.er1
19949  ac_status=$?
19950  grep -v '^ *+' conftest.er1 >conftest.err
19951  rm -f conftest.er1
19952  cat conftest.err >&5
19953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954  (exit $ac_status); } &&
19955	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957  (eval $ac_try) 2>&5
19958  ac_status=$?
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); }; } &&
19961	 { ac_try='test -s conftest.$ac_objext'
19962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963  (eval $ac_try) 2>&5
19964  ac_status=$?
19965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966  (exit $ac_status); }; }; then
19967  ac_cv_prog_cc_stdc=$ac_arg
19968break
19969else
19970  echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973fi
19974rm -f conftest.err conftest.$ac_objext
19975done
19976rm -f conftest.$ac_ext conftest.$ac_objext
19977CC=$ac_save_CC
19978
19979fi
19980
19981case "x$ac_cv_prog_cc_stdc" in
19982  x|xno)
19983    echo "$as_me:$LINENO: result: none needed" >&5
19984echo "${ECHO_T}none needed" >&6 ;;
19985  *)
19986    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19987echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19988    CC="$CC $ac_cv_prog_cc_stdc" ;;
19989esac
19990
19991# Some people use a C++ compiler to compile C.  Since we use `exit',
19992# in C++ we need to declare it.  In case someone uses the same compiler
19993# for both compiling C and C++ we need to have the C++ compiler decide
19994# the declaration of exit, since it's the most demanding environment.
19995cat >conftest.$ac_ext <<_ACEOF
19996#ifndef __cplusplus
19997  choke me
19998#endif
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002  (eval $ac_compile) 2>conftest.er1
20003  ac_status=$?
20004  grep -v '^ *+' conftest.er1 >conftest.err
20005  rm -f conftest.er1
20006  cat conftest.err >&5
20007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008  (exit $ac_status); } &&
20009	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011  (eval $ac_try) 2>&5
20012  ac_status=$?
20013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014  (exit $ac_status); }; } &&
20015	 { ac_try='test -s conftest.$ac_objext'
20016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017  (eval $ac_try) 2>&5
20018  ac_status=$?
20019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020  (exit $ac_status); }; }; then
20021  for ac_declaration in \
20022   '' \
20023   'extern "C" void std::exit (int) throw (); using std::exit;' \
20024   'extern "C" void std::exit (int); using std::exit;' \
20025   'extern "C" void exit (int) throw ();' \
20026   'extern "C" void exit (int);' \
20027   'void exit (int);'
20028do
20029  cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h.  */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h.  */
20035$ac_declaration
20036#include <stdlib.h>
20037int
20038main ()
20039{
20040exit (42);
20041  ;
20042  return 0;
20043}
20044_ACEOF
20045rm -f conftest.$ac_objext
20046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047  (eval $ac_compile) 2>conftest.er1
20048  ac_status=$?
20049  grep -v '^ *+' conftest.er1 >conftest.err
20050  rm -f conftest.er1
20051  cat conftest.err >&5
20052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053  (exit $ac_status); } &&
20054	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056  (eval $ac_try) 2>&5
20057  ac_status=$?
20058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059  (exit $ac_status); }; } &&
20060	 { ac_try='test -s conftest.$ac_objext'
20061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062  (eval $ac_try) 2>&5
20063  ac_status=$?
20064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065  (exit $ac_status); }; }; then
20066  :
20067else
20068  echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071continue
20072fi
20073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20074  cat >conftest.$ac_ext <<_ACEOF
20075/* confdefs.h.  */
20076_ACEOF
20077cat confdefs.h >>conftest.$ac_ext
20078cat >>conftest.$ac_ext <<_ACEOF
20079/* end confdefs.h.  */
20080$ac_declaration
20081int
20082main ()
20083{
20084exit (42);
20085  ;
20086  return 0;
20087}
20088_ACEOF
20089rm -f conftest.$ac_objext
20090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20091  (eval $ac_compile) 2>conftest.er1
20092  ac_status=$?
20093  grep -v '^ *+' conftest.er1 >conftest.err
20094  rm -f conftest.er1
20095  cat conftest.err >&5
20096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097  (exit $ac_status); } &&
20098	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100  (eval $ac_try) 2>&5
20101  ac_status=$?
20102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103  (exit $ac_status); }; } &&
20104	 { ac_try='test -s conftest.$ac_objext'
20105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106  (eval $ac_try) 2>&5
20107  ac_status=$?
20108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109  (exit $ac_status); }; }; then
20110  break
20111else
20112  echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115fi
20116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20117done
20118rm -f conftest*
20119if test -n "$ac_declaration"; then
20120  echo '#ifdef __cplusplus' >>confdefs.h
20121  echo $ac_declaration      >>confdefs.h
20122  echo '#endif'             >>confdefs.h
20123fi
20124
20125else
20126  echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129fi
20130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20131ac_ext=c
20132ac_cpp='$CPP $CPPFLAGS'
20133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136
20137depcc="$CC"   am_compiler_list=
20138
20139echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20140echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20141if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20142  echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20145  # We make a subdir and do the tests there.  Otherwise we can end up
20146  # making bogus files that we don't know about and never remove.  For
20147  # instance it was reported that on HP-UX the gcc test will end up
20148  # making a dummy file named `D' -- because `-MD' means `put the output
20149  # in D'.
20150  mkdir conftest.dir
20151  # Copy depcomp to subdir because otherwise we won't find it if we're
20152  # using a relative directory.
20153  cp "$am_depcomp" conftest.dir
20154  cd conftest.dir
20155  # We will build objects and dependencies in a subdirectory because
20156  # it helps to detect inapplicable dependency modes.  For instance
20157  # both Tru64's cc and ICC support -MD to output dependencies as a
20158  # side effect of compilation, but ICC will put the dependencies in
20159  # the current directory while Tru64 will put them in the object
20160  # directory.
20161  mkdir sub
20162
20163  am_cv_CC_dependencies_compiler_type=none
20164  if test "$am_compiler_list" = ""; then
20165     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20166  fi
20167  for depmode in $am_compiler_list; do
20168    # Setup a source with many dependencies, because some compilers
20169    # like to wrap large dependency lists on column 80 (with \), and
20170    # we should not choose a depcomp mode which is confused by this.
20171    #
20172    # We need to recreate these files for each test, as the compiler may
20173    # overwrite some of them when testing with obscure command lines.
20174    # This happens at least with the AIX C compiler.
20175    : > sub/conftest.c
20176    for i in 1 2 3 4 5 6; do
20177      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20178      : > sub/conftst$i.h
20179    done
20180    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20181
20182    case $depmode in
20183    nosideeffect)
20184      # after this tag, mechanisms are not by side-effect, so they'll
20185      # only be used when explicitly requested
20186      if test "x$enable_dependency_tracking" = xyes; then
20187	continue
20188      else
20189	break
20190      fi
20191      ;;
20192    none) break ;;
20193    esac
20194    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20195    # mode.  It turns out that the SunPro C++ compiler does not properly
20196    # handle `-M -o', and we need to detect this.
20197    if depmode=$depmode \
20198       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20199       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20200       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20201         >/dev/null 2>conftest.err &&
20202       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20203       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20204       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20205      # icc doesn't choke on unknown options, it will just issue warnings
20206      # (even with -Werror).  So we grep stderr for any message
20207      # that says an option was ignored.
20208      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
20209        am_cv_CC_dependencies_compiler_type=$depmode
20210        break
20211      fi
20212    fi
20213  done
20214
20215  cd ..
20216  rm -rf conftest.dir
20217else
20218  am_cv_CC_dependencies_compiler_type=none
20219fi
20220
20221fi
20222echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20223echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20224CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20225
20226
20227
20228if
20229  test "x$enable_dependency_tracking" != xno \
20230  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20231  am__fastdepCC_TRUE=
20232  am__fastdepCC_FALSE='#'
20233else
20234  am__fastdepCC_TRUE='#'
20235  am__fastdepCC_FALSE=
20236fi
20237
20238
20239ac_ext=c
20240ac_cpp='$CPP $CPPFLAGS'
20241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20243ac_compiler_gnu=$ac_cv_c_compiler_gnu
20244echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20245echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
20246# On Suns, sometimes $CPP names a directory.
20247if test -n "$CPP" && test -d "$CPP"; then
20248  CPP=
20249fi
20250if test -z "$CPP"; then
20251  if test "${ac_cv_prog_CPP+set}" = set; then
20252  echo $ECHO_N "(cached) $ECHO_C" >&6
20253else
20254      # Double quotes because CPP needs to be expanded
20255    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20256    do
20257      ac_preproc_ok=false
20258for ac_c_preproc_warn_flag in '' yes
20259do
20260  # Use a header file that comes with gcc, so configuring glibc
20261  # with a fresh cross-compiler works.
20262  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20263  # <limits.h> exists even on freestanding compilers.
20264  # On the NeXT, cc -E runs the code through the compiler's parser,
20265  # not just through cpp. "Syntax error" is here to catch this case.
20266  cat >conftest.$ac_ext <<_ACEOF
20267/* confdefs.h.  */
20268_ACEOF
20269cat confdefs.h >>conftest.$ac_ext
20270cat >>conftest.$ac_ext <<_ACEOF
20271/* end confdefs.h.  */
20272#ifdef __STDC__
20273# include <limits.h>
20274#else
20275# include <assert.h>
20276#endif
20277		     Syntax error
20278_ACEOF
20279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20281  ac_status=$?
20282  grep -v '^ *+' conftest.er1 >conftest.err
20283  rm -f conftest.er1
20284  cat conftest.err >&5
20285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286  (exit $ac_status); } >/dev/null; then
20287  if test -s conftest.err; then
20288    ac_cpp_err=$ac_c_preproc_warn_flag
20289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20290  else
20291    ac_cpp_err=
20292  fi
20293else
20294  ac_cpp_err=yes
20295fi
20296if test -z "$ac_cpp_err"; then
20297  :
20298else
20299  echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302  # Broken: fails on valid input.
20303continue
20304fi
20305rm -f conftest.err conftest.$ac_ext
20306
20307  # OK, works on sane cases.  Now check whether non-existent headers
20308  # can be detected and how.
20309  cat >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#include <ac_nonexistent.h>
20316_ACEOF
20317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20319  ac_status=$?
20320  grep -v '^ *+' conftest.er1 >conftest.err
20321  rm -f conftest.er1
20322  cat conftest.err >&5
20323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); } >/dev/null; then
20325  if test -s conftest.err; then
20326    ac_cpp_err=$ac_c_preproc_warn_flag
20327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20328  else
20329    ac_cpp_err=
20330  fi
20331else
20332  ac_cpp_err=yes
20333fi
20334if test -z "$ac_cpp_err"; then
20335  # Broken: success on invalid input.
20336continue
20337else
20338  echo "$as_me: failed program was:" >&5
20339sed 's/^/| /' conftest.$ac_ext >&5
20340
20341  # Passes both tests.
20342ac_preproc_ok=:
20343break
20344fi
20345rm -f conftest.err conftest.$ac_ext
20346
20347done
20348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20349rm -f conftest.err conftest.$ac_ext
20350if $ac_preproc_ok; then
20351  break
20352fi
20353
20354    done
20355    ac_cv_prog_CPP=$CPP
20356
20357fi
20358  CPP=$ac_cv_prog_CPP
20359else
20360  ac_cv_prog_CPP=$CPP
20361fi
20362echo "$as_me:$LINENO: result: $CPP" >&5
20363echo "${ECHO_T}$CPP" >&6
20364ac_preproc_ok=false
20365for ac_c_preproc_warn_flag in '' yes
20366do
20367  # Use a header file that comes with gcc, so configuring glibc
20368  # with a fresh cross-compiler works.
20369  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20370  # <limits.h> exists even on freestanding compilers.
20371  # On the NeXT, cc -E runs the code through the compiler's parser,
20372  # not just through cpp. "Syntax error" is here to catch this case.
20373  cat >conftest.$ac_ext <<_ACEOF
20374/* confdefs.h.  */
20375_ACEOF
20376cat confdefs.h >>conftest.$ac_ext
20377cat >>conftest.$ac_ext <<_ACEOF
20378/* end confdefs.h.  */
20379#ifdef __STDC__
20380# include <limits.h>
20381#else
20382# include <assert.h>
20383#endif
20384		     Syntax error
20385_ACEOF
20386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20388  ac_status=$?
20389  grep -v '^ *+' conftest.er1 >conftest.err
20390  rm -f conftest.er1
20391  cat conftest.err >&5
20392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393  (exit $ac_status); } >/dev/null; then
20394  if test -s conftest.err; then
20395    ac_cpp_err=$ac_c_preproc_warn_flag
20396    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20397  else
20398    ac_cpp_err=
20399  fi
20400else
20401  ac_cpp_err=yes
20402fi
20403if test -z "$ac_cpp_err"; then
20404  :
20405else
20406  echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409  # Broken: fails on valid input.
20410continue
20411fi
20412rm -f conftest.err conftest.$ac_ext
20413
20414  # OK, works on sane cases.  Now check whether non-existent headers
20415  # can be detected and how.
20416  cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h.  */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h.  */
20422#include <ac_nonexistent.h>
20423_ACEOF
20424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20425  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20426  ac_status=$?
20427  grep -v '^ *+' conftest.er1 >conftest.err
20428  rm -f conftest.er1
20429  cat conftest.err >&5
20430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431  (exit $ac_status); } >/dev/null; then
20432  if test -s conftest.err; then
20433    ac_cpp_err=$ac_c_preproc_warn_flag
20434    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20435  else
20436    ac_cpp_err=
20437  fi
20438else
20439  ac_cpp_err=yes
20440fi
20441if test -z "$ac_cpp_err"; then
20442  # Broken: success on invalid input.
20443continue
20444else
20445  echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448  # Passes both tests.
20449ac_preproc_ok=:
20450break
20451fi
20452rm -f conftest.err conftest.$ac_ext
20453
20454done
20455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20456rm -f conftest.err conftest.$ac_ext
20457if $ac_preproc_ok; then
20458  :
20459else
20460  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20461See \`config.log' for more details." >&5
20462echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20463See \`config.log' for more details." >&2;}
20464   { (exit 1); exit 1; }; }
20465fi
20466
20467ac_ext=c
20468ac_cpp='$CPP $CPPFLAGS'
20469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20471ac_compiler_gnu=$ac_cv_c_compiler_gnu
20472
20473# Find a good install program.  We prefer a C program (faster),
20474# so one script is as good as another.  But avoid the broken or
20475# incompatible versions:
20476# SysV /etc/install, /usr/sbin/install
20477# SunOS /usr/etc/install
20478# IRIX /sbin/install
20479# AIX /bin/install
20480# AmigaOS /C/install, which installs bootblocks on floppy discs
20481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20484# OS/2's system install, which has a completely different semantic
20485# ./install, which can be erroneously created by make from ./install.sh.
20486echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20487echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20488if test -z "$INSTALL"; then
20489if test "${ac_cv_path_install+set}" = set; then
20490  echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20493for as_dir in $PATH
20494do
20495  IFS=$as_save_IFS
20496  test -z "$as_dir" && as_dir=.
20497  # Account for people who put trailing slashes in PATH elements.
20498case $as_dir/ in
20499  ./ | .// | /cC/* | \
20500  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20501  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20502  /usr/ucb/* ) ;;
20503  *)
20504    # OSF1 and SCO ODT 3.0 have their own names for install.
20505    # Don't use installbsd from OSF since it installs stuff as root
20506    # by default.
20507    for ac_prog in ginstall scoinst install; do
20508      for ac_exec_ext in '' $ac_executable_extensions; do
20509	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20510	  if test $ac_prog = install &&
20511	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20512	    # AIX install.  It has an incompatible calling convention.
20513	    :
20514	  elif test $ac_prog = install &&
20515	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20516	    # program-specific install script used by HP pwplus--don't use.
20517	    :
20518	  else
20519	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20520	    break 3
20521	  fi
20522	fi
20523      done
20524    done
20525    ;;
20526esac
20527done
20528
20529
20530fi
20531  if test "${ac_cv_path_install+set}" = set; then
20532    INSTALL=$ac_cv_path_install
20533  else
20534    # As a last resort, use the slow shell script.  We don't cache a
20535    # path for INSTALL within a source directory, because that will
20536    # break other packages using the cache if that directory is
20537    # removed, or if the path is relative.
20538    INSTALL=$ac_install_sh
20539  fi
20540fi
20541echo "$as_me:$LINENO: result: $INSTALL" >&5
20542echo "${ECHO_T}$INSTALL" >&6
20543
20544# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20545# It thinks the first close brace ends the variable substitution.
20546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20547
20548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20549
20550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20551
20552echo "$as_me:$LINENO: checking whether ln -s works" >&5
20553echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
20554LN_S=$as_ln_s
20555if test "$LN_S" = "ln -s"; then
20556  echo "$as_me:$LINENO: result: yes" >&5
20557echo "${ECHO_T}yes" >&6
20558else
20559  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20560echo "${ECHO_T}no, using $LN_S" >&6
20561fi
20562
20563echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20564echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20565set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20566if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20567  echo $ECHO_N "(cached) $ECHO_C" >&6
20568else
20569  cat >conftest.make <<\_ACEOF
20570all:
20571	@echo 'ac_maketemp="$(MAKE)"'
20572_ACEOF
20573# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20574eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20575if test -n "$ac_maketemp"; then
20576  eval ac_cv_prog_make_${ac_make}_set=yes
20577else
20578  eval ac_cv_prog_make_${ac_make}_set=no
20579fi
20580rm -f conftest.make
20581fi
20582if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20583  echo "$as_me:$LINENO: result: yes" >&5
20584echo "${ECHO_T}yes" >&6
20585  SET_MAKE=
20586else
20587  echo "$as_me:$LINENO: result: no" >&5
20588echo "${ECHO_T}no" >&6
20589  SET_MAKE="MAKE=${MAKE-make}"
20590fi
20591
20592
20593ac_ext=cc
20594ac_cpp='$CXXCPP $CPPFLAGS'
20595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20598
20599
20600# Checks for libraries.
20601
20602echo "$as_me:$LINENO: checking for cos in -lm" >&5
20603echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20604if test "${ac_cv_lib_m_cos+set}" = set; then
20605  echo $ECHO_N "(cached) $ECHO_C" >&6
20606else
20607  ac_check_lib_save_LIBS=$LIBS
20608LIBS="-lm  $LIBS"
20609cat >conftest.$ac_ext <<_ACEOF
20610/* confdefs.h.  */
20611_ACEOF
20612cat confdefs.h >>conftest.$ac_ext
20613cat >>conftest.$ac_ext <<_ACEOF
20614/* end confdefs.h.  */
20615
20616/* Override any gcc2 internal prototype to avoid an error.  */
20617#ifdef __cplusplus
20618extern "C"
20619#endif
20620/* We use char because int might match the return type of a gcc2
20621   builtin and then its argument prototype would still apply.  */
20622char cos ();
20623int
20624main ()
20625{
20626cos ();
20627  ;
20628  return 0;
20629}
20630_ACEOF
20631rm -f conftest.$ac_objext conftest$ac_exeext
20632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633  (eval $ac_link) 2>conftest.er1
20634  ac_status=$?
20635  grep -v '^ *+' conftest.er1 >conftest.err
20636  rm -f conftest.er1
20637  cat conftest.err >&5
20638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639  (exit $ac_status); } &&
20640	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642  (eval $ac_try) 2>&5
20643  ac_status=$?
20644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645  (exit $ac_status); }; } &&
20646	 { ac_try='test -s conftest$ac_exeext'
20647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648  (eval $ac_try) 2>&5
20649  ac_status=$?
20650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651  (exit $ac_status); }; }; then
20652  ac_cv_lib_m_cos=yes
20653else
20654  echo "$as_me: failed program was:" >&5
20655sed 's/^/| /' conftest.$ac_ext >&5
20656
20657ac_cv_lib_m_cos=no
20658fi
20659rm -f conftest.err conftest.$ac_objext \
20660      conftest$ac_exeext conftest.$ac_ext
20661LIBS=$ac_check_lib_save_LIBS
20662fi
20663echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20664echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20665if test $ac_cv_lib_m_cos = yes; then
20666  cat >>confdefs.h <<_ACEOF
20667#define HAVE_LIBM 1
20668_ACEOF
20669
20670  LIBS="-lm $LIBS"
20671
20672fi
20673
20674
20675# Checks for header files.
20676
20677echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20678echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20679if test "${ac_cv_header_stdc+set}" = set; then
20680  echo $ECHO_N "(cached) $ECHO_C" >&6
20681else
20682  cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h.  */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h.  */
20688#include <stdlib.h>
20689#include <stdarg.h>
20690#include <string.h>
20691#include <float.h>
20692
20693int
20694main ()
20695{
20696
20697  ;
20698  return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703  (eval $ac_compile) 2>conftest.er1
20704  ac_status=$?
20705  grep -v '^ *+' conftest.er1 >conftest.err
20706  rm -f conftest.er1
20707  cat conftest.err >&5
20708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709  (exit $ac_status); } &&
20710	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712  (eval $ac_try) 2>&5
20713  ac_status=$?
20714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715  (exit $ac_status); }; } &&
20716	 { ac_try='test -s conftest.$ac_objext'
20717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718  (eval $ac_try) 2>&5
20719  ac_status=$?
20720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721  (exit $ac_status); }; }; then
20722  ac_cv_header_stdc=yes
20723else
20724  echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727ac_cv_header_stdc=no
20728fi
20729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20730
20731if test $ac_cv_header_stdc = yes; then
20732  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20733  cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h.  */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h.  */
20739#include <string.h>
20740
20741_ACEOF
20742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20743  $EGREP "memchr" >/dev/null 2>&1; then
20744  :
20745else
20746  ac_cv_header_stdc=no
20747fi
20748rm -f conftest*
20749
20750fi
20751
20752if test $ac_cv_header_stdc = yes; then
20753  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20754  cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h.  */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h.  */
20760#include <stdlib.h>
20761
20762_ACEOF
20763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20764  $EGREP "free" >/dev/null 2>&1; then
20765  :
20766else
20767  ac_cv_header_stdc=no
20768fi
20769rm -f conftest*
20770
20771fi
20772
20773if test $ac_cv_header_stdc = yes; then
20774  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20775  if test "$cross_compiling" = yes; then
20776  :
20777else
20778  cat >conftest.$ac_ext <<_ACEOF
20779/* confdefs.h.  */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h.  */
20784#include <ctype.h>
20785#if ((' ' & 0x0FF) == 0x020)
20786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20788#else
20789# define ISLOWER(c) \
20790		   (('a' <= (c) && (c) <= 'i') \
20791		     || ('j' <= (c) && (c) <= 'r') \
20792		     || ('s' <= (c) && (c) <= 'z'))
20793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20794#endif
20795
20796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20797int
20798main ()
20799{
20800  int i;
20801  for (i = 0; i < 256; i++)
20802    if (XOR (islower (i), ISLOWER (i))
20803	|| toupper (i) != TOUPPER (i))
20804      exit(2);
20805  exit (0);
20806}
20807_ACEOF
20808rm -f conftest$ac_exeext
20809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810  (eval $ac_link) 2>&5
20811  ac_status=$?
20812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815  (eval $ac_try) 2>&5
20816  ac_status=$?
20817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818  (exit $ac_status); }; }; then
20819  :
20820else
20821  echo "$as_me: program exited with status $ac_status" >&5
20822echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
20825( exit $ac_status )
20826ac_cv_header_stdc=no
20827fi
20828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20829fi
20830fi
20831fi
20832echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20833echo "${ECHO_T}$ac_cv_header_stdc" >&6
20834if test $ac_cv_header_stdc = yes; then
20835
20836cat >>confdefs.h <<\_ACEOF
20837#define STDC_HEADERS 1
20838_ACEOF
20839
20840fi
20841
20842
20843for ac_header in stdlib.h
20844do
20845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20846if eval "test \"\${$as_ac_Header+set}\" = set"; then
20847  echo "$as_me:$LINENO: checking for $ac_header" >&5
20848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20849if eval "test \"\${$as_ac_Header+set}\" = set"; then
20850  echo $ECHO_N "(cached) $ECHO_C" >&6
20851fi
20852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20854else
20855  # Is the header compilable?
20856echo "$as_me:$LINENO: checking $ac_header usability" >&5
20857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20858cat >conftest.$ac_ext <<_ACEOF
20859/* confdefs.h.  */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h.  */
20864$ac_includes_default
20865#include <$ac_header>
20866_ACEOF
20867rm -f conftest.$ac_objext
20868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20869  (eval $ac_compile) 2>conftest.er1
20870  ac_status=$?
20871  grep -v '^ *+' conftest.er1 >conftest.err
20872  rm -f conftest.er1
20873  cat conftest.err >&5
20874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875  (exit $ac_status); } &&
20876	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878  (eval $ac_try) 2>&5
20879  ac_status=$?
20880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881  (exit $ac_status); }; } &&
20882	 { ac_try='test -s conftest.$ac_objext'
20883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884  (eval $ac_try) 2>&5
20885  ac_status=$?
20886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887  (exit $ac_status); }; }; then
20888  ac_header_compiler=yes
20889else
20890  echo "$as_me: failed program was:" >&5
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893ac_header_compiler=no
20894fi
20895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20897echo "${ECHO_T}$ac_header_compiler" >&6
20898
20899# Is the header present?
20900echo "$as_me:$LINENO: checking $ac_header presence" >&5
20901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20902cat >conftest.$ac_ext <<_ACEOF
20903/* confdefs.h.  */
20904_ACEOF
20905cat confdefs.h >>conftest.$ac_ext
20906cat >>conftest.$ac_ext <<_ACEOF
20907/* end confdefs.h.  */
20908#include <$ac_header>
20909_ACEOF
20910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20911  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20912  ac_status=$?
20913  grep -v '^ *+' conftest.er1 >conftest.err
20914  rm -f conftest.er1
20915  cat conftest.err >&5
20916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917  (exit $ac_status); } >/dev/null; then
20918  if test -s conftest.err; then
20919    ac_cpp_err=$ac_cxx_preproc_warn_flag
20920    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20921  else
20922    ac_cpp_err=
20923  fi
20924else
20925  ac_cpp_err=yes
20926fi
20927if test -z "$ac_cpp_err"; then
20928  ac_header_preproc=yes
20929else
20930  echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933  ac_header_preproc=no
20934fi
20935rm -f conftest.err conftest.$ac_ext
20936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20937echo "${ECHO_T}$ac_header_preproc" >&6
20938
20939# So?  What about this header?
20940case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20941  yes:no: )
20942    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20944    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20946    ac_header_preproc=yes
20947    ;;
20948  no:yes:* )
20949    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20951    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20952echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20953    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20955    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20956echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20957    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20959    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20961    (
20962      cat <<\_ASBOX
20963## ------------------------------------------------- ##
20964## Report this to gleb@deakin.edu.au esteban@v7w.com ##
20965## ------------------------------------------------- ##
20966_ASBOX
20967    ) |
20968      sed "s/^/$as_me: WARNING:     /" >&2
20969    ;;
20970esac
20971echo "$as_me:$LINENO: checking for $ac_header" >&5
20972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20973if eval "test \"\${$as_ac_Header+set}\" = set"; then
20974  echo $ECHO_N "(cached) $ECHO_C" >&6
20975else
20976  eval "$as_ac_Header=\$ac_header_preproc"
20977fi
20978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20980
20981fi
20982if test `eval echo '${'$as_ac_Header'}'` = yes; then
20983  cat >>confdefs.h <<_ACEOF
20984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20985_ACEOF
20986
20987fi
20988
20989done
20990
20991
20992# Checks for typedefs, structures, and compiler characteristics.
20993echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20994echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20995if test "${ac_cv_c_const+set}" = set; then
20996  echo $ECHO_N "(cached) $ECHO_C" >&6
20997else
20998  cat >conftest.$ac_ext <<_ACEOF
20999/* confdefs.h.  */
21000_ACEOF
21001cat confdefs.h >>conftest.$ac_ext
21002cat >>conftest.$ac_ext <<_ACEOF
21003/* end confdefs.h.  */
21004
21005int
21006main ()
21007{
21008/* FIXME: Include the comments suggested by Paul. */
21009#ifndef __cplusplus
21010  /* Ultrix mips cc rejects this.  */
21011  typedef int charset[2];
21012  const charset x;
21013  /* SunOS 4.1.1 cc rejects this.  */
21014  char const *const *ccp;
21015  char **p;
21016  /* NEC SVR4.0.2 mips cc rejects this.  */
21017  struct point {int x, y;};
21018  static struct point const zero = {0,0};
21019  /* AIX XL C 1.02.0.0 rejects this.
21020     It does not let you subtract one const X* pointer from another in
21021     an arm of an if-expression whose if-part is not a constant
21022     expression */
21023  const char *g = "string";
21024  ccp = &g + (g ? g-g : 0);
21025  /* HPUX 7.0 cc rejects these. */
21026  ++ccp;
21027  p = (char**) ccp;
21028  ccp = (char const *const *) p;
21029  { /* SCO 3.2v4 cc rejects this.  */
21030    char *t;
21031    char const *s = 0 ? (char *) 0 : (char const *) 0;
21032
21033    *t++ = 0;
21034  }
21035  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21036    int x[] = {25, 17};
21037    const int *foo = &x[0];
21038    ++foo;
21039  }
21040  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21041    typedef const int *iptr;
21042    iptr p = 0;
21043    ++p;
21044  }
21045  { /* AIX XL C 1.02.0.0 rejects this saying
21046       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21047    struct s { int j; const int *ap[3]; };
21048    struct s *b; b->j = 5;
21049  }
21050  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21051    const int foo = 10;
21052  }
21053#endif
21054
21055  ;
21056  return 0;
21057}
21058_ACEOF
21059rm -f conftest.$ac_objext
21060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061  (eval $ac_compile) 2>conftest.er1
21062  ac_status=$?
21063  grep -v '^ *+' conftest.er1 >conftest.err
21064  rm -f conftest.er1
21065  cat conftest.err >&5
21066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067  (exit $ac_status); } &&
21068	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
21069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070  (eval $ac_try) 2>&5
21071  ac_status=$?
21072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073  (exit $ac_status); }; } &&
21074	 { ac_try='test -s conftest.$ac_objext'
21075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076  (eval $ac_try) 2>&5
21077  ac_status=$?
21078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079  (exit $ac_status); }; }; then
21080  ac_cv_c_const=yes
21081else
21082  echo "$as_me: failed program was:" >&5
21083sed 's/^/| /' conftest.$ac_ext >&5
21084
21085ac_cv_c_const=no
21086fi
21087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21088fi
21089echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21090echo "${ECHO_T}$ac_cv_c_const" >&6
21091if test $ac_cv_c_const = no; then
21092
21093cat >>confdefs.h <<\_ACEOF
21094#define const
21095_ACEOF
21096
21097fi
21098
21099echo "$as_me:$LINENO: checking for inline" >&5
21100echo $ECHO_N "checking for inline... $ECHO_C" >&6
21101if test "${ac_cv_c_inline+set}" = set; then
21102  echo $ECHO_N "(cached) $ECHO_C" >&6
21103else
21104  ac_cv_c_inline=no
21105for ac_kw in inline __inline__ __inline; do
21106  cat >conftest.$ac_ext <<_ACEOF
21107/* confdefs.h.  */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h.  */
21112#ifndef __cplusplus
21113typedef int foo_t;
21114static $ac_kw foo_t static_foo () {return 0; }
21115$ac_kw foo_t foo () {return 0; }
21116#endif
21117
21118_ACEOF
21119rm -f conftest.$ac_objext
21120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21121  (eval $ac_compile) 2>conftest.er1
21122  ac_status=$?
21123  grep -v '^ *+' conftest.er1 >conftest.err
21124  rm -f conftest.er1
21125  cat conftest.err >&5
21126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127  (exit $ac_status); } &&
21128	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
21129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130  (eval $ac_try) 2>&5
21131  ac_status=$?
21132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133  (exit $ac_status); }; } &&
21134	 { ac_try='test -s conftest.$ac_objext'
21135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136  (eval $ac_try) 2>&5
21137  ac_status=$?
21138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139  (exit $ac_status); }; }; then
21140  ac_cv_c_inline=$ac_kw; break
21141else
21142  echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
21145fi
21146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21147done
21148
21149fi
21150echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21151echo "${ECHO_T}$ac_cv_c_inline" >&6
21152
21153
21154case $ac_cv_c_inline in
21155  inline | yes) ;;
21156  *)
21157    case $ac_cv_c_inline in
21158      no) ac_val=;;
21159      *) ac_val=$ac_cv_c_inline;;
21160    esac
21161    cat >>confdefs.h <<_ACEOF
21162#ifndef __cplusplus
21163#define inline $ac_val
21164#endif
21165_ACEOF
21166    ;;
21167esac
21168
21169echo "$as_me:$LINENO: checking for size_t" >&5
21170echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21171if test "${ac_cv_type_size_t+set}" = set; then
21172  echo $ECHO_N "(cached) $ECHO_C" >&6
21173else
21174  cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h.  */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h.  */
21180$ac_includes_default
21181int
21182main ()
21183{
21184if ((size_t *) 0)
21185  return 0;
21186if (sizeof (size_t))
21187  return 0;
21188  ;
21189  return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext
21193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194  (eval $ac_compile) 2>conftest.er1
21195  ac_status=$?
21196  grep -v '^ *+' conftest.er1 >conftest.err
21197  rm -f conftest.er1
21198  cat conftest.err >&5
21199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200  (exit $ac_status); } &&
21201	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
21202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203  (eval $ac_try) 2>&5
21204  ac_status=$?
21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); }; } &&
21207	 { ac_try='test -s conftest.$ac_objext'
21208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209  (eval $ac_try) 2>&5
21210  ac_status=$?
21211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212  (exit $ac_status); }; }; then
21213  ac_cv_type_size_t=yes
21214else
21215  echo "$as_me: failed program was:" >&5
21216sed 's/^/| /' conftest.$ac_ext >&5
21217
21218ac_cv_type_size_t=no
21219fi
21220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21221fi
21222echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21223echo "${ECHO_T}$ac_cv_type_size_t" >&6
21224if test $ac_cv_type_size_t = yes; then
21225  :
21226else
21227
21228cat >>confdefs.h <<_ACEOF
21229#define size_t unsigned
21230_ACEOF
21231
21232fi
21233
21234
21235# Checks for library functions.
21236
21237for ac_header in stdlib.h
21238do
21239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21240if eval "test \"\${$as_ac_Header+set}\" = set"; then
21241  echo "$as_me:$LINENO: checking for $ac_header" >&5
21242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21243if eval "test \"\${$as_ac_Header+set}\" = set"; then
21244  echo $ECHO_N "(cached) $ECHO_C" >&6
21245fi
21246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21248else
21249  # Is the header compilable?
21250echo "$as_me:$LINENO: checking $ac_header usability" >&5
21251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21252cat >conftest.$ac_ext <<_ACEOF
21253/* confdefs.h.  */
21254_ACEOF
21255cat confdefs.h >>conftest.$ac_ext
21256cat >>conftest.$ac_ext <<_ACEOF
21257/* end confdefs.h.  */
21258$ac_includes_default
21259#include <$ac_header>
21260_ACEOF
21261rm -f conftest.$ac_objext
21262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21263  (eval $ac_compile) 2>conftest.er1
21264  ac_status=$?
21265  grep -v '^ *+' conftest.er1 >conftest.err
21266  rm -f conftest.er1
21267  cat conftest.err >&5
21268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269  (exit $ac_status); } &&
21270	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
21271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272  (eval $ac_try) 2>&5
21273  ac_status=$?
21274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275  (exit $ac_status); }; } &&
21276	 { ac_try='test -s conftest.$ac_objext'
21277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278  (eval $ac_try) 2>&5
21279  ac_status=$?
21280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281  (exit $ac_status); }; }; then
21282  ac_header_compiler=yes
21283else
21284  echo "$as_me: failed program was:" >&5
21285sed 's/^/| /' conftest.$ac_ext >&5
21286
21287ac_header_compiler=no
21288fi
21289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21291echo "${ECHO_T}$ac_header_compiler" >&6
21292
21293# Is the header present?
21294echo "$as_me:$LINENO: checking $ac_header presence" >&5
21295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21296cat >conftest.$ac_ext <<_ACEOF
21297/* confdefs.h.  */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h.  */
21302#include <$ac_header>
21303_ACEOF
21304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21305  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21306  ac_status=$?
21307  grep -v '^ *+' conftest.er1 >conftest.err
21308  rm -f conftest.er1
21309  cat conftest.err >&5
21310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311  (exit $ac_status); } >/dev/null; then
21312  if test -s conftest.err; then
21313    ac_cpp_err=$ac_cxx_preproc_warn_flag
21314    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21315  else
21316    ac_cpp_err=
21317  fi
21318else
21319  ac_cpp_err=yes
21320fi
21321if test -z "$ac_cpp_err"; then
21322  ac_header_preproc=yes
21323else
21324  echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327  ac_header_preproc=no
21328fi
21329rm -f conftest.err conftest.$ac_ext
21330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21331echo "${ECHO_T}$ac_header_preproc" >&6
21332
21333# So?  What about this header?
21334case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21335  yes:no: )
21336    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21340    ac_header_preproc=yes
21341    ;;
21342  no:yes:* )
21343    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21345    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21346echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21347    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21349    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21350echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21353    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21355    (
21356      cat <<\_ASBOX
21357## ------------------------------------------------- ##
21358## Report this to gleb@deakin.edu.au esteban@v7w.com ##
21359## ------------------------------------------------- ##
21360_ASBOX
21361    ) |
21362      sed "s/^/$as_me: WARNING:     /" >&2
21363    ;;
21364esac
21365echo "$as_me:$LINENO: checking for $ac_header" >&5
21366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21367if eval "test \"\${$as_ac_Header+set}\" = set"; then
21368  echo $ECHO_N "(cached) $ECHO_C" >&6
21369else
21370  eval "$as_ac_Header=\$ac_header_preproc"
21371fi
21372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21374
21375fi
21376if test `eval echo '${'$as_ac_Header'}'` = yes; then
21377  cat >>confdefs.h <<_ACEOF
21378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379_ACEOF
21380
21381fi
21382
21383done
21384
21385echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21386echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21387if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21388  echo $ECHO_N "(cached) $ECHO_C" >&6
21389else
21390  if test "$cross_compiling" = yes; then
21391  ac_cv_func_malloc_0_nonnull=no
21392else
21393  cat >conftest.$ac_ext <<_ACEOF
21394/* confdefs.h.  */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h.  */
21399#if STDC_HEADERS || HAVE_STDLIB_H
21400# include <stdlib.h>
21401#else
21402char *malloc ();
21403#endif
21404
21405int
21406main ()
21407{
21408exit (malloc (0) ? 0 : 1);
21409  ;
21410  return 0;
21411}
21412_ACEOF
21413rm -f conftest$ac_exeext
21414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415  (eval $ac_link) 2>&5
21416  ac_status=$?
21417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420  (eval $ac_try) 2>&5
21421  ac_status=$?
21422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423  (exit $ac_status); }; }; then
21424  ac_cv_func_malloc_0_nonnull=yes
21425else
21426  echo "$as_me: program exited with status $ac_status" >&5
21427echo "$as_me: failed program was:" >&5
21428sed 's/^/| /' conftest.$ac_ext >&5
21429
21430( exit $ac_status )
21431ac_cv_func_malloc_0_nonnull=no
21432fi
21433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21434fi
21435fi
21436echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21437echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21438if test $ac_cv_func_malloc_0_nonnull = yes; then
21439
21440cat >>confdefs.h <<\_ACEOF
21441#define HAVE_MALLOC 1
21442_ACEOF
21443
21444else
21445  cat >>confdefs.h <<\_ACEOF
21446#define HAVE_MALLOC 0
21447_ACEOF
21448
21449   case $LIBOBJS in
21450    "malloc.$ac_objext"   | \
21451  *" malloc.$ac_objext"   | \
21452    "malloc.$ac_objext "* | \
21453  *" malloc.$ac_objext "* ) ;;
21454  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21455esac
21456
21457
21458cat >>confdefs.h <<\_ACEOF
21459#define malloc rpl_malloc
21460_ACEOF
21461
21462fi
21463
21464
21465
21466
21467                    ac_config_files="$ac_config_files Makefile src/Makefile"
21468
21469cat >confcache <<\_ACEOF
21470# This file is a shell script that caches the results of configure
21471# tests run on this system so they can be shared between configure
21472# scripts and configure runs, see configure's option --config-cache.
21473# It is not useful on other systems.  If it contains results you don't
21474# want to keep, you may remove or edit it.
21475#
21476# config.status only pays attention to the cache file if you give it
21477# the --recheck option to rerun configure.
21478#
21479# `ac_cv_env_foo' variables (set or unset) will be overridden when
21480# loading this file, other *unset* `ac_cv_foo' will be assigned the
21481# following values.
21482
21483_ACEOF
21484
21485# The following way of writing the cache mishandles newlines in values,
21486# but we know of no workaround that is simple, portable, and efficient.
21487# So, don't put newlines in cache variables' values.
21488# Ultrix sh set writes to stderr and can't be redirected directly,
21489# and sets the high bit in the cache file unless we assign to the vars.
21490{
21491  (set) 2>&1 |
21492    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21493    *ac_space=\ *)
21494      # `set' does not quote correctly, so add quotes (double-quote
21495      # substitution turns \\\\ into \\, and sed turns \\ into \).
21496      sed -n \
21497	"s/'/'\\\\''/g;
21498	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21499      ;;
21500    *)
21501      # `set' quotes correctly as required by POSIX, so do not add quotes.
21502      sed -n \
21503	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21504      ;;
21505    esac;
21506} |
21507  sed '
21508     t clear
21509     : clear
21510     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21511     t end
21512     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21513     : end' >>confcache
21514if diff $cache_file confcache >/dev/null 2>&1; then :; else
21515  if test -w $cache_file; then
21516    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21517    cat confcache >$cache_file
21518  else
21519    echo "not updating unwritable cache $cache_file"
21520  fi
21521fi
21522rm -f confcache
21523
21524test "x$prefix" = xNONE && prefix=$ac_default_prefix
21525# Let make expand exec_prefix.
21526test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21527
21528# VPATH may cause trouble with some makes, so we remove $(srcdir),
21529# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21530# trailing colons and then remove the whole line if VPATH becomes empty
21531# (actually we leave an empty line to preserve line numbers).
21532if test "x$srcdir" = x.; then
21533  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21534s/:*\$(srcdir):*/:/;
21535s/:*\${srcdir}:*/:/;
21536s/:*@srcdir@:*/:/;
21537s/^\([^=]*=[	 ]*\):*/\1/;
21538s/:*$//;
21539s/^[^=]*=[	 ]*$//;
21540}'
21541fi
21542
21543DEFS=-DHAVE_CONFIG_H
21544
21545ac_libobjs=
21546ac_ltlibobjs=
21547for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21548  # 1. Remove the extension, and $U if already installed.
21549  ac_i=`echo "$ac_i" |
21550	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21551  # 2. Add them.
21552  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21553  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21554done
21555LIBOBJS=$ac_libobjs
21556
21557LTLIBOBJS=$ac_ltlibobjs
21558
21559
21560if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21561  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21562Usually this means the macro was only invoked conditionally." >&5
21563echo "$as_me: error: conditional \"AMDEP\" was never defined.
21564Usually this means the macro was only invoked conditionally." >&2;}
21565   { (exit 1); exit 1; }; }
21566fi
21567if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21568  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21569Usually this means the macro was only invoked conditionally." >&5
21570echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21571Usually this means the macro was only invoked conditionally." >&2;}
21572   { (exit 1); exit 1; }; }
21573fi
21574if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21575  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21576Usually this means the macro was only invoked conditionally." >&5
21577echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21578Usually this means the macro was only invoked conditionally." >&2;}
21579   { (exit 1); exit 1; }; }
21580fi
21581if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21582  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21583Usually this means the macro was only invoked conditionally." >&5
21584echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21585Usually this means the macro was only invoked conditionally." >&2;}
21586   { (exit 1); exit 1; }; }
21587fi
21588if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21589  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21590Usually this means the macro was only invoked conditionally." >&5
21591echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21592Usually this means the macro was only invoked conditionally." >&2;}
21593   { (exit 1); exit 1; }; }
21594fi
21595
21596: ${CONFIG_STATUS=./config.status}
21597ac_clean_files_save=$ac_clean_files
21598ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21599{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21600echo "$as_me: creating $CONFIG_STATUS" >&6;}
21601cat >$CONFIG_STATUS <<_ACEOF
21602#! $SHELL
21603# Generated by $as_me.
21604# Run this file to recreate the current configuration.
21605# Compiler output produced by configure, useful for debugging
21606# configure, is in config.log if it exists.
21607
21608debug=false
21609ac_cs_recheck=false
21610ac_cs_silent=false
21611SHELL=\${CONFIG_SHELL-$SHELL}
21612_ACEOF
21613
21614cat >>$CONFIG_STATUS <<\_ACEOF
21615## --------------------- ##
21616## M4sh Initialization.  ##
21617## --------------------- ##
21618
21619# Be Bourne compatible
21620if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21621  emulate sh
21622  NULLCMD=:
21623  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21624  # is contrary to our usage.  Disable this feature.
21625  alias -g '${1+"$@"}'='"$@"'
21626elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21627  set -o posix
21628fi
21629DUALCASE=1; export DUALCASE # for MKS sh
21630
21631# Support unset when possible.
21632if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21633  as_unset=unset
21634else
21635  as_unset=false
21636fi
21637
21638
21639# Work around bugs in pre-3.0 UWIN ksh.
21640$as_unset ENV MAIL MAILPATH
21641PS1='$ '
21642PS2='> '
21643PS4='+ '
21644
21645# NLS nuisances.
21646for as_var in \
21647  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21648  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21649  LC_TELEPHONE LC_TIME
21650do
21651  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21652    eval $as_var=C; export $as_var
21653  else
21654    $as_unset $as_var
21655  fi
21656done
21657
21658# Required to use basename.
21659if expr a : '\(a\)' >/dev/null 2>&1; then
21660  as_expr=expr
21661else
21662  as_expr=false
21663fi
21664
21665if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21666  as_basename=basename
21667else
21668  as_basename=false
21669fi
21670
21671
21672# Name of the executable.
21673as_me=`$as_basename "$0" ||
21674$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21675	 X"$0" : 'X\(//\)$' \| \
21676	 X"$0" : 'X\(/\)$' \| \
21677	 .     : '\(.\)' 2>/dev/null ||
21678echo X/"$0" |
21679    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21680  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21681  	  /^X\/\(\/\).*/{ s//\1/; q; }
21682  	  s/.*/./; q'`
21683
21684
21685# PATH needs CR, and LINENO needs CR and PATH.
21686# Avoid depending upon Character Ranges.
21687as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21688as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21689as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21690as_cr_digits='0123456789'
21691as_cr_alnum=$as_cr_Letters$as_cr_digits
21692
21693# The user is always right.
21694if test "${PATH_SEPARATOR+set}" != set; then
21695  echo "#! /bin/sh" >conf$$.sh
21696  echo  "exit 0"   >>conf$$.sh
21697  chmod +x conf$$.sh
21698  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21699    PATH_SEPARATOR=';'
21700  else
21701    PATH_SEPARATOR=:
21702  fi
21703  rm -f conf$$.sh
21704fi
21705
21706
21707  as_lineno_1=$LINENO
21708  as_lineno_2=$LINENO
21709  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21710  test "x$as_lineno_1" != "x$as_lineno_2" &&
21711  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21712  # Find who we are.  Look in the path if we contain no path at all
21713  # relative or not.
21714  case $0 in
21715    *[\\/]* ) as_myself=$0 ;;
21716    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21717for as_dir in $PATH
21718do
21719  IFS=$as_save_IFS
21720  test -z "$as_dir" && as_dir=.
21721  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21722done
21723
21724       ;;
21725  esac
21726  # We did not find ourselves, most probably we were run as `sh COMMAND'
21727  # in which case we are not to be found in the path.
21728  if test "x$as_myself" = x; then
21729    as_myself=$0
21730  fi
21731  if test ! -f "$as_myself"; then
21732    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21733echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21734   { (exit 1); exit 1; }; }
21735  fi
21736  case $CONFIG_SHELL in
21737  '')
21738    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21739for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21740do
21741  IFS=$as_save_IFS
21742  test -z "$as_dir" && as_dir=.
21743  for as_base in sh bash ksh sh5; do
21744	 case $as_dir in
21745	 /*)
21746	   if ("$as_dir/$as_base" -c '
21747  as_lineno_1=$LINENO
21748  as_lineno_2=$LINENO
21749  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21750  test "x$as_lineno_1" != "x$as_lineno_2" &&
21751  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21752	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21753	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21754	     CONFIG_SHELL=$as_dir/$as_base
21755	     export CONFIG_SHELL
21756	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21757	   fi;;
21758	 esac
21759       done
21760done
21761;;
21762  esac
21763
21764  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21765  # uniformly replaced by the line number.  The first 'sed' inserts a
21766  # line-number line before each line; the second 'sed' does the real
21767  # work.  The second script uses 'N' to pair each line-number line
21768  # with the numbered line, and appends trailing '-' during
21769  # substitution so that $LINENO is not a special case at line end.
21770  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21771  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21772  sed '=' <$as_myself |
21773    sed '
21774      N
21775      s,$,-,
21776      : loop
21777      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21778      t loop
21779      s,-$,,
21780      s,^['$as_cr_digits']*\n,,
21781    ' >$as_me.lineno &&
21782  chmod +x $as_me.lineno ||
21783    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21784echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21785   { (exit 1); exit 1; }; }
21786
21787  # Don't try to exec as it changes $[0], causing all sort of problems
21788  # (the dirname of $[0] is not the place where we might find the
21789  # original and so on.  Autoconf is especially sensible to this).
21790  . ./$as_me.lineno
21791  # Exit status is that of the last command.
21792  exit
21793}
21794
21795
21796case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21797  *c*,-n*) ECHO_N= ECHO_C='
21798' ECHO_T='	' ;;
21799  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21800  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21801esac
21802
21803if expr a : '\(a\)' >/dev/null 2>&1; then
21804  as_expr=expr
21805else
21806  as_expr=false
21807fi
21808
21809rm -f conf$$ conf$$.exe conf$$.file
21810echo >conf$$.file
21811if ln -s conf$$.file conf$$ 2>/dev/null; then
21812  # We could just check for DJGPP; but this test a) works b) is more generic
21813  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21814  if test -f conf$$.exe; then
21815    # Don't use ln at all; we don't have any links
21816    as_ln_s='cp -p'
21817  else
21818    as_ln_s='ln -s'
21819  fi
21820elif ln conf$$.file conf$$ 2>/dev/null; then
21821  as_ln_s=ln
21822else
21823  as_ln_s='cp -p'
21824fi
21825rm -f conf$$ conf$$.exe conf$$.file
21826
21827if mkdir -p . 2>/dev/null; then
21828  as_mkdir_p=:
21829else
21830  test -d ./-p && rmdir ./-p
21831  as_mkdir_p=false
21832fi
21833
21834as_executable_p="test -f"
21835
21836# Sed expression to map a string onto a valid CPP name.
21837as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21838
21839# Sed expression to map a string onto a valid variable name.
21840as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21841
21842
21843# IFS
21844# We need space, tab and new line, in precisely that order.
21845as_nl='
21846'
21847IFS=" 	$as_nl"
21848
21849# CDPATH.
21850$as_unset CDPATH
21851
21852exec 6>&1
21853
21854# Open the log real soon, to keep \$[0] and so on meaningful, and to
21855# report actual input values of CONFIG_FILES etc. instead of their
21856# values after options handling.  Logging --version etc. is OK.
21857exec 5>>config.log
21858{
21859  echo
21860  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21861## Running $as_me. ##
21862_ASBOX
21863} >&5
21864cat >&5 <<_CSEOF
21865
21866This file was extended by libranlip $as_me 1.0, which was
21867generated by GNU Autoconf 2.59.  Invocation command line was
21868
21869  CONFIG_FILES    = $CONFIG_FILES
21870  CONFIG_HEADERS  = $CONFIG_HEADERS
21871  CONFIG_LINKS    = $CONFIG_LINKS
21872  CONFIG_COMMANDS = $CONFIG_COMMANDS
21873  $ $0 $@
21874
21875_CSEOF
21876echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21877echo >&5
21878_ACEOF
21879
21880# Files that config.status was made for.
21881if test -n "$ac_config_files"; then
21882  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21883fi
21884
21885if test -n "$ac_config_headers"; then
21886  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21887fi
21888
21889if test -n "$ac_config_links"; then
21890  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21891fi
21892
21893if test -n "$ac_config_commands"; then
21894  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21895fi
21896
21897cat >>$CONFIG_STATUS <<\_ACEOF
21898
21899ac_cs_usage="\
21900\`$as_me' instantiates files from templates according to the
21901current configuration.
21902
21903Usage: $0 [OPTIONS] [FILE]...
21904
21905  -h, --help       print this help, then exit
21906  -V, --version    print version number, then exit
21907  -q, --quiet      do not print progress messages
21908  -d, --debug      don't remove temporary files
21909      --recheck    update $as_me by reconfiguring in the same conditions
21910  --file=FILE[:TEMPLATE]
21911		   instantiate the configuration file FILE
21912  --header=FILE[:TEMPLATE]
21913		   instantiate the configuration header FILE
21914
21915Configuration files:
21916$config_files
21917
21918Configuration headers:
21919$config_headers
21920
21921Configuration commands:
21922$config_commands
21923
21924Report bugs to <bug-autoconf@gnu.org>."
21925_ACEOF
21926
21927cat >>$CONFIG_STATUS <<_ACEOF
21928ac_cs_version="\\
21929libranlip config.status 1.0
21930configured by $0, generated by GNU Autoconf 2.59,
21931  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21932
21933Copyright (C) 2003 Free Software Foundation, Inc.
21934This config.status script is free software; the Free Software Foundation
21935gives unlimited permission to copy, distribute and modify it."
21936srcdir=$srcdir
21937INSTALL="$INSTALL"
21938_ACEOF
21939
21940cat >>$CONFIG_STATUS <<\_ACEOF
21941# If no file are specified by the user, then we need to provide default
21942# value.  By we need to know if files were specified by the user.
21943ac_need_defaults=:
21944while test $# != 0
21945do
21946  case $1 in
21947  --*=*)
21948    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21949    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21950    ac_shift=:
21951    ;;
21952  -*)
21953    ac_option=$1
21954    ac_optarg=$2
21955    ac_shift=shift
21956    ;;
21957  *) # This is not an option, so the user has probably given explicit
21958     # arguments.
21959     ac_option=$1
21960     ac_need_defaults=false;;
21961  esac
21962
21963  case $ac_option in
21964  # Handling of the options.
21965_ACEOF
21966cat >>$CONFIG_STATUS <<\_ACEOF
21967  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21968    ac_cs_recheck=: ;;
21969  --version | --vers* | -V )
21970    echo "$ac_cs_version"; exit 0 ;;
21971  --he | --h)
21972    # Conflict between --help and --header
21973    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21974Try \`$0 --help' for more information." >&5
21975echo "$as_me: error: ambiguous option: $1
21976Try \`$0 --help' for more information." >&2;}
21977   { (exit 1); exit 1; }; };;
21978  --help | --hel | -h )
21979    echo "$ac_cs_usage"; exit 0 ;;
21980  --debug | --d* | -d )
21981    debug=: ;;
21982  --file | --fil | --fi | --f )
21983    $ac_shift
21984    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21985    ac_need_defaults=false;;
21986  --header | --heade | --head | --hea )
21987    $ac_shift
21988    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21989    ac_need_defaults=false;;
21990  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21991  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21992    ac_cs_silent=: ;;
21993
21994  # This is an error.
21995  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21996Try \`$0 --help' for more information." >&5
21997echo "$as_me: error: unrecognized option: $1
21998Try \`$0 --help' for more information." >&2;}
21999   { (exit 1); exit 1; }; } ;;
22000
22001  *) ac_config_targets="$ac_config_targets $1" ;;
22002
22003  esac
22004  shift
22005done
22006
22007ac_configure_extra_args=
22008
22009if $ac_cs_silent; then
22010  exec 6>/dev/null
22011  ac_configure_extra_args="$ac_configure_extra_args --silent"
22012fi
22013
22014_ACEOF
22015cat >>$CONFIG_STATUS <<_ACEOF
22016if \$ac_cs_recheck; then
22017  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22018  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22019fi
22020
22021_ACEOF
22022
22023cat >>$CONFIG_STATUS <<_ACEOF
22024#
22025# INIT-COMMANDS section.
22026#
22027
22028AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22029
22030_ACEOF
22031
22032
22033
22034cat >>$CONFIG_STATUS <<\_ACEOF
22035for ac_config_target in $ac_config_targets
22036do
22037  case "$ac_config_target" in
22038  # Handling of arguments.
22039  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22040  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22041  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22042  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22043  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22044echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22045   { (exit 1); exit 1; }; };;
22046  esac
22047done
22048
22049# If the user did not use the arguments to specify the items to instantiate,
22050# then the envvar interface is used.  Set only those that are not.
22051# We use the long form for the default assignment because of an extremely
22052# bizarre bug on SunOS 4.1.3.
22053if $ac_need_defaults; then
22054  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22055  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22056  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22057fi
22058
22059# Have a temporary directory for convenience.  Make it in the build tree
22060# simply because there is no reason to put it here, and in addition,
22061# creating and moving files from /tmp can sometimes cause problems.
22062# Create a temporary directory, and hook for its removal unless debugging.
22063$debug ||
22064{
22065  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22066  trap '{ (exit 1); exit 1; }' 1 2 13 15
22067}
22068
22069# Create a (secure) tmp directory for tmp files.
22070
22071{
22072  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22073  test -n "$tmp" && test -d "$tmp"
22074}  ||
22075{
22076  tmp=./confstat$$-$RANDOM
22077  (umask 077 && mkdir $tmp)
22078} ||
22079{
22080   echo "$me: cannot create a temporary directory in ." >&2
22081   { (exit 1); exit 1; }
22082}
22083
22084_ACEOF
22085
22086cat >>$CONFIG_STATUS <<_ACEOF
22087
22088#
22089# CONFIG_FILES section.
22090#
22091
22092# No need to generate the scripts if there are no CONFIG_FILES.
22093# This happens for instance when ./config.status config.h
22094if test -n "\$CONFIG_FILES"; then
22095  # Protect against being on the right side of a sed subst in config.status.
22096  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22097   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22098s,@SHELL@,$SHELL,;t t
22099s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22100s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22101s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22102s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22103s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22104s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22105s,@exec_prefix@,$exec_prefix,;t t
22106s,@prefix@,$prefix,;t t
22107s,@program_transform_name@,$program_transform_name,;t t
22108s,@bindir@,$bindir,;t t
22109s,@sbindir@,$sbindir,;t t
22110s,@libexecdir@,$libexecdir,;t t
22111s,@datadir@,$datadir,;t t
22112s,@sysconfdir@,$sysconfdir,;t t
22113s,@sharedstatedir@,$sharedstatedir,;t t
22114s,@localstatedir@,$localstatedir,;t t
22115s,@libdir@,$libdir,;t t
22116s,@includedir@,$includedir,;t t
22117s,@oldincludedir@,$oldincludedir,;t t
22118s,@infodir@,$infodir,;t t
22119s,@mandir@,$mandir,;t t
22120s,@build_alias@,$build_alias,;t t
22121s,@host_alias@,$host_alias,;t t
22122s,@target_alias@,$target_alias,;t t
22123s,@DEFS@,$DEFS,;t t
22124s,@ECHO_C@,$ECHO_C,;t t
22125s,@ECHO_N@,$ECHO_N,;t t
22126s,@ECHO_T@,$ECHO_T,;t t
22127s,@LIBS@,$LIBS,;t t
22128s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22129s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22130s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22131s,@CYGPATH_W@,$CYGPATH_W,;t t
22132s,@PACKAGE@,$PACKAGE,;t t
22133s,@VERSION@,$VERSION,;t t
22134s,@ACLOCAL@,$ACLOCAL,;t t
22135s,@AUTOCONF@,$AUTOCONF,;t t
22136s,@AUTOMAKE@,$AUTOMAKE,;t t
22137s,@AUTOHEADER@,$AUTOHEADER,;t t
22138s,@MAKEINFO@,$MAKEINFO,;t t
22139s,@AMTAR@,$AMTAR,;t t
22140s,@install_sh@,$install_sh,;t t
22141s,@STRIP@,$STRIP,;t t
22142s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22143s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22144s,@AWK@,$AWK,;t t
22145s,@SET_MAKE@,$SET_MAKE,;t t
22146s,@am__leading_dot@,$am__leading_dot,;t t
22147s,@build@,$build,;t t
22148s,@build_cpu@,$build_cpu,;t t
22149s,@build_vendor@,$build_vendor,;t t
22150s,@build_os@,$build_os,;t t
22151s,@host@,$host,;t t
22152s,@host_cpu@,$host_cpu,;t t
22153s,@host_vendor@,$host_vendor,;t t
22154s,@host_os@,$host_os,;t t
22155s,@CC@,$CC,;t t
22156s,@CFLAGS@,$CFLAGS,;t t
22157s,@LDFLAGS@,$LDFLAGS,;t t
22158s,@CPPFLAGS@,$CPPFLAGS,;t t
22159s,@ac_ct_CC@,$ac_ct_CC,;t t
22160s,@EXEEXT@,$EXEEXT,;t t
22161s,@OBJEXT@,$OBJEXT,;t t
22162s,@DEPDIR@,$DEPDIR,;t t
22163s,@am__include@,$am__include,;t t
22164s,@am__quote@,$am__quote,;t t
22165s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22166s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22167s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22168s,@CCDEPMODE@,$CCDEPMODE,;t t
22169s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22170s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22171s,@EGREP@,$EGREP,;t t
22172s,@LN_S@,$LN_S,;t t
22173s,@ECHO@,$ECHO,;t t
22174s,@AR@,$AR,;t t
22175s,@ac_ct_AR@,$ac_ct_AR,;t t
22176s,@RANLIB@,$RANLIB,;t t
22177s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22178s,@CPP@,$CPP,;t t
22179s,@CXX@,$CXX,;t t
22180s,@CXXFLAGS@,$CXXFLAGS,;t t
22181s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22182s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22183s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22184s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22185s,@CXXCPP@,$CXXCPP,;t t
22186s,@F77@,$F77,;t t
22187s,@FFLAGS@,$FFLAGS,;t t
22188s,@ac_ct_F77@,$ac_ct_F77,;t t
22189s,@LIBTOOL@,$LIBTOOL,;t t
22190s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22191s,@LIBOBJS@,$LIBOBJS,;t t
22192s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22193CEOF
22194
22195_ACEOF
22196
22197  cat >>$CONFIG_STATUS <<\_ACEOF
22198  # Split the substitutions into bite-sized pieces for seds with
22199  # small command number limits, like on Digital OSF/1 and HP-UX.
22200  ac_max_sed_lines=48
22201  ac_sed_frag=1 # Number of current file.
22202  ac_beg=1 # First line for current file.
22203  ac_end=$ac_max_sed_lines # Line after last line for current file.
22204  ac_more_lines=:
22205  ac_sed_cmds=
22206  while $ac_more_lines; do
22207    if test $ac_beg -gt 1; then
22208      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22209    else
22210      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22211    fi
22212    if test ! -s $tmp/subs.frag; then
22213      ac_more_lines=false
22214    else
22215      # The purpose of the label and of the branching condition is to
22216      # speed up the sed processing (if there are no `@' at all, there
22217      # is no need to browse any of the substitutions).
22218      # These are the two extra sed commands mentioned above.
22219      (echo ':t
22220  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22221      if test -z "$ac_sed_cmds"; then
22222	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22223      else
22224	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22225      fi
22226      ac_sed_frag=`expr $ac_sed_frag + 1`
22227      ac_beg=$ac_end
22228      ac_end=`expr $ac_end + $ac_max_sed_lines`
22229    fi
22230  done
22231  if test -z "$ac_sed_cmds"; then
22232    ac_sed_cmds=cat
22233  fi
22234fi # test -n "$CONFIG_FILES"
22235
22236_ACEOF
22237cat >>$CONFIG_STATUS <<\_ACEOF
22238for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22239  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22240  case $ac_file in
22241  - | *:- | *:-:* ) # input from stdin
22242	cat >$tmp/stdin
22243	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22244	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22245  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22246	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22247  * )   ac_file_in=$ac_file.in ;;
22248  esac
22249
22250  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22251  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22252$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22253	 X"$ac_file" : 'X\(//\)[^/]' \| \
22254	 X"$ac_file" : 'X\(//\)$' \| \
22255	 X"$ac_file" : 'X\(/\)' \| \
22256	 .     : '\(.\)' 2>/dev/null ||
22257echo X"$ac_file" |
22258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22259  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22260  	  /^X\(\/\/\)$/{ s//\1/; q; }
22261  	  /^X\(\/\).*/{ s//\1/; q; }
22262  	  s/.*/./; q'`
22263  { if $as_mkdir_p; then
22264    mkdir -p "$ac_dir"
22265  else
22266    as_dir="$ac_dir"
22267    as_dirs=
22268    while test ! -d "$as_dir"; do
22269      as_dirs="$as_dir $as_dirs"
22270      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272	 X"$as_dir" : 'X\(//\)[^/]' \| \
22273	 X"$as_dir" : 'X\(//\)$' \| \
22274	 X"$as_dir" : 'X\(/\)' \| \
22275	 .     : '\(.\)' 2>/dev/null ||
22276echo X"$as_dir" |
22277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22278  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22279  	  /^X\(\/\/\)$/{ s//\1/; q; }
22280  	  /^X\(\/\).*/{ s//\1/; q; }
22281  	  s/.*/./; q'`
22282    done
22283    test ! -n "$as_dirs" || mkdir $as_dirs
22284  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22285echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22286   { (exit 1); exit 1; }; }; }
22287
22288  ac_builddir=.
22289
22290if test "$ac_dir" != .; then
22291  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22292  # A "../" for each directory in $ac_dir_suffix.
22293  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22294else
22295  ac_dir_suffix= ac_top_builddir=
22296fi
22297
22298case $srcdir in
22299  .)  # No --srcdir option.  We are building in place.
22300    ac_srcdir=.
22301    if test -z "$ac_top_builddir"; then
22302       ac_top_srcdir=.
22303    else
22304       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22305    fi ;;
22306  [\\/]* | ?:[\\/]* )  # Absolute path.
22307    ac_srcdir=$srcdir$ac_dir_suffix;
22308    ac_top_srcdir=$srcdir ;;
22309  *) # Relative path.
22310    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22311    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22312esac
22313
22314# Do not use `cd foo && pwd` to compute absolute paths, because
22315# the directories may not exist.
22316case `pwd` in
22317.) ac_abs_builddir="$ac_dir";;
22318*)
22319  case "$ac_dir" in
22320  .) ac_abs_builddir=`pwd`;;
22321  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22322  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22323  esac;;
22324esac
22325case $ac_abs_builddir in
22326.) ac_abs_top_builddir=${ac_top_builddir}.;;
22327*)
22328  case ${ac_top_builddir}. in
22329  .) ac_abs_top_builddir=$ac_abs_builddir;;
22330  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22331  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22332  esac;;
22333esac
22334case $ac_abs_builddir in
22335.) ac_abs_srcdir=$ac_srcdir;;
22336*)
22337  case $ac_srcdir in
22338  .) ac_abs_srcdir=$ac_abs_builddir;;
22339  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22340  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22341  esac;;
22342esac
22343case $ac_abs_builddir in
22344.) ac_abs_top_srcdir=$ac_top_srcdir;;
22345*)
22346  case $ac_top_srcdir in
22347  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22348  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22349  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22350  esac;;
22351esac
22352
22353
22354  case $INSTALL in
22355  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22356  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22357  esac
22358
22359  # Let's still pretend it is `configure' which instantiates (i.e., don't
22360  # use $as_me), people would be surprised to read:
22361  #    /* config.h.  Generated by config.status.  */
22362  if test x"$ac_file" = x-; then
22363    configure_input=
22364  else
22365    configure_input="$ac_file.  "
22366  fi
22367  configure_input=$configure_input"Generated from `echo $ac_file_in |
22368				     sed 's,.*/,,'` by configure."
22369
22370  # First look for the input files in the build tree, otherwise in the
22371  # src tree.
22372  ac_file_inputs=`IFS=:
22373    for f in $ac_file_in; do
22374      case $f in
22375      -) echo $tmp/stdin ;;
22376      [\\/$]*)
22377	 # Absolute (can't be DOS-style, as IFS=:)
22378	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22379echo "$as_me: error: cannot find input file: $f" >&2;}
22380   { (exit 1); exit 1; }; }
22381	 echo "$f";;
22382      *) # Relative
22383	 if test -f "$f"; then
22384	   # Build tree
22385	   echo "$f"
22386	 elif test -f "$srcdir/$f"; then
22387	   # Source tree
22388	   echo "$srcdir/$f"
22389	 else
22390	   # /dev/null tree
22391	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22392echo "$as_me: error: cannot find input file: $f" >&2;}
22393   { (exit 1); exit 1; }; }
22394	 fi;;
22395      esac
22396    done` || { (exit 1); exit 1; }
22397
22398  if test x"$ac_file" != x-; then
22399    { echo "$as_me:$LINENO: creating $ac_file" >&5
22400echo "$as_me: creating $ac_file" >&6;}
22401    rm -f "$ac_file"
22402  fi
22403_ACEOF
22404cat >>$CONFIG_STATUS <<_ACEOF
22405  sed "$ac_vpsub
22406$extrasub
22407_ACEOF
22408cat >>$CONFIG_STATUS <<\_ACEOF
22409:t
22410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22411s,@configure_input@,$configure_input,;t t
22412s,@srcdir@,$ac_srcdir,;t t
22413s,@abs_srcdir@,$ac_abs_srcdir,;t t
22414s,@top_srcdir@,$ac_top_srcdir,;t t
22415s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22416s,@builddir@,$ac_builddir,;t t
22417s,@abs_builddir@,$ac_abs_builddir,;t t
22418s,@top_builddir@,$ac_top_builddir,;t t
22419s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22420s,@INSTALL@,$ac_INSTALL,;t t
22421" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22422  rm -f $tmp/stdin
22423  if test x"$ac_file" != x-; then
22424    mv $tmp/out $ac_file
22425  else
22426    cat $tmp/out
22427    rm -f $tmp/out
22428  fi
22429
22430done
22431_ACEOF
22432cat >>$CONFIG_STATUS <<\_ACEOF
22433
22434#
22435# CONFIG_HEADER section.
22436#
22437
22438# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22439# NAME is the cpp macro being defined and VALUE is the value it is being given.
22440#
22441# ac_d sets the value in "#define NAME VALUE" lines.
22442ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22443ac_dB='[	 ].*$,\1#\2'
22444ac_dC=' '
22445ac_dD=',;t'
22446# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22447ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22448ac_uB='$,\1#\2define\3'
22449ac_uC=' '
22450ac_uD=',;t'
22451
22452for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22453  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22454  case $ac_file in
22455  - | *:- | *:-:* ) # input from stdin
22456	cat >$tmp/stdin
22457	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22458	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22459  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22460	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22461  * )   ac_file_in=$ac_file.in ;;
22462  esac
22463
22464  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22465echo "$as_me: creating $ac_file" >&6;}
22466
22467  # First look for the input files in the build tree, otherwise in the
22468  # src tree.
22469  ac_file_inputs=`IFS=:
22470    for f in $ac_file_in; do
22471      case $f in
22472      -) echo $tmp/stdin ;;
22473      [\\/$]*)
22474	 # Absolute (can't be DOS-style, as IFS=:)
22475	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22476echo "$as_me: error: cannot find input file: $f" >&2;}
22477   { (exit 1); exit 1; }; }
22478	 # Do quote $f, to prevent DOS paths from being IFS'd.
22479	 echo "$f";;
22480      *) # Relative
22481	 if test -f "$f"; then
22482	   # Build tree
22483	   echo "$f"
22484	 elif test -f "$srcdir/$f"; then
22485	   # Source tree
22486	   echo "$srcdir/$f"
22487	 else
22488	   # /dev/null tree
22489	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22490echo "$as_me: error: cannot find input file: $f" >&2;}
22491   { (exit 1); exit 1; }; }
22492	 fi;;
22493      esac
22494    done` || { (exit 1); exit 1; }
22495  # Remove the trailing spaces.
22496  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22497
22498_ACEOF
22499
22500# Transform confdefs.h into two sed scripts, `conftest.defines' and
22501# `conftest.undefs', that substitutes the proper values into
22502# config.h.in to produce config.h.  The first handles `#define'
22503# templates, and the second `#undef' templates.
22504# And first: Protect against being on the right side of a sed subst in
22505# config.status.  Protect against being in an unquoted here document
22506# in config.status.
22507rm -f conftest.defines conftest.undefs
22508# Using a here document instead of a string reduces the quoting nightmare.
22509# Putting comments in sed scripts is not portable.
22510#
22511# `end' is used to avoid that the second main sed command (meant for
22512# 0-ary CPP macros) applies to n-ary macro definitions.
22513# See the Autoconf documentation for `clear'.
22514cat >confdef2sed.sed <<\_ACEOF
22515s/[\\&,]/\\&/g
22516s,[\\$`],\\&,g
22517t clear
22518: clear
22519s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22520t end
22521s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22522: end
22523_ACEOF
22524# If some macros were called several times there might be several times
22525# the same #defines, which is useless.  Nevertheless, we may not want to
22526# sort them, since we want the *last* AC-DEFINE to be honored.
22527uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22528sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22529rm -f confdef2sed.sed
22530
22531# This sed command replaces #undef with comments.  This is necessary, for
22532# example, in the case of _POSIX_SOURCE, which is predefined and required
22533# on some systems where configure will not decide to define it.
22534cat >>conftest.undefs <<\_ACEOF
22535s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22536_ACEOF
22537
22538# Break up conftest.defines because some shells have a limit on the size
22539# of here documents, and old seds have small limits too (100 cmds).
22540echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22541echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22542echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22543echo '  :' >>$CONFIG_STATUS
22544rm -f conftest.tail
22545while grep . conftest.defines >/dev/null
22546do
22547  # Write a limited-size here document to $tmp/defines.sed.
22548  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22549  # Speed up: don't consider the non `#define' lines.
22550  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22551  # Work around the forget-to-reset-the-flag bug.
22552  echo 't clr' >>$CONFIG_STATUS
22553  echo ': clr' >>$CONFIG_STATUS
22554  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22555  echo 'CEOF
22556  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22557  rm -f $tmp/in
22558  mv $tmp/out $tmp/in
22559' >>$CONFIG_STATUS
22560  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22561  rm -f conftest.defines
22562  mv conftest.tail conftest.defines
22563done
22564rm -f conftest.defines
22565echo '  fi # grep' >>$CONFIG_STATUS
22566echo >>$CONFIG_STATUS
22567
22568# Break up conftest.undefs because some shells have a limit on the size
22569# of here documents, and old seds have small limits too (100 cmds).
22570echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22571rm -f conftest.tail
22572while grep . conftest.undefs >/dev/null
22573do
22574  # Write a limited-size here document to $tmp/undefs.sed.
22575  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22576  # Speed up: don't consider the non `#undef'
22577  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22578  # Work around the forget-to-reset-the-flag bug.
22579  echo 't clr' >>$CONFIG_STATUS
22580  echo ': clr' >>$CONFIG_STATUS
22581  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22582  echo 'CEOF
22583  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22584  rm -f $tmp/in
22585  mv $tmp/out $tmp/in
22586' >>$CONFIG_STATUS
22587  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22588  rm -f conftest.undefs
22589  mv conftest.tail conftest.undefs
22590done
22591rm -f conftest.undefs
22592
22593cat >>$CONFIG_STATUS <<\_ACEOF
22594  # Let's still pretend it is `configure' which instantiates (i.e., don't
22595  # use $as_me), people would be surprised to read:
22596  #    /* config.h.  Generated by config.status.  */
22597  if test x"$ac_file" = x-; then
22598    echo "/* Generated by configure.  */" >$tmp/config.h
22599  else
22600    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22601  fi
22602  cat $tmp/in >>$tmp/config.h
22603  rm -f $tmp/in
22604  if test x"$ac_file" != x-; then
22605    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22606      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22607echo "$as_me: $ac_file is unchanged" >&6;}
22608    else
22609      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22611	 X"$ac_file" : 'X\(//\)[^/]' \| \
22612	 X"$ac_file" : 'X\(//\)$' \| \
22613	 X"$ac_file" : 'X\(/\)' \| \
22614	 .     : '\(.\)' 2>/dev/null ||
22615echo X"$ac_file" |
22616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22617  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22618  	  /^X\(\/\/\)$/{ s//\1/; q; }
22619  	  /^X\(\/\).*/{ s//\1/; q; }
22620  	  s/.*/./; q'`
22621      { if $as_mkdir_p; then
22622    mkdir -p "$ac_dir"
22623  else
22624    as_dir="$ac_dir"
22625    as_dirs=
22626    while test ! -d "$as_dir"; do
22627      as_dirs="$as_dir $as_dirs"
22628      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22630	 X"$as_dir" : 'X\(//\)[^/]' \| \
22631	 X"$as_dir" : 'X\(//\)$' \| \
22632	 X"$as_dir" : 'X\(/\)' \| \
22633	 .     : '\(.\)' 2>/dev/null ||
22634echo X"$as_dir" |
22635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22636  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22637  	  /^X\(\/\/\)$/{ s//\1/; q; }
22638  	  /^X\(\/\).*/{ s//\1/; q; }
22639  	  s/.*/./; q'`
22640    done
22641    test ! -n "$as_dirs" || mkdir $as_dirs
22642  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22643echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22644   { (exit 1); exit 1; }; }; }
22645
22646      rm -f $ac_file
22647      mv $tmp/config.h $ac_file
22648    fi
22649  else
22650    cat $tmp/config.h
22651    rm -f $tmp/config.h
22652  fi
22653# Compute $ac_file's index in $config_headers.
22654_am_stamp_count=1
22655for _am_header in $config_headers :; do
22656  case $_am_header in
22657    $ac_file | $ac_file:* )
22658      break ;;
22659    * )
22660      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22661  esac
22662done
22663echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22664$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22665	 X$ac_file : 'X\(//\)[^/]' \| \
22666	 X$ac_file : 'X\(//\)$' \| \
22667	 X$ac_file : 'X\(/\)' \| \
22668	 .     : '\(.\)' 2>/dev/null ||
22669echo X$ac_file |
22670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22671  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22672  	  /^X\(\/\/\)$/{ s//\1/; q; }
22673  	  /^X\(\/\).*/{ s//\1/; q; }
22674  	  s/.*/./; q'`/stamp-h$_am_stamp_count
22675done
22676_ACEOF
22677cat >>$CONFIG_STATUS <<\_ACEOF
22678
22679#
22680# CONFIG_COMMANDS section.
22681#
22682for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22683  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22684  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22685  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22686$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22687	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22688	 X"$ac_dest" : 'X\(//\)$' \| \
22689	 X"$ac_dest" : 'X\(/\)' \| \
22690	 .     : '\(.\)' 2>/dev/null ||
22691echo X"$ac_dest" |
22692    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22693  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22694  	  /^X\(\/\/\)$/{ s//\1/; q; }
22695  	  /^X\(\/\).*/{ s//\1/; q; }
22696  	  s/.*/./; q'`
22697  { if $as_mkdir_p; then
22698    mkdir -p "$ac_dir"
22699  else
22700    as_dir="$ac_dir"
22701    as_dirs=
22702    while test ! -d "$as_dir"; do
22703      as_dirs="$as_dir $as_dirs"
22704      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22705$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22706	 X"$as_dir" : 'X\(//\)[^/]' \| \
22707	 X"$as_dir" : 'X\(//\)$' \| \
22708	 X"$as_dir" : 'X\(/\)' \| \
22709	 .     : '\(.\)' 2>/dev/null ||
22710echo X"$as_dir" |
22711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22712  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22713  	  /^X\(\/\/\)$/{ s//\1/; q; }
22714  	  /^X\(\/\).*/{ s//\1/; q; }
22715  	  s/.*/./; q'`
22716    done
22717    test ! -n "$as_dirs" || mkdir $as_dirs
22718  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22719echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22720   { (exit 1); exit 1; }; }; }
22721
22722  ac_builddir=.
22723
22724if test "$ac_dir" != .; then
22725  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22726  # A "../" for each directory in $ac_dir_suffix.
22727  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22728else
22729  ac_dir_suffix= ac_top_builddir=
22730fi
22731
22732case $srcdir in
22733  .)  # No --srcdir option.  We are building in place.
22734    ac_srcdir=.
22735    if test -z "$ac_top_builddir"; then
22736       ac_top_srcdir=.
22737    else
22738       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22739    fi ;;
22740  [\\/]* | ?:[\\/]* )  # Absolute path.
22741    ac_srcdir=$srcdir$ac_dir_suffix;
22742    ac_top_srcdir=$srcdir ;;
22743  *) # Relative path.
22744    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22745    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22746esac
22747
22748# Do not use `cd foo && pwd` to compute absolute paths, because
22749# the directories may not exist.
22750case `pwd` in
22751.) ac_abs_builddir="$ac_dir";;
22752*)
22753  case "$ac_dir" in
22754  .) ac_abs_builddir=`pwd`;;
22755  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22756  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22757  esac;;
22758esac
22759case $ac_abs_builddir in
22760.) ac_abs_top_builddir=${ac_top_builddir}.;;
22761*)
22762  case ${ac_top_builddir}. in
22763  .) ac_abs_top_builddir=$ac_abs_builddir;;
22764  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22765  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22766  esac;;
22767esac
22768case $ac_abs_builddir in
22769.) ac_abs_srcdir=$ac_srcdir;;
22770*)
22771  case $ac_srcdir in
22772  .) ac_abs_srcdir=$ac_abs_builddir;;
22773  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22774  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22775  esac;;
22776esac
22777case $ac_abs_builddir in
22778.) ac_abs_top_srcdir=$ac_top_srcdir;;
22779*)
22780  case $ac_top_srcdir in
22781  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22782  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22783  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22784  esac;;
22785esac
22786
22787
22788  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22789echo "$as_me: executing $ac_dest commands" >&6;}
22790  case $ac_dest in
22791    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22792  # Strip MF so we end up with the name of the file.
22793  mf=`echo "$mf" | sed -e 's/:.*$//'`
22794  # Check whether this is an Automake generated Makefile or not.
22795  # We used to match only the files named `Makefile.in', but
22796  # some people rename them; so instead we look at the file content.
22797  # Grep'ing the first line is not enough: some people post-process
22798  # each Makefile.in and add a new line on top of each file to say so.
22799  # So let's grep whole file.
22800  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22801    dirpart=`(dirname "$mf") 2>/dev/null ||
22802$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22803	 X"$mf" : 'X\(//\)[^/]' \| \
22804	 X"$mf" : 'X\(//\)$' \| \
22805	 X"$mf" : 'X\(/\)' \| \
22806	 .     : '\(.\)' 2>/dev/null ||
22807echo X"$mf" |
22808    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22809  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22810  	  /^X\(\/\/\)$/{ s//\1/; q; }
22811  	  /^X\(\/\).*/{ s//\1/; q; }
22812  	  s/.*/./; q'`
22813  else
22814    continue
22815  fi
22816  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22817  # Extract the definition of DEP_FILES from the Makefile without
22818  # running `make'.
22819  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22820  test -z "$DEPDIR" && continue
22821  # When using ansi2knr, U may be empty or an underscore; expand it
22822  U=`sed -n -e '/^U = / s///p' < "$mf"`
22823  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22824  # We invoke sed twice because it is the simplest approach to
22825  # changing $(DEPDIR) to its actual value in the expansion.
22826  for file in `sed -n -e '
22827    /^DEP_FILES = .*\\\\$/ {
22828      s/^DEP_FILES = //
22829      :loop
22830	s/\\\\$//
22831	p
22832	n
22833	/\\\\$/ b loop
22834      p
22835    }
22836    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22837       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22838    # Make sure the directory exists.
22839    test -f "$dirpart/$file" && continue
22840    fdir=`(dirname "$file") 2>/dev/null ||
22841$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22842	 X"$file" : 'X\(//\)[^/]' \| \
22843	 X"$file" : 'X\(//\)$' \| \
22844	 X"$file" : 'X\(/\)' \| \
22845	 .     : '\(.\)' 2>/dev/null ||
22846echo X"$file" |
22847    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22848  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22849  	  /^X\(\/\/\)$/{ s//\1/; q; }
22850  	  /^X\(\/\).*/{ s//\1/; q; }
22851  	  s/.*/./; q'`
22852    { if $as_mkdir_p; then
22853    mkdir -p $dirpart/$fdir
22854  else
22855    as_dir=$dirpart/$fdir
22856    as_dirs=
22857    while test ! -d "$as_dir"; do
22858      as_dirs="$as_dir $as_dirs"
22859      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22860$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22861	 X"$as_dir" : 'X\(//\)[^/]' \| \
22862	 X"$as_dir" : 'X\(//\)$' \| \
22863	 X"$as_dir" : 'X\(/\)' \| \
22864	 .     : '\(.\)' 2>/dev/null ||
22865echo X"$as_dir" |
22866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22867  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22868  	  /^X\(\/\/\)$/{ s//\1/; q; }
22869  	  /^X\(\/\).*/{ s//\1/; q; }
22870  	  s/.*/./; q'`
22871    done
22872    test ! -n "$as_dirs" || mkdir $as_dirs
22873  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22874echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22875   { (exit 1); exit 1; }; }; }
22876
22877    # echo "creating $dirpart/$file"
22878    echo '# dummy' > "$dirpart/$file"
22879  done
22880done
22881 ;;
22882  esac
22883done
22884_ACEOF
22885
22886cat >>$CONFIG_STATUS <<\_ACEOF
22887
22888{ (exit 0); exit 0; }
22889_ACEOF
22890chmod +x $CONFIG_STATUS
22891ac_clean_files=$ac_clean_files_save
22892
22893
22894# configure is writing to config.log, and then calls config.status.
22895# config.status does its own redirection, appending to config.log.
22896# Unfortunately, on DOS this fails, as config.log is still kept open
22897# by configure, so config.status won't be able to write to it; its
22898# output is simply discarded.  So we exec the FD to /dev/null,
22899# effectively closing config.log, so it can be properly (re)opened and
22900# appended to by config.status.  When coming back to configure, we
22901# need to make the FD available again.
22902if test "$no_create" != yes; then
22903  ac_cs_success=:
22904  ac_config_status_args=
22905  test "$silent" = yes &&
22906    ac_config_status_args="$ac_config_status_args --quiet"
22907  exec 5>/dev/null
22908  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22909  exec 5>>config.log
22910  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22911  # would make configure fail if this is the last instruction.
22912  $ac_cs_success || { (exit 1); exit 1; }
22913fi
22914
22915