1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for f77demo 0.1.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='f77demo'
425PACKAGE_TARNAME='f77demo'
426PACKAGE_VERSION='0.1'
427PACKAGE_STRING='f77demo 0.1'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="foof.f"
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 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_F77_set=${F77+set}
926ac_env_F77_value=$F77
927ac_cv_env_F77_set=${F77+set}
928ac_cv_env_F77_value=$F77
929ac_env_FFLAGS_set=${FFLAGS+set}
930ac_env_FFLAGS_value=$FFLAGS
931ac_cv_env_FFLAGS_set=${FFLAGS+set}
932ac_cv_env_FFLAGS_value=$FFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
937ac_env_CXX_set=${CXX+set}
938ac_env_CXX_value=$CXX
939ac_cv_env_CXX_set=${CXX+set}
940ac_cv_env_CXX_value=$CXX
941ac_env_CXXFLAGS_set=${CXXFLAGS+set}
942ac_env_CXXFLAGS_value=$CXXFLAGS
943ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
944ac_cv_env_CXXFLAGS_value=$CXXFLAGS
945ac_env_CXXCPP_set=${CXXCPP+set}
946ac_env_CXXCPP_value=$CXXCPP
947ac_cv_env_CXXCPP_set=${CXXCPP+set}
948ac_cv_env_CXXCPP_value=$CXXCPP
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 f77demo 0.1 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of f77demo 0.1:";;
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  --disable-dependency-tracking  speeds up one-time build
1031  --enable-dependency-tracking   do not reject slow dependency extractors
1032  --enable-shared[=PKGS]
1033                          build shared libraries [default=yes]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
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  F77         Fortran 77 compiler command
1057  FFLAGS      Fortran 77 compiler flags
1058  CPP         C preprocessor
1059  CXX         C++ compiler command
1060  CXXFLAGS    C++ compiler flags
1061  CXXCPP      C++ preprocessor
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 <bug-libtool@gnu.org>.
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
1162f77demo configure 0.1
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 f77demo $as_me 0.1, 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
1512
1513## ------------------------ ##
1514## Automake Initialisation. ##
1515## ------------------------ ##
1516am__api_version="1.9"
1517ac_aux_dir=
1518for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1519  if 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/install.sh; then
1524    ac_aux_dir=$ac_dir
1525    ac_install_sh="$ac_aux_dir/install.sh -c"
1526    break
1527  elif test -f $ac_dir/shtool; then
1528    ac_aux_dir=$ac_dir
1529    ac_install_sh="$ac_aux_dir/shtool install -c"
1530    break
1531  fi
1532done
1533if test -z "$ac_aux_dir"; then
1534  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1535echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1536   { (exit 1); exit 1; }; }
1537fi
1538ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542# Find a good install program.  We prefer a C program (faster),
1543# so one script is as good as another.  But avoid the broken or
1544# incompatible versions:
1545# SysV /etc/install, /usr/sbin/install
1546# SunOS /usr/etc/install
1547# IRIX /sbin/install
1548# AIX /bin/install
1549# AmigaOS /C/install, which installs bootblocks on floppy discs
1550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553# OS/2's system install, which has a completely different semantic
1554# ./install, which can be erroneously created by make from ./install.sh.
1555echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557if test -z "$INSTALL"; then
1558if test "${ac_cv_path_install+set}" = set; then
1559  echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564  IFS=$as_save_IFS
1565  test -z "$as_dir" && as_dir=.
1566  # Account for people who put trailing slashes in PATH elements.
1567case $as_dir/ in
1568  ./ | .// | /cC/* | \
1569  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571  /usr/ucb/* ) ;;
1572  *)
1573    # OSF1 and SCO ODT 3.0 have their own names for install.
1574    # Don't use installbsd from OSF since it installs stuff as root
1575    # by default.
1576    for ac_prog in ginstall scoinst install; do
1577      for ac_exec_ext in '' $ac_executable_extensions; do
1578	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579	  if test $ac_prog = install &&
1580	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581	    # AIX install.  It has an incompatible calling convention.
1582	    :
1583	  elif test $ac_prog = install &&
1584	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585	    # program-specific install script used by HP pwplus--don't use.
1586	    :
1587	  else
1588	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589	    break 3
1590	  fi
1591	fi
1592      done
1593    done
1594    ;;
1595esac
1596done
1597
1598
1599fi
1600  if test "${ac_cv_path_install+set}" = set; then
1601    INSTALL=$ac_cv_path_install
1602  else
1603    # As a last resort, use the slow shell script.  We don't cache a
1604    # path for INSTALL within a source directory, because that will
1605    # break other packages using the cache if that directory is
1606    # removed, or if the path is relative.
1607    INSTALL=$ac_install_sh
1608  fi
1609fi
1610echo "$as_me:$LINENO: result: $INSTALL" >&5
1611echo "${ECHO_T}$INSTALL" >&6
1612
1613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614# It thinks the first close brace ends the variable substitution.
1615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616
1617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618
1619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
1621echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623# Just in case
1624sleep 1
1625echo timestamp > conftest.file
1626# Do `set' in a subshell so we don't clobber the current shell's
1627# arguments.  Must try -L first in case configure is actually a
1628# symlink; some systems play weird games with the mod time of symlinks
1629# (eg FreeBSD returns the mod time of the symlink's containing
1630# directory).
1631if (
1632   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633   if test "$*" = "X"; then
1634      # -L didn't work.
1635      set X `ls -t $srcdir/configure conftest.file`
1636   fi
1637   rm -f conftest.file
1638   if test "$*" != "X $srcdir/configure conftest.file" \
1639      && test "$*" != "X conftest.file $srcdir/configure"; then
1640
1641      # If neither matched, then we have a broken ls.  This can happen
1642      # if, for instance, CONFIG_SHELL is bash and it inherits a
1643      # broken ls alias from the environment.  This has actually
1644      # happened.  Such a system could not be considered "sane".
1645      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1646alias in your environment" >&5
1647echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1648alias in your environment" >&2;}
1649   { (exit 1); exit 1; }; }
1650   fi
1651
1652   test "$2" = conftest.file
1653   )
1654then
1655   # Ok.
1656   :
1657else
1658   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659Check your system clock" >&5
1660echo "$as_me: error: newly created file is older than distributed files!
1661Check your system clock" >&2;}
1662   { (exit 1); exit 1; }; }
1663fi
1664echo "$as_me:$LINENO: result: yes" >&5
1665echo "${ECHO_T}yes" >&6
1666test "$program_prefix" != NONE &&
1667  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
1670  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671# Double any \ or $.  echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677rm conftest.sed
1678
1679# expand $ac_aux_dir to an absolute path
1680am_aux_dir=`cd $ac_aux_dir && pwd`
1681
1682test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683# Use eval to expand $SHELL
1684if eval "$MISSING --run true"; then
1685  am_missing_run="$MISSING --run "
1686else
1687  am_missing_run=
1688  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690fi
1691
1692if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1693  # We used to keeping the `.' as first argument, in order to
1694  # allow $(mkdir_p) to be used without argument.  As in
1695  #   $(mkdir_p) $(somedir)
1696  # where $(somedir) is conditionally defined.  However this is wrong
1697  # for two reasons:
1698  #  1. if the package is installed by a user who cannot write `.'
1699  #     make install will fail,
1700  #  2. the above comment should most certainly read
1701  #     $(mkdir_p) $(DESTDIR)$(somedir)
1702  #     so it does not work when $(somedir) is undefined and
1703  #     $(DESTDIR) is not.
1704  #  To support the latter case, we have to write
1705  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1706  #  so the `.' trick is pointless.
1707  mkdir_p='mkdir -p --'
1708else
1709  # On NextStep and OpenStep, the `mkdir' command does not
1710  # recognize any option.  It will interpret all options as
1711  # directories to create, and then abort because `.' already
1712  # exists.
1713  for d in ./-p ./--version;
1714  do
1715    test -d $d && rmdir $d
1716  done
1717  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1718  if test -f "$ac_aux_dir/mkinstalldirs"; then
1719    mkdir_p='$(mkinstalldirs)'
1720  else
1721    mkdir_p='$(install_sh) -d'
1722  fi
1723fi
1724
1725for ac_prog in gawk mawk nawk awk
1726do
1727  # Extract the first word of "$ac_prog", so it can be a program name with args.
1728set dummy $ac_prog; ac_word=$2
1729echo "$as_me:$LINENO: checking for $ac_word" >&5
1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731if test "${ac_cv_prog_AWK+set}" = set; then
1732  echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734  if test -n "$AWK"; then
1735  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1736else
1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738for as_dir in $PATH
1739do
1740  IFS=$as_save_IFS
1741  test -z "$as_dir" && as_dir=.
1742  for ac_exec_ext in '' $ac_executable_extensions; do
1743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744    ac_cv_prog_AWK="$ac_prog"
1745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746    break 2
1747  fi
1748done
1749done
1750
1751fi
1752fi
1753AWK=$ac_cv_prog_AWK
1754if test -n "$AWK"; then
1755  echo "$as_me:$LINENO: result: $AWK" >&5
1756echo "${ECHO_T}$AWK" >&6
1757else
1758  echo "$as_me:$LINENO: result: no" >&5
1759echo "${ECHO_T}no" >&6
1760fi
1761
1762  test -n "$AWK" && break
1763done
1764
1765echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1768if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  cat >conftest.make <<\_ACEOF
1772all:
1773	@echo 'ac_maketemp="$(MAKE)"'
1774_ACEOF
1775# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777if test -n "$ac_maketemp"; then
1778  eval ac_cv_prog_make_${ac_make}_set=yes
1779else
1780  eval ac_cv_prog_make_${ac_make}_set=no
1781fi
1782rm -f conftest.make
1783fi
1784if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785  echo "$as_me:$LINENO: result: yes" >&5
1786echo "${ECHO_T}yes" >&6
1787  SET_MAKE=
1788else
1789  echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
1791  SET_MAKE="MAKE=${MAKE-make}"
1792fi
1793
1794rm -rf .tst 2>/dev/null
1795mkdir .tst 2>/dev/null
1796if test -d .tst; then
1797  am__leading_dot=.
1798else
1799  am__leading_dot=_
1800fi
1801rmdir .tst 2>/dev/null
1802
1803# test to see if srcdir already configured
1804if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805   test -f $srcdir/config.status; then
1806  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808   { (exit 1); exit 1; }; }
1809fi
1810
1811# test whether we have cygpath
1812if test -z "$CYGPATH_W"; then
1813  if (cygpath --version) >/dev/null 2>/dev/null; then
1814    CYGPATH_W='cygpath -w'
1815  else
1816    CYGPATH_W=echo
1817  fi
1818fi
1819
1820
1821# Define the identity of the package.
1822 PACKAGE=f77demo
1823 VERSION=0.1
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE "$PACKAGE"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define VERSION "$VERSION"
1833_ACEOF
1834
1835# Some tools Automake needs.
1836
1837ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1838
1839
1840AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1841
1842
1843AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1844
1845
1846AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1847
1848
1849MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1850
1851install_sh=${install_sh-"$am_aux_dir/install-sh"}
1852
1853# Installed binaries are usually stripped using `strip' when the user
1854# run `make install-strip'.  However `strip' might not be the right
1855# tool to use in cross-compilation environments, therefore Automake
1856# will honor the `STRIP' environment variable to overrule this program.
1857if test "$cross_compiling" != no; then
1858  if test -n "$ac_tool_prefix"; then
1859  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1860set dummy ${ac_tool_prefix}strip; ac_word=$2
1861echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863if test "${ac_cv_prog_STRIP+set}" = set; then
1864  echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866  if test -n "$STRIP"; then
1867  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872  IFS=$as_save_IFS
1873  test -z "$as_dir" && as_dir=.
1874  for ac_exec_ext in '' $ac_executable_extensions; do
1875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878    break 2
1879  fi
1880done
1881done
1882
1883fi
1884fi
1885STRIP=$ac_cv_prog_STRIP
1886if test -n "$STRIP"; then
1887  echo "$as_me:$LINENO: result: $STRIP" >&5
1888echo "${ECHO_T}$STRIP" >&6
1889else
1890  echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
1892fi
1893
1894fi
1895if test -z "$ac_cv_prog_STRIP"; then
1896  ac_ct_STRIP=$STRIP
1897  # Extract the first word of "strip", so it can be a program name with args.
1898set dummy strip; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1902  echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904  if test -n "$ac_ct_STRIP"; then
1905  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912  for ac_exec_ext in '' $ac_executable_extensions; do
1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914    ac_cv_prog_ac_ct_STRIP="strip"
1915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916    break 2
1917  fi
1918done
1919done
1920
1921  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1922fi
1923fi
1924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1925if test -n "$ac_ct_STRIP"; then
1926  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1927echo "${ECHO_T}$ac_ct_STRIP" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933  STRIP=$ac_ct_STRIP
1934else
1935  STRIP="$ac_cv_prog_STRIP"
1936fi
1937
1938fi
1939INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1940
1941# We need awk for the "check" target.  The system "awk" is bad on
1942# some platforms.
1943# Always define AMTAR for backward compatibility.
1944
1945AMTAR=${AMTAR-"${am_missing_run}tar"}
1946
1947am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1948
1949
1950
1951
1952
1953          ac_config_headers="$ac_config_headers config.h:config-h.in"
1954
1955
1956
1957## ------------------ ##
1958## C compiler checks. ##
1959## ------------------ ##
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$CC"; then
1974  ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994  echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003  ac_ct_CC=$CC
2004  # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$ac_ct_CC"; then
2012  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    ac_cv_prog_ac_ct_CC="gcc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6
2034else
2035  echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
2037fi
2038
2039  CC=$ac_ct_CC
2040else
2041  CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045  if test -n "$ac_tool_prefix"; then
2046  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="${ac_tool_prefix}cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083  ac_ct_CC=$CC
2084  # Extract the first word of "cc", so it can be a program name with args.
2085set dummy cc; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$ac_ct_CC"; then
2092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    ac_cv_prog_ac_ct_CC="cc"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115  echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119  CC=$ac_ct_CC
2120else
2121  CC="$ac_cv_prog_CC"
2122fi
2123
2124fi
2125if test -z "$CC"; then
2126  # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136  ac_prog_rejected=no
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145       ac_prog_rejected=yes
2146       continue
2147     fi
2148    ac_cv_prog_CC="cc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156  # We found a bogon in the path, so make sure we never use it.
2157  set dummy $ac_cv_prog_CC
2158  shift
2159  if test $# != 0; then
2160    # We chose a different compiler from the bogus one.
2161    # However, it has the same basename, so the bogon will be chosen
2162    # first if we set CC to just the basename; use the full file name.
2163    shift
2164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165  fi
2166fi
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171  echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174  echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178fi
2179if test -z "$CC"; then
2180  if test -n "$ac_tool_prefix"; then
2181  for ac_prog in cl
2182  do
2183    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$CC"; then
2191  ac_cv_prog_CC="$CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211  echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218    test -n "$CC" && break
2219  done
2220fi
2221if test -z "$CC"; then
2222  ac_ct_CC=$CC
2223  for ac_prog in cl
2224do
2225  # Extract the first word of "$ac_prog", so it can be a program name with args.
2226set dummy $ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  if test -n "$ac_ct_CC"; then
2233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    ac_cv_prog_ac_ct_CC="$ac_prog"
2243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244    break 2
2245  fi
2246done
2247done
2248
2249fi
2250fi
2251ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252if test -n "$ac_ct_CC"; then
2253  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254echo "${ECHO_T}$ac_ct_CC" >&6
2255else
2256  echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260  test -n "$ac_ct_CC" && break
2261done
2262
2263  CC=$ac_ct_CC
2264fi
2265
2266fi
2267
2268
2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274
2275# Provide some information about the compiler.
2276echo "$as_me:$LINENO:" \
2277     "checking for C compiler version" >&5
2278ac_compiler=`set X $ac_compile; echo $2`
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280  (eval $ac_compiler --version </dev/null >&5) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }
2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285  (eval $ac_compiler -v </dev/null >&5) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290  (eval $ac_compiler -V </dev/null >&5) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }
2294
2295cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310ac_clean_files_save=$ac_clean_files
2311ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312# Try to create an executable without -o first, disregard a.out.
2313# It will help us diagnose broken compilers, and finding out an intuition
2314# of exeext.
2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319  (eval $ac_link_default) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  # Find the output, starting from the most likely.  This scheme is
2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325# resort.
2326
2327# Be careful to initialize this variable, since it used to be cached.
2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329ac_cv_exeext=
2330# b.out is created by i960 compilers.
2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332do
2333  test -f "$ac_file" || continue
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336	;;
2337    conftest.$ac_ext )
2338	# This is the source file.
2339	;;
2340    [ab].out )
2341	# We found the default executable, but exeext='' is most
2342	# certainly right.
2343	break;;
2344    *.* )
2345	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346	# FIXME: I believe we export ac_cv_exeext for Libtool,
2347	# but it would be cool to find out if it's true.  Does anybody
2348	# maintain Libtool? --akim.
2349	export ac_cv_exeext
2350	break;;
2351    * )
2352	break;;
2353  esac
2354done
2355else
2356  echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: C compiler cannot create executables
2362See \`config.log' for more details." >&2;}
2363   { (exit 77); exit 77; }; }
2364fi
2365
2366ac_exeext=$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_file" >&5
2368echo "${ECHO_T}$ac_file" >&6
2369
2370# Check the compiler produces executables we can run.  If not, either
2371# the compiler is broken, or we cross compile.
2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375# If not cross compiling, check that we can run a simple program.
2376if test "$cross_compiling" != yes; then
2377  if { ac_try='./$ac_file'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383    cross_compiling=no
2384  else
2385    if test "$cross_compiling" = maybe; then
2386	cross_compiling=yes
2387    else
2388	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389If you meant to cross compile, use \`--host'.
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot run C compiled programs.
2392If you meant to cross compile, use \`--host'.
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395    fi
2396  fi
2397fi
2398echo "$as_me:$LINENO: result: yes" >&5
2399echo "${ECHO_T}yes" >&6
2400
2401rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402ac_clean_files=$ac_clean_files_save
2403# Check the compiler produces executables we can run.  If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408echo "${ECHO_T}$cross_compiling" >&6
2409
2410echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413  (eval $ac_link) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; then
2417  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419# work properly (i.e., refer to `conftest.exe'), while it won't with
2420# `rm'.
2421for ac_file in conftest.exe conftest conftest.*; do
2422  test -f "$ac_file" || continue
2423  case $ac_file in
2424    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426	  export ac_cv_exeext
2427	  break;;
2428    * ) break;;
2429  esac
2430done
2431else
2432  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435See \`config.log' for more details." >&2;}
2436   { (exit 1); exit 1; }; }
2437fi
2438
2439rm -f conftest$ac_cv_exeext
2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443rm -f conftest.$ac_ext
2444EXEEXT=$ac_cv_exeext
2445ac_exeext=$EXEEXT
2446echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448if test "${ac_cv_objext+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457
2458int
2459main ()
2460{
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.o conftest.obj
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; then
2472  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2473  case $ac_file in
2474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2475    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476       break;;
2477  esac
2478done
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&2;}
2487   { (exit 1); exit 1; }; }
2488fi
2489
2490rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493echo "${ECHO_T}$ac_cv_objext" >&6
2494OBJEXT=$ac_cv_objext
2495ac_objext=$OBJEXT
2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2498if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511#ifndef __GNUC__
2512       choke me
2513#endif
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528	 { ac_try='test -z "$ac_c_werror_flag"
2529			 || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535	 { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_compiler_gnu=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_compiler_gnu=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550
2551fi
2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554GCC=`test $ac_compiler_gnu = yes && echo yes`
2555ac_test_CFLAGS=${CFLAGS+set}
2556ac_save_CFLAGS=$CFLAGS
2557CFLAGS="-g"
2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560if test "${ac_cv_prog_cc_g+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569
2570int
2571main ()
2572{
2573
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580  (eval $ac_compile) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest.$ac_objext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_prog_cc_g=yes
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605ac_cv_prog_cc_g=no
2606fi
2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611if test "$ac_test_CFLAGS" = set; then
2612  CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614  if test "$GCC" = yes; then
2615    CFLAGS="-g -O2"
2616  else
2617    CFLAGS="-g"
2618  fi
2619else
2620  if test "$GCC" = yes; then
2621    CFLAGS="-O2"
2622  else
2623    CFLAGS=
2624  fi
2625fi
2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  ac_cv_prog_cc_stdc=no
2632ac_save_CC=$CC
2633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647     char **p;
2648     int i;
2649{
2650  return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654  char *s;
2655  va_list v;
2656  va_start (v,p);
2657  s = g (p, va_arg (v,int));
2658  va_end (v);
2659  return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663   function prototypes and stuff, but not '\xHH' hex character constants.
2664   These don't provoke an error unfortunately, instead are silently treated
2665   as 'x'.  The following induces an error, until -std1 is added to get
2666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667   array size at least.  It's necessary to write '\x00'==0 to get something
2668   that's true only with -std1.  */
2669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671int test (int i, double x);
2672struct s1 {int (*f) (int a);};
2673struct s2 {int (*f) (double a);};
2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675int argc;
2676char **argv;
2677int
2678main ()
2679{
2680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685# Don't try gcc -ansi; that turns off useful extensions and
2686# breaks some systems' header files.
2687# AIX			-qlanglvl=ansi
2688# Ultrix and OSF/1	-std1
2689# HP-UX 10.20 and later	-Ae
2690# HP-UX older versions	-Aa -D_HPUX_SOURCE
2691# SVR4			-Xc -D__EXTENSIONS__
2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693do
2694  CC="$ac_save_CC $ac_arg"
2695  rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704	 { ac_try='test -z "$ac_c_werror_flag"
2705			 || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711	 { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  ac_cv_prog_cc_stdc=$ac_arg
2718break
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext
2725done
2726rm -f conftest.$ac_ext conftest.$ac_objext
2727CC=$ac_save_CC
2728
2729fi
2730
2731case "x$ac_cv_prog_cc_stdc" in
2732  x|xno)
2733    echo "$as_me:$LINENO: result: none needed" >&5
2734echo "${ECHO_T}none needed" >&6 ;;
2735  *)
2736    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2738    CC="$CC $ac_cv_prog_cc_stdc" ;;
2739esac
2740
2741# Some people use a C++ compiler to compile C.  Since we use `exit',
2742# in C++ we need to declare it.  In case someone uses the same compiler
2743# for both compiling C and C++ we need to have the C++ compiler decide
2744# the declaration of exit, since it's the most demanding environment.
2745cat >conftest.$ac_ext <<_ACEOF
2746#ifndef __cplusplus
2747  choke me
2748#endif
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759	 { ac_try='test -z "$ac_c_werror_flag"
2760			 || test ! -s conftest.err'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; } &&
2766	 { ac_try='test -s conftest.$ac_objext'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; }; then
2772  for ac_declaration in \
2773   '' \
2774   'extern "C" void std::exit (int) throw (); using std::exit;' \
2775   'extern "C" void std::exit (int); using std::exit;' \
2776   'extern "C" void exit (int) throw ();' \
2777   'extern "C" void exit (int);' \
2778   'void exit (int);'
2779do
2780  cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h.  */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h.  */
2786$ac_declaration
2787#include <stdlib.h>
2788int
2789main ()
2790{
2791exit (42);
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805	 { ac_try='test -z "$ac_c_werror_flag"
2806			 || test ! -s conftest.err'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; } &&
2812	 { ac_try='test -s conftest.$ac_objext'
2813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814  (eval $ac_try) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }; }; then
2818  :
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823continue
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826  cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832$ac_declaration
2833int
2834main ()
2835{
2836exit (42);
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843  (eval $ac_compile) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850	 { ac_try='test -z "$ac_c_werror_flag"
2851			 || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857	 { ac_try='test -s conftest.$ac_objext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  break
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870done
2871rm -f conftest*
2872if test -n "$ac_declaration"; then
2873  echo '#ifdef __cplusplus' >>confdefs.h
2874  echo $ac_declaration      >>confdefs.h
2875  echo '#endif'             >>confdefs.h
2876fi
2877
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889DEPDIR="${am__leading_dot}deps"
2890
2891          ac_config_commands="$ac_config_commands depfiles"
2892
2893
2894am_make=${MAKE-make}
2895cat > confinc << 'END'
2896am__doit:
2897	@echo done
2898.PHONY: am__doit
2899END
2900# If we don't find an include directive, just comment out the code.
2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2903am__include="#"
2904am__quote=
2905_am_result=none
2906# First try GNU make style include.
2907echo "include confinc" > confmf
2908# We grep out `Entering directory' and `Leaving directory'
2909# messages which can occur if `w' ends up in MAKEFLAGS.
2910# In particular we don't look at `^make:' because GNU make might
2911# be invoked under some other name (usually "gmake"), in which
2912# case it prints its new name instead of `make'.
2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914   am__include=include
2915   am__quote=
2916   _am_result=GNU
2917fi
2918# Now try BSD make style include.
2919if test "$am__include" = "#"; then
2920   echo '.include "confinc"' > confmf
2921   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2922      am__include=.include
2923      am__quote="\""
2924      _am_result=BSD
2925   fi
2926fi
2927
2928
2929echo "$as_me:$LINENO: result: $_am_result" >&5
2930echo "${ECHO_T}$_am_result" >&6
2931rm -f confinc confmf
2932
2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2934if test "${enable_dependency_tracking+set}" = set; then
2935  enableval="$enable_dependency_tracking"
2936
2937fi;
2938if test "x$enable_dependency_tracking" != xno; then
2939  am_depcomp="$ac_aux_dir/depcomp"
2940  AMDEPBACKSLASH='\'
2941fi
2942
2943
2944if test "x$enable_dependency_tracking" != xno; then
2945  AMDEP_TRUE=
2946  AMDEP_FALSE='#'
2947else
2948  AMDEP_TRUE='#'
2949  AMDEP_FALSE=
2950fi
2951
2952
2953
2954
2955depcc="$CC"   am_compiler_list=
2956
2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2960  echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2963  # We make a subdir and do the tests there.  Otherwise we can end up
2964  # making bogus files that we don't know about and never remove.  For
2965  # instance it was reported that on HP-UX the gcc test will end up
2966  # making a dummy file named `D' -- because `-MD' means `put the output
2967  # in D'.
2968  mkdir conftest.dir
2969  # Copy depcomp to subdir because otherwise we won't find it if we're
2970  # using a relative directory.
2971  cp "$am_depcomp" conftest.dir
2972  cd conftest.dir
2973  # We will build objects and dependencies in a subdirectory because
2974  # it helps to detect inapplicable dependency modes.  For instance
2975  # both Tru64's cc and ICC support -MD to output dependencies as a
2976  # side effect of compilation, but ICC will put the dependencies in
2977  # the current directory while Tru64 will put them in the object
2978  # directory.
2979  mkdir sub
2980
2981  am_cv_CC_dependencies_compiler_type=none
2982  if test "$am_compiler_list" = ""; then
2983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2984  fi
2985  for depmode in $am_compiler_list; do
2986    # Setup a source with many dependencies, because some compilers
2987    # like to wrap large dependency lists on column 80 (with \), and
2988    # we should not choose a depcomp mode which is confused by this.
2989    #
2990    # We need to recreate these files for each test, as the compiler may
2991    # overwrite some of them when testing with obscure command lines.
2992    # This happens at least with the AIX C compiler.
2993    : > sub/conftest.c
2994    for i in 1 2 3 4 5 6; do
2995      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2996      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2997      # Solaris 8's {/usr,}/bin/sh.
2998      touch sub/conftst$i.h
2999    done
3000    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002    case $depmode in
3003    nosideeffect)
3004      # after this tag, mechanisms are not by side-effect, so they'll
3005      # only be used when explicitly requested
3006      if test "x$enable_dependency_tracking" = xyes; then
3007	continue
3008      else
3009	break
3010      fi
3011      ;;
3012    none) break ;;
3013    esac
3014    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015    # mode.  It turns out that the SunPro C++ compiler does not properly
3016    # handle `-M -o', and we need to detect this.
3017    if depmode=$depmode \
3018       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021         >/dev/null 2>conftest.err &&
3022       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025      # icc doesn't choke on unknown options, it will just issue warnings
3026      # or remarks (even with -Werror).  So we grep stderr for any message
3027      # that says an option was ignored or not supported.
3028      # When given -MP, icc 7.0 and 7.1 complain thusly:
3029      #   icc: Command line warning: ignoring option '-M'; no argument required
3030      # The diagnosis changed in icc 8.0:
3031      #   icc: Command line remark: option '-MP' not supported
3032      if (grep 'ignoring option' conftest.err ||
3033          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3034        am_cv_CC_dependencies_compiler_type=$depmode
3035        break
3036      fi
3037    fi
3038  done
3039
3040  cd ..
3041  rm -rf conftest.dir
3042else
3043  am_cv_CC_dependencies_compiler_type=none
3044fi
3045
3046fi
3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
3051
3052
3053if
3054  test "x$enable_dependency_tracking" != xno \
3055  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3056  am__fastdepCC_TRUE=
3057  am__fastdepCC_FALSE='#'
3058else
3059  am__fastdepCC_TRUE='#'
3060  am__fastdepCC_FALSE=
3061fi
3062
3063
3064
3065## ------------------------ ##
3066## Fortran compiler checks. ##
3067## ------------------------ ##
3068ac_ext=f
3069ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3070ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3072if test -n "$ac_tool_prefix"; then
3073  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
3074  do
3075    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077echo "$as_me:$LINENO: checking for $ac_word" >&5
3078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079if test "${ac_cv_prog_F77+set}" = set; then
3080  echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082  if test -n "$F77"; then
3083  ac_cv_prog_F77="$F77" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090  for ac_exec_ext in '' $ac_executable_extensions; do
3091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097done
3098
3099fi
3100fi
3101F77=$ac_cv_prog_F77
3102if test -n "$F77"; then
3103  echo "$as_me:$LINENO: result: $F77" >&5
3104echo "${ECHO_T}$F77" >&6
3105else
3106  echo "$as_me:$LINENO: result: no" >&5
3107echo "${ECHO_T}no" >&6
3108fi
3109
3110    test -n "$F77" && break
3111  done
3112fi
3113if test -z "$F77"; then
3114  ac_ct_F77=$F77
3115  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
3116do
3117  # Extract the first word of "$ac_prog", so it can be a program name with args.
3118set dummy $ac_prog; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  if test -n "$ac_ct_F77"; then
3125  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132  for ac_exec_ext in '' $ac_executable_extensions; do
3133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134    ac_cv_prog_ac_ct_F77="$ac_prog"
3135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139done
3140
3141fi
3142fi
3143ac_ct_F77=$ac_cv_prog_ac_ct_F77
3144if test -n "$ac_ct_F77"; then
3145  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3146echo "${ECHO_T}$ac_ct_F77" >&6
3147else
3148  echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
3151
3152  test -n "$ac_ct_F77" && break
3153done
3154
3155  F77=$ac_ct_F77
3156fi
3157
3158
3159# Provide some information about the compiler.
3160echo "$as_me:3160:" \
3161     "checking for Fortran 77 compiler version" >&5
3162ac_compiler=`set X $ac_compile; echo $2`
3163{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3164  (eval $ac_compiler --version </dev/null >&5) 2>&5
3165  ac_status=$?
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }
3168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3169  (eval $ac_compiler -v </dev/null >&5) 2>&5
3170  ac_status=$?
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }
3173{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3174  (eval $ac_compiler -V </dev/null >&5) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }
3178rm -f a.out
3179
3180# If we don't use `.F' as extension, the preprocessor is not run on the
3181# input file.  (Note that this only needs to work for GNU compilers.)
3182ac_save_ext=$ac_ext
3183ac_ext=F
3184echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3185echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3186if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3187  echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189  cat >conftest.$ac_ext <<_ACEOF
3190      program main
3191#ifndef __GNUC__
3192       choke me
3193#endif
3194
3195      end
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199  (eval $ac_compile) 2>conftest.er1
3200  ac_status=$?
3201  grep -v '^ *+' conftest.er1 >conftest.err
3202  rm -f conftest.er1
3203  cat conftest.err >&5
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); } &&
3206	 { ac_try='test -z "$ac_f77_werror_flag"
3207			 || test ! -s conftest.err'
3208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209  (eval $ac_try) 2>&5
3210  ac_status=$?
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); }; } &&
3213	 { ac_try='test -s conftest.$ac_objext'
3214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215  (eval $ac_try) 2>&5
3216  ac_status=$?
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); }; }; then
3219  ac_compiler_gnu=yes
3220else
3221  echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224ac_compiler_gnu=no
3225fi
3226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3228
3229fi
3230echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3231echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3232ac_ext=$ac_save_ext
3233ac_test_FFLAGS=${FFLAGS+set}
3234ac_save_FFLAGS=$FFLAGS
3235FFLAGS=
3236echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3237echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3238if test "${ac_cv_prog_f77_g+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  FFLAGS=-g
3242cat >conftest.$ac_ext <<_ACEOF
3243      program main
3244
3245      end
3246_ACEOF
3247rm -f conftest.$ac_objext
3248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249  (eval $ac_compile) 2>conftest.er1
3250  ac_status=$?
3251  grep -v '^ *+' conftest.er1 >conftest.err
3252  rm -f conftest.er1
3253  cat conftest.err >&5
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); } &&
3256	 { ac_try='test -z "$ac_f77_werror_flag"
3257			 || test ! -s conftest.err'
3258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259  (eval $ac_try) 2>&5
3260  ac_status=$?
3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262  (exit $ac_status); }; } &&
3263	 { ac_try='test -s conftest.$ac_objext'
3264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265  (eval $ac_try) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }; }; then
3269  ac_cv_prog_f77_g=yes
3270else
3271  echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274ac_cv_prog_f77_g=no
3275fi
3276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277
3278fi
3279echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3280echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3281if test "$ac_test_FFLAGS" = set; then
3282  FFLAGS=$ac_save_FFLAGS
3283elif test $ac_cv_prog_f77_g = yes; then
3284  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3285    FFLAGS="-g -O2"
3286  else
3287    FFLAGS="-g"
3288  fi
3289else
3290  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3291    FFLAGS="-O2"
3292  else
3293    FFLAGS=
3294  fi
3295fi
3296
3297G77=`test $ac_compiler_gnu = yes && echo yes`
3298ac_ext=c
3299ac_cpp='$CPP $CPPFLAGS'
3300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303
3304
3305ac_ext=f
3306ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3307ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3309echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3310echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3311if test "${ac_cv_prog_f77_v+set}" = set; then
3312  echo $ECHO_N "(cached) $ECHO_C" >&6
3313else
3314  cat >conftest.$ac_ext <<_ACEOF
3315      program main
3316
3317      end
3318_ACEOF
3319rm -f conftest.$ac_objext
3320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321  (eval $ac_compile) 2>conftest.er1
3322  ac_status=$?
3323  grep -v '^ *+' conftest.er1 >conftest.err
3324  rm -f conftest.er1
3325  cat conftest.err >&5
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); } &&
3328	 { ac_try='test -z "$ac_f77_werror_flag"
3329			 || test ! -s conftest.err'
3330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331  (eval $ac_try) 2>&5
3332  ac_status=$?
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); }; } &&
3335	 { ac_try='test -s conftest.$ac_objext'
3336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337  (eval $ac_try) 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }; }; then
3341  ac_cv_prog_f77_v=
3342# Try some options frequently used verbose output
3343for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3344  cat >conftest.$ac_ext <<_ACEOF
3345      program main
3346
3347      end
3348_ACEOF
3349
3350# Compile and link our simple test program by passing a flag (argument
3351# 1 to this macro) to the Fortran compiler in order to get
3352# "verbose" output that we can then parse for the Fortran linker
3353# flags.
3354ac_save_FFLAGS=$FFLAGS
3355FFLAGS="$FFLAGS $ac_verb"
3356(eval echo $as_me:3356: \"$ac_link\") >&5
3357ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3358echo "$ac_f77_v_output" >&5
3359FFLAGS=$ac_save_FFLAGS
3360
3361rm -f conftest*
3362
3363# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3364# /foo, /bar, and /baz are search directories for the Fortran linker.
3365# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3366ac_f77_v_output="`echo $ac_f77_v_output |
3367	grep 'LPATH is:' |
3368	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3369
3370case $ac_f77_v_output in
3371  # If we are using xlf then replace all the commas with spaces.
3372  *xlfentry*)
3373    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3374
3375  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3376  # $LIBS confuse us, and the libraries appear later in the output anyway).
3377  *mGLOB_options_string*)
3378    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3379
3380  # If we are using Cray Fortran then delete quotes.
3381  # Use "\"" instead of '"' for font-lock-mode.
3382  # FIXME: a more general fix for quoted arguments with spaces?
3383  *cft90*)
3384    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3385esac
3386
3387
3388  # look for -l* and *.a constructs in the output
3389  for ac_arg in $ac_f77_v_output; do
3390     case $ac_arg in
3391        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3392          ac_cv_prog_f77_v=$ac_verb
3393          break 2 ;;
3394     esac
3395  done
3396done
3397if test -z "$ac_cv_prog_f77_v"; then
3398   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3399echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3400fi
3401else
3402  echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3406echo "$as_me: WARNING: compilation failed" >&2;}
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409
3410fi
3411echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3412echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3413echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3414echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3415if test "${ac_cv_f77_libs+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  if test "x$FLIBS" != "x"; then
3419  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3420else
3421
3422cat >conftest.$ac_ext <<_ACEOF
3423      program main
3424
3425      end
3426_ACEOF
3427
3428# Compile and link our simple test program by passing a flag (argument
3429# 1 to this macro) to the Fortran compiler in order to get
3430# "verbose" output that we can then parse for the Fortran linker
3431# flags.
3432ac_save_FFLAGS=$FFLAGS
3433FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3434(eval echo $as_me:3434: \"$ac_link\") >&5
3435ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3436echo "$ac_f77_v_output" >&5
3437FFLAGS=$ac_save_FFLAGS
3438
3439rm -f conftest*
3440
3441# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3442# /foo, /bar, and /baz are search directories for the Fortran linker.
3443# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3444ac_f77_v_output="`echo $ac_f77_v_output |
3445	grep 'LPATH is:' |
3446	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3447
3448case $ac_f77_v_output in
3449  # If we are using xlf then replace all the commas with spaces.
3450  *xlfentry*)
3451    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3452
3453  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3454  # $LIBS confuse us, and the libraries appear later in the output anyway).
3455  *mGLOB_options_string*)
3456    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3457
3458  # If we are using Cray Fortran then delete quotes.
3459  # Use "\"" instead of '"' for font-lock-mode.
3460  # FIXME: a more general fix for quoted arguments with spaces?
3461  *cft90*)
3462    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3463esac
3464
3465
3466
3467ac_cv_f77_libs=
3468
3469# Save positional arguments (if any)
3470ac_save_positional="$@"
3471
3472set X $ac_f77_v_output
3473while test $# != 1; do
3474  shift
3475  ac_arg=$1
3476  case $ac_arg in
3477        [\\/]*.a | ?:[\\/]*.a)
3478            ac_exists=false
3479  for ac_i in $ac_cv_f77_libs; do
3480    if test x"$ac_arg" = x"$ac_i"; then
3481      ac_exists=true
3482      break
3483    fi
3484  done
3485
3486  if test x"$ac_exists" = xtrue; then
3487  :
3488else
3489  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3490fi
3491
3492          ;;
3493        -bI:*)
3494            ac_exists=false
3495  for ac_i in $ac_cv_f77_libs; do
3496    if test x"$ac_arg" = x"$ac_i"; then
3497      ac_exists=true
3498      break
3499    fi
3500  done
3501
3502  if test x"$ac_exists" = xtrue; then
3503  :
3504else
3505  if test "$ac_compiler_gnu" = yes; then
3506  for ac_link_opt in $ac_arg; do
3507    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
3508  done
3509else
3510  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3511fi
3512fi
3513
3514          ;;
3515          # Ignore these flags.
3516        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
3517          ;;
3518        -lkernel32)
3519          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3520          ;;
3521        -[LRuY])
3522          # These flags, when seen by themselves, take an argument.
3523          # We remove the space between option and argument and re-iterate
3524          # unless we find an empty arg or a new option (starting with -)
3525	  case $2 in
3526	     "" | -*);;
3527	     *)
3528		ac_arg="$ac_arg$2"
3529		shift; shift
3530		set X $ac_arg "$@"
3531		;;
3532	  esac
3533          ;;
3534        -YP,*)
3535          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3536              ac_exists=false
3537  for ac_i in $ac_cv_f77_libs; do
3538    if test x"$ac_j" = x"$ac_i"; then
3539      ac_exists=true
3540      break
3541    fi
3542  done
3543
3544  if test x"$ac_exists" = xtrue; then
3545  :
3546else
3547  ac_arg="$ac_arg $ac_j"
3548                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
3549fi
3550
3551          done
3552          ;;
3553        -[lLR]*)
3554            ac_exists=false
3555  for ac_i in $ac_cv_f77_libs; do
3556    if test x"$ac_arg" = x"$ac_i"; then
3557      ac_exists=true
3558      break
3559    fi
3560  done
3561
3562  if test x"$ac_exists" = xtrue; then
3563  :
3564else
3565  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3566fi
3567
3568          ;;
3569          # Ignore everything else.
3570  esac
3571done
3572# restore positional arguments
3573set X $ac_save_positional; shift
3574
3575# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3576# then we insist that the "run path" must be an absolute path (i.e. it
3577# must begin with a "/").
3578case `(uname -sr) 2>/dev/null` in
3579   "SunOS 5"*)
3580      ac_ld_run_path=`echo $ac_f77_v_output |
3581                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3582      test "x$ac_ld_run_path" != x &&
3583        if test "$ac_compiler_gnu" = yes; then
3584  for ac_link_opt in $ac_ld_run_path; do
3585    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
3586  done
3587else
3588  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
3589fi
3590      ;;
3591esac
3592fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
3593
3594fi
3595echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
3596echo "${ECHO_T}$ac_cv_f77_libs" >&6
3597FLIBS="$ac_cv_f77_libs"
3598
3599
3600ac_ext=c
3601ac_cpp='$CPP $CPPFLAGS'
3602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607ac_ext=f
3608ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3609ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3611
3612echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
3613echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
3614if test "${ac_cv_f77_dummy_main+set}" = set; then
3615  echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617  ac_f77_dm_save_LIBS=$LIBS
3618 LIBS="$LIBS $FLIBS"
3619 ac_fortran_dm_var=F77_DUMMY_MAIN
3620 ac_ext=c
3621ac_cpp='$CPP $CPPFLAGS'
3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626 # First, try linking without a dummy main:
3627 cat >conftest.$ac_ext <<_ACEOF
3628/* confdefs.h.  */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h.  */
3633
3634#ifdef F77_DUMMY_MAIN
3635
3636#  ifdef __cplusplus
3637     extern "C"
3638#  endif
3639   int F77_DUMMY_MAIN() { return 1; }
3640
3641#endif
3642int
3643main ()
3644{
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext conftest$ac_exeext
3651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3652  (eval $ac_link) 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } &&
3659	 { ac_try='test -z "$ac_c_werror_flag"
3660			 || test ! -s conftest.err'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; } &&
3666	 { ac_try='test -s conftest$ac_exeext'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; }; then
3672  ac_cv_fortran_dummy_main=none
3673else
3674  echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677ac_cv_fortran_dummy_main=unknown
3678fi
3679rm -f conftest.err conftest.$ac_objext \
3680      conftest$ac_exeext conftest.$ac_ext
3681
3682 if test $ac_cv_fortran_dummy_main = unknown; then
3683   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
3684     cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h.  */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h.  */
3690#define $ac_fortran_dm_var $ac_func
3691#ifdef F77_DUMMY_MAIN
3692
3693#  ifdef __cplusplus
3694     extern "C"
3695#  endif
3696   int F77_DUMMY_MAIN() { return 1; }
3697
3698#endif
3699int
3700main ()
3701{
3702
3703  ;
3704  return 0;
3705}
3706_ACEOF
3707rm -f conftest.$ac_objext conftest$ac_exeext
3708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709  (eval $ac_link) 2>conftest.er1
3710  ac_status=$?
3711  grep -v '^ *+' conftest.er1 >conftest.err
3712  rm -f conftest.er1
3713  cat conftest.err >&5
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); } &&
3716	 { ac_try='test -z "$ac_c_werror_flag"
3717			 || test ! -s conftest.err'
3718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719  (eval $ac_try) 2>&5
3720  ac_status=$?
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); }; } &&
3723	 { ac_try='test -s conftest$ac_exeext'
3724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725  (eval $ac_try) 2>&5
3726  ac_status=$?
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); }; }; then
3729  ac_cv_fortran_dummy_main=$ac_func; break
3730else
3731  echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734fi
3735rm -f conftest.err conftest.$ac_objext \
3736      conftest$ac_exeext conftest.$ac_ext
3737   done
3738 fi
3739 ac_ext=f
3740ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3741ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3743 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
3744 rm -f conftest*
3745 LIBS=$ac_f77_dm_save_LIBS
3746
3747fi
3748echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
3749echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
3750F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
3751if test "$F77_DUMMY_MAIN" != unknown; then
3752  if test $F77_DUMMY_MAIN != none; then
3753
3754cat >>confdefs.h <<_ACEOF
3755#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
3756_ACEOF
3757
3758  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
3759
3760cat >>confdefs.h <<\_ACEOF
3761#define FC_DUMMY_MAIN_EQ_F77 1
3762_ACEOF
3763
3764  fi
3765fi
3766else
3767  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
3768See \`config.log' for more details." >&5
3769echo "$as_me: error: linking to Fortran libraries from C fails
3770See \`config.log' for more details." >&2;}
3771   { (exit 1); exit 1; }; }
3772fi
3773
3774
3775ac_ext=c
3776ac_cpp='$CPP $CPPFLAGS'
3777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780
3781ac_ext=f
3782ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3783ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3785echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
3786echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
3787if test "${ac_cv_f77_mangling+set}" = set; then
3788  echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790  cat >conftest.$ac_ext <<_ACEOF
3791      subroutine foobar()
3792      return
3793      end
3794      subroutine foo_bar()
3795      return
3796      end
3797_ACEOF
3798rm -f conftest.$ac_objext
3799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800  (eval $ac_compile) 2>conftest.er1
3801  ac_status=$?
3802  grep -v '^ *+' conftest.er1 >conftest.err
3803  rm -f conftest.er1
3804  cat conftest.err >&5
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); } &&
3807	 { ac_try='test -z "$ac_f77_werror_flag"
3808			 || test ! -s conftest.err'
3809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810  (eval $ac_try) 2>&5
3811  ac_status=$?
3812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813  (exit $ac_status); }; } &&
3814	 { ac_try='test -s conftest.$ac_objext'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; }; then
3820  mv conftest.$ac_objext cfortran_test.$ac_objext
3821
3822  ac_save_LIBS=$LIBS
3823  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
3824
3825  ac_ext=c
3826ac_cpp='$CPP $CPPFLAGS'
3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830  ac_success=no
3831  for ac_foobar in foobar FOOBAR; do
3832    for ac_underscore in "" "_"; do
3833      ac_func="$ac_foobar$ac_underscore"
3834      cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h.  */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h.  */
3840
3841/* Override any gcc2 internal prototype to avoid an error.  */
3842#ifdef __cplusplus
3843extern "C"
3844#endif
3845/* We use char because int might match the return type of a gcc2
3846   builtin and then its argument prototype would still apply.  */
3847char $ac_func ();
3848#ifdef F77_DUMMY_MAIN
3849
3850#  ifdef __cplusplus
3851     extern "C"
3852#  endif
3853   int F77_DUMMY_MAIN() { return 1; }
3854
3855#endif
3856int
3857main ()
3858{
3859$ac_func ();
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext conftest$ac_exeext
3865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866  (eval $ac_link) 2>conftest.er1
3867  ac_status=$?
3868  grep -v '^ *+' conftest.er1 >conftest.err
3869  rm -f conftest.er1
3870  cat conftest.err >&5
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); } &&
3873	 { ac_try='test -z "$ac_c_werror_flag"
3874			 || test ! -s conftest.err'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; } &&
3880	 { ac_try='test -s conftest$ac_exeext'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; }; then
3886  ac_success=yes; break 2
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891fi
3892rm -f conftest.err conftest.$ac_objext \
3893      conftest$ac_exeext conftest.$ac_ext
3894    done
3895  done
3896  ac_ext=f
3897ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3898ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3900
3901  if test "$ac_success" = "yes"; then
3902     case $ac_foobar in
3903	foobar)
3904	   ac_case=lower
3905	   ac_foo_bar=foo_bar
3906	   ;;
3907	FOOBAR)
3908	   ac_case=upper
3909	   ac_foo_bar=FOO_BAR
3910	   ;;
3911     esac
3912
3913     ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918     ac_success_extra=no
3919     for ac_extra in "" "_"; do
3920	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3921	cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h.  */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h.  */
3927
3928/* Override any gcc2 internal prototype to avoid an error.  */
3929#ifdef __cplusplus
3930extern "C"
3931#endif
3932/* We use char because int might match the return type of a gcc2
3933   builtin and then its argument prototype would still apply.  */
3934char $ac_func ();
3935#ifdef F77_DUMMY_MAIN
3936
3937#  ifdef __cplusplus
3938     extern "C"
3939#  endif
3940   int F77_DUMMY_MAIN() { return 1; }
3941
3942#endif
3943int
3944main ()
3945{
3946$ac_func ();
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext conftest$ac_exeext
3952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953  (eval $ac_link) 2>conftest.er1
3954  ac_status=$?
3955  grep -v '^ *+' conftest.er1 >conftest.err
3956  rm -f conftest.er1
3957  cat conftest.err >&5
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } &&
3960	 { ac_try='test -z "$ac_c_werror_flag"
3961			 || test ! -s conftest.err'
3962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963  (eval $ac_try) 2>&5
3964  ac_status=$?
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); }; } &&
3967	 { ac_try='test -s conftest$ac_exeext'
3968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969  (eval $ac_try) 2>&5
3970  ac_status=$?
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); }; }; then
3973  ac_success_extra=yes; break
3974else
3975  echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978fi
3979rm -f conftest.err conftest.$ac_objext \
3980      conftest$ac_exeext conftest.$ac_ext
3981     done
3982     ac_ext=f
3983ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3984ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3986
3987     if test "$ac_success_extra" = "yes"; then
3988	ac_cv_f77_mangling="$ac_case case"
3989        if test -z "$ac_underscore"; then
3990           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
3991	else
3992           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
3993        fi
3994        if test -z "$ac_extra"; then
3995           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
3996	else
3997           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
3998        fi
3999      else
4000	ac_cv_f77_mangling="unknown"
4001      fi
4002  else
4003     ac_cv_f77_mangling="unknown"
4004  fi
4005
4006  LIBS=$ac_save_LIBS
4007  rm -f cfortran_test* conftest*
4008else
4009  echo "$as_me: failed program was:" >&5
4010sed 's/^/| /' conftest.$ac_ext >&5
4011
4012{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4013See \`config.log' for more details." >&5
4014echo "$as_me: error: cannot compile a simple Fortran program
4015See \`config.log' for more details." >&2;}
4016   { (exit 1); exit 1; }; }
4017fi
4018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4019
4020fi
4021echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4022echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4023
4024ac_ext=c
4025ac_cpp='$CPP $CPPFLAGS'
4026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029
4030ac_ext=f
4031ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4032ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4034
4035
4036case $ac_cv_f77_mangling in
4037  "lower case, no underscore, no extra underscore")
4038          cat >>confdefs.h <<\_ACEOF
4039#define F77_FUNC(name,NAME) name
4040_ACEOF
4041
4042          cat >>confdefs.h <<\_ACEOF
4043#define F77_FUNC_(name,NAME) name
4044_ACEOF
4045 ;;
4046  "lower case, no underscore, extra underscore")
4047          cat >>confdefs.h <<\_ACEOF
4048#define F77_FUNC(name,NAME) name
4049_ACEOF
4050
4051          cat >>confdefs.h <<\_ACEOF
4052#define F77_FUNC_(name,NAME) name ## _
4053_ACEOF
4054 ;;
4055  "lower case, underscore, no extra underscore")
4056          cat >>confdefs.h <<\_ACEOF
4057#define F77_FUNC(name,NAME) name ## _
4058_ACEOF
4059
4060          cat >>confdefs.h <<\_ACEOF
4061#define F77_FUNC_(name,NAME) name ## _
4062_ACEOF
4063 ;;
4064  "lower case, underscore, extra underscore")
4065          cat >>confdefs.h <<\_ACEOF
4066#define F77_FUNC(name,NAME) name ## _
4067_ACEOF
4068
4069          cat >>confdefs.h <<\_ACEOF
4070#define F77_FUNC_(name,NAME) name ## __
4071_ACEOF
4072 ;;
4073  "upper case, no underscore, no extra underscore")
4074          cat >>confdefs.h <<\_ACEOF
4075#define F77_FUNC(name,NAME) NAME
4076_ACEOF
4077
4078          cat >>confdefs.h <<\_ACEOF
4079#define F77_FUNC_(name,NAME) NAME
4080_ACEOF
4081 ;;
4082  "upper case, no underscore, extra underscore")
4083          cat >>confdefs.h <<\_ACEOF
4084#define F77_FUNC(name,NAME) NAME
4085_ACEOF
4086
4087          cat >>confdefs.h <<\_ACEOF
4088#define F77_FUNC_(name,NAME) NAME ## _
4089_ACEOF
4090 ;;
4091  "upper case, underscore, no extra underscore")
4092          cat >>confdefs.h <<\_ACEOF
4093#define F77_FUNC(name,NAME) NAME ## _
4094_ACEOF
4095
4096          cat >>confdefs.h <<\_ACEOF
4097#define F77_FUNC_(name,NAME) NAME ## _
4098_ACEOF
4099 ;;
4100  "upper case, underscore, extra underscore")
4101          cat >>confdefs.h <<\_ACEOF
4102#define F77_FUNC(name,NAME) NAME ## _
4103_ACEOF
4104
4105          cat >>confdefs.h <<\_ACEOF
4106#define F77_FUNC_(name,NAME) NAME ## __
4107_ACEOF
4108 ;;
4109  *)
4110          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4111echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4112          ;;
4113esac
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
4123# AC_EXEEXT macros only works for C compilers!
4124# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
4125# the test language to C.  We do it before any libtool setup macros are
4126# called so that the proper values are cached beforehand.  We also do
4127# it before any linker flags (LDFLAGS) are set so that fortran specific
4128# ones don't break the tests.
4129ac_ext=c
4130ac_cpp='$CPP $CPPFLAGS'
4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135
4136
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143
4144## ----------------------- ##
4145## Libtool initialisation. ##
4146## ----------------------- ##
4147# Check whether --enable-shared or --disable-shared was given.
4148if test "${enable_shared+set}" = set; then
4149  enableval="$enable_shared"
4150  p=${PACKAGE-default}
4151    case $enableval in
4152    yes) enable_shared=yes ;;
4153    no) enable_shared=no ;;
4154    *)
4155      enable_shared=no
4156      # Look at the argument we got.  We use all the common list separators.
4157      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4158      for pkg in $enableval; do
4159	IFS="$lt_save_ifs"
4160	if test "X$pkg" = "X$p"; then
4161	  enable_shared=yes
4162	fi
4163      done
4164      IFS="$lt_save_ifs"
4165      ;;
4166    esac
4167else
4168  enable_shared=yes
4169fi;
4170
4171# Check whether --enable-static or --disable-static was given.
4172if test "${enable_static+set}" = set; then
4173  enableval="$enable_static"
4174  p=${PACKAGE-default}
4175    case $enableval in
4176    yes) enable_static=yes ;;
4177    no) enable_static=no ;;
4178    *)
4179     enable_static=no
4180      # Look at the argument we got.  We use all the common list separators.
4181      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4182      for pkg in $enableval; do
4183	IFS="$lt_save_ifs"
4184	if test "X$pkg" = "X$p"; then
4185	  enable_static=yes
4186	fi
4187      done
4188      IFS="$lt_save_ifs"
4189      ;;
4190    esac
4191else
4192  enable_static=yes
4193fi;
4194
4195# Check whether --enable-fast-install or --disable-fast-install was given.
4196if test "${enable_fast_install+set}" = set; then
4197  enableval="$enable_fast_install"
4198  p=${PACKAGE-default}
4199    case $enableval in
4200    yes) enable_fast_install=yes ;;
4201    no) enable_fast_install=no ;;
4202    *)
4203      enable_fast_install=no
4204      # Look at the argument we got.  We use all the common list separators.
4205      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4206      for pkg in $enableval; do
4207	IFS="$lt_save_ifs"
4208	if test "X$pkg" = "X$p"; then
4209	  enable_fast_install=yes
4210	fi
4211      done
4212      IFS="$lt_save_ifs"
4213      ;;
4214    esac
4215else
4216  enable_fast_install=yes
4217fi;
4218
4219# Make sure we can run config.sub.
4220$ac_config_sub sun4 >/dev/null 2>&1 ||
4221  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4222echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4223   { (exit 1); exit 1; }; }
4224
4225echo "$as_me:$LINENO: checking build system type" >&5
4226echo $ECHO_N "checking build system type... $ECHO_C" >&6
4227if test "${ac_cv_build+set}" = set; then
4228  echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230  ac_cv_build_alias=$build_alias
4231test -z "$ac_cv_build_alias" &&
4232  ac_cv_build_alias=`$ac_config_guess`
4233test -z "$ac_cv_build_alias" &&
4234  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4235echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4236   { (exit 1); exit 1; }; }
4237ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4238  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4239echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4240   { (exit 1); exit 1; }; }
4241
4242fi
4243echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4244echo "${ECHO_T}$ac_cv_build" >&6
4245build=$ac_cv_build
4246build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4247build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4248build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4249
4250
4251echo "$as_me:$LINENO: checking host system type" >&5
4252echo $ECHO_N "checking host system type... $ECHO_C" >&6
4253if test "${ac_cv_host+set}" = set; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  ac_cv_host_alias=$host_alias
4257test -z "$ac_cv_host_alias" &&
4258  ac_cv_host_alias=$ac_cv_build_alias
4259ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4260  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4261echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4262   { (exit 1); exit 1; }; }
4263
4264fi
4265echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4266echo "${ECHO_T}$ac_cv_host" >&6
4267host=$ac_cv_host
4268host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4269host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4270host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4271
4272
4273echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4274echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4275if test "${lt_cv_path_SED+set}" = set; then
4276  echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278  # Loop through the user's path and test for sed and gsed.
4279# Then use that list of sed's as ones to test for truncation.
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283  IFS=$as_save_IFS
4284  test -z "$as_dir" && as_dir=.
4285  for lt_ac_prog in sed gsed; do
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4288        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4289      fi
4290    done
4291  done
4292done
4293lt_ac_max=0
4294lt_ac_count=0
4295# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4296# along with /bin/sed that truncates output.
4297for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4298  test ! -f $lt_ac_sed && continue
4299  cat /dev/null > conftest.in
4300  lt_ac_count=0
4301  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4302  # Check for GNU sed and select it if it is found.
4303  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4304    lt_cv_path_SED=$lt_ac_sed
4305    break
4306  fi
4307  while true; do
4308    cat conftest.in conftest.in >conftest.tmp
4309    mv conftest.tmp conftest.in
4310    cp conftest.in conftest.nl
4311    echo >>conftest.nl
4312    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4313    cmp -s conftest.out conftest.nl || break
4314    # 10000 chars as input seems more than enough
4315    test $lt_ac_count -gt 10 && break
4316    lt_ac_count=`expr $lt_ac_count + 1`
4317    if test $lt_ac_count -gt $lt_ac_max; then
4318      lt_ac_max=$lt_ac_count
4319      lt_cv_path_SED=$lt_ac_sed
4320    fi
4321  done
4322done
4323
4324fi
4325
4326SED=$lt_cv_path_SED
4327echo "$as_me:$LINENO: result: $SED" >&5
4328echo "${ECHO_T}$SED" >&6
4329
4330echo "$as_me:$LINENO: checking for egrep" >&5
4331echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4332if test "${ac_cv_prog_egrep+set}" = set; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4336    then ac_cv_prog_egrep='grep -E'
4337    else ac_cv_prog_egrep='egrep'
4338    fi
4339fi
4340echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4341echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4342 EGREP=$ac_cv_prog_egrep
4343
4344
4345
4346# Check whether --with-gnu-ld or --without-gnu-ld was given.
4347if test "${with_gnu_ld+set}" = set; then
4348  withval="$with_gnu_ld"
4349  test "$withval" = no || with_gnu_ld=yes
4350else
4351  with_gnu_ld=no
4352fi;
4353ac_prog=ld
4354if test "$GCC" = yes; then
4355  # Check if gcc -print-prog-name=ld gives a path.
4356  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4357echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4358  case $host in
4359  *-*-mingw*)
4360    # gcc leaves a trailing carriage return which upsets mingw
4361    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4362  *)
4363    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4364  esac
4365  case $ac_prog in
4366    # Accept absolute paths.
4367    [\\/]* | ?:[\\/]*)
4368      re_direlt='/[^/][^/]*/\.\./'
4369      # Canonicalize the pathname of ld
4370      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4371      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4372	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4373      done
4374      test -z "$LD" && LD="$ac_prog"
4375      ;;
4376  "")
4377    # If it fails, then pretend we aren't using GCC.
4378    ac_prog=ld
4379    ;;
4380  *)
4381    # If it is relative, then search for the first ld in PATH.
4382    with_gnu_ld=unknown
4383    ;;
4384  esac
4385elif test "$with_gnu_ld" = yes; then
4386  echo "$as_me:$LINENO: checking for GNU ld" >&5
4387echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4388else
4389  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4390echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4391fi
4392if test "${lt_cv_path_LD+set}" = set; then
4393  echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395  if test -z "$LD"; then
4396  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4397  for ac_dir in $PATH; do
4398    IFS="$lt_save_ifs"
4399    test -z "$ac_dir" && ac_dir=.
4400    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4401      lt_cv_path_LD="$ac_dir/$ac_prog"
4402      # Check to see if the program is GNU ld.  I'd rather use --version,
4403      # but apparently some variants of GNU ld only accept -v.
4404      # Break only if it was the GNU/non-GNU ld that we prefer.
4405      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4406      *GNU* | *'with BFD'*)
4407	test "$with_gnu_ld" != no && break
4408	;;
4409      *)
4410	test "$with_gnu_ld" != yes && break
4411	;;
4412      esac
4413    fi
4414  done
4415  IFS="$lt_save_ifs"
4416else
4417  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4418fi
4419fi
4420
4421LD="$lt_cv_path_LD"
4422if test -n "$LD"; then
4423  echo "$as_me:$LINENO: result: $LD" >&5
4424echo "${ECHO_T}$LD" >&6
4425else
4426  echo "$as_me:$LINENO: result: no" >&5
4427echo "${ECHO_T}no" >&6
4428fi
4429test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4430echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4431   { (exit 1); exit 1; }; }
4432echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4433echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4434if test "${lt_cv_prog_gnu_ld+set}" = set; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4438case `$LD -v 2>&1 </dev/null` in
4439*GNU* | *'with BFD'*)
4440  lt_cv_prog_gnu_ld=yes
4441  ;;
4442*)
4443  lt_cv_prog_gnu_ld=no
4444  ;;
4445esac
4446fi
4447echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4448echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4449with_gnu_ld=$lt_cv_prog_gnu_ld
4450
4451
4452echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4453echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4454if test "${lt_cv_ld_reload_flag+set}" = set; then
4455  echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457  lt_cv_ld_reload_flag='-r'
4458fi
4459echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4460echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4461reload_flag=$lt_cv_ld_reload_flag
4462case $reload_flag in
4463"" | " "*) ;;
4464*) reload_flag=" $reload_flag" ;;
4465esac
4466reload_cmds='$LD$reload_flag -o $output$reload_objs'
4467case $host_os in
4468  darwin*)
4469    if test "$GCC" = yes; then
4470      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4471    else
4472      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4473    fi
4474    ;;
4475esac
4476
4477echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4478echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4479if test "${lt_cv_path_NM+set}" = set; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482  if test -n "$NM"; then
4483  # Let the user override the test.
4484  lt_cv_path_NM="$NM"
4485else
4486  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4487  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4488    IFS="$lt_save_ifs"
4489    test -z "$ac_dir" && ac_dir=.
4490    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4491    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4492      # Check to see if the nm accepts a BSD-compat flag.
4493      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4494      #   nm: unknown option "B" ignored
4495      # Tru64's nm complains that /dev/null is an invalid object file
4496      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4497      */dev/null* | *'Invalid file or object type'*)
4498	lt_cv_path_NM="$tmp_nm -B"
4499	break
4500        ;;
4501      *)
4502	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4503	*/dev/null*)
4504	  lt_cv_path_NM="$tmp_nm -p"
4505	  break
4506	  ;;
4507	*)
4508	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4509	  continue # so that we can try to find one that supports BSD flags
4510	  ;;
4511	esac
4512      esac
4513    fi
4514  done
4515  IFS="$lt_save_ifs"
4516  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4517fi
4518fi
4519echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4520echo "${ECHO_T}$lt_cv_path_NM" >&6
4521NM="$lt_cv_path_NM"
4522
4523echo "$as_me:$LINENO: checking whether ln -s works" >&5
4524echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4525LN_S=$as_ln_s
4526if test "$LN_S" = "ln -s"; then
4527  echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529else
4530  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4531echo "${ECHO_T}no, using $LN_S" >&6
4532fi
4533
4534echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4535echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4536if test "${lt_cv_deplibs_check_method+set}" = set; then
4537  echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539  lt_cv_file_magic_cmd='$MAGIC_CMD'
4540lt_cv_file_magic_test_file=
4541lt_cv_deplibs_check_method='unknown'
4542# Need to set the preceding variable on all platforms that support
4543# interlibrary dependencies.
4544# 'none' -- dependencies not supported.
4545# `unknown' -- same as none, but documents that we really don't know.
4546# 'pass_all' -- all dependencies passed with no checks.
4547# 'test_compile' -- check by making test program.
4548# 'file_magic [[regex]]' -- check by looking for files in library path
4549# which responds to the $file_magic_cmd with a given extended regex.
4550# If you have `file' or equivalent on your system and you're not sure
4551# whether `pass_all' will *always* work, you probably want this one.
4552
4553case $host_os in
4554aix4* | aix5*)
4555  lt_cv_deplibs_check_method=pass_all
4556  ;;
4557
4558beos*)
4559  lt_cv_deplibs_check_method=pass_all
4560  ;;
4561
4562bsdi[45]*)
4563  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4564  lt_cv_file_magic_cmd='/usr/bin/file -L'
4565  lt_cv_file_magic_test_file=/shlib/libc.so
4566  ;;
4567
4568cygwin*)
4569  # func_win32_libid is a shell function defined in ltmain.sh
4570  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4571  lt_cv_file_magic_cmd='func_win32_libid'
4572  ;;
4573
4574mingw* | pw32*)
4575  # Base MSYS/MinGW do not provide the 'file' command needed by
4576  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4577  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4578  lt_cv_file_magic_cmd='$OBJDUMP -f'
4579  ;;
4580
4581darwin* | rhapsody*)
4582  lt_cv_deplibs_check_method=pass_all
4583  ;;
4584
4585freebsd* | kfreebsd*-gnu | dragonfly*)
4586  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4587    case $host_cpu in
4588    i*86 )
4589      # Not sure whether the presence of OpenBSD here was a mistake.
4590      # Let's accept both of them until this is cleared up.
4591      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4592      lt_cv_file_magic_cmd=/usr/bin/file
4593      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4594      ;;
4595    esac
4596  else
4597    lt_cv_deplibs_check_method=pass_all
4598  fi
4599  ;;
4600
4601gnu*)
4602  lt_cv_deplibs_check_method=pass_all
4603  ;;
4604
4605haiku*)
4606  lt_cv_deplibs_check_method=pass_all
4607  ;;
4608
4609hpux10.20* | hpux11*)
4610  lt_cv_file_magic_cmd=/usr/bin/file
4611  case $host_cpu in
4612  ia64*)
4613    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4614    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4615    ;;
4616  hppa*64*)
4617    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]'
4618    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4619    ;;
4620  *)
4621    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4622    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4623    ;;
4624  esac
4625  ;;
4626
4627irix5* | irix6* | nonstopux*)
4628  case $LD in
4629  *-32|*"-32 ") libmagic=32-bit;;
4630  *-n32|*"-n32 ") libmagic=N32;;
4631  *-64|*"-64 ") libmagic=64-bit;;
4632  *) libmagic=never-match;;
4633  esac
4634  lt_cv_deplibs_check_method=pass_all
4635  ;;
4636
4637# This must be Linux ELF.
4638linux*)
4639  lt_cv_deplibs_check_method=pass_all
4640  ;;
4641
4642netbsd*)
4643  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4644    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4645  else
4646    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4647  fi
4648  ;;
4649
4650newos6*)
4651  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4652  lt_cv_file_magic_cmd=/usr/bin/file
4653  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4654  ;;
4655
4656nto-qnx*)
4657  lt_cv_deplibs_check_method=unknown
4658  ;;
4659
4660openbsd*)
4661  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4662    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4663  else
4664    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4665  fi
4666  ;;
4667
4668osf3* | osf4* | osf5*)
4669  lt_cv_deplibs_check_method=pass_all
4670  ;;
4671
4672sco3.2v5*)
4673  lt_cv_deplibs_check_method=pass_all
4674  ;;
4675
4676solaris*)
4677  lt_cv_deplibs_check_method=pass_all
4678  ;;
4679
4680sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4681  case $host_vendor in
4682  motorola)
4683    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]'
4684    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4685    ;;
4686  ncr)
4687    lt_cv_deplibs_check_method=pass_all
4688    ;;
4689  sequent)
4690    lt_cv_file_magic_cmd='/bin/file'
4691    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4692    ;;
4693  sni)
4694    lt_cv_file_magic_cmd='/bin/file'
4695    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4696    lt_cv_file_magic_test_file=/lib/libc.so
4697    ;;
4698  siemens)
4699    lt_cv_deplibs_check_method=pass_all
4700    ;;
4701  esac
4702  ;;
4703
4704sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4705  lt_cv_deplibs_check_method=pass_all
4706  ;;
4707esac
4708
4709fi
4710echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4711echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4712file_magic_cmd=$lt_cv_file_magic_cmd
4713deplibs_check_method=$lt_cv_deplibs_check_method
4714test -z "$deplibs_check_method" && deplibs_check_method=unknown
4715
4716
4717# If no C compiler was specified, use CC.
4718LTCC=${LTCC-"$CC"}
4719
4720# Allow CC to be a program name with arguments.
4721compiler=$CC
4722
4723# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4724if test "${enable_libtool_lock+set}" = set; then
4725  enableval="$enable_libtool_lock"
4726
4727fi;
4728test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4729
4730# Some flags need to be propagated to the compiler or linker for good
4731# libtool support.
4732case $host in
4733ia64-*-hpux*)
4734  # Find out which ABI we are using.
4735  echo 'int i;' > conftest.$ac_ext
4736  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737  (eval $ac_compile) 2>&5
4738  ac_status=$?
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); }; then
4741    case `/usr/bin/file conftest.$ac_objext` in
4742    *ELF-32*)
4743      HPUX_IA64_MODE="32"
4744      ;;
4745    *ELF-64*)
4746      HPUX_IA64_MODE="64"
4747      ;;
4748    esac
4749  fi
4750  rm -rf conftest*
4751  ;;
4752*-*-irix6*)
4753  # Find out which ABI we are using.
4754  echo '#line 4754 "configure"' > conftest.$ac_ext
4755  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756  (eval $ac_compile) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; then
4760   if test "$lt_cv_prog_gnu_ld" = yes; then
4761    case `/usr/bin/file conftest.$ac_objext` in
4762    *32-bit*)
4763      LD="${LD-ld} -melf32bsmip"
4764      ;;
4765    *N32*)
4766      LD="${LD-ld} -melf32bmipn32"
4767      ;;
4768    *64-bit*)
4769      LD="${LD-ld} -melf64bmip"
4770      ;;
4771    esac
4772   else
4773    case `/usr/bin/file conftest.$ac_objext` in
4774    *32-bit*)
4775      LD="${LD-ld} -32"
4776      ;;
4777    *N32*)
4778      LD="${LD-ld} -n32"
4779      ;;
4780    *64-bit*)
4781      LD="${LD-ld} -64"
4782      ;;
4783    esac
4784   fi
4785  fi
4786  rm -rf conftest*
4787  ;;
4788
4789x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4790  # Find out which ABI we are using.
4791  echo 'int i;' > conftest.$ac_ext
4792  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793  (eval $ac_compile) 2>&5
4794  ac_status=$?
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); }; then
4797    case `/usr/bin/file conftest.o` in
4798    *32-bit*)
4799      case $host in
4800        x86_64-*linux*)
4801          LD="${LD-ld} -m elf_i386"
4802          ;;
4803        ppc64-*linux*|powerpc64-*linux*)
4804          LD="${LD-ld} -m elf32ppclinux"
4805          ;;
4806        s390x-*linux*)
4807          LD="${LD-ld} -m elf_s390"
4808          ;;
4809        sparc64-*linux*)
4810          LD="${LD-ld} -m elf32_sparc"
4811          ;;
4812      esac
4813      ;;
4814    *64-bit*)
4815      case $host in
4816        x86_64-*linux*)
4817          LD="${LD-ld} -m elf_x86_64"
4818          ;;
4819        ppc*-*linux*|powerpc*-*linux*)
4820          LD="${LD-ld} -m elf64ppc"
4821          ;;
4822        s390*-*linux*)
4823          LD="${LD-ld} -m elf64_s390"
4824          ;;
4825        sparc*-*linux*)
4826          LD="${LD-ld} -m elf64_sparc"
4827          ;;
4828      esac
4829      ;;
4830    esac
4831  fi
4832  rm -rf conftest*
4833  ;;
4834
4835*-*-sco3.2v5*)
4836  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4837  SAVE_CFLAGS="$CFLAGS"
4838  CFLAGS="$CFLAGS -belf"
4839  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4840echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4841if test "${lt_cv_cc_needs_belf+set}" = set; then
4842  echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844  ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850     cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h.  */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h.  */
4856
4857#ifdef F77_DUMMY_MAIN
4858
4859#  ifdef __cplusplus
4860     extern "C"
4861#  endif
4862   int F77_DUMMY_MAIN() { return 1; }
4863
4864#endif
4865int
4866main ()
4867{
4868
4869  ;
4870  return 0;
4871}
4872_ACEOF
4873rm -f conftest.$ac_objext conftest$ac_exeext
4874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875  (eval $ac_link) 2>conftest.er1
4876  ac_status=$?
4877  grep -v '^ *+' conftest.er1 >conftest.err
4878  rm -f conftest.er1
4879  cat conftest.err >&5
4880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881  (exit $ac_status); } &&
4882	 { ac_try='test -z "$ac_c_werror_flag"
4883			 || test ! -s conftest.err'
4884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885  (eval $ac_try) 2>&5
4886  ac_status=$?
4887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888  (exit $ac_status); }; } &&
4889	 { ac_try='test -s conftest$ac_exeext'
4890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891  (eval $ac_try) 2>&5
4892  ac_status=$?
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); }; }; then
4895  lt_cv_cc_needs_belf=yes
4896else
4897  echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900lt_cv_cc_needs_belf=no
4901fi
4902rm -f conftest.err conftest.$ac_objext \
4903      conftest$ac_exeext conftest.$ac_ext
4904     ac_ext=c
4905ac_cpp='$CPP $CPPFLAGS'
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910fi
4911echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4912echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4913  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4914    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4915    CFLAGS="$SAVE_CFLAGS"
4916  fi
4917  ;;
4918
4919esac
4920
4921need_locks="$enable_libtool_lock"
4922
4923
4924ac_ext=c
4925ac_cpp='$CPP $CPPFLAGS'
4926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4930echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4931# On Suns, sometimes $CPP names a directory.
4932if test -n "$CPP" && test -d "$CPP"; then
4933  CPP=
4934fi
4935if test -z "$CPP"; then
4936  if test "${ac_cv_prog_CPP+set}" = set; then
4937  echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939      # Double quotes because CPP needs to be expanded
4940    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4941    do
4942      ac_preproc_ok=false
4943for ac_c_preproc_warn_flag in '' yes
4944do
4945  # Use a header file that comes with gcc, so configuring glibc
4946  # with a fresh cross-compiler works.
4947  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4948  # <limits.h> exists even on freestanding compilers.
4949  # On the NeXT, cc -E runs the code through the compiler's parser,
4950  # not just through cpp. "Syntax error" is here to catch this case.
4951  cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h.  */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h.  */
4957#ifdef __STDC__
4958# include <limits.h>
4959#else
4960# include <assert.h>
4961#endif
4962		     Syntax error
4963_ACEOF
4964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4965  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4966  ac_status=$?
4967  grep -v '^ *+' conftest.er1 >conftest.err
4968  rm -f conftest.er1
4969  cat conftest.err >&5
4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971  (exit $ac_status); } >/dev/null; then
4972  if test -s conftest.err; then
4973    ac_cpp_err=$ac_c_preproc_warn_flag
4974    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4975  else
4976    ac_cpp_err=
4977  fi
4978else
4979  ac_cpp_err=yes
4980fi
4981if test -z "$ac_cpp_err"; then
4982  :
4983else
4984  echo "$as_me: failed program was:" >&5
4985sed 's/^/| /' conftest.$ac_ext >&5
4986
4987  # Broken: fails on valid input.
4988continue
4989fi
4990rm -f conftest.err conftest.$ac_ext
4991
4992  # OK, works on sane cases.  Now check whether non-existent headers
4993  # can be detected and how.
4994  cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h.  */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h.  */
5000#include <ac_nonexistent.h>
5001_ACEOF
5002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5003  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5004  ac_status=$?
5005  grep -v '^ *+' conftest.er1 >conftest.err
5006  rm -f conftest.er1
5007  cat conftest.err >&5
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); } >/dev/null; then
5010  if test -s conftest.err; then
5011    ac_cpp_err=$ac_c_preproc_warn_flag
5012    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013  else
5014    ac_cpp_err=
5015  fi
5016else
5017  ac_cpp_err=yes
5018fi
5019if test -z "$ac_cpp_err"; then
5020  # Broken: success on invalid input.
5021continue
5022else
5023  echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026  # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030rm -f conftest.err conftest.$ac_ext
5031
5032done
5033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034rm -f conftest.err conftest.$ac_ext
5035if $ac_preproc_ok; then
5036  break
5037fi
5038
5039    done
5040    ac_cv_prog_CPP=$CPP
5041
5042fi
5043  CPP=$ac_cv_prog_CPP
5044else
5045  ac_cv_prog_CPP=$CPP
5046fi
5047echo "$as_me:$LINENO: result: $CPP" >&5
5048echo "${ECHO_T}$CPP" >&6
5049ac_preproc_ok=false
5050for ac_c_preproc_warn_flag in '' yes
5051do
5052  # Use a header file that comes with gcc, so configuring glibc
5053  # with a fresh cross-compiler works.
5054  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055  # <limits.h> exists even on freestanding compilers.
5056  # On the NeXT, cc -E runs the code through the compiler's parser,
5057  # not just through cpp. "Syntax error" is here to catch this case.
5058  cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064#ifdef __STDC__
5065# include <limits.h>
5066#else
5067# include <assert.h>
5068#endif
5069		     Syntax error
5070_ACEOF
5071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5072  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5073  ac_status=$?
5074  grep -v '^ *+' conftest.er1 >conftest.err
5075  rm -f conftest.er1
5076  cat conftest.err >&5
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); } >/dev/null; then
5079  if test -s conftest.err; then
5080    ac_cpp_err=$ac_c_preproc_warn_flag
5081    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5082  else
5083    ac_cpp_err=
5084  fi
5085else
5086  ac_cpp_err=yes
5087fi
5088if test -z "$ac_cpp_err"; then
5089  :
5090else
5091  echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094  # Broken: fails on valid input.
5095continue
5096fi
5097rm -f conftest.err conftest.$ac_ext
5098
5099  # OK, works on sane cases.  Now check whether non-existent headers
5100  # can be detected and how.
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107#include <ac_nonexistent.h>
5108_ACEOF
5109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111  ac_status=$?
5112  grep -v '^ *+' conftest.er1 >conftest.err
5113  rm -f conftest.er1
5114  cat conftest.err >&5
5115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116  (exit $ac_status); } >/dev/null; then
5117  if test -s conftest.err; then
5118    ac_cpp_err=$ac_c_preproc_warn_flag
5119    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5120  else
5121    ac_cpp_err=
5122  fi
5123else
5124  ac_cpp_err=yes
5125fi
5126if test -z "$ac_cpp_err"; then
5127  # Broken: success on invalid input.
5128continue
5129else
5130  echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133  # Passes both tests.
5134ac_preproc_ok=:
5135break
5136fi
5137rm -f conftest.err conftest.$ac_ext
5138
5139done
5140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141rm -f conftest.err conftest.$ac_ext
5142if $ac_preproc_ok; then
5143  :
5144else
5145  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5146See \`config.log' for more details." >&5
5147echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5148See \`config.log' for more details." >&2;}
5149   { (exit 1); exit 1; }; }
5150fi
5151
5152ac_ext=c
5153ac_cpp='$CPP $CPPFLAGS'
5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157
5158
5159echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5160echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5161if test "${ac_cv_header_stdc+set}" = set; then
5162  echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164  cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h.  */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h.  */
5170#include <stdlib.h>
5171#include <stdarg.h>
5172#include <string.h>
5173#include <float.h>
5174
5175#ifdef F77_DUMMY_MAIN
5176
5177#  ifdef __cplusplus
5178     extern "C"
5179#  endif
5180   int F77_DUMMY_MAIN() { return 1; }
5181
5182#endif
5183int
5184main ()
5185{
5186
5187  ;
5188  return 0;
5189}
5190_ACEOF
5191rm -f conftest.$ac_objext
5192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193  (eval $ac_compile) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } &&
5200	 { ac_try='test -z "$ac_c_werror_flag"
5201			 || test ! -s conftest.err'
5202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203  (eval $ac_try) 2>&5
5204  ac_status=$?
5205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); }; } &&
5207	 { ac_try='test -s conftest.$ac_objext'
5208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209  (eval $ac_try) 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; }; then
5213  ac_cv_header_stdc=yes
5214else
5215  echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
5217
5218ac_cv_header_stdc=no
5219fi
5220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5221
5222if test $ac_cv_header_stdc = yes; then
5223  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5224  cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h.  */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h.  */
5230#include <string.h>
5231
5232_ACEOF
5233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5234  $EGREP "memchr" >/dev/null 2>&1; then
5235  :
5236else
5237  ac_cv_header_stdc=no
5238fi
5239rm -f conftest*
5240
5241fi
5242
5243if test $ac_cv_header_stdc = yes; then
5244  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5245  cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h.  */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h.  */
5251#include <stdlib.h>
5252
5253_ACEOF
5254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255  $EGREP "free" >/dev/null 2>&1; then
5256  :
5257else
5258  ac_cv_header_stdc=no
5259fi
5260rm -f conftest*
5261
5262fi
5263
5264if test $ac_cv_header_stdc = yes; then
5265  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5266  if test "$cross_compiling" = yes; then
5267  :
5268else
5269  cat >conftest.$ac_ext <<_ACEOF
5270/* confdefs.h.  */
5271_ACEOF
5272cat confdefs.h >>conftest.$ac_ext
5273cat >>conftest.$ac_ext <<_ACEOF
5274/* end confdefs.h.  */
5275#include <ctype.h>
5276#if ((' ' & 0x0FF) == 0x020)
5277# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5278# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279#else
5280# define ISLOWER(c) \
5281		   (('a' <= (c) && (c) <= 'i') \
5282		     || ('j' <= (c) && (c) <= 'r') \
5283		     || ('s' <= (c) && (c) <= 'z'))
5284# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5285#endif
5286
5287#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5288int
5289main ()
5290{
5291  int i;
5292  for (i = 0; i < 256; i++)
5293    if (XOR (islower (i), ISLOWER (i))
5294	|| toupper (i) != TOUPPER (i))
5295      exit(2);
5296  exit (0);
5297}
5298_ACEOF
5299rm -f conftest$ac_exeext
5300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301  (eval $ac_link) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306  (eval $ac_try) 2>&5
5307  ac_status=$?
5308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309  (exit $ac_status); }; }; then
5310  :
5311else
5312  echo "$as_me: program exited with status $ac_status" >&5
5313echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316( exit $ac_status )
5317ac_cv_header_stdc=no
5318fi
5319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5320fi
5321fi
5322fi
5323echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5324echo "${ECHO_T}$ac_cv_header_stdc" >&6
5325if test $ac_cv_header_stdc = yes; then
5326
5327cat >>confdefs.h <<\_ACEOF
5328#define STDC_HEADERS 1
5329_ACEOF
5330
5331fi
5332
5333# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344		  inttypes.h stdint.h unistd.h
5345do
5346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347echo "$as_me:$LINENO: checking for $ac_header" >&5
5348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5349if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h.  */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
5357/* end confdefs.h.  */
5358$ac_includes_default
5359
5360#include <$ac_header>
5361_ACEOF
5362rm -f conftest.$ac_objext
5363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364  (eval $ac_compile) 2>conftest.er1
5365  ac_status=$?
5366  grep -v '^ *+' conftest.er1 >conftest.err
5367  rm -f conftest.er1
5368  cat conftest.err >&5
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); } &&
5371	 { ac_try='test -z "$ac_c_werror_flag"
5372			 || test ! -s conftest.err'
5373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374  (eval $ac_try) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); }; } &&
5378	 { ac_try='test -s conftest.$ac_objext'
5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380  (eval $ac_try) 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  eval "$as_ac_Header=yes"
5385else
5386  echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389eval "$as_ac_Header=no"
5390fi
5391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392fi
5393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5395if test `eval echo '${'$as_ac_Header'}'` = yes; then
5396  cat >>confdefs.h <<_ACEOF
5397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5398_ACEOF
5399
5400fi
5401
5402done
5403
5404
5405
5406for ac_header in dlfcn.h
5407do
5408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5409if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410  echo "$as_me:$LINENO: checking for $ac_header" >&5
5411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5412if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413  echo $ECHO_N "(cached) $ECHO_C" >&6
5414fi
5415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5417else
5418  # Is the header compilable?
5419echo "$as_me:$LINENO: checking $ac_header usability" >&5
5420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5421cat >conftest.$ac_ext <<_ACEOF
5422/* confdefs.h.  */
5423_ACEOF
5424cat confdefs.h >>conftest.$ac_ext
5425cat >>conftest.$ac_ext <<_ACEOF
5426/* end confdefs.h.  */
5427$ac_includes_default
5428#include <$ac_header>
5429_ACEOF
5430rm -f conftest.$ac_objext
5431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432  (eval $ac_compile) 2>conftest.er1
5433  ac_status=$?
5434  grep -v '^ *+' conftest.er1 >conftest.err
5435  rm -f conftest.er1
5436  cat conftest.err >&5
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); } &&
5439	 { ac_try='test -z "$ac_c_werror_flag"
5440			 || test ! -s conftest.err'
5441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442  (eval $ac_try) 2>&5
5443  ac_status=$?
5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); }; } &&
5446	 { ac_try='test -s conftest.$ac_objext'
5447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448  (eval $ac_try) 2>&5
5449  ac_status=$?
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); }; }; then
5452  ac_header_compiler=yes
5453else
5454  echo "$as_me: failed program was:" >&5
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
5457ac_header_compiler=no
5458fi
5459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461echo "${ECHO_T}$ac_header_compiler" >&6
5462
5463# Is the header present?
5464echo "$as_me:$LINENO: checking $ac_header presence" >&5
5465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5466cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
5472#include <$ac_header>
5473_ACEOF
5474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5476  ac_status=$?
5477  grep -v '^ *+' conftest.er1 >conftest.err
5478  rm -f conftest.er1
5479  cat conftest.err >&5
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); } >/dev/null; then
5482  if test -s conftest.err; then
5483    ac_cpp_err=$ac_c_preproc_warn_flag
5484    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485  else
5486    ac_cpp_err=
5487  fi
5488else
5489  ac_cpp_err=yes
5490fi
5491if test -z "$ac_cpp_err"; then
5492  ac_header_preproc=yes
5493else
5494  echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497  ac_header_preproc=no
5498fi
5499rm -f conftest.err conftest.$ac_ext
5500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501echo "${ECHO_T}$ac_header_preproc" >&6
5502
5503# So?  What about this header?
5504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5505  yes:no: )
5506    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5510    ac_header_preproc=yes
5511    ;;
5512  no:yes:* )
5513    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5515    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5516echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5517    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5519    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5520echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5523    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5525    (
5526      cat <<\_ASBOX
5527## ---------------------------------- ##
5528## Report this to bug-libtool@gnu.org ##
5529## ---------------------------------- ##
5530_ASBOX
5531    ) |
5532      sed "s/^/$as_me: WARNING:     /" >&2
5533    ;;
5534esac
5535echo "$as_me:$LINENO: checking for $ac_header" >&5
5536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5537if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538  echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540  eval "$as_ac_Header=\$ac_header_preproc"
5541fi
5542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5544
5545fi
5546if test `eval echo '${'$as_ac_Header'}'` = yes; then
5547  cat >>confdefs.h <<_ACEOF
5548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5549_ACEOF
5550
5551fi
5552
5553done
5554
5555ac_ext=cc
5556ac_cpp='$CXXCPP $CPPFLAGS'
5557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5560if test -n "$ac_tool_prefix"; then
5561  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5562  do
5563    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5565echo "$as_me:$LINENO: checking for $ac_word" >&5
5566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567if test "${ac_cv_prog_CXX+set}" = set; then
5568  echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570  if test -n "$CXX"; then
5571  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576  IFS=$as_save_IFS
5577  test -z "$as_dir" && as_dir=.
5578  for ac_exec_ext in '' $ac_executable_extensions; do
5579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582    break 2
5583  fi
5584done
5585done
5586
5587fi
5588fi
5589CXX=$ac_cv_prog_CXX
5590if test -n "$CXX"; then
5591  echo "$as_me:$LINENO: result: $CXX" >&5
5592echo "${ECHO_T}$CXX" >&6
5593else
5594  echo "$as_me:$LINENO: result: no" >&5
5595echo "${ECHO_T}no" >&6
5596fi
5597
5598    test -n "$CXX" && break
5599  done
5600fi
5601if test -z "$CXX"; then
5602  ac_ct_CXX=$CXX
5603  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5604do
5605  # Extract the first word of "$ac_prog", so it can be a program name with args.
5606set dummy $ac_prog; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  if test -n "$ac_ct_CXX"; then
5613  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  test -z "$as_dir" && as_dir=.
5620  for ac_exec_ext in '' $ac_executable_extensions; do
5621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622    ac_cv_prog_ac_ct_CXX="$ac_prog"
5623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624    break 2
5625  fi
5626done
5627done
5628
5629fi
5630fi
5631ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5632if test -n "$ac_ct_CXX"; then
5633  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5634echo "${ECHO_T}$ac_ct_CXX" >&6
5635else
5636  echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640  test -n "$ac_ct_CXX" && break
5641done
5642test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5643
5644  CXX=$ac_ct_CXX
5645fi
5646
5647
5648# Provide some information about the compiler.
5649echo "$as_me:$LINENO:" \
5650     "checking for C++ compiler version" >&5
5651ac_compiler=`set X $ac_compile; echo $2`
5652{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5653  (eval $ac_compiler --version </dev/null >&5) 2>&5
5654  ac_status=$?
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); }
5657{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5658  (eval $ac_compiler -v </dev/null >&5) 2>&5
5659  ac_status=$?
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); }
5662{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5663  (eval $ac_compiler -V </dev/null >&5) 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }
5667
5668echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5669echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5670if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673  cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h.  */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h.  */
5679
5680#ifdef F77_DUMMY_MAIN
5681
5682#  ifdef __cplusplus
5683     extern "C"
5684#  endif
5685   int F77_DUMMY_MAIN() { return 1; }
5686
5687#endif
5688int
5689main ()
5690{
5691#ifndef __GNUC__
5692       choke me
5693#endif
5694
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
5700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701  (eval $ac_compile) 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } &&
5708	 { ac_try='test -z "$ac_cxx_werror_flag"
5709			 || test ! -s conftest.err'
5710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711  (eval $ac_try) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }; } &&
5715	 { ac_try='test -s conftest.$ac_objext'
5716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717  (eval $ac_try) 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); }; }; then
5721  ac_compiler_gnu=yes
5722else
5723  echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726ac_compiler_gnu=no
5727fi
5728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5730
5731fi
5732echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5733echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5734GXX=`test $ac_compiler_gnu = yes && echo yes`
5735ac_test_CXXFLAGS=${CXXFLAGS+set}
5736ac_save_CXXFLAGS=$CXXFLAGS
5737CXXFLAGS="-g"
5738echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5739echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5740if test "${ac_cv_prog_cxx_g+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h.  */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
5748/* end confdefs.h.  */
5749
5750#ifdef F77_DUMMY_MAIN
5751
5752#  ifdef __cplusplus
5753     extern "C"
5754#  endif
5755   int F77_DUMMY_MAIN() { return 1; }
5756
5757#endif
5758int
5759main ()
5760{
5761
5762  ;
5763  return 0;
5764}
5765_ACEOF
5766rm -f conftest.$ac_objext
5767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768  (eval $ac_compile) 2>conftest.er1
5769  ac_status=$?
5770  grep -v '^ *+' conftest.er1 >conftest.err
5771  rm -f conftest.er1
5772  cat conftest.err >&5
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } &&
5775	 { ac_try='test -z "$ac_cxx_werror_flag"
5776			 || test ! -s conftest.err'
5777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778  (eval $ac_try) 2>&5
5779  ac_status=$?
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); }; } &&
5782	 { ac_try='test -s conftest.$ac_objext'
5783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784  (eval $ac_try) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }; }; then
5788  ac_cv_prog_cxx_g=yes
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793ac_cv_prog_cxx_g=no
5794fi
5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5798echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5799if test "$ac_test_CXXFLAGS" = set; then
5800  CXXFLAGS=$ac_save_CXXFLAGS
5801elif test $ac_cv_prog_cxx_g = yes; then
5802  if test "$GXX" = yes; then
5803    CXXFLAGS="-g -O2"
5804  else
5805    CXXFLAGS="-g"
5806  fi
5807else
5808  if test "$GXX" = yes; then
5809    CXXFLAGS="-O2"
5810  else
5811    CXXFLAGS=
5812  fi
5813fi
5814for ac_declaration in \
5815   '' \
5816   'extern "C" void std::exit (int) throw (); using std::exit;' \
5817   'extern "C" void std::exit (int); using std::exit;' \
5818   'extern "C" void exit (int) throw ();' \
5819   'extern "C" void exit (int);' \
5820   'void exit (int);'
5821do
5822  cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h.  */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h.  */
5828$ac_declaration
5829#include <stdlib.h>
5830#ifdef F77_DUMMY_MAIN
5831
5832#  ifdef __cplusplus
5833     extern "C"
5834#  endif
5835   int F77_DUMMY_MAIN() { return 1; }
5836
5837#endif
5838int
5839main ()
5840{
5841exit (42);
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext
5847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848  (eval $ac_compile) 2>conftest.er1
5849  ac_status=$?
5850  grep -v '^ *+' conftest.er1 >conftest.err
5851  rm -f conftest.er1
5852  cat conftest.err >&5
5853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); } &&
5855	 { ac_try='test -z "$ac_cxx_werror_flag"
5856			 || test ! -s conftest.err'
5857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858  (eval $ac_try) 2>&5
5859  ac_status=$?
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); }; } &&
5862	 { ac_try='test -s conftest.$ac_objext'
5863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864  (eval $ac_try) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); }; }; then
5868  :
5869else
5870  echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873continue
5874fi
5875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876  cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h.  */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
5881/* end confdefs.h.  */
5882$ac_declaration
5883#ifdef F77_DUMMY_MAIN
5884
5885#  ifdef __cplusplus
5886     extern "C"
5887#  endif
5888   int F77_DUMMY_MAIN() { return 1; }
5889
5890#endif
5891int
5892main ()
5893{
5894exit (42);
5895  ;
5896  return 0;
5897}
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901  (eval $ac_compile) 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } &&
5908	 { ac_try='test -z "$ac_cxx_werror_flag"
5909			 || test ! -s conftest.err'
5910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911  (eval $ac_try) 2>&5
5912  ac_status=$?
5913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); }; } &&
5915	 { ac_try='test -s conftest.$ac_objext'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; }; then
5921  break
5922else
5923  echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926fi
5927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928done
5929rm -f conftest*
5930if test -n "$ac_declaration"; then
5931  echo '#ifdef __cplusplus' >>confdefs.h
5932  echo $ac_declaration      >>confdefs.h
5933  echo '#endif'             >>confdefs.h
5934fi
5935
5936ac_ext=cc
5937ac_cpp='$CXXCPP $CPPFLAGS'
5938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5941
5942depcc="$CXX"  am_compiler_list=
5943
5944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5946if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5947  echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5950  # We make a subdir and do the tests there.  Otherwise we can end up
5951  # making bogus files that we don't know about and never remove.  For
5952  # instance it was reported that on HP-UX the gcc test will end up
5953  # making a dummy file named `D' -- because `-MD' means `put the output
5954  # in D'.
5955  mkdir conftest.dir
5956  # Copy depcomp to subdir because otherwise we won't find it if we're
5957  # using a relative directory.
5958  cp "$am_depcomp" conftest.dir
5959  cd conftest.dir
5960  # We will build objects and dependencies in a subdirectory because
5961  # it helps to detect inapplicable dependency modes.  For instance
5962  # both Tru64's cc and ICC support -MD to output dependencies as a
5963  # side effect of compilation, but ICC will put the dependencies in
5964  # the current directory while Tru64 will put them in the object
5965  # directory.
5966  mkdir sub
5967
5968  am_cv_CXX_dependencies_compiler_type=none
5969  if test "$am_compiler_list" = ""; then
5970     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5971  fi
5972  for depmode in $am_compiler_list; do
5973    # Setup a source with many dependencies, because some compilers
5974    # like to wrap large dependency lists on column 80 (with \), and
5975    # we should not choose a depcomp mode which is confused by this.
5976    #
5977    # We need to recreate these files for each test, as the compiler may
5978    # overwrite some of them when testing with obscure command lines.
5979    # This happens at least with the AIX C compiler.
5980    : > sub/conftest.c
5981    for i in 1 2 3 4 5 6; do
5982      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5983      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5984      # Solaris 8's {/usr,}/bin/sh.
5985      touch sub/conftst$i.h
5986    done
5987    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5988
5989    case $depmode in
5990    nosideeffect)
5991      # after this tag, mechanisms are not by side-effect, so they'll
5992      # only be used when explicitly requested
5993      if test "x$enable_dependency_tracking" = xyes; then
5994	continue
5995      else
5996	break
5997      fi
5998      ;;
5999    none) break ;;
6000    esac
6001    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6002    # mode.  It turns out that the SunPro C++ compiler does not properly
6003    # handle `-M -o', and we need to detect this.
6004    if depmode=$depmode \
6005       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6006       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6007       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6008         >/dev/null 2>conftest.err &&
6009       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6010       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6011       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6012      # icc doesn't choke on unknown options, it will just issue warnings
6013      # or remarks (even with -Werror).  So we grep stderr for any message
6014      # that says an option was ignored or not supported.
6015      # When given -MP, icc 7.0 and 7.1 complain thusly:
6016      #   icc: Command line warning: ignoring option '-M'; no argument required
6017      # The diagnosis changed in icc 8.0:
6018      #   icc: Command line remark: option '-MP' not supported
6019      if (grep 'ignoring option' conftest.err ||
6020          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6021        am_cv_CXX_dependencies_compiler_type=$depmode
6022        break
6023      fi
6024    fi
6025  done
6026
6027  cd ..
6028  rm -rf conftest.dir
6029else
6030  am_cv_CXX_dependencies_compiler_type=none
6031fi
6032
6033fi
6034echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6035echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6036CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6037
6038
6039
6040if
6041  test "x$enable_dependency_tracking" != xno \
6042  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6043  am__fastdepCXX_TRUE=
6044  am__fastdepCXX_FALSE='#'
6045else
6046  am__fastdepCXX_TRUE='#'
6047  am__fastdepCXX_FALSE=
6048fi
6049
6050
6051
6052
6053if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6054    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6055    (test "X$CXX" != "Xg++"))) ; then
6056  ac_ext=cc
6057ac_cpp='$CXXCPP $CPPFLAGS'
6058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6061echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6062echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6063if test -z "$CXXCPP"; then
6064  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067      # Double quotes because CXXCPP needs to be expanded
6068    for CXXCPP in "$CXX -E" "/lib/cpp"
6069    do
6070      ac_preproc_ok=false
6071for ac_cxx_preproc_warn_flag in '' yes
6072do
6073  # Use a header file that comes with gcc, so configuring glibc
6074  # with a fresh cross-compiler works.
6075  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6076  # <limits.h> exists even on freestanding compilers.
6077  # On the NeXT, cc -E runs the code through the compiler's parser,
6078  # not just through cpp. "Syntax error" is here to catch this case.
6079  cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085#ifdef __STDC__
6086# include <limits.h>
6087#else
6088# include <assert.h>
6089#endif
6090		     Syntax error
6091_ACEOF
6092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6093  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } >/dev/null; then
6100  if test -s conftest.err; then
6101    ac_cpp_err=$ac_cxx_preproc_warn_flag
6102    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6103  else
6104    ac_cpp_err=
6105  fi
6106else
6107  ac_cpp_err=yes
6108fi
6109if test -z "$ac_cpp_err"; then
6110  :
6111else
6112  echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115  # Broken: fails on valid input.
6116continue
6117fi
6118rm -f conftest.err conftest.$ac_ext
6119
6120  # OK, works on sane cases.  Now check whether non-existent headers
6121  # can be detected and how.
6122  cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h.  */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
6127/* end confdefs.h.  */
6128#include <ac_nonexistent.h>
6129_ACEOF
6130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6132  ac_status=$?
6133  grep -v '^ *+' conftest.er1 >conftest.err
6134  rm -f conftest.er1
6135  cat conftest.err >&5
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); } >/dev/null; then
6138  if test -s conftest.err; then
6139    ac_cpp_err=$ac_cxx_preproc_warn_flag
6140    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6141  else
6142    ac_cpp_err=
6143  fi
6144else
6145  ac_cpp_err=yes
6146fi
6147if test -z "$ac_cpp_err"; then
6148  # Broken: success on invalid input.
6149continue
6150else
6151  echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154  # Passes both tests.
6155ac_preproc_ok=:
6156break
6157fi
6158rm -f conftest.err conftest.$ac_ext
6159
6160done
6161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6162rm -f conftest.err conftest.$ac_ext
6163if $ac_preproc_ok; then
6164  break
6165fi
6166
6167    done
6168    ac_cv_prog_CXXCPP=$CXXCPP
6169
6170fi
6171  CXXCPP=$ac_cv_prog_CXXCPP
6172else
6173  ac_cv_prog_CXXCPP=$CXXCPP
6174fi
6175echo "$as_me:$LINENO: result: $CXXCPP" >&5
6176echo "${ECHO_T}$CXXCPP" >&6
6177ac_preproc_ok=false
6178for ac_cxx_preproc_warn_flag in '' yes
6179do
6180  # Use a header file that comes with gcc, so configuring glibc
6181  # with a fresh cross-compiler works.
6182  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183  # <limits.h> exists even on freestanding compilers.
6184  # On the NeXT, cc -E runs the code through the compiler's parser,
6185  # not just through cpp. "Syntax error" is here to catch this case.
6186  cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h.  */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h.  */
6192#ifdef __STDC__
6193# include <limits.h>
6194#else
6195# include <assert.h>
6196#endif
6197		     Syntax error
6198_ACEOF
6199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6200  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6201  ac_status=$?
6202  grep -v '^ *+' conftest.er1 >conftest.err
6203  rm -f conftest.er1
6204  cat conftest.err >&5
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); } >/dev/null; then
6207  if test -s conftest.err; then
6208    ac_cpp_err=$ac_cxx_preproc_warn_flag
6209    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6210  else
6211    ac_cpp_err=
6212  fi
6213else
6214  ac_cpp_err=yes
6215fi
6216if test -z "$ac_cpp_err"; then
6217  :
6218else
6219  echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222  # Broken: fails on valid input.
6223continue
6224fi
6225rm -f conftest.err conftest.$ac_ext
6226
6227  # OK, works on sane cases.  Now check whether non-existent headers
6228  # can be detected and how.
6229  cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235#include <ac_nonexistent.h>
6236_ACEOF
6237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6238  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6239  ac_status=$?
6240  grep -v '^ *+' conftest.er1 >conftest.err
6241  rm -f conftest.er1
6242  cat conftest.err >&5
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); } >/dev/null; then
6245  if test -s conftest.err; then
6246    ac_cpp_err=$ac_cxx_preproc_warn_flag
6247    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6248  else
6249    ac_cpp_err=
6250  fi
6251else
6252  ac_cpp_err=yes
6253fi
6254if test -z "$ac_cpp_err"; then
6255  # Broken: success on invalid input.
6256continue
6257else
6258  echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
6261  # Passes both tests.
6262ac_preproc_ok=:
6263break
6264fi
6265rm -f conftest.err conftest.$ac_ext
6266
6267done
6268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6269rm -f conftest.err conftest.$ac_ext
6270if $ac_preproc_ok; then
6271  :
6272else
6273  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6274See \`config.log' for more details." >&5
6275echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6276See \`config.log' for more details." >&2;}
6277   { (exit 1); exit 1; }; }
6278fi
6279
6280ac_ext=cc
6281ac_cpp='$CXXCPP $CPPFLAGS'
6282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6285
6286fi
6287
6288
6289
6290# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6291
6292# find the maximum length of command line arguments
6293echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6294echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6295if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298    i=0
6299  teststring="ABCD"
6300
6301  case $build_os in
6302  msdosdjgpp*)
6303    # On DJGPP, this test can blow up pretty badly due to problems in libc
6304    # (any single argument exceeding 2000 bytes causes a buffer overrun
6305    # during glob expansion).  Even if it were fixed, the result of this
6306    # check would be larger than it should be.
6307    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6308    ;;
6309
6310  gnu*)
6311    # Under GNU Hurd, this test is not required because there is
6312    # no limit to the length of command line arguments.
6313    # Libtool will interpret -1 as no limit whatsoever
6314    lt_cv_sys_max_cmd_len=-1;
6315    ;;
6316
6317  cygwin* | mingw*)
6318    # On Win9x/ME, this test blows up -- it succeeds, but takes
6319    # about 5 minutes as the teststring grows exponentially.
6320    # Worse, since 9x/ME are not pre-emptively multitasking,
6321    # you end up with a "frozen" computer, even though with patience
6322    # the test eventually succeeds (with a max line length of 256k).
6323    # Instead, let's just punt: use the minimum linelength reported by
6324    # all of the supported platforms: 8192 (on NT/2K/XP).
6325    lt_cv_sys_max_cmd_len=8192;
6326    ;;
6327
6328  amigaos*)
6329    # On AmigaOS with pdksh, this test takes hours, literally.
6330    # So we just punt and use a minimum line length of 8192.
6331    lt_cv_sys_max_cmd_len=8192;
6332    ;;
6333
6334  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6335    # This has been around since 386BSD, at least.  Likely further.
6336    if test -x /sbin/sysctl; then
6337      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6338    elif test -x /usr/sbin/sysctl; then
6339      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6340    else
6341      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6342    fi
6343    # And add a safety zone
6344    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6345    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6346    ;;
6347  osf*)
6348    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6349    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6350    # nice to cause kernel panics so lets avoid the loop below.
6351    # First set a reasonable default.
6352    lt_cv_sys_max_cmd_len=16384
6353    #
6354    if test -x /sbin/sysconfig; then
6355      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6356        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6357      esac
6358    fi
6359    ;;
6360  *)
6361    # If test is not a shell built-in, we'll probably end up computing a
6362    # maximum length that is only half of the actual maximum length, but
6363    # we can't tell.
6364    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6365    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6366	       = "XX$teststring") >/dev/null 2>&1 &&
6367	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6368	    lt_cv_sys_max_cmd_len=$new_result &&
6369	    test $i != 17 # 1/2 MB should be enough
6370    do
6371      i=`expr $i + 1`
6372      teststring=$teststring$teststring
6373    done
6374    teststring=
6375    # Add a significant safety factor because C++ compilers can tack on massive
6376    # amounts of additional arguments before passing them to the linker.
6377    # It appears as though 1/2 is a usable value.
6378    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6379    ;;
6380  esac
6381
6382fi
6383
6384if test -n $lt_cv_sys_max_cmd_len ; then
6385  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6386echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6387else
6388  echo "$as_me:$LINENO: result: none" >&5
6389echo "${ECHO_T}none" >&6
6390fi
6391
6392
6393
6394
6395# Check for command to grab the raw symbol name followed by C symbol from nm.
6396echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6397echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6398if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6399  echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401
6402# These are sane defaults that work on at least a few old systems.
6403# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6404
6405# Character class describing NM global symbol codes.
6406symcode='[BCDEGRST]'
6407
6408# Regexp to match symbols that can be accessed directly from C.
6409sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6410
6411# Transform an extracted symbol line into a proper C declaration
6412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6413
6414# Transform an extracted symbol line into symbol name and symbol address
6415lt_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'"
6416
6417# Define system-specific variables.
6418case $host_os in
6419aix*)
6420  symcode='[BCDT]'
6421  ;;
6422cygwin* | mingw* | pw32*)
6423  symcode='[ABCDGISTW]'
6424  ;;
6425hpux*) # Its linker distinguishes data from code symbols
6426  if test "$host_cpu" = ia64; then
6427    symcode='[ABCDEGRST]'
6428  fi
6429  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6430  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'"
6431  ;;
6432linux*)
6433  if test "$host_cpu" = ia64; then
6434    symcode='[ABCDGIRSTW]'
6435    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6436    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'"
6437  fi
6438  ;;
6439irix* | nonstopux*)
6440  symcode='[BCDEGRST]'
6441  ;;
6442osf*)
6443  symcode='[BCDEGQRST]'
6444  ;;
6445solaris* | sysv5*)
6446  symcode='[BDRT]'
6447  ;;
6448sysv4)
6449  symcode='[DFNSTU]'
6450  ;;
6451esac
6452
6453# Handle CRLF in mingw tool chain
6454opt_cr=
6455case $build_os in
6456mingw*)
6457  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6458  ;;
6459esac
6460
6461# If we're using GNU nm, then use its standard symbol codes.
6462case `$NM -V 2>&1` in
6463*GNU* | *'with BFD'*)
6464  symcode='[ABCDGIRSTW]' ;;
6465esac
6466
6467# Try without a prefix undercore, then with it.
6468for ac_symprfx in "" "_"; do
6469
6470  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6471  symxfrm="\\1 $ac_symprfx\\2 \\2"
6472
6473  # Write the raw and C identifiers.
6474  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6475
6476  # Check to see that the pipe works correctly.
6477  pipe_works=no
6478
6479  rm -f conftest*
6480  cat > conftest.$ac_ext <<EOF
6481#ifdef __cplusplus
6482extern "C" {
6483#endif
6484char nm_test_var;
6485void nm_test_func(){}
6486#ifdef __cplusplus
6487}
6488#endif
6489int main(){nm_test_var='a';nm_test_func();return(0);}
6490EOF
6491
6492  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493  (eval $ac_compile) 2>&5
6494  ac_status=$?
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); }; then
6497    # Now try to grab the symbols.
6498    nlist=conftest.nm
6499    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6500  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6501  ac_status=$?
6502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503  (exit $ac_status); } && test -s "$nlist"; then
6504      # Try sorting and uniquifying the output.
6505      if sort "$nlist" | uniq > "$nlist"T; then
6506	mv -f "$nlist"T "$nlist"
6507      else
6508	rm -f "$nlist"T
6509      fi
6510
6511      # Make sure that we snagged all the symbols we need.
6512      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6513	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6514	  cat <<EOF > conftest.$ac_ext
6515#ifdef __cplusplus
6516extern "C" {
6517#endif
6518
6519EOF
6520	  # Now generate the symbol file.
6521	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6522
6523	  cat <<EOF >> conftest.$ac_ext
6524#if defined (__STDC__) && __STDC__
6525# define lt_ptr_t void *
6526#else
6527# define lt_ptr_t char *
6528# define const
6529#endif
6530
6531/* The mapping between symbol names and symbols. */
6532const struct {
6533  const char *name;
6534  lt_ptr_t address;
6535}
6536lt_preloaded_symbols[] =
6537{
6538EOF
6539	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6540	  cat <<\EOF >> conftest.$ac_ext
6541  {0, (lt_ptr_t) 0}
6542};
6543
6544#ifdef __cplusplus
6545}
6546#endif
6547EOF
6548	  # Now try linking the two files.
6549	  mv conftest.$ac_objext conftstm.$ac_objext
6550	  lt_save_LIBS="$LIBS"
6551	  lt_save_CFLAGS="$CFLAGS"
6552	  LIBS="conftstm.$ac_objext"
6553	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6554	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555  (eval $ac_link) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6559	    pipe_works=yes
6560	  fi
6561	  LIBS="$lt_save_LIBS"
6562	  CFLAGS="$lt_save_CFLAGS"
6563	else
6564	  echo "cannot find nm_test_func in $nlist" >&5
6565	fi
6566      else
6567	echo "cannot find nm_test_var in $nlist" >&5
6568      fi
6569    else
6570      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6571    fi
6572  else
6573    echo "$progname: failed program was:" >&5
6574    cat conftest.$ac_ext >&5
6575  fi
6576  rm -f conftest* conftst*
6577
6578  # Do not use the global_symbol_pipe unless it works.
6579  if test "$pipe_works" = yes; then
6580    break
6581  else
6582    lt_cv_sys_global_symbol_pipe=
6583  fi
6584done
6585
6586fi
6587
6588if test -z "$lt_cv_sys_global_symbol_pipe"; then
6589  lt_cv_sys_global_symbol_to_cdecl=
6590fi
6591if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6592  echo "$as_me:$LINENO: result: failed" >&5
6593echo "${ECHO_T}failed" >&6
6594else
6595  echo "$as_me:$LINENO: result: ok" >&5
6596echo "${ECHO_T}ok" >&6
6597fi
6598
6599echo "$as_me:$LINENO: checking for objdir" >&5
6600echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6601if test "${lt_cv_objdir+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604  rm -f .libs 2>/dev/null
6605mkdir .libs 2>/dev/null
6606if test -d .libs; then
6607  lt_cv_objdir=.libs
6608else
6609  # MS-DOS does not allow filenames that begin with a dot.
6610  lt_cv_objdir=_libs
6611fi
6612rmdir .libs 2>/dev/null
6613fi
6614echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6615echo "${ECHO_T}$lt_cv_objdir" >&6
6616objdir=$lt_cv_objdir
6617
6618
6619
6620
6621
6622case $host_os in
6623aix3*)
6624  # AIX sometimes has problems with the GCC collect2 program.  For some
6625  # reason, if we set the COLLECT_NAMES environment variable, the problems
6626  # vanish in a puff of smoke.
6627  if test "X${COLLECT_NAMES+set}" != Xset; then
6628    COLLECT_NAMES=
6629    export COLLECT_NAMES
6630  fi
6631  ;;
6632esac
6633
6634# Sed substitution that helps us do robust quoting.  It backslashifies
6635# metacharacters that are still active within double-quoted strings.
6636Xsed='sed -e 1s/^X//'
6637sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6638
6639# Same as above, but do not quote variable references.
6640double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6641
6642# Sed substitution to delay expansion of an escaped shell variable in a
6643# double_quote_subst'ed string.
6644delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6645
6646# Sed substitution to avoid accidental globbing in evaled expressions
6647no_glob_subst='s/\*/\\\*/g'
6648
6649# Constants:
6650rm="rm -f"
6651
6652# Global variables:
6653default_ofile=libtool
6654can_build_shared=yes
6655
6656# All known linkers require a `.a' archive for static linking (except MSVC,
6657# which needs '.lib').
6658libext=a
6659ltmain="$ac_aux_dir/ltmain.sh"
6660ofile="$default_ofile"
6661with_gnu_ld="$lt_cv_prog_gnu_ld"
6662
6663if test -n "$ac_tool_prefix"; then
6664  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6665set dummy ${ac_tool_prefix}ar; ac_word=$2
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668if test "${ac_cv_prog_AR+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  if test -n "$AR"; then
6672  ac_cv_prog_AR="$AR" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679  for ac_exec_ext in '' $ac_executable_extensions; do
6680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681    ac_cv_prog_AR="${ac_tool_prefix}ar"
6682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686done
6687
6688fi
6689fi
6690AR=$ac_cv_prog_AR
6691if test -n "$AR"; then
6692  echo "$as_me:$LINENO: result: $AR" >&5
6693echo "${ECHO_T}$AR" >&6
6694else
6695  echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697fi
6698
6699fi
6700if test -z "$ac_cv_prog_AR"; then
6701  ac_ct_AR=$AR
6702  # Extract the first word of "ar", so it can be a program name with args.
6703set dummy ar; ac_word=$2
6704echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6706if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709  if test -n "$ac_ct_AR"; then
6710  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6711else
6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715  IFS=$as_save_IFS
6716  test -z "$as_dir" && as_dir=.
6717  for ac_exec_ext in '' $ac_executable_extensions; do
6718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719    ac_cv_prog_ac_ct_AR="ar"
6720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721    break 2
6722  fi
6723done
6724done
6725
6726  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6727fi
6728fi
6729ac_ct_AR=$ac_cv_prog_ac_ct_AR
6730if test -n "$ac_ct_AR"; then
6731  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6732echo "${ECHO_T}$ac_ct_AR" >&6
6733else
6734  echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6
6736fi
6737
6738  AR=$ac_ct_AR
6739else
6740  AR="$ac_cv_prog_AR"
6741fi
6742
6743if test -n "$ac_tool_prefix"; then
6744  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6745set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6746echo "$as_me:$LINENO: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6748if test "${ac_cv_prog_RANLIB+set}" = set; then
6749  echo $ECHO_N "(cached) $ECHO_C" >&6
6750else
6751  if test -n "$RANLIB"; then
6752  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6753else
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759  for ac_exec_ext in '' $ac_executable_extensions; do
6760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766done
6767
6768fi
6769fi
6770RANLIB=$ac_cv_prog_RANLIB
6771if test -n "$RANLIB"; then
6772  echo "$as_me:$LINENO: result: $RANLIB" >&5
6773echo "${ECHO_T}$RANLIB" >&6
6774else
6775  echo "$as_me:$LINENO: result: no" >&5
6776echo "${ECHO_T}no" >&6
6777fi
6778
6779fi
6780if test -z "$ac_cv_prog_RANLIB"; then
6781  ac_ct_RANLIB=$RANLIB
6782  # Extract the first word of "ranlib", so it can be a program name with args.
6783set dummy ranlib; ac_word=$2
6784echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6787  echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789  if test -n "$ac_ct_RANLIB"; then
6790  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795  IFS=$as_save_IFS
6796  test -z "$as_dir" && as_dir=.
6797  for ac_exec_ext in '' $ac_executable_extensions; do
6798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799    ac_cv_prog_ac_ct_RANLIB="ranlib"
6800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801    break 2
6802  fi
6803done
6804done
6805
6806  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6807fi
6808fi
6809ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6810if test -n "$ac_ct_RANLIB"; then
6811  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6812echo "${ECHO_T}$ac_ct_RANLIB" >&6
6813else
6814  echo "$as_me:$LINENO: result: no" >&5
6815echo "${ECHO_T}no" >&6
6816fi
6817
6818  RANLIB=$ac_ct_RANLIB
6819else
6820  RANLIB="$ac_cv_prog_RANLIB"
6821fi
6822
6823if test -n "$ac_tool_prefix"; then
6824  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6825set dummy ${ac_tool_prefix}strip; ac_word=$2
6826echo "$as_me:$LINENO: checking for $ac_word" >&5
6827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6828if test "${ac_cv_prog_STRIP+set}" = set; then
6829  echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831  if test -n "$STRIP"; then
6832  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837  IFS=$as_save_IFS
6838  test -z "$as_dir" && as_dir=.
6839  for ac_exec_ext in '' $ac_executable_extensions; do
6840  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843    break 2
6844  fi
6845done
6846done
6847
6848fi
6849fi
6850STRIP=$ac_cv_prog_STRIP
6851if test -n "$STRIP"; then
6852  echo "$as_me:$LINENO: result: $STRIP" >&5
6853echo "${ECHO_T}$STRIP" >&6
6854else
6855  echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6
6857fi
6858
6859fi
6860if test -z "$ac_cv_prog_STRIP"; then
6861  ac_ct_STRIP=$STRIP
6862  # Extract the first word of "strip", so it can be a program name with args.
6863set dummy strip; ac_word=$2
6864echo "$as_me:$LINENO: checking for $ac_word" >&5
6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6866if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869  if test -n "$ac_ct_STRIP"; then
6870  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877  for ac_exec_ext in '' $ac_executable_extensions; do
6878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879    ac_cv_prog_ac_ct_STRIP="strip"
6880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884done
6885
6886  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6887fi
6888fi
6889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6890if test -n "$ac_ct_STRIP"; then
6891  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6892echo "${ECHO_T}$ac_ct_STRIP" >&6
6893else
6894  echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
6896fi
6897
6898  STRIP=$ac_ct_STRIP
6899else
6900  STRIP="$ac_cv_prog_STRIP"
6901fi
6902
6903
6904old_CC="$CC"
6905old_CFLAGS="$CFLAGS"
6906
6907# Set sane defaults for various variables
6908test -z "$AR" && AR=ar
6909test -z "$AR_FLAGS" && AR_FLAGS=cru
6910test -z "$AS" && AS=as
6911test -z "$CC" && CC=cc
6912test -z "$LTCC" && LTCC=$CC
6913test -z "$DLLTOOL" && DLLTOOL=dlltool
6914test -z "$LD" && LD=ld
6915test -z "$LN_S" && LN_S="ln -s"
6916test -z "$MAGIC_CMD" && MAGIC_CMD=file
6917test -z "$NM" && NM=nm
6918test -z "$SED" && SED=sed
6919test -z "$OBJDUMP" && OBJDUMP=objdump
6920test -z "$RANLIB" && RANLIB=:
6921test -z "$STRIP" && STRIP=:
6922test -z "$ac_objext" && ac_objext=o
6923
6924# Determine commands to create old-style static archives.
6925old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6926old_postinstall_cmds='chmod 644 $oldlib'
6927old_postuninstall_cmds=
6928
6929if test -n "$RANLIB"; then
6930  case $host_os in
6931  openbsd*)
6932    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6933    ;;
6934  *)
6935    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6936    ;;
6937  esac
6938  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6939fi
6940
6941for cc_temp in $compiler""; do
6942  case $cc_temp in
6943    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6944    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6945    \-*) ;;
6946    *) break;;
6947  esac
6948done
6949cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6950
6951
6952# Only perform the check for file, if the check method requires it
6953case $deplibs_check_method in
6954file_magic*)
6955  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6956    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6957echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6958if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6959  echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961  case $MAGIC_CMD in
6962[\\/*] |  ?:[\\/]*)
6963  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6964  ;;
6965*)
6966  lt_save_MAGIC_CMD="$MAGIC_CMD"
6967  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6968  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6969  for ac_dir in $ac_dummy; do
6970    IFS="$lt_save_ifs"
6971    test -z "$ac_dir" && ac_dir=.
6972    if test -f $ac_dir/${ac_tool_prefix}file; then
6973      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6974      if test -n "$file_magic_test_file"; then
6975	case $deplibs_check_method in
6976	"file_magic "*)
6977	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6978	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6980	    $EGREP "$file_magic_regex" > /dev/null; then
6981	    :
6982	  else
6983	    cat <<EOF 1>&2
6984
6985*** Warning: the command libtool uses to detect shared libraries,
6986*** $file_magic_cmd, produces output that libtool cannot recognize.
6987*** The result is that libtool may fail to recognize shared libraries
6988*** as such.  This will affect the creation of libtool libraries that
6989*** depend on shared libraries, but programs linked with such libtool
6990*** libraries will work regardless of this problem.  Nevertheless, you
6991*** may want to report the problem to your system manager and/or to
6992*** bug-libtool@gnu.org
6993
6994EOF
6995	  fi ;;
6996	esac
6997      fi
6998      break
6999    fi
7000  done
7001  IFS="$lt_save_ifs"
7002  MAGIC_CMD="$lt_save_MAGIC_CMD"
7003  ;;
7004esac
7005fi
7006
7007MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7008if test -n "$MAGIC_CMD"; then
7009  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7010echo "${ECHO_T}$MAGIC_CMD" >&6
7011else
7012  echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
7014fi
7015
7016if test -z "$lt_cv_path_MAGIC_CMD"; then
7017  if test -n "$ac_tool_prefix"; then
7018    echo "$as_me:$LINENO: checking for file" >&5
7019echo $ECHO_N "checking for file... $ECHO_C" >&6
7020if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7021  echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023  case $MAGIC_CMD in
7024[\\/*] |  ?:[\\/]*)
7025  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7026  ;;
7027*)
7028  lt_save_MAGIC_CMD="$MAGIC_CMD"
7029  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7030  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7031  for ac_dir in $ac_dummy; do
7032    IFS="$lt_save_ifs"
7033    test -z "$ac_dir" && ac_dir=.
7034    if test -f $ac_dir/file; then
7035      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7036      if test -n "$file_magic_test_file"; then
7037	case $deplibs_check_method in
7038	"file_magic "*)
7039	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7040	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7041	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7042	    $EGREP "$file_magic_regex" > /dev/null; then
7043	    :
7044	  else
7045	    cat <<EOF 1>&2
7046
7047*** Warning: the command libtool uses to detect shared libraries,
7048*** $file_magic_cmd, produces output that libtool cannot recognize.
7049*** The result is that libtool may fail to recognize shared libraries
7050*** as such.  This will affect the creation of libtool libraries that
7051*** depend on shared libraries, but programs linked with such libtool
7052*** libraries will work regardless of this problem.  Nevertheless, you
7053*** may want to report the problem to your system manager and/or to
7054*** bug-libtool@gnu.org
7055
7056EOF
7057	  fi ;;
7058	esac
7059      fi
7060      break
7061    fi
7062  done
7063  IFS="$lt_save_ifs"
7064  MAGIC_CMD="$lt_save_MAGIC_CMD"
7065  ;;
7066esac
7067fi
7068
7069MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7070if test -n "$MAGIC_CMD"; then
7071  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7072echo "${ECHO_T}$MAGIC_CMD" >&6
7073else
7074  echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6
7076fi
7077
7078  else
7079    MAGIC_CMD=:
7080  fi
7081fi
7082
7083  fi
7084  ;;
7085esac
7086
7087enable_dlopen=no
7088enable_win32_dll=no
7089
7090# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7091if test "${enable_libtool_lock+set}" = set; then
7092  enableval="$enable_libtool_lock"
7093
7094fi;
7095test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7096
7097
7098# Check whether --with-pic or --without-pic was given.
7099if test "${with_pic+set}" = set; then
7100  withval="$with_pic"
7101  pic_mode="$withval"
7102else
7103  pic_mode=default
7104fi;
7105test -z "$pic_mode" && pic_mode=default
7106
7107# Use C for the default configuration in the libtool script
7108tagname=
7109lt_save_CC="$CC"
7110ac_ext=c
7111ac_cpp='$CPP $CPPFLAGS'
7112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
7116
7117# Source file extension for C test sources.
7118ac_ext=c
7119
7120# Object file extension for compiled C test sources.
7121objext=o
7122objext=$objext
7123
7124# Code to be used in simple compile tests
7125lt_simple_compile_test_code="int some_variable = 0;\n"
7126
7127# Code to be used in simple link tests
7128lt_simple_link_test_code='int main(){return(0);}\n'
7129
7130
7131# If no C compiler was specified, use CC.
7132LTCC=${LTCC-"$CC"}
7133
7134# Allow CC to be a program name with arguments.
7135compiler=$CC
7136
7137
7138# save warnings/boilerplate of simple test code
7139ac_outfile=conftest.$ac_objext
7140printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7141eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7142_lt_compiler_boilerplate=`cat conftest.err`
7143$rm conftest*
7144
7145ac_outfile=conftest.$ac_objext
7146printf "$lt_simple_link_test_code" >conftest.$ac_ext
7147eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7148_lt_linker_boilerplate=`cat conftest.err`
7149$rm conftest*
7150
7151
7152#
7153# Check for any special shared library compilation flags.
7154#
7155lt_prog_cc_shlib=
7156if test "$GCC" = no; then
7157  case $host_os in
7158  sco3.2v5*)
7159    lt_prog_cc_shlib='-belf'
7160    ;;
7161  esac
7162fi
7163if test -n "$lt_prog_cc_shlib"; then
7164  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7165echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7166  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7167  else
7168    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7169echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7170    lt_cv_prog_cc_can_build_shared=no
7171  fi
7172fi
7173
7174
7175#
7176# Check to make sure the static flag actually works.
7177#
7178echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7179echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7180if test "${lt_prog_compiler_static_works+set}" = set; then
7181  echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183  lt_prog_compiler_static_works=no
7184   save_LDFLAGS="$LDFLAGS"
7185   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7186   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7187   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7188     # The linker can only warn and ignore the option if not recognized
7189     # So say no if there are warnings
7190     if test -s conftest.err; then
7191       # Append any errors to the config.log.
7192       cat conftest.err 1>&5
7193       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7194       $SED '/^$/d' conftest.err >conftest.er2
7195       if diff conftest.exp conftest.er2 >/dev/null; then
7196         lt_prog_compiler_static_works=yes
7197       fi
7198     else
7199       lt_prog_compiler_static_works=yes
7200     fi
7201   fi
7202   $rm conftest*
7203   LDFLAGS="$save_LDFLAGS"
7204
7205fi
7206echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7207echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7208
7209if test x"$lt_prog_compiler_static_works" = xyes; then
7210    :
7211else
7212    lt_prog_compiler_static=
7213fi
7214
7215
7216
7217## CAVEAT EMPTOR:
7218## There is no encapsulation within the following macros, do not change
7219## the running order or otherwise move them around unless you know exactly
7220## what you are doing...
7221
7222lt_prog_compiler_no_builtin_flag=
7223
7224if test "$GCC" = yes; then
7225  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7226
7227
7228echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7229echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7230if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7231  echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233  lt_cv_prog_compiler_rtti_exceptions=no
7234  ac_outfile=conftest.$ac_objext
7235   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7236   lt_compiler_flag="-fno-rtti -fno-exceptions"
7237   # Insert the option either (1) after the last *FLAGS variable, or
7238   # (2) before a word containing "conftest.", or (3) at the end.
7239   # Note that $ac_compile itself does not contain backslashes and begins
7240   # with a dollar sign (not a hyphen), so the echo should work correctly.
7241   # The option is referenced via a variable to avoid confusing sed.
7242   lt_compile=`echo "$ac_compile" | $SED \
7243   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7244   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7245   -e 's:$: $lt_compiler_flag:'`
7246   (eval echo "\"\$as_me:7246: $lt_compile\"" >&5)
7247   (eval "$lt_compile" 2>conftest.err)
7248   ac_status=$?
7249   cat conftest.err >&5
7250   echo "$as_me:7250: \$? = $ac_status" >&5
7251   if (exit $ac_status) && test -s "$ac_outfile"; then
7252     # The compiler can only warn and ignore the option if not recognized
7253     # So say no if there are warnings other than the usual output.
7254     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7255     $SED '/^$/d' conftest.err >conftest.er2
7256     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7257       lt_cv_prog_compiler_rtti_exceptions=yes
7258     fi
7259   fi
7260   $rm conftest*
7261
7262fi
7263echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7264echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7265
7266if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7267    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7268else
7269    :
7270fi
7271
7272fi
7273
7274lt_prog_compiler_wl=
7275lt_prog_compiler_pic=
7276lt_prog_compiler_static=
7277
7278echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7279echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7280
7281  if test "$GCC" = yes; then
7282    lt_prog_compiler_wl='-Wl,'
7283    lt_prog_compiler_static='-static'
7284
7285    case $host_os in
7286      aix*)
7287      # All AIX code is PIC.
7288      if test "$host_cpu" = ia64; then
7289	# AIX 5 now supports IA64 processor
7290	lt_prog_compiler_static='-Bstatic'
7291      fi
7292      ;;
7293
7294    amigaos*)
7295      # FIXME: we need at least 68020 code to build shared libraries, but
7296      # adding the `-m68020' flag to GCC prevents building anything better,
7297      # like `-m68040'.
7298      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7299      ;;
7300
7301    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
7302    | osf5*)
7303      # PIC is the default for these OSes.
7304      ;;
7305
7306    mingw* | pw32* | os2*)
7307      # This hack is so that the source file can tell whether it is being
7308      # built for inclusion in a dll (and should export symbols for example).
7309      lt_prog_compiler_pic='-DDLL_EXPORT'
7310      ;;
7311
7312    darwin* | rhapsody*)
7313      # PIC is the default on this platform
7314      # Common symbols not allowed in MH_DYLIB files
7315      lt_prog_compiler_pic='-fno-common'
7316      ;;
7317
7318    msdosdjgpp*)
7319      # Just because we use GCC doesn't mean we suddenly get shared libraries
7320      # on systems that don't support them.
7321      lt_prog_compiler_can_build_shared=no
7322      enable_shared=no
7323      ;;
7324
7325    sysv4*MP*)
7326      if test -d /usr/nec; then
7327	lt_prog_compiler_pic=-Kconform_pic
7328      fi
7329      ;;
7330
7331    hpux*)
7332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7333      # not for PA HP-UX.
7334      case $host_cpu in
7335      hppa*64*|ia64*)
7336	# +Z the default
7337	;;
7338      *)
7339	lt_prog_compiler_pic='-fPIC'
7340	;;
7341      esac
7342      ;;
7343
7344    *)
7345      lt_prog_compiler_pic='-fPIC'
7346      ;;
7347    esac
7348  else
7349    # PORTME Check for flag to pass linker flags through the system compiler.
7350    case $host_os in
7351    aix*)
7352      lt_prog_compiler_wl='-Wl,'
7353      if test "$host_cpu" = ia64; then
7354	# AIX 5 now supports IA64 processor
7355	lt_prog_compiler_static='-Bstatic'
7356      else
7357	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7358      fi
7359      ;;
7360      darwin*)
7361        # PIC is the default on this platform
7362        # Common symbols not allowed in MH_DYLIB files
7363       case $cc_basename in
7364         xlc*)
7365         lt_prog_compiler_pic='-qnocommon'
7366         lt_prog_compiler_wl='-Wl,'
7367         ;;
7368       esac
7369       ;;
7370
7371    mingw* | pw32* | os2*)
7372      # This hack is so that the source file can tell whether it is being
7373      # built for inclusion in a dll (and should export symbols for example).
7374      lt_prog_compiler_pic='-DDLL_EXPORT'
7375      ;;
7376
7377    hpux9* | hpux10* | hpux11*)
7378      lt_prog_compiler_wl='-Wl,'
7379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7380      # not for PA HP-UX.
7381      case $host_cpu in
7382      hppa*64*|ia64*)
7383	# +Z the default
7384	;;
7385      *)
7386	lt_prog_compiler_pic='+Z'
7387	;;
7388      esac
7389      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7390      lt_prog_compiler_static='${wl}-a ${wl}archive'
7391      ;;
7392
7393    irix5* | irix6* | nonstopux*)
7394      lt_prog_compiler_wl='-Wl,'
7395      # PIC (with -KPIC) is the default.
7396      lt_prog_compiler_static='-non_shared'
7397      ;;
7398
7399    newsos6)
7400      lt_prog_compiler_pic='-KPIC'
7401      lt_prog_compiler_static='-Bstatic'
7402      ;;
7403
7404    linux*)
7405      case $cc_basename in
7406      icc* | ecc*)
7407	lt_prog_compiler_wl='-Wl,'
7408	lt_prog_compiler_pic='-KPIC'
7409	lt_prog_compiler_static='-static'
7410        ;;
7411      pgcc* | pgf77* | pgf90* | pgf95*)
7412        # Portland Group compilers (*not* the Pentium gcc compiler,
7413	# which looks to be a dead project)
7414	lt_prog_compiler_wl='-Wl,'
7415	lt_prog_compiler_pic='-fpic'
7416	lt_prog_compiler_static='-Bstatic'
7417        ;;
7418      ccc*)
7419        lt_prog_compiler_wl='-Wl,'
7420        # All Alpha code is PIC.
7421        lt_prog_compiler_static='-non_shared'
7422        ;;
7423      esac
7424      ;;
7425
7426    osf3* | osf4* | osf5*)
7427      lt_prog_compiler_wl='-Wl,'
7428      # All OSF/1 code is PIC.
7429      lt_prog_compiler_static='-non_shared'
7430      ;;
7431
7432    sco3.2v5*)
7433      lt_prog_compiler_pic='-Kpic'
7434      lt_prog_compiler_static='-dn'
7435      ;;
7436
7437    solaris*)
7438      lt_prog_compiler_pic='-KPIC'
7439      lt_prog_compiler_static='-Bstatic'
7440      case $cc_basename in
7441      f77* | f90* | f95*)
7442	lt_prog_compiler_wl='-Qoption ld ';;
7443      *)
7444	lt_prog_compiler_wl='-Wl,';;
7445      esac
7446      ;;
7447
7448    sunos4*)
7449      lt_prog_compiler_wl='-Qoption ld '
7450      lt_prog_compiler_pic='-PIC'
7451      lt_prog_compiler_static='-Bstatic'
7452      ;;
7453
7454    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7455      lt_prog_compiler_wl='-Wl,'
7456      lt_prog_compiler_pic='-KPIC'
7457      lt_prog_compiler_static='-Bstatic'
7458      ;;
7459
7460    sysv4*MP*)
7461      if test -d /usr/nec ;then
7462	lt_prog_compiler_pic='-Kconform_pic'
7463	lt_prog_compiler_static='-Bstatic'
7464      fi
7465      ;;
7466
7467    unicos*)
7468      lt_prog_compiler_wl='-Wl,'
7469      lt_prog_compiler_can_build_shared=no
7470      ;;
7471
7472    uts4*)
7473      lt_prog_compiler_pic='-pic'
7474      lt_prog_compiler_static='-Bstatic'
7475      ;;
7476
7477    *)
7478      lt_prog_compiler_can_build_shared=no
7479      ;;
7480    esac
7481  fi
7482
7483echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7484echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7485
7486#
7487# Check to make sure the PIC flag actually works.
7488#
7489if test -n "$lt_prog_compiler_pic"; then
7490
7491echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7492echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7493if test "${lt_prog_compiler_pic_works+set}" = set; then
7494  echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496  lt_prog_compiler_pic_works=no
7497  ac_outfile=conftest.$ac_objext
7498   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7499   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7500   # Insert the option either (1) after the last *FLAGS variable, or
7501   # (2) before a word containing "conftest.", or (3) at the end.
7502   # Note that $ac_compile itself does not contain backslashes and begins
7503   # with a dollar sign (not a hyphen), so the echo should work correctly.
7504   # The option is referenced via a variable to avoid confusing sed.
7505   lt_compile=`echo "$ac_compile" | $SED \
7506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7508   -e 's:$: $lt_compiler_flag:'`
7509   (eval echo "\"\$as_me:7509: $lt_compile\"" >&5)
7510   (eval "$lt_compile" 2>conftest.err)
7511   ac_status=$?
7512   cat conftest.err >&5
7513   echo "$as_me:7513: \$? = $ac_status" >&5
7514   if (exit $ac_status) && test -s "$ac_outfile"; then
7515     # The compiler can only warn and ignore the option if not recognized
7516     # So say no if there are warnings other than the usual output.
7517     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7518     $SED '/^$/d' conftest.err >conftest.er2
7519     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7520       lt_prog_compiler_pic_works=yes
7521     fi
7522   fi
7523   $rm conftest*
7524
7525fi
7526echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7527echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7528
7529if test x"$lt_prog_compiler_pic_works" = xyes; then
7530    case $lt_prog_compiler_pic in
7531     "" | " "*) ;;
7532     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7533     esac
7534else
7535    lt_prog_compiler_pic=
7536     lt_prog_compiler_can_build_shared=no
7537fi
7538
7539fi
7540case $host_os in
7541  # For platforms which do not support PIC, -DPIC is meaningless:
7542  *djgpp*)
7543    lt_prog_compiler_pic=
7544    ;;
7545  *)
7546    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7547    ;;
7548esac
7549
7550echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7551echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7552if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7553  echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555  lt_cv_prog_compiler_c_o=no
7556   $rm -r conftest 2>/dev/null
7557   mkdir conftest
7558   cd conftest
7559   mkdir out
7560   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7561
7562   lt_compiler_flag="-o out/conftest2.$ac_objext"
7563   # Insert the option either (1) after the last *FLAGS variable, or
7564   # (2) before a word containing "conftest.", or (3) at the end.
7565   # Note that $ac_compile itself does not contain backslashes and begins
7566   # with a dollar sign (not a hyphen), so the echo should work correctly.
7567   lt_compile=`echo "$ac_compile" | $SED \
7568   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7569   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7570   -e 's:$: $lt_compiler_flag:'`
7571   (eval echo "\"\$as_me:7571: $lt_compile\"" >&5)
7572   (eval "$lt_compile" 2>out/conftest.err)
7573   ac_status=$?
7574   cat out/conftest.err >&5
7575   echo "$as_me:7575: \$? = $ac_status" >&5
7576   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7577   then
7578     # The compiler can only warn and ignore the option if not recognized
7579     # So say no if there are warnings
7580     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7581     $SED '/^$/d' out/conftest.err >out/conftest.er2
7582     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7583       lt_cv_prog_compiler_c_o=yes
7584     fi
7585   fi
7586   chmod u+w . 2>&5
7587   $rm conftest*
7588   # SGI C++ compiler will create directory out/ii_files/ for
7589   # template instantiation
7590   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7591   $rm out/* && rmdir out
7592   cd ..
7593   rmdir conftest
7594   $rm conftest*
7595
7596fi
7597echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7598echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7599
7600
7601hard_links="nottested"
7602if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7603  # do not overwrite the value of need_locks provided by the user
7604  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7605echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7606  hard_links=yes
7607  $rm conftest*
7608  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7609  touch conftest.a
7610  ln conftest.a conftest.b 2>&5 || hard_links=no
7611  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7612  echo "$as_me:$LINENO: result: $hard_links" >&5
7613echo "${ECHO_T}$hard_links" >&6
7614  if test "$hard_links" = no; then
7615    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7616echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7617    need_locks=warn
7618  fi
7619else
7620  need_locks=no
7621fi
7622
7623echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7624echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7625
7626  runpath_var=
7627  allow_undefined_flag=
7628  enable_shared_with_static_runtimes=no
7629  archive_cmds=
7630  archive_expsym_cmds=
7631  old_archive_From_new_cmds=
7632  old_archive_from_expsyms_cmds=
7633  export_dynamic_flag_spec=
7634  whole_archive_flag_spec=
7635  thread_safe_flag_spec=
7636  hardcode_libdir_flag_spec=
7637  hardcode_libdir_flag_spec_ld=
7638  hardcode_libdir_separator=
7639  hardcode_direct=no
7640  hardcode_minus_L=no
7641  hardcode_shlibpath_var=unsupported
7642  link_all_deplibs=unknown
7643  hardcode_automatic=no
7644  module_cmds=
7645  module_expsym_cmds=
7646  always_export_symbols=no
7647  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7648  # include_expsyms should be a list of space-separated symbols to be *always*
7649  # included in the symbol list
7650  include_expsyms=
7651  # exclude_expsyms can be an extended regexp of symbols to exclude
7652  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7653  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7654  # as well as any symbol that contains `d'.
7655  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7656  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7657  # platforms (ab)use it in PIC code, but their linkers get confused if
7658  # the symbol is explicitly referenced.  Since portable code cannot
7659  # rely on this symbol name, it's probably fine to never include it in
7660  # preloaded symbol tables.
7661  extract_expsyms_cmds=
7662  # Just being paranoid about ensuring that cc_basename is set.
7663  for cc_temp in $compiler""; do
7664  case $cc_temp in
7665    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7666    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7667    \-*) ;;
7668    *) break;;
7669  esac
7670done
7671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7672
7673  case $host_os in
7674  cygwin* | mingw* | pw32*)
7675    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7676    # When not using gcc, we currently assume that we are using
7677    # Microsoft Visual C++.
7678    if test "$GCC" != yes; then
7679      with_gnu_ld=no
7680    fi
7681    ;;
7682  openbsd*)
7683    with_gnu_ld=no
7684    ;;
7685  esac
7686
7687  ld_shlibs=yes
7688  if test "$with_gnu_ld" = yes; then
7689    # If archive_cmds runs LD, not CC, wlarc should be empty
7690    wlarc='${wl}'
7691
7692    # Set some defaults for GNU ld with shared library support. These
7693    # are reset later if shared libraries are not supported. Putting them
7694    # here allows them to be overridden if necessary.
7695    runpath_var=LD_RUN_PATH
7696    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7697    export_dynamic_flag_spec='${wl}--export-dynamic'
7698    # ancient GNU ld didn't support --whole-archive et. al.
7699    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7700	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7701      else
7702  	whole_archive_flag_spec=
7703    fi
7704    supports_anon_versioning=no
7705    case `$LD -v 2>/dev/null` in
7706      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7707      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7708      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7709      *\ 2.11.*) ;; # other 2.11 versions
7710      *) supports_anon_versioning=yes ;;
7711    esac
7712
7713    # See if GNU ld supports shared libraries.
7714    case $host_os in
7715    aix3* | aix4* | aix5*)
7716      # On AIX/PPC, the GNU linker is very broken
7717      if test "$host_cpu" != ia64; then
7718	ld_shlibs=no
7719	cat <<EOF 1>&2
7720
7721*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7722*** to be unable to reliably create shared libraries on AIX.
7723*** Therefore, libtool is disabling shared libraries support.  If you
7724*** really care for shared libraries, you may want to modify your PATH
7725*** so that a non-GNU linker is found, and then restart.
7726
7727EOF
7728      fi
7729      ;;
7730
7731    amigaos*)
7732      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)'
7733      hardcode_libdir_flag_spec='-L$libdir'
7734      hardcode_minus_L=yes
7735
7736      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7737      # that the semantics of dynamic libraries on AmigaOS, at least up
7738      # to version 4, is to share data among multiple programs linked
7739      # with the same dynamic library.  Since this doesn't match the
7740      # behavior of shared libraries on other platforms, we can't use
7741      # them.
7742      ld_shlibs=no
7743      ;;
7744
7745    beos*)
7746      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7747	allow_undefined_flag=unsupported
7748	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7749	# support --undefined.  This deserves some investigation.  FIXME
7750	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751      else
7752	ld_shlibs=no
7753      fi
7754      ;;
7755
7756    cygwin* | mingw* | pw32*)
7757      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7758      # as there is no search path for DLLs.
7759      hardcode_libdir_flag_spec='-L$libdir'
7760      allow_undefined_flag=unsupported
7761      always_export_symbols=no
7762      enable_shared_with_static_runtimes=yes
7763      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7764
7765      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7766        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7767	# If the export-symbols file already is a .def file (1st line
7768	# is EXPORTS), use it as is; otherwise, prepend...
7769	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7770	  cp $export_symbols $output_objdir/$soname.def;
7771	else
7772	  echo EXPORTS > $output_objdir/$soname.def;
7773	  cat $export_symbols >> $output_objdir/$soname.def;
7774	fi~
7775	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7776      else
7777	ld_shlibs=no
7778      fi
7779      ;;
7780
7781    haiku*)
7782      allow_undefined_flag=unsupported
7783      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7784      ;;
7785
7786    linux*)
7787      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7788	tmp_addflag=
7789	case $cc_basename,$host_cpu in
7790	pgcc*)				# Portland Group C compiler
7791	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7792	  tmp_addflag=' $pic_flag'
7793	  ;;
7794	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7795	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7796	  tmp_addflag=' $pic_flag -Mnomain' ;;
7797	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7798	  tmp_addflag=' -i_dynamic' ;;
7799	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7800	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7801	ifc* | ifort*)			# Intel Fortran compiler
7802	  tmp_addflag=' -nofor_main' ;;
7803	esac
7804	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7805
7806	if test $supports_anon_versioning = yes; then
7807	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7808  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7809  $echo "local: *; };" >> $output_objdir/$libname.ver~
7810	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7811	fi
7812      else
7813	ld_shlibs=no
7814      fi
7815      ;;
7816
7817    netbsd*)
7818      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7819	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7820	wlarc=
7821      else
7822	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7824      fi
7825      ;;
7826
7827    solaris* | sysv5*)
7828      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7829	ld_shlibs=no
7830	cat <<EOF 1>&2
7831
7832*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7833*** create shared libraries on Solaris systems.  Therefore, libtool
7834*** is disabling shared libraries support.  We urge you to upgrade GNU
7835*** binutils to release 2.9.1 or newer.  Another option is to modify
7836*** your PATH or compiler configuration so that the native linker is
7837*** used, and then restart.
7838
7839EOF
7840      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7841	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7842	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7843      else
7844	ld_shlibs=no
7845      fi
7846      ;;
7847
7848    sunos4*)
7849      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850      wlarc=
7851      hardcode_direct=yes
7852      hardcode_shlibpath_var=no
7853      ;;
7854
7855    *)
7856      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7858	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7859      else
7860	ld_shlibs=no
7861      fi
7862      ;;
7863    esac
7864
7865    if test "$ld_shlibs" = no; then
7866      runpath_var=
7867      hardcode_libdir_flag_spec=
7868      export_dynamic_flag_spec=
7869      whole_archive_flag_spec=
7870    fi
7871  else
7872    # PORTME fill in a description of your system's linker (not GNU ld)
7873    case $host_os in
7874    aix3*)
7875      allow_undefined_flag=unsupported
7876      always_export_symbols=yes
7877      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'
7878      # Note: this linker hardcodes the directories in LIBPATH if there
7879      # are no directories specified by -L.
7880      hardcode_minus_L=yes
7881      if test "$GCC" = yes && test -z "$link_static_flag"; then
7882	# Neither direct hardcoding nor static linking is supported with a
7883	# broken collect2.
7884	hardcode_direct=unsupported
7885      fi
7886      ;;
7887
7888    aix4* | aix5*)
7889      if test "$host_cpu" = ia64; then
7890	# On IA64, the linker does run time linking by default, so we don't
7891	# have to do anything special.
7892	aix_use_runtimelinking=no
7893	exp_sym_flag='-Bexport'
7894	no_entry_flag=""
7895      else
7896	# If we're using GNU nm, then we don't want the "-C" option.
7897	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7898	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7899	  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'
7900	else
7901	  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'
7902	fi
7903	aix_use_runtimelinking=no
7904
7905	# Test if we are trying to use run time linking or normal
7906	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7907	# need to do runtime linking.
7908	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7909	  for ld_flag in $LDFLAGS; do
7910  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7911  	    aix_use_runtimelinking=yes
7912  	    break
7913  	  fi
7914	  done
7915	esac
7916
7917	exp_sym_flag='-bexport'
7918	no_entry_flag='-bnoentry'
7919      fi
7920
7921      # When large executables or shared objects are built, AIX ld can
7922      # have problems creating the table of contents.  If linking a library
7923      # or program results in "error TOC overflow" add -mminimal-toc to
7924      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7925      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7926
7927      archive_cmds=''
7928      hardcode_direct=yes
7929      hardcode_libdir_separator=':'
7930      link_all_deplibs=yes
7931
7932      if test "$GCC" = yes; then
7933	case $host_os in aix4.[012]|aix4.[012].*)
7934	# We only want to do this on AIX 4.2 and lower, the check
7935	# below for broken collect2 doesn't work under 4.3+
7936	  collect2name=`${CC} -print-prog-name=collect2`
7937	  if test -f "$collect2name" && \
7938  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7939	  then
7940  	  # We have reworked collect2
7941  	  hardcode_direct=yes
7942	  else
7943  	  # We have old collect2
7944  	  hardcode_direct=unsupported
7945  	  # It fails to find uninstalled libraries when the uninstalled
7946  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7947  	  # to unsupported forces relinking
7948  	  hardcode_minus_L=yes
7949  	  hardcode_libdir_flag_spec='-L$libdir'
7950  	  hardcode_libdir_separator=
7951	  fi
7952	esac
7953	shared_flag='-shared'
7954	if test "$aix_use_runtimelinking" = yes; then
7955	  shared_flag="$shared_flag "'${wl}-G'
7956	fi
7957      else
7958	# not using gcc
7959	if test "$host_cpu" = ia64; then
7960  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7961  	# chokes on -Wl,-G. The following line is correct:
7962	  shared_flag='-G'
7963	else
7964  	if test "$aix_use_runtimelinking" = yes; then
7965	    shared_flag='${wl}-G'
7966	  else
7967	    shared_flag='${wl}-bM:SRE'
7968  	fi
7969	fi
7970      fi
7971
7972      # It seems that -bexpall does not export symbols beginning with
7973      # underscore (_), so it is better to generate a list of symbols to export.
7974      always_export_symbols=yes
7975      if test "$aix_use_runtimelinking" = yes; then
7976	# Warning - without using the other runtime loading flags (-brtl),
7977	# -berok will link without error, but may produce a broken library.
7978	allow_undefined_flag='-berok'
7979       # Determine the default libpath from the value encoded in an empty executable.
7980       cat >conftest.$ac_ext <<_ACEOF
7981/* confdefs.h.  */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h.  */
7986
7987#ifdef F77_DUMMY_MAIN
7988
7989#  ifdef __cplusplus
7990     extern "C"
7991#  endif
7992   int F77_DUMMY_MAIN() { return 1; }
7993
7994#endif
7995int
7996main ()
7997{
7998
7999  ;
8000  return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext conftest$ac_exeext
8004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005  (eval $ac_link) 2>conftest.er1
8006  ac_status=$?
8007  grep -v '^ *+' conftest.er1 >conftest.err
8008  rm -f conftest.er1
8009  cat conftest.err >&5
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); } &&
8012	 { ac_try='test -z "$ac_c_werror_flag"
8013			 || test ! -s conftest.err'
8014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015  (eval $ac_try) 2>&5
8016  ac_status=$?
8017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018  (exit $ac_status); }; } &&
8019	 { ac_try='test -s conftest$ac_exeext'
8020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021  (eval $ac_try) 2>&5
8022  ac_status=$?
8023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024  (exit $ac_status); }; }; then
8025
8026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8027}'`
8028# Check for a 64-bit object if we didn't find anything.
8029if 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; }
8030}'`; fi
8031else
8032  echo "$as_me: failed program was:" >&5
8033sed 's/^/| /' conftest.$ac_ext >&5
8034
8035fi
8036rm -f conftest.err conftest.$ac_objext \
8037      conftest$ac_exeext conftest.$ac_ext
8038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8039
8040       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8041	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"
8042       else
8043	if test "$host_cpu" = ia64; then
8044	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8045	  allow_undefined_flag="-z nodefs"
8046	  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"
8047	else
8048	 # Determine the default libpath from the value encoded in an empty executable.
8049	 cat >conftest.$ac_ext <<_ACEOF
8050/* confdefs.h.  */
8051_ACEOF
8052cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h.  */
8055
8056#ifdef F77_DUMMY_MAIN
8057
8058#  ifdef __cplusplus
8059     extern "C"
8060#  endif
8061   int F77_DUMMY_MAIN() { return 1; }
8062
8063#endif
8064int
8065main ()
8066{
8067
8068  ;
8069  return 0;
8070}
8071_ACEOF
8072rm -f conftest.$ac_objext conftest$ac_exeext
8073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074  (eval $ac_link) 2>conftest.er1
8075  ac_status=$?
8076  grep -v '^ *+' conftest.er1 >conftest.err
8077  rm -f conftest.er1
8078  cat conftest.err >&5
8079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080  (exit $ac_status); } &&
8081	 { ac_try='test -z "$ac_c_werror_flag"
8082			 || test ! -s conftest.err'
8083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084  (eval $ac_try) 2>&5
8085  ac_status=$?
8086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087  (exit $ac_status); }; } &&
8088	 { ac_try='test -s conftest$ac_exeext'
8089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090  (eval $ac_try) 2>&5
8091  ac_status=$?
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); }; }; then
8094
8095aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8096}'`
8097# Check for a 64-bit object if we didn't find anything.
8098if 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; }
8099}'`; fi
8100else
8101  echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
8104fi
8105rm -f conftest.err conftest.$ac_objext \
8106      conftest$ac_exeext conftest.$ac_ext
8107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8108
8109	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8110	  # Warning - without using the other run time loading flags,
8111	  # -berok will link without error, but may produce a broken library.
8112	  no_undefined_flag=' ${wl}-bernotok'
8113	  allow_undefined_flag=' ${wl}-berok'
8114	  # -bexpall does not export symbols beginning with underscore (_)
8115	  always_export_symbols=yes
8116	  # Exported symbols can be pulled into shared objects from archives
8117	  whole_archive_flag_spec=' '
8118	  archive_cmds_need_lc=yes
8119	  # This is similar to how AIX traditionally builds its shared libraries.
8120	  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'
8121	fi
8122      fi
8123      ;;
8124
8125    amigaos*)
8126      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)'
8127      hardcode_libdir_flag_spec='-L$libdir'
8128      hardcode_minus_L=yes
8129      # see comment about different semantics on the GNU ld section
8130      ld_shlibs=no
8131      ;;
8132
8133    bsdi[45]*)
8134      export_dynamic_flag_spec=-rdynamic
8135      ;;
8136
8137    cygwin* | mingw* | pw32*)
8138      # When not using gcc, we currently assume that we are using
8139      # Microsoft Visual C++.
8140      # hardcode_libdir_flag_spec is actually meaningless, as there is
8141      # no search path for DLLs.
8142      hardcode_libdir_flag_spec=' '
8143      allow_undefined_flag=unsupported
8144      # Tell ltmain to make .lib files, not .a files.
8145      libext=lib
8146      # Tell ltmain to make .dll files, not .so files.
8147      shrext_cmds=".dll"
8148      # FIXME: Setting linknames here is a bad hack.
8149      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8150      # The linker will automatically build a .lib file if we build a DLL.
8151      old_archive_From_new_cmds='true'
8152      # FIXME: Should let the user specify the lib program.
8153      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8154      fix_srcfile_path='`cygpath -w "$srcfile"`'
8155      enable_shared_with_static_runtimes=yes
8156      ;;
8157
8158    darwin* | rhapsody*)
8159      case $host_os in
8160        rhapsody* | darwin1.[012])
8161         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8162         ;;
8163       *) # Darwin 1.3 on
8164         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8165           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8166         else
8167           case ${MACOSX_DEPLOYMENT_TARGET} in
8168             10.[012])
8169               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8170               ;;
8171             10.*)
8172               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8173               ;;
8174           esac
8175         fi
8176         ;;
8177      esac
8178      archive_cmds_need_lc=no
8179      hardcode_direct=no
8180      hardcode_automatic=yes
8181      hardcode_shlibpath_var=unsupported
8182      whole_archive_flag_spec=''
8183      link_all_deplibs=yes
8184    if test "$GCC" = yes ; then
8185    	output_verbose_link_cmd='echo'
8186        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8187      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8188      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8189      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}'
8190      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}'
8191    else
8192      case $cc_basename in
8193        xlc*)
8194         output_verbose_link_cmd='echo'
8195         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8196         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8197          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8198         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8199          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}'
8200          ;;
8201       *)
8202         ld_shlibs=no
8203          ;;
8204      esac
8205    fi
8206      ;;
8207
8208    dgux*)
8209      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8210      hardcode_libdir_flag_spec='-L$libdir'
8211      hardcode_shlibpath_var=no
8212      ;;
8213
8214    freebsd1*)
8215      ld_shlibs=no
8216      ;;
8217
8218    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8219    # support.  Future versions do this automatically, but an explicit c++rt0.o
8220    # does not break anything, and helps significantly (at the cost of a little
8221    # extra space).
8222    freebsd2.2*)
8223      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8224      hardcode_libdir_flag_spec='-R$libdir'
8225      hardcode_direct=yes
8226      hardcode_shlibpath_var=no
8227      ;;
8228
8229    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8230    freebsd2*)
8231      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8232      hardcode_direct=yes
8233      hardcode_minus_L=yes
8234      hardcode_shlibpath_var=no
8235      ;;
8236
8237    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8238    freebsd* | kfreebsd*-gnu | dragonfly*)
8239      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8240      hardcode_libdir_flag_spec='-R$libdir'
8241      hardcode_direct=yes
8242      hardcode_shlibpath_var=no
8243      ;;
8244
8245    hpux9*)
8246      if test "$GCC" = yes; then
8247	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'
8248      else
8249	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'
8250      fi
8251      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8252      hardcode_libdir_separator=:
8253      hardcode_direct=yes
8254
8255      # hardcode_minus_L: Not really in the search PATH,
8256      # but as the default location of the library.
8257      hardcode_minus_L=yes
8258      export_dynamic_flag_spec='${wl}-E'
8259      ;;
8260
8261    hpux10* | hpux11*)
8262      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8263	case $host_cpu in
8264	hppa*64*|ia64*)
8265	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8266	  ;;
8267	*)
8268	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8269	  ;;
8270	esac
8271      else
8272	case $host_cpu in
8273	hppa*64*|ia64*)
8274	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8275	  ;;
8276	*)
8277	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8278	  ;;
8279	esac
8280      fi
8281      if test "$with_gnu_ld" = no; then
8282	case $host_cpu in
8283	hppa*64*)
8284	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8285	  hardcode_libdir_flag_spec_ld='+b $libdir'
8286	  hardcode_libdir_separator=:
8287	  hardcode_direct=no
8288	  hardcode_shlibpath_var=no
8289	  ;;
8290	ia64*)
8291	  hardcode_libdir_flag_spec='-L$libdir'
8292	  hardcode_direct=no
8293	  hardcode_shlibpath_var=no
8294
8295	  # hardcode_minus_L: Not really in the search PATH,
8296	  # but as the default location of the library.
8297	  hardcode_minus_L=yes
8298	  ;;
8299	*)
8300	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8301	  hardcode_libdir_separator=:
8302	  hardcode_direct=yes
8303	  export_dynamic_flag_spec='${wl}-E'
8304
8305	  # hardcode_minus_L: Not really in the search PATH,
8306	  # but as the default location of the library.
8307	  hardcode_minus_L=yes
8308	  ;;
8309	esac
8310      fi
8311      ;;
8312
8313    irix5* | irix6* | nonstopux*)
8314      if test "$GCC" = yes; then
8315	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'
8316      else
8317	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'
8318	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8319      fi
8320      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321      hardcode_libdir_separator=:
8322      link_all_deplibs=yes
8323      ;;
8324
8325    netbsd*)
8326      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8327	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8328      else
8329	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8330      fi
8331      hardcode_libdir_flag_spec='-R$libdir'
8332      hardcode_direct=yes
8333      hardcode_shlibpath_var=no
8334      ;;
8335
8336    newsos6)
8337      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338      hardcode_direct=yes
8339      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340      hardcode_libdir_separator=:
8341      hardcode_shlibpath_var=no
8342      ;;
8343
8344    openbsd*)
8345      hardcode_direct=yes
8346      hardcode_shlibpath_var=no
8347      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8348	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8349	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8350	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351	export_dynamic_flag_spec='${wl}-E'
8352      else
8353       case $host_os in
8354	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8355	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356	   hardcode_libdir_flag_spec='-R$libdir'
8357	   ;;
8358	 *)
8359	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8360	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8361	   ;;
8362       esac
8363      fi
8364      ;;
8365
8366    os2*)
8367      hardcode_libdir_flag_spec='-L$libdir'
8368      hardcode_minus_L=yes
8369      allow_undefined_flag=unsupported
8370      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'
8371      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8372      ;;
8373
8374    osf3*)
8375      if test "$GCC" = yes; then
8376	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8377	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'
8378      else
8379	allow_undefined_flag=' -expect_unresolved \*'
8380	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'
8381      fi
8382      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8383      hardcode_libdir_separator=:
8384      ;;
8385
8386    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8387      if test "$GCC" = yes; then
8388	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8389	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'
8390	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391      else
8392	allow_undefined_flag=' -expect_unresolved \*'
8393	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'
8394	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8395	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8396
8397	# Both c and cxx compiler support -rpath directly
8398	hardcode_libdir_flag_spec='-rpath $libdir'
8399      fi
8400      hardcode_libdir_separator=:
8401      ;;
8402
8403    sco3.2v5*)
8404      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405      hardcode_shlibpath_var=no
8406      export_dynamic_flag_spec='${wl}-Bexport'
8407      runpath_var=LD_RUN_PATH
8408      hardcode_runpath_var=yes
8409      ;;
8410
8411    solaris*)
8412      no_undefined_flag=' -z text'
8413      if test "$GCC" = yes; then
8414	wlarc='${wl}'
8415	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8416	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8417	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8418      else
8419	wlarc=''
8420	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8421	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8422  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8423      fi
8424      hardcode_libdir_flag_spec='-R$libdir'
8425      hardcode_shlibpath_var=no
8426      case $host_os in
8427      solaris2.[0-5] | solaris2.[0-5].*) ;;
8428      *)
8429 	# The compiler driver will combine linker options so we
8430 	# cannot just pass the convience library names through
8431 	# without $wl, iff we do not link with $LD.
8432 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8433 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8434 	case $wlarc in
8435 	'')
8436 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8437 	*)
8438 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8439 	esac ;;
8440      esac
8441      link_all_deplibs=yes
8442      ;;
8443
8444    sunos4*)
8445      if test "x$host_vendor" = xsequent; then
8446	# Use $CC to link under sequent, because it throws in some extra .o
8447	# files that make .init and .fini sections work.
8448	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8449      else
8450	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8451      fi
8452      hardcode_libdir_flag_spec='-L$libdir'
8453      hardcode_direct=yes
8454      hardcode_minus_L=yes
8455      hardcode_shlibpath_var=no
8456      ;;
8457
8458    sysv4)
8459      case $host_vendor in
8460	sni)
8461	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462	  hardcode_direct=yes # is this really true???
8463	;;
8464	siemens)
8465	  ## LD is ld it makes a PLAMLIB
8466	  ## CC just makes a GrossModule.
8467	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8468	  reload_cmds='$CC -r -o $output$reload_objs'
8469	  hardcode_direct=no
8470        ;;
8471	motorola)
8472	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8473	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8474	;;
8475      esac
8476      runpath_var='LD_RUN_PATH'
8477      hardcode_shlibpath_var=no
8478      ;;
8479
8480    sysv4.3*)
8481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8482      hardcode_shlibpath_var=no
8483      export_dynamic_flag_spec='-Bexport'
8484      ;;
8485
8486    sysv4*MP*)
8487      if test -d /usr/nec; then
8488	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489	hardcode_shlibpath_var=no
8490	runpath_var=LD_RUN_PATH
8491	hardcode_runpath_var=yes
8492	ld_shlibs=yes
8493      fi
8494      ;;
8495
8496    sysv4.2uw2*)
8497      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8498      hardcode_direct=yes
8499      hardcode_minus_L=no
8500      hardcode_shlibpath_var=no
8501      hardcode_runpath_var=yes
8502      runpath_var=LD_RUN_PATH
8503      ;;
8504
8505   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8506      no_undefined_flag='${wl}-z ${wl}text'
8507      if test "$GCC" = yes; then
8508	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8509      else
8510	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8511      fi
8512      runpath_var='LD_RUN_PATH'
8513      hardcode_shlibpath_var=no
8514      ;;
8515
8516    sysv5*)
8517      no_undefined_flag=' -z text'
8518      # $CC -shared without GNU ld will not create a library from C++
8519      # object files and a static libstdc++, better avoid it by now
8520      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8521      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8522  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8523      hardcode_libdir_flag_spec=
8524      hardcode_shlibpath_var=no
8525      runpath_var='LD_RUN_PATH'
8526      ;;
8527
8528    uts4*)
8529      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530      hardcode_libdir_flag_spec='-L$libdir'
8531      hardcode_shlibpath_var=no
8532      ;;
8533
8534    *)
8535      ld_shlibs=no
8536      ;;
8537    esac
8538  fi
8539
8540echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8541echo "${ECHO_T}$ld_shlibs" >&6
8542test "$ld_shlibs" = no && can_build_shared=no
8543
8544variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8545if test "$GCC" = yes; then
8546  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8547fi
8548
8549#
8550# Do we need to explicitly link libc?
8551#
8552case "x$archive_cmds_need_lc" in
8553x|xyes)
8554  # Assume -lc should be added
8555  archive_cmds_need_lc=yes
8556
8557  if test "$enable_shared" = yes && test "$GCC" = yes; then
8558    case $archive_cmds in
8559    *'~'*)
8560      # FIXME: we may have to deal with multi-command sequences.
8561      ;;
8562    '$CC '*)
8563      # Test whether the compiler implicitly links with -lc since on some
8564      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8565      # to ld, don't add -lc before -lgcc.
8566      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8567echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8568      $rm conftest*
8569      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572  (eval $ac_compile) 2>&5
8573  ac_status=$?
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); } 2>conftest.err; then
8576        soname=conftest
8577        lib=conftest
8578        libobjs=conftest.$ac_objext
8579        deplibs=
8580        wl=$lt_prog_compiler_wl
8581        compiler_flags=-v
8582        linker_flags=-v
8583        verstring=
8584        output_objdir=.
8585        libname=conftest
8586        lt_save_allow_undefined_flag=$allow_undefined_flag
8587        allow_undefined_flag=
8588        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8589  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8590  ac_status=$?
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); }
8593        then
8594	  archive_cmds_need_lc=no
8595        else
8596	  archive_cmds_need_lc=yes
8597        fi
8598        allow_undefined_flag=$lt_save_allow_undefined_flag
8599      else
8600        cat conftest.err 1>&5
8601      fi
8602      $rm conftest*
8603      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8604echo "${ECHO_T}$archive_cmds_need_lc" >&6
8605      ;;
8606    esac
8607  fi
8608  ;;
8609esac
8610
8611echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8613library_names_spec=
8614libname_spec='lib$name'
8615soname_spec=
8616shrext_cmds=".so"
8617postinstall_cmds=
8618postuninstall_cmds=
8619finish_cmds=
8620finish_eval=
8621shlibpath_var=
8622shlibpath_overrides_runpath=unknown
8623version_type=none
8624dynamic_linker="$host_os ld.so"
8625sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626if test "$GCC" = yes; then
8627  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629    # if the path contains ";" then we assume it to be the separator
8630    # otherwise default to the standard path separator (i.e. ":") - it is
8631    # assumed that no part of a normal pathname contains ";" but that should
8632    # okay in the real world where ";" in dirpaths is itself problematic.
8633    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634  else
8635    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8636  fi
8637else
8638  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639fi
8640need_lib_prefix=unknown
8641hardcode_into_libs=no
8642
8643# when you set need_version to no, make sure it does not cause -set_version
8644# flags to be left without arguments
8645need_version=unknown
8646
8647case $host_os in
8648aix3*)
8649  version_type=linux
8650  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651  shlibpath_var=LIBPATH
8652
8653  # AIX 3 has no versioning support, so we append a major version to the name.
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  ;;
8656
8657aix4* | aix5*)
8658  version_type=linux
8659  need_lib_prefix=no
8660  need_version=no
8661  hardcode_into_libs=yes
8662  if test "$host_cpu" = ia64; then
8663    # AIX 5 supports IA64
8664    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665    shlibpath_var=LD_LIBRARY_PATH
8666  else
8667    # With GCC up to 2.95.x, collect2 would create an import file
8668    # for dependence libraries.  The import file would start with
8669    # the line `#! .'.  This would cause the generated library to
8670    # depend on `.', always an invalid library.  This was fixed in
8671    # development snapshots of GCC prior to 3.0.
8672    case $host_os in
8673      aix4 | aix4.[01] | aix4.[01].*)
8674      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675	   echo ' yes '
8676	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677	:
8678      else
8679	can_build_shared=no
8680      fi
8681      ;;
8682    esac
8683    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684    # soname into executable. Probably we can add versioning support to
8685    # collect2, so additional links can be useful in future.
8686    if test "$aix_use_runtimelinking" = yes; then
8687      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688      # instead of lib<name>.a to let people know that these are not
8689      # typical AIX shared libraries.
8690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691    else
8692      # We preserve .a as extension for shared libraries through AIX4.2
8693      # and later when we are not doing run time linking.
8694      library_names_spec='${libname}${release}.a $libname.a'
8695      soname_spec='${libname}${release}${shared_ext}$major'
8696    fi
8697    shlibpath_var=LIBPATH
8698  fi
8699  ;;
8700
8701amigaos*)
8702  library_names_spec='$libname.ixlibrary $libname.a'
8703  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704  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'
8705  ;;
8706
8707beos*)
8708  library_names_spec='${libname}${shared_ext}'
8709  dynamic_linker="$host_os ld.so"
8710  shlibpath_var=LIBRARY_PATH
8711  ;;
8712
8713bsdi[45]*)
8714  version_type=linux
8715  need_version=no
8716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717  soname_spec='${libname}${release}${shared_ext}$major'
8718  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719  shlibpath_var=LD_LIBRARY_PATH
8720  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722  # the default ld.so.conf also contains /usr/contrib/lib and
8723  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724  # libtool to hard-code these into programs
8725  ;;
8726
8727cygwin* | mingw* | pw32*)
8728  version_type=windows
8729  shrext_cmds=".dll"
8730  need_version=no
8731  need_lib_prefix=no
8732
8733  case $GCC,$host_os in
8734  yes,cygwin* | yes,mingw* | yes,pw32*)
8735    library_names_spec='$libname.dll.a'
8736    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737    postinstall_cmds='base_file=`basename \${file}`~
8738      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739      dldir=$destdir/`dirname \$dlpath`~
8740      test -d \$dldir || mkdir -p \$dldir~
8741      $install_prog $dir/$dlname \$dldir/$dlname~
8742      chmod a+x \$dldir/$dlname'
8743    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744      dlpath=$dir/\$dldll~
8745       $rm \$dlpath'
8746    shlibpath_overrides_runpath=yes
8747
8748    case $host_os in
8749    cygwin*)
8750      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8753      ;;
8754    mingw*)
8755      # MinGW DLLs use traditional 'lib' prefix
8756      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759        # It is most probably a Windows format PATH printed by
8760        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761        # path with ; separators, and with drive letters. We can handle the
8762        # drive letters (cygwin fileutils understands them), so leave them,
8763        # especially as we might pass files found there to a mingw objdump,
8764        # which wouldn't understand a cygwinified path. Ahh.
8765        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766      else
8767        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8768      fi
8769      ;;
8770    pw32*)
8771      # pw32 DLLs use 'pw' prefix rather than 'lib'
8772      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773      ;;
8774    esac
8775    ;;
8776
8777  *)
8778    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8779    ;;
8780  esac
8781  dynamic_linker='Win32 ld.exe'
8782  # FIXME: first we should search . and the directory the executable is in
8783  shlibpath_var=PATH
8784  ;;
8785
8786darwin* | rhapsody*)
8787  dynamic_linker="$host_os dyld"
8788  version_type=darwin
8789  need_lib_prefix=no
8790  need_version=no
8791  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792  soname_spec='${libname}${release}${major}$shared_ext'
8793  shlibpath_overrides_runpath=yes
8794  shlibpath_var=DYLD_LIBRARY_PATH
8795  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8796  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797  if test "$GCC" = yes; then
8798    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"`
8799  else
8800    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801  fi
8802  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8803  ;;
8804
8805dgux*)
8806  version_type=linux
8807  need_lib_prefix=no
8808  need_version=no
8809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810  soname_spec='${libname}${release}${shared_ext}$major'
8811  shlibpath_var=LD_LIBRARY_PATH
8812  ;;
8813
8814freebsd1*)
8815  dynamic_linker=no
8816  ;;
8817
8818haiku*)
8819  library_names_spec='${libname}${shared_ext}'
8820  dynamic_linker="$host_os ld.so"
8821  shlibpath_var=LIBRARY_PATH
8822  ;;
8823
8824kfreebsd*-gnu)
8825  version_type=linux
8826  need_lib_prefix=no
8827  need_version=no
8828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8829  soname_spec='${libname}${release}${shared_ext}$major'
8830  shlibpath_var=LD_LIBRARY_PATH
8831  shlibpath_overrides_runpath=no
8832  hardcode_into_libs=yes
8833  dynamic_linker='GNU ld.so'
8834  ;;
8835
8836freebsd* | dragonfly*)
8837  # DragonFly does not have aout.  When/if they implement a new
8838  # versioning mechanism, adjust this.
8839  if test -x /usr/bin/objformat; then
8840    objformat=`/usr/bin/objformat`
8841  else
8842    case $host_os in
8843    freebsd[123]*) objformat=aout ;;
8844    *) objformat=elf ;;
8845    esac
8846  fi
8847  version_type=freebsd-$objformat
8848  case $version_type in
8849    freebsd-elf*)
8850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8851      need_version=no
8852      need_lib_prefix=no
8853      ;;
8854    freebsd-*)
8855      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8856      need_version=yes
8857      ;;
8858  esac
8859  shlibpath_var=LD_LIBRARY_PATH
8860  case $host_os in
8861  freebsd2*)
8862    shlibpath_overrides_runpath=yes
8863    ;;
8864  freebsd3.[01]* | freebsdelf3.[01]*)
8865    shlibpath_overrides_runpath=yes
8866    hardcode_into_libs=yes
8867    ;;
8868  *) # from 3.2 on
8869    shlibpath_overrides_runpath=no
8870    hardcode_into_libs=yes
8871    ;;
8872  esac
8873  ;;
8874
8875gnu*)
8876  version_type=linux
8877  need_lib_prefix=no
8878  need_version=no
8879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8880  soname_spec='${libname}${release}${shared_ext}$major'
8881  shlibpath_var=LD_LIBRARY_PATH
8882  hardcode_into_libs=yes
8883  ;;
8884
8885hpux9* | hpux10* | hpux11*)
8886  # Give a soname corresponding to the major version so that dld.sl refuses to
8887  # link against other versions.
8888  version_type=sunos
8889  need_lib_prefix=no
8890  need_version=no
8891  case $host_cpu in
8892  ia64*)
8893    shrext_cmds='.so'
8894    hardcode_into_libs=yes
8895    dynamic_linker="$host_os dld.so"
8896    shlibpath_var=LD_LIBRARY_PATH
8897    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8899    soname_spec='${libname}${release}${shared_ext}$major'
8900    if test "X$HPUX_IA64_MODE" = X32; then
8901      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8902    else
8903      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8904    fi
8905    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8906    ;;
8907   hppa*64*)
8908     shrext_cmds='.sl'
8909     hardcode_into_libs=yes
8910     dynamic_linker="$host_os dld.sl"
8911     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8912     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914     soname_spec='${libname}${release}${shared_ext}$major'
8915     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8917     ;;
8918   *)
8919    shrext_cmds='.sl'
8920    dynamic_linker="$host_os dld.sl"
8921    shlibpath_var=SHLIB_PATH
8922    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8923    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924    soname_spec='${libname}${release}${shared_ext}$major'
8925    ;;
8926  esac
8927  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8928  postinstall_cmds='chmod 555 $lib'
8929  ;;
8930
8931irix5* | irix6* | nonstopux*)
8932  case $host_os in
8933    nonstopux*) version_type=nonstopux ;;
8934    *)
8935	if test "$lt_cv_prog_gnu_ld" = yes; then
8936		version_type=linux
8937	else
8938		version_type=irix
8939	fi ;;
8940  esac
8941  need_lib_prefix=no
8942  need_version=no
8943  soname_spec='${libname}${release}${shared_ext}$major'
8944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8945  case $host_os in
8946  irix5* | nonstopux*)
8947    libsuff= shlibsuff=
8948    ;;
8949  *)
8950    case $LD in # libtool.m4 will add one of these switches to LD
8951    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8952      libsuff= shlibsuff= libmagic=32-bit;;
8953    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8954      libsuff=32 shlibsuff=N32 libmagic=N32;;
8955    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8956      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8957    *) libsuff= shlibsuff= libmagic=never-match;;
8958    esac
8959    ;;
8960  esac
8961  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8962  shlibpath_overrides_runpath=no
8963  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8964  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8965  hardcode_into_libs=yes
8966  ;;
8967
8968# No shared lib support for Linux oldld, aout, or coff.
8969linux*oldld* | linux*aout* | linux*coff*)
8970  dynamic_linker=no
8971  ;;
8972
8973# This must be Linux ELF.
8974linux*)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8981  shlibpath_var=LD_LIBRARY_PATH
8982  shlibpath_overrides_runpath=no
8983  # This implies no fast_install, which is unacceptable.
8984  # Some rework will be needed to allow for fast_install
8985  # before this can be enabled.
8986  hardcode_into_libs=yes
8987
8988  # Append ld.so.conf contents to the search path
8989  if test -f /etc/ld.so.conf; then
8990    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8991    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8992  fi
8993
8994  # We used to test for /lib/ld.so.1 and disable shared libraries on
8995  # powerpc, because MkLinux only supported shared libraries with the
8996  # GNU dynamic linker.  Since this was broken with cross compilers,
8997  # most powerpc-linux boxes support dynamic linking these days and
8998  # people can always --disable-shared, the test was removed, and we
8999  # assume the GNU/Linux dynamic linker is in use.
9000  dynamic_linker='GNU/Linux ld.so'
9001  ;;
9002
9003knetbsd*-gnu)
9004  version_type=linux
9005  need_lib_prefix=no
9006  need_version=no
9007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9008  soname_spec='${libname}${release}${shared_ext}$major'
9009  shlibpath_var=LD_LIBRARY_PATH
9010  shlibpath_overrides_runpath=no
9011  hardcode_into_libs=yes
9012  dynamic_linker='GNU ld.so'
9013  ;;
9014
9015netbsd*)
9016  version_type=sunos
9017  need_lib_prefix=no
9018  need_version=no
9019  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9021    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9022    dynamic_linker='NetBSD (a.out) ld.so'
9023  else
9024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9025    soname_spec='${libname}${release}${shared_ext}$major'
9026    dynamic_linker='NetBSD ld.elf_so'
9027  fi
9028  shlibpath_var=LD_LIBRARY_PATH
9029  shlibpath_overrides_runpath=yes
9030  hardcode_into_libs=yes
9031  ;;
9032
9033newsos6)
9034  version_type=linux
9035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036  shlibpath_var=LD_LIBRARY_PATH
9037  shlibpath_overrides_runpath=yes
9038  ;;
9039
9040nto-qnx*)
9041  version_type=linux
9042  need_lib_prefix=no
9043  need_version=no
9044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045  soname_spec='${libname}${release}${shared_ext}$major'
9046  shlibpath_var=LD_LIBRARY_PATH
9047  shlibpath_overrides_runpath=yes
9048  ;;
9049
9050openbsd*)
9051  version_type=sunos
9052  need_lib_prefix=no
9053  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9054  case $host_os in
9055    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9056    *)                         need_version=no  ;;
9057  esac
9058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060  shlibpath_var=LD_LIBRARY_PATH
9061  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9062    case $host_os in
9063      openbsd2.[89] | openbsd2.[89].*)
9064	shlibpath_overrides_runpath=no
9065	;;
9066      *)
9067	shlibpath_overrides_runpath=yes
9068	;;
9069      esac
9070  else
9071    shlibpath_overrides_runpath=yes
9072  fi
9073  ;;
9074
9075os2*)
9076  libname_spec='$name'
9077  shrext_cmds=".dll"
9078  need_lib_prefix=no
9079  library_names_spec='$libname${shared_ext} $libname.a'
9080  dynamic_linker='OS/2 ld.exe'
9081  shlibpath_var=LIBPATH
9082  ;;
9083
9084osf3* | osf4* | osf5*)
9085  version_type=osf
9086  need_lib_prefix=no
9087  need_version=no
9088  soname_spec='${libname}${release}${shared_ext}$major'
9089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090  shlibpath_var=LD_LIBRARY_PATH
9091  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9092  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9093  ;;
9094
9095sco3.2v5*)
9096  version_type=osf
9097  soname_spec='${libname}${release}${shared_ext}$major'
9098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099  shlibpath_var=LD_LIBRARY_PATH
9100  ;;
9101
9102solaris*)
9103  version_type=linux
9104  need_lib_prefix=no
9105  need_version=no
9106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107  soname_spec='${libname}${release}${shared_ext}$major'
9108  shlibpath_var=LD_LIBRARY_PATH
9109  shlibpath_overrides_runpath=yes
9110  hardcode_into_libs=yes
9111  # ldd complains unless libraries are executable
9112  postinstall_cmds='chmod +x $lib'
9113  ;;
9114
9115sunos4*)
9116  version_type=sunos
9117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9118  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9119  shlibpath_var=LD_LIBRARY_PATH
9120  shlibpath_overrides_runpath=yes
9121  if test "$with_gnu_ld" = yes; then
9122    need_lib_prefix=no
9123  fi
9124  need_version=yes
9125  ;;
9126
9127sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9128  version_type=linux
9129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130  soname_spec='${libname}${release}${shared_ext}$major'
9131  shlibpath_var=LD_LIBRARY_PATH
9132  case $host_vendor in
9133    sni)
9134      shlibpath_overrides_runpath=no
9135      need_lib_prefix=no
9136      export_dynamic_flag_spec='${wl}-Blargedynsym'
9137      runpath_var=LD_RUN_PATH
9138      ;;
9139    siemens)
9140      need_lib_prefix=no
9141      ;;
9142    motorola)
9143      need_lib_prefix=no
9144      need_version=no
9145      shlibpath_overrides_runpath=no
9146      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9147      ;;
9148  esac
9149  ;;
9150
9151sysv4*MP*)
9152  if test -d /usr/nec ;then
9153    version_type=linux
9154    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9155    soname_spec='$libname${shared_ext}.$major'
9156    shlibpath_var=LD_LIBRARY_PATH
9157  fi
9158  ;;
9159
9160uts4*)
9161  version_type=linux
9162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163  soname_spec='${libname}${release}${shared_ext}$major'
9164  shlibpath_var=LD_LIBRARY_PATH
9165  ;;
9166
9167*)
9168  dynamic_linker=no
9169  ;;
9170esac
9171echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9172echo "${ECHO_T}$dynamic_linker" >&6
9173test "$dynamic_linker" = no && can_build_shared=no
9174
9175echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9177hardcode_action=
9178if test -n "$hardcode_libdir_flag_spec" || \
9179   test -n "$runpath_var" || \
9180   test "X$hardcode_automatic" = "Xyes" ; then
9181
9182  # We can hardcode non-existant directories.
9183  if test "$hardcode_direct" != no &&
9184     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9185     # have to relink, otherwise we might link with an installed library
9186     # when we should be linking with a yet-to-be-installed one
9187     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9188     test "$hardcode_minus_L" != no; then
9189    # Linking always hardcodes the temporary library directory.
9190    hardcode_action=relink
9191  else
9192    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9193    hardcode_action=immediate
9194  fi
9195else
9196  # We cannot hardcode anything, or else we can only hardcode existing
9197  # directories.
9198  hardcode_action=unsupported
9199fi
9200echo "$as_me:$LINENO: result: $hardcode_action" >&5
9201echo "${ECHO_T}$hardcode_action" >&6
9202
9203if test "$hardcode_action" = relink; then
9204  # Fast installation is not supported
9205  enable_fast_install=no
9206elif test "$shlibpath_overrides_runpath" = yes ||
9207     test "$enable_shared" = no; then
9208  # Fast installation is not necessary
9209  enable_fast_install=needless
9210fi
9211
9212striplib=
9213old_striplib=
9214echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9215echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9216if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9217  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9218  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9219  echo "$as_me:$LINENO: result: yes" >&5
9220echo "${ECHO_T}yes" >&6
9221else
9222# FIXME - insert some real tests, host_os isn't really good enough
9223  case $host_os in
9224   darwin*)
9225       if test -n "$STRIP" ; then
9226         striplib="$STRIP -x"
9227         echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229       else
9230  echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232fi
9233       ;;
9234   *)
9235  echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
9237    ;;
9238  esac
9239fi
9240
9241if test "x$enable_dlopen" != xyes; then
9242  enable_dlopen=unknown
9243  enable_dlopen_self=unknown
9244  enable_dlopen_self_static=unknown
9245else
9246  lt_cv_dlopen=no
9247  lt_cv_dlopen_libs=
9248
9249  case $host_os in
9250  beos*)
9251    lt_cv_dlopen="load_add_on"
9252    lt_cv_dlopen_libs=
9253    lt_cv_dlopen_self=yes
9254    ;;
9255
9256  mingw* | pw32*)
9257    lt_cv_dlopen="LoadLibrary"
9258    lt_cv_dlopen_libs=
9259   ;;
9260
9261  cygwin*)
9262    lt_cv_dlopen="dlopen"
9263    lt_cv_dlopen_libs=
9264   ;;
9265
9266  darwin*)
9267  # if libdl is installed we need to link against it
9268    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9271  echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273  ac_check_lib_save_LIBS=$LIBS
9274LIBS="-ldl  $LIBS"
9275cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h.  */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h.  */
9281
9282/* Override any gcc2 internal prototype to avoid an error.  */
9283#ifdef __cplusplus
9284extern "C"
9285#endif
9286/* We use char because int might match the return type of a gcc2
9287   builtin and then its argument prototype would still apply.  */
9288char dlopen ();
9289#ifdef F77_DUMMY_MAIN
9290
9291#  ifdef __cplusplus
9292     extern "C"
9293#  endif
9294   int F77_DUMMY_MAIN() { return 1; }
9295
9296#endif
9297int
9298main ()
9299{
9300dlopen ();
9301  ;
9302  return 0;
9303}
9304_ACEOF
9305rm -f conftest.$ac_objext conftest$ac_exeext
9306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307  (eval $ac_link) 2>conftest.er1
9308  ac_status=$?
9309  grep -v '^ *+' conftest.er1 >conftest.err
9310  rm -f conftest.er1
9311  cat conftest.err >&5
9312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313  (exit $ac_status); } &&
9314	 { ac_try='test -z "$ac_c_werror_flag"
9315			 || test ! -s conftest.err'
9316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317  (eval $ac_try) 2>&5
9318  ac_status=$?
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); }; } &&
9321	 { ac_try='test -s conftest$ac_exeext'
9322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323  (eval $ac_try) 2>&5
9324  ac_status=$?
9325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326  (exit $ac_status); }; }; then
9327  ac_cv_lib_dl_dlopen=yes
9328else
9329  echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332ac_cv_lib_dl_dlopen=no
9333fi
9334rm -f conftest.err conftest.$ac_objext \
9335      conftest$ac_exeext conftest.$ac_ext
9336LIBS=$ac_check_lib_save_LIBS
9337fi
9338echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9339echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9340if test $ac_cv_lib_dl_dlopen = yes; then
9341  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9342else
9343
9344    lt_cv_dlopen="dyld"
9345    lt_cv_dlopen_libs=
9346    lt_cv_dlopen_self=yes
9347
9348fi
9349
9350   ;;
9351
9352  haiku*)
9353    lt_cv_dlopen="load_add_on"
9354    lt_cv_dlopen_libs=
9355    lt_cv_dlopen_self=yes
9356    ;;
9357
9358  *)
9359    echo "$as_me:$LINENO: checking for shl_load" >&5
9360echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9361if test "${ac_cv_func_shl_load+set}" = set; then
9362  echo $ECHO_N "(cached) $ECHO_C" >&6
9363else
9364  cat >conftest.$ac_ext <<_ACEOF
9365/* confdefs.h.  */
9366_ACEOF
9367cat confdefs.h >>conftest.$ac_ext
9368cat >>conftest.$ac_ext <<_ACEOF
9369/* end confdefs.h.  */
9370/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9371   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9372#define shl_load innocuous_shl_load
9373
9374/* System header to define __stub macros and hopefully few prototypes,
9375    which can conflict with char shl_load (); below.
9376    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9377    <limits.h> exists even on freestanding compilers.  */
9378
9379#ifdef __STDC__
9380# include <limits.h>
9381#else
9382# include <assert.h>
9383#endif
9384
9385#undef shl_load
9386
9387/* Override any gcc2 internal prototype to avoid an error.  */
9388#ifdef __cplusplus
9389extern "C"
9390{
9391#endif
9392/* We use char because int might match the return type of a gcc2
9393   builtin and then its argument prototype would still apply.  */
9394char shl_load ();
9395/* The GNU C library defines this for functions which it implements
9396    to always fail with ENOSYS.  Some functions are actually named
9397    something starting with __ and the normal name is an alias.  */
9398#if defined (__stub_shl_load) || defined (__stub___shl_load)
9399choke me
9400#else
9401char (*f) () = shl_load;
9402#endif
9403#ifdef __cplusplus
9404}
9405#endif
9406
9407#ifdef F77_DUMMY_MAIN
9408
9409#  ifdef __cplusplus
9410     extern "C"
9411#  endif
9412   int F77_DUMMY_MAIN() { return 1; }
9413
9414#endif
9415int
9416main ()
9417{
9418return f != shl_load;
9419  ;
9420  return 0;
9421}
9422_ACEOF
9423rm -f conftest.$ac_objext conftest$ac_exeext
9424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425  (eval $ac_link) 2>conftest.er1
9426  ac_status=$?
9427  grep -v '^ *+' conftest.er1 >conftest.err
9428  rm -f conftest.er1
9429  cat conftest.err >&5
9430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431  (exit $ac_status); } &&
9432	 { ac_try='test -z "$ac_c_werror_flag"
9433			 || test ! -s conftest.err'
9434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435  (eval $ac_try) 2>&5
9436  ac_status=$?
9437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438  (exit $ac_status); }; } &&
9439	 { ac_try='test -s conftest$ac_exeext'
9440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441  (eval $ac_try) 2>&5
9442  ac_status=$?
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); }; }; then
9445  ac_cv_func_shl_load=yes
9446else
9447  echo "$as_me: failed program was:" >&5
9448sed 's/^/| /' conftest.$ac_ext >&5
9449
9450ac_cv_func_shl_load=no
9451fi
9452rm -f conftest.err conftest.$ac_objext \
9453      conftest$ac_exeext conftest.$ac_ext
9454fi
9455echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9456echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9457if test $ac_cv_func_shl_load = yes; then
9458  lt_cv_dlopen="shl_load"
9459else
9460  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9461echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9462if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9463  echo $ECHO_N "(cached) $ECHO_C" >&6
9464else
9465  ac_check_lib_save_LIBS=$LIBS
9466LIBS="-ldld  $LIBS"
9467cat >conftest.$ac_ext <<_ACEOF
9468/* confdefs.h.  */
9469_ACEOF
9470cat confdefs.h >>conftest.$ac_ext
9471cat >>conftest.$ac_ext <<_ACEOF
9472/* end confdefs.h.  */
9473
9474/* Override any gcc2 internal prototype to avoid an error.  */
9475#ifdef __cplusplus
9476extern "C"
9477#endif
9478/* We use char because int might match the return type of a gcc2
9479   builtin and then its argument prototype would still apply.  */
9480char shl_load ();
9481#ifdef F77_DUMMY_MAIN
9482
9483#  ifdef __cplusplus
9484     extern "C"
9485#  endif
9486   int F77_DUMMY_MAIN() { return 1; }
9487
9488#endif
9489int
9490main ()
9491{
9492shl_load ();
9493  ;
9494  return 0;
9495}
9496_ACEOF
9497rm -f conftest.$ac_objext conftest$ac_exeext
9498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499  (eval $ac_link) 2>conftest.er1
9500  ac_status=$?
9501  grep -v '^ *+' conftest.er1 >conftest.err
9502  rm -f conftest.er1
9503  cat conftest.err >&5
9504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505  (exit $ac_status); } &&
9506	 { ac_try='test -z "$ac_c_werror_flag"
9507			 || test ! -s conftest.err'
9508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509  (eval $ac_try) 2>&5
9510  ac_status=$?
9511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512  (exit $ac_status); }; } &&
9513	 { ac_try='test -s conftest$ac_exeext'
9514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515  (eval $ac_try) 2>&5
9516  ac_status=$?
9517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518  (exit $ac_status); }; }; then
9519  ac_cv_lib_dld_shl_load=yes
9520else
9521  echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524ac_cv_lib_dld_shl_load=no
9525fi
9526rm -f conftest.err conftest.$ac_objext \
9527      conftest$ac_exeext conftest.$ac_ext
9528LIBS=$ac_check_lib_save_LIBS
9529fi
9530echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9531echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9532if test $ac_cv_lib_dld_shl_load = yes; then
9533  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9534else
9535  echo "$as_me:$LINENO: checking for dlopen" >&5
9536echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9537if test "${ac_cv_func_dlopen+set}" = set; then
9538  echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540  cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h.  */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h.  */
9546/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9547   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9548#define dlopen innocuous_dlopen
9549
9550/* System header to define __stub macros and hopefully few prototypes,
9551    which can conflict with char dlopen (); below.
9552    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553    <limits.h> exists even on freestanding compilers.  */
9554
9555#ifdef __STDC__
9556# include <limits.h>
9557#else
9558# include <assert.h>
9559#endif
9560
9561#undef dlopen
9562
9563/* Override any gcc2 internal prototype to avoid an error.  */
9564#ifdef __cplusplus
9565extern "C"
9566{
9567#endif
9568/* We use char because int might match the return type of a gcc2
9569   builtin and then its argument prototype would still apply.  */
9570char dlopen ();
9571/* The GNU C library defines this for functions which it implements
9572    to always fail with ENOSYS.  Some functions are actually named
9573    something starting with __ and the normal name is an alias.  */
9574#if defined (__stub_dlopen) || defined (__stub___dlopen)
9575choke me
9576#else
9577char (*f) () = dlopen;
9578#endif
9579#ifdef __cplusplus
9580}
9581#endif
9582
9583#ifdef F77_DUMMY_MAIN
9584
9585#  ifdef __cplusplus
9586     extern "C"
9587#  endif
9588   int F77_DUMMY_MAIN() { return 1; }
9589
9590#endif
9591int
9592main ()
9593{
9594return f != dlopen;
9595  ;
9596  return 0;
9597}
9598_ACEOF
9599rm -f conftest.$ac_objext conftest$ac_exeext
9600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601  (eval $ac_link) 2>conftest.er1
9602  ac_status=$?
9603  grep -v '^ *+' conftest.er1 >conftest.err
9604  rm -f conftest.er1
9605  cat conftest.err >&5
9606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); } &&
9608	 { ac_try='test -z "$ac_c_werror_flag"
9609			 || test ! -s conftest.err'
9610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611  (eval $ac_try) 2>&5
9612  ac_status=$?
9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); }; } &&
9615	 { ac_try='test -s conftest$ac_exeext'
9616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617  (eval $ac_try) 2>&5
9618  ac_status=$?
9619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620  (exit $ac_status); }; }; then
9621  ac_cv_func_dlopen=yes
9622else
9623  echo "$as_me: failed program was:" >&5
9624sed 's/^/| /' conftest.$ac_ext >&5
9625
9626ac_cv_func_dlopen=no
9627fi
9628rm -f conftest.err conftest.$ac_objext \
9629      conftest$ac_exeext conftest.$ac_ext
9630fi
9631echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9632echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9633if test $ac_cv_func_dlopen = yes; then
9634  lt_cv_dlopen="dlopen"
9635else
9636  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9637echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9639  echo $ECHO_N "(cached) $ECHO_C" >&6
9640else
9641  ac_check_lib_save_LIBS=$LIBS
9642LIBS="-ldl  $LIBS"
9643cat >conftest.$ac_ext <<_ACEOF
9644/* confdefs.h.  */
9645_ACEOF
9646cat confdefs.h >>conftest.$ac_ext
9647cat >>conftest.$ac_ext <<_ACEOF
9648/* end confdefs.h.  */
9649
9650/* Override any gcc2 internal prototype to avoid an error.  */
9651#ifdef __cplusplus
9652extern "C"
9653#endif
9654/* We use char because int might match the return type of a gcc2
9655   builtin and then its argument prototype would still apply.  */
9656char dlopen ();
9657#ifdef F77_DUMMY_MAIN
9658
9659#  ifdef __cplusplus
9660     extern "C"
9661#  endif
9662   int F77_DUMMY_MAIN() { return 1; }
9663
9664#endif
9665int
9666main ()
9667{
9668dlopen ();
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
9674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675  (eval $ac_link) 2>conftest.er1
9676  ac_status=$?
9677  grep -v '^ *+' conftest.er1 >conftest.err
9678  rm -f conftest.er1
9679  cat conftest.err >&5
9680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681  (exit $ac_status); } &&
9682	 { ac_try='test -z "$ac_c_werror_flag"
9683			 || test ! -s conftest.err'
9684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685  (eval $ac_try) 2>&5
9686  ac_status=$?
9687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688  (exit $ac_status); }; } &&
9689	 { ac_try='test -s conftest$ac_exeext'
9690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691  (eval $ac_try) 2>&5
9692  ac_status=$?
9693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694  (exit $ac_status); }; }; then
9695  ac_cv_lib_dl_dlopen=yes
9696else
9697  echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700ac_cv_lib_dl_dlopen=no
9701fi
9702rm -f conftest.err conftest.$ac_objext \
9703      conftest$ac_exeext conftest.$ac_ext
9704LIBS=$ac_check_lib_save_LIBS
9705fi
9706echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9707echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9708if test $ac_cv_lib_dl_dlopen = yes; then
9709  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9710else
9711  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9712echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9713if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9714  echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716  ac_check_lib_save_LIBS=$LIBS
9717LIBS="-lsvld  $LIBS"
9718cat >conftest.$ac_ext <<_ACEOF
9719/* confdefs.h.  */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h.  */
9724
9725/* Override any gcc2 internal prototype to avoid an error.  */
9726#ifdef __cplusplus
9727extern "C"
9728#endif
9729/* We use char because int might match the return type of a gcc2
9730   builtin and then its argument prototype would still apply.  */
9731char dlopen ();
9732#ifdef F77_DUMMY_MAIN
9733
9734#  ifdef __cplusplus
9735     extern "C"
9736#  endif
9737   int F77_DUMMY_MAIN() { return 1; }
9738
9739#endif
9740int
9741main ()
9742{
9743dlopen ();
9744  ;
9745  return 0;
9746}
9747_ACEOF
9748rm -f conftest.$ac_objext conftest$ac_exeext
9749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750  (eval $ac_link) 2>conftest.er1
9751  ac_status=$?
9752  grep -v '^ *+' conftest.er1 >conftest.err
9753  rm -f conftest.er1
9754  cat conftest.err >&5
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); } &&
9757	 { ac_try='test -z "$ac_c_werror_flag"
9758			 || test ! -s conftest.err'
9759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760  (eval $ac_try) 2>&5
9761  ac_status=$?
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); }; } &&
9764	 { ac_try='test -s conftest$ac_exeext'
9765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766  (eval $ac_try) 2>&5
9767  ac_status=$?
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); }; }; then
9770  ac_cv_lib_svld_dlopen=yes
9771else
9772  echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775ac_cv_lib_svld_dlopen=no
9776fi
9777rm -f conftest.err conftest.$ac_objext \
9778      conftest$ac_exeext conftest.$ac_ext
9779LIBS=$ac_check_lib_save_LIBS
9780fi
9781echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9782echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9783if test $ac_cv_lib_svld_dlopen = yes; then
9784  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9785else
9786  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9787echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9788if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9789  echo $ECHO_N "(cached) $ECHO_C" >&6
9790else
9791  ac_check_lib_save_LIBS=$LIBS
9792LIBS="-ldld  $LIBS"
9793cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h.  */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h.  */
9799
9800/* Override any gcc2 internal prototype to avoid an error.  */
9801#ifdef __cplusplus
9802extern "C"
9803#endif
9804/* We use char because int might match the return type of a gcc2
9805   builtin and then its argument prototype would still apply.  */
9806char dld_link ();
9807#ifdef F77_DUMMY_MAIN
9808
9809#  ifdef __cplusplus
9810     extern "C"
9811#  endif
9812   int F77_DUMMY_MAIN() { return 1; }
9813
9814#endif
9815int
9816main ()
9817{
9818dld_link ();
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825  (eval $ac_link) 2>conftest.er1
9826  ac_status=$?
9827  grep -v '^ *+' conftest.er1 >conftest.err
9828  rm -f conftest.er1
9829  cat conftest.err >&5
9830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831  (exit $ac_status); } &&
9832	 { ac_try='test -z "$ac_c_werror_flag"
9833			 || test ! -s conftest.err'
9834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835  (eval $ac_try) 2>&5
9836  ac_status=$?
9837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); }; } &&
9839	 { ac_try='test -s conftest$ac_exeext'
9840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841  (eval $ac_try) 2>&5
9842  ac_status=$?
9843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844  (exit $ac_status); }; }; then
9845  ac_cv_lib_dld_dld_link=yes
9846else
9847  echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850ac_cv_lib_dld_dld_link=no
9851fi
9852rm -f conftest.err conftest.$ac_objext \
9853      conftest$ac_exeext conftest.$ac_ext
9854LIBS=$ac_check_lib_save_LIBS
9855fi
9856echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9857echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9858if test $ac_cv_lib_dld_dld_link = yes; then
9859  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9860fi
9861
9862
9863fi
9864
9865
9866fi
9867
9868
9869fi
9870
9871
9872fi
9873
9874
9875fi
9876
9877    ;;
9878  esac
9879
9880  if test "x$lt_cv_dlopen" != xno; then
9881    enable_dlopen=yes
9882  else
9883    enable_dlopen=no
9884  fi
9885
9886  case $lt_cv_dlopen in
9887  dlopen)
9888    save_CPPFLAGS="$CPPFLAGS"
9889    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9890
9891    save_LDFLAGS="$LDFLAGS"
9892    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9893
9894    save_LIBS="$LIBS"
9895    LIBS="$lt_cv_dlopen_libs $LIBS"
9896
9897    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9898echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9899if test "${lt_cv_dlopen_self+set}" = set; then
9900  echo $ECHO_N "(cached) $ECHO_C" >&6
9901else
9902  	  if test "$cross_compiling" = yes; then :
9903  lt_cv_dlopen_self=cross
9904else
9905  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9906  lt_status=$lt_dlunknown
9907  cat > conftest.$ac_ext <<EOF
9908#line 9908 "configure"
9909#include "confdefs.h"
9910
9911#if HAVE_DLFCN_H
9912#include <dlfcn.h>
9913#endif
9914
9915#include <stdio.h>
9916
9917#ifdef RTLD_GLOBAL
9918#  define LT_DLGLOBAL		RTLD_GLOBAL
9919#else
9920#  ifdef DL_GLOBAL
9921#    define LT_DLGLOBAL		DL_GLOBAL
9922#  else
9923#    define LT_DLGLOBAL		0
9924#  endif
9925#endif
9926
9927/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9928   find out it does not work in some platform. */
9929#ifndef LT_DLLAZY_OR_NOW
9930#  ifdef RTLD_LAZY
9931#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9932#  else
9933#    ifdef DL_LAZY
9934#      define LT_DLLAZY_OR_NOW		DL_LAZY
9935#    else
9936#      ifdef RTLD_NOW
9937#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9938#      else
9939#        ifdef DL_NOW
9940#          define LT_DLLAZY_OR_NOW	DL_NOW
9941#        else
9942#          define LT_DLLAZY_OR_NOW	0
9943#        endif
9944#      endif
9945#    endif
9946#  endif
9947#endif
9948
9949#ifdef __cplusplus
9950extern "C" void exit (int);
9951#endif
9952
9953void fnord() { int i=42;}
9954int main ()
9955{
9956  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9957  int status = $lt_dlunknown;
9958
9959  if (self)
9960    {
9961      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9962      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9963      /* dlclose (self); */
9964    }
9965
9966    exit (status);
9967}
9968EOF
9969  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970  (eval $ac_link) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9974    (./conftest; exit; ) >&5 2>/dev/null
9975    lt_status=$?
9976    case x$lt_status in
9977      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9978      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9979      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9980    esac
9981  else :
9982    # compilation failed
9983    lt_cv_dlopen_self=no
9984  fi
9985fi
9986rm -fr conftest*
9987
9988
9989fi
9990echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9991echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9992
9993    if test "x$lt_cv_dlopen_self" = xyes; then
9994      LDFLAGS="$LDFLAGS $link_static_flag"
9995      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9996echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9997if test "${lt_cv_dlopen_self_static+set}" = set; then
9998  echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000  	  if test "$cross_compiling" = yes; then :
10001  lt_cv_dlopen_self_static=cross
10002else
10003  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10004  lt_status=$lt_dlunknown
10005  cat > conftest.$ac_ext <<EOF
10006#line 10006 "configure"
10007#include "confdefs.h"
10008
10009#if HAVE_DLFCN_H
10010#include <dlfcn.h>
10011#endif
10012
10013#include <stdio.h>
10014
10015#ifdef RTLD_GLOBAL
10016#  define LT_DLGLOBAL		RTLD_GLOBAL
10017#else
10018#  ifdef DL_GLOBAL
10019#    define LT_DLGLOBAL		DL_GLOBAL
10020#  else
10021#    define LT_DLGLOBAL		0
10022#  endif
10023#endif
10024
10025/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10026   find out it does not work in some platform. */
10027#ifndef LT_DLLAZY_OR_NOW
10028#  ifdef RTLD_LAZY
10029#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10030#  else
10031#    ifdef DL_LAZY
10032#      define LT_DLLAZY_OR_NOW		DL_LAZY
10033#    else
10034#      ifdef RTLD_NOW
10035#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10036#      else
10037#        ifdef DL_NOW
10038#          define LT_DLLAZY_OR_NOW	DL_NOW
10039#        else
10040#          define LT_DLLAZY_OR_NOW	0
10041#        endif
10042#      endif
10043#    endif
10044#  endif
10045#endif
10046
10047#ifdef __cplusplus
10048extern "C" void exit (int);
10049#endif
10050
10051void fnord() { int i=42;}
10052int main ()
10053{
10054  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10055  int status = $lt_dlunknown;
10056
10057  if (self)
10058    {
10059      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10060      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10061      /* dlclose (self); */
10062    }
10063
10064    exit (status);
10065}
10066EOF
10067  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068  (eval $ac_link) 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10072    (./conftest; exit; ) >&5 2>/dev/null
10073    lt_status=$?
10074    case x$lt_status in
10075      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10076      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10077      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10078    esac
10079  else :
10080    # compilation failed
10081    lt_cv_dlopen_self_static=no
10082  fi
10083fi
10084rm -fr conftest*
10085
10086
10087fi
10088echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10089echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10090    fi
10091
10092    CPPFLAGS="$save_CPPFLAGS"
10093    LDFLAGS="$save_LDFLAGS"
10094    LIBS="$save_LIBS"
10095    ;;
10096  esac
10097
10098  case $lt_cv_dlopen_self in
10099  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10100  *) enable_dlopen_self=unknown ;;
10101  esac
10102
10103  case $lt_cv_dlopen_self_static in
10104  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10105  *) enable_dlopen_self_static=unknown ;;
10106  esac
10107fi
10108
10109
10110# Report which librarie types wil actually be built
10111echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10112echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10113echo "$as_me:$LINENO: result: $can_build_shared" >&5
10114echo "${ECHO_T}$can_build_shared" >&6
10115
10116echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10117echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10118test "$can_build_shared" = "no" && enable_shared=no
10119
10120# On AIX, shared libraries and static libraries use the same namespace, and
10121# are all built from PIC.
10122case $host_os in
10123aix3*)
10124  test "$enable_shared" = yes && enable_static=no
10125  if test -n "$RANLIB"; then
10126    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10127    postinstall_cmds='$RANLIB $lib'
10128  fi
10129  ;;
10130
10131aix4* | aix5*)
10132  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10133    test "$enable_shared" = yes && enable_static=no
10134  fi
10135    ;;
10136esac
10137echo "$as_me:$LINENO: result: $enable_shared" >&5
10138echo "${ECHO_T}$enable_shared" >&6
10139
10140echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10141echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10142# Make sure either enable_shared or enable_static is yes.
10143test "$enable_shared" = yes || enable_static=yes
10144echo "$as_me:$LINENO: result: $enable_static" >&5
10145echo "${ECHO_T}$enable_static" >&6
10146
10147# The else clause should only fire when bootstrapping the
10148# libtool distribution, otherwise you forgot to ship ltmain.sh
10149# with your package, and you will get complaints that there are
10150# no rules to generate ltmain.sh.
10151if test -f "$ltmain"; then
10152  # See if we are running on zsh, and set the options which allow our commands through
10153  # without removal of \ escapes.
10154  if test -n "${ZSH_VERSION+set}" ; then
10155    setopt NO_GLOB_SUBST
10156  fi
10157  # Now quote all the things that may contain metacharacters while being
10158  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10159  # variables and quote the copies for generation of the libtool script.
10160  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10161    SED SHELL STRIP \
10162    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10163    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10164    deplibs_check_method reload_flag reload_cmds need_locks \
10165    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10166    lt_cv_sys_global_symbol_to_c_name_address \
10167    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10168    old_postinstall_cmds old_postuninstall_cmds \
10169    compiler \
10170    CC \
10171    LD \
10172    lt_prog_compiler_wl \
10173    lt_prog_compiler_pic \
10174    lt_prog_compiler_static \
10175    lt_prog_compiler_no_builtin_flag \
10176    export_dynamic_flag_spec \
10177    thread_safe_flag_spec \
10178    whole_archive_flag_spec \
10179    enable_shared_with_static_runtimes \
10180    old_archive_cmds \
10181    old_archive_from_new_cmds \
10182    predep_objects \
10183    postdep_objects \
10184    predeps \
10185    postdeps \
10186    compiler_lib_search_path \
10187    archive_cmds \
10188    archive_expsym_cmds \
10189    postinstall_cmds \
10190    postuninstall_cmds \
10191    old_archive_from_expsyms_cmds \
10192    allow_undefined_flag \
10193    no_undefined_flag \
10194    export_symbols_cmds \
10195    hardcode_libdir_flag_spec \
10196    hardcode_libdir_flag_spec_ld \
10197    hardcode_libdir_separator \
10198    hardcode_automatic \
10199    module_cmds \
10200    module_expsym_cmds \
10201    lt_cv_prog_compiler_c_o \
10202    exclude_expsyms \
10203    include_expsyms; do
10204
10205    case $var in
10206    old_archive_cmds | \
10207    old_archive_from_new_cmds | \
10208    archive_cmds | \
10209    archive_expsym_cmds | \
10210    module_cmds | \
10211    module_expsym_cmds | \
10212    old_archive_from_expsyms_cmds | \
10213    export_symbols_cmds | \
10214    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10215    postinstall_cmds | postuninstall_cmds | \
10216    old_postinstall_cmds | old_postuninstall_cmds | \
10217    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10218      # Double-quote double-evaled strings.
10219      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10220      ;;
10221    *)
10222      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10223      ;;
10224    esac
10225  done
10226
10227  case $lt_echo in
10228  *'\$0 --fallback-echo"')
10229    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10230    ;;
10231  esac
10232
10233cfgfile="${ofile}T"
10234  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10235  $rm -f "$cfgfile"
10236  { echo "$as_me:$LINENO: creating $ofile" >&5
10237echo "$as_me: creating $ofile" >&6;}
10238
10239  cat <<__EOF__ >> "$cfgfile"
10240#! $SHELL
10241
10242# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10243# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10244# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10245#
10246# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10247# Free Software Foundation, Inc.
10248#
10249# This file is part of GNU Libtool:
10250# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10251#
10252# This program is free software; you can redistribute it and/or modify
10253# it under the terms of the GNU General Public License as published by
10254# the Free Software Foundation; either version 2 of the License, or
10255# (at your option) any later version.
10256#
10257# This program is distributed in the hope that it will be useful, but
10258# WITHOUT ANY WARRANTY; without even the implied warranty of
10259# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10260# General Public License for more details.
10261#
10262# You should have received a copy of the GNU General Public License
10263# along with this program; if not, write to the Free Software
10264# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10265#
10266# As a special exception to the GNU General Public License, if you
10267# distribute this file as part of a program that contains a
10268# configuration script generated by Autoconf, you may include it under
10269# the same distribution terms that you use for the rest of that program.
10270
10271# A sed program that does not truncate output.
10272SED=$lt_SED
10273
10274# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10275Xsed="$SED -e 1s/^X//"
10276
10277# The HP-UX ksh and POSIX shell print the target directory to stdout
10278# if CDPATH is set.
10279(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10280
10281# The names of the tagged configurations supported by this script.
10282available_tags=
10283
10284# ### BEGIN LIBTOOL CONFIG
10285
10286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10287
10288# Shell to use when invoking shell scripts.
10289SHELL=$lt_SHELL
10290
10291# Whether or not to build shared libraries.
10292build_libtool_libs=$enable_shared
10293
10294# Whether or not to build static libraries.
10295build_old_libs=$enable_static
10296
10297# Whether or not to add -lc for building shared libraries.
10298build_libtool_need_lc=$archive_cmds_need_lc
10299
10300# Whether or not to disallow shared libs when runtime libs are static
10301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10302
10303# Whether or not to optimize for fast installation.
10304fast_install=$enable_fast_install
10305
10306# The host system.
10307host_alias=$host_alias
10308host=$host
10309host_os=$host_os
10310
10311# The build system.
10312build_alias=$build_alias
10313build=$build
10314build_os=$build_os
10315
10316# An echo program that does not interpret backslashes.
10317echo=$lt_echo
10318
10319# The archiver.
10320AR=$lt_AR
10321AR_FLAGS=$lt_AR_FLAGS
10322
10323# A C compiler.
10324LTCC=$lt_LTCC
10325
10326# A language-specific compiler.
10327CC=$lt_compiler
10328
10329# Is the compiler the GNU C compiler?
10330with_gcc=$GCC
10331
10332# An ERE matcher.
10333EGREP=$lt_EGREP
10334
10335# The linker used to build libraries.
10336LD=$lt_LD
10337
10338# Whether we need hard or soft links.
10339LN_S=$lt_LN_S
10340
10341# A BSD-compatible nm program.
10342NM=$lt_NM
10343
10344# A symbol stripping program
10345STRIP=$lt_STRIP
10346
10347# Used to examine libraries when file_magic_cmd begins "file"
10348MAGIC_CMD=$MAGIC_CMD
10349
10350# Used on cygwin: DLL creation program.
10351DLLTOOL="$DLLTOOL"
10352
10353# Used on cygwin: object dumper.
10354OBJDUMP="$OBJDUMP"
10355
10356# Used on cygwin: assembler.
10357AS="$AS"
10358
10359# The name of the directory that contains temporary libtool files.
10360objdir=$objdir
10361
10362# How to create reloadable object files.
10363reload_flag=$lt_reload_flag
10364reload_cmds=$lt_reload_cmds
10365
10366# How to pass a linker flag through the compiler.
10367wl=$lt_lt_prog_compiler_wl
10368
10369# Object file suffix (normally "o").
10370objext="$ac_objext"
10371
10372# Old archive suffix (normally "a").
10373libext="$libext"
10374
10375# Shared library suffix (normally ".so").
10376shrext_cmds='$shrext_cmds'
10377
10378# Executable file suffix (normally "").
10379exeext="$exeext"
10380
10381# Additional compiler flags for building library objects.
10382pic_flag=$lt_lt_prog_compiler_pic
10383pic_mode=$pic_mode
10384
10385# What is the maximum length of a command?
10386max_cmd_len=$lt_cv_sys_max_cmd_len
10387
10388# Does compiler simultaneously support -c and -o options?
10389compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10390
10391# Must we lock files when doing compilation?
10392need_locks=$lt_need_locks
10393
10394# Do we need the lib prefix for modules?
10395need_lib_prefix=$need_lib_prefix
10396
10397# Do we need a version for libraries?
10398need_version=$need_version
10399
10400# Whether dlopen is supported.
10401dlopen_support=$enable_dlopen
10402
10403# Whether dlopen of programs is supported.
10404dlopen_self=$enable_dlopen_self
10405
10406# Whether dlopen of statically linked programs is supported.
10407dlopen_self_static=$enable_dlopen_self_static
10408
10409# Compiler flag to prevent dynamic linking.
10410link_static_flag=$lt_lt_prog_compiler_static
10411
10412# Compiler flag to turn off builtin functions.
10413no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10414
10415# Compiler flag to allow reflexive dlopens.
10416export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10417
10418# Compiler flag to generate shared objects directly from archives.
10419whole_archive_flag_spec=$lt_whole_archive_flag_spec
10420
10421# Compiler flag to generate thread-safe objects.
10422thread_safe_flag_spec=$lt_thread_safe_flag_spec
10423
10424# Library versioning type.
10425version_type=$version_type
10426
10427# Format of library name prefix.
10428libname_spec=$lt_libname_spec
10429
10430# List of archive names.  First name is the real one, the rest are links.
10431# The last name is the one that the linker finds with -lNAME.
10432library_names_spec=$lt_library_names_spec
10433
10434# The coded name of the library, if different from the real name.
10435soname_spec=$lt_soname_spec
10436
10437# Commands used to build and install an old-style archive.
10438RANLIB=$lt_RANLIB
10439old_archive_cmds=$lt_old_archive_cmds
10440old_postinstall_cmds=$lt_old_postinstall_cmds
10441old_postuninstall_cmds=$lt_old_postuninstall_cmds
10442
10443# Create an old-style archive from a shared archive.
10444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10445
10446# Create a temporary old-style archive to link instead of a shared archive.
10447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10448
10449# Commands used to build and install a shared archive.
10450archive_cmds=$lt_archive_cmds
10451archive_expsym_cmds=$lt_archive_expsym_cmds
10452postinstall_cmds=$lt_postinstall_cmds
10453postuninstall_cmds=$lt_postuninstall_cmds
10454
10455# Commands used to build a loadable module (assumed same as above if empty)
10456module_cmds=$lt_module_cmds
10457module_expsym_cmds=$lt_module_expsym_cmds
10458
10459# Commands to strip libraries.
10460old_striplib=$lt_old_striplib
10461striplib=$lt_striplib
10462
10463# Dependencies to place before the objects being linked to create a
10464# shared library.
10465predep_objects=$lt_predep_objects
10466
10467# Dependencies to place after the objects being linked to create a
10468# shared library.
10469postdep_objects=$lt_postdep_objects
10470
10471# Dependencies to place before the objects being linked to create a
10472# shared library.
10473predeps=$lt_predeps
10474
10475# Dependencies to place after the objects being linked to create a
10476# shared library.
10477postdeps=$lt_postdeps
10478
10479# The library search path used internally by the compiler when linking
10480# a shared library.
10481compiler_lib_search_path=$lt_compiler_lib_search_path
10482
10483# Method to check whether dependent libraries are shared objects.
10484deplibs_check_method=$lt_deplibs_check_method
10485
10486# Command to use when deplibs_check_method == file_magic.
10487file_magic_cmd=$lt_file_magic_cmd
10488
10489# Flag that allows shared libraries with undefined symbols to be built.
10490allow_undefined_flag=$lt_allow_undefined_flag
10491
10492# Flag that forces no undefined symbols.
10493no_undefined_flag=$lt_no_undefined_flag
10494
10495# Commands used to finish a libtool library installation in a directory.
10496finish_cmds=$lt_finish_cmds
10497
10498# Same as above, but a single script fragment to be evaled but not shown.
10499finish_eval=$lt_finish_eval
10500
10501# Take the output of nm and produce a listing of raw symbols and C names.
10502global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10503
10504# Transform the output of nm in a proper C declaration
10505global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10506
10507# Transform the output of nm in a C name address pair
10508global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10509
10510# This is the shared library runtime path variable.
10511runpath_var=$runpath_var
10512
10513# This is the shared library path variable.
10514shlibpath_var=$shlibpath_var
10515
10516# Is shlibpath searched before the hard-coded library search path?
10517shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10518
10519# How to hardcode a shared library path into an executable.
10520hardcode_action=$hardcode_action
10521
10522# Whether we should hardcode library paths into libraries.
10523hardcode_into_libs=$hardcode_into_libs
10524
10525# Flag to hardcode \$libdir into a binary during linking.
10526# This must work even if \$libdir does not exist.
10527hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10528
10529# If ld is used when linking, flag to hardcode \$libdir into
10530# a binary during linking. This must work even if \$libdir does
10531# not exist.
10532hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10533
10534# Whether we need a single -rpath flag with a separated argument.
10535hardcode_libdir_separator=$lt_hardcode_libdir_separator
10536
10537# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10538# resulting binary.
10539hardcode_direct=$hardcode_direct
10540
10541# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10542# resulting binary.
10543hardcode_minus_L=$hardcode_minus_L
10544
10545# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10546# the resulting binary.
10547hardcode_shlibpath_var=$hardcode_shlibpath_var
10548
10549# Set to yes if building a shared library automatically hardcodes DIR into the library
10550# and all subsequent libraries and executables linked against it.
10551hardcode_automatic=$hardcode_automatic
10552
10553# Variables whose values should be saved in libtool wrapper scripts and
10554# restored at relink time.
10555variables_saved_for_relink="$variables_saved_for_relink"
10556
10557# Whether libtool must link a program against all its dependency libraries.
10558link_all_deplibs=$link_all_deplibs
10559
10560# Compile-time system search path for libraries
10561sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10562
10563# Run-time system search path for libraries
10564sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10565
10566# Fix the shell variable \$srcfile for the compiler.
10567fix_srcfile_path="$fix_srcfile_path"
10568
10569# Set to yes if exported symbols are required.
10570always_export_symbols=$always_export_symbols
10571
10572# The commands to list exported symbols.
10573export_symbols_cmds=$lt_export_symbols_cmds
10574
10575# The commands to extract the exported symbol list from a shared archive.
10576extract_expsyms_cmds=$lt_extract_expsyms_cmds
10577
10578# Symbols that should not be listed in the preloaded symbols.
10579exclude_expsyms=$lt_exclude_expsyms
10580
10581# Symbols that must always be exported.
10582include_expsyms=$lt_include_expsyms
10583
10584# ### END LIBTOOL CONFIG
10585
10586__EOF__
10587
10588
10589  case $host_os in
10590  aix3*)
10591    cat <<\EOF >> "$cfgfile"
10592
10593# AIX sometimes has problems with the GCC collect2 program.  For some
10594# reason, if we set the COLLECT_NAMES environment variable, the problems
10595# vanish in a puff of smoke.
10596if test "X${COLLECT_NAMES+set}" != Xset; then
10597  COLLECT_NAMES=
10598  export COLLECT_NAMES
10599fi
10600EOF
10601    ;;
10602  esac
10603
10604  # We use sed instead of cat because bash on DJGPP gets confused if
10605  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10606  # text mode, it properly converts lines to CR/LF.  This bash problem
10607  # is reportedly fixed, but why not run on old versions too?
10608  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10609
10610  mv -f "$cfgfile" "$ofile" || \
10611    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10612  chmod +x "$ofile"
10613
10614else
10615  # If there is no Makefile yet, we rely on a make rule to execute
10616  # `config.status --recheck' to rerun these tests and create the
10617  # libtool script then.
10618  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10619  if test -f "$ltmain_in"; then
10620    test -f Makefile && make "$ltmain"
10621  fi
10622fi
10623
10624
10625ac_ext=c
10626ac_cpp='$CPP $CPPFLAGS'
10627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10629ac_compiler_gnu=$ac_cv_c_compiler_gnu
10630
10631CC="$lt_save_CC"
10632
10633
10634# Check whether --with-tags or --without-tags was given.
10635if test "${with_tags+set}" = set; then
10636  withval="$with_tags"
10637  tagnames="$withval"
10638fi;
10639
10640if test -f "$ltmain" && test -n "$tagnames"; then
10641  if test ! -f "${ofile}"; then
10642    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10643echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10644  fi
10645
10646  if test -z "$LTCC"; then
10647    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10648    if test -z "$LTCC"; then
10649      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10650echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10651    else
10652      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10653echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10654    fi
10655  fi
10656
10657  # Extract list of available tagged configurations in $ofile.
10658  # Note that this assumes the entire list is on one line.
10659  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10660
10661  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10662  for tagname in $tagnames; do
10663    IFS="$lt_save_ifs"
10664    # Check whether tagname contains only valid characters
10665    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10666    "") ;;
10667    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10668echo "$as_me: error: invalid tag name: $tagname" >&2;}
10669   { (exit 1); exit 1; }; }
10670	;;
10671    esac
10672
10673    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10674    then
10675      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10676echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10677   { (exit 1); exit 1; }; }
10678    fi
10679
10680    # Update the list of available tags.
10681    if test -n "$tagname"; then
10682      echo appending configuration tag \"$tagname\" to $ofile
10683
10684      case $tagname in
10685      CXX)
10686	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10687	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10688	    (test "X$CXX" != "Xg++"))) ; then
10689	  ac_ext=cc
10690ac_cpp='$CXXCPP $CPPFLAGS'
10691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10694
10695
10696
10697
10698archive_cmds_need_lc_CXX=no
10699allow_undefined_flag_CXX=
10700always_export_symbols_CXX=no
10701archive_expsym_cmds_CXX=
10702export_dynamic_flag_spec_CXX=
10703hardcode_direct_CXX=no
10704hardcode_libdir_flag_spec_CXX=
10705hardcode_libdir_flag_spec_ld_CXX=
10706hardcode_libdir_separator_CXX=
10707hardcode_minus_L_CXX=no
10708hardcode_automatic_CXX=no
10709module_cmds_CXX=
10710module_expsym_cmds_CXX=
10711link_all_deplibs_CXX=unknown
10712old_archive_cmds_CXX=$old_archive_cmds
10713no_undefined_flag_CXX=
10714whole_archive_flag_spec_CXX=
10715enable_shared_with_static_runtimes_CXX=no
10716
10717# Dependencies to place before and after the object being linked:
10718predep_objects_CXX=
10719postdep_objects_CXX=
10720predeps_CXX=
10721postdeps_CXX=
10722compiler_lib_search_path_CXX=
10723
10724# Source file extension for C++ test sources.
10725ac_ext=cpp
10726
10727# Object file extension for compiled C++ test sources.
10728objext=o
10729objext_CXX=$objext
10730
10731# Code to be used in simple compile tests
10732lt_simple_compile_test_code="int some_variable = 0;\n"
10733
10734# Code to be used in simple link tests
10735lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10736
10737# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10738
10739# If no C compiler was specified, use CC.
10740LTCC=${LTCC-"$CC"}
10741
10742# Allow CC to be a program name with arguments.
10743compiler=$CC
10744
10745
10746# save warnings/boilerplate of simple test code
10747ac_outfile=conftest.$ac_objext
10748printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10750_lt_compiler_boilerplate=`cat conftest.err`
10751$rm conftest*
10752
10753ac_outfile=conftest.$ac_objext
10754printf "$lt_simple_link_test_code" >conftest.$ac_ext
10755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10756_lt_linker_boilerplate=`cat conftest.err`
10757$rm conftest*
10758
10759
10760# Allow CC to be a program name with arguments.
10761lt_save_CC=$CC
10762lt_save_LD=$LD
10763lt_save_GCC=$GCC
10764GCC=$GXX
10765lt_save_with_gnu_ld=$with_gnu_ld
10766lt_save_path_LD=$lt_cv_path_LD
10767if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10768  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10769else
10770  unset lt_cv_prog_gnu_ld
10771fi
10772if test -n "${lt_cv_path_LDCXX+set}"; then
10773  lt_cv_path_LD=$lt_cv_path_LDCXX
10774else
10775  unset lt_cv_path_LD
10776fi
10777test -z "${LDCXX+set}" || LD=$LDCXX
10778CC=${CXX-"c++"}
10779compiler=$CC
10780compiler_CXX=$CC
10781for cc_temp in $compiler""; do
10782  case $cc_temp in
10783    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10784    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10785    \-*) ;;
10786    *) break;;
10787  esac
10788done
10789cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10790
10791
10792# We don't want -fno-exception wen compiling C++ code, so set the
10793# no_builtin_flag separately
10794if test "$GXX" = yes; then
10795  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10796else
10797  lt_prog_compiler_no_builtin_flag_CXX=
10798fi
10799
10800if test "$GXX" = yes; then
10801  # Set up default GNU C++ configuration
10802
10803
10804# Check whether --with-gnu-ld or --without-gnu-ld was given.
10805if test "${with_gnu_ld+set}" = set; then
10806  withval="$with_gnu_ld"
10807  test "$withval" = no || with_gnu_ld=yes
10808else
10809  with_gnu_ld=no
10810fi;
10811ac_prog=ld
10812if test "$GCC" = yes; then
10813  # Check if gcc -print-prog-name=ld gives a path.
10814  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10815echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10816  case $host in
10817  *-*-mingw*)
10818    # gcc leaves a trailing carriage return which upsets mingw
10819    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10820  *)
10821    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10822  esac
10823  case $ac_prog in
10824    # Accept absolute paths.
10825    [\\/]* | ?:[\\/]*)
10826      re_direlt='/[^/][^/]*/\.\./'
10827      # Canonicalize the pathname of ld
10828      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10829      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10830	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10831      done
10832      test -z "$LD" && LD="$ac_prog"
10833      ;;
10834  "")
10835    # If it fails, then pretend we aren't using GCC.
10836    ac_prog=ld
10837    ;;
10838  *)
10839    # If it is relative, then search for the first ld in PATH.
10840    with_gnu_ld=unknown
10841    ;;
10842  esac
10843elif test "$with_gnu_ld" = yes; then
10844  echo "$as_me:$LINENO: checking for GNU ld" >&5
10845echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10846else
10847  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10848echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10849fi
10850if test "${lt_cv_path_LD+set}" = set; then
10851  echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853  if test -z "$LD"; then
10854  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10855  for ac_dir in $PATH; do
10856    IFS="$lt_save_ifs"
10857    test -z "$ac_dir" && ac_dir=.
10858    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10859      lt_cv_path_LD="$ac_dir/$ac_prog"
10860      # Check to see if the program is GNU ld.  I'd rather use --version,
10861      # but apparently some variants of GNU ld only accept -v.
10862      # Break only if it was the GNU/non-GNU ld that we prefer.
10863      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10864      *GNU* | *'with BFD'*)
10865	test "$with_gnu_ld" != no && break
10866	;;
10867      *)
10868	test "$with_gnu_ld" != yes && break
10869	;;
10870      esac
10871    fi
10872  done
10873  IFS="$lt_save_ifs"
10874else
10875  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10876fi
10877fi
10878
10879LD="$lt_cv_path_LD"
10880if test -n "$LD"; then
10881  echo "$as_me:$LINENO: result: $LD" >&5
10882echo "${ECHO_T}$LD" >&6
10883else
10884  echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6
10886fi
10887test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10888echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10889   { (exit 1); exit 1; }; }
10890echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10891echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10892if test "${lt_cv_prog_gnu_ld+set}" = set; then
10893  echo $ECHO_N "(cached) $ECHO_C" >&6
10894else
10895  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10896case `$LD -v 2>&1 </dev/null` in
10897*GNU* | *'with BFD'*)
10898  lt_cv_prog_gnu_ld=yes
10899  ;;
10900*)
10901  lt_cv_prog_gnu_ld=no
10902  ;;
10903esac
10904fi
10905echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10906echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10907with_gnu_ld=$lt_cv_prog_gnu_ld
10908
10909
10910
10911  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10912  # archiving commands below assume that GNU ld is being used.
10913  if test "$with_gnu_ld" = yes; then
10914    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10915    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'
10916
10917    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10918    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10919
10920    # If archive_cmds runs LD, not CC, wlarc should be empty
10921    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10922    #     investigate it a little bit more. (MM)
10923    wlarc='${wl}'
10924
10925    # ancient GNU ld didn't support --whole-archive et. al.
10926    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10927	grep 'no-whole-archive' > /dev/null; then
10928      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10929    else
10930      whole_archive_flag_spec_CXX=
10931    fi
10932  else
10933    with_gnu_ld=no
10934    wlarc=
10935
10936    # A generic and very simple default shared library creation
10937    # command for GNU C++ for the case where it uses the native
10938    # linker, instead of GNU ld.  If possible, this setting should
10939    # overridden to take advantage of the native linker features on
10940    # the platform it is being used on.
10941    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10942  fi
10943
10944  # Commands to make compiler produce verbose output that lists
10945  # what "hidden" libraries, object files and flags are used when
10946  # linking a shared library.
10947  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10948
10949else
10950  GXX=no
10951  with_gnu_ld=no
10952  wlarc=
10953fi
10954
10955# PORTME: fill in a description of your system's C++ link characteristics
10956echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10957echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10958ld_shlibs_CXX=yes
10959case $host_os in
10960  aix3*)
10961    # FIXME: insert proper C++ library support
10962    ld_shlibs_CXX=no
10963    ;;
10964  aix4* | aix5*)
10965    if test "$host_cpu" = ia64; then
10966      # On IA64, the linker does run time linking by default, so we don't
10967      # have to do anything special.
10968      aix_use_runtimelinking=no
10969      exp_sym_flag='-Bexport'
10970      no_entry_flag=""
10971    else
10972      aix_use_runtimelinking=no
10973
10974      # Test if we are trying to use run time linking or normal
10975      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10976      # need to do runtime linking.
10977      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10978	for ld_flag in $LDFLAGS; do
10979	  case $ld_flag in
10980	  *-brtl*)
10981	    aix_use_runtimelinking=yes
10982	    break
10983	    ;;
10984	  esac
10985	done
10986      esac
10987
10988      exp_sym_flag='-bexport'
10989      no_entry_flag='-bnoentry'
10990    fi
10991
10992    # When large executables or shared objects are built, AIX ld can
10993    # have problems creating the table of contents.  If linking a library
10994    # or program results in "error TOC overflow" add -mminimal-toc to
10995    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10996    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10997
10998    archive_cmds_CXX=''
10999    hardcode_direct_CXX=yes
11000    hardcode_libdir_separator_CXX=':'
11001    link_all_deplibs_CXX=yes
11002
11003    if test "$GXX" = yes; then
11004      case $host_os in aix4.[012]|aix4.[012].*)
11005      # We only want to do this on AIX 4.2 and lower, the check
11006      # below for broken collect2 doesn't work under 4.3+
11007	collect2name=`${CC} -print-prog-name=collect2`
11008	if test -f "$collect2name" && \
11009	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11010	then
11011	  # We have reworked collect2
11012	  hardcode_direct_CXX=yes
11013	else
11014	  # We have old collect2
11015	  hardcode_direct_CXX=unsupported
11016	  # It fails to find uninstalled libraries when the uninstalled
11017	  # path is not listed in the libpath.  Setting hardcode_minus_L
11018	  # to unsupported forces relinking
11019	  hardcode_minus_L_CXX=yes
11020	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11021	  hardcode_libdir_separator_CXX=
11022	fi
11023      esac
11024      shared_flag='-shared'
11025      if test "$aix_use_runtimelinking" = yes; then
11026	shared_flag="$shared_flag "'${wl}-G'
11027      fi
11028    else
11029      # not using gcc
11030      if test "$host_cpu" = ia64; then
11031	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11032	# chokes on -Wl,-G. The following line is correct:
11033	shared_flag='-G'
11034      else
11035	if test "$aix_use_runtimelinking" = yes; then
11036	  shared_flag='${wl}-G'
11037	else
11038	  shared_flag='${wl}-bM:SRE'
11039	fi
11040      fi
11041    fi
11042
11043    # It seems that -bexpall does not export symbols beginning with
11044    # underscore (_), so it is better to generate a list of symbols to export.
11045    always_export_symbols_CXX=yes
11046    if test "$aix_use_runtimelinking" = yes; then
11047      # Warning - without using the other runtime loading flags (-brtl),
11048      # -berok will link without error, but may produce a broken library.
11049      allow_undefined_flag_CXX='-berok'
11050      # Determine the default libpath from the value encoded in an empty executable.
11051      cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h.  */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h.  */
11057
11058#ifdef F77_DUMMY_MAIN
11059
11060#  ifdef __cplusplus
11061     extern "C"
11062#  endif
11063   int F77_DUMMY_MAIN() { return 1; }
11064
11065#endif
11066int
11067main ()
11068{
11069
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074rm -f conftest.$ac_objext conftest$ac_exeext
11075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076  (eval $ac_link) 2>conftest.er1
11077  ac_status=$?
11078  grep -v '^ *+' conftest.er1 >conftest.err
11079  rm -f conftest.er1
11080  cat conftest.err >&5
11081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082  (exit $ac_status); } &&
11083	 { ac_try='test -z "$ac_cxx_werror_flag"
11084			 || test ! -s conftest.err'
11085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086  (eval $ac_try) 2>&5
11087  ac_status=$?
11088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089  (exit $ac_status); }; } &&
11090	 { ac_try='test -s conftest$ac_exeext'
11091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092  (eval $ac_try) 2>&5
11093  ac_status=$?
11094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095  (exit $ac_status); }; }; then
11096
11097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11098}'`
11099# Check for a 64-bit object if we didn't find anything.
11100if 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; }
11101}'`; fi
11102else
11103  echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106fi
11107rm -f conftest.err conftest.$ac_objext \
11108      conftest$ac_exeext conftest.$ac_ext
11109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11110
11111      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11112
11113      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"
11114     else
11115      if test "$host_cpu" = ia64; then
11116	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117	allow_undefined_flag_CXX="-z nodefs"
11118	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"
11119      else
11120	# Determine the default libpath from the value encoded in an empty executable.
11121	cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h.  */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h.  */
11127
11128#ifdef F77_DUMMY_MAIN
11129
11130#  ifdef __cplusplus
11131     extern "C"
11132#  endif
11133   int F77_DUMMY_MAIN() { return 1; }
11134
11135#endif
11136int
11137main ()
11138{
11139
11140  ;
11141  return 0;
11142}
11143_ACEOF
11144rm -f conftest.$ac_objext conftest$ac_exeext
11145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11146  (eval $ac_link) 2>conftest.er1
11147  ac_status=$?
11148  grep -v '^ *+' conftest.er1 >conftest.err
11149  rm -f conftest.er1
11150  cat conftest.err >&5
11151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152  (exit $ac_status); } &&
11153	 { ac_try='test -z "$ac_cxx_werror_flag"
11154			 || test ! -s conftest.err'
11155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156  (eval $ac_try) 2>&5
11157  ac_status=$?
11158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159  (exit $ac_status); }; } &&
11160	 { ac_try='test -s conftest$ac_exeext'
11161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162  (eval $ac_try) 2>&5
11163  ac_status=$?
11164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); }; }; then
11166
11167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11168}'`
11169# Check for a 64-bit object if we didn't find anything.
11170if 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; }
11171}'`; fi
11172else
11173  echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176fi
11177rm -f conftest.err conftest.$ac_objext \
11178      conftest$ac_exeext conftest.$ac_ext
11179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11180
11181	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11182	# Warning - without using the other run time loading flags,
11183	# -berok will link without error, but may produce a broken library.
11184	no_undefined_flag_CXX=' ${wl}-bernotok'
11185	allow_undefined_flag_CXX=' ${wl}-berok'
11186	# -bexpall does not export symbols beginning with underscore (_)
11187	always_export_symbols_CXX=yes
11188	# Exported symbols can be pulled into shared objects from archives
11189	whole_archive_flag_spec_CXX=' '
11190	archive_cmds_need_lc_CXX=yes
11191	# This is similar to how AIX traditionally builds its shared libraries.
11192	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'
11193      fi
11194    fi
11195    ;;
11196  chorus*)
11197    case $cc_basename in
11198      *)
11199	# FIXME: insert proper C++ library support
11200	ld_shlibs_CXX=no
11201	;;
11202    esac
11203    ;;
11204
11205
11206  cygwin* | mingw* | pw32*)
11207    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11208    # as there is no search path for DLLs.
11209    hardcode_libdir_flag_spec_CXX='-L$libdir'
11210    allow_undefined_flag_CXX=unsupported
11211    always_export_symbols_CXX=no
11212    enable_shared_with_static_runtimes_CXX=yes
11213
11214    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11215      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'
11216      # If the export-symbols file already is a .def file (1st line
11217      # is EXPORTS), use it as is; otherwise, prepend...
11218      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11219	cp $export_symbols $output_objdir/$soname.def;
11220      else
11221	echo EXPORTS > $output_objdir/$soname.def;
11222	cat $export_symbols >> $output_objdir/$soname.def;
11223      fi~
11224      $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'
11225    else
11226      ld_shlibs_CXX=no
11227    fi
11228  ;;
11229      darwin* | rhapsody*)
11230        case $host_os in
11231        rhapsody* | darwin1.[012])
11232         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11233         ;;
11234       *) # Darwin 1.3 on
11235         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11236           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11237         else
11238           case ${MACOSX_DEPLOYMENT_TARGET} in
11239             10.[012])
11240               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11241               ;;
11242             10.*)
11243               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11244               ;;
11245           esac
11246         fi
11247         ;;
11248        esac
11249      archive_cmds_need_lc_CXX=no
11250      hardcode_direct_CXX=no
11251      hardcode_automatic_CXX=yes
11252      hardcode_shlibpath_var_CXX=unsupported
11253      whole_archive_flag_spec_CXX=''
11254      link_all_deplibs_CXX=yes
11255
11256    if test "$GXX" = yes ; then
11257      lt_int_apple_cc_single_mod=no
11258      output_verbose_link_cmd='echo'
11259      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11260       lt_int_apple_cc_single_mod=yes
11261      fi
11262      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11263       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11264      else
11265          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11266        fi
11267        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11268        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11269          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11270            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}'
11271          else
11272            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273          fi
11274            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}'
11275      else
11276      case $cc_basename in
11277        xlc*)
11278         output_verbose_link_cmd='echo'
11279          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11280          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11281          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11282          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11283          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}'
11284          ;;
11285       *)
11286         ld_shlibs_CXX=no
11287          ;;
11288      esac
11289      fi
11290        ;;
11291
11292  dgux*)
11293    case $cc_basename in
11294      ec++*)
11295	# FIXME: insert proper C++ library support
11296	ld_shlibs_CXX=no
11297	;;
11298      ghcx*)
11299	# Green Hills C++ Compiler
11300	# FIXME: insert proper C++ library support
11301	ld_shlibs_CXX=no
11302	;;
11303      *)
11304	# FIXME: insert proper C++ library support
11305	ld_shlibs_CXX=no
11306	;;
11307    esac
11308    ;;
11309  freebsd[12]*)
11310    # C++ shared libraries reported to be fairly broken before switch to ELF
11311    ld_shlibs_CXX=no
11312    ;;
11313  freebsd-elf*)
11314    archive_cmds_need_lc_CXX=no
11315    ;;
11316  freebsd* | kfreebsd*-gnu | dragonfly*)
11317    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11318    # conventions
11319    ld_shlibs_CXX=yes
11320    ;;
11321  gnu*)
11322    ;;
11323  hpux9*)
11324    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11325    hardcode_libdir_separator_CXX=:
11326    export_dynamic_flag_spec_CXX='${wl}-E'
11327    hardcode_direct_CXX=yes
11328    hardcode_minus_L_CXX=yes # Not in the search PATH,
11329				# but as the default
11330				# location of the library.
11331
11332    case $cc_basename in
11333    CC*)
11334      # FIXME: insert proper C++ library support
11335      ld_shlibs_CXX=no
11336      ;;
11337    aCC*)
11338      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'
11339      # Commands to make compiler produce verbose output that lists
11340      # what "hidden" libraries, object files and flags are used when
11341      # linking a shared library.
11342      #
11343      # There doesn't appear to be a way to prevent this compiler from
11344      # explicitly linking system object files so we need to strip them
11345      # from the output so that they don't get included in the library
11346      # dependencies.
11347      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'
11348      ;;
11349    *)
11350      if test "$GXX" = yes; then
11351        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'
11352      else
11353        # FIXME: insert proper C++ library support
11354        ld_shlibs_CXX=no
11355      fi
11356      ;;
11357    esac
11358    ;;
11359  hpux10*|hpux11*)
11360    if test $with_gnu_ld = no; then
11361      case $host_cpu in
11362      hppa*64*)
11363	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11364	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11365	hardcode_libdir_separator_CXX=:
11366        ;;
11367      ia64*)
11368	hardcode_libdir_flag_spec_CXX='-L$libdir'
11369        ;;
11370      *)
11371	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11372	hardcode_libdir_separator_CXX=:
11373	export_dynamic_flag_spec_CXX='${wl}-E'
11374        ;;
11375      esac
11376    fi
11377    case $host_cpu in
11378    hppa*64*)
11379      hardcode_direct_CXX=no
11380      hardcode_shlibpath_var_CXX=no
11381      ;;
11382    ia64*)
11383      hardcode_direct_CXX=no
11384      hardcode_shlibpath_var_CXX=no
11385      hardcode_minus_L_CXX=yes # Not in the search PATH,
11386					      # but as the default
11387					      # location of the library.
11388      ;;
11389    *)
11390      hardcode_direct_CXX=yes
11391      hardcode_minus_L_CXX=yes # Not in the search PATH,
11392					      # but as the default
11393					      # location of the library.
11394      ;;
11395    esac
11396
11397    case $cc_basename in
11398      CC*)
11399	# FIXME: insert proper C++ library support
11400	ld_shlibs_CXX=no
11401	;;
11402      aCC*)
11403	case $host_cpu in
11404	hppa*64*|ia64*)
11405	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11406	  ;;
11407	*)
11408	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11409	  ;;
11410	esac
11411	# Commands to make compiler produce verbose output that lists
11412	# what "hidden" libraries, object files and flags are used when
11413	# linking a shared library.
11414	#
11415	# There doesn't appear to be a way to prevent this compiler from
11416	# explicitly linking system object files so we need to strip them
11417	# from the output so that they don't get included in the library
11418	# dependencies.
11419	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'
11420	;;
11421      *)
11422	if test "$GXX" = yes; then
11423	  if test $with_gnu_ld = no; then
11424	    case $host_cpu in
11425	    ia64*|hppa*64*)
11426	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11427	      ;;
11428	    *)
11429	      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'
11430	      ;;
11431	    esac
11432	  fi
11433	else
11434	  # FIXME: insert proper C++ library support
11435	  ld_shlibs_CXX=no
11436	fi
11437	;;
11438    esac
11439    ;;
11440  irix5* | irix6*)
11441    case $cc_basename in
11442      CC*)
11443	# SGI C++
11444	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11445
11446	# Archives containing C++ object files must be created using
11447	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11448	# necessary to make sure instantiated templates are included
11449	# in the archive.
11450	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11451	;;
11452      *)
11453	if test "$GXX" = yes; then
11454	  if test "$with_gnu_ld" = no; then
11455	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11456	  else
11457	    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'
11458	  fi
11459	fi
11460	link_all_deplibs_CXX=yes
11461	;;
11462    esac
11463    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11464    hardcode_libdir_separator_CXX=:
11465    ;;
11466  linux*)
11467    case $cc_basename in
11468      KCC*)
11469	# Kuck and Associates, Inc. (KAI) C++ Compiler
11470
11471	# KCC will only create a shared library if the output file
11472	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11473	# to its proper name (with version) after linking.
11474	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'
11475	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'
11476	# Commands to make compiler produce verbose output that lists
11477	# what "hidden" libraries, object files and flags are used when
11478	# linking a shared library.
11479	#
11480	# There doesn't appear to be a way to prevent this compiler from
11481	# explicitly linking system object files so we need to strip them
11482	# from the output so that they don't get included in the library
11483	# dependencies.
11484	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'
11485
11486	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11487	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11488
11489	# Archives containing C++ object files must be created using
11490	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11491	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11492	;;
11493      icpc*)
11494	# Intel C++
11495	with_gnu_ld=yes
11496	# version 8.0 and above of icpc choke on multiply defined symbols
11497	# if we add $predep_objects and $postdep_objects, however 7.1 and
11498	# earlier do not add the objects themselves.
11499	case `$CC -V 2>&1` in
11500	*"Version 7."*)
11501  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11502  	  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'
11503	  ;;
11504	*)  # Version 8.0 or newer
11505	  tmp_idyn=
11506	  case $host_cpu in
11507	    ia64*) tmp_idyn=' -i_dynamic';;
11508	  esac
11509  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11511	  ;;
11512	esac
11513	archive_cmds_need_lc_CXX=no
11514	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11515	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11516	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11517	;;
11518      pgCC*)
11519        # Portland Group C++ compiler
11520	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11521  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11522
11523	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11524	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11525	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11526        ;;
11527      cxx*)
11528	# Compaq C++
11529	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11530	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'
11531
11532	runpath_var=LD_RUN_PATH
11533	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11534	hardcode_libdir_separator_CXX=:
11535
11536	# Commands to make compiler produce verbose output that lists
11537	# what "hidden" libraries, object files and flags are used when
11538	# linking a shared library.
11539	#
11540	# There doesn't appear to be a way to prevent this compiler from
11541	# explicitly linking system object files so we need to strip them
11542	# from the output so that they don't get included in the library
11543	# dependencies.
11544	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'
11545	;;
11546    esac
11547    ;;
11548  lynxos*)
11549    # FIXME: insert proper C++ library support
11550    ld_shlibs_CXX=no
11551    ;;
11552  m88k*)
11553    # FIXME: insert proper C++ library support
11554    ld_shlibs_CXX=no
11555    ;;
11556  mvs*)
11557    case $cc_basename in
11558      cxx*)
11559	# FIXME: insert proper C++ library support
11560	ld_shlibs_CXX=no
11561	;;
11562      *)
11563	# FIXME: insert proper C++ library support
11564	ld_shlibs_CXX=no
11565	;;
11566    esac
11567    ;;
11568  netbsd*)
11569    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11570      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11571      wlarc=
11572      hardcode_libdir_flag_spec_CXX='-R$libdir'
11573      hardcode_direct_CXX=yes
11574      hardcode_shlibpath_var_CXX=no
11575    fi
11576    # Workaround some broken pre-1.5 toolchains
11577    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11578    ;;
11579  openbsd2*)
11580    # C++ shared libraries are fairly broken
11581    ld_shlibs_CXX=no
11582    ;;
11583  openbsd*)
11584    hardcode_direct_CXX=yes
11585    hardcode_shlibpath_var_CXX=no
11586    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11587    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11589      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11590      export_dynamic_flag_spec_CXX='${wl}-E'
11591      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11592    fi
11593    output_verbose_link_cmd='echo'
11594    ;;
11595  osf3*)
11596    case $cc_basename in
11597      KCC*)
11598	# Kuck and Associates, Inc. (KAI) C++ Compiler
11599
11600	# KCC will only create a shared library if the output file
11601	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11602	# to its proper name (with version) after linking.
11603	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'
11604
11605	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606	hardcode_libdir_separator_CXX=:
11607
11608	# Archives containing C++ object files must be created using
11609	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11610	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11611
11612	;;
11613      RCC*)
11614	# Rational C++ 2.4.1
11615	# FIXME: insert proper C++ library support
11616	ld_shlibs_CXX=no
11617	;;
11618      cxx*)
11619	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11620	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11621
11622	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11623	hardcode_libdir_separator_CXX=:
11624
11625	# Commands to make compiler produce verbose output that lists
11626	# what "hidden" libraries, object files and flags are used when
11627	# linking a shared library.
11628	#
11629	# There doesn't appear to be a way to prevent this compiler from
11630	# explicitly linking system object files so we need to strip them
11631	# from the output so that they don't get included in the library
11632	# dependencies.
11633	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'
11634	;;
11635      *)
11636	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11637	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11638	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11639
11640	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11641	  hardcode_libdir_separator_CXX=:
11642
11643	  # Commands to make compiler produce verbose output that lists
11644	  # what "hidden" libraries, object files and flags are used when
11645	  # linking a shared library.
11646	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11647
11648	else
11649	  # FIXME: insert proper C++ library support
11650	  ld_shlibs_CXX=no
11651	fi
11652	;;
11653    esac
11654    ;;
11655  osf4* | osf5*)
11656    case $cc_basename in
11657      KCC*)
11658	# Kuck and Associates, Inc. (KAI) C++ Compiler
11659
11660	# KCC will only create a shared library if the output file
11661	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11662	# to its proper name (with version) after linking.
11663	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'
11664
11665	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11666	hardcode_libdir_separator_CXX=:
11667
11668	# Archives containing C++ object files must be created using
11669	# the KAI C++ compiler.
11670	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11671	;;
11672      RCC*)
11673	# Rational C++ 2.4.1
11674	# FIXME: insert proper C++ library support
11675	ld_shlibs_CXX=no
11676	;;
11677      cxx*)
11678	allow_undefined_flag_CXX=' -expect_unresolved \*'
11679	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11680	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11681	  echo "-hidden">> $lib.exp~
11682	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11683	  $rm $lib.exp'
11684
11685	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11686	hardcode_libdir_separator_CXX=:
11687
11688	# Commands to make compiler produce verbose output that lists
11689	# what "hidden" libraries, object files and flags are used when
11690	# linking a shared library.
11691	#
11692	# There doesn't appear to be a way to prevent this compiler from
11693	# explicitly linking system object files so we need to strip them
11694	# from the output so that they don't get included in the library
11695	# dependencies.
11696	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'
11697	;;
11698      *)
11699	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11700	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11701	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11702
11703	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11704	  hardcode_libdir_separator_CXX=:
11705
11706	  # Commands to make compiler produce verbose output that lists
11707	  # what "hidden" libraries, object files and flags are used when
11708	  # linking a shared library.
11709	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11710
11711	else
11712	  # FIXME: insert proper C++ library support
11713	  ld_shlibs_CXX=no
11714	fi
11715	;;
11716    esac
11717    ;;
11718  psos*)
11719    # FIXME: insert proper C++ library support
11720    ld_shlibs_CXX=no
11721    ;;
11722  sco*)
11723    archive_cmds_need_lc_CXX=no
11724    case $cc_basename in
11725      CC*)
11726	# FIXME: insert proper C++ library support
11727	ld_shlibs_CXX=no
11728	;;
11729      *)
11730	# FIXME: insert proper C++ library support
11731	ld_shlibs_CXX=no
11732	;;
11733    esac
11734    ;;
11735  sunos4*)
11736    case $cc_basename in
11737      CC*)
11738	# Sun C++ 4.x
11739	# FIXME: insert proper C++ library support
11740	ld_shlibs_CXX=no
11741	;;
11742      lcc*)
11743	# Lucid
11744	# FIXME: insert proper C++ library support
11745	ld_shlibs_CXX=no
11746	;;
11747      *)
11748	# FIXME: insert proper C++ library support
11749	ld_shlibs_CXX=no
11750	;;
11751    esac
11752    ;;
11753  solaris*)
11754    case $cc_basename in
11755      CC*)
11756	# Sun C++ 4.2, 5.x and Centerline C++
11757        archive_cmds_need_lc_CXX=yes
11758	no_undefined_flag_CXX=' -zdefs'
11759	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11760	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11762
11763	hardcode_libdir_flag_spec_CXX='-R$libdir'
11764	hardcode_shlibpath_var_CXX=no
11765	case $host_os in
11766	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11767	  *)
11768	    # The C++ compiler is used as linker so we must use $wl
11769	    # flag to pass the commands to the underlying system
11770	    # linker. We must also pass each convience library through
11771	    # to the system linker between allextract/defaultextract.
11772	    # The C++ compiler will combine linker options so we
11773	    # cannot just pass the convience library names through
11774	    # without $wl.
11775	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11776	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11777	    ;;
11778	esac
11779	link_all_deplibs_CXX=yes
11780
11781	output_verbose_link_cmd='echo'
11782
11783	# Archives containing C++ object files must be created using
11784	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11785	# necessary to make sure instantiated templates are included
11786	# in the archive.
11787	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11788	;;
11789      gcx*)
11790	# Green Hills C++ Compiler
11791	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11792
11793	# The C++ compiler must be used to create the archive.
11794	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11795	;;
11796      *)
11797	# GNU C++ compiler with Solaris linker
11798	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11799	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11800	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11801	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11802	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11803		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11804
11805	    # Commands to make compiler produce verbose output that lists
11806	    # what "hidden" libraries, object files and flags are used when
11807	    # linking a shared library.
11808	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11809	  else
11810	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11811	    # platform.
11812	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11813	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11814		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11815
11816	    # Commands to make compiler produce verbose output that lists
11817	    # what "hidden" libraries, object files and flags are used when
11818	    # linking a shared library.
11819	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11820	  fi
11821
11822	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11823	fi
11824	;;
11825    esac
11826    ;;
11827  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11828    archive_cmds_need_lc_CXX=no
11829    ;;
11830  tandem*)
11831    case $cc_basename in
11832      NCC*)
11833	# NonStop-UX NCC 3.20
11834	# FIXME: insert proper C++ library support
11835	ld_shlibs_CXX=no
11836	;;
11837      *)
11838	# FIXME: insert proper C++ library support
11839	ld_shlibs_CXX=no
11840	;;
11841    esac
11842    ;;
11843  vxworks*)
11844    # FIXME: insert proper C++ library support
11845    ld_shlibs_CXX=no
11846    ;;
11847  *)
11848    # FIXME: insert proper C++ library support
11849    ld_shlibs_CXX=no
11850    ;;
11851esac
11852echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11853echo "${ECHO_T}$ld_shlibs_CXX" >&6
11854test "$ld_shlibs_CXX" = no && can_build_shared=no
11855
11856GCC_CXX="$GXX"
11857LD_CXX="$LD"
11858
11859## CAVEAT EMPTOR:
11860## There is no encapsulation within the following macros, do not change
11861## the running order or otherwise move them around unless you know exactly
11862## what you are doing...
11863
11864cat > conftest.$ac_ext <<EOF
11865class Foo
11866{
11867public:
11868  Foo (void) { a = 0; }
11869private:
11870  int a;
11871};
11872EOF
11873
11874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875  (eval $ac_compile) 2>&5
11876  ac_status=$?
11877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878  (exit $ac_status); }; then
11879  # Parse the compiler output and extract the necessary
11880  # objects, libraries and library flags.
11881
11882  # Sentinel used to keep track of whether or not we are before
11883  # the conftest object file.
11884  pre_test_object_deps_done=no
11885
11886  # The `*' in the case matches for architectures that use `case' in
11887  # $output_verbose_cmd can trigger glob expansion during the loop
11888  # eval without this substitution.
11889  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11890
11891  for p in `eval $output_verbose_link_cmd`; do
11892    case $p in
11893
11894    -L* | -R* | -l*)
11895       # Some compilers place space between "-{L,R}" and the path.
11896       # Remove the space.
11897       if test $p = "-L" \
11898	  || test $p = "-R"; then
11899	 prev=$p
11900	 continue
11901       else
11902	 prev=
11903       fi
11904
11905       if test "$pre_test_object_deps_done" = no; then
11906	 case $p in
11907	 -L* | -R*)
11908	   # Internal compiler library paths should come after those
11909	   # provided the user.  The postdeps already come after the
11910	   # user supplied libs so there is no need to process them.
11911	   if test -z "$compiler_lib_search_path_CXX"; then
11912	     compiler_lib_search_path_CXX="${prev}${p}"
11913	   else
11914	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11915	   fi
11916	   ;;
11917	 # The "-l" case would never come before the object being
11918	 # linked, so don't bother handling this case.
11919	 esac
11920       else
11921	 if test -z "$postdeps_CXX"; then
11922	   postdeps_CXX="${prev}${p}"
11923	 else
11924	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11925	 fi
11926       fi
11927       ;;
11928
11929    *.$objext)
11930       # This assumes that the test object file only shows up
11931       # once in the compiler output.
11932       if test "$p" = "conftest.$objext"; then
11933	 pre_test_object_deps_done=yes
11934	 continue
11935       fi
11936
11937       if test "$pre_test_object_deps_done" = no; then
11938	 if test -z "$predep_objects_CXX"; then
11939	   predep_objects_CXX="$p"
11940	 else
11941	   predep_objects_CXX="$predep_objects_CXX $p"
11942	 fi
11943       else
11944	 if test -z "$postdep_objects_CXX"; then
11945	   postdep_objects_CXX="$p"
11946	 else
11947	   postdep_objects_CXX="$postdep_objects_CXX $p"
11948	 fi
11949       fi
11950       ;;
11951
11952    *) ;; # Ignore the rest.
11953
11954    esac
11955  done
11956
11957  # Clean up.
11958  rm -f a.out a.exe
11959else
11960  echo "libtool.m4: error: problem compiling CXX test program"
11961fi
11962
11963$rm -f confest.$objext
11964
11965# PORTME: override above test on systems where it is broken
11966case $host_os in
11967solaris*)
11968  case $cc_basename in
11969  CC*)
11970    # Adding this requires a known-good setup of shared libraries for
11971    # Sun compiler versions before 5.6, else PIC objects from an old
11972    # archive will be linked into the output, leading to subtle bugs.
11973    postdeps_CXX='-lCstd -lCrun'
11974    ;;
11975  esac
11976esac
11977
11978
11979case " $postdeps_CXX " in
11980*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11981esac
11982
11983lt_prog_compiler_wl_CXX=
11984lt_prog_compiler_pic_CXX=
11985lt_prog_compiler_static_CXX=
11986
11987echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11988echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11989
11990  # C++ specific cases for pic, static, wl, etc.
11991  if test "$GXX" = yes; then
11992    lt_prog_compiler_wl_CXX='-Wl,'
11993    lt_prog_compiler_static_CXX='-static'
11994
11995    case $host_os in
11996    aix*)
11997      # All AIX code is PIC.
11998      if test "$host_cpu" = ia64; then
11999	# AIX 5 now supports IA64 processor
12000	lt_prog_compiler_static_CXX='-Bstatic'
12001      fi
12002      ;;
12003    amigaos*)
12004      # FIXME: we need at least 68020 code to build shared libraries, but
12005      # adding the `-m68020' flag to GCC prevents building anything better,
12006      # like `-m68040'.
12007      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12008      ;;
12009    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
12010    | osf5*)
12011      # PIC is the default for these OSes.
12012      ;;
12013    mingw* | os2* | pw32*)
12014      # This hack is so that the source file can tell whether it is being
12015      # built for inclusion in a dll (and should export symbols for example).
12016      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12017      ;;
12018    darwin* | rhapsody*)
12019      # PIC is the default on this platform
12020      # Common symbols not allowed in MH_DYLIB files
12021      lt_prog_compiler_pic_CXX='-fno-common'
12022      ;;
12023    *djgpp*)
12024      # DJGPP does not support shared libraries at all
12025      lt_prog_compiler_pic_CXX=
12026      ;;
12027    sysv4*MP*)
12028      if test -d /usr/nec; then
12029	lt_prog_compiler_pic_CXX=-Kconform_pic
12030      fi
12031      ;;
12032    hpux*)
12033      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12034      # not for PA HP-UX.
12035      case $host_cpu in
12036      hppa*64*|ia64*)
12037	;;
12038      *)
12039	lt_prog_compiler_pic_CXX='-fPIC'
12040	;;
12041      esac
12042      ;;
12043    *)
12044      lt_prog_compiler_pic_CXX='-fPIC'
12045      ;;
12046    esac
12047  else
12048    case $host_os in
12049      aix4* | aix5*)
12050	# All AIX code is PIC.
12051	if test "$host_cpu" = ia64; then
12052	  # AIX 5 now supports IA64 processor
12053	  lt_prog_compiler_static_CXX='-Bstatic'
12054	else
12055	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12056	fi
12057	;;
12058      chorus*)
12059	case $cc_basename in
12060	cxch68*)
12061	  # Green Hills C++ Compiler
12062	  # _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"
12063	  ;;
12064	esac
12065	;;
12066       darwin*)
12067         # PIC is the default on this platform
12068         # Common symbols not allowed in MH_DYLIB files
12069         case $cc_basename in
12070           xlc*)
12071           lt_prog_compiler_pic_CXX='-qnocommon'
12072           lt_prog_compiler_wl_CXX='-Wl,'
12073           ;;
12074         esac
12075       ;;
12076      dgux*)
12077	case $cc_basename in
12078	  ec++*)
12079	    lt_prog_compiler_pic_CXX='-KPIC'
12080	    ;;
12081	  ghcx*)
12082	    # Green Hills C++ Compiler
12083	    lt_prog_compiler_pic_CXX='-pic'
12084	    ;;
12085	  *)
12086	    ;;
12087	esac
12088	;;
12089      freebsd* | kfreebsd*-gnu | dragonfly*)
12090	# FreeBSD uses GNU C++
12091	;;
12092      hpux9* | hpux10* | hpux11*)
12093	case $cc_basename in
12094	  CC*)
12095	    lt_prog_compiler_wl_CXX='-Wl,'
12096	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12097	    if test "$host_cpu" != ia64; then
12098	      lt_prog_compiler_pic_CXX='+Z'
12099	    fi
12100	    ;;
12101	  aCC*)
12102	    lt_prog_compiler_wl_CXX='-Wl,'
12103	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12104	    case $host_cpu in
12105	    hppa*64*|ia64*)
12106	      # +Z the default
12107	      ;;
12108	    *)
12109	      lt_prog_compiler_pic_CXX='+Z'
12110	      ;;
12111	    esac
12112	    ;;
12113	  *)
12114	    ;;
12115	esac
12116	;;
12117      irix5* | irix6* | nonstopux*)
12118	case $cc_basename in
12119	  CC*)
12120	    lt_prog_compiler_wl_CXX='-Wl,'
12121	    lt_prog_compiler_static_CXX='-non_shared'
12122	    # CC pic flag -KPIC is the default.
12123	    ;;
12124	  *)
12125	    ;;
12126	esac
12127	;;
12128      linux*)
12129	case $cc_basename in
12130	  KCC*)
12131	    # KAI C++ Compiler
12132	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12133	    lt_prog_compiler_pic_CXX='-fPIC'
12134	    ;;
12135	  icpc* | ecpc*)
12136	    # Intel C++
12137	    lt_prog_compiler_wl_CXX='-Wl,'
12138	    lt_prog_compiler_pic_CXX='-KPIC'
12139	    lt_prog_compiler_static_CXX='-static'
12140	    ;;
12141	  pgCC*)
12142	    # Portland Group C++ compiler.
12143	    lt_prog_compiler_wl_CXX='-Wl,'
12144	    lt_prog_compiler_pic_CXX='-fpic'
12145	    lt_prog_compiler_static_CXX='-Bstatic'
12146	    ;;
12147	  cxx*)
12148	    # Compaq C++
12149	    # Make sure the PIC flag is empty.  It appears that all Alpha
12150	    # Linux and Compaq Tru64 Unix objects are PIC.
12151	    lt_prog_compiler_pic_CXX=
12152	    lt_prog_compiler_static_CXX='-non_shared'
12153	    ;;
12154	  *)
12155	    ;;
12156	esac
12157	;;
12158      lynxos*)
12159	;;
12160      m88k*)
12161	;;
12162      mvs*)
12163	case $cc_basename in
12164	  cxx*)
12165	    lt_prog_compiler_pic_CXX='-W c,exportall'
12166	    ;;
12167	  *)
12168	    ;;
12169	esac
12170	;;
12171      netbsd*)
12172	;;
12173      osf3* | osf4* | osf5*)
12174	case $cc_basename in
12175	  KCC*)
12176	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12177	    ;;
12178	  RCC*)
12179	    # Rational C++ 2.4.1
12180	    lt_prog_compiler_pic_CXX='-pic'
12181	    ;;
12182	  cxx*)
12183	    # Digital/Compaq C++
12184	    lt_prog_compiler_wl_CXX='-Wl,'
12185	    # Make sure the PIC flag is empty.  It appears that all Alpha
12186	    # Linux and Compaq Tru64 Unix objects are PIC.
12187	    lt_prog_compiler_pic_CXX=
12188	    lt_prog_compiler_static_CXX='-non_shared'
12189	    ;;
12190	  *)
12191	    ;;
12192	esac
12193	;;
12194      psos*)
12195	;;
12196      sco*)
12197	case $cc_basename in
12198	  CC*)
12199	    lt_prog_compiler_pic_CXX='-fPIC'
12200	    ;;
12201	  *)
12202	    ;;
12203	esac
12204	;;
12205      solaris*)
12206	case $cc_basename in
12207	  CC*)
12208	    # Sun C++ 4.2, 5.x and Centerline C++
12209	    lt_prog_compiler_pic_CXX='-KPIC'
12210	    lt_prog_compiler_static_CXX='-Bstatic'
12211	    lt_prog_compiler_wl_CXX='-Qoption ld '
12212	    ;;
12213	  gcx*)
12214	    # Green Hills C++ Compiler
12215	    lt_prog_compiler_pic_CXX='-PIC'
12216	    ;;
12217	  *)
12218	    ;;
12219	esac
12220	;;
12221      sunos4*)
12222	case $cc_basename in
12223	  CC*)
12224	    # Sun C++ 4.x
12225	    lt_prog_compiler_pic_CXX='-pic'
12226	    lt_prog_compiler_static_CXX='-Bstatic'
12227	    ;;
12228	  lcc*)
12229	    # Lucid
12230	    lt_prog_compiler_pic_CXX='-pic'
12231	    ;;
12232	  *)
12233	    ;;
12234	esac
12235	;;
12236      tandem*)
12237	case $cc_basename in
12238	  NCC*)
12239	    # NonStop-UX NCC 3.20
12240	    lt_prog_compiler_pic_CXX='-KPIC'
12241	    ;;
12242	  *)
12243	    ;;
12244	esac
12245	;;
12246      unixware*)
12247	;;
12248      vxworks*)
12249	;;
12250      *)
12251	lt_prog_compiler_can_build_shared_CXX=no
12252	;;
12253    esac
12254  fi
12255
12256echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12257echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12258
12259#
12260# Check to make sure the PIC flag actually works.
12261#
12262if test -n "$lt_prog_compiler_pic_CXX"; then
12263
12264echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12265echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12266if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12267  echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269  lt_prog_compiler_pic_works_CXX=no
12270  ac_outfile=conftest.$ac_objext
12271   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12272   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12273   # Insert the option either (1) after the last *FLAGS variable, or
12274   # (2) before a word containing "conftest.", or (3) at the end.
12275   # Note that $ac_compile itself does not contain backslashes and begins
12276   # with a dollar sign (not a hyphen), so the echo should work correctly.
12277   # The option is referenced via a variable to avoid confusing sed.
12278   lt_compile=`echo "$ac_compile" | $SED \
12279   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12280   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12281   -e 's:$: $lt_compiler_flag:'`
12282   (eval echo "\"\$as_me:12282: $lt_compile\"" >&5)
12283   (eval "$lt_compile" 2>conftest.err)
12284   ac_status=$?
12285   cat conftest.err >&5
12286   echo "$as_me:12286: \$? = $ac_status" >&5
12287   if (exit $ac_status) && test -s "$ac_outfile"; then
12288     # The compiler can only warn and ignore the option if not recognized
12289     # So say no if there are warnings other than the usual output.
12290     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12291     $SED '/^$/d' conftest.err >conftest.er2
12292     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12293       lt_prog_compiler_pic_works_CXX=yes
12294     fi
12295   fi
12296   $rm conftest*
12297
12298fi
12299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12300echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12301
12302if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12303    case $lt_prog_compiler_pic_CXX in
12304     "" | " "*) ;;
12305     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12306     esac
12307else
12308    lt_prog_compiler_pic_CXX=
12309     lt_prog_compiler_can_build_shared_CXX=no
12310fi
12311
12312fi
12313case $host_os in
12314  # For platforms which do not support PIC, -DPIC is meaningless:
12315  *djgpp*)
12316    lt_prog_compiler_pic_CXX=
12317    ;;
12318  *)
12319    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12320    ;;
12321esac
12322
12323echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12324echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12325if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12326  echo $ECHO_N "(cached) $ECHO_C" >&6
12327else
12328  lt_cv_prog_compiler_c_o_CXX=no
12329   $rm -r conftest 2>/dev/null
12330   mkdir conftest
12331   cd conftest
12332   mkdir out
12333   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12334
12335   lt_compiler_flag="-o out/conftest2.$ac_objext"
12336   # Insert the option either (1) after the last *FLAGS variable, or
12337   # (2) before a word containing "conftest.", or (3) at the end.
12338   # Note that $ac_compile itself does not contain backslashes and begins
12339   # with a dollar sign (not a hyphen), so the echo should work correctly.
12340   lt_compile=`echo "$ac_compile" | $SED \
12341   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12343   -e 's:$: $lt_compiler_flag:'`
12344   (eval echo "\"\$as_me:12344: $lt_compile\"" >&5)
12345   (eval "$lt_compile" 2>out/conftest.err)
12346   ac_status=$?
12347   cat out/conftest.err >&5
12348   echo "$as_me:12348: \$? = $ac_status" >&5
12349   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12350   then
12351     # The compiler can only warn and ignore the option if not recognized
12352     # So say no if there are warnings
12353     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12354     $SED '/^$/d' out/conftest.err >out/conftest.er2
12355     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12356       lt_cv_prog_compiler_c_o_CXX=yes
12357     fi
12358   fi
12359   chmod u+w . 2>&5
12360   $rm conftest*
12361   # SGI C++ compiler will create directory out/ii_files/ for
12362   # template instantiation
12363   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12364   $rm out/* && rmdir out
12365   cd ..
12366   rmdir conftest
12367   $rm conftest*
12368
12369fi
12370echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12371echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12372
12373
12374hard_links="nottested"
12375if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12376  # do not overwrite the value of need_locks provided by the user
12377  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12378echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12379  hard_links=yes
12380  $rm conftest*
12381  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12382  touch conftest.a
12383  ln conftest.a conftest.b 2>&5 || hard_links=no
12384  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12385  echo "$as_me:$LINENO: result: $hard_links" >&5
12386echo "${ECHO_T}$hard_links" >&6
12387  if test "$hard_links" = no; then
12388    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12389echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12390    need_locks=warn
12391  fi
12392else
12393  need_locks=no
12394fi
12395
12396echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12397echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12398
12399  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12400  case $host_os in
12401  aix4* | aix5*)
12402    # If we're using GNU nm, then we don't want the "-C" option.
12403    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12404    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12405      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'
12406    else
12407      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'
12408    fi
12409    ;;
12410  pw32*)
12411    export_symbols_cmds_CXX="$ltdll_cmds"
12412  ;;
12413  cygwin* | mingw*)
12414    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12415  ;;
12416  *)
12417    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12418  ;;
12419  esac
12420
12421echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12422echo "${ECHO_T}$ld_shlibs_CXX" >&6
12423test "$ld_shlibs_CXX" = no && can_build_shared=no
12424
12425variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12426if test "$GCC" = yes; then
12427  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12428fi
12429
12430#
12431# Do we need to explicitly link libc?
12432#
12433case "x$archive_cmds_need_lc_CXX" in
12434x|xyes)
12435  # Assume -lc should be added
12436  archive_cmds_need_lc_CXX=yes
12437
12438  if test "$enable_shared" = yes && test "$GCC" = yes; then
12439    case $archive_cmds_CXX in
12440    *'~'*)
12441      # FIXME: we may have to deal with multi-command sequences.
12442      ;;
12443    '$CC '*)
12444      # Test whether the compiler implicitly links with -lc since on some
12445      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12446      # to ld, don't add -lc before -lgcc.
12447      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12448echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12449      $rm conftest*
12450      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12451
12452      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453  (eval $ac_compile) 2>&5
12454  ac_status=$?
12455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456  (exit $ac_status); } 2>conftest.err; then
12457        soname=conftest
12458        lib=conftest
12459        libobjs=conftest.$ac_objext
12460        deplibs=
12461        wl=$lt_prog_compiler_wl_CXX
12462        compiler_flags=-v
12463        linker_flags=-v
12464        verstring=
12465        output_objdir=.
12466        libname=conftest
12467        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12468        allow_undefined_flag_CXX=
12469        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12470  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12471  ac_status=$?
12472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473  (exit $ac_status); }
12474        then
12475	  archive_cmds_need_lc_CXX=no
12476        else
12477	  archive_cmds_need_lc_CXX=yes
12478        fi
12479        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12480      else
12481        cat conftest.err 1>&5
12482      fi
12483      $rm conftest*
12484      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12485echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12486      ;;
12487    esac
12488  fi
12489  ;;
12490esac
12491
12492echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12493echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12494library_names_spec=
12495libname_spec='lib$name'
12496soname_spec=
12497shrext_cmds=".so"
12498postinstall_cmds=
12499postuninstall_cmds=
12500finish_cmds=
12501finish_eval=
12502shlibpath_var=
12503shlibpath_overrides_runpath=unknown
12504version_type=none
12505dynamic_linker="$host_os ld.so"
12506sys_lib_dlsearch_path_spec="/lib /usr/lib"
12507if test "$GCC" = yes; then
12508  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12509  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12510    # if the path contains ";" then we assume it to be the separator
12511    # otherwise default to the standard path separator (i.e. ":") - it is
12512    # assumed that no part of a normal pathname contains ";" but that should
12513    # okay in the real world where ";" in dirpaths is itself problematic.
12514    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12515  else
12516    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12517  fi
12518else
12519  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12520fi
12521need_lib_prefix=unknown
12522hardcode_into_libs=no
12523
12524# when you set need_version to no, make sure it does not cause -set_version
12525# flags to be left without arguments
12526need_version=unknown
12527
12528case $host_os in
12529aix3*)
12530  version_type=linux
12531  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12532  shlibpath_var=LIBPATH
12533
12534  # AIX 3 has no versioning support, so we append a major version to the name.
12535  soname_spec='${libname}${release}${shared_ext}$major'
12536  ;;
12537
12538aix4* | aix5*)
12539  version_type=linux
12540  need_lib_prefix=no
12541  need_version=no
12542  hardcode_into_libs=yes
12543  if test "$host_cpu" = ia64; then
12544    # AIX 5 supports IA64
12545    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12546    shlibpath_var=LD_LIBRARY_PATH
12547  else
12548    # With GCC up to 2.95.x, collect2 would create an import file
12549    # for dependence libraries.  The import file would start with
12550    # the line `#! .'.  This would cause the generated library to
12551    # depend on `.', always an invalid library.  This was fixed in
12552    # development snapshots of GCC prior to 3.0.
12553    case $host_os in
12554      aix4 | aix4.[01] | aix4.[01].*)
12555      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12556	   echo ' yes '
12557	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12558	:
12559      else
12560	can_build_shared=no
12561      fi
12562      ;;
12563    esac
12564    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12565    # soname into executable. Probably we can add versioning support to
12566    # collect2, so additional links can be useful in future.
12567    if test "$aix_use_runtimelinking" = yes; then
12568      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12569      # instead of lib<name>.a to let people know that these are not
12570      # typical AIX shared libraries.
12571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572    else
12573      # We preserve .a as extension for shared libraries through AIX4.2
12574      # and later when we are not doing run time linking.
12575      library_names_spec='${libname}${release}.a $libname.a'
12576      soname_spec='${libname}${release}${shared_ext}$major'
12577    fi
12578    shlibpath_var=LIBPATH
12579  fi
12580  ;;
12581
12582amigaos*)
12583  library_names_spec='$libname.ixlibrary $libname.a'
12584  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12585  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'
12586  ;;
12587
12588beos*)
12589  library_names_spec='${libname}${shared_ext}'
12590  dynamic_linker="$host_os ld.so"
12591  shlibpath_var=LIBRARY_PATH
12592  ;;
12593
12594bsdi[45]*)
12595  version_type=linux
12596  need_version=no
12597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598  soname_spec='${libname}${release}${shared_ext}$major'
12599  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12600  shlibpath_var=LD_LIBRARY_PATH
12601  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12602  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12603  # the default ld.so.conf also contains /usr/contrib/lib and
12604  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12605  # libtool to hard-code these into programs
12606  ;;
12607
12608cygwin* | mingw* | pw32*)
12609  version_type=windows
12610  shrext_cmds=".dll"
12611  need_version=no
12612  need_lib_prefix=no
12613
12614  case $GCC,$host_os in
12615  yes,cygwin* | yes,mingw* | yes,pw32*)
12616    library_names_spec='$libname.dll.a'
12617    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12618    postinstall_cmds='base_file=`basename \${file}`~
12619      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12620      dldir=$destdir/`dirname \$dlpath`~
12621      test -d \$dldir || mkdir -p \$dldir~
12622      $install_prog $dir/$dlname \$dldir/$dlname~
12623      chmod a+x \$dldir/$dlname'
12624    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12625      dlpath=$dir/\$dldll~
12626       $rm \$dlpath'
12627    shlibpath_overrides_runpath=yes
12628
12629    case $host_os in
12630    cygwin*)
12631      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12632      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12633      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12634      ;;
12635    mingw*)
12636      # MinGW DLLs use traditional 'lib' prefix
12637      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12638      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12639      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12640        # It is most probably a Windows format PATH printed by
12641        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12642        # path with ; separators, and with drive letters. We can handle the
12643        # drive letters (cygwin fileutils understands them), so leave them,
12644        # especially as we might pass files found there to a mingw objdump,
12645        # which wouldn't understand a cygwinified path. Ahh.
12646        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12647      else
12648        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12649      fi
12650      ;;
12651    pw32*)
12652      # pw32 DLLs use 'pw' prefix rather than 'lib'
12653      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12654      ;;
12655    esac
12656    ;;
12657
12658  *)
12659    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12660    ;;
12661  esac
12662  dynamic_linker='Win32 ld.exe'
12663  # FIXME: first we should search . and the directory the executable is in
12664  shlibpath_var=PATH
12665  ;;
12666
12667darwin* | rhapsody*)
12668  dynamic_linker="$host_os dyld"
12669  version_type=darwin
12670  need_lib_prefix=no
12671  need_version=no
12672  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12673  soname_spec='${libname}${release}${major}$shared_ext'
12674  shlibpath_overrides_runpath=yes
12675  shlibpath_var=DYLD_LIBRARY_PATH
12676  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12677  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12678  if test "$GCC" = yes; then
12679    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"`
12680  else
12681    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12682  fi
12683  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12684  ;;
12685
12686dgux*)
12687  version_type=linux
12688  need_lib_prefix=no
12689  need_version=no
12690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12691  soname_spec='${libname}${release}${shared_ext}$major'
12692  shlibpath_var=LD_LIBRARY_PATH
12693  ;;
12694
12695freebsd1*)
12696  dynamic_linker=no
12697  ;;
12698
12699haiku*)
12700  library_names_spec='${libname}${shared_ext}'
12701  dynamic_linker="$host_os ld.so"
12702  shlibpath_var=LIBRARY_PATH
12703  ;;
12704
12705kfreebsd*-gnu)
12706  version_type=linux
12707  need_lib_prefix=no
12708  need_version=no
12709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12710  soname_spec='${libname}${release}${shared_ext}$major'
12711  shlibpath_var=LD_LIBRARY_PATH
12712  shlibpath_overrides_runpath=no
12713  hardcode_into_libs=yes
12714  dynamic_linker='GNU ld.so'
12715  ;;
12716
12717freebsd* | dragonfly*)
12718  # DragonFly does not have aout.  When/if they implement a new
12719  # versioning mechanism, adjust this.
12720  if test -x /usr/bin/objformat; then
12721    objformat=`/usr/bin/objformat`
12722  else
12723    case $host_os in
12724    freebsd[123]*) objformat=aout ;;
12725    *) objformat=elf ;;
12726    esac
12727  fi
12728  version_type=freebsd-$objformat
12729  case $version_type in
12730    freebsd-elf*)
12731      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12732      need_version=no
12733      need_lib_prefix=no
12734      ;;
12735    freebsd-*)
12736      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12737      need_version=yes
12738      ;;
12739  esac
12740  shlibpath_var=LD_LIBRARY_PATH
12741  case $host_os in
12742  freebsd2*)
12743    shlibpath_overrides_runpath=yes
12744    ;;
12745  freebsd3.[01]* | freebsdelf3.[01]*)
12746    shlibpath_overrides_runpath=yes
12747    hardcode_into_libs=yes
12748    ;;
12749  *) # from 3.2 on
12750    shlibpath_overrides_runpath=no
12751    hardcode_into_libs=yes
12752    ;;
12753  esac
12754  ;;
12755
12756gnu*)
12757  version_type=linux
12758  need_lib_prefix=no
12759  need_version=no
12760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12761  soname_spec='${libname}${release}${shared_ext}$major'
12762  shlibpath_var=LD_LIBRARY_PATH
12763  hardcode_into_libs=yes
12764  ;;
12765
12766hpux9* | hpux10* | hpux11*)
12767  # Give a soname corresponding to the major version so that dld.sl refuses to
12768  # link against other versions.
12769  version_type=sunos
12770  need_lib_prefix=no
12771  need_version=no
12772  case $host_cpu in
12773  ia64*)
12774    shrext_cmds='.so'
12775    hardcode_into_libs=yes
12776    dynamic_linker="$host_os dld.so"
12777    shlibpath_var=LD_LIBRARY_PATH
12778    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780    soname_spec='${libname}${release}${shared_ext}$major'
12781    if test "X$HPUX_IA64_MODE" = X32; then
12782      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12783    else
12784      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12785    fi
12786    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12787    ;;
12788   hppa*64*)
12789     shrext_cmds='.sl'
12790     hardcode_into_libs=yes
12791     dynamic_linker="$host_os dld.sl"
12792     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795     soname_spec='${libname}${release}${shared_ext}$major'
12796     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12797     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12798     ;;
12799   *)
12800    shrext_cmds='.sl'
12801    dynamic_linker="$host_os dld.sl"
12802    shlibpath_var=SHLIB_PATH
12803    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12804    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12805    soname_spec='${libname}${release}${shared_ext}$major'
12806    ;;
12807  esac
12808  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12809  postinstall_cmds='chmod 555 $lib'
12810  ;;
12811
12812irix5* | irix6* | nonstopux*)
12813  case $host_os in
12814    nonstopux*) version_type=nonstopux ;;
12815    *)
12816	if test "$lt_cv_prog_gnu_ld" = yes; then
12817		version_type=linux
12818	else
12819		version_type=irix
12820	fi ;;
12821  esac
12822  need_lib_prefix=no
12823  need_version=no
12824  soname_spec='${libname}${release}${shared_ext}$major'
12825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12826  case $host_os in
12827  irix5* | nonstopux*)
12828    libsuff= shlibsuff=
12829    ;;
12830  *)
12831    case $LD in # libtool.m4 will add one of these switches to LD
12832    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12833      libsuff= shlibsuff= libmagic=32-bit;;
12834    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12835      libsuff=32 shlibsuff=N32 libmagic=N32;;
12836    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12837      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12838    *) libsuff= shlibsuff= libmagic=never-match;;
12839    esac
12840    ;;
12841  esac
12842  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12843  shlibpath_overrides_runpath=no
12844  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12845  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12846  hardcode_into_libs=yes
12847  ;;
12848
12849# No shared lib support for Linux oldld, aout, or coff.
12850linux*oldld* | linux*aout* | linux*coff*)
12851  dynamic_linker=no
12852  ;;
12853
12854# This must be Linux ELF.
12855linux*)
12856  version_type=linux
12857  need_lib_prefix=no
12858  need_version=no
12859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860  soname_spec='${libname}${release}${shared_ext}$major'
12861  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12862  shlibpath_var=LD_LIBRARY_PATH
12863  shlibpath_overrides_runpath=no
12864  # This implies no fast_install, which is unacceptable.
12865  # Some rework will be needed to allow for fast_install
12866  # before this can be enabled.
12867  hardcode_into_libs=yes
12868
12869  # Append ld.so.conf contents to the search path
12870  if test -f /etc/ld.so.conf; then
12871    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12872    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12873  fi
12874
12875  # We used to test for /lib/ld.so.1 and disable shared libraries on
12876  # powerpc, because MkLinux only supported shared libraries with the
12877  # GNU dynamic linker.  Since this was broken with cross compilers,
12878  # most powerpc-linux boxes support dynamic linking these days and
12879  # people can always --disable-shared, the test was removed, and we
12880  # assume the GNU/Linux dynamic linker is in use.
12881  dynamic_linker='GNU/Linux ld.so'
12882  ;;
12883
12884knetbsd*-gnu)
12885  version_type=linux
12886  need_lib_prefix=no
12887  need_version=no
12888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12889  soname_spec='${libname}${release}${shared_ext}$major'
12890  shlibpath_var=LD_LIBRARY_PATH
12891  shlibpath_overrides_runpath=no
12892  hardcode_into_libs=yes
12893  dynamic_linker='GNU ld.so'
12894  ;;
12895
12896netbsd*)
12897  version_type=sunos
12898  need_lib_prefix=no
12899  need_version=no
12900  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12902    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12903    dynamic_linker='NetBSD (a.out) ld.so'
12904  else
12905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906    soname_spec='${libname}${release}${shared_ext}$major'
12907    dynamic_linker='NetBSD ld.elf_so'
12908  fi
12909  shlibpath_var=LD_LIBRARY_PATH
12910  shlibpath_overrides_runpath=yes
12911  hardcode_into_libs=yes
12912  ;;
12913
12914newsos6)
12915  version_type=linux
12916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12917  shlibpath_var=LD_LIBRARY_PATH
12918  shlibpath_overrides_runpath=yes
12919  ;;
12920
12921nto-qnx*)
12922  version_type=linux
12923  need_lib_prefix=no
12924  need_version=no
12925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926  soname_spec='${libname}${release}${shared_ext}$major'
12927  shlibpath_var=LD_LIBRARY_PATH
12928  shlibpath_overrides_runpath=yes
12929  ;;
12930
12931openbsd*)
12932  version_type=sunos
12933  need_lib_prefix=no
12934  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12935  case $host_os in
12936    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12937    *)                         need_version=no  ;;
12938  esac
12939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12940  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12941  shlibpath_var=LD_LIBRARY_PATH
12942  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12943    case $host_os in
12944      openbsd2.[89] | openbsd2.[89].*)
12945	shlibpath_overrides_runpath=no
12946	;;
12947      *)
12948	shlibpath_overrides_runpath=yes
12949	;;
12950      esac
12951  else
12952    shlibpath_overrides_runpath=yes
12953  fi
12954  ;;
12955
12956os2*)
12957  libname_spec='$name'
12958  shrext_cmds=".dll"
12959  need_lib_prefix=no
12960  library_names_spec='$libname${shared_ext} $libname.a'
12961  dynamic_linker='OS/2 ld.exe'
12962  shlibpath_var=LIBPATH
12963  ;;
12964
12965osf3* | osf4* | osf5*)
12966  version_type=osf
12967  need_lib_prefix=no
12968  need_version=no
12969  soname_spec='${libname}${release}${shared_ext}$major'
12970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12971  shlibpath_var=LD_LIBRARY_PATH
12972  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12973  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12974  ;;
12975
12976sco3.2v5*)
12977  version_type=osf
12978  soname_spec='${libname}${release}${shared_ext}$major'
12979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980  shlibpath_var=LD_LIBRARY_PATH
12981  ;;
12982
12983solaris*)
12984  version_type=linux
12985  need_lib_prefix=no
12986  need_version=no
12987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988  soname_spec='${libname}${release}${shared_ext}$major'
12989  shlibpath_var=LD_LIBRARY_PATH
12990  shlibpath_overrides_runpath=yes
12991  hardcode_into_libs=yes
12992  # ldd complains unless libraries are executable
12993  postinstall_cmds='chmod +x $lib'
12994  ;;
12995
12996sunos4*)
12997  version_type=sunos
12998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12999  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13000  shlibpath_var=LD_LIBRARY_PATH
13001  shlibpath_overrides_runpath=yes
13002  if test "$with_gnu_ld" = yes; then
13003    need_lib_prefix=no
13004  fi
13005  need_version=yes
13006  ;;
13007
13008sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13009  version_type=linux
13010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011  soname_spec='${libname}${release}${shared_ext}$major'
13012  shlibpath_var=LD_LIBRARY_PATH
13013  case $host_vendor in
13014    sni)
13015      shlibpath_overrides_runpath=no
13016      need_lib_prefix=no
13017      export_dynamic_flag_spec='${wl}-Blargedynsym'
13018      runpath_var=LD_RUN_PATH
13019      ;;
13020    siemens)
13021      need_lib_prefix=no
13022      ;;
13023    motorola)
13024      need_lib_prefix=no
13025      need_version=no
13026      shlibpath_overrides_runpath=no
13027      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13028      ;;
13029  esac
13030  ;;
13031
13032sysv4*MP*)
13033  if test -d /usr/nec ;then
13034    version_type=linux
13035    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13036    soname_spec='$libname${shared_ext}.$major'
13037    shlibpath_var=LD_LIBRARY_PATH
13038  fi
13039  ;;
13040
13041uts4*)
13042  version_type=linux
13043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044  soname_spec='${libname}${release}${shared_ext}$major'
13045  shlibpath_var=LD_LIBRARY_PATH
13046  ;;
13047
13048*)
13049  dynamic_linker=no
13050  ;;
13051esac
13052echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13053echo "${ECHO_T}$dynamic_linker" >&6
13054test "$dynamic_linker" = no && can_build_shared=no
13055
13056echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13057echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13058hardcode_action_CXX=
13059if test -n "$hardcode_libdir_flag_spec_CXX" || \
13060   test -n "$runpath_var_CXX" || \
13061   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13062
13063  # We can hardcode non-existant directories.
13064  if test "$hardcode_direct_CXX" != no &&
13065     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13066     # have to relink, otherwise we might link with an installed library
13067     # when we should be linking with a yet-to-be-installed one
13068     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13069     test "$hardcode_minus_L_CXX" != no; then
13070    # Linking always hardcodes the temporary library directory.
13071    hardcode_action_CXX=relink
13072  else
13073    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13074    hardcode_action_CXX=immediate
13075  fi
13076else
13077  # We cannot hardcode anything, or else we can only hardcode existing
13078  # directories.
13079  hardcode_action_CXX=unsupported
13080fi
13081echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13082echo "${ECHO_T}$hardcode_action_CXX" >&6
13083
13084if test "$hardcode_action_CXX" = relink; then
13085  # Fast installation is not supported
13086  enable_fast_install=no
13087elif test "$shlibpath_overrides_runpath" = yes ||
13088     test "$enable_shared" = no; then
13089  # Fast installation is not necessary
13090  enable_fast_install=needless
13091fi
13092
13093striplib=
13094old_striplib=
13095echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13096echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13097if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13098  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13099  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13100  echo "$as_me:$LINENO: result: yes" >&5
13101echo "${ECHO_T}yes" >&6
13102else
13103# FIXME - insert some real tests, host_os isn't really good enough
13104  case $host_os in
13105   darwin*)
13106       if test -n "$STRIP" ; then
13107         striplib="$STRIP -x"
13108         echo "$as_me:$LINENO: result: yes" >&5
13109echo "${ECHO_T}yes" >&6
13110       else
13111  echo "$as_me:$LINENO: result: no" >&5
13112echo "${ECHO_T}no" >&6
13113fi
13114       ;;
13115   *)
13116  echo "$as_me:$LINENO: result: no" >&5
13117echo "${ECHO_T}no" >&6
13118    ;;
13119  esac
13120fi
13121
13122if test "x$enable_dlopen" != xyes; then
13123  enable_dlopen=unknown
13124  enable_dlopen_self=unknown
13125  enable_dlopen_self_static=unknown
13126else
13127  lt_cv_dlopen=no
13128  lt_cv_dlopen_libs=
13129
13130  case $host_os in
13131  beos*)
13132    lt_cv_dlopen="load_add_on"
13133    lt_cv_dlopen_libs=
13134    lt_cv_dlopen_self=yes
13135    ;;
13136
13137  mingw* | pw32*)
13138    lt_cv_dlopen="LoadLibrary"
13139    lt_cv_dlopen_libs=
13140   ;;
13141
13142  cygwin*)
13143    lt_cv_dlopen="dlopen"
13144    lt_cv_dlopen_libs=
13145   ;;
13146
13147  darwin*)
13148  # if libdl is installed we need to link against it
13149    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13150echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13151if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13152  echo $ECHO_N "(cached) $ECHO_C" >&6
13153else
13154  ac_check_lib_save_LIBS=$LIBS
13155LIBS="-ldl  $LIBS"
13156cat >conftest.$ac_ext <<_ACEOF
13157/* confdefs.h.  */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h.  */
13162
13163/* Override any gcc2 internal prototype to avoid an error.  */
13164#ifdef __cplusplus
13165extern "C"
13166#endif
13167/* We use char because int might match the return type of a gcc2
13168   builtin and then its argument prototype would still apply.  */
13169char dlopen ();
13170#ifdef F77_DUMMY_MAIN
13171
13172#  ifdef __cplusplus
13173     extern "C"
13174#  endif
13175   int F77_DUMMY_MAIN() { return 1; }
13176
13177#endif
13178int
13179main ()
13180{
13181dlopen ();
13182  ;
13183  return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext conftest$ac_exeext
13187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13188  (eval $ac_link) 2>conftest.er1
13189  ac_status=$?
13190  grep -v '^ *+' conftest.er1 >conftest.err
13191  rm -f conftest.er1
13192  cat conftest.err >&5
13193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194  (exit $ac_status); } &&
13195	 { ac_try='test -z "$ac_cxx_werror_flag"
13196			 || test ! -s conftest.err'
13197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198  (eval $ac_try) 2>&5
13199  ac_status=$?
13200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201  (exit $ac_status); }; } &&
13202	 { ac_try='test -s conftest$ac_exeext'
13203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204  (eval $ac_try) 2>&5
13205  ac_status=$?
13206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207  (exit $ac_status); }; }; then
13208  ac_cv_lib_dl_dlopen=yes
13209else
13210  echo "$as_me: failed program was:" >&5
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
13213ac_cv_lib_dl_dlopen=no
13214fi
13215rm -f conftest.err conftest.$ac_objext \
13216      conftest$ac_exeext conftest.$ac_ext
13217LIBS=$ac_check_lib_save_LIBS
13218fi
13219echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13220echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13221if test $ac_cv_lib_dl_dlopen = yes; then
13222  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13223else
13224
13225    lt_cv_dlopen="dyld"
13226    lt_cv_dlopen_libs=
13227    lt_cv_dlopen_self=yes
13228
13229fi
13230
13231   ;;
13232
13233  haiku*)
13234    lt_cv_dlopen="load_add_on"
13235    lt_cv_dlopen_libs=
13236    lt_cv_dlopen_self=yes
13237    ;;
13238
13239  *)
13240    echo "$as_me:$LINENO: checking for shl_load" >&5
13241echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13242if test "${ac_cv_func_shl_load+set}" = set; then
13243  echo $ECHO_N "(cached) $ECHO_C" >&6
13244else
13245  cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h.  */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h.  */
13251/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13252   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13253#define shl_load innocuous_shl_load
13254
13255/* System header to define __stub macros and hopefully few prototypes,
13256    which can conflict with char shl_load (); below.
13257    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13258    <limits.h> exists even on freestanding compilers.  */
13259
13260#ifdef __STDC__
13261# include <limits.h>
13262#else
13263# include <assert.h>
13264#endif
13265
13266#undef shl_load
13267
13268/* Override any gcc2 internal prototype to avoid an error.  */
13269#ifdef __cplusplus
13270extern "C"
13271{
13272#endif
13273/* We use char because int might match the return type of a gcc2
13274   builtin and then its argument prototype would still apply.  */
13275char shl_load ();
13276/* The GNU C library defines this for functions which it implements
13277    to always fail with ENOSYS.  Some functions are actually named
13278    something starting with __ and the normal name is an alias.  */
13279#if defined (__stub_shl_load) || defined (__stub___shl_load)
13280choke me
13281#else
13282char (*f) () = shl_load;
13283#endif
13284#ifdef __cplusplus
13285}
13286#endif
13287
13288#ifdef F77_DUMMY_MAIN
13289
13290#  ifdef __cplusplus
13291     extern "C"
13292#  endif
13293   int F77_DUMMY_MAIN() { return 1; }
13294
13295#endif
13296int
13297main ()
13298{
13299return f != shl_load;
13300  ;
13301  return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306  (eval $ac_link) 2>conftest.er1
13307  ac_status=$?
13308  grep -v '^ *+' conftest.er1 >conftest.err
13309  rm -f conftest.er1
13310  cat conftest.err >&5
13311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312  (exit $ac_status); } &&
13313	 { ac_try='test -z "$ac_cxx_werror_flag"
13314			 || test ! -s conftest.err'
13315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316  (eval $ac_try) 2>&5
13317  ac_status=$?
13318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); }; } &&
13320	 { ac_try='test -s conftest$ac_exeext'
13321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322  (eval $ac_try) 2>&5
13323  ac_status=$?
13324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325  (exit $ac_status); }; }; then
13326  ac_cv_func_shl_load=yes
13327else
13328  echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331ac_cv_func_shl_load=no
13332fi
13333rm -f conftest.err conftest.$ac_objext \
13334      conftest$ac_exeext conftest.$ac_ext
13335fi
13336echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13337echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13338if test $ac_cv_func_shl_load = yes; then
13339  lt_cv_dlopen="shl_load"
13340else
13341  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13342echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13343if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13344  echo $ECHO_N "(cached) $ECHO_C" >&6
13345else
13346  ac_check_lib_save_LIBS=$LIBS
13347LIBS="-ldld  $LIBS"
13348cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h.  */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h.  */
13354
13355/* Override any gcc2 internal prototype to avoid an error.  */
13356#ifdef __cplusplus
13357extern "C"
13358#endif
13359/* We use char because int might match the return type of a gcc2
13360   builtin and then its argument prototype would still apply.  */
13361char shl_load ();
13362#ifdef F77_DUMMY_MAIN
13363
13364#  ifdef __cplusplus
13365     extern "C"
13366#  endif
13367   int F77_DUMMY_MAIN() { return 1; }
13368
13369#endif
13370int
13371main ()
13372{
13373shl_load ();
13374  ;
13375  return 0;
13376}
13377_ACEOF
13378rm -f conftest.$ac_objext conftest$ac_exeext
13379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380  (eval $ac_link) 2>conftest.er1
13381  ac_status=$?
13382  grep -v '^ *+' conftest.er1 >conftest.err
13383  rm -f conftest.er1
13384  cat conftest.err >&5
13385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386  (exit $ac_status); } &&
13387	 { ac_try='test -z "$ac_cxx_werror_flag"
13388			 || test ! -s conftest.err'
13389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390  (eval $ac_try) 2>&5
13391  ac_status=$?
13392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393  (exit $ac_status); }; } &&
13394	 { ac_try='test -s conftest$ac_exeext'
13395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396  (eval $ac_try) 2>&5
13397  ac_status=$?
13398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399  (exit $ac_status); }; }; then
13400  ac_cv_lib_dld_shl_load=yes
13401else
13402  echo "$as_me: failed program was:" >&5
13403sed 's/^/| /' conftest.$ac_ext >&5
13404
13405ac_cv_lib_dld_shl_load=no
13406fi
13407rm -f conftest.err conftest.$ac_objext \
13408      conftest$ac_exeext conftest.$ac_ext
13409LIBS=$ac_check_lib_save_LIBS
13410fi
13411echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13413if test $ac_cv_lib_dld_shl_load = yes; then
13414  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13415else
13416  echo "$as_me:$LINENO: checking for dlopen" >&5
13417echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13418if test "${ac_cv_func_dlopen+set}" = set; then
13419  echo $ECHO_N "(cached) $ECHO_C" >&6
13420else
13421  cat >conftest.$ac_ext <<_ACEOF
13422/* confdefs.h.  */
13423_ACEOF
13424cat confdefs.h >>conftest.$ac_ext
13425cat >>conftest.$ac_ext <<_ACEOF
13426/* end confdefs.h.  */
13427/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13428   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13429#define dlopen innocuous_dlopen
13430
13431/* System header to define __stub macros and hopefully few prototypes,
13432    which can conflict with char dlopen (); below.
13433    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13434    <limits.h> exists even on freestanding compilers.  */
13435
13436#ifdef __STDC__
13437# include <limits.h>
13438#else
13439# include <assert.h>
13440#endif
13441
13442#undef dlopen
13443
13444/* Override any gcc2 internal prototype to avoid an error.  */
13445#ifdef __cplusplus
13446extern "C"
13447{
13448#endif
13449/* We use char because int might match the return type of a gcc2
13450   builtin and then its argument prototype would still apply.  */
13451char dlopen ();
13452/* The GNU C library defines this for functions which it implements
13453    to always fail with ENOSYS.  Some functions are actually named
13454    something starting with __ and the normal name is an alias.  */
13455#if defined (__stub_dlopen) || defined (__stub___dlopen)
13456choke me
13457#else
13458char (*f) () = dlopen;
13459#endif
13460#ifdef __cplusplus
13461}
13462#endif
13463
13464#ifdef F77_DUMMY_MAIN
13465
13466#  ifdef __cplusplus
13467     extern "C"
13468#  endif
13469   int F77_DUMMY_MAIN() { return 1; }
13470
13471#endif
13472int
13473main ()
13474{
13475return f != dlopen;
13476  ;
13477  return 0;
13478}
13479_ACEOF
13480rm -f conftest.$ac_objext conftest$ac_exeext
13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482  (eval $ac_link) 2>conftest.er1
13483  ac_status=$?
13484  grep -v '^ *+' conftest.er1 >conftest.err
13485  rm -f conftest.er1
13486  cat conftest.err >&5
13487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488  (exit $ac_status); } &&
13489	 { ac_try='test -z "$ac_cxx_werror_flag"
13490			 || test ! -s conftest.err'
13491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492  (eval $ac_try) 2>&5
13493  ac_status=$?
13494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495  (exit $ac_status); }; } &&
13496	 { ac_try='test -s conftest$ac_exeext'
13497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498  (eval $ac_try) 2>&5
13499  ac_status=$?
13500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); }; }; then
13502  ac_cv_func_dlopen=yes
13503else
13504  echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507ac_cv_func_dlopen=no
13508fi
13509rm -f conftest.err conftest.$ac_objext \
13510      conftest$ac_exeext conftest.$ac_ext
13511fi
13512echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13513echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13514if test $ac_cv_func_dlopen = yes; then
13515  lt_cv_dlopen="dlopen"
13516else
13517  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13518echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13519if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13520  echo $ECHO_N "(cached) $ECHO_C" >&6
13521else
13522  ac_check_lib_save_LIBS=$LIBS
13523LIBS="-ldl  $LIBS"
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h.  */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h.  */
13530
13531/* Override any gcc2 internal prototype to avoid an error.  */
13532#ifdef __cplusplus
13533extern "C"
13534#endif
13535/* We use char because int might match the return type of a gcc2
13536   builtin and then its argument prototype would still apply.  */
13537char dlopen ();
13538#ifdef F77_DUMMY_MAIN
13539
13540#  ifdef __cplusplus
13541     extern "C"
13542#  endif
13543   int F77_DUMMY_MAIN() { return 1; }
13544
13545#endif
13546int
13547main ()
13548{
13549dlopen ();
13550  ;
13551  return 0;
13552}
13553_ACEOF
13554rm -f conftest.$ac_objext conftest$ac_exeext
13555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556  (eval $ac_link) 2>conftest.er1
13557  ac_status=$?
13558  grep -v '^ *+' conftest.er1 >conftest.err
13559  rm -f conftest.er1
13560  cat conftest.err >&5
13561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562  (exit $ac_status); } &&
13563	 { ac_try='test -z "$ac_cxx_werror_flag"
13564			 || test ! -s conftest.err'
13565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566  (eval $ac_try) 2>&5
13567  ac_status=$?
13568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569  (exit $ac_status); }; } &&
13570	 { ac_try='test -s conftest$ac_exeext'
13571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572  (eval $ac_try) 2>&5
13573  ac_status=$?
13574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575  (exit $ac_status); }; }; then
13576  ac_cv_lib_dl_dlopen=yes
13577else
13578  echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
13581ac_cv_lib_dl_dlopen=no
13582fi
13583rm -f conftest.err conftest.$ac_objext \
13584      conftest$ac_exeext conftest.$ac_ext
13585LIBS=$ac_check_lib_save_LIBS
13586fi
13587echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13588echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13589if test $ac_cv_lib_dl_dlopen = yes; then
13590  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13591else
13592  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13593echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13594if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13595  echo $ECHO_N "(cached) $ECHO_C" >&6
13596else
13597  ac_check_lib_save_LIBS=$LIBS
13598LIBS="-lsvld  $LIBS"
13599cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h.  */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h.  */
13605
13606/* Override any gcc2 internal prototype to avoid an error.  */
13607#ifdef __cplusplus
13608extern "C"
13609#endif
13610/* We use char because int might match the return type of a gcc2
13611   builtin and then its argument prototype would still apply.  */
13612char dlopen ();
13613#ifdef F77_DUMMY_MAIN
13614
13615#  ifdef __cplusplus
13616     extern "C"
13617#  endif
13618   int F77_DUMMY_MAIN() { return 1; }
13619
13620#endif
13621int
13622main ()
13623{
13624dlopen ();
13625  ;
13626  return 0;
13627}
13628_ACEOF
13629rm -f conftest.$ac_objext conftest$ac_exeext
13630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631  (eval $ac_link) 2>conftest.er1
13632  ac_status=$?
13633  grep -v '^ *+' conftest.er1 >conftest.err
13634  rm -f conftest.er1
13635  cat conftest.err >&5
13636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637  (exit $ac_status); } &&
13638	 { ac_try='test -z "$ac_cxx_werror_flag"
13639			 || test ! -s conftest.err'
13640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641  (eval $ac_try) 2>&5
13642  ac_status=$?
13643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644  (exit $ac_status); }; } &&
13645	 { ac_try='test -s conftest$ac_exeext'
13646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647  (eval $ac_try) 2>&5
13648  ac_status=$?
13649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650  (exit $ac_status); }; }; then
13651  ac_cv_lib_svld_dlopen=yes
13652else
13653  echo "$as_me: failed program was:" >&5
13654sed 's/^/| /' conftest.$ac_ext >&5
13655
13656ac_cv_lib_svld_dlopen=no
13657fi
13658rm -f conftest.err conftest.$ac_objext \
13659      conftest$ac_exeext conftest.$ac_ext
13660LIBS=$ac_check_lib_save_LIBS
13661fi
13662echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13663echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13664if test $ac_cv_lib_svld_dlopen = yes; then
13665  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13666else
13667  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13668echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13669if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13670  echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672  ac_check_lib_save_LIBS=$LIBS
13673LIBS="-ldld  $LIBS"
13674cat >conftest.$ac_ext <<_ACEOF
13675/* confdefs.h.  */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h.  */
13680
13681/* Override any gcc2 internal prototype to avoid an error.  */
13682#ifdef __cplusplus
13683extern "C"
13684#endif
13685/* We use char because int might match the return type of a gcc2
13686   builtin and then its argument prototype would still apply.  */
13687char dld_link ();
13688#ifdef F77_DUMMY_MAIN
13689
13690#  ifdef __cplusplus
13691     extern "C"
13692#  endif
13693   int F77_DUMMY_MAIN() { return 1; }
13694
13695#endif
13696int
13697main ()
13698{
13699dld_link ();
13700  ;
13701  return 0;
13702}
13703_ACEOF
13704rm -f conftest.$ac_objext conftest$ac_exeext
13705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706  (eval $ac_link) 2>conftest.er1
13707  ac_status=$?
13708  grep -v '^ *+' conftest.er1 >conftest.err
13709  rm -f conftest.er1
13710  cat conftest.err >&5
13711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712  (exit $ac_status); } &&
13713	 { ac_try='test -z "$ac_cxx_werror_flag"
13714			 || test ! -s conftest.err'
13715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716  (eval $ac_try) 2>&5
13717  ac_status=$?
13718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719  (exit $ac_status); }; } &&
13720	 { ac_try='test -s conftest$ac_exeext'
13721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722  (eval $ac_try) 2>&5
13723  ac_status=$?
13724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725  (exit $ac_status); }; }; then
13726  ac_cv_lib_dld_dld_link=yes
13727else
13728  echo "$as_me: failed program was:" >&5
13729sed 's/^/| /' conftest.$ac_ext >&5
13730
13731ac_cv_lib_dld_dld_link=no
13732fi
13733rm -f conftest.err conftest.$ac_objext \
13734      conftest$ac_exeext conftest.$ac_ext
13735LIBS=$ac_check_lib_save_LIBS
13736fi
13737echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13738echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13739if test $ac_cv_lib_dld_dld_link = yes; then
13740  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13741fi
13742
13743
13744fi
13745
13746
13747fi
13748
13749
13750fi
13751
13752
13753fi
13754
13755
13756fi
13757
13758    ;;
13759  esac
13760
13761  if test "x$lt_cv_dlopen" != xno; then
13762    enable_dlopen=yes
13763  else
13764    enable_dlopen=no
13765  fi
13766
13767  case $lt_cv_dlopen in
13768  dlopen)
13769    save_CPPFLAGS="$CPPFLAGS"
13770    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13771
13772    save_LDFLAGS="$LDFLAGS"
13773    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13774
13775    save_LIBS="$LIBS"
13776    LIBS="$lt_cv_dlopen_libs $LIBS"
13777
13778    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13779echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13780if test "${lt_cv_dlopen_self+set}" = set; then
13781  echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783  	  if test "$cross_compiling" = yes; then :
13784  lt_cv_dlopen_self=cross
13785else
13786  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13787  lt_status=$lt_dlunknown
13788  cat > conftest.$ac_ext <<EOF
13789#line 13789 "configure"
13790#include "confdefs.h"
13791
13792#if HAVE_DLFCN_H
13793#include <dlfcn.h>
13794#endif
13795
13796#include <stdio.h>
13797
13798#ifdef RTLD_GLOBAL
13799#  define LT_DLGLOBAL		RTLD_GLOBAL
13800#else
13801#  ifdef DL_GLOBAL
13802#    define LT_DLGLOBAL		DL_GLOBAL
13803#  else
13804#    define LT_DLGLOBAL		0
13805#  endif
13806#endif
13807
13808/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13809   find out it does not work in some platform. */
13810#ifndef LT_DLLAZY_OR_NOW
13811#  ifdef RTLD_LAZY
13812#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13813#  else
13814#    ifdef DL_LAZY
13815#      define LT_DLLAZY_OR_NOW		DL_LAZY
13816#    else
13817#      ifdef RTLD_NOW
13818#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13819#      else
13820#        ifdef DL_NOW
13821#          define LT_DLLAZY_OR_NOW	DL_NOW
13822#        else
13823#          define LT_DLLAZY_OR_NOW	0
13824#        endif
13825#      endif
13826#    endif
13827#  endif
13828#endif
13829
13830#ifdef __cplusplus
13831extern "C" void exit (int);
13832#endif
13833
13834void fnord() { int i=42;}
13835int main ()
13836{
13837  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13838  int status = $lt_dlunknown;
13839
13840  if (self)
13841    {
13842      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13843      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13844      /* dlclose (self); */
13845    }
13846
13847    exit (status);
13848}
13849EOF
13850  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851  (eval $ac_link) 2>&5
13852  ac_status=$?
13853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13855    (./conftest; exit; ) >&5 2>/dev/null
13856    lt_status=$?
13857    case x$lt_status in
13858      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13859      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13860      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13861    esac
13862  else :
13863    # compilation failed
13864    lt_cv_dlopen_self=no
13865  fi
13866fi
13867rm -fr conftest*
13868
13869
13870fi
13871echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13872echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13873
13874    if test "x$lt_cv_dlopen_self" = xyes; then
13875      LDFLAGS="$LDFLAGS $link_static_flag"
13876      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13877echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13878if test "${lt_cv_dlopen_self_static+set}" = set; then
13879  echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881  	  if test "$cross_compiling" = yes; then :
13882  lt_cv_dlopen_self_static=cross
13883else
13884  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13885  lt_status=$lt_dlunknown
13886  cat > conftest.$ac_ext <<EOF
13887#line 13887 "configure"
13888#include "confdefs.h"
13889
13890#if HAVE_DLFCN_H
13891#include <dlfcn.h>
13892#endif
13893
13894#include <stdio.h>
13895
13896#ifdef RTLD_GLOBAL
13897#  define LT_DLGLOBAL		RTLD_GLOBAL
13898#else
13899#  ifdef DL_GLOBAL
13900#    define LT_DLGLOBAL		DL_GLOBAL
13901#  else
13902#    define LT_DLGLOBAL		0
13903#  endif
13904#endif
13905
13906/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13907   find out it does not work in some platform. */
13908#ifndef LT_DLLAZY_OR_NOW
13909#  ifdef RTLD_LAZY
13910#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13911#  else
13912#    ifdef DL_LAZY
13913#      define LT_DLLAZY_OR_NOW		DL_LAZY
13914#    else
13915#      ifdef RTLD_NOW
13916#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13917#      else
13918#        ifdef DL_NOW
13919#          define LT_DLLAZY_OR_NOW	DL_NOW
13920#        else
13921#          define LT_DLLAZY_OR_NOW	0
13922#        endif
13923#      endif
13924#    endif
13925#  endif
13926#endif
13927
13928#ifdef __cplusplus
13929extern "C" void exit (int);
13930#endif
13931
13932void fnord() { int i=42;}
13933int main ()
13934{
13935  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13936  int status = $lt_dlunknown;
13937
13938  if (self)
13939    {
13940      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13941      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13942      /* dlclose (self); */
13943    }
13944
13945    exit (status);
13946}
13947EOF
13948  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13949  (eval $ac_link) 2>&5
13950  ac_status=$?
13951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13953    (./conftest; exit; ) >&5 2>/dev/null
13954    lt_status=$?
13955    case x$lt_status in
13956      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13957      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13958      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13959    esac
13960  else :
13961    # compilation failed
13962    lt_cv_dlopen_self_static=no
13963  fi
13964fi
13965rm -fr conftest*
13966
13967
13968fi
13969echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13970echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13971    fi
13972
13973    CPPFLAGS="$save_CPPFLAGS"
13974    LDFLAGS="$save_LDFLAGS"
13975    LIBS="$save_LIBS"
13976    ;;
13977  esac
13978
13979  case $lt_cv_dlopen_self in
13980  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13981  *) enable_dlopen_self=unknown ;;
13982  esac
13983
13984  case $lt_cv_dlopen_self_static in
13985  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13986  *) enable_dlopen_self_static=unknown ;;
13987  esac
13988fi
13989
13990
13991# The else clause should only fire when bootstrapping the
13992# libtool distribution, otherwise you forgot to ship ltmain.sh
13993# with your package, and you will get complaints that there are
13994# no rules to generate ltmain.sh.
13995if test -f "$ltmain"; then
13996  # See if we are running on zsh, and set the options which allow our commands through
13997  # without removal of \ escapes.
13998  if test -n "${ZSH_VERSION+set}" ; then
13999    setopt NO_GLOB_SUBST
14000  fi
14001  # Now quote all the things that may contain metacharacters while being
14002  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14003  # variables and quote the copies for generation of the libtool script.
14004  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14005    SED SHELL STRIP \
14006    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14007    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14008    deplibs_check_method reload_flag reload_cmds need_locks \
14009    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14010    lt_cv_sys_global_symbol_to_c_name_address \
14011    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14012    old_postinstall_cmds old_postuninstall_cmds \
14013    compiler_CXX \
14014    CC_CXX \
14015    LD_CXX \
14016    lt_prog_compiler_wl_CXX \
14017    lt_prog_compiler_pic_CXX \
14018    lt_prog_compiler_static_CXX \
14019    lt_prog_compiler_no_builtin_flag_CXX \
14020    export_dynamic_flag_spec_CXX \
14021    thread_safe_flag_spec_CXX \
14022    whole_archive_flag_spec_CXX \
14023    enable_shared_with_static_runtimes_CXX \
14024    old_archive_cmds_CXX \
14025    old_archive_from_new_cmds_CXX \
14026    predep_objects_CXX \
14027    postdep_objects_CXX \
14028    predeps_CXX \
14029    postdeps_CXX \
14030    compiler_lib_search_path_CXX \
14031    archive_cmds_CXX \
14032    archive_expsym_cmds_CXX \
14033    postinstall_cmds_CXX \
14034    postuninstall_cmds_CXX \
14035    old_archive_from_expsyms_cmds_CXX \
14036    allow_undefined_flag_CXX \
14037    no_undefined_flag_CXX \
14038    export_symbols_cmds_CXX \
14039    hardcode_libdir_flag_spec_CXX \
14040    hardcode_libdir_flag_spec_ld_CXX \
14041    hardcode_libdir_separator_CXX \
14042    hardcode_automatic_CXX \
14043    module_cmds_CXX \
14044    module_expsym_cmds_CXX \
14045    lt_cv_prog_compiler_c_o_CXX \
14046    exclude_expsyms_CXX \
14047    include_expsyms_CXX; do
14048
14049    case $var in
14050    old_archive_cmds_CXX | \
14051    old_archive_from_new_cmds_CXX | \
14052    archive_cmds_CXX | \
14053    archive_expsym_cmds_CXX | \
14054    module_cmds_CXX | \
14055    module_expsym_cmds_CXX | \
14056    old_archive_from_expsyms_cmds_CXX | \
14057    export_symbols_cmds_CXX | \
14058    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14059    postinstall_cmds | postuninstall_cmds | \
14060    old_postinstall_cmds | old_postuninstall_cmds | \
14061    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14062      # Double-quote double-evaled strings.
14063      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14064      ;;
14065    *)
14066      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14067      ;;
14068    esac
14069  done
14070
14071  case $lt_echo in
14072  *'\$0 --fallback-echo"')
14073    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14074    ;;
14075  esac
14076
14077cfgfile="$ofile"
14078
14079  cat <<__EOF__ >> "$cfgfile"
14080# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14081
14082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14083
14084# Shell to use when invoking shell scripts.
14085SHELL=$lt_SHELL
14086
14087# Whether or not to build shared libraries.
14088build_libtool_libs=$enable_shared
14089
14090# Whether or not to build static libraries.
14091build_old_libs=$enable_static
14092
14093# Whether or not to add -lc for building shared libraries.
14094build_libtool_need_lc=$archive_cmds_need_lc_CXX
14095
14096# Whether or not to disallow shared libs when runtime libs are static
14097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14098
14099# Whether or not to optimize for fast installation.
14100fast_install=$enable_fast_install
14101
14102# The host system.
14103host_alias=$host_alias
14104host=$host
14105host_os=$host_os
14106
14107# The build system.
14108build_alias=$build_alias
14109build=$build
14110build_os=$build_os
14111
14112# An echo program that does not interpret backslashes.
14113echo=$lt_echo
14114
14115# The archiver.
14116AR=$lt_AR
14117AR_FLAGS=$lt_AR_FLAGS
14118
14119# A C compiler.
14120LTCC=$lt_LTCC
14121
14122# A language-specific compiler.
14123CC=$lt_compiler_CXX
14124
14125# Is the compiler the GNU C compiler?
14126with_gcc=$GCC_CXX
14127
14128# An ERE matcher.
14129EGREP=$lt_EGREP
14130
14131# The linker used to build libraries.
14132LD=$lt_LD_CXX
14133
14134# Whether we need hard or soft links.
14135LN_S=$lt_LN_S
14136
14137# A BSD-compatible nm program.
14138NM=$lt_NM
14139
14140# A symbol stripping program
14141STRIP=$lt_STRIP
14142
14143# Used to examine libraries when file_magic_cmd begins "file"
14144MAGIC_CMD=$MAGIC_CMD
14145
14146# Used on cygwin: DLL creation program.
14147DLLTOOL="$DLLTOOL"
14148
14149# Used on cygwin: object dumper.
14150OBJDUMP="$OBJDUMP"
14151
14152# Used on cygwin: assembler.
14153AS="$AS"
14154
14155# The name of the directory that contains temporary libtool files.
14156objdir=$objdir
14157
14158# How to create reloadable object files.
14159reload_flag=$lt_reload_flag
14160reload_cmds=$lt_reload_cmds
14161
14162# How to pass a linker flag through the compiler.
14163wl=$lt_lt_prog_compiler_wl_CXX
14164
14165# Object file suffix (normally "o").
14166objext="$ac_objext"
14167
14168# Old archive suffix (normally "a").
14169libext="$libext"
14170
14171# Shared library suffix (normally ".so").
14172shrext_cmds='$shrext_cmds'
14173
14174# Executable file suffix (normally "").
14175exeext="$exeext"
14176
14177# Additional compiler flags for building library objects.
14178pic_flag=$lt_lt_prog_compiler_pic_CXX
14179pic_mode=$pic_mode
14180
14181# What is the maximum length of a command?
14182max_cmd_len=$lt_cv_sys_max_cmd_len
14183
14184# Does compiler simultaneously support -c and -o options?
14185compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14186
14187# Must we lock files when doing compilation?
14188need_locks=$lt_need_locks
14189
14190# Do we need the lib prefix for modules?
14191need_lib_prefix=$need_lib_prefix
14192
14193# Do we need a version for libraries?
14194need_version=$need_version
14195
14196# Whether dlopen is supported.
14197dlopen_support=$enable_dlopen
14198
14199# Whether dlopen of programs is supported.
14200dlopen_self=$enable_dlopen_self
14201
14202# Whether dlopen of statically linked programs is supported.
14203dlopen_self_static=$enable_dlopen_self_static
14204
14205# Compiler flag to prevent dynamic linking.
14206link_static_flag=$lt_lt_prog_compiler_static_CXX
14207
14208# Compiler flag to turn off builtin functions.
14209no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14210
14211# Compiler flag to allow reflexive dlopens.
14212export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14213
14214# Compiler flag to generate shared objects directly from archives.
14215whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14216
14217# Compiler flag to generate thread-safe objects.
14218thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14219
14220# Library versioning type.
14221version_type=$version_type
14222
14223# Format of library name prefix.
14224libname_spec=$lt_libname_spec
14225
14226# List of archive names.  First name is the real one, the rest are links.
14227# The last name is the one that the linker finds with -lNAME.
14228library_names_spec=$lt_library_names_spec
14229
14230# The coded name of the library, if different from the real name.
14231soname_spec=$lt_soname_spec
14232
14233# Commands used to build and install an old-style archive.
14234RANLIB=$lt_RANLIB
14235old_archive_cmds=$lt_old_archive_cmds_CXX
14236old_postinstall_cmds=$lt_old_postinstall_cmds
14237old_postuninstall_cmds=$lt_old_postuninstall_cmds
14238
14239# Create an old-style archive from a shared archive.
14240old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14241
14242# Create a temporary old-style archive to link instead of a shared archive.
14243old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14244
14245# Commands used to build and install a shared archive.
14246archive_cmds=$lt_archive_cmds_CXX
14247archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14248postinstall_cmds=$lt_postinstall_cmds
14249postuninstall_cmds=$lt_postuninstall_cmds
14250
14251# Commands used to build a loadable module (assumed same as above if empty)
14252module_cmds=$lt_module_cmds_CXX
14253module_expsym_cmds=$lt_module_expsym_cmds_CXX
14254
14255# Commands to strip libraries.
14256old_striplib=$lt_old_striplib
14257striplib=$lt_striplib
14258
14259# Dependencies to place before the objects being linked to create a
14260# shared library.
14261predep_objects=$lt_predep_objects_CXX
14262
14263# Dependencies to place after the objects being linked to create a
14264# shared library.
14265postdep_objects=$lt_postdep_objects_CXX
14266
14267# Dependencies to place before the objects being linked to create a
14268# shared library.
14269predeps=$lt_predeps_CXX
14270
14271# Dependencies to place after the objects being linked to create a
14272# shared library.
14273postdeps=$lt_postdeps_CXX
14274
14275# The library search path used internally by the compiler when linking
14276# a shared library.
14277compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14278
14279# Method to check whether dependent libraries are shared objects.
14280deplibs_check_method=$lt_deplibs_check_method
14281
14282# Command to use when deplibs_check_method == file_magic.
14283file_magic_cmd=$lt_file_magic_cmd
14284
14285# Flag that allows shared libraries with undefined symbols to be built.
14286allow_undefined_flag=$lt_allow_undefined_flag_CXX
14287
14288# Flag that forces no undefined symbols.
14289no_undefined_flag=$lt_no_undefined_flag_CXX
14290
14291# Commands used to finish a libtool library installation in a directory.
14292finish_cmds=$lt_finish_cmds
14293
14294# Same as above, but a single script fragment to be evaled but not shown.
14295finish_eval=$lt_finish_eval
14296
14297# Take the output of nm and produce a listing of raw symbols and C names.
14298global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14299
14300# Transform the output of nm in a proper C declaration
14301global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14302
14303# Transform the output of nm in a C name address pair
14304global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14305
14306# This is the shared library runtime path variable.
14307runpath_var=$runpath_var
14308
14309# This is the shared library path variable.
14310shlibpath_var=$shlibpath_var
14311
14312# Is shlibpath searched before the hard-coded library search path?
14313shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14314
14315# How to hardcode a shared library path into an executable.
14316hardcode_action=$hardcode_action_CXX
14317
14318# Whether we should hardcode library paths into libraries.
14319hardcode_into_libs=$hardcode_into_libs
14320
14321# Flag to hardcode \$libdir into a binary during linking.
14322# This must work even if \$libdir does not exist.
14323hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14324
14325# If ld is used when linking, flag to hardcode \$libdir into
14326# a binary during linking. This must work even if \$libdir does
14327# not exist.
14328hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14329
14330# Whether we need a single -rpath flag with a separated argument.
14331hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14332
14333# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14334# resulting binary.
14335hardcode_direct=$hardcode_direct_CXX
14336
14337# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14338# resulting binary.
14339hardcode_minus_L=$hardcode_minus_L_CXX
14340
14341# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14342# the resulting binary.
14343hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14344
14345# Set to yes if building a shared library automatically hardcodes DIR into the library
14346# and all subsequent libraries and executables linked against it.
14347hardcode_automatic=$hardcode_automatic_CXX
14348
14349# Variables whose values should be saved in libtool wrapper scripts and
14350# restored at relink time.
14351variables_saved_for_relink="$variables_saved_for_relink"
14352
14353# Whether libtool must link a program against all its dependency libraries.
14354link_all_deplibs=$link_all_deplibs_CXX
14355
14356# Compile-time system search path for libraries
14357sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14358
14359# Run-time system search path for libraries
14360sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14361
14362# Fix the shell variable \$srcfile for the compiler.
14363fix_srcfile_path="$fix_srcfile_path_CXX"
14364
14365# Set to yes if exported symbols are required.
14366always_export_symbols=$always_export_symbols_CXX
14367
14368# The commands to list exported symbols.
14369export_symbols_cmds=$lt_export_symbols_cmds_CXX
14370
14371# The commands to extract the exported symbol list from a shared archive.
14372extract_expsyms_cmds=$lt_extract_expsyms_cmds
14373
14374# Symbols that should not be listed in the preloaded symbols.
14375exclude_expsyms=$lt_exclude_expsyms_CXX
14376
14377# Symbols that must always be exported.
14378include_expsyms=$lt_include_expsyms_CXX
14379
14380# ### END LIBTOOL TAG CONFIG: $tagname
14381
14382__EOF__
14383
14384
14385else
14386  # If there is no Makefile yet, we rely on a make rule to execute
14387  # `config.status --recheck' to rerun these tests and create the
14388  # libtool script then.
14389  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14390  if test -f "$ltmain_in"; then
14391    test -f Makefile && make "$ltmain"
14392  fi
14393fi
14394
14395
14396ac_ext=c
14397ac_cpp='$CPP $CPPFLAGS'
14398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400ac_compiler_gnu=$ac_cv_c_compiler_gnu
14401
14402CC=$lt_save_CC
14403LDCXX=$LD
14404LD=$lt_save_LD
14405GCC=$lt_save_GCC
14406with_gnu_ldcxx=$with_gnu_ld
14407with_gnu_ld=$lt_save_with_gnu_ld
14408lt_cv_path_LDCXX=$lt_cv_path_LD
14409lt_cv_path_LD=$lt_save_path_LD
14410lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14411lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14412
14413	else
14414	  tagname=""
14415	fi
14416	;;
14417
14418      F77)
14419	if test -n "$F77" && test "X$F77" != "Xno"; then
14420
14421ac_ext=f
14422ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14423ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14424ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14425
14426
14427archive_cmds_need_lc_F77=no
14428allow_undefined_flag_F77=
14429always_export_symbols_F77=no
14430archive_expsym_cmds_F77=
14431export_dynamic_flag_spec_F77=
14432hardcode_direct_F77=no
14433hardcode_libdir_flag_spec_F77=
14434hardcode_libdir_flag_spec_ld_F77=
14435hardcode_libdir_separator_F77=
14436hardcode_minus_L_F77=no
14437hardcode_automatic_F77=no
14438module_cmds_F77=
14439module_expsym_cmds_F77=
14440link_all_deplibs_F77=unknown
14441old_archive_cmds_F77=$old_archive_cmds
14442no_undefined_flag_F77=
14443whole_archive_flag_spec_F77=
14444enable_shared_with_static_runtimes_F77=no
14445
14446# Source file extension for f77 test sources.
14447ac_ext=f
14448
14449# Object file extension for compiled f77 test sources.
14450objext=o
14451objext_F77=$objext
14452
14453# Code to be used in simple compile tests
14454lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14455
14456# Code to be used in simple link tests
14457lt_simple_link_test_code="      program t\n      end\n"
14458
14459# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14460
14461# If no C compiler was specified, use CC.
14462LTCC=${LTCC-"$CC"}
14463
14464# Allow CC to be a program name with arguments.
14465compiler=$CC
14466
14467
14468# save warnings/boilerplate of simple test code
14469ac_outfile=conftest.$ac_objext
14470printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14471eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14472_lt_compiler_boilerplate=`cat conftest.err`
14473$rm conftest*
14474
14475ac_outfile=conftest.$ac_objext
14476printf "$lt_simple_link_test_code" >conftest.$ac_ext
14477eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14478_lt_linker_boilerplate=`cat conftest.err`
14479$rm conftest*
14480
14481
14482# Allow CC to be a program name with arguments.
14483lt_save_CC="$CC"
14484CC=${F77-"f77"}
14485compiler=$CC
14486compiler_F77=$CC
14487for cc_temp in $compiler""; do
14488  case $cc_temp in
14489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14491    \-*) ;;
14492    *) break;;
14493  esac
14494done
14495cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14496
14497
14498echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14499echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14500echo "$as_me:$LINENO: result: $can_build_shared" >&5
14501echo "${ECHO_T}$can_build_shared" >&6
14502
14503echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14504echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14505test "$can_build_shared" = "no" && enable_shared=no
14506
14507# On AIX, shared libraries and static libraries use the same namespace, and
14508# are all built from PIC.
14509case $host_os in
14510aix3*)
14511  test "$enable_shared" = yes && enable_static=no
14512  if test -n "$RANLIB"; then
14513    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14514    postinstall_cmds='$RANLIB $lib'
14515  fi
14516  ;;
14517aix4* | aix5*)
14518  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14519    test "$enable_shared" = yes && enable_static=no
14520  fi
14521  ;;
14522esac
14523echo "$as_me:$LINENO: result: $enable_shared" >&5
14524echo "${ECHO_T}$enable_shared" >&6
14525
14526echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14527echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14528# Make sure either enable_shared or enable_static is yes.
14529test "$enable_shared" = yes || enable_static=yes
14530echo "$as_me:$LINENO: result: $enable_static" >&5
14531echo "${ECHO_T}$enable_static" >&6
14532
14533test "$ld_shlibs_F77" = no && can_build_shared=no
14534
14535GCC_F77="$G77"
14536LD_F77="$LD"
14537
14538lt_prog_compiler_wl_F77=
14539lt_prog_compiler_pic_F77=
14540lt_prog_compiler_static_F77=
14541
14542echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14543echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14544
14545  if test "$GCC" = yes; then
14546    lt_prog_compiler_wl_F77='-Wl,'
14547    lt_prog_compiler_static_F77='-static'
14548
14549    case $host_os in
14550      aix*)
14551      # All AIX code is PIC.
14552      if test "$host_cpu" = ia64; then
14553	# AIX 5 now supports IA64 processor
14554	lt_prog_compiler_static_F77='-Bstatic'
14555      fi
14556      ;;
14557
14558    amigaos*)
14559      # FIXME: we need at least 68020 code to build shared libraries, but
14560      # adding the `-m68020' flag to GCC prevents building anything better,
14561      # like `-m68040'.
14562      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14563      ;;
14564
14565    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
14566    | osf5*)
14567      # PIC is the default for these OSes.
14568      ;;
14569
14570    mingw* | pw32* | os2*)
14571      # This hack is so that the source file can tell whether it is being
14572      # built for inclusion in a dll (and should export symbols for example).
14573      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14574      ;;
14575
14576    darwin* | rhapsody*)
14577      # PIC is the default on this platform
14578      # Common symbols not allowed in MH_DYLIB files
14579      lt_prog_compiler_pic_F77='-fno-common'
14580      ;;
14581
14582    msdosdjgpp*)
14583      # Just because we use GCC doesn't mean we suddenly get shared libraries
14584      # on systems that don't support them.
14585      lt_prog_compiler_can_build_shared_F77=no
14586      enable_shared=no
14587      ;;
14588
14589    sysv4*MP*)
14590      if test -d /usr/nec; then
14591	lt_prog_compiler_pic_F77=-Kconform_pic
14592      fi
14593      ;;
14594
14595    hpux*)
14596      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597      # not for PA HP-UX.
14598      case $host_cpu in
14599      hppa*64*|ia64*)
14600	# +Z the default
14601	;;
14602      *)
14603	lt_prog_compiler_pic_F77='-fPIC'
14604	;;
14605      esac
14606      ;;
14607
14608    *)
14609      lt_prog_compiler_pic_F77='-fPIC'
14610      ;;
14611    esac
14612  else
14613    # PORTME Check for flag to pass linker flags through the system compiler.
14614    case $host_os in
14615    aix*)
14616      lt_prog_compiler_wl_F77='-Wl,'
14617      if test "$host_cpu" = ia64; then
14618	# AIX 5 now supports IA64 processor
14619	lt_prog_compiler_static_F77='-Bstatic'
14620      else
14621	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14622      fi
14623      ;;
14624      darwin*)
14625        # PIC is the default on this platform
14626        # Common symbols not allowed in MH_DYLIB files
14627       case $cc_basename in
14628         xlc*)
14629         lt_prog_compiler_pic_F77='-qnocommon'
14630         lt_prog_compiler_wl_F77='-Wl,'
14631         ;;
14632       esac
14633       ;;
14634
14635    mingw* | pw32* | os2*)
14636      # This hack is so that the source file can tell whether it is being
14637      # built for inclusion in a dll (and should export symbols for example).
14638      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14639      ;;
14640
14641    hpux9* | hpux10* | hpux11*)
14642      lt_prog_compiler_wl_F77='-Wl,'
14643      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14644      # not for PA HP-UX.
14645      case $host_cpu in
14646      hppa*64*|ia64*)
14647	# +Z the default
14648	;;
14649      *)
14650	lt_prog_compiler_pic_F77='+Z'
14651	;;
14652      esac
14653      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14654      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14655      ;;
14656
14657    irix5* | irix6* | nonstopux*)
14658      lt_prog_compiler_wl_F77='-Wl,'
14659      # PIC (with -KPIC) is the default.
14660      lt_prog_compiler_static_F77='-non_shared'
14661      ;;
14662
14663    newsos6)
14664      lt_prog_compiler_pic_F77='-KPIC'
14665      lt_prog_compiler_static_F77='-Bstatic'
14666      ;;
14667
14668    linux*)
14669      case $cc_basename in
14670      icc* | ecc*)
14671	lt_prog_compiler_wl_F77='-Wl,'
14672	lt_prog_compiler_pic_F77='-KPIC'
14673	lt_prog_compiler_static_F77='-static'
14674        ;;
14675      pgcc* | pgf77* | pgf90* | pgf95*)
14676        # Portland Group compilers (*not* the Pentium gcc compiler,
14677	# which looks to be a dead project)
14678	lt_prog_compiler_wl_F77='-Wl,'
14679	lt_prog_compiler_pic_F77='-fpic'
14680	lt_prog_compiler_static_F77='-Bstatic'
14681        ;;
14682      ccc*)
14683        lt_prog_compiler_wl_F77='-Wl,'
14684        # All Alpha code is PIC.
14685        lt_prog_compiler_static_F77='-non_shared'
14686        ;;
14687      esac
14688      ;;
14689
14690    osf3* | osf4* | osf5*)
14691      lt_prog_compiler_wl_F77='-Wl,'
14692      # All OSF/1 code is PIC.
14693      lt_prog_compiler_static_F77='-non_shared'
14694      ;;
14695
14696    sco3.2v5*)
14697      lt_prog_compiler_pic_F77='-Kpic'
14698      lt_prog_compiler_static_F77='-dn'
14699      ;;
14700
14701    solaris*)
14702      lt_prog_compiler_pic_F77='-KPIC'
14703      lt_prog_compiler_static_F77='-Bstatic'
14704      case $cc_basename in
14705      f77* | f90* | f95*)
14706	lt_prog_compiler_wl_F77='-Qoption ld ';;
14707      *)
14708	lt_prog_compiler_wl_F77='-Wl,';;
14709      esac
14710      ;;
14711
14712    sunos4*)
14713      lt_prog_compiler_wl_F77='-Qoption ld '
14714      lt_prog_compiler_pic_F77='-PIC'
14715      lt_prog_compiler_static_F77='-Bstatic'
14716      ;;
14717
14718    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14719      lt_prog_compiler_wl_F77='-Wl,'
14720      lt_prog_compiler_pic_F77='-KPIC'
14721      lt_prog_compiler_static_F77='-Bstatic'
14722      ;;
14723
14724    sysv4*MP*)
14725      if test -d /usr/nec ;then
14726	lt_prog_compiler_pic_F77='-Kconform_pic'
14727	lt_prog_compiler_static_F77='-Bstatic'
14728      fi
14729      ;;
14730
14731    unicos*)
14732      lt_prog_compiler_wl_F77='-Wl,'
14733      lt_prog_compiler_can_build_shared_F77=no
14734      ;;
14735
14736    uts4*)
14737      lt_prog_compiler_pic_F77='-pic'
14738      lt_prog_compiler_static_F77='-Bstatic'
14739      ;;
14740
14741    *)
14742      lt_prog_compiler_can_build_shared_F77=no
14743      ;;
14744    esac
14745  fi
14746
14747echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14748echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14749
14750#
14751# Check to make sure the PIC flag actually works.
14752#
14753if test -n "$lt_prog_compiler_pic_F77"; then
14754
14755echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14756echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14757if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14758  echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760  lt_prog_compiler_pic_works_F77=no
14761  ac_outfile=conftest.$ac_objext
14762   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14763   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14764   # Insert the option either (1) after the last *FLAGS variable, or
14765   # (2) before a word containing "conftest.", or (3) at the end.
14766   # Note that $ac_compile itself does not contain backslashes and begins
14767   # with a dollar sign (not a hyphen), so the echo should work correctly.
14768   # The option is referenced via a variable to avoid confusing sed.
14769   lt_compile=`echo "$ac_compile" | $SED \
14770   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14771   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14772   -e 's:$: $lt_compiler_flag:'`
14773   (eval echo "\"\$as_me:14773: $lt_compile\"" >&5)
14774   (eval "$lt_compile" 2>conftest.err)
14775   ac_status=$?
14776   cat conftest.err >&5
14777   echo "$as_me:14777: \$? = $ac_status" >&5
14778   if (exit $ac_status) && test -s "$ac_outfile"; then
14779     # The compiler can only warn and ignore the option if not recognized
14780     # So say no if there are warnings other than the usual output.
14781     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14782     $SED '/^$/d' conftest.err >conftest.er2
14783     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14784       lt_prog_compiler_pic_works_F77=yes
14785     fi
14786   fi
14787   $rm conftest*
14788
14789fi
14790echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14791echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14792
14793if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14794    case $lt_prog_compiler_pic_F77 in
14795     "" | " "*) ;;
14796     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14797     esac
14798else
14799    lt_prog_compiler_pic_F77=
14800     lt_prog_compiler_can_build_shared_F77=no
14801fi
14802
14803fi
14804case $host_os in
14805  # For platforms which do not support PIC, -DPIC is meaningless:
14806  *djgpp*)
14807    lt_prog_compiler_pic_F77=
14808    ;;
14809  *)
14810    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14811    ;;
14812esac
14813
14814echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14815echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14816if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14817  echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
14819  lt_cv_prog_compiler_c_o_F77=no
14820   $rm -r conftest 2>/dev/null
14821   mkdir conftest
14822   cd conftest
14823   mkdir out
14824   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14825
14826   lt_compiler_flag="-o out/conftest2.$ac_objext"
14827   # Insert the option either (1) after the last *FLAGS variable, or
14828   # (2) before a word containing "conftest.", or (3) at the end.
14829   # Note that $ac_compile itself does not contain backslashes and begins
14830   # with a dollar sign (not a hyphen), so the echo should work correctly.
14831   lt_compile=`echo "$ac_compile" | $SED \
14832   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834   -e 's:$: $lt_compiler_flag:'`
14835   (eval echo "\"\$as_me:14835: $lt_compile\"" >&5)
14836   (eval "$lt_compile" 2>out/conftest.err)
14837   ac_status=$?
14838   cat out/conftest.err >&5
14839   echo "$as_me:14839: \$? = $ac_status" >&5
14840   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14841   then
14842     # The compiler can only warn and ignore the option if not recognized
14843     # So say no if there are warnings
14844     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14845     $SED '/^$/d' out/conftest.err >out/conftest.er2
14846     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14847       lt_cv_prog_compiler_c_o_F77=yes
14848     fi
14849   fi
14850   chmod u+w . 2>&5
14851   $rm conftest*
14852   # SGI C++ compiler will create directory out/ii_files/ for
14853   # template instantiation
14854   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14855   $rm out/* && rmdir out
14856   cd ..
14857   rmdir conftest
14858   $rm conftest*
14859
14860fi
14861echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14862echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14863
14864
14865hard_links="nottested"
14866if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14867  # do not overwrite the value of need_locks provided by the user
14868  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14869echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14870  hard_links=yes
14871  $rm conftest*
14872  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14873  touch conftest.a
14874  ln conftest.a conftest.b 2>&5 || hard_links=no
14875  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14876  echo "$as_me:$LINENO: result: $hard_links" >&5
14877echo "${ECHO_T}$hard_links" >&6
14878  if test "$hard_links" = no; then
14879    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14880echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14881    need_locks=warn
14882  fi
14883else
14884  need_locks=no
14885fi
14886
14887echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14888echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14889
14890  runpath_var=
14891  allow_undefined_flag_F77=
14892  enable_shared_with_static_runtimes_F77=no
14893  archive_cmds_F77=
14894  archive_expsym_cmds_F77=
14895  old_archive_From_new_cmds_F77=
14896  old_archive_from_expsyms_cmds_F77=
14897  export_dynamic_flag_spec_F77=
14898  whole_archive_flag_spec_F77=
14899  thread_safe_flag_spec_F77=
14900  hardcode_libdir_flag_spec_F77=
14901  hardcode_libdir_flag_spec_ld_F77=
14902  hardcode_libdir_separator_F77=
14903  hardcode_direct_F77=no
14904  hardcode_minus_L_F77=no
14905  hardcode_shlibpath_var_F77=unsupported
14906  link_all_deplibs_F77=unknown
14907  hardcode_automatic_F77=no
14908  module_cmds_F77=
14909  module_expsym_cmds_F77=
14910  always_export_symbols_F77=no
14911  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14912  # include_expsyms should be a list of space-separated symbols to be *always*
14913  # included in the symbol list
14914  include_expsyms_F77=
14915  # exclude_expsyms can be an extended regexp of symbols to exclude
14916  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14917  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14918  # as well as any symbol that contains `d'.
14919  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14920  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14921  # platforms (ab)use it in PIC code, but their linkers get confused if
14922  # the symbol is explicitly referenced.  Since portable code cannot
14923  # rely on this symbol name, it's probably fine to never include it in
14924  # preloaded symbol tables.
14925  extract_expsyms_cmds=
14926  # Just being paranoid about ensuring that cc_basename is set.
14927  for cc_temp in $compiler""; do
14928  case $cc_temp in
14929    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14930    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14931    \-*) ;;
14932    *) break;;
14933  esac
14934done
14935cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14936
14937  case $host_os in
14938  cygwin* | mingw* | pw32*)
14939    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14940    # When not using gcc, we currently assume that we are using
14941    # Microsoft Visual C++.
14942    if test "$GCC" != yes; then
14943      with_gnu_ld=no
14944    fi
14945    ;;
14946  openbsd*)
14947    with_gnu_ld=no
14948    ;;
14949  esac
14950
14951  ld_shlibs_F77=yes
14952  if test "$with_gnu_ld" = yes; then
14953    # If archive_cmds runs LD, not CC, wlarc should be empty
14954    wlarc='${wl}'
14955
14956    # Set some defaults for GNU ld with shared library support. These
14957    # are reset later if shared libraries are not supported. Putting them
14958    # here allows them to be overridden if necessary.
14959    runpath_var=LD_RUN_PATH
14960    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14961    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14962    # ancient GNU ld didn't support --whole-archive et. al.
14963    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14964	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14965      else
14966  	whole_archive_flag_spec_F77=
14967    fi
14968    supports_anon_versioning=no
14969    case `$LD -v 2>/dev/null` in
14970      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14971      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14972      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14973      *\ 2.11.*) ;; # other 2.11 versions
14974      *) supports_anon_versioning=yes ;;
14975    esac
14976
14977    # See if GNU ld supports shared libraries.
14978    case $host_os in
14979    aix3* | aix4* | aix5*)
14980      # On AIX/PPC, the GNU linker is very broken
14981      if test "$host_cpu" != ia64; then
14982	ld_shlibs_F77=no
14983	cat <<EOF 1>&2
14984
14985*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14986*** to be unable to reliably create shared libraries on AIX.
14987*** Therefore, libtool is disabling shared libraries support.  If you
14988*** really care for shared libraries, you may want to modify your PATH
14989*** so that a non-GNU linker is found, and then restart.
14990
14991EOF
14992      fi
14993      ;;
14994
14995    amigaos*)
14996      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)'
14997      hardcode_libdir_flag_spec_F77='-L$libdir'
14998      hardcode_minus_L_F77=yes
14999
15000      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15001      # that the semantics of dynamic libraries on AmigaOS, at least up
15002      # to version 4, is to share data among multiple programs linked
15003      # with the same dynamic library.  Since this doesn't match the
15004      # behavior of shared libraries on other platforms, we can't use
15005      # them.
15006      ld_shlibs_F77=no
15007      ;;
15008
15009    beos*)
15010      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011	allow_undefined_flag_F77=unsupported
15012	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15013	# support --undefined.  This deserves some investigation.  FIXME
15014	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015      else
15016	ld_shlibs_F77=no
15017      fi
15018      ;;
15019
15020    cygwin* | mingw* | pw32*)
15021      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15022      # as there is no search path for DLLs.
15023      hardcode_libdir_flag_spec_F77='-L$libdir'
15024      allow_undefined_flag_F77=unsupported
15025      always_export_symbols_F77=no
15026      enable_shared_with_static_runtimes_F77=yes
15027      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15028
15029      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15030        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15031	# If the export-symbols file already is a .def file (1st line
15032	# is EXPORTS), use it as is; otherwise, prepend...
15033	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15034	  cp $export_symbols $output_objdir/$soname.def;
15035	else
15036	  echo EXPORTS > $output_objdir/$soname.def;
15037	  cat $export_symbols >> $output_objdir/$soname.def;
15038	fi~
15039	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15040      else
15041	ld_shlibs_F77=no
15042      fi
15043      ;;
15044
15045    haiku*)
15046      allow_undefined_flag_F77=unsupported
15047      archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048      ;;
15049
15050    linux*)
15051      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15052	tmp_addflag=
15053	case $cc_basename,$host_cpu in
15054	pgcc*)				# Portland Group C compiler
15055	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15056	  tmp_addflag=' $pic_flag'
15057	  ;;
15058	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15059	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15060	  tmp_addflag=' $pic_flag -Mnomain' ;;
15061	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15062	  tmp_addflag=' -i_dynamic' ;;
15063	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15064	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15065	ifc* | ifort*)			# Intel Fortran compiler
15066	  tmp_addflag=' -nofor_main' ;;
15067	esac
15068	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15069
15070	if test $supports_anon_versioning = yes; then
15071	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15072  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15073  $echo "local: *; };" >> $output_objdir/$libname.ver~
15074	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15075	fi
15076      else
15077	ld_shlibs_F77=no
15078      fi
15079      ;;
15080
15081    netbsd*)
15082      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15083	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15084	wlarc=
15085      else
15086	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088      fi
15089      ;;
15090
15091    solaris* | sysv5*)
15092      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15093	ld_shlibs_F77=no
15094	cat <<EOF 1>&2
15095
15096*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15097*** create shared libraries on Solaris systems.  Therefore, libtool
15098*** is disabling shared libraries support.  We urge you to upgrade GNU
15099*** binutils to release 2.9.1 or newer.  Another option is to modify
15100*** your PATH or compiler configuration so that the native linker is
15101*** used, and then restart.
15102
15103EOF
15104      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15107      else
15108	ld_shlibs_F77=no
15109      fi
15110      ;;
15111
15112    sunos4*)
15113      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15114      wlarc=
15115      hardcode_direct_F77=yes
15116      hardcode_shlibpath_var_F77=no
15117      ;;
15118
15119    *)
15120      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15121	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15123      else
15124	ld_shlibs_F77=no
15125      fi
15126      ;;
15127    esac
15128
15129    if test "$ld_shlibs_F77" = no; then
15130      runpath_var=
15131      hardcode_libdir_flag_spec_F77=
15132      export_dynamic_flag_spec_F77=
15133      whole_archive_flag_spec_F77=
15134    fi
15135  else
15136    # PORTME fill in a description of your system's linker (not GNU ld)
15137    case $host_os in
15138    aix3*)
15139      allow_undefined_flag_F77=unsupported
15140      always_export_symbols_F77=yes
15141      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'
15142      # Note: this linker hardcodes the directories in LIBPATH if there
15143      # are no directories specified by -L.
15144      hardcode_minus_L_F77=yes
15145      if test "$GCC" = yes && test -z "$link_static_flag"; then
15146	# Neither direct hardcoding nor static linking is supported with a
15147	# broken collect2.
15148	hardcode_direct_F77=unsupported
15149      fi
15150      ;;
15151
15152    aix4* | aix5*)
15153      if test "$host_cpu" = ia64; then
15154	# On IA64, the linker does run time linking by default, so we don't
15155	# have to do anything special.
15156	aix_use_runtimelinking=no
15157	exp_sym_flag='-Bexport'
15158	no_entry_flag=""
15159      else
15160	# If we're using GNU nm, then we don't want the "-C" option.
15161	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15162	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15163	  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'
15164	else
15165	  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'
15166	fi
15167	aix_use_runtimelinking=no
15168
15169	# Test if we are trying to use run time linking or normal
15170	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15171	# need to do runtime linking.
15172	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15173	  for ld_flag in $LDFLAGS; do
15174  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15175  	    aix_use_runtimelinking=yes
15176  	    break
15177  	  fi
15178	  done
15179	esac
15180
15181	exp_sym_flag='-bexport'
15182	no_entry_flag='-bnoentry'
15183      fi
15184
15185      # When large executables or shared objects are built, AIX ld can
15186      # have problems creating the table of contents.  If linking a library
15187      # or program results in "error TOC overflow" add -mminimal-toc to
15188      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15189      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15190
15191      archive_cmds_F77=''
15192      hardcode_direct_F77=yes
15193      hardcode_libdir_separator_F77=':'
15194      link_all_deplibs_F77=yes
15195
15196      if test "$GCC" = yes; then
15197	case $host_os in aix4.[012]|aix4.[012].*)
15198	# We only want to do this on AIX 4.2 and lower, the check
15199	# below for broken collect2 doesn't work under 4.3+
15200	  collect2name=`${CC} -print-prog-name=collect2`
15201	  if test -f "$collect2name" && \
15202  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15203	  then
15204  	  # We have reworked collect2
15205  	  hardcode_direct_F77=yes
15206	  else
15207  	  # We have old collect2
15208  	  hardcode_direct_F77=unsupported
15209  	  # It fails to find uninstalled libraries when the uninstalled
15210  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15211  	  # to unsupported forces relinking
15212  	  hardcode_minus_L_F77=yes
15213  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15214  	  hardcode_libdir_separator_F77=
15215	  fi
15216	esac
15217	shared_flag='-shared'
15218	if test "$aix_use_runtimelinking" = yes; then
15219	  shared_flag="$shared_flag "'${wl}-G'
15220	fi
15221      else
15222	# not using gcc
15223	if test "$host_cpu" = ia64; then
15224  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15225  	# chokes on -Wl,-G. The following line is correct:
15226	  shared_flag='-G'
15227	else
15228  	if test "$aix_use_runtimelinking" = yes; then
15229	    shared_flag='${wl}-G'
15230	  else
15231	    shared_flag='${wl}-bM:SRE'
15232  	fi
15233	fi
15234      fi
15235
15236      # It seems that -bexpall does not export symbols beginning with
15237      # underscore (_), so it is better to generate a list of symbols to export.
15238      always_export_symbols_F77=yes
15239      if test "$aix_use_runtimelinking" = yes; then
15240	# Warning - without using the other runtime loading flags (-brtl),
15241	# -berok will link without error, but may produce a broken library.
15242	allow_undefined_flag_F77='-berok'
15243       # Determine the default libpath from the value encoded in an empty executable.
15244       cat >conftest.$ac_ext <<_ACEOF
15245      program main
15246
15247      end
15248_ACEOF
15249rm -f conftest.$ac_objext conftest$ac_exeext
15250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15251  (eval $ac_link) 2>conftest.er1
15252  ac_status=$?
15253  grep -v '^ *+' conftest.er1 >conftest.err
15254  rm -f conftest.er1
15255  cat conftest.err >&5
15256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257  (exit $ac_status); } &&
15258	 { ac_try='test -z "$ac_f77_werror_flag"
15259			 || test ! -s conftest.err'
15260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261  (eval $ac_try) 2>&5
15262  ac_status=$?
15263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264  (exit $ac_status); }; } &&
15265	 { ac_try='test -s conftest$ac_exeext'
15266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267  (eval $ac_try) 2>&5
15268  ac_status=$?
15269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270  (exit $ac_status); }; }; then
15271
15272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15273}'`
15274# Check for a 64-bit object if we didn't find anything.
15275if 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; }
15276}'`; fi
15277else
15278  echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281fi
15282rm -f conftest.err conftest.$ac_objext \
15283      conftest$ac_exeext conftest.$ac_ext
15284if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15285
15286       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15287	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"
15288       else
15289	if test "$host_cpu" = ia64; then
15290	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15291	  allow_undefined_flag_F77="-z nodefs"
15292	  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"
15293	else
15294	 # Determine the default libpath from the value encoded in an empty executable.
15295	 cat >conftest.$ac_ext <<_ACEOF
15296      program main
15297
15298      end
15299_ACEOF
15300rm -f conftest.$ac_objext conftest$ac_exeext
15301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15302  (eval $ac_link) 2>conftest.er1
15303  ac_status=$?
15304  grep -v '^ *+' conftest.er1 >conftest.err
15305  rm -f conftest.er1
15306  cat conftest.err >&5
15307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308  (exit $ac_status); } &&
15309	 { ac_try='test -z "$ac_f77_werror_flag"
15310			 || test ! -s conftest.err'
15311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312  (eval $ac_try) 2>&5
15313  ac_status=$?
15314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315  (exit $ac_status); }; } &&
15316	 { ac_try='test -s conftest$ac_exeext'
15317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318  (eval $ac_try) 2>&5
15319  ac_status=$?
15320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321  (exit $ac_status); }; }; then
15322
15323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15324}'`
15325# Check for a 64-bit object if we didn't find anything.
15326if 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; }
15327}'`; fi
15328else
15329  echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
15332fi
15333rm -f conftest.err conftest.$ac_objext \
15334      conftest$ac_exeext conftest.$ac_ext
15335if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15336
15337	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15338	  # Warning - without using the other run time loading flags,
15339	  # -berok will link without error, but may produce a broken library.
15340	  no_undefined_flag_F77=' ${wl}-bernotok'
15341	  allow_undefined_flag_F77=' ${wl}-berok'
15342	  # -bexpall does not export symbols beginning with underscore (_)
15343	  always_export_symbols_F77=yes
15344	  # Exported symbols can be pulled into shared objects from archives
15345	  whole_archive_flag_spec_F77=' '
15346	  archive_cmds_need_lc_F77=yes
15347	  # This is similar to how AIX traditionally builds its shared libraries.
15348	  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'
15349	fi
15350      fi
15351      ;;
15352
15353    amigaos*)
15354      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)'
15355      hardcode_libdir_flag_spec_F77='-L$libdir'
15356      hardcode_minus_L_F77=yes
15357      # see comment about different semantics on the GNU ld section
15358      ld_shlibs_F77=no
15359      ;;
15360
15361    bsdi[45]*)
15362      export_dynamic_flag_spec_F77=-rdynamic
15363      ;;
15364
15365    cygwin* | mingw* | pw32*)
15366      # When not using gcc, we currently assume that we are using
15367      # Microsoft Visual C++.
15368      # hardcode_libdir_flag_spec is actually meaningless, as there is
15369      # no search path for DLLs.
15370      hardcode_libdir_flag_spec_F77=' '
15371      allow_undefined_flag_F77=unsupported
15372      # Tell ltmain to make .lib files, not .a files.
15373      libext=lib
15374      # Tell ltmain to make .dll files, not .so files.
15375      shrext_cmds=".dll"
15376      # FIXME: Setting linknames here is a bad hack.
15377      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15378      # The linker will automatically build a .lib file if we build a DLL.
15379      old_archive_From_new_cmds_F77='true'
15380      # FIXME: Should let the user specify the lib program.
15381      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15382      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15383      enable_shared_with_static_runtimes_F77=yes
15384      ;;
15385
15386    darwin* | rhapsody*)
15387      case $host_os in
15388        rhapsody* | darwin1.[012])
15389         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15390         ;;
15391       *) # Darwin 1.3 on
15392         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15393           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15394         else
15395           case ${MACOSX_DEPLOYMENT_TARGET} in
15396             10.[012])
15397               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15398               ;;
15399             10.*)
15400               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15401               ;;
15402           esac
15403         fi
15404         ;;
15405      esac
15406      archive_cmds_need_lc_F77=no
15407      hardcode_direct_F77=no
15408      hardcode_automatic_F77=yes
15409      hardcode_shlibpath_var_F77=unsupported
15410      whole_archive_flag_spec_F77=''
15411      link_all_deplibs_F77=yes
15412    if test "$GCC" = yes ; then
15413    	output_verbose_link_cmd='echo'
15414        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15415      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15416      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15417      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15418      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}'
15419    else
15420      case $cc_basename in
15421        xlc*)
15422         output_verbose_link_cmd='echo'
15423         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15424         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15425          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15426         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15427          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}'
15428          ;;
15429       *)
15430         ld_shlibs_F77=no
15431          ;;
15432      esac
15433    fi
15434      ;;
15435
15436    dgux*)
15437      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438      hardcode_libdir_flag_spec_F77='-L$libdir'
15439      hardcode_shlibpath_var_F77=no
15440      ;;
15441
15442    freebsd1*)
15443      ld_shlibs_F77=no
15444      ;;
15445
15446    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15447    # support.  Future versions do this automatically, but an explicit c++rt0.o
15448    # does not break anything, and helps significantly (at the cost of a little
15449    # extra space).
15450    freebsd2.2*)
15451      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15452      hardcode_libdir_flag_spec_F77='-R$libdir'
15453      hardcode_direct_F77=yes
15454      hardcode_shlibpath_var_F77=no
15455      ;;
15456
15457    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15458    freebsd2*)
15459      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15460      hardcode_direct_F77=yes
15461      hardcode_minus_L_F77=yes
15462      hardcode_shlibpath_var_F77=no
15463      ;;
15464
15465    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15466    freebsd* | kfreebsd*-gnu | dragonfly*)
15467      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15468      hardcode_libdir_flag_spec_F77='-R$libdir'
15469      hardcode_direct_F77=yes
15470      hardcode_shlibpath_var_F77=no
15471      ;;
15472
15473    hpux9*)
15474      if test "$GCC" = yes; then
15475	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'
15476      else
15477	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'
15478      fi
15479      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15480      hardcode_libdir_separator_F77=:
15481      hardcode_direct_F77=yes
15482
15483      # hardcode_minus_L: Not really in the search PATH,
15484      # but as the default location of the library.
15485      hardcode_minus_L_F77=yes
15486      export_dynamic_flag_spec_F77='${wl}-E'
15487      ;;
15488
15489    hpux10* | hpux11*)
15490      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15491	case $host_cpu in
15492	hppa*64*|ia64*)
15493	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494	  ;;
15495	*)
15496	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15497	  ;;
15498	esac
15499      else
15500	case $host_cpu in
15501	hppa*64*|ia64*)
15502	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15503	  ;;
15504	*)
15505	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15506	  ;;
15507	esac
15508      fi
15509      if test "$with_gnu_ld" = no; then
15510	case $host_cpu in
15511	hppa*64*)
15512	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15513	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15514	  hardcode_libdir_separator_F77=:
15515	  hardcode_direct_F77=no
15516	  hardcode_shlibpath_var_F77=no
15517	  ;;
15518	ia64*)
15519	  hardcode_libdir_flag_spec_F77='-L$libdir'
15520	  hardcode_direct_F77=no
15521	  hardcode_shlibpath_var_F77=no
15522
15523	  # hardcode_minus_L: Not really in the search PATH,
15524	  # but as the default location of the library.
15525	  hardcode_minus_L_F77=yes
15526	  ;;
15527	*)
15528	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15529	  hardcode_libdir_separator_F77=:
15530	  hardcode_direct_F77=yes
15531	  export_dynamic_flag_spec_F77='${wl}-E'
15532
15533	  # hardcode_minus_L: Not really in the search PATH,
15534	  # but as the default location of the library.
15535	  hardcode_minus_L_F77=yes
15536	  ;;
15537	esac
15538      fi
15539      ;;
15540
15541    irix5* | irix6* | nonstopux*)
15542      if test "$GCC" = yes; then
15543	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'
15544      else
15545	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'
15546	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15547      fi
15548      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549      hardcode_libdir_separator_F77=:
15550      link_all_deplibs_F77=yes
15551      ;;
15552
15553    netbsd*)
15554      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15555	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15556      else
15557	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15558      fi
15559      hardcode_libdir_flag_spec_F77='-R$libdir'
15560      hardcode_direct_F77=yes
15561      hardcode_shlibpath_var_F77=no
15562      ;;
15563
15564    newsos6)
15565      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15566      hardcode_direct_F77=yes
15567      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568      hardcode_libdir_separator_F77=:
15569      hardcode_shlibpath_var_F77=no
15570      ;;
15571
15572    openbsd*)
15573      hardcode_direct_F77=yes
15574      hardcode_shlibpath_var_F77=no
15575      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15576	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15577	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15578	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15579	export_dynamic_flag_spec_F77='${wl}-E'
15580      else
15581       case $host_os in
15582	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15583	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15584	   hardcode_libdir_flag_spec_F77='-R$libdir'
15585	   ;;
15586	 *)
15587	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15588	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15589	   ;;
15590       esac
15591      fi
15592      ;;
15593
15594    os2*)
15595      hardcode_libdir_flag_spec_F77='-L$libdir'
15596      hardcode_minus_L_F77=yes
15597      allow_undefined_flag_F77=unsupported
15598      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'
15599      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15600      ;;
15601
15602    osf3*)
15603      if test "$GCC" = yes; then
15604	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15605	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'
15606      else
15607	allow_undefined_flag_F77=' -expect_unresolved \*'
15608	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'
15609      fi
15610      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15611      hardcode_libdir_separator_F77=:
15612      ;;
15613
15614    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15615      if test "$GCC" = yes; then
15616	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617	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'
15618	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15619      else
15620	allow_undefined_flag_F77=' -expect_unresolved \*'
15621	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'
15622	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~
15623	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15624
15625	# Both c and cxx compiler support -rpath directly
15626	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15627      fi
15628      hardcode_libdir_separator_F77=:
15629      ;;
15630
15631    sco3.2v5*)
15632      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15633      hardcode_shlibpath_var_F77=no
15634      export_dynamic_flag_spec_F77='${wl}-Bexport'
15635      runpath_var=LD_RUN_PATH
15636      hardcode_runpath_var=yes
15637      ;;
15638
15639    solaris*)
15640      no_undefined_flag_F77=' -z text'
15641      if test "$GCC" = yes; then
15642	wlarc='${wl}'
15643	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15644	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15645	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15646      else
15647	wlarc=''
15648	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15650  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15651      fi
15652      hardcode_libdir_flag_spec_F77='-R$libdir'
15653      hardcode_shlibpath_var_F77=no
15654      case $host_os in
15655      solaris2.[0-5] | solaris2.[0-5].*) ;;
15656      *)
15657 	# The compiler driver will combine linker options so we
15658 	# cannot just pass the convience library names through
15659 	# without $wl, iff we do not link with $LD.
15660 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15661 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15662 	case $wlarc in
15663 	'')
15664 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15665 	*)
15666 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15667 	esac ;;
15668      esac
15669      link_all_deplibs_F77=yes
15670      ;;
15671
15672    sunos4*)
15673      if test "x$host_vendor" = xsequent; then
15674	# Use $CC to link under sequent, because it throws in some extra .o
15675	# files that make .init and .fini sections work.
15676	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15677      else
15678	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15679      fi
15680      hardcode_libdir_flag_spec_F77='-L$libdir'
15681      hardcode_direct_F77=yes
15682      hardcode_minus_L_F77=yes
15683      hardcode_shlibpath_var_F77=no
15684      ;;
15685
15686    sysv4)
15687      case $host_vendor in
15688	sni)
15689	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690	  hardcode_direct_F77=yes # is this really true???
15691	;;
15692	siemens)
15693	  ## LD is ld it makes a PLAMLIB
15694	  ## CC just makes a GrossModule.
15695	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15696	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15697	  hardcode_direct_F77=no
15698        ;;
15699	motorola)
15700	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15702	;;
15703      esac
15704      runpath_var='LD_RUN_PATH'
15705      hardcode_shlibpath_var_F77=no
15706      ;;
15707
15708    sysv4.3*)
15709      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710      hardcode_shlibpath_var_F77=no
15711      export_dynamic_flag_spec_F77='-Bexport'
15712      ;;
15713
15714    sysv4*MP*)
15715      if test -d /usr/nec; then
15716	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717	hardcode_shlibpath_var_F77=no
15718	runpath_var=LD_RUN_PATH
15719	hardcode_runpath_var=yes
15720	ld_shlibs_F77=yes
15721      fi
15722      ;;
15723
15724    sysv4.2uw2*)
15725      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15726      hardcode_direct_F77=yes
15727      hardcode_minus_L_F77=no
15728      hardcode_shlibpath_var_F77=no
15729      hardcode_runpath_var=yes
15730      runpath_var=LD_RUN_PATH
15731      ;;
15732
15733   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15734      no_undefined_flag_F77='${wl}-z ${wl}text'
15735      if test "$GCC" = yes; then
15736	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15737      else
15738	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739      fi
15740      runpath_var='LD_RUN_PATH'
15741      hardcode_shlibpath_var_F77=no
15742      ;;
15743
15744    sysv5*)
15745      no_undefined_flag_F77=' -z text'
15746      # $CC -shared without GNU ld will not create a library from C++
15747      # object files and a static libstdc++, better avoid it by now
15748      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15750  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15751      hardcode_libdir_flag_spec_F77=
15752      hardcode_shlibpath_var_F77=no
15753      runpath_var='LD_RUN_PATH'
15754      ;;
15755
15756    uts4*)
15757      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758      hardcode_libdir_flag_spec_F77='-L$libdir'
15759      hardcode_shlibpath_var_F77=no
15760      ;;
15761
15762    *)
15763      ld_shlibs_F77=no
15764      ;;
15765    esac
15766  fi
15767
15768echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15769echo "${ECHO_T}$ld_shlibs_F77" >&6
15770test "$ld_shlibs_F77" = no && can_build_shared=no
15771
15772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15773if test "$GCC" = yes; then
15774  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15775fi
15776
15777#
15778# Do we need to explicitly link libc?
15779#
15780case "x$archive_cmds_need_lc_F77" in
15781x|xyes)
15782  # Assume -lc should be added
15783  archive_cmds_need_lc_F77=yes
15784
15785  if test "$enable_shared" = yes && test "$GCC" = yes; then
15786    case $archive_cmds_F77 in
15787    *'~'*)
15788      # FIXME: we may have to deal with multi-command sequences.
15789      ;;
15790    '$CC '*)
15791      # Test whether the compiler implicitly links with -lc since on some
15792      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15793      # to ld, don't add -lc before -lgcc.
15794      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15795echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15796      $rm conftest*
15797      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15798
15799      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800  (eval $ac_compile) 2>&5
15801  ac_status=$?
15802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803  (exit $ac_status); } 2>conftest.err; then
15804        soname=conftest
15805        lib=conftest
15806        libobjs=conftest.$ac_objext
15807        deplibs=
15808        wl=$lt_prog_compiler_wl_F77
15809        compiler_flags=-v
15810        linker_flags=-v
15811        verstring=
15812        output_objdir=.
15813        libname=conftest
15814        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15815        allow_undefined_flag_F77=
15816        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15817  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15818  ac_status=$?
15819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820  (exit $ac_status); }
15821        then
15822	  archive_cmds_need_lc_F77=no
15823        else
15824	  archive_cmds_need_lc_F77=yes
15825        fi
15826        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15827      else
15828        cat conftest.err 1>&5
15829      fi
15830      $rm conftest*
15831      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15832echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15833      ;;
15834    esac
15835  fi
15836  ;;
15837esac
15838
15839echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15840echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15841library_names_spec=
15842libname_spec='lib$name'
15843soname_spec=
15844shrext_cmds=".so"
15845postinstall_cmds=
15846postuninstall_cmds=
15847finish_cmds=
15848finish_eval=
15849shlibpath_var=
15850shlibpath_overrides_runpath=unknown
15851version_type=none
15852dynamic_linker="$host_os ld.so"
15853sys_lib_dlsearch_path_spec="/lib /usr/lib"
15854if test "$GCC" = yes; then
15855  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15856  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15857    # if the path contains ";" then we assume it to be the separator
15858    # otherwise default to the standard path separator (i.e. ":") - it is
15859    # assumed that no part of a normal pathname contains ";" but that should
15860    # okay in the real world where ";" in dirpaths is itself problematic.
15861    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15862  else
15863    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15864  fi
15865else
15866  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15867fi
15868need_lib_prefix=unknown
15869hardcode_into_libs=no
15870
15871# when you set need_version to no, make sure it does not cause -set_version
15872# flags to be left without arguments
15873need_version=unknown
15874
15875case $host_os in
15876aix3*)
15877  version_type=linux
15878  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15879  shlibpath_var=LIBPATH
15880
15881  # AIX 3 has no versioning support, so we append a major version to the name.
15882  soname_spec='${libname}${release}${shared_ext}$major'
15883  ;;
15884
15885aix4* | aix5*)
15886  version_type=linux
15887  need_lib_prefix=no
15888  need_version=no
15889  hardcode_into_libs=yes
15890  if test "$host_cpu" = ia64; then
15891    # AIX 5 supports IA64
15892    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15893    shlibpath_var=LD_LIBRARY_PATH
15894  else
15895    # With GCC up to 2.95.x, collect2 would create an import file
15896    # for dependence libraries.  The import file would start with
15897    # the line `#! .'.  This would cause the generated library to
15898    # depend on `.', always an invalid library.  This was fixed in
15899    # development snapshots of GCC prior to 3.0.
15900    case $host_os in
15901      aix4 | aix4.[01] | aix4.[01].*)
15902      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15903	   echo ' yes '
15904	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15905	:
15906      else
15907	can_build_shared=no
15908      fi
15909      ;;
15910    esac
15911    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15912    # soname into executable. Probably we can add versioning support to
15913    # collect2, so additional links can be useful in future.
15914    if test "$aix_use_runtimelinking" = yes; then
15915      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15916      # instead of lib<name>.a to let people know that these are not
15917      # typical AIX shared libraries.
15918      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919    else
15920      # We preserve .a as extension for shared libraries through AIX4.2
15921      # and later when we are not doing run time linking.
15922      library_names_spec='${libname}${release}.a $libname.a'
15923      soname_spec='${libname}${release}${shared_ext}$major'
15924    fi
15925    shlibpath_var=LIBPATH
15926  fi
15927  ;;
15928
15929amigaos*)
15930  library_names_spec='$libname.ixlibrary $libname.a'
15931  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15932  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'
15933  ;;
15934
15935beos*)
15936  library_names_spec='${libname}${shared_ext}'
15937  dynamic_linker="$host_os ld.so"
15938  shlibpath_var=LIBRARY_PATH
15939  ;;
15940
15941bsdi[45]*)
15942  version_type=linux
15943  need_version=no
15944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945  soname_spec='${libname}${release}${shared_ext}$major'
15946  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15947  shlibpath_var=LD_LIBRARY_PATH
15948  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15949  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15950  # the default ld.so.conf also contains /usr/contrib/lib and
15951  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15952  # libtool to hard-code these into programs
15953  ;;
15954
15955cygwin* | mingw* | pw32*)
15956  version_type=windows
15957  shrext_cmds=".dll"
15958  need_version=no
15959  need_lib_prefix=no
15960
15961  case $GCC,$host_os in
15962  yes,cygwin* | yes,mingw* | yes,pw32*)
15963    library_names_spec='$libname.dll.a'
15964    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15965    postinstall_cmds='base_file=`basename \${file}`~
15966      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15967      dldir=$destdir/`dirname \$dlpath`~
15968      test -d \$dldir || mkdir -p \$dldir~
15969      $install_prog $dir/$dlname \$dldir/$dlname~
15970      chmod a+x \$dldir/$dlname'
15971    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15972      dlpath=$dir/\$dldll~
15973       $rm \$dlpath'
15974    shlibpath_overrides_runpath=yes
15975
15976    case $host_os in
15977    cygwin*)
15978      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15979      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15980      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15981      ;;
15982    mingw*)
15983      # MinGW DLLs use traditional 'lib' prefix
15984      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15985      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15986      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15987        # It is most probably a Windows format PATH printed by
15988        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15989        # path with ; separators, and with drive letters. We can handle the
15990        # drive letters (cygwin fileutils understands them), so leave them,
15991        # especially as we might pass files found there to a mingw objdump,
15992        # which wouldn't understand a cygwinified path. Ahh.
15993        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15994      else
15995        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15996      fi
15997      ;;
15998    pw32*)
15999      # pw32 DLLs use 'pw' prefix rather than 'lib'
16000      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16001      ;;
16002    esac
16003    ;;
16004
16005  *)
16006    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16007    ;;
16008  esac
16009  dynamic_linker='Win32 ld.exe'
16010  # FIXME: first we should search . and the directory the executable is in
16011  shlibpath_var=PATH
16012  ;;
16013
16014darwin* | rhapsody*)
16015  dynamic_linker="$host_os dyld"
16016  version_type=darwin
16017  need_lib_prefix=no
16018  need_version=no
16019  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16020  soname_spec='${libname}${release}${major}$shared_ext'
16021  shlibpath_overrides_runpath=yes
16022  shlibpath_var=DYLD_LIBRARY_PATH
16023  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16024  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16025  if test "$GCC" = yes; then
16026    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"`
16027  else
16028    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16029  fi
16030  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16031  ;;
16032
16033dgux*)
16034  version_type=linux
16035  need_lib_prefix=no
16036  need_version=no
16037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16038  soname_spec='${libname}${release}${shared_ext}$major'
16039  shlibpath_var=LD_LIBRARY_PATH
16040  ;;
16041
16042freebsd1*)
16043  dynamic_linker=no
16044  ;;
16045
16046haiku*)
16047  library_names_spec='${libname}${shared_ext}'
16048  dynamic_linker="$host_os ld.so"
16049  shlibpath_var=LIBRARY_PATH
16050  ;;
16051
16052kfreebsd*-gnu)
16053  version_type=linux
16054  need_lib_prefix=no
16055  need_version=no
16056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16057  soname_spec='${libname}${release}${shared_ext}$major'
16058  shlibpath_var=LD_LIBRARY_PATH
16059  shlibpath_overrides_runpath=no
16060  hardcode_into_libs=yes
16061  dynamic_linker='GNU ld.so'
16062  ;;
16063
16064freebsd* | dragonfly*)
16065  # DragonFly does not have aout.  When/if they implement a new
16066  # versioning mechanism, adjust this.
16067  if test -x /usr/bin/objformat; then
16068    objformat=`/usr/bin/objformat`
16069  else
16070    case $host_os in
16071    freebsd[123]*) objformat=aout ;;
16072    *) objformat=elf ;;
16073    esac
16074  fi
16075  version_type=freebsd-$objformat
16076  case $version_type in
16077    freebsd-elf*)
16078      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16079      need_version=no
16080      need_lib_prefix=no
16081      ;;
16082    freebsd-*)
16083      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16084      need_version=yes
16085      ;;
16086  esac
16087  shlibpath_var=LD_LIBRARY_PATH
16088  case $host_os in
16089  freebsd2*)
16090    shlibpath_overrides_runpath=yes
16091    ;;
16092  freebsd3.[01]* | freebsdelf3.[01]*)
16093    shlibpath_overrides_runpath=yes
16094    hardcode_into_libs=yes
16095    ;;
16096  *) # from 3.2 on
16097    shlibpath_overrides_runpath=no
16098    hardcode_into_libs=yes
16099    ;;
16100  esac
16101  ;;
16102
16103gnu*)
16104  version_type=linux
16105  need_lib_prefix=no
16106  need_version=no
16107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16108  soname_spec='${libname}${release}${shared_ext}$major'
16109  shlibpath_var=LD_LIBRARY_PATH
16110  hardcode_into_libs=yes
16111  ;;
16112
16113hpux9* | hpux10* | hpux11*)
16114  # Give a soname corresponding to the major version so that dld.sl refuses to
16115  # link against other versions.
16116  version_type=sunos
16117  need_lib_prefix=no
16118  need_version=no
16119  case $host_cpu in
16120  ia64*)
16121    shrext_cmds='.so'
16122    hardcode_into_libs=yes
16123    dynamic_linker="$host_os dld.so"
16124    shlibpath_var=LD_LIBRARY_PATH
16125    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127    soname_spec='${libname}${release}${shared_ext}$major'
16128    if test "X$HPUX_IA64_MODE" = X32; then
16129      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16130    else
16131      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16132    fi
16133    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16134    ;;
16135   hppa*64*)
16136     shrext_cmds='.sl'
16137     hardcode_into_libs=yes
16138     dynamic_linker="$host_os dld.sl"
16139     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16140     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142     soname_spec='${libname}${release}${shared_ext}$major'
16143     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16144     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16145     ;;
16146   *)
16147    shrext_cmds='.sl'
16148    dynamic_linker="$host_os dld.sl"
16149    shlibpath_var=SHLIB_PATH
16150    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152    soname_spec='${libname}${release}${shared_ext}$major'
16153    ;;
16154  esac
16155  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16156  postinstall_cmds='chmod 555 $lib'
16157  ;;
16158
16159irix5* | irix6* | nonstopux*)
16160  case $host_os in
16161    nonstopux*) version_type=nonstopux ;;
16162    *)
16163	if test "$lt_cv_prog_gnu_ld" = yes; then
16164		version_type=linux
16165	else
16166		version_type=irix
16167	fi ;;
16168  esac
16169  need_lib_prefix=no
16170  need_version=no
16171  soname_spec='${libname}${release}${shared_ext}$major'
16172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16173  case $host_os in
16174  irix5* | nonstopux*)
16175    libsuff= shlibsuff=
16176    ;;
16177  *)
16178    case $LD in # libtool.m4 will add one of these switches to LD
16179    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16180      libsuff= shlibsuff= libmagic=32-bit;;
16181    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16182      libsuff=32 shlibsuff=N32 libmagic=N32;;
16183    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16184      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16185    *) libsuff= shlibsuff= libmagic=never-match;;
16186    esac
16187    ;;
16188  esac
16189  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16190  shlibpath_overrides_runpath=no
16191  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16192  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16193  hardcode_into_libs=yes
16194  ;;
16195
16196# No shared lib support for Linux oldld, aout, or coff.
16197linux*oldld* | linux*aout* | linux*coff*)
16198  dynamic_linker=no
16199  ;;
16200
16201# This must be Linux ELF.
16202linux*)
16203  version_type=linux
16204  need_lib_prefix=no
16205  need_version=no
16206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207  soname_spec='${libname}${release}${shared_ext}$major'
16208  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16209  shlibpath_var=LD_LIBRARY_PATH
16210  shlibpath_overrides_runpath=no
16211  # This implies no fast_install, which is unacceptable.
16212  # Some rework will be needed to allow for fast_install
16213  # before this can be enabled.
16214  hardcode_into_libs=yes
16215
16216  # Append ld.so.conf contents to the search path
16217  if test -f /etc/ld.so.conf; then
16218    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16219    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16220  fi
16221
16222  # We used to test for /lib/ld.so.1 and disable shared libraries on
16223  # powerpc, because MkLinux only supported shared libraries with the
16224  # GNU dynamic linker.  Since this was broken with cross compilers,
16225  # most powerpc-linux boxes support dynamic linking these days and
16226  # people can always --disable-shared, the test was removed, and we
16227  # assume the GNU/Linux dynamic linker is in use.
16228  dynamic_linker='GNU/Linux ld.so'
16229  ;;
16230
16231knetbsd*-gnu)
16232  version_type=linux
16233  need_lib_prefix=no
16234  need_version=no
16235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236  soname_spec='${libname}${release}${shared_ext}$major'
16237  shlibpath_var=LD_LIBRARY_PATH
16238  shlibpath_overrides_runpath=no
16239  hardcode_into_libs=yes
16240  dynamic_linker='GNU ld.so'
16241  ;;
16242
16243netbsd*)
16244  version_type=sunos
16245  need_lib_prefix=no
16246  need_version=no
16247  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16248    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16250    dynamic_linker='NetBSD (a.out) ld.so'
16251  else
16252    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16253    soname_spec='${libname}${release}${shared_ext}$major'
16254    dynamic_linker='NetBSD ld.elf_so'
16255  fi
16256  shlibpath_var=LD_LIBRARY_PATH
16257  shlibpath_overrides_runpath=yes
16258  hardcode_into_libs=yes
16259  ;;
16260
16261newsos6)
16262  version_type=linux
16263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264  shlibpath_var=LD_LIBRARY_PATH
16265  shlibpath_overrides_runpath=yes
16266  ;;
16267
16268nto-qnx*)
16269  version_type=linux
16270  need_lib_prefix=no
16271  need_version=no
16272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273  soname_spec='${libname}${release}${shared_ext}$major'
16274  shlibpath_var=LD_LIBRARY_PATH
16275  shlibpath_overrides_runpath=yes
16276  ;;
16277
16278openbsd*)
16279  version_type=sunos
16280  need_lib_prefix=no
16281  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16282  case $host_os in
16283    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16284    *)                         need_version=no  ;;
16285  esac
16286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16288  shlibpath_var=LD_LIBRARY_PATH
16289  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16290    case $host_os in
16291      openbsd2.[89] | openbsd2.[89].*)
16292	shlibpath_overrides_runpath=no
16293	;;
16294      *)
16295	shlibpath_overrides_runpath=yes
16296	;;
16297      esac
16298  else
16299    shlibpath_overrides_runpath=yes
16300  fi
16301  ;;
16302
16303os2*)
16304  libname_spec='$name'
16305  shrext_cmds=".dll"
16306  need_lib_prefix=no
16307  library_names_spec='$libname${shared_ext} $libname.a'
16308  dynamic_linker='OS/2 ld.exe'
16309  shlibpath_var=LIBPATH
16310  ;;
16311
16312osf3* | osf4* | osf5*)
16313  version_type=osf
16314  need_lib_prefix=no
16315  need_version=no
16316  soname_spec='${libname}${release}${shared_ext}$major'
16317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318  shlibpath_var=LD_LIBRARY_PATH
16319  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16320  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16321  ;;
16322
16323sco3.2v5*)
16324  version_type=osf
16325  soname_spec='${libname}${release}${shared_ext}$major'
16326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327  shlibpath_var=LD_LIBRARY_PATH
16328  ;;
16329
16330solaris*)
16331  version_type=linux
16332  need_lib_prefix=no
16333  need_version=no
16334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335  soname_spec='${libname}${release}${shared_ext}$major'
16336  shlibpath_var=LD_LIBRARY_PATH
16337  shlibpath_overrides_runpath=yes
16338  hardcode_into_libs=yes
16339  # ldd complains unless libraries are executable
16340  postinstall_cmds='chmod +x $lib'
16341  ;;
16342
16343sunos4*)
16344  version_type=sunos
16345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16347  shlibpath_var=LD_LIBRARY_PATH
16348  shlibpath_overrides_runpath=yes
16349  if test "$with_gnu_ld" = yes; then
16350    need_lib_prefix=no
16351  fi
16352  need_version=yes
16353  ;;
16354
16355sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16356  version_type=linux
16357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358  soname_spec='${libname}${release}${shared_ext}$major'
16359  shlibpath_var=LD_LIBRARY_PATH
16360  case $host_vendor in
16361    sni)
16362      shlibpath_overrides_runpath=no
16363      need_lib_prefix=no
16364      export_dynamic_flag_spec='${wl}-Blargedynsym'
16365      runpath_var=LD_RUN_PATH
16366      ;;
16367    siemens)
16368      need_lib_prefix=no
16369      ;;
16370    motorola)
16371      need_lib_prefix=no
16372      need_version=no
16373      shlibpath_overrides_runpath=no
16374      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16375      ;;
16376  esac
16377  ;;
16378
16379sysv4*MP*)
16380  if test -d /usr/nec ;then
16381    version_type=linux
16382    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16383    soname_spec='$libname${shared_ext}.$major'
16384    shlibpath_var=LD_LIBRARY_PATH
16385  fi
16386  ;;
16387
16388uts4*)
16389  version_type=linux
16390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391  soname_spec='${libname}${release}${shared_ext}$major'
16392  shlibpath_var=LD_LIBRARY_PATH
16393  ;;
16394
16395*)
16396  dynamic_linker=no
16397  ;;
16398esac
16399echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16400echo "${ECHO_T}$dynamic_linker" >&6
16401test "$dynamic_linker" = no && can_build_shared=no
16402
16403echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16404echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16405hardcode_action_F77=
16406if test -n "$hardcode_libdir_flag_spec_F77" || \
16407   test -n "$runpath_var_F77" || \
16408   test "X$hardcode_automatic_F77" = "Xyes" ; then
16409
16410  # We can hardcode non-existant directories.
16411  if test "$hardcode_direct_F77" != no &&
16412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16413     # have to relink, otherwise we might link with an installed library
16414     # when we should be linking with a yet-to-be-installed one
16415     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16416     test "$hardcode_minus_L_F77" != no; then
16417    # Linking always hardcodes the temporary library directory.
16418    hardcode_action_F77=relink
16419  else
16420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16421    hardcode_action_F77=immediate
16422  fi
16423else
16424  # We cannot hardcode anything, or else we can only hardcode existing
16425  # directories.
16426  hardcode_action_F77=unsupported
16427fi
16428echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16429echo "${ECHO_T}$hardcode_action_F77" >&6
16430
16431if test "$hardcode_action_F77" = relink; then
16432  # Fast installation is not supported
16433  enable_fast_install=no
16434elif test "$shlibpath_overrides_runpath" = yes ||
16435     test "$enable_shared" = no; then
16436  # Fast installation is not necessary
16437  enable_fast_install=needless
16438fi
16439
16440striplib=
16441old_striplib=
16442echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16443echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16444if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16445  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16446  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16447  echo "$as_me:$LINENO: result: yes" >&5
16448echo "${ECHO_T}yes" >&6
16449else
16450# FIXME - insert some real tests, host_os isn't really good enough
16451  case $host_os in
16452   darwin*)
16453       if test -n "$STRIP" ; then
16454         striplib="$STRIP -x"
16455         echo "$as_me:$LINENO: result: yes" >&5
16456echo "${ECHO_T}yes" >&6
16457       else
16458  echo "$as_me:$LINENO: result: no" >&5
16459echo "${ECHO_T}no" >&6
16460fi
16461       ;;
16462   *)
16463  echo "$as_me:$LINENO: result: no" >&5
16464echo "${ECHO_T}no" >&6
16465    ;;
16466  esac
16467fi
16468
16469
16470
16471# The else clause should only fire when bootstrapping the
16472# libtool distribution, otherwise you forgot to ship ltmain.sh
16473# with your package, and you will get complaints that there are
16474# no rules to generate ltmain.sh.
16475if test -f "$ltmain"; then
16476  # See if we are running on zsh, and set the options which allow our commands through
16477  # without removal of \ escapes.
16478  if test -n "${ZSH_VERSION+set}" ; then
16479    setopt NO_GLOB_SUBST
16480  fi
16481  # Now quote all the things that may contain metacharacters while being
16482  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16483  # variables and quote the copies for generation of the libtool script.
16484  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16485    SED SHELL STRIP \
16486    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16487    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16488    deplibs_check_method reload_flag reload_cmds need_locks \
16489    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16490    lt_cv_sys_global_symbol_to_c_name_address \
16491    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16492    old_postinstall_cmds old_postuninstall_cmds \
16493    compiler_F77 \
16494    CC_F77 \
16495    LD_F77 \
16496    lt_prog_compiler_wl_F77 \
16497    lt_prog_compiler_pic_F77 \
16498    lt_prog_compiler_static_F77 \
16499    lt_prog_compiler_no_builtin_flag_F77 \
16500    export_dynamic_flag_spec_F77 \
16501    thread_safe_flag_spec_F77 \
16502    whole_archive_flag_spec_F77 \
16503    enable_shared_with_static_runtimes_F77 \
16504    old_archive_cmds_F77 \
16505    old_archive_from_new_cmds_F77 \
16506    predep_objects_F77 \
16507    postdep_objects_F77 \
16508    predeps_F77 \
16509    postdeps_F77 \
16510    compiler_lib_search_path_F77 \
16511    archive_cmds_F77 \
16512    archive_expsym_cmds_F77 \
16513    postinstall_cmds_F77 \
16514    postuninstall_cmds_F77 \
16515    old_archive_from_expsyms_cmds_F77 \
16516    allow_undefined_flag_F77 \
16517    no_undefined_flag_F77 \
16518    export_symbols_cmds_F77 \
16519    hardcode_libdir_flag_spec_F77 \
16520    hardcode_libdir_flag_spec_ld_F77 \
16521    hardcode_libdir_separator_F77 \
16522    hardcode_automatic_F77 \
16523    module_cmds_F77 \
16524    module_expsym_cmds_F77 \
16525    lt_cv_prog_compiler_c_o_F77 \
16526    exclude_expsyms_F77 \
16527    include_expsyms_F77; do
16528
16529    case $var in
16530    old_archive_cmds_F77 | \
16531    old_archive_from_new_cmds_F77 | \
16532    archive_cmds_F77 | \
16533    archive_expsym_cmds_F77 | \
16534    module_cmds_F77 | \
16535    module_expsym_cmds_F77 | \
16536    old_archive_from_expsyms_cmds_F77 | \
16537    export_symbols_cmds_F77 | \
16538    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16539    postinstall_cmds | postuninstall_cmds | \
16540    old_postinstall_cmds | old_postuninstall_cmds | \
16541    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16542      # Double-quote double-evaled strings.
16543      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16544      ;;
16545    *)
16546      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16547      ;;
16548    esac
16549  done
16550
16551  case $lt_echo in
16552  *'\$0 --fallback-echo"')
16553    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16554    ;;
16555  esac
16556
16557cfgfile="$ofile"
16558
16559  cat <<__EOF__ >> "$cfgfile"
16560# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16561
16562# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16563
16564# Shell to use when invoking shell scripts.
16565SHELL=$lt_SHELL
16566
16567# Whether or not to build shared libraries.
16568build_libtool_libs=$enable_shared
16569
16570# Whether or not to build static libraries.
16571build_old_libs=$enable_static
16572
16573# Whether or not to add -lc for building shared libraries.
16574build_libtool_need_lc=$archive_cmds_need_lc_F77
16575
16576# Whether or not to disallow shared libs when runtime libs are static
16577allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16578
16579# Whether or not to optimize for fast installation.
16580fast_install=$enable_fast_install
16581
16582# The host system.
16583host_alias=$host_alias
16584host=$host
16585host_os=$host_os
16586
16587# The build system.
16588build_alias=$build_alias
16589build=$build
16590build_os=$build_os
16591
16592# An echo program that does not interpret backslashes.
16593echo=$lt_echo
16594
16595# The archiver.
16596AR=$lt_AR
16597AR_FLAGS=$lt_AR_FLAGS
16598
16599# A C compiler.
16600LTCC=$lt_LTCC
16601
16602# A language-specific compiler.
16603CC=$lt_compiler_F77
16604
16605# Is the compiler the GNU C compiler?
16606with_gcc=$GCC_F77
16607
16608# An ERE matcher.
16609EGREP=$lt_EGREP
16610
16611# The linker used to build libraries.
16612LD=$lt_LD_F77
16613
16614# Whether we need hard or soft links.
16615LN_S=$lt_LN_S
16616
16617# A BSD-compatible nm program.
16618NM=$lt_NM
16619
16620# A symbol stripping program
16621STRIP=$lt_STRIP
16622
16623# Used to examine libraries when file_magic_cmd begins "file"
16624MAGIC_CMD=$MAGIC_CMD
16625
16626# Used on cygwin: DLL creation program.
16627DLLTOOL="$DLLTOOL"
16628
16629# Used on cygwin: object dumper.
16630OBJDUMP="$OBJDUMP"
16631
16632# Used on cygwin: assembler.
16633AS="$AS"
16634
16635# The name of the directory that contains temporary libtool files.
16636objdir=$objdir
16637
16638# How to create reloadable object files.
16639reload_flag=$lt_reload_flag
16640reload_cmds=$lt_reload_cmds
16641
16642# How to pass a linker flag through the compiler.
16643wl=$lt_lt_prog_compiler_wl_F77
16644
16645# Object file suffix (normally "o").
16646objext="$ac_objext"
16647
16648# Old archive suffix (normally "a").
16649libext="$libext"
16650
16651# Shared library suffix (normally ".so").
16652shrext_cmds='$shrext_cmds'
16653
16654# Executable file suffix (normally "").
16655exeext="$exeext"
16656
16657# Additional compiler flags for building library objects.
16658pic_flag=$lt_lt_prog_compiler_pic_F77
16659pic_mode=$pic_mode
16660
16661# What is the maximum length of a command?
16662max_cmd_len=$lt_cv_sys_max_cmd_len
16663
16664# Does compiler simultaneously support -c and -o options?
16665compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16666
16667# Must we lock files when doing compilation?
16668need_locks=$lt_need_locks
16669
16670# Do we need the lib prefix for modules?
16671need_lib_prefix=$need_lib_prefix
16672
16673# Do we need a version for libraries?
16674need_version=$need_version
16675
16676# Whether dlopen is supported.
16677dlopen_support=$enable_dlopen
16678
16679# Whether dlopen of programs is supported.
16680dlopen_self=$enable_dlopen_self
16681
16682# Whether dlopen of statically linked programs is supported.
16683dlopen_self_static=$enable_dlopen_self_static
16684
16685# Compiler flag to prevent dynamic linking.
16686link_static_flag=$lt_lt_prog_compiler_static_F77
16687
16688# Compiler flag to turn off builtin functions.
16689no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16690
16691# Compiler flag to allow reflexive dlopens.
16692export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16693
16694# Compiler flag to generate shared objects directly from archives.
16695whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16696
16697# Compiler flag to generate thread-safe objects.
16698thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16699
16700# Library versioning type.
16701version_type=$version_type
16702
16703# Format of library name prefix.
16704libname_spec=$lt_libname_spec
16705
16706# List of archive names.  First name is the real one, the rest are links.
16707# The last name is the one that the linker finds with -lNAME.
16708library_names_spec=$lt_library_names_spec
16709
16710# The coded name of the library, if different from the real name.
16711soname_spec=$lt_soname_spec
16712
16713# Commands used to build and install an old-style archive.
16714RANLIB=$lt_RANLIB
16715old_archive_cmds=$lt_old_archive_cmds_F77
16716old_postinstall_cmds=$lt_old_postinstall_cmds
16717old_postuninstall_cmds=$lt_old_postuninstall_cmds
16718
16719# Create an old-style archive from a shared archive.
16720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16721
16722# Create a temporary old-style archive to link instead of a shared archive.
16723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16724
16725# Commands used to build and install a shared archive.
16726archive_cmds=$lt_archive_cmds_F77
16727archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16728postinstall_cmds=$lt_postinstall_cmds
16729postuninstall_cmds=$lt_postuninstall_cmds
16730
16731# Commands used to build a loadable module (assumed same as above if empty)
16732module_cmds=$lt_module_cmds_F77
16733module_expsym_cmds=$lt_module_expsym_cmds_F77
16734
16735# Commands to strip libraries.
16736old_striplib=$lt_old_striplib
16737striplib=$lt_striplib
16738
16739# Dependencies to place before the objects being linked to create a
16740# shared library.
16741predep_objects=$lt_predep_objects_F77
16742
16743# Dependencies to place after the objects being linked to create a
16744# shared library.
16745postdep_objects=$lt_postdep_objects_F77
16746
16747# Dependencies to place before the objects being linked to create a
16748# shared library.
16749predeps=$lt_predeps_F77
16750
16751# Dependencies to place after the objects being linked to create a
16752# shared library.
16753postdeps=$lt_postdeps_F77
16754
16755# The library search path used internally by the compiler when linking
16756# a shared library.
16757compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16758
16759# Method to check whether dependent libraries are shared objects.
16760deplibs_check_method=$lt_deplibs_check_method
16761
16762# Command to use when deplibs_check_method == file_magic.
16763file_magic_cmd=$lt_file_magic_cmd
16764
16765# Flag that allows shared libraries with undefined symbols to be built.
16766allow_undefined_flag=$lt_allow_undefined_flag_F77
16767
16768# Flag that forces no undefined symbols.
16769no_undefined_flag=$lt_no_undefined_flag_F77
16770
16771# Commands used to finish a libtool library installation in a directory.
16772finish_cmds=$lt_finish_cmds
16773
16774# Same as above, but a single script fragment to be evaled but not shown.
16775finish_eval=$lt_finish_eval
16776
16777# Take the output of nm and produce a listing of raw symbols and C names.
16778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16779
16780# Transform the output of nm in a proper C declaration
16781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16782
16783# Transform the output of nm in a C name address pair
16784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16785
16786# This is the shared library runtime path variable.
16787runpath_var=$runpath_var
16788
16789# This is the shared library path variable.
16790shlibpath_var=$shlibpath_var
16791
16792# Is shlibpath searched before the hard-coded library search path?
16793shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16794
16795# How to hardcode a shared library path into an executable.
16796hardcode_action=$hardcode_action_F77
16797
16798# Whether we should hardcode library paths into libraries.
16799hardcode_into_libs=$hardcode_into_libs
16800
16801# Flag to hardcode \$libdir into a binary during linking.
16802# This must work even if \$libdir does not exist.
16803hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16804
16805# If ld is used when linking, flag to hardcode \$libdir into
16806# a binary during linking. This must work even if \$libdir does
16807# not exist.
16808hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16809
16810# Whether we need a single -rpath flag with a separated argument.
16811hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16812
16813# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16814# resulting binary.
16815hardcode_direct=$hardcode_direct_F77
16816
16817# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16818# resulting binary.
16819hardcode_minus_L=$hardcode_minus_L_F77
16820
16821# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16822# the resulting binary.
16823hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16824
16825# Set to yes if building a shared library automatically hardcodes DIR into the library
16826# and all subsequent libraries and executables linked against it.
16827hardcode_automatic=$hardcode_automatic_F77
16828
16829# Variables whose values should be saved in libtool wrapper scripts and
16830# restored at relink time.
16831variables_saved_for_relink="$variables_saved_for_relink"
16832
16833# Whether libtool must link a program against all its dependency libraries.
16834link_all_deplibs=$link_all_deplibs_F77
16835
16836# Compile-time system search path for libraries
16837sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16838
16839# Run-time system search path for libraries
16840sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16841
16842# Fix the shell variable \$srcfile for the compiler.
16843fix_srcfile_path="$fix_srcfile_path_F77"
16844
16845# Set to yes if exported symbols are required.
16846always_export_symbols=$always_export_symbols_F77
16847
16848# The commands to list exported symbols.
16849export_symbols_cmds=$lt_export_symbols_cmds_F77
16850
16851# The commands to extract the exported symbol list from a shared archive.
16852extract_expsyms_cmds=$lt_extract_expsyms_cmds
16853
16854# Symbols that should not be listed in the preloaded symbols.
16855exclude_expsyms=$lt_exclude_expsyms_F77
16856
16857# Symbols that must always be exported.
16858include_expsyms=$lt_include_expsyms_F77
16859
16860# ### END LIBTOOL TAG CONFIG: $tagname
16861
16862__EOF__
16863
16864
16865else
16866  # If there is no Makefile yet, we rely on a make rule to execute
16867  # `config.status --recheck' to rerun these tests and create the
16868  # libtool script then.
16869  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16870  if test -f "$ltmain_in"; then
16871    test -f Makefile && make "$ltmain"
16872  fi
16873fi
16874
16875
16876ac_ext=c
16877ac_cpp='$CPP $CPPFLAGS'
16878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16880ac_compiler_gnu=$ac_cv_c_compiler_gnu
16881
16882CC="$lt_save_CC"
16883
16884	else
16885	  tagname=""
16886	fi
16887	;;
16888
16889      GCJ)
16890	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16891
16892
16893
16894# Source file extension for Java test sources.
16895ac_ext=java
16896
16897# Object file extension for compiled Java test sources.
16898objext=o
16899objext_GCJ=$objext
16900
16901# Code to be used in simple compile tests
16902lt_simple_compile_test_code="class foo {}\n"
16903
16904# Code to be used in simple link tests
16905lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16906
16907# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16908
16909# If no C compiler was specified, use CC.
16910LTCC=${LTCC-"$CC"}
16911
16912# Allow CC to be a program name with arguments.
16913compiler=$CC
16914
16915
16916# save warnings/boilerplate of simple test code
16917ac_outfile=conftest.$ac_objext
16918printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16919eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16920_lt_compiler_boilerplate=`cat conftest.err`
16921$rm conftest*
16922
16923ac_outfile=conftest.$ac_objext
16924printf "$lt_simple_link_test_code" >conftest.$ac_ext
16925eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16926_lt_linker_boilerplate=`cat conftest.err`
16927$rm conftest*
16928
16929
16930# Allow CC to be a program name with arguments.
16931lt_save_CC="$CC"
16932CC=${GCJ-"gcj"}
16933compiler=$CC
16934compiler_GCJ=$CC
16935for cc_temp in $compiler""; do
16936  case $cc_temp in
16937    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16938    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16939    \-*) ;;
16940    *) break;;
16941  esac
16942done
16943cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16944
16945
16946# GCJ did not exist at the time GCC didn't implicitly link libc in.
16947archive_cmds_need_lc_GCJ=no
16948
16949old_archive_cmds_GCJ=$old_archive_cmds
16950
16951## CAVEAT EMPTOR:
16952## There is no encapsulation within the following macros, do not change
16953## the running order or otherwise move them around unless you know exactly
16954## what you are doing...
16955
16956lt_prog_compiler_no_builtin_flag_GCJ=
16957
16958if test "$GCC" = yes; then
16959  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16960
16961
16962echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16963echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16964if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16965  echo $ECHO_N "(cached) $ECHO_C" >&6
16966else
16967  lt_cv_prog_compiler_rtti_exceptions=no
16968  ac_outfile=conftest.$ac_objext
16969   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16970   lt_compiler_flag="-fno-rtti -fno-exceptions"
16971   # Insert the option either (1) after the last *FLAGS variable, or
16972   # (2) before a word containing "conftest.", or (3) at the end.
16973   # Note that $ac_compile itself does not contain backslashes and begins
16974   # with a dollar sign (not a hyphen), so the echo should work correctly.
16975   # The option is referenced via a variable to avoid confusing sed.
16976   lt_compile=`echo "$ac_compile" | $SED \
16977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16979   -e 's:$: $lt_compiler_flag:'`
16980   (eval echo "\"\$as_me:16980: $lt_compile\"" >&5)
16981   (eval "$lt_compile" 2>conftest.err)
16982   ac_status=$?
16983   cat conftest.err >&5
16984   echo "$as_me:16984: \$? = $ac_status" >&5
16985   if (exit $ac_status) && test -s "$ac_outfile"; then
16986     # The compiler can only warn and ignore the option if not recognized
16987     # So say no if there are warnings other than the usual output.
16988     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16989     $SED '/^$/d' conftest.err >conftest.er2
16990     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16991       lt_cv_prog_compiler_rtti_exceptions=yes
16992     fi
16993   fi
16994   $rm conftest*
16995
16996fi
16997echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16998echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16999
17000if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17001    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17002else
17003    :
17004fi
17005
17006fi
17007
17008lt_prog_compiler_wl_GCJ=
17009lt_prog_compiler_pic_GCJ=
17010lt_prog_compiler_static_GCJ=
17011
17012echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17013echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17014
17015  if test "$GCC" = yes; then
17016    lt_prog_compiler_wl_GCJ='-Wl,'
17017    lt_prog_compiler_static_GCJ='-static'
17018
17019    case $host_os in
17020      aix*)
17021      # All AIX code is PIC.
17022      if test "$host_cpu" = ia64; then
17023	# AIX 5 now supports IA64 processor
17024	lt_prog_compiler_static_GCJ='-Bstatic'
17025      fi
17026      ;;
17027
17028    amigaos*)
17029      # FIXME: we need at least 68020 code to build shared libraries, but
17030      # adding the `-m68020' flag to GCC prevents building anything better,
17031      # like `-m68040'.
17032      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17033      ;;
17034
17035    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
17036    | osf5*)
17037      # PIC is the default for these OSes.
17038      ;;
17039
17040    mingw* | pw32* | os2*)
17041      # This hack is so that the source file can tell whether it is being
17042      # built for inclusion in a dll (and should export symbols for example).
17043      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17044      ;;
17045
17046    darwin* | rhapsody*)
17047      # PIC is the default on this platform
17048      # Common symbols not allowed in MH_DYLIB files
17049      lt_prog_compiler_pic_GCJ='-fno-common'
17050      ;;
17051
17052    msdosdjgpp*)
17053      # Just because we use GCC doesn't mean we suddenly get shared libraries
17054      # on systems that don't support them.
17055      lt_prog_compiler_can_build_shared_GCJ=no
17056      enable_shared=no
17057      ;;
17058
17059    sysv4*MP*)
17060      if test -d /usr/nec; then
17061	lt_prog_compiler_pic_GCJ=-Kconform_pic
17062      fi
17063      ;;
17064
17065    hpux*)
17066      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17067      # not for PA HP-UX.
17068      case $host_cpu in
17069      hppa*64*|ia64*)
17070	# +Z the default
17071	;;
17072      *)
17073	lt_prog_compiler_pic_GCJ='-fPIC'
17074	;;
17075      esac
17076      ;;
17077
17078    *)
17079      lt_prog_compiler_pic_GCJ='-fPIC'
17080      ;;
17081    esac
17082  else
17083    # PORTME Check for flag to pass linker flags through the system compiler.
17084    case $host_os in
17085    aix*)
17086      lt_prog_compiler_wl_GCJ='-Wl,'
17087      if test "$host_cpu" = ia64; then
17088	# AIX 5 now supports IA64 processor
17089	lt_prog_compiler_static_GCJ='-Bstatic'
17090      else
17091	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17092      fi
17093      ;;
17094      darwin*)
17095        # PIC is the default on this platform
17096        # Common symbols not allowed in MH_DYLIB files
17097       case $cc_basename in
17098         xlc*)
17099         lt_prog_compiler_pic_GCJ='-qnocommon'
17100         lt_prog_compiler_wl_GCJ='-Wl,'
17101         ;;
17102       esac
17103       ;;
17104
17105    mingw* | pw32* | os2*)
17106      # This hack is so that the source file can tell whether it is being
17107      # built for inclusion in a dll (and should export symbols for example).
17108      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17109      ;;
17110
17111    hpux9* | hpux10* | hpux11*)
17112      lt_prog_compiler_wl_GCJ='-Wl,'
17113      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17114      # not for PA HP-UX.
17115      case $host_cpu in
17116      hppa*64*|ia64*)
17117	# +Z the default
17118	;;
17119      *)
17120	lt_prog_compiler_pic_GCJ='+Z'
17121	;;
17122      esac
17123      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17124      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17125      ;;
17126
17127    irix5* | irix6* | nonstopux*)
17128      lt_prog_compiler_wl_GCJ='-Wl,'
17129      # PIC (with -KPIC) is the default.
17130      lt_prog_compiler_static_GCJ='-non_shared'
17131      ;;
17132
17133    newsos6)
17134      lt_prog_compiler_pic_GCJ='-KPIC'
17135      lt_prog_compiler_static_GCJ='-Bstatic'
17136      ;;
17137
17138    linux*)
17139      case $cc_basename in
17140      icc* | ecc*)
17141	lt_prog_compiler_wl_GCJ='-Wl,'
17142	lt_prog_compiler_pic_GCJ='-KPIC'
17143	lt_prog_compiler_static_GCJ='-static'
17144        ;;
17145      pgcc* | pgf77* | pgf90* | pgf95*)
17146        # Portland Group compilers (*not* the Pentium gcc compiler,
17147	# which looks to be a dead project)
17148	lt_prog_compiler_wl_GCJ='-Wl,'
17149	lt_prog_compiler_pic_GCJ='-fpic'
17150	lt_prog_compiler_static_GCJ='-Bstatic'
17151        ;;
17152      ccc*)
17153        lt_prog_compiler_wl_GCJ='-Wl,'
17154        # All Alpha code is PIC.
17155        lt_prog_compiler_static_GCJ='-non_shared'
17156        ;;
17157      esac
17158      ;;
17159
17160    osf3* | osf4* | osf5*)
17161      lt_prog_compiler_wl_GCJ='-Wl,'
17162      # All OSF/1 code is PIC.
17163      lt_prog_compiler_static_GCJ='-non_shared'
17164      ;;
17165
17166    sco3.2v5*)
17167      lt_prog_compiler_pic_GCJ='-Kpic'
17168      lt_prog_compiler_static_GCJ='-dn'
17169      ;;
17170
17171    solaris*)
17172      lt_prog_compiler_pic_GCJ='-KPIC'
17173      lt_prog_compiler_static_GCJ='-Bstatic'
17174      case $cc_basename in
17175      f77* | f90* | f95*)
17176	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17177      *)
17178	lt_prog_compiler_wl_GCJ='-Wl,';;
17179      esac
17180      ;;
17181
17182    sunos4*)
17183      lt_prog_compiler_wl_GCJ='-Qoption ld '
17184      lt_prog_compiler_pic_GCJ='-PIC'
17185      lt_prog_compiler_static_GCJ='-Bstatic'
17186      ;;
17187
17188    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17189      lt_prog_compiler_wl_GCJ='-Wl,'
17190      lt_prog_compiler_pic_GCJ='-KPIC'
17191      lt_prog_compiler_static_GCJ='-Bstatic'
17192      ;;
17193
17194    sysv4*MP*)
17195      if test -d /usr/nec ;then
17196	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17197	lt_prog_compiler_static_GCJ='-Bstatic'
17198      fi
17199      ;;
17200
17201    unicos*)
17202      lt_prog_compiler_wl_GCJ='-Wl,'
17203      lt_prog_compiler_can_build_shared_GCJ=no
17204      ;;
17205
17206    uts4*)
17207      lt_prog_compiler_pic_GCJ='-pic'
17208      lt_prog_compiler_static_GCJ='-Bstatic'
17209      ;;
17210
17211    *)
17212      lt_prog_compiler_can_build_shared_GCJ=no
17213      ;;
17214    esac
17215  fi
17216
17217echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17218echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17219
17220#
17221# Check to make sure the PIC flag actually works.
17222#
17223if test -n "$lt_prog_compiler_pic_GCJ"; then
17224
17225echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17226echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17227if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17228  echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230  lt_prog_compiler_pic_works_GCJ=no
17231  ac_outfile=conftest.$ac_objext
17232   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17233   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17234   # Insert the option either (1) after the last *FLAGS variable, or
17235   # (2) before a word containing "conftest.", or (3) at the end.
17236   # Note that $ac_compile itself does not contain backslashes and begins
17237   # with a dollar sign (not a hyphen), so the echo should work correctly.
17238   # The option is referenced via a variable to avoid confusing sed.
17239   lt_compile=`echo "$ac_compile" | $SED \
17240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17242   -e 's:$: $lt_compiler_flag:'`
17243   (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
17244   (eval "$lt_compile" 2>conftest.err)
17245   ac_status=$?
17246   cat conftest.err >&5
17247   echo "$as_me:17247: \$? = $ac_status" >&5
17248   if (exit $ac_status) && test -s "$ac_outfile"; then
17249     # The compiler can only warn and ignore the option if not recognized
17250     # So say no if there are warnings other than the usual output.
17251     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17252     $SED '/^$/d' conftest.err >conftest.er2
17253     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17254       lt_prog_compiler_pic_works_GCJ=yes
17255     fi
17256   fi
17257   $rm conftest*
17258
17259fi
17260echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17261echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17262
17263if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17264    case $lt_prog_compiler_pic_GCJ in
17265     "" | " "*) ;;
17266     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17267     esac
17268else
17269    lt_prog_compiler_pic_GCJ=
17270     lt_prog_compiler_can_build_shared_GCJ=no
17271fi
17272
17273fi
17274case $host_os in
17275  # For platforms which do not support PIC, -DPIC is meaningless:
17276  *djgpp*)
17277    lt_prog_compiler_pic_GCJ=
17278    ;;
17279  *)
17280    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17281    ;;
17282esac
17283
17284echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17285echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17286if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17287  echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289  lt_cv_prog_compiler_c_o_GCJ=no
17290   $rm -r conftest 2>/dev/null
17291   mkdir conftest
17292   cd conftest
17293   mkdir out
17294   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17295
17296   lt_compiler_flag="-o out/conftest2.$ac_objext"
17297   # Insert the option either (1) after the last *FLAGS variable, or
17298   # (2) before a word containing "conftest.", or (3) at the end.
17299   # Note that $ac_compile itself does not contain backslashes and begins
17300   # with a dollar sign (not a hyphen), so the echo should work correctly.
17301   lt_compile=`echo "$ac_compile" | $SED \
17302   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17303   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17304   -e 's:$: $lt_compiler_flag:'`
17305   (eval echo "\"\$as_me:17305: $lt_compile\"" >&5)
17306   (eval "$lt_compile" 2>out/conftest.err)
17307   ac_status=$?
17308   cat out/conftest.err >&5
17309   echo "$as_me:17309: \$? = $ac_status" >&5
17310   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17311   then
17312     # The compiler can only warn and ignore the option if not recognized
17313     # So say no if there are warnings
17314     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17315     $SED '/^$/d' out/conftest.err >out/conftest.er2
17316     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17317       lt_cv_prog_compiler_c_o_GCJ=yes
17318     fi
17319   fi
17320   chmod u+w . 2>&5
17321   $rm conftest*
17322   # SGI C++ compiler will create directory out/ii_files/ for
17323   # template instantiation
17324   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17325   $rm out/* && rmdir out
17326   cd ..
17327   rmdir conftest
17328   $rm conftest*
17329
17330fi
17331echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17332echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17333
17334
17335hard_links="nottested"
17336if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17337  # do not overwrite the value of need_locks provided by the user
17338  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17339echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17340  hard_links=yes
17341  $rm conftest*
17342  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17343  touch conftest.a
17344  ln conftest.a conftest.b 2>&5 || hard_links=no
17345  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17346  echo "$as_me:$LINENO: result: $hard_links" >&5
17347echo "${ECHO_T}$hard_links" >&6
17348  if test "$hard_links" = no; then
17349    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17350echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17351    need_locks=warn
17352  fi
17353else
17354  need_locks=no
17355fi
17356
17357echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17358echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17359
17360  runpath_var=
17361  allow_undefined_flag_GCJ=
17362  enable_shared_with_static_runtimes_GCJ=no
17363  archive_cmds_GCJ=
17364  archive_expsym_cmds_GCJ=
17365  old_archive_From_new_cmds_GCJ=
17366  old_archive_from_expsyms_cmds_GCJ=
17367  export_dynamic_flag_spec_GCJ=
17368  whole_archive_flag_spec_GCJ=
17369  thread_safe_flag_spec_GCJ=
17370  hardcode_libdir_flag_spec_GCJ=
17371  hardcode_libdir_flag_spec_ld_GCJ=
17372  hardcode_libdir_separator_GCJ=
17373  hardcode_direct_GCJ=no
17374  hardcode_minus_L_GCJ=no
17375  hardcode_shlibpath_var_GCJ=unsupported
17376  link_all_deplibs_GCJ=unknown
17377  hardcode_automatic_GCJ=no
17378  module_cmds_GCJ=
17379  module_expsym_cmds_GCJ=
17380  always_export_symbols_GCJ=no
17381  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17382  # include_expsyms should be a list of space-separated symbols to be *always*
17383  # included in the symbol list
17384  include_expsyms_GCJ=
17385  # exclude_expsyms can be an extended regexp of symbols to exclude
17386  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17387  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17388  # as well as any symbol that contains `d'.
17389  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17390  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17391  # platforms (ab)use it in PIC code, but their linkers get confused if
17392  # the symbol is explicitly referenced.  Since portable code cannot
17393  # rely on this symbol name, it's probably fine to never include it in
17394  # preloaded symbol tables.
17395  extract_expsyms_cmds=
17396  # Just being paranoid about ensuring that cc_basename is set.
17397  for cc_temp in $compiler""; do
17398  case $cc_temp in
17399    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17400    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17401    \-*) ;;
17402    *) break;;
17403  esac
17404done
17405cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17406
17407  case $host_os in
17408  cygwin* | mingw* | pw32*)
17409    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17410    # When not using gcc, we currently assume that we are using
17411    # Microsoft Visual C++.
17412    if test "$GCC" != yes; then
17413      with_gnu_ld=no
17414    fi
17415    ;;
17416  openbsd*)
17417    with_gnu_ld=no
17418    ;;
17419  esac
17420
17421  ld_shlibs_GCJ=yes
17422  if test "$with_gnu_ld" = yes; then
17423    # If archive_cmds runs LD, not CC, wlarc should be empty
17424    wlarc='${wl}'
17425
17426    # Set some defaults for GNU ld with shared library support. These
17427    # are reset later if shared libraries are not supported. Putting them
17428    # here allows them to be overridden if necessary.
17429    runpath_var=LD_RUN_PATH
17430    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17431    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17432    # ancient GNU ld didn't support --whole-archive et. al.
17433    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17434	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17435      else
17436  	whole_archive_flag_spec_GCJ=
17437    fi
17438    supports_anon_versioning=no
17439    case `$LD -v 2>/dev/null` in
17440      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17441      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17442      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17443      *\ 2.11.*) ;; # other 2.11 versions
17444      *) supports_anon_versioning=yes ;;
17445    esac
17446
17447    # See if GNU ld supports shared libraries.
17448    case $host_os in
17449    aix3* | aix4* | aix5*)
17450      # On AIX/PPC, the GNU linker is very broken
17451      if test "$host_cpu" != ia64; then
17452	ld_shlibs_GCJ=no
17453	cat <<EOF 1>&2
17454
17455*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17456*** to be unable to reliably create shared libraries on AIX.
17457*** Therefore, libtool is disabling shared libraries support.  If you
17458*** really care for shared libraries, you may want to modify your PATH
17459*** so that a non-GNU linker is found, and then restart.
17460
17461EOF
17462      fi
17463      ;;
17464
17465    amigaos*)
17466      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)'
17467      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17468      hardcode_minus_L_GCJ=yes
17469
17470      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17471      # that the semantics of dynamic libraries on AmigaOS, at least up
17472      # to version 4, is to share data among multiple programs linked
17473      # with the same dynamic library.  Since this doesn't match the
17474      # behavior of shared libraries on other platforms, we can't use
17475      # them.
17476      ld_shlibs_GCJ=no
17477      ;;
17478
17479    beos*)
17480      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17481	allow_undefined_flag_GCJ=unsupported
17482	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17483	# support --undefined.  This deserves some investigation.  FIXME
17484	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485      else
17486	ld_shlibs_GCJ=no
17487      fi
17488      ;;
17489
17490    cygwin* | mingw* | pw32*)
17491      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17492      # as there is no search path for DLLs.
17493      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494      allow_undefined_flag_GCJ=unsupported
17495      always_export_symbols_GCJ=no
17496      enable_shared_with_static_runtimes_GCJ=yes
17497      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17498
17499      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17500        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17501	# If the export-symbols file already is a .def file (1st line
17502	# is EXPORTS), use it as is; otherwise, prepend...
17503	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17504	  cp $export_symbols $output_objdir/$soname.def;
17505	else
17506	  echo EXPORTS > $output_objdir/$soname.def;
17507	  cat $export_symbols >> $output_objdir/$soname.def;
17508	fi~
17509	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17510      else
17511	ld_shlibs_GCJ=no
17512      fi
17513      ;;
17514
17515    haiku*)
17516      allow_undefined_flag_GCJ=unsupported
17517      archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17518      ;;
17519
17520    linux*)
17521      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17522	tmp_addflag=
17523	case $cc_basename,$host_cpu in
17524	pgcc*)				# Portland Group C compiler
17525	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17526	  tmp_addflag=' $pic_flag'
17527	  ;;
17528	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17529	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17530	  tmp_addflag=' $pic_flag -Mnomain' ;;
17531	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17532	  tmp_addflag=' -i_dynamic' ;;
17533	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17534	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17535	ifc* | ifort*)			# Intel Fortran compiler
17536	  tmp_addflag=' -nofor_main' ;;
17537	esac
17538	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539
17540	if test $supports_anon_versioning = yes; then
17541	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17542  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17543  $echo "local: *; };" >> $output_objdir/$libname.ver~
17544	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17545	fi
17546      else
17547	ld_shlibs_GCJ=no
17548      fi
17549      ;;
17550
17551    netbsd*)
17552      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17553	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17554	wlarc=
17555      else
17556	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17558      fi
17559      ;;
17560
17561    solaris* | sysv5*)
17562      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17563	ld_shlibs_GCJ=no
17564	cat <<EOF 1>&2
17565
17566*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17567*** create shared libraries on Solaris systems.  Therefore, libtool
17568*** is disabling shared libraries support.  We urge you to upgrade GNU
17569*** binutils to release 2.9.1 or newer.  Another option is to modify
17570*** your PATH or compiler configuration so that the native linker is
17571*** used, and then restart.
17572
17573EOF
17574      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17577      else
17578	ld_shlibs_GCJ=no
17579      fi
17580      ;;
17581
17582    sunos4*)
17583      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17584      wlarc=
17585      hardcode_direct_GCJ=yes
17586      hardcode_shlibpath_var_GCJ=no
17587      ;;
17588
17589    *)
17590      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17591	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17592	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17593      else
17594	ld_shlibs_GCJ=no
17595      fi
17596      ;;
17597    esac
17598
17599    if test "$ld_shlibs_GCJ" = no; then
17600      runpath_var=
17601      hardcode_libdir_flag_spec_GCJ=
17602      export_dynamic_flag_spec_GCJ=
17603      whole_archive_flag_spec_GCJ=
17604    fi
17605  else
17606    # PORTME fill in a description of your system's linker (not GNU ld)
17607    case $host_os in
17608    aix3*)
17609      allow_undefined_flag_GCJ=unsupported
17610      always_export_symbols_GCJ=yes
17611      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'
17612      # Note: this linker hardcodes the directories in LIBPATH if there
17613      # are no directories specified by -L.
17614      hardcode_minus_L_GCJ=yes
17615      if test "$GCC" = yes && test -z "$link_static_flag"; then
17616	# Neither direct hardcoding nor static linking is supported with a
17617	# broken collect2.
17618	hardcode_direct_GCJ=unsupported
17619      fi
17620      ;;
17621
17622    aix4* | aix5*)
17623      if test "$host_cpu" = ia64; then
17624	# On IA64, the linker does run time linking by default, so we don't
17625	# have to do anything special.
17626	aix_use_runtimelinking=no
17627	exp_sym_flag='-Bexport'
17628	no_entry_flag=""
17629      else
17630	# If we're using GNU nm, then we don't want the "-C" option.
17631	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17632	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17633	  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'
17634	else
17635	  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'
17636	fi
17637	aix_use_runtimelinking=no
17638
17639	# Test if we are trying to use run time linking or normal
17640	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17641	# need to do runtime linking.
17642	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17643	  for ld_flag in $LDFLAGS; do
17644  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17645  	    aix_use_runtimelinking=yes
17646  	    break
17647  	  fi
17648	  done
17649	esac
17650
17651	exp_sym_flag='-bexport'
17652	no_entry_flag='-bnoentry'
17653      fi
17654
17655      # When large executables or shared objects are built, AIX ld can
17656      # have problems creating the table of contents.  If linking a library
17657      # or program results in "error TOC overflow" add -mminimal-toc to
17658      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17659      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17660
17661      archive_cmds_GCJ=''
17662      hardcode_direct_GCJ=yes
17663      hardcode_libdir_separator_GCJ=':'
17664      link_all_deplibs_GCJ=yes
17665
17666      if test "$GCC" = yes; then
17667	case $host_os in aix4.[012]|aix4.[012].*)
17668	# We only want to do this on AIX 4.2 and lower, the check
17669	# below for broken collect2 doesn't work under 4.3+
17670	  collect2name=`${CC} -print-prog-name=collect2`
17671	  if test -f "$collect2name" && \
17672  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17673	  then
17674  	  # We have reworked collect2
17675  	  hardcode_direct_GCJ=yes
17676	  else
17677  	  # We have old collect2
17678  	  hardcode_direct_GCJ=unsupported
17679  	  # It fails to find uninstalled libraries when the uninstalled
17680  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17681  	  # to unsupported forces relinking
17682  	  hardcode_minus_L_GCJ=yes
17683  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17684  	  hardcode_libdir_separator_GCJ=
17685	  fi
17686	esac
17687	shared_flag='-shared'
17688	if test "$aix_use_runtimelinking" = yes; then
17689	  shared_flag="$shared_flag "'${wl}-G'
17690	fi
17691      else
17692	# not using gcc
17693	if test "$host_cpu" = ia64; then
17694  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17695  	# chokes on -Wl,-G. The following line is correct:
17696	  shared_flag='-G'
17697	else
17698  	if test "$aix_use_runtimelinking" = yes; then
17699	    shared_flag='${wl}-G'
17700	  else
17701	    shared_flag='${wl}-bM:SRE'
17702  	fi
17703	fi
17704      fi
17705
17706      # It seems that -bexpall does not export symbols beginning with
17707      # underscore (_), so it is better to generate a list of symbols to export.
17708      always_export_symbols_GCJ=yes
17709      if test "$aix_use_runtimelinking" = yes; then
17710	# Warning - without using the other runtime loading flags (-brtl),
17711	# -berok will link without error, but may produce a broken library.
17712	allow_undefined_flag_GCJ='-berok'
17713       # Determine the default libpath from the value encoded in an empty executable.
17714       cat >conftest.$ac_ext <<_ACEOF
17715/* confdefs.h.  */
17716_ACEOF
17717cat confdefs.h >>conftest.$ac_ext
17718cat >>conftest.$ac_ext <<_ACEOF
17719/* end confdefs.h.  */
17720
17721#ifdef F77_DUMMY_MAIN
17722
17723#  ifdef __cplusplus
17724     extern "C"
17725#  endif
17726   int F77_DUMMY_MAIN() { return 1; }
17727
17728#endif
17729int
17730main ()
17731{
17732
17733  ;
17734  return 0;
17735}
17736_ACEOF
17737rm -f conftest.$ac_objext conftest$ac_exeext
17738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739  (eval $ac_link) 2>conftest.er1
17740  ac_status=$?
17741  grep -v '^ *+' conftest.er1 >conftest.err
17742  rm -f conftest.er1
17743  cat conftest.err >&5
17744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745  (exit $ac_status); } &&
17746	 { ac_try='test -z "$ac_c_werror_flag"
17747			 || test ! -s conftest.err'
17748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749  (eval $ac_try) 2>&5
17750  ac_status=$?
17751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752  (exit $ac_status); }; } &&
17753	 { ac_try='test -s conftest$ac_exeext'
17754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755  (eval $ac_try) 2>&5
17756  ac_status=$?
17757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758  (exit $ac_status); }; }; then
17759
17760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17761}'`
17762# Check for a 64-bit object if we didn't find anything.
17763if 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; }
17764}'`; fi
17765else
17766  echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
17768
17769fi
17770rm -f conftest.err conftest.$ac_objext \
17771      conftest$ac_exeext conftest.$ac_ext
17772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17773
17774       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17775	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"
17776       else
17777	if test "$host_cpu" = ia64; then
17778	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17779	  allow_undefined_flag_GCJ="-z nodefs"
17780	  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"
17781	else
17782	 # Determine the default libpath from the value encoded in an empty executable.
17783	 cat >conftest.$ac_ext <<_ACEOF
17784/* confdefs.h.  */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h.  */
17789
17790#ifdef F77_DUMMY_MAIN
17791
17792#  ifdef __cplusplus
17793     extern "C"
17794#  endif
17795   int F77_DUMMY_MAIN() { return 1; }
17796
17797#endif
17798int
17799main ()
17800{
17801
17802  ;
17803  return 0;
17804}
17805_ACEOF
17806rm -f conftest.$ac_objext conftest$ac_exeext
17807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17808  (eval $ac_link) 2>conftest.er1
17809  ac_status=$?
17810  grep -v '^ *+' conftest.er1 >conftest.err
17811  rm -f conftest.er1
17812  cat conftest.err >&5
17813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814  (exit $ac_status); } &&
17815	 { ac_try='test -z "$ac_c_werror_flag"
17816			 || test ! -s conftest.err'
17817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818  (eval $ac_try) 2>&5
17819  ac_status=$?
17820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821  (exit $ac_status); }; } &&
17822	 { ac_try='test -s conftest$ac_exeext'
17823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824  (eval $ac_try) 2>&5
17825  ac_status=$?
17826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827  (exit $ac_status); }; }; then
17828
17829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17830}'`
17831# Check for a 64-bit object if we didn't find anything.
17832if 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; }
17833}'`; fi
17834else
17835  echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838fi
17839rm -f conftest.err conftest.$ac_objext \
17840      conftest$ac_exeext conftest.$ac_ext
17841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17842
17843	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17844	  # Warning - without using the other run time loading flags,
17845	  # -berok will link without error, but may produce a broken library.
17846	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17847	  allow_undefined_flag_GCJ=' ${wl}-berok'
17848	  # -bexpall does not export symbols beginning with underscore (_)
17849	  always_export_symbols_GCJ=yes
17850	  # Exported symbols can be pulled into shared objects from archives
17851	  whole_archive_flag_spec_GCJ=' '
17852	  archive_cmds_need_lc_GCJ=yes
17853	  # This is similar to how AIX traditionally builds its shared libraries.
17854	  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'
17855	fi
17856      fi
17857      ;;
17858
17859    amigaos*)
17860      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)'
17861      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17862      hardcode_minus_L_GCJ=yes
17863      # see comment about different semantics on the GNU ld section
17864      ld_shlibs_GCJ=no
17865      ;;
17866
17867    bsdi[45]*)
17868      export_dynamic_flag_spec_GCJ=-rdynamic
17869      ;;
17870
17871    cygwin* | mingw* | pw32*)
17872      # When not using gcc, we currently assume that we are using
17873      # Microsoft Visual C++.
17874      # hardcode_libdir_flag_spec is actually meaningless, as there is
17875      # no search path for DLLs.
17876      hardcode_libdir_flag_spec_GCJ=' '
17877      allow_undefined_flag_GCJ=unsupported
17878      # Tell ltmain to make .lib files, not .a files.
17879      libext=lib
17880      # Tell ltmain to make .dll files, not .so files.
17881      shrext_cmds=".dll"
17882      # FIXME: Setting linknames here is a bad hack.
17883      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17884      # The linker will automatically build a .lib file if we build a DLL.
17885      old_archive_From_new_cmds_GCJ='true'
17886      # FIXME: Should let the user specify the lib program.
17887      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17888      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17889      enable_shared_with_static_runtimes_GCJ=yes
17890      ;;
17891
17892    darwin* | rhapsody*)
17893      case $host_os in
17894        rhapsody* | darwin1.[012])
17895         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17896         ;;
17897       *) # Darwin 1.3 on
17898         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17899           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17900         else
17901           case ${MACOSX_DEPLOYMENT_TARGET} in
17902             10.[012])
17903               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17904               ;;
17905             10.*)
17906               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17907               ;;
17908           esac
17909         fi
17910         ;;
17911      esac
17912      archive_cmds_need_lc_GCJ=no
17913      hardcode_direct_GCJ=no
17914      hardcode_automatic_GCJ=yes
17915      hardcode_shlibpath_var_GCJ=unsupported
17916      whole_archive_flag_spec_GCJ=''
17917      link_all_deplibs_GCJ=yes
17918    if test "$GCC" = yes ; then
17919    	output_verbose_link_cmd='echo'
17920        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17921      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17922      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17923      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17924      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}'
17925    else
17926      case $cc_basename in
17927        xlc*)
17928         output_verbose_link_cmd='echo'
17929         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17930         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17931          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17932         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17933          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}'
17934          ;;
17935       *)
17936         ld_shlibs_GCJ=no
17937          ;;
17938      esac
17939    fi
17940      ;;
17941
17942    dgux*)
17943      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17944      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17945      hardcode_shlibpath_var_GCJ=no
17946      ;;
17947
17948    freebsd1*)
17949      ld_shlibs_GCJ=no
17950      ;;
17951
17952    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17953    # support.  Future versions do this automatically, but an explicit c++rt0.o
17954    # does not break anything, and helps significantly (at the cost of a little
17955    # extra space).
17956    freebsd2.2*)
17957      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17958      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17959      hardcode_direct_GCJ=yes
17960      hardcode_shlibpath_var_GCJ=no
17961      ;;
17962
17963    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17964    freebsd2*)
17965      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17966      hardcode_direct_GCJ=yes
17967      hardcode_minus_L_GCJ=yes
17968      hardcode_shlibpath_var_GCJ=no
17969      ;;
17970
17971    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17972    freebsd* | kfreebsd*-gnu | dragonfly*)
17973      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17974      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17975      hardcode_direct_GCJ=yes
17976      hardcode_shlibpath_var_GCJ=no
17977      ;;
17978
17979    hpux9*)
17980      if test "$GCC" = yes; then
17981	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'
17982      else
17983	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'
17984      fi
17985      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17986      hardcode_libdir_separator_GCJ=:
17987      hardcode_direct_GCJ=yes
17988
17989      # hardcode_minus_L: Not really in the search PATH,
17990      # but as the default location of the library.
17991      hardcode_minus_L_GCJ=yes
17992      export_dynamic_flag_spec_GCJ='${wl}-E'
17993      ;;
17994
17995    hpux10* | hpux11*)
17996      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17997	case $host_cpu in
17998	hppa*64*|ia64*)
17999	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18000	  ;;
18001	*)
18002	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18003	  ;;
18004	esac
18005      else
18006	case $host_cpu in
18007	hppa*64*|ia64*)
18008	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18009	  ;;
18010	*)
18011	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18012	  ;;
18013	esac
18014      fi
18015      if test "$with_gnu_ld" = no; then
18016	case $host_cpu in
18017	hppa*64*)
18018	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18019	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18020	  hardcode_libdir_separator_GCJ=:
18021	  hardcode_direct_GCJ=no
18022	  hardcode_shlibpath_var_GCJ=no
18023	  ;;
18024	ia64*)
18025	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18026	  hardcode_direct_GCJ=no
18027	  hardcode_shlibpath_var_GCJ=no
18028
18029	  # hardcode_minus_L: Not really in the search PATH,
18030	  # but as the default location of the library.
18031	  hardcode_minus_L_GCJ=yes
18032	  ;;
18033	*)
18034	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18035	  hardcode_libdir_separator_GCJ=:
18036	  hardcode_direct_GCJ=yes
18037	  export_dynamic_flag_spec_GCJ='${wl}-E'
18038
18039	  # hardcode_minus_L: Not really in the search PATH,
18040	  # but as the default location of the library.
18041	  hardcode_minus_L_GCJ=yes
18042	  ;;
18043	esac
18044      fi
18045      ;;
18046
18047    irix5* | irix6* | nonstopux*)
18048      if test "$GCC" = yes; then
18049	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'
18050      else
18051	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'
18052	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18053      fi
18054      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18055      hardcode_libdir_separator_GCJ=:
18056      link_all_deplibs_GCJ=yes
18057      ;;
18058
18059    netbsd*)
18060      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18061	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18062      else
18063	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18064      fi
18065      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18066      hardcode_direct_GCJ=yes
18067      hardcode_shlibpath_var_GCJ=no
18068      ;;
18069
18070    newsos6)
18071      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072      hardcode_direct_GCJ=yes
18073      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18074      hardcode_libdir_separator_GCJ=:
18075      hardcode_shlibpath_var_GCJ=no
18076      ;;
18077
18078    openbsd*)
18079      hardcode_direct_GCJ=yes
18080      hardcode_shlibpath_var_GCJ=no
18081      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18082	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18083	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18084	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18085	export_dynamic_flag_spec_GCJ='${wl}-E'
18086      else
18087       case $host_os in
18088	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18089	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18090	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18091	   ;;
18092	 *)
18093	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18094	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18095	   ;;
18096       esac
18097      fi
18098      ;;
18099
18100    os2*)
18101      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18102      hardcode_minus_L_GCJ=yes
18103      allow_undefined_flag_GCJ=unsupported
18104      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'
18105      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18106      ;;
18107
18108    osf3*)
18109      if test "$GCC" = yes; then
18110	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18111	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'
18112      else
18113	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18114	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'
18115      fi
18116      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18117      hardcode_libdir_separator_GCJ=:
18118      ;;
18119
18120    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18121      if test "$GCC" = yes; then
18122	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18123	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'
18124	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18125      else
18126	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18127	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'
18128	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~
18129	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18130
18131	# Both c and cxx compiler support -rpath directly
18132	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18133      fi
18134      hardcode_libdir_separator_GCJ=:
18135      ;;
18136
18137    sco3.2v5*)
18138      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139      hardcode_shlibpath_var_GCJ=no
18140      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18141      runpath_var=LD_RUN_PATH
18142      hardcode_runpath_var=yes
18143      ;;
18144
18145    solaris*)
18146      no_undefined_flag_GCJ=' -z text'
18147      if test "$GCC" = yes; then
18148	wlarc='${wl}'
18149	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18150	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18151	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18152      else
18153	wlarc=''
18154	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18155	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18156  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18157      fi
18158      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18159      hardcode_shlibpath_var_GCJ=no
18160      case $host_os in
18161      solaris2.[0-5] | solaris2.[0-5].*) ;;
18162      *)
18163 	# The compiler driver will combine linker options so we
18164 	# cannot just pass the convience library names through
18165 	# without $wl, iff we do not link with $LD.
18166 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18167 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18168 	case $wlarc in
18169 	'')
18170 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18171 	*)
18172 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18173 	esac ;;
18174      esac
18175      link_all_deplibs_GCJ=yes
18176      ;;
18177
18178    sunos4*)
18179      if test "x$host_vendor" = xsequent; then
18180	# Use $CC to link under sequent, because it throws in some extra .o
18181	# files that make .init and .fini sections work.
18182	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18183      else
18184	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18185      fi
18186      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18187      hardcode_direct_GCJ=yes
18188      hardcode_minus_L_GCJ=yes
18189      hardcode_shlibpath_var_GCJ=no
18190      ;;
18191
18192    sysv4)
18193      case $host_vendor in
18194	sni)
18195	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196	  hardcode_direct_GCJ=yes # is this really true???
18197	;;
18198	siemens)
18199	  ## LD is ld it makes a PLAMLIB
18200	  ## CC just makes a GrossModule.
18201	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18202	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18203	  hardcode_direct_GCJ=no
18204        ;;
18205	motorola)
18206	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18207	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18208	;;
18209      esac
18210      runpath_var='LD_RUN_PATH'
18211      hardcode_shlibpath_var_GCJ=no
18212      ;;
18213
18214    sysv4.3*)
18215      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18216      hardcode_shlibpath_var_GCJ=no
18217      export_dynamic_flag_spec_GCJ='-Bexport'
18218      ;;
18219
18220    sysv4*MP*)
18221      if test -d /usr/nec; then
18222	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18223	hardcode_shlibpath_var_GCJ=no
18224	runpath_var=LD_RUN_PATH
18225	hardcode_runpath_var=yes
18226	ld_shlibs_GCJ=yes
18227      fi
18228      ;;
18229
18230    sysv4.2uw2*)
18231      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18232      hardcode_direct_GCJ=yes
18233      hardcode_minus_L_GCJ=no
18234      hardcode_shlibpath_var_GCJ=no
18235      hardcode_runpath_var=yes
18236      runpath_var=LD_RUN_PATH
18237      ;;
18238
18239   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18240      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18241      if test "$GCC" = yes; then
18242	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243      else
18244	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18245      fi
18246      runpath_var='LD_RUN_PATH'
18247      hardcode_shlibpath_var_GCJ=no
18248      ;;
18249
18250    sysv5*)
18251      no_undefined_flag_GCJ=' -z text'
18252      # $CC -shared without GNU ld will not create a library from C++
18253      # object files and a static libstdc++, better avoid it by now
18254      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18255      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18256  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18257      hardcode_libdir_flag_spec_GCJ=
18258      hardcode_shlibpath_var_GCJ=no
18259      runpath_var='LD_RUN_PATH'
18260      ;;
18261
18262    uts4*)
18263      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18264      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18265      hardcode_shlibpath_var_GCJ=no
18266      ;;
18267
18268    *)
18269      ld_shlibs_GCJ=no
18270      ;;
18271    esac
18272  fi
18273
18274echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18275echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18276test "$ld_shlibs_GCJ" = no && can_build_shared=no
18277
18278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18279if test "$GCC" = yes; then
18280  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18281fi
18282
18283#
18284# Do we need to explicitly link libc?
18285#
18286case "x$archive_cmds_need_lc_GCJ" in
18287x|xyes)
18288  # Assume -lc should be added
18289  archive_cmds_need_lc_GCJ=yes
18290
18291  if test "$enable_shared" = yes && test "$GCC" = yes; then
18292    case $archive_cmds_GCJ in
18293    *'~'*)
18294      # FIXME: we may have to deal with multi-command sequences.
18295      ;;
18296    '$CC '*)
18297      # Test whether the compiler implicitly links with -lc since on some
18298      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18299      # to ld, don't add -lc before -lgcc.
18300      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18301echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18302      $rm conftest*
18303      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18304
18305      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18306  (eval $ac_compile) 2>&5
18307  ac_status=$?
18308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309  (exit $ac_status); } 2>conftest.err; then
18310        soname=conftest
18311        lib=conftest
18312        libobjs=conftest.$ac_objext
18313        deplibs=
18314        wl=$lt_prog_compiler_wl_GCJ
18315        compiler_flags=-v
18316        linker_flags=-v
18317        verstring=
18318        output_objdir=.
18319        libname=conftest
18320        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18321        allow_undefined_flag_GCJ=
18322        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18323  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18324  ac_status=$?
18325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326  (exit $ac_status); }
18327        then
18328	  archive_cmds_need_lc_GCJ=no
18329        else
18330	  archive_cmds_need_lc_GCJ=yes
18331        fi
18332        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18333      else
18334        cat conftest.err 1>&5
18335      fi
18336      $rm conftest*
18337      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18338echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18339      ;;
18340    esac
18341  fi
18342  ;;
18343esac
18344
18345echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18346echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18347library_names_spec=
18348libname_spec='lib$name'
18349soname_spec=
18350shrext_cmds=".so"
18351postinstall_cmds=
18352postuninstall_cmds=
18353finish_cmds=
18354finish_eval=
18355shlibpath_var=
18356shlibpath_overrides_runpath=unknown
18357version_type=none
18358dynamic_linker="$host_os ld.so"
18359sys_lib_dlsearch_path_spec="/lib /usr/lib"
18360if test "$GCC" = yes; then
18361  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18362  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18363    # if the path contains ";" then we assume it to be the separator
18364    # otherwise default to the standard path separator (i.e. ":") - it is
18365    # assumed that no part of a normal pathname contains ";" but that should
18366    # okay in the real world where ";" in dirpaths is itself problematic.
18367    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18368  else
18369    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18370  fi
18371else
18372  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18373fi
18374need_lib_prefix=unknown
18375hardcode_into_libs=no
18376
18377# when you set need_version to no, make sure it does not cause -set_version
18378# flags to be left without arguments
18379need_version=unknown
18380
18381case $host_os in
18382aix3*)
18383  version_type=linux
18384  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18385  shlibpath_var=LIBPATH
18386
18387  # AIX 3 has no versioning support, so we append a major version to the name.
18388  soname_spec='${libname}${release}${shared_ext}$major'
18389  ;;
18390
18391aix4* | aix5*)
18392  version_type=linux
18393  need_lib_prefix=no
18394  need_version=no
18395  hardcode_into_libs=yes
18396  if test "$host_cpu" = ia64; then
18397    # AIX 5 supports IA64
18398    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18399    shlibpath_var=LD_LIBRARY_PATH
18400  else
18401    # With GCC up to 2.95.x, collect2 would create an import file
18402    # for dependence libraries.  The import file would start with
18403    # the line `#! .'.  This would cause the generated library to
18404    # depend on `.', always an invalid library.  This was fixed in
18405    # development snapshots of GCC prior to 3.0.
18406    case $host_os in
18407      aix4 | aix4.[01] | aix4.[01].*)
18408      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18409	   echo ' yes '
18410	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18411	:
18412      else
18413	can_build_shared=no
18414      fi
18415      ;;
18416    esac
18417    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18418    # soname into executable. Probably we can add versioning support to
18419    # collect2, so additional links can be useful in future.
18420    if test "$aix_use_runtimelinking" = yes; then
18421      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18422      # instead of lib<name>.a to let people know that these are not
18423      # typical AIX shared libraries.
18424      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425    else
18426      # We preserve .a as extension for shared libraries through AIX4.2
18427      # and later when we are not doing run time linking.
18428      library_names_spec='${libname}${release}.a $libname.a'
18429      soname_spec='${libname}${release}${shared_ext}$major'
18430    fi
18431    shlibpath_var=LIBPATH
18432  fi
18433  ;;
18434
18435amigaos*)
18436  library_names_spec='$libname.ixlibrary $libname.a'
18437  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18438  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'
18439  ;;
18440
18441beos*)
18442  library_names_spec='${libname}${shared_ext}'
18443  dynamic_linker="$host_os ld.so"
18444  shlibpath_var=LIBRARY_PATH
18445  ;;
18446
18447bsdi[45]*)
18448  version_type=linux
18449  need_version=no
18450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451  soname_spec='${libname}${release}${shared_ext}$major'
18452  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18453  shlibpath_var=LD_LIBRARY_PATH
18454  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18455  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18456  # the default ld.so.conf also contains /usr/contrib/lib and
18457  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18458  # libtool to hard-code these into programs
18459  ;;
18460
18461cygwin* | mingw* | pw32*)
18462  version_type=windows
18463  shrext_cmds=".dll"
18464  need_version=no
18465  need_lib_prefix=no
18466
18467  case $GCC,$host_os in
18468  yes,cygwin* | yes,mingw* | yes,pw32*)
18469    library_names_spec='$libname.dll.a'
18470    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18471    postinstall_cmds='base_file=`basename \${file}`~
18472      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18473      dldir=$destdir/`dirname \$dlpath`~
18474      test -d \$dldir || mkdir -p \$dldir~
18475      $install_prog $dir/$dlname \$dldir/$dlname~
18476      chmod a+x \$dldir/$dlname'
18477    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18478      dlpath=$dir/\$dldll~
18479       $rm \$dlpath'
18480    shlibpath_overrides_runpath=yes
18481
18482    case $host_os in
18483    cygwin*)
18484      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18485      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18486      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18487      ;;
18488    mingw*)
18489      # MinGW DLLs use traditional 'lib' prefix
18490      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18491      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18492      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18493        # It is most probably a Windows format PATH printed by
18494        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18495        # path with ; separators, and with drive letters. We can handle the
18496        # drive letters (cygwin fileutils understands them), so leave them,
18497        # especially as we might pass files found there to a mingw objdump,
18498        # which wouldn't understand a cygwinified path. Ahh.
18499        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18500      else
18501        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18502      fi
18503      ;;
18504    pw32*)
18505      # pw32 DLLs use 'pw' prefix rather than 'lib'
18506      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18507      ;;
18508    esac
18509    ;;
18510
18511  *)
18512    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18513    ;;
18514  esac
18515  dynamic_linker='Win32 ld.exe'
18516  # FIXME: first we should search . and the directory the executable is in
18517  shlibpath_var=PATH
18518  ;;
18519
18520darwin* | rhapsody*)
18521  dynamic_linker="$host_os dyld"
18522  version_type=darwin
18523  need_lib_prefix=no
18524  need_version=no
18525  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18526  soname_spec='${libname}${release}${major}$shared_ext'
18527  shlibpath_overrides_runpath=yes
18528  shlibpath_var=DYLD_LIBRARY_PATH
18529  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18530  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18531  if test "$GCC" = yes; then
18532    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"`
18533  else
18534    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18535  fi
18536  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18537  ;;
18538
18539dgux*)
18540  version_type=linux
18541  need_lib_prefix=no
18542  need_version=no
18543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18544  soname_spec='${libname}${release}${shared_ext}$major'
18545  shlibpath_var=LD_LIBRARY_PATH
18546  ;;
18547
18548freebsd1*)
18549  dynamic_linker=no
18550  ;;
18551
18552haiku*)
18553  library_names_spec='${libname}${shared_ext}'
18554  dynamic_linker="$host_os ld.so"
18555  shlibpath_var=LIBRARY_PATH
18556  ;;
18557
18558kfreebsd*-gnu)
18559  version_type=linux
18560  need_lib_prefix=no
18561  need_version=no
18562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18563  soname_spec='${libname}${release}${shared_ext}$major'
18564  shlibpath_var=LD_LIBRARY_PATH
18565  shlibpath_overrides_runpath=no
18566  hardcode_into_libs=yes
18567  dynamic_linker='GNU ld.so'
18568  ;;
18569
18570freebsd* | dragonfly*)
18571  # DragonFly does not have aout.  When/if they implement a new
18572  # versioning mechanism, adjust this.
18573  if test -x /usr/bin/objformat; then
18574    objformat=`/usr/bin/objformat`
18575  else
18576    case $host_os in
18577    freebsd[123]*) objformat=aout ;;
18578    *) objformat=elf ;;
18579    esac
18580  fi
18581  version_type=freebsd-$objformat
18582  case $version_type in
18583    freebsd-elf*)
18584      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18585      need_version=no
18586      need_lib_prefix=no
18587      ;;
18588    freebsd-*)
18589      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18590      need_version=yes
18591      ;;
18592  esac
18593  shlibpath_var=LD_LIBRARY_PATH
18594  case $host_os in
18595  freebsd2*)
18596    shlibpath_overrides_runpath=yes
18597    ;;
18598  freebsd3.[01]* | freebsdelf3.[01]*)
18599    shlibpath_overrides_runpath=yes
18600    hardcode_into_libs=yes
18601    ;;
18602  *) # from 3.2 on
18603    shlibpath_overrides_runpath=no
18604    hardcode_into_libs=yes
18605    ;;
18606  esac
18607  ;;
18608
18609gnu*)
18610  version_type=linux
18611  need_lib_prefix=no
18612  need_version=no
18613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18614  soname_spec='${libname}${release}${shared_ext}$major'
18615  shlibpath_var=LD_LIBRARY_PATH
18616  hardcode_into_libs=yes
18617  ;;
18618
18619hpux9* | hpux10* | hpux11*)
18620  # Give a soname corresponding to the major version so that dld.sl refuses to
18621  # link against other versions.
18622  version_type=sunos
18623  need_lib_prefix=no
18624  need_version=no
18625  case $host_cpu in
18626  ia64*)
18627    shrext_cmds='.so'
18628    hardcode_into_libs=yes
18629    dynamic_linker="$host_os dld.so"
18630    shlibpath_var=LD_LIBRARY_PATH
18631    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18632    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633    soname_spec='${libname}${release}${shared_ext}$major'
18634    if test "X$HPUX_IA64_MODE" = X32; then
18635      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18636    else
18637      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18638    fi
18639    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18640    ;;
18641   hppa*64*)
18642     shrext_cmds='.sl'
18643     hardcode_into_libs=yes
18644     dynamic_linker="$host_os dld.sl"
18645     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18646     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648     soname_spec='${libname}${release}${shared_ext}$major'
18649     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18650     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18651     ;;
18652   *)
18653    shrext_cmds='.sl'
18654    dynamic_linker="$host_os dld.sl"
18655    shlibpath_var=SHLIB_PATH
18656    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658    soname_spec='${libname}${release}${shared_ext}$major'
18659    ;;
18660  esac
18661  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18662  postinstall_cmds='chmod 555 $lib'
18663  ;;
18664
18665irix5* | irix6* | nonstopux*)
18666  case $host_os in
18667    nonstopux*) version_type=nonstopux ;;
18668    *)
18669	if test "$lt_cv_prog_gnu_ld" = yes; then
18670		version_type=linux
18671	else
18672		version_type=irix
18673	fi ;;
18674  esac
18675  need_lib_prefix=no
18676  need_version=no
18677  soname_spec='${libname}${release}${shared_ext}$major'
18678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18679  case $host_os in
18680  irix5* | nonstopux*)
18681    libsuff= shlibsuff=
18682    ;;
18683  *)
18684    case $LD in # libtool.m4 will add one of these switches to LD
18685    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18686      libsuff= shlibsuff= libmagic=32-bit;;
18687    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18688      libsuff=32 shlibsuff=N32 libmagic=N32;;
18689    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18690      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18691    *) libsuff= shlibsuff= libmagic=never-match;;
18692    esac
18693    ;;
18694  esac
18695  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18696  shlibpath_overrides_runpath=no
18697  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18698  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18699  hardcode_into_libs=yes
18700  ;;
18701
18702# No shared lib support for Linux oldld, aout, or coff.
18703linux*oldld* | linux*aout* | linux*coff*)
18704  dynamic_linker=no
18705  ;;
18706
18707# This must be Linux ELF.
18708linux*)
18709  version_type=linux
18710  need_lib_prefix=no
18711  need_version=no
18712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18713  soname_spec='${libname}${release}${shared_ext}$major'
18714  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18715  shlibpath_var=LD_LIBRARY_PATH
18716  shlibpath_overrides_runpath=no
18717  # This implies no fast_install, which is unacceptable.
18718  # Some rework will be needed to allow for fast_install
18719  # before this can be enabled.
18720  hardcode_into_libs=yes
18721
18722  # Append ld.so.conf contents to the search path
18723  if test -f /etc/ld.so.conf; then
18724    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18725    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18726  fi
18727
18728  # We used to test for /lib/ld.so.1 and disable shared libraries on
18729  # powerpc, because MkLinux only supported shared libraries with the
18730  # GNU dynamic linker.  Since this was broken with cross compilers,
18731  # most powerpc-linux boxes support dynamic linking these days and
18732  # people can always --disable-shared, the test was removed, and we
18733  # assume the GNU/Linux dynamic linker is in use.
18734  dynamic_linker='GNU/Linux ld.so'
18735  ;;
18736
18737knetbsd*-gnu)
18738  version_type=linux
18739  need_lib_prefix=no
18740  need_version=no
18741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18742  soname_spec='${libname}${release}${shared_ext}$major'
18743  shlibpath_var=LD_LIBRARY_PATH
18744  shlibpath_overrides_runpath=no
18745  hardcode_into_libs=yes
18746  dynamic_linker='GNU ld.so'
18747  ;;
18748
18749netbsd*)
18750  version_type=sunos
18751  need_lib_prefix=no
18752  need_version=no
18753  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18754    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756    dynamic_linker='NetBSD (a.out) ld.so'
18757  else
18758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18759    soname_spec='${libname}${release}${shared_ext}$major'
18760    dynamic_linker='NetBSD ld.elf_so'
18761  fi
18762  shlibpath_var=LD_LIBRARY_PATH
18763  shlibpath_overrides_runpath=yes
18764  hardcode_into_libs=yes
18765  ;;
18766
18767newsos6)
18768  version_type=linux
18769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770  shlibpath_var=LD_LIBRARY_PATH
18771  shlibpath_overrides_runpath=yes
18772  ;;
18773
18774nto-qnx*)
18775  version_type=linux
18776  need_lib_prefix=no
18777  need_version=no
18778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779  soname_spec='${libname}${release}${shared_ext}$major'
18780  shlibpath_var=LD_LIBRARY_PATH
18781  shlibpath_overrides_runpath=yes
18782  ;;
18783
18784openbsd*)
18785  version_type=sunos
18786  need_lib_prefix=no
18787  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18788  case $host_os in
18789    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18790    *)                         need_version=no  ;;
18791  esac
18792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18793  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18794  shlibpath_var=LD_LIBRARY_PATH
18795  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18796    case $host_os in
18797      openbsd2.[89] | openbsd2.[89].*)
18798	shlibpath_overrides_runpath=no
18799	;;
18800      *)
18801	shlibpath_overrides_runpath=yes
18802	;;
18803      esac
18804  else
18805    shlibpath_overrides_runpath=yes
18806  fi
18807  ;;
18808
18809os2*)
18810  libname_spec='$name'
18811  shrext_cmds=".dll"
18812  need_lib_prefix=no
18813  library_names_spec='$libname${shared_ext} $libname.a'
18814  dynamic_linker='OS/2 ld.exe'
18815  shlibpath_var=LIBPATH
18816  ;;
18817
18818osf3* | osf4* | osf5*)
18819  version_type=osf
18820  need_lib_prefix=no
18821  need_version=no
18822  soname_spec='${libname}${release}${shared_ext}$major'
18823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824  shlibpath_var=LD_LIBRARY_PATH
18825  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18826  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18827  ;;
18828
18829sco3.2v5*)
18830  version_type=osf
18831  soname_spec='${libname}${release}${shared_ext}$major'
18832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18833  shlibpath_var=LD_LIBRARY_PATH
18834  ;;
18835
18836solaris*)
18837  version_type=linux
18838  need_lib_prefix=no
18839  need_version=no
18840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841  soname_spec='${libname}${release}${shared_ext}$major'
18842  shlibpath_var=LD_LIBRARY_PATH
18843  shlibpath_overrides_runpath=yes
18844  hardcode_into_libs=yes
18845  # ldd complains unless libraries are executable
18846  postinstall_cmds='chmod +x $lib'
18847  ;;
18848
18849sunos4*)
18850  version_type=sunos
18851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18852  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18853  shlibpath_var=LD_LIBRARY_PATH
18854  shlibpath_overrides_runpath=yes
18855  if test "$with_gnu_ld" = yes; then
18856    need_lib_prefix=no
18857  fi
18858  need_version=yes
18859  ;;
18860
18861sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18862  version_type=linux
18863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18864  soname_spec='${libname}${release}${shared_ext}$major'
18865  shlibpath_var=LD_LIBRARY_PATH
18866  case $host_vendor in
18867    sni)
18868      shlibpath_overrides_runpath=no
18869      need_lib_prefix=no
18870      export_dynamic_flag_spec='${wl}-Blargedynsym'
18871      runpath_var=LD_RUN_PATH
18872      ;;
18873    siemens)
18874      need_lib_prefix=no
18875      ;;
18876    motorola)
18877      need_lib_prefix=no
18878      need_version=no
18879      shlibpath_overrides_runpath=no
18880      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18881      ;;
18882  esac
18883  ;;
18884
18885sysv4*MP*)
18886  if test -d /usr/nec ;then
18887    version_type=linux
18888    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18889    soname_spec='$libname${shared_ext}.$major'
18890    shlibpath_var=LD_LIBRARY_PATH
18891  fi
18892  ;;
18893
18894uts4*)
18895  version_type=linux
18896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18897  soname_spec='${libname}${release}${shared_ext}$major'
18898  shlibpath_var=LD_LIBRARY_PATH
18899  ;;
18900
18901*)
18902  dynamic_linker=no
18903  ;;
18904esac
18905echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18906echo "${ECHO_T}$dynamic_linker" >&6
18907test "$dynamic_linker" = no && can_build_shared=no
18908
18909echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18910echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18911hardcode_action_GCJ=
18912if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18913   test -n "$runpath_var_GCJ" || \
18914   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18915
18916  # We can hardcode non-existant directories.
18917  if test "$hardcode_direct_GCJ" != no &&
18918     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18919     # have to relink, otherwise we might link with an installed library
18920     # when we should be linking with a yet-to-be-installed one
18921     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18922     test "$hardcode_minus_L_GCJ" != no; then
18923    # Linking always hardcodes the temporary library directory.
18924    hardcode_action_GCJ=relink
18925  else
18926    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18927    hardcode_action_GCJ=immediate
18928  fi
18929else
18930  # We cannot hardcode anything, or else we can only hardcode existing
18931  # directories.
18932  hardcode_action_GCJ=unsupported
18933fi
18934echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18935echo "${ECHO_T}$hardcode_action_GCJ" >&6
18936
18937if test "$hardcode_action_GCJ" = relink; then
18938  # Fast installation is not supported
18939  enable_fast_install=no
18940elif test "$shlibpath_overrides_runpath" = yes ||
18941     test "$enable_shared" = no; then
18942  # Fast installation is not necessary
18943  enable_fast_install=needless
18944fi
18945
18946striplib=
18947old_striplib=
18948echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18949echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18950if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18951  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18952  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18953  echo "$as_me:$LINENO: result: yes" >&5
18954echo "${ECHO_T}yes" >&6
18955else
18956# FIXME - insert some real tests, host_os isn't really good enough
18957  case $host_os in
18958   darwin*)
18959       if test -n "$STRIP" ; then
18960         striplib="$STRIP -x"
18961         echo "$as_me:$LINENO: result: yes" >&5
18962echo "${ECHO_T}yes" >&6
18963       else
18964  echo "$as_me:$LINENO: result: no" >&5
18965echo "${ECHO_T}no" >&6
18966fi
18967       ;;
18968   *)
18969  echo "$as_me:$LINENO: result: no" >&5
18970echo "${ECHO_T}no" >&6
18971    ;;
18972  esac
18973fi
18974
18975if test "x$enable_dlopen" != xyes; then
18976  enable_dlopen=unknown
18977  enable_dlopen_self=unknown
18978  enable_dlopen_self_static=unknown
18979else
18980  lt_cv_dlopen=no
18981  lt_cv_dlopen_libs=
18982
18983  case $host_os in
18984  beos*)
18985    lt_cv_dlopen="load_add_on"
18986    lt_cv_dlopen_libs=
18987    lt_cv_dlopen_self=yes
18988    ;;
18989
18990  mingw* | pw32*)
18991    lt_cv_dlopen="LoadLibrary"
18992    lt_cv_dlopen_libs=
18993   ;;
18994
18995  cygwin*)
18996    lt_cv_dlopen="dlopen"
18997    lt_cv_dlopen_libs=
18998   ;;
18999
19000  darwin*)
19001  # if libdl is installed we need to link against it
19002    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19003echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19004if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19005  echo $ECHO_N "(cached) $ECHO_C" >&6
19006else
19007  ac_check_lib_save_LIBS=$LIBS
19008LIBS="-ldl  $LIBS"
19009cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h.  */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h.  */
19015
19016/* Override any gcc2 internal prototype to avoid an error.  */
19017#ifdef __cplusplus
19018extern "C"
19019#endif
19020/* We use char because int might match the return type of a gcc2
19021   builtin and then its argument prototype would still apply.  */
19022char dlopen ();
19023#ifdef F77_DUMMY_MAIN
19024
19025#  ifdef __cplusplus
19026     extern "C"
19027#  endif
19028   int F77_DUMMY_MAIN() { return 1; }
19029
19030#endif
19031int
19032main ()
19033{
19034dlopen ();
19035  ;
19036  return 0;
19037}
19038_ACEOF
19039rm -f conftest.$ac_objext conftest$ac_exeext
19040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19041  (eval $ac_link) 2>conftest.er1
19042  ac_status=$?
19043  grep -v '^ *+' conftest.er1 >conftest.err
19044  rm -f conftest.er1
19045  cat conftest.err >&5
19046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047  (exit $ac_status); } &&
19048	 { ac_try='test -z "$ac_c_werror_flag"
19049			 || test ! -s conftest.err'
19050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051  (eval $ac_try) 2>&5
19052  ac_status=$?
19053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054  (exit $ac_status); }; } &&
19055	 { ac_try='test -s conftest$ac_exeext'
19056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057  (eval $ac_try) 2>&5
19058  ac_status=$?
19059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060  (exit $ac_status); }; }; then
19061  ac_cv_lib_dl_dlopen=yes
19062else
19063  echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066ac_cv_lib_dl_dlopen=no
19067fi
19068rm -f conftest.err conftest.$ac_objext \
19069      conftest$ac_exeext conftest.$ac_ext
19070LIBS=$ac_check_lib_save_LIBS
19071fi
19072echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19073echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19074if test $ac_cv_lib_dl_dlopen = yes; then
19075  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19076else
19077
19078    lt_cv_dlopen="dyld"
19079    lt_cv_dlopen_libs=
19080    lt_cv_dlopen_self=yes
19081
19082fi
19083
19084   ;;
19085
19086  haiku*)
19087    lt_cv_dlopen="load_add_on"
19088    lt_cv_dlopen_libs=
19089    lt_cv_dlopen_self=yes
19090    ;;
19091
19092  *)
19093    echo "$as_me:$LINENO: checking for shl_load" >&5
19094echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19095if test "${ac_cv_func_shl_load+set}" = set; then
19096  echo $ECHO_N "(cached) $ECHO_C" >&6
19097else
19098  cat >conftest.$ac_ext <<_ACEOF
19099/* confdefs.h.  */
19100_ACEOF
19101cat confdefs.h >>conftest.$ac_ext
19102cat >>conftest.$ac_ext <<_ACEOF
19103/* end confdefs.h.  */
19104/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19105   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19106#define shl_load innocuous_shl_load
19107
19108/* System header to define __stub macros and hopefully few prototypes,
19109    which can conflict with char shl_load (); below.
19110    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111    <limits.h> exists even on freestanding compilers.  */
19112
19113#ifdef __STDC__
19114# include <limits.h>
19115#else
19116# include <assert.h>
19117#endif
19118
19119#undef shl_load
19120
19121/* Override any gcc2 internal prototype to avoid an error.  */
19122#ifdef __cplusplus
19123extern "C"
19124{
19125#endif
19126/* We use char because int might match the return type of a gcc2
19127   builtin and then its argument prototype would still apply.  */
19128char shl_load ();
19129/* The GNU C library defines this for functions which it implements
19130    to always fail with ENOSYS.  Some functions are actually named
19131    something starting with __ and the normal name is an alias.  */
19132#if defined (__stub_shl_load) || defined (__stub___shl_load)
19133choke me
19134#else
19135char (*f) () = shl_load;
19136#endif
19137#ifdef __cplusplus
19138}
19139#endif
19140
19141#ifdef F77_DUMMY_MAIN
19142
19143#  ifdef __cplusplus
19144     extern "C"
19145#  endif
19146   int F77_DUMMY_MAIN() { return 1; }
19147
19148#endif
19149int
19150main ()
19151{
19152return f != shl_load;
19153  ;
19154  return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext conftest$ac_exeext
19158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19159  (eval $ac_link) 2>conftest.er1
19160  ac_status=$?
19161  grep -v '^ *+' conftest.er1 >conftest.err
19162  rm -f conftest.er1
19163  cat conftest.err >&5
19164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165  (exit $ac_status); } &&
19166	 { ac_try='test -z "$ac_c_werror_flag"
19167			 || test ! -s conftest.err'
19168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169  (eval $ac_try) 2>&5
19170  ac_status=$?
19171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172  (exit $ac_status); }; } &&
19173	 { ac_try='test -s conftest$ac_exeext'
19174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175  (eval $ac_try) 2>&5
19176  ac_status=$?
19177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178  (exit $ac_status); }; }; then
19179  ac_cv_func_shl_load=yes
19180else
19181  echo "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
19183
19184ac_cv_func_shl_load=no
19185fi
19186rm -f conftest.err conftest.$ac_objext \
19187      conftest$ac_exeext conftest.$ac_ext
19188fi
19189echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19190echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19191if test $ac_cv_func_shl_load = yes; then
19192  lt_cv_dlopen="shl_load"
19193else
19194  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19195echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19196if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19197  echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199  ac_check_lib_save_LIBS=$LIBS
19200LIBS="-ldld  $LIBS"
19201cat >conftest.$ac_ext <<_ACEOF
19202/* confdefs.h.  */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h.  */
19207
19208/* Override any gcc2 internal prototype to avoid an error.  */
19209#ifdef __cplusplus
19210extern "C"
19211#endif
19212/* We use char because int might match the return type of a gcc2
19213   builtin and then its argument prototype would still apply.  */
19214char shl_load ();
19215#ifdef F77_DUMMY_MAIN
19216
19217#  ifdef __cplusplus
19218     extern "C"
19219#  endif
19220   int F77_DUMMY_MAIN() { return 1; }
19221
19222#endif
19223int
19224main ()
19225{
19226shl_load ();
19227  ;
19228  return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext conftest$ac_exeext
19232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233  (eval $ac_link) 2>conftest.er1
19234  ac_status=$?
19235  grep -v '^ *+' conftest.er1 >conftest.err
19236  rm -f conftest.er1
19237  cat conftest.err >&5
19238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239  (exit $ac_status); } &&
19240	 { ac_try='test -z "$ac_c_werror_flag"
19241			 || test ! -s conftest.err'
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); }; } &&
19247	 { ac_try='test -s conftest$ac_exeext'
19248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249  (eval $ac_try) 2>&5
19250  ac_status=$?
19251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252  (exit $ac_status); }; }; then
19253  ac_cv_lib_dld_shl_load=yes
19254else
19255  echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258ac_cv_lib_dld_shl_load=no
19259fi
19260rm -f conftest.err conftest.$ac_objext \
19261      conftest$ac_exeext conftest.$ac_ext
19262LIBS=$ac_check_lib_save_LIBS
19263fi
19264echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19265echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19266if test $ac_cv_lib_dld_shl_load = yes; then
19267  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19268else
19269  echo "$as_me:$LINENO: checking for dlopen" >&5
19270echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19271if test "${ac_cv_func_dlopen+set}" = set; then
19272  echo $ECHO_N "(cached) $ECHO_C" >&6
19273else
19274  cat >conftest.$ac_ext <<_ACEOF
19275/* confdefs.h.  */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h.  */
19280/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19281   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19282#define dlopen innocuous_dlopen
19283
19284/* System header to define __stub macros and hopefully few prototypes,
19285    which can conflict with char dlopen (); below.
19286    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287    <limits.h> exists even on freestanding compilers.  */
19288
19289#ifdef __STDC__
19290# include <limits.h>
19291#else
19292# include <assert.h>
19293#endif
19294
19295#undef dlopen
19296
19297/* Override any gcc2 internal prototype to avoid an error.  */
19298#ifdef __cplusplus
19299extern "C"
19300{
19301#endif
19302/* We use char because int might match the return type of a gcc2
19303   builtin and then its argument prototype would still apply.  */
19304char dlopen ();
19305/* The GNU C library defines this for functions which it implements
19306    to always fail with ENOSYS.  Some functions are actually named
19307    something starting with __ and the normal name is an alias.  */
19308#if defined (__stub_dlopen) || defined (__stub___dlopen)
19309choke me
19310#else
19311char (*f) () = dlopen;
19312#endif
19313#ifdef __cplusplus
19314}
19315#endif
19316
19317#ifdef F77_DUMMY_MAIN
19318
19319#  ifdef __cplusplus
19320     extern "C"
19321#  endif
19322   int F77_DUMMY_MAIN() { return 1; }
19323
19324#endif
19325int
19326main ()
19327{
19328return f != dlopen;
19329  ;
19330  return 0;
19331}
19332_ACEOF
19333rm -f conftest.$ac_objext conftest$ac_exeext
19334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19335  (eval $ac_link) 2>conftest.er1
19336  ac_status=$?
19337  grep -v '^ *+' conftest.er1 >conftest.err
19338  rm -f conftest.er1
19339  cat conftest.err >&5
19340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341  (exit $ac_status); } &&
19342	 { ac_try='test -z "$ac_c_werror_flag"
19343			 || test ! -s conftest.err'
19344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345  (eval $ac_try) 2>&5
19346  ac_status=$?
19347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348  (exit $ac_status); }; } &&
19349	 { ac_try='test -s conftest$ac_exeext'
19350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351  (eval $ac_try) 2>&5
19352  ac_status=$?
19353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354  (exit $ac_status); }; }; then
19355  ac_cv_func_dlopen=yes
19356else
19357  echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360ac_cv_func_dlopen=no
19361fi
19362rm -f conftest.err conftest.$ac_objext \
19363      conftest$ac_exeext conftest.$ac_ext
19364fi
19365echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19366echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19367if test $ac_cv_func_dlopen = yes; then
19368  lt_cv_dlopen="dlopen"
19369else
19370  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19371echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19372if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19373  echo $ECHO_N "(cached) $ECHO_C" >&6
19374else
19375  ac_check_lib_save_LIBS=$LIBS
19376LIBS="-ldl  $LIBS"
19377cat >conftest.$ac_ext <<_ACEOF
19378/* confdefs.h.  */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h.  */
19383
19384/* Override any gcc2 internal prototype to avoid an error.  */
19385#ifdef __cplusplus
19386extern "C"
19387#endif
19388/* We use char because int might match the return type of a gcc2
19389   builtin and then its argument prototype would still apply.  */
19390char dlopen ();
19391#ifdef F77_DUMMY_MAIN
19392
19393#  ifdef __cplusplus
19394     extern "C"
19395#  endif
19396   int F77_DUMMY_MAIN() { return 1; }
19397
19398#endif
19399int
19400main ()
19401{
19402dlopen ();
19403  ;
19404  return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext conftest$ac_exeext
19408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409  (eval $ac_link) 2>conftest.er1
19410  ac_status=$?
19411  grep -v '^ *+' conftest.er1 >conftest.err
19412  rm -f conftest.er1
19413  cat conftest.err >&5
19414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415  (exit $ac_status); } &&
19416	 { ac_try='test -z "$ac_c_werror_flag"
19417			 || test ! -s conftest.err'
19418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419  (eval $ac_try) 2>&5
19420  ac_status=$?
19421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422  (exit $ac_status); }; } &&
19423	 { ac_try='test -s conftest$ac_exeext'
19424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425  (eval $ac_try) 2>&5
19426  ac_status=$?
19427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428  (exit $ac_status); }; }; then
19429  ac_cv_lib_dl_dlopen=yes
19430else
19431  echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434ac_cv_lib_dl_dlopen=no
19435fi
19436rm -f conftest.err conftest.$ac_objext \
19437      conftest$ac_exeext conftest.$ac_ext
19438LIBS=$ac_check_lib_save_LIBS
19439fi
19440echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19441echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19442if test $ac_cv_lib_dl_dlopen = yes; then
19443  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19444else
19445  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19446echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19447if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19448  echo $ECHO_N "(cached) $ECHO_C" >&6
19449else
19450  ac_check_lib_save_LIBS=$LIBS
19451LIBS="-lsvld  $LIBS"
19452cat >conftest.$ac_ext <<_ACEOF
19453/* confdefs.h.  */
19454_ACEOF
19455cat confdefs.h >>conftest.$ac_ext
19456cat >>conftest.$ac_ext <<_ACEOF
19457/* end confdefs.h.  */
19458
19459/* Override any gcc2 internal prototype to avoid an error.  */
19460#ifdef __cplusplus
19461extern "C"
19462#endif
19463/* We use char because int might match the return type of a gcc2
19464   builtin and then its argument prototype would still apply.  */
19465char dlopen ();
19466#ifdef F77_DUMMY_MAIN
19467
19468#  ifdef __cplusplus
19469     extern "C"
19470#  endif
19471   int F77_DUMMY_MAIN() { return 1; }
19472
19473#endif
19474int
19475main ()
19476{
19477dlopen ();
19478  ;
19479  return 0;
19480}
19481_ACEOF
19482rm -f conftest.$ac_objext conftest$ac_exeext
19483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484  (eval $ac_link) 2>conftest.er1
19485  ac_status=$?
19486  grep -v '^ *+' conftest.er1 >conftest.err
19487  rm -f conftest.er1
19488  cat conftest.err >&5
19489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490  (exit $ac_status); } &&
19491	 { ac_try='test -z "$ac_c_werror_flag"
19492			 || test ! -s conftest.err'
19493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494  (eval $ac_try) 2>&5
19495  ac_status=$?
19496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497  (exit $ac_status); }; } &&
19498	 { ac_try='test -s conftest$ac_exeext'
19499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500  (eval $ac_try) 2>&5
19501  ac_status=$?
19502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503  (exit $ac_status); }; }; then
19504  ac_cv_lib_svld_dlopen=yes
19505else
19506  echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509ac_cv_lib_svld_dlopen=no
19510fi
19511rm -f conftest.err conftest.$ac_objext \
19512      conftest$ac_exeext conftest.$ac_ext
19513LIBS=$ac_check_lib_save_LIBS
19514fi
19515echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19516echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19517if test $ac_cv_lib_svld_dlopen = yes; then
19518  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19519else
19520  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19521echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19522if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19523  echo $ECHO_N "(cached) $ECHO_C" >&6
19524else
19525  ac_check_lib_save_LIBS=$LIBS
19526LIBS="-ldld  $LIBS"
19527cat >conftest.$ac_ext <<_ACEOF
19528/* confdefs.h.  */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h.  */
19533
19534/* Override any gcc2 internal prototype to avoid an error.  */
19535#ifdef __cplusplus
19536extern "C"
19537#endif
19538/* We use char because int might match the return type of a gcc2
19539   builtin and then its argument prototype would still apply.  */
19540char dld_link ();
19541#ifdef F77_DUMMY_MAIN
19542
19543#  ifdef __cplusplus
19544     extern "C"
19545#  endif
19546   int F77_DUMMY_MAIN() { return 1; }
19547
19548#endif
19549int
19550main ()
19551{
19552dld_link ();
19553  ;
19554  return 0;
19555}
19556_ACEOF
19557rm -f conftest.$ac_objext conftest$ac_exeext
19558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19559  (eval $ac_link) 2>conftest.er1
19560  ac_status=$?
19561  grep -v '^ *+' conftest.er1 >conftest.err
19562  rm -f conftest.er1
19563  cat conftest.err >&5
19564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565  (exit $ac_status); } &&
19566	 { ac_try='test -z "$ac_c_werror_flag"
19567			 || test ! -s conftest.err'
19568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569  (eval $ac_try) 2>&5
19570  ac_status=$?
19571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572  (exit $ac_status); }; } &&
19573	 { ac_try='test -s conftest$ac_exeext'
19574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575  (eval $ac_try) 2>&5
19576  ac_status=$?
19577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578  (exit $ac_status); }; }; then
19579  ac_cv_lib_dld_dld_link=yes
19580else
19581  echo "$as_me: failed program was:" >&5
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
19584ac_cv_lib_dld_dld_link=no
19585fi
19586rm -f conftest.err conftest.$ac_objext \
19587      conftest$ac_exeext conftest.$ac_ext
19588LIBS=$ac_check_lib_save_LIBS
19589fi
19590echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19591echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19592if test $ac_cv_lib_dld_dld_link = yes; then
19593  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19594fi
19595
19596
19597fi
19598
19599
19600fi
19601
19602
19603fi
19604
19605
19606fi
19607
19608
19609fi
19610
19611    ;;
19612  esac
19613
19614  if test "x$lt_cv_dlopen" != xno; then
19615    enable_dlopen=yes
19616  else
19617    enable_dlopen=no
19618  fi
19619
19620  case $lt_cv_dlopen in
19621  dlopen)
19622    save_CPPFLAGS="$CPPFLAGS"
19623    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19624
19625    save_LDFLAGS="$LDFLAGS"
19626    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19627
19628    save_LIBS="$LIBS"
19629    LIBS="$lt_cv_dlopen_libs $LIBS"
19630
19631    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19632echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19633if test "${lt_cv_dlopen_self+set}" = set; then
19634  echo $ECHO_N "(cached) $ECHO_C" >&6
19635else
19636  	  if test "$cross_compiling" = yes; then :
19637  lt_cv_dlopen_self=cross
19638else
19639  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19640  lt_status=$lt_dlunknown
19641  cat > conftest.$ac_ext <<EOF
19642#line 19642 "configure"
19643#include "confdefs.h"
19644
19645#if HAVE_DLFCN_H
19646#include <dlfcn.h>
19647#endif
19648
19649#include <stdio.h>
19650
19651#ifdef RTLD_GLOBAL
19652#  define LT_DLGLOBAL		RTLD_GLOBAL
19653#else
19654#  ifdef DL_GLOBAL
19655#    define LT_DLGLOBAL		DL_GLOBAL
19656#  else
19657#    define LT_DLGLOBAL		0
19658#  endif
19659#endif
19660
19661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19662   find out it does not work in some platform. */
19663#ifndef LT_DLLAZY_OR_NOW
19664#  ifdef RTLD_LAZY
19665#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19666#  else
19667#    ifdef DL_LAZY
19668#      define LT_DLLAZY_OR_NOW		DL_LAZY
19669#    else
19670#      ifdef RTLD_NOW
19671#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19672#      else
19673#        ifdef DL_NOW
19674#          define LT_DLLAZY_OR_NOW	DL_NOW
19675#        else
19676#          define LT_DLLAZY_OR_NOW	0
19677#        endif
19678#      endif
19679#    endif
19680#  endif
19681#endif
19682
19683#ifdef __cplusplus
19684extern "C" void exit (int);
19685#endif
19686
19687void fnord() { int i=42;}
19688int main ()
19689{
19690  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19691  int status = $lt_dlunknown;
19692
19693  if (self)
19694    {
19695      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19696      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19697      /* dlclose (self); */
19698    }
19699
19700    exit (status);
19701}
19702EOF
19703  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19704  (eval $ac_link) 2>&5
19705  ac_status=$?
19706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19708    (./conftest; exit; ) >&5 2>/dev/null
19709    lt_status=$?
19710    case x$lt_status in
19711      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19712      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19713      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19714    esac
19715  else :
19716    # compilation failed
19717    lt_cv_dlopen_self=no
19718  fi
19719fi
19720rm -fr conftest*
19721
19722
19723fi
19724echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19725echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19726
19727    if test "x$lt_cv_dlopen_self" = xyes; then
19728      LDFLAGS="$LDFLAGS $link_static_flag"
19729      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19730echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19731if test "${lt_cv_dlopen_self_static+set}" = set; then
19732  echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734  	  if test "$cross_compiling" = yes; then :
19735  lt_cv_dlopen_self_static=cross
19736else
19737  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19738  lt_status=$lt_dlunknown
19739  cat > conftest.$ac_ext <<EOF
19740#line 19740 "configure"
19741#include "confdefs.h"
19742
19743#if HAVE_DLFCN_H
19744#include <dlfcn.h>
19745#endif
19746
19747#include <stdio.h>
19748
19749#ifdef RTLD_GLOBAL
19750#  define LT_DLGLOBAL		RTLD_GLOBAL
19751#else
19752#  ifdef DL_GLOBAL
19753#    define LT_DLGLOBAL		DL_GLOBAL
19754#  else
19755#    define LT_DLGLOBAL		0
19756#  endif
19757#endif
19758
19759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19760   find out it does not work in some platform. */
19761#ifndef LT_DLLAZY_OR_NOW
19762#  ifdef RTLD_LAZY
19763#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19764#  else
19765#    ifdef DL_LAZY
19766#      define LT_DLLAZY_OR_NOW		DL_LAZY
19767#    else
19768#      ifdef RTLD_NOW
19769#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19770#      else
19771#        ifdef DL_NOW
19772#          define LT_DLLAZY_OR_NOW	DL_NOW
19773#        else
19774#          define LT_DLLAZY_OR_NOW	0
19775#        endif
19776#      endif
19777#    endif
19778#  endif
19779#endif
19780
19781#ifdef __cplusplus
19782extern "C" void exit (int);
19783#endif
19784
19785void fnord() { int i=42;}
19786int main ()
19787{
19788  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19789  int status = $lt_dlunknown;
19790
19791  if (self)
19792    {
19793      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19794      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19795      /* dlclose (self); */
19796    }
19797
19798    exit (status);
19799}
19800EOF
19801  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802  (eval $ac_link) 2>&5
19803  ac_status=$?
19804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19806    (./conftest; exit; ) >&5 2>/dev/null
19807    lt_status=$?
19808    case x$lt_status in
19809      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19810      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19811      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19812    esac
19813  else :
19814    # compilation failed
19815    lt_cv_dlopen_self_static=no
19816  fi
19817fi
19818rm -fr conftest*
19819
19820
19821fi
19822echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19823echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19824    fi
19825
19826    CPPFLAGS="$save_CPPFLAGS"
19827    LDFLAGS="$save_LDFLAGS"
19828    LIBS="$save_LIBS"
19829    ;;
19830  esac
19831
19832  case $lt_cv_dlopen_self in
19833  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19834  *) enable_dlopen_self=unknown ;;
19835  esac
19836
19837  case $lt_cv_dlopen_self_static in
19838  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19839  *) enable_dlopen_self_static=unknown ;;
19840  esac
19841fi
19842
19843
19844# The else clause should only fire when bootstrapping the
19845# libtool distribution, otherwise you forgot to ship ltmain.sh
19846# with your package, and you will get complaints that there are
19847# no rules to generate ltmain.sh.
19848if test -f "$ltmain"; then
19849  # See if we are running on zsh, and set the options which allow our commands through
19850  # without removal of \ escapes.
19851  if test -n "${ZSH_VERSION+set}" ; then
19852    setopt NO_GLOB_SUBST
19853  fi
19854  # Now quote all the things that may contain metacharacters while being
19855  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19856  # variables and quote the copies for generation of the libtool script.
19857  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19858    SED SHELL STRIP \
19859    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19860    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19861    deplibs_check_method reload_flag reload_cmds need_locks \
19862    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19863    lt_cv_sys_global_symbol_to_c_name_address \
19864    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19865    old_postinstall_cmds old_postuninstall_cmds \
19866    compiler_GCJ \
19867    CC_GCJ \
19868    LD_GCJ \
19869    lt_prog_compiler_wl_GCJ \
19870    lt_prog_compiler_pic_GCJ \
19871    lt_prog_compiler_static_GCJ \
19872    lt_prog_compiler_no_builtin_flag_GCJ \
19873    export_dynamic_flag_spec_GCJ \
19874    thread_safe_flag_spec_GCJ \
19875    whole_archive_flag_spec_GCJ \
19876    enable_shared_with_static_runtimes_GCJ \
19877    old_archive_cmds_GCJ \
19878    old_archive_from_new_cmds_GCJ \
19879    predep_objects_GCJ \
19880    postdep_objects_GCJ \
19881    predeps_GCJ \
19882    postdeps_GCJ \
19883    compiler_lib_search_path_GCJ \
19884    archive_cmds_GCJ \
19885    archive_expsym_cmds_GCJ \
19886    postinstall_cmds_GCJ \
19887    postuninstall_cmds_GCJ \
19888    old_archive_from_expsyms_cmds_GCJ \
19889    allow_undefined_flag_GCJ \
19890    no_undefined_flag_GCJ \
19891    export_symbols_cmds_GCJ \
19892    hardcode_libdir_flag_spec_GCJ \
19893    hardcode_libdir_flag_spec_ld_GCJ \
19894    hardcode_libdir_separator_GCJ \
19895    hardcode_automatic_GCJ \
19896    module_cmds_GCJ \
19897    module_expsym_cmds_GCJ \
19898    lt_cv_prog_compiler_c_o_GCJ \
19899    exclude_expsyms_GCJ \
19900    include_expsyms_GCJ; do
19901
19902    case $var in
19903    old_archive_cmds_GCJ | \
19904    old_archive_from_new_cmds_GCJ | \
19905    archive_cmds_GCJ | \
19906    archive_expsym_cmds_GCJ | \
19907    module_cmds_GCJ | \
19908    module_expsym_cmds_GCJ | \
19909    old_archive_from_expsyms_cmds_GCJ | \
19910    export_symbols_cmds_GCJ | \
19911    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19912    postinstall_cmds | postuninstall_cmds | \
19913    old_postinstall_cmds | old_postuninstall_cmds | \
19914    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19915      # Double-quote double-evaled strings.
19916      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19917      ;;
19918    *)
19919      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19920      ;;
19921    esac
19922  done
19923
19924  case $lt_echo in
19925  *'\$0 --fallback-echo"')
19926    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19927    ;;
19928  esac
19929
19930cfgfile="$ofile"
19931
19932  cat <<__EOF__ >> "$cfgfile"
19933# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19934
19935# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19936
19937# Shell to use when invoking shell scripts.
19938SHELL=$lt_SHELL
19939
19940# Whether or not to build shared libraries.
19941build_libtool_libs=$enable_shared
19942
19943# Whether or not to build static libraries.
19944build_old_libs=$enable_static
19945
19946# Whether or not to add -lc for building shared libraries.
19947build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19948
19949# Whether or not to disallow shared libs when runtime libs are static
19950allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19951
19952# Whether or not to optimize for fast installation.
19953fast_install=$enable_fast_install
19954
19955# The host system.
19956host_alias=$host_alias
19957host=$host
19958host_os=$host_os
19959
19960# The build system.
19961build_alias=$build_alias
19962build=$build
19963build_os=$build_os
19964
19965# An echo program that does not interpret backslashes.
19966echo=$lt_echo
19967
19968# The archiver.
19969AR=$lt_AR
19970AR_FLAGS=$lt_AR_FLAGS
19971
19972# A C compiler.
19973LTCC=$lt_LTCC
19974
19975# A language-specific compiler.
19976CC=$lt_compiler_GCJ
19977
19978# Is the compiler the GNU C compiler?
19979with_gcc=$GCC_GCJ
19980
19981# An ERE matcher.
19982EGREP=$lt_EGREP
19983
19984# The linker used to build libraries.
19985LD=$lt_LD_GCJ
19986
19987# Whether we need hard or soft links.
19988LN_S=$lt_LN_S
19989
19990# A BSD-compatible nm program.
19991NM=$lt_NM
19992
19993# A symbol stripping program
19994STRIP=$lt_STRIP
19995
19996# Used to examine libraries when file_magic_cmd begins "file"
19997MAGIC_CMD=$MAGIC_CMD
19998
19999# Used on cygwin: DLL creation program.
20000DLLTOOL="$DLLTOOL"
20001
20002# Used on cygwin: object dumper.
20003OBJDUMP="$OBJDUMP"
20004
20005# Used on cygwin: assembler.
20006AS="$AS"
20007
20008# The name of the directory that contains temporary libtool files.
20009objdir=$objdir
20010
20011# How to create reloadable object files.
20012reload_flag=$lt_reload_flag
20013reload_cmds=$lt_reload_cmds
20014
20015# How to pass a linker flag through the compiler.
20016wl=$lt_lt_prog_compiler_wl_GCJ
20017
20018# Object file suffix (normally "o").
20019objext="$ac_objext"
20020
20021# Old archive suffix (normally "a").
20022libext="$libext"
20023
20024# Shared library suffix (normally ".so").
20025shrext_cmds='$shrext_cmds'
20026
20027# Executable file suffix (normally "").
20028exeext="$exeext"
20029
20030# Additional compiler flags for building library objects.
20031pic_flag=$lt_lt_prog_compiler_pic_GCJ
20032pic_mode=$pic_mode
20033
20034# What is the maximum length of a command?
20035max_cmd_len=$lt_cv_sys_max_cmd_len
20036
20037# Does compiler simultaneously support -c and -o options?
20038compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20039
20040# Must we lock files when doing compilation?
20041need_locks=$lt_need_locks
20042
20043# Do we need the lib prefix for modules?
20044need_lib_prefix=$need_lib_prefix
20045
20046# Do we need a version for libraries?
20047need_version=$need_version
20048
20049# Whether dlopen is supported.
20050dlopen_support=$enable_dlopen
20051
20052# Whether dlopen of programs is supported.
20053dlopen_self=$enable_dlopen_self
20054
20055# Whether dlopen of statically linked programs is supported.
20056dlopen_self_static=$enable_dlopen_self_static
20057
20058# Compiler flag to prevent dynamic linking.
20059link_static_flag=$lt_lt_prog_compiler_static_GCJ
20060
20061# Compiler flag to turn off builtin functions.
20062no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20063
20064# Compiler flag to allow reflexive dlopens.
20065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20066
20067# Compiler flag to generate shared objects directly from archives.
20068whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20069
20070# Compiler flag to generate thread-safe objects.
20071thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20072
20073# Library versioning type.
20074version_type=$version_type
20075
20076# Format of library name prefix.
20077libname_spec=$lt_libname_spec
20078
20079# List of archive names.  First name is the real one, the rest are links.
20080# The last name is the one that the linker finds with -lNAME.
20081library_names_spec=$lt_library_names_spec
20082
20083# The coded name of the library, if different from the real name.
20084soname_spec=$lt_soname_spec
20085
20086# Commands used to build and install an old-style archive.
20087RANLIB=$lt_RANLIB
20088old_archive_cmds=$lt_old_archive_cmds_GCJ
20089old_postinstall_cmds=$lt_old_postinstall_cmds
20090old_postuninstall_cmds=$lt_old_postuninstall_cmds
20091
20092# Create an old-style archive from a shared archive.
20093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20094
20095# Create a temporary old-style archive to link instead of a shared archive.
20096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20097
20098# Commands used to build and install a shared archive.
20099archive_cmds=$lt_archive_cmds_GCJ
20100archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20101postinstall_cmds=$lt_postinstall_cmds
20102postuninstall_cmds=$lt_postuninstall_cmds
20103
20104# Commands used to build a loadable module (assumed same as above if empty)
20105module_cmds=$lt_module_cmds_GCJ
20106module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20107
20108# Commands to strip libraries.
20109old_striplib=$lt_old_striplib
20110striplib=$lt_striplib
20111
20112# Dependencies to place before the objects being linked to create a
20113# shared library.
20114predep_objects=$lt_predep_objects_GCJ
20115
20116# Dependencies to place after the objects being linked to create a
20117# shared library.
20118postdep_objects=$lt_postdep_objects_GCJ
20119
20120# Dependencies to place before the objects being linked to create a
20121# shared library.
20122predeps=$lt_predeps_GCJ
20123
20124# Dependencies to place after the objects being linked to create a
20125# shared library.
20126postdeps=$lt_postdeps_GCJ
20127
20128# The library search path used internally by the compiler when linking
20129# a shared library.
20130compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20131
20132# Method to check whether dependent libraries are shared objects.
20133deplibs_check_method=$lt_deplibs_check_method
20134
20135# Command to use when deplibs_check_method == file_magic.
20136file_magic_cmd=$lt_file_magic_cmd
20137
20138# Flag that allows shared libraries with undefined symbols to be built.
20139allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20140
20141# Flag that forces no undefined symbols.
20142no_undefined_flag=$lt_no_undefined_flag_GCJ
20143
20144# Commands used to finish a libtool library installation in a directory.
20145finish_cmds=$lt_finish_cmds
20146
20147# Same as above, but a single script fragment to be evaled but not shown.
20148finish_eval=$lt_finish_eval
20149
20150# Take the output of nm and produce a listing of raw symbols and C names.
20151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20152
20153# Transform the output of nm in a proper C declaration
20154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20155
20156# Transform the output of nm in a C name address pair
20157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20158
20159# This is the shared library runtime path variable.
20160runpath_var=$runpath_var
20161
20162# This is the shared library path variable.
20163shlibpath_var=$shlibpath_var
20164
20165# Is shlibpath searched before the hard-coded library search path?
20166shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20167
20168# How to hardcode a shared library path into an executable.
20169hardcode_action=$hardcode_action_GCJ
20170
20171# Whether we should hardcode library paths into libraries.
20172hardcode_into_libs=$hardcode_into_libs
20173
20174# Flag to hardcode \$libdir into a binary during linking.
20175# This must work even if \$libdir does not exist.
20176hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20177
20178# If ld is used when linking, flag to hardcode \$libdir into
20179# a binary during linking. This must work even if \$libdir does
20180# not exist.
20181hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20182
20183# Whether we need a single -rpath flag with a separated argument.
20184hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20185
20186# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20187# resulting binary.
20188hardcode_direct=$hardcode_direct_GCJ
20189
20190# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20191# resulting binary.
20192hardcode_minus_L=$hardcode_minus_L_GCJ
20193
20194# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20195# the resulting binary.
20196hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20197
20198# Set to yes if building a shared library automatically hardcodes DIR into the library
20199# and all subsequent libraries and executables linked against it.
20200hardcode_automatic=$hardcode_automatic_GCJ
20201
20202# Variables whose values should be saved in libtool wrapper scripts and
20203# restored at relink time.
20204variables_saved_for_relink="$variables_saved_for_relink"
20205
20206# Whether libtool must link a program against all its dependency libraries.
20207link_all_deplibs=$link_all_deplibs_GCJ
20208
20209# Compile-time system search path for libraries
20210sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20211
20212# Run-time system search path for libraries
20213sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20214
20215# Fix the shell variable \$srcfile for the compiler.
20216fix_srcfile_path="$fix_srcfile_path_GCJ"
20217
20218# Set to yes if exported symbols are required.
20219always_export_symbols=$always_export_symbols_GCJ
20220
20221# The commands to list exported symbols.
20222export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20223
20224# The commands to extract the exported symbol list from a shared archive.
20225extract_expsyms_cmds=$lt_extract_expsyms_cmds
20226
20227# Symbols that should not be listed in the preloaded symbols.
20228exclude_expsyms=$lt_exclude_expsyms_GCJ
20229
20230# Symbols that must always be exported.
20231include_expsyms=$lt_include_expsyms_GCJ
20232
20233# ### END LIBTOOL TAG CONFIG: $tagname
20234
20235__EOF__
20236
20237
20238else
20239  # If there is no Makefile yet, we rely on a make rule to execute
20240  # `config.status --recheck' to rerun these tests and create the
20241  # libtool script then.
20242  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20243  if test -f "$ltmain_in"; then
20244    test -f Makefile && make "$ltmain"
20245  fi
20246fi
20247
20248
20249ac_ext=c
20250ac_cpp='$CPP $CPPFLAGS'
20251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20253ac_compiler_gnu=$ac_cv_c_compiler_gnu
20254
20255CC="$lt_save_CC"
20256
20257	else
20258	  tagname=""
20259	fi
20260	;;
20261
20262      RC)
20263
20264
20265
20266# Source file extension for RC test sources.
20267ac_ext=rc
20268
20269# Object file extension for compiled RC test sources.
20270objext=o
20271objext_RC=$objext
20272
20273# Code to be used in simple compile tests
20274lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20275
20276# Code to be used in simple link tests
20277lt_simple_link_test_code="$lt_simple_compile_test_code"
20278
20279# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20280
20281# If no C compiler was specified, use CC.
20282LTCC=${LTCC-"$CC"}
20283
20284# Allow CC to be a program name with arguments.
20285compiler=$CC
20286
20287
20288# save warnings/boilerplate of simple test code
20289ac_outfile=conftest.$ac_objext
20290printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20291eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20292_lt_compiler_boilerplate=`cat conftest.err`
20293$rm conftest*
20294
20295ac_outfile=conftest.$ac_objext
20296printf "$lt_simple_link_test_code" >conftest.$ac_ext
20297eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20298_lt_linker_boilerplate=`cat conftest.err`
20299$rm conftest*
20300
20301
20302# Allow CC to be a program name with arguments.
20303lt_save_CC="$CC"
20304CC=${RC-"windres"}
20305compiler=$CC
20306compiler_RC=$CC
20307for cc_temp in $compiler""; do
20308  case $cc_temp in
20309    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20310    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20311    \-*) ;;
20312    *) break;;
20313  esac
20314done
20315cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20316
20317lt_cv_prog_compiler_c_o_RC=yes
20318
20319# The else clause should only fire when bootstrapping the
20320# libtool distribution, otherwise you forgot to ship ltmain.sh
20321# with your package, and you will get complaints that there are
20322# no rules to generate ltmain.sh.
20323if test -f "$ltmain"; then
20324  # See if we are running on zsh, and set the options which allow our commands through
20325  # without removal of \ escapes.
20326  if test -n "${ZSH_VERSION+set}" ; then
20327    setopt NO_GLOB_SUBST
20328  fi
20329  # Now quote all the things that may contain metacharacters while being
20330  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20331  # variables and quote the copies for generation of the libtool script.
20332  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20333    SED SHELL STRIP \
20334    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20335    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20336    deplibs_check_method reload_flag reload_cmds need_locks \
20337    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20338    lt_cv_sys_global_symbol_to_c_name_address \
20339    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20340    old_postinstall_cmds old_postuninstall_cmds \
20341    compiler_RC \
20342    CC_RC \
20343    LD_RC \
20344    lt_prog_compiler_wl_RC \
20345    lt_prog_compiler_pic_RC \
20346    lt_prog_compiler_static_RC \
20347    lt_prog_compiler_no_builtin_flag_RC \
20348    export_dynamic_flag_spec_RC \
20349    thread_safe_flag_spec_RC \
20350    whole_archive_flag_spec_RC \
20351    enable_shared_with_static_runtimes_RC \
20352    old_archive_cmds_RC \
20353    old_archive_from_new_cmds_RC \
20354    predep_objects_RC \
20355    postdep_objects_RC \
20356    predeps_RC \
20357    postdeps_RC \
20358    compiler_lib_search_path_RC \
20359    archive_cmds_RC \
20360    archive_expsym_cmds_RC \
20361    postinstall_cmds_RC \
20362    postuninstall_cmds_RC \
20363    old_archive_from_expsyms_cmds_RC \
20364    allow_undefined_flag_RC \
20365    no_undefined_flag_RC \
20366    export_symbols_cmds_RC \
20367    hardcode_libdir_flag_spec_RC \
20368    hardcode_libdir_flag_spec_ld_RC \
20369    hardcode_libdir_separator_RC \
20370    hardcode_automatic_RC \
20371    module_cmds_RC \
20372    module_expsym_cmds_RC \
20373    lt_cv_prog_compiler_c_o_RC \
20374    exclude_expsyms_RC \
20375    include_expsyms_RC; do
20376
20377    case $var in
20378    old_archive_cmds_RC | \
20379    old_archive_from_new_cmds_RC | \
20380    archive_cmds_RC | \
20381    archive_expsym_cmds_RC | \
20382    module_cmds_RC | \
20383    module_expsym_cmds_RC | \
20384    old_archive_from_expsyms_cmds_RC | \
20385    export_symbols_cmds_RC | \
20386    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20387    postinstall_cmds | postuninstall_cmds | \
20388    old_postinstall_cmds | old_postuninstall_cmds | \
20389    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20390      # Double-quote double-evaled strings.
20391      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20392      ;;
20393    *)
20394      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20395      ;;
20396    esac
20397  done
20398
20399  case $lt_echo in
20400  *'\$0 --fallback-echo"')
20401    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20402    ;;
20403  esac
20404
20405cfgfile="$ofile"
20406
20407  cat <<__EOF__ >> "$cfgfile"
20408# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20409
20410# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20411
20412# Shell to use when invoking shell scripts.
20413SHELL=$lt_SHELL
20414
20415# Whether or not to build shared libraries.
20416build_libtool_libs=$enable_shared
20417
20418# Whether or not to build static libraries.
20419build_old_libs=$enable_static
20420
20421# Whether or not to add -lc for building shared libraries.
20422build_libtool_need_lc=$archive_cmds_need_lc_RC
20423
20424# Whether or not to disallow shared libs when runtime libs are static
20425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20426
20427# Whether or not to optimize for fast installation.
20428fast_install=$enable_fast_install
20429
20430# The host system.
20431host_alias=$host_alias
20432host=$host
20433host_os=$host_os
20434
20435# The build system.
20436build_alias=$build_alias
20437build=$build
20438build_os=$build_os
20439
20440# An echo program that does not interpret backslashes.
20441echo=$lt_echo
20442
20443# The archiver.
20444AR=$lt_AR
20445AR_FLAGS=$lt_AR_FLAGS
20446
20447# A C compiler.
20448LTCC=$lt_LTCC
20449
20450# A language-specific compiler.
20451CC=$lt_compiler_RC
20452
20453# Is the compiler the GNU C compiler?
20454with_gcc=$GCC_RC
20455
20456# An ERE matcher.
20457EGREP=$lt_EGREP
20458
20459# The linker used to build libraries.
20460LD=$lt_LD_RC
20461
20462# Whether we need hard or soft links.
20463LN_S=$lt_LN_S
20464
20465# A BSD-compatible nm program.
20466NM=$lt_NM
20467
20468# A symbol stripping program
20469STRIP=$lt_STRIP
20470
20471# Used to examine libraries when file_magic_cmd begins "file"
20472MAGIC_CMD=$MAGIC_CMD
20473
20474# Used on cygwin: DLL creation program.
20475DLLTOOL="$DLLTOOL"
20476
20477# Used on cygwin: object dumper.
20478OBJDUMP="$OBJDUMP"
20479
20480# Used on cygwin: assembler.
20481AS="$AS"
20482
20483# The name of the directory that contains temporary libtool files.
20484objdir=$objdir
20485
20486# How to create reloadable object files.
20487reload_flag=$lt_reload_flag
20488reload_cmds=$lt_reload_cmds
20489
20490# How to pass a linker flag through the compiler.
20491wl=$lt_lt_prog_compiler_wl_RC
20492
20493# Object file suffix (normally "o").
20494objext="$ac_objext"
20495
20496# Old archive suffix (normally "a").
20497libext="$libext"
20498
20499# Shared library suffix (normally ".so").
20500shrext_cmds='$shrext_cmds'
20501
20502# Executable file suffix (normally "").
20503exeext="$exeext"
20504
20505# Additional compiler flags for building library objects.
20506pic_flag=$lt_lt_prog_compiler_pic_RC
20507pic_mode=$pic_mode
20508
20509# What is the maximum length of a command?
20510max_cmd_len=$lt_cv_sys_max_cmd_len
20511
20512# Does compiler simultaneously support -c and -o options?
20513compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20514
20515# Must we lock files when doing compilation?
20516need_locks=$lt_need_locks
20517
20518# Do we need the lib prefix for modules?
20519need_lib_prefix=$need_lib_prefix
20520
20521# Do we need a version for libraries?
20522need_version=$need_version
20523
20524# Whether dlopen is supported.
20525dlopen_support=$enable_dlopen
20526
20527# Whether dlopen of programs is supported.
20528dlopen_self=$enable_dlopen_self
20529
20530# Whether dlopen of statically linked programs is supported.
20531dlopen_self_static=$enable_dlopen_self_static
20532
20533# Compiler flag to prevent dynamic linking.
20534link_static_flag=$lt_lt_prog_compiler_static_RC
20535
20536# Compiler flag to turn off builtin functions.
20537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20538
20539# Compiler flag to allow reflexive dlopens.
20540export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20541
20542# Compiler flag to generate shared objects directly from archives.
20543whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20544
20545# Compiler flag to generate thread-safe objects.
20546thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20547
20548# Library versioning type.
20549version_type=$version_type
20550
20551# Format of library name prefix.
20552libname_spec=$lt_libname_spec
20553
20554# List of archive names.  First name is the real one, the rest are links.
20555# The last name is the one that the linker finds with -lNAME.
20556library_names_spec=$lt_library_names_spec
20557
20558# The coded name of the library, if different from the real name.
20559soname_spec=$lt_soname_spec
20560
20561# Commands used to build and install an old-style archive.
20562RANLIB=$lt_RANLIB
20563old_archive_cmds=$lt_old_archive_cmds_RC
20564old_postinstall_cmds=$lt_old_postinstall_cmds
20565old_postuninstall_cmds=$lt_old_postuninstall_cmds
20566
20567# Create an old-style archive from a shared archive.
20568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20569
20570# Create a temporary old-style archive to link instead of a shared archive.
20571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20572
20573# Commands used to build and install a shared archive.
20574archive_cmds=$lt_archive_cmds_RC
20575archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20576postinstall_cmds=$lt_postinstall_cmds
20577postuninstall_cmds=$lt_postuninstall_cmds
20578
20579# Commands used to build a loadable module (assumed same as above if empty)
20580module_cmds=$lt_module_cmds_RC
20581module_expsym_cmds=$lt_module_expsym_cmds_RC
20582
20583# Commands to strip libraries.
20584old_striplib=$lt_old_striplib
20585striplib=$lt_striplib
20586
20587# Dependencies to place before the objects being linked to create a
20588# shared library.
20589predep_objects=$lt_predep_objects_RC
20590
20591# Dependencies to place after the objects being linked to create a
20592# shared library.
20593postdep_objects=$lt_postdep_objects_RC
20594
20595# Dependencies to place before the objects being linked to create a
20596# shared library.
20597predeps=$lt_predeps_RC
20598
20599# Dependencies to place after the objects being linked to create a
20600# shared library.
20601postdeps=$lt_postdeps_RC
20602
20603# The library search path used internally by the compiler when linking
20604# a shared library.
20605compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20606
20607# Method to check whether dependent libraries are shared objects.
20608deplibs_check_method=$lt_deplibs_check_method
20609
20610# Command to use when deplibs_check_method == file_magic.
20611file_magic_cmd=$lt_file_magic_cmd
20612
20613# Flag that allows shared libraries with undefined symbols to be built.
20614allow_undefined_flag=$lt_allow_undefined_flag_RC
20615
20616# Flag that forces no undefined symbols.
20617no_undefined_flag=$lt_no_undefined_flag_RC
20618
20619# Commands used to finish a libtool library installation in a directory.
20620finish_cmds=$lt_finish_cmds
20621
20622# Same as above, but a single script fragment to be evaled but not shown.
20623finish_eval=$lt_finish_eval
20624
20625# Take the output of nm and produce a listing of raw symbols and C names.
20626global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20627
20628# Transform the output of nm in a proper C declaration
20629global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20630
20631# Transform the output of nm in a C name address pair
20632global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20633
20634# This is the shared library runtime path variable.
20635runpath_var=$runpath_var
20636
20637# This is the shared library path variable.
20638shlibpath_var=$shlibpath_var
20639
20640# Is shlibpath searched before the hard-coded library search path?
20641shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20642
20643# How to hardcode a shared library path into an executable.
20644hardcode_action=$hardcode_action_RC
20645
20646# Whether we should hardcode library paths into libraries.
20647hardcode_into_libs=$hardcode_into_libs
20648
20649# Flag to hardcode \$libdir into a binary during linking.
20650# This must work even if \$libdir does not exist.
20651hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20652
20653# If ld is used when linking, flag to hardcode \$libdir into
20654# a binary during linking. This must work even if \$libdir does
20655# not exist.
20656hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20657
20658# Whether we need a single -rpath flag with a separated argument.
20659hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20660
20661# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20662# resulting binary.
20663hardcode_direct=$hardcode_direct_RC
20664
20665# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20666# resulting binary.
20667hardcode_minus_L=$hardcode_minus_L_RC
20668
20669# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20670# the resulting binary.
20671hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20672
20673# Set to yes if building a shared library automatically hardcodes DIR into the library
20674# and all subsequent libraries and executables linked against it.
20675hardcode_automatic=$hardcode_automatic_RC
20676
20677# Variables whose values should be saved in libtool wrapper scripts and
20678# restored at relink time.
20679variables_saved_for_relink="$variables_saved_for_relink"
20680
20681# Whether libtool must link a program against all its dependency libraries.
20682link_all_deplibs=$link_all_deplibs_RC
20683
20684# Compile-time system search path for libraries
20685sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20686
20687# Run-time system search path for libraries
20688sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20689
20690# Fix the shell variable \$srcfile for the compiler.
20691fix_srcfile_path="$fix_srcfile_path_RC"
20692
20693# Set to yes if exported symbols are required.
20694always_export_symbols=$always_export_symbols_RC
20695
20696# The commands to list exported symbols.
20697export_symbols_cmds=$lt_export_symbols_cmds_RC
20698
20699# The commands to extract the exported symbol list from a shared archive.
20700extract_expsyms_cmds=$lt_extract_expsyms_cmds
20701
20702# Symbols that should not be listed in the preloaded symbols.
20703exclude_expsyms=$lt_exclude_expsyms_RC
20704
20705# Symbols that must always be exported.
20706include_expsyms=$lt_include_expsyms_RC
20707
20708# ### END LIBTOOL TAG CONFIG: $tagname
20709
20710__EOF__
20711
20712
20713else
20714  # If there is no Makefile yet, we rely on a make rule to execute
20715  # `config.status --recheck' to rerun these tests and create the
20716  # libtool script then.
20717  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20718  if test -f "$ltmain_in"; then
20719    test -f Makefile && make "$ltmain"
20720  fi
20721fi
20722
20723
20724ac_ext=c
20725ac_cpp='$CPP $CPPFLAGS'
20726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20728ac_compiler_gnu=$ac_cv_c_compiler_gnu
20729
20730CC="$lt_save_CC"
20731
20732	;;
20733
20734      *)
20735	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20736echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20737   { (exit 1); exit 1; }; }
20738	;;
20739      esac
20740
20741      # Append the new tag name to the list of available tags.
20742      if test -n "$tagname" ; then
20743      available_tags="$available_tags $tagname"
20744    fi
20745    fi
20746  done
20747  IFS="$lt_save_ifs"
20748
20749  # Now substitute the updated list of available tags.
20750  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20751    mv "${ofile}T" "$ofile"
20752    chmod +x "$ofile"
20753  else
20754    rm -f "${ofile}T"
20755    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20756echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20757   { (exit 1); exit 1; }; }
20758  fi
20759fi
20760
20761
20762
20763# This can be used to rebuild libtool when needed
20764LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20765
20766# Always use our own libtool.
20767LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20768
20769# Prevent multiple expansion
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792## -------- ##
20793## Outputs. ##
20794## -------- ##
20795          ac_config_files="$ac_config_files Makefile"
20796
20797cat >confcache <<\_ACEOF
20798# This file is a shell script that caches the results of configure
20799# tests run on this system so they can be shared between configure
20800# scripts and configure runs, see configure's option --config-cache.
20801# It is not useful on other systems.  If it contains results you don't
20802# want to keep, you may remove or edit it.
20803#
20804# config.status only pays attention to the cache file if you give it
20805# the --recheck option to rerun configure.
20806#
20807# `ac_cv_env_foo' variables (set or unset) will be overridden when
20808# loading this file, other *unset* `ac_cv_foo' will be assigned the
20809# following values.
20810
20811_ACEOF
20812
20813# The following way of writing the cache mishandles newlines in values,
20814# but we know of no workaround that is simple, portable, and efficient.
20815# So, don't put newlines in cache variables' values.
20816# Ultrix sh set writes to stderr and can't be redirected directly,
20817# and sets the high bit in the cache file unless we assign to the vars.
20818{
20819  (set) 2>&1 |
20820    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20821    *ac_space=\ *)
20822      # `set' does not quote correctly, so add quotes (double-quote
20823      # substitution turns \\\\ into \\, and sed turns \\ into \).
20824      sed -n \
20825	"s/'/'\\\\''/g;
20826	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20827      ;;
20828    *)
20829      # `set' quotes correctly as required by POSIX, so do not add quotes.
20830      sed -n \
20831	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20832      ;;
20833    esac;
20834} |
20835  sed '
20836     t clear
20837     : clear
20838     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20839     t end
20840     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20841     : end' >>confcache
20842if diff $cache_file confcache >/dev/null 2>&1; then :; else
20843  if test -w $cache_file; then
20844    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20845    cat confcache >$cache_file
20846  else
20847    echo "not updating unwritable cache $cache_file"
20848  fi
20849fi
20850rm -f confcache
20851
20852test "x$prefix" = xNONE && prefix=$ac_default_prefix
20853# Let make expand exec_prefix.
20854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20855
20856# VPATH may cause trouble with some makes, so we remove $(srcdir),
20857# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20858# trailing colons and then remove the whole line if VPATH becomes empty
20859# (actually we leave an empty line to preserve line numbers).
20860if test "x$srcdir" = x.; then
20861  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20862s/:*\$(srcdir):*/:/;
20863s/:*\${srcdir}:*/:/;
20864s/:*@srcdir@:*/:/;
20865s/^\([^=]*=[	 ]*\):*/\1/;
20866s/:*$//;
20867s/^[^=]*=[	 ]*$//;
20868}'
20869fi
20870
20871DEFS=-DHAVE_CONFIG_H
20872
20873ac_libobjs=
20874ac_ltlibobjs=
20875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20876  # 1. Remove the extension, and $U if already installed.
20877  ac_i=`echo "$ac_i" |
20878	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20879  # 2. Add them.
20880  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20881  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20882done
20883LIBOBJS=$ac_libobjs
20884
20885LTLIBOBJS=$ac_ltlibobjs
20886
20887
20888if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20889  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20890Usually this means the macro was only invoked conditionally." >&5
20891echo "$as_me: error: conditional \"AMDEP\" was never defined.
20892Usually this means the macro was only invoked conditionally." >&2;}
20893   { (exit 1); exit 1; }; }
20894fi
20895if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20896  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20897Usually this means the macro was only invoked conditionally." >&5
20898echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20899Usually this means the macro was only invoked conditionally." >&2;}
20900   { (exit 1); exit 1; }; }
20901fi
20902if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20903  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20904Usually this means the macro was only invoked conditionally." >&5
20905echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20906Usually this means the macro was only invoked conditionally." >&2;}
20907   { (exit 1); exit 1; }; }
20908fi
20909
20910: ${CONFIG_STATUS=./config.status}
20911ac_clean_files_save=$ac_clean_files
20912ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20913{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20914echo "$as_me: creating $CONFIG_STATUS" >&6;}
20915cat >$CONFIG_STATUS <<_ACEOF
20916#! $SHELL
20917# Generated by $as_me.
20918# Run this file to recreate the current configuration.
20919# Compiler output produced by configure, useful for debugging
20920# configure, is in config.log if it exists.
20921
20922debug=false
20923ac_cs_recheck=false
20924ac_cs_silent=false
20925SHELL=\${CONFIG_SHELL-$SHELL}
20926_ACEOF
20927
20928cat >>$CONFIG_STATUS <<\_ACEOF
20929## --------------------- ##
20930## M4sh Initialization.  ##
20931## --------------------- ##
20932
20933# Be Bourne compatible
20934if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20935  emulate sh
20936  NULLCMD=:
20937  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20938  # is contrary to our usage.  Disable this feature.
20939  alias -g '${1+"$@"}'='"$@"'
20940elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20941  set -o posix
20942fi
20943DUALCASE=1; export DUALCASE # for MKS sh
20944
20945# Support unset when possible.
20946if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20947  as_unset=unset
20948else
20949  as_unset=false
20950fi
20951
20952
20953# Work around bugs in pre-3.0 UWIN ksh.
20954$as_unset ENV MAIL MAILPATH
20955PS1='$ '
20956PS2='> '
20957PS4='+ '
20958
20959# NLS nuisances.
20960for as_var in \
20961  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20962  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20963  LC_TELEPHONE LC_TIME
20964do
20965  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20966    eval $as_var=C; export $as_var
20967  else
20968    $as_unset $as_var
20969  fi
20970done
20971
20972# Required to use basename.
20973if expr a : '\(a\)' >/dev/null 2>&1; then
20974  as_expr=expr
20975else
20976  as_expr=false
20977fi
20978
20979if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20980  as_basename=basename
20981else
20982  as_basename=false
20983fi
20984
20985
20986# Name of the executable.
20987as_me=`$as_basename "$0" ||
20988$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20989	 X"$0" : 'X\(//\)$' \| \
20990	 X"$0" : 'X\(/\)$' \| \
20991	 .     : '\(.\)' 2>/dev/null ||
20992echo X/"$0" |
20993    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20994  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20995  	  /^X\/\(\/\).*/{ s//\1/; q; }
20996  	  s/.*/./; q'`
20997
20998
20999# PATH needs CR, and LINENO needs CR and PATH.
21000# Avoid depending upon Character Ranges.
21001as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21002as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21003as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21004as_cr_digits='0123456789'
21005as_cr_alnum=$as_cr_Letters$as_cr_digits
21006
21007# The user is always right.
21008if test "${PATH_SEPARATOR+set}" != set; then
21009  echo "#! /bin/sh" >conf$$.sh
21010  echo  "exit 0"   >>conf$$.sh
21011  chmod +x conf$$.sh
21012  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21013    PATH_SEPARATOR=';'
21014  else
21015    PATH_SEPARATOR=:
21016  fi
21017  rm -f conf$$.sh
21018fi
21019
21020
21021  as_lineno_1=$LINENO
21022  as_lineno_2=$LINENO
21023  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21024  test "x$as_lineno_1" != "x$as_lineno_2" &&
21025  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21026  # Find who we are.  Look in the path if we contain no path at all
21027  # relative or not.
21028  case $0 in
21029    *[\\/]* ) as_myself=$0 ;;
21030    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21031for as_dir in $PATH
21032do
21033  IFS=$as_save_IFS
21034  test -z "$as_dir" && as_dir=.
21035  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21036done
21037
21038       ;;
21039  esac
21040  # We did not find ourselves, most probably we were run as `sh COMMAND'
21041  # in which case we are not to be found in the path.
21042  if test "x$as_myself" = x; then
21043    as_myself=$0
21044  fi
21045  if test ! -f "$as_myself"; then
21046    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21047echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21048   { (exit 1); exit 1; }; }
21049  fi
21050  case $CONFIG_SHELL in
21051  '')
21052    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21053for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21054do
21055  IFS=$as_save_IFS
21056  test -z "$as_dir" && as_dir=.
21057  for as_base in sh bash ksh sh5; do
21058	 case $as_dir in
21059	 /*)
21060	   if ("$as_dir/$as_base" -c '
21061  as_lineno_1=$LINENO
21062  as_lineno_2=$LINENO
21063  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21064  test "x$as_lineno_1" != "x$as_lineno_2" &&
21065  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21066	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21067	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21068	     CONFIG_SHELL=$as_dir/$as_base
21069	     export CONFIG_SHELL
21070	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21071	   fi;;
21072	 esac
21073       done
21074done
21075;;
21076  esac
21077
21078  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21079  # uniformly replaced by the line number.  The first 'sed' inserts a
21080  # line-number line before each line; the second 'sed' does the real
21081  # work.  The second script uses 'N' to pair each line-number line
21082  # with the numbered line, and appends trailing '-' during
21083  # substitution so that $LINENO is not a special case at line end.
21084  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21085  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21086  sed '=' <$as_myself |
21087    sed '
21088      N
21089      s,$,-,
21090      : loop
21091      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21092      t loop
21093      s,-$,,
21094      s,^['$as_cr_digits']*\n,,
21095    ' >$as_me.lineno &&
21096  chmod +x $as_me.lineno ||
21097    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21098echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21099   { (exit 1); exit 1; }; }
21100
21101  # Don't try to exec as it changes $[0], causing all sort of problems
21102  # (the dirname of $[0] is not the place where we might find the
21103  # original and so on.  Autoconf is especially sensible to this).
21104  . ./$as_me.lineno
21105  # Exit status is that of the last command.
21106  exit
21107}
21108
21109
21110case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21111  *c*,-n*) ECHO_N= ECHO_C='
21112' ECHO_T='	' ;;
21113  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21114  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21115esac
21116
21117if expr a : '\(a\)' >/dev/null 2>&1; then
21118  as_expr=expr
21119else
21120  as_expr=false
21121fi
21122
21123rm -f conf$$ conf$$.exe conf$$.file
21124echo >conf$$.file
21125if ln -s conf$$.file conf$$ 2>/dev/null; then
21126  # We could just check for DJGPP; but this test a) works b) is more generic
21127  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21128  if test -f conf$$.exe; then
21129    # Don't use ln at all; we don't have any links
21130    as_ln_s='cp -p'
21131  else
21132    as_ln_s='ln -s'
21133  fi
21134elif ln conf$$.file conf$$ 2>/dev/null; then
21135  as_ln_s=ln
21136else
21137  as_ln_s='cp -p'
21138fi
21139rm -f conf$$ conf$$.exe conf$$.file
21140
21141if mkdir -p . 2>/dev/null; then
21142  as_mkdir_p=:
21143else
21144  test -d ./-p && rmdir ./-p
21145  as_mkdir_p=false
21146fi
21147
21148as_executable_p="test -f"
21149
21150# Sed expression to map a string onto a valid CPP name.
21151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21152
21153# Sed expression to map a string onto a valid variable name.
21154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21155
21156
21157# IFS
21158# We need space, tab and new line, in precisely that order.
21159as_nl='
21160'
21161IFS=" 	$as_nl"
21162
21163# CDPATH.
21164$as_unset CDPATH
21165
21166exec 6>&1
21167
21168# Open the log real soon, to keep \$[0] and so on meaningful, and to
21169# report actual input values of CONFIG_FILES etc. instead of their
21170# values after options handling.  Logging --version etc. is OK.
21171exec 5>>config.log
21172{
21173  echo
21174  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21175## Running $as_me. ##
21176_ASBOX
21177} >&5
21178cat >&5 <<_CSEOF
21179
21180This file was extended by f77demo $as_me 0.1, which was
21181generated by GNU Autoconf 2.59.  Invocation command line was
21182
21183  CONFIG_FILES    = $CONFIG_FILES
21184  CONFIG_HEADERS  = $CONFIG_HEADERS
21185  CONFIG_LINKS    = $CONFIG_LINKS
21186  CONFIG_COMMANDS = $CONFIG_COMMANDS
21187  $ $0 $@
21188
21189_CSEOF
21190echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21191echo >&5
21192_ACEOF
21193
21194# Files that config.status was made for.
21195if test -n "$ac_config_files"; then
21196  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21197fi
21198
21199if test -n "$ac_config_headers"; then
21200  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21201fi
21202
21203if test -n "$ac_config_links"; then
21204  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21205fi
21206
21207if test -n "$ac_config_commands"; then
21208  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21209fi
21210
21211cat >>$CONFIG_STATUS <<\_ACEOF
21212
21213ac_cs_usage="\
21214\`$as_me' instantiates files from templates according to the
21215current configuration.
21216
21217Usage: $0 [OPTIONS] [FILE]...
21218
21219  -h, --help       print this help, then exit
21220  -V, --version    print version number, then exit
21221  -q, --quiet      do not print progress messages
21222  -d, --debug      don't remove temporary files
21223      --recheck    update $as_me by reconfiguring in the same conditions
21224  --file=FILE[:TEMPLATE]
21225		   instantiate the configuration file FILE
21226  --header=FILE[:TEMPLATE]
21227		   instantiate the configuration header FILE
21228
21229Configuration files:
21230$config_files
21231
21232Configuration headers:
21233$config_headers
21234
21235Configuration commands:
21236$config_commands
21237
21238Report bugs to <bug-autoconf@gnu.org>."
21239_ACEOF
21240
21241cat >>$CONFIG_STATUS <<_ACEOF
21242ac_cs_version="\\
21243f77demo config.status 0.1
21244configured by $0, generated by GNU Autoconf 2.59,
21245  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21246
21247Copyright (C) 2003 Free Software Foundation, Inc.
21248This config.status script is free software; the Free Software Foundation
21249gives unlimited permission to copy, distribute and modify it."
21250srcdir=$srcdir
21251INSTALL="$INSTALL"
21252_ACEOF
21253
21254cat >>$CONFIG_STATUS <<\_ACEOF
21255# If no file are specified by the user, then we need to provide default
21256# value.  By we need to know if files were specified by the user.
21257ac_need_defaults=:
21258while test $# != 0
21259do
21260  case $1 in
21261  --*=*)
21262    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21263    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21264    ac_shift=:
21265    ;;
21266  -*)
21267    ac_option=$1
21268    ac_optarg=$2
21269    ac_shift=shift
21270    ;;
21271  *) # This is not an option, so the user has probably given explicit
21272     # arguments.
21273     ac_option=$1
21274     ac_need_defaults=false;;
21275  esac
21276
21277  case $ac_option in
21278  # Handling of the options.
21279_ACEOF
21280cat >>$CONFIG_STATUS <<\_ACEOF
21281  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21282    ac_cs_recheck=: ;;
21283  --version | --vers* | -V )
21284    echo "$ac_cs_version"; exit 0 ;;
21285  --he | --h)
21286    # Conflict between --help and --header
21287    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21288Try \`$0 --help' for more information." >&5
21289echo "$as_me: error: ambiguous option: $1
21290Try \`$0 --help' for more information." >&2;}
21291   { (exit 1); exit 1; }; };;
21292  --help | --hel | -h )
21293    echo "$ac_cs_usage"; exit 0 ;;
21294  --debug | --d* | -d )
21295    debug=: ;;
21296  --file | --fil | --fi | --f )
21297    $ac_shift
21298    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21299    ac_need_defaults=false;;
21300  --header | --heade | --head | --hea )
21301    $ac_shift
21302    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21303    ac_need_defaults=false;;
21304  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21305  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21306    ac_cs_silent=: ;;
21307
21308  # This is an error.
21309  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21310Try \`$0 --help' for more information." >&5
21311echo "$as_me: error: unrecognized option: $1
21312Try \`$0 --help' for more information." >&2;}
21313   { (exit 1); exit 1; }; } ;;
21314
21315  *) ac_config_targets="$ac_config_targets $1" ;;
21316
21317  esac
21318  shift
21319done
21320
21321ac_configure_extra_args=
21322
21323if $ac_cs_silent; then
21324  exec 6>/dev/null
21325  ac_configure_extra_args="$ac_configure_extra_args --silent"
21326fi
21327
21328_ACEOF
21329cat >>$CONFIG_STATUS <<_ACEOF
21330if \$ac_cs_recheck; then
21331  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21332  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21333fi
21334
21335_ACEOF
21336
21337cat >>$CONFIG_STATUS <<_ACEOF
21338#
21339# INIT-COMMANDS section.
21340#
21341
21342AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21343
21344_ACEOF
21345
21346
21347
21348cat >>$CONFIG_STATUS <<\_ACEOF
21349for ac_config_target in $ac_config_targets
21350do
21351  case "$ac_config_target" in
21352  # Handling of arguments.
21353  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21354  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21355  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
21356  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21357echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21358   { (exit 1); exit 1; }; };;
21359  esac
21360done
21361
21362# If the user did not use the arguments to specify the items to instantiate,
21363# then the envvar interface is used.  Set only those that are not.
21364# We use the long form for the default assignment because of an extremely
21365# bizarre bug on SunOS 4.1.3.
21366if $ac_need_defaults; then
21367  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21368  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21369  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21370fi
21371
21372# Have a temporary directory for convenience.  Make it in the build tree
21373# simply because there is no reason to put it here, and in addition,
21374# creating and moving files from /tmp can sometimes cause problems.
21375# Create a temporary directory, and hook for its removal unless debugging.
21376$debug ||
21377{
21378  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21379  trap '{ (exit 1); exit 1; }' 1 2 13 15
21380}
21381
21382# Create a (secure) tmp directory for tmp files.
21383
21384{
21385  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21386  test -n "$tmp" && test -d "$tmp"
21387}  ||
21388{
21389  tmp=./confstat$$-$RANDOM
21390  (umask 077 && mkdir $tmp)
21391} ||
21392{
21393   echo "$me: cannot create a temporary directory in ." >&2
21394   { (exit 1); exit 1; }
21395}
21396
21397_ACEOF
21398
21399cat >>$CONFIG_STATUS <<_ACEOF
21400
21401#
21402# CONFIG_FILES section.
21403#
21404
21405# No need to generate the scripts if there are no CONFIG_FILES.
21406# This happens for instance when ./config.status config.h
21407if test -n "\$CONFIG_FILES"; then
21408  # Protect against being on the right side of a sed subst in config.status.
21409  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21410   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21411s,@SHELL@,$SHELL,;t t
21412s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21413s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21414s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21415s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21416s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21417s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21418s,@exec_prefix@,$exec_prefix,;t t
21419s,@prefix@,$prefix,;t t
21420s,@program_transform_name@,$program_transform_name,;t t
21421s,@bindir@,$bindir,;t t
21422s,@sbindir@,$sbindir,;t t
21423s,@libexecdir@,$libexecdir,;t t
21424s,@datadir@,$datadir,;t t
21425s,@sysconfdir@,$sysconfdir,;t t
21426s,@sharedstatedir@,$sharedstatedir,;t t
21427s,@localstatedir@,$localstatedir,;t t
21428s,@libdir@,$libdir,;t t
21429s,@includedir@,$includedir,;t t
21430s,@oldincludedir@,$oldincludedir,;t t
21431s,@infodir@,$infodir,;t t
21432s,@mandir@,$mandir,;t t
21433s,@build_alias@,$build_alias,;t t
21434s,@host_alias@,$host_alias,;t t
21435s,@target_alias@,$target_alias,;t t
21436s,@DEFS@,$DEFS,;t t
21437s,@ECHO_C@,$ECHO_C,;t t
21438s,@ECHO_N@,$ECHO_N,;t t
21439s,@ECHO_T@,$ECHO_T,;t t
21440s,@LIBS@,$LIBS,;t t
21441s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21442s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21443s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21444s,@CYGPATH_W@,$CYGPATH_W,;t t
21445s,@PACKAGE@,$PACKAGE,;t t
21446s,@VERSION@,$VERSION,;t t
21447s,@ACLOCAL@,$ACLOCAL,;t t
21448s,@AUTOCONF@,$AUTOCONF,;t t
21449s,@AUTOMAKE@,$AUTOMAKE,;t t
21450s,@AUTOHEADER@,$AUTOHEADER,;t t
21451s,@MAKEINFO@,$MAKEINFO,;t t
21452s,@install_sh@,$install_sh,;t t
21453s,@STRIP@,$STRIP,;t t
21454s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21455s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21456s,@mkdir_p@,$mkdir_p,;t t
21457s,@AWK@,$AWK,;t t
21458s,@SET_MAKE@,$SET_MAKE,;t t
21459s,@am__leading_dot@,$am__leading_dot,;t t
21460s,@AMTAR@,$AMTAR,;t t
21461s,@am__tar@,$am__tar,;t t
21462s,@am__untar@,$am__untar,;t t
21463s,@CC@,$CC,;t t
21464s,@CFLAGS@,$CFLAGS,;t t
21465s,@LDFLAGS@,$LDFLAGS,;t t
21466s,@CPPFLAGS@,$CPPFLAGS,;t t
21467s,@ac_ct_CC@,$ac_ct_CC,;t t
21468s,@EXEEXT@,$EXEEXT,;t t
21469s,@OBJEXT@,$OBJEXT,;t t
21470s,@DEPDIR@,$DEPDIR,;t t
21471s,@am__include@,$am__include,;t t
21472s,@am__quote@,$am__quote,;t t
21473s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21474s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21475s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21476s,@CCDEPMODE@,$CCDEPMODE,;t t
21477s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21478s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21479s,@F77@,$F77,;t t
21480s,@FFLAGS@,$FFLAGS,;t t
21481s,@ac_ct_F77@,$ac_ct_F77,;t t
21482s,@FLIBS@,$FLIBS,;t t
21483s,@build@,$build,;t t
21484s,@build_cpu@,$build_cpu,;t t
21485s,@build_vendor@,$build_vendor,;t t
21486s,@build_os@,$build_os,;t t
21487s,@host@,$host,;t t
21488s,@host_cpu@,$host_cpu,;t t
21489s,@host_vendor@,$host_vendor,;t t
21490s,@host_os@,$host_os,;t t
21491s,@EGREP@,$EGREP,;t t
21492s,@LN_S@,$LN_S,;t t
21493s,@ECHO@,$ECHO,;t t
21494s,@AR@,$AR,;t t
21495s,@ac_ct_AR@,$ac_ct_AR,;t t
21496s,@RANLIB@,$RANLIB,;t t
21497s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21498s,@CPP@,$CPP,;t t
21499s,@CXX@,$CXX,;t t
21500s,@CXXFLAGS@,$CXXFLAGS,;t t
21501s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21502s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21503s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21504s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21505s,@CXXCPP@,$CXXCPP,;t t
21506s,@LIBTOOL@,$LIBTOOL,;t t
21507s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
21508s,@LIBOBJS@,$LIBOBJS,;t t
21509s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21510CEOF
21511
21512_ACEOF
21513
21514  cat >>$CONFIG_STATUS <<\_ACEOF
21515  # Split the substitutions into bite-sized pieces for seds with
21516  # small command number limits, like on Digital OSF/1 and HP-UX.
21517  ac_max_sed_lines=48
21518  ac_sed_frag=1 # Number of current file.
21519  ac_beg=1 # First line for current file.
21520  ac_end=$ac_max_sed_lines # Line after last line for current file.
21521  ac_more_lines=:
21522  ac_sed_cmds=
21523  while $ac_more_lines; do
21524    if test $ac_beg -gt 1; then
21525      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21526    else
21527      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21528    fi
21529    if test ! -s $tmp/subs.frag; then
21530      ac_more_lines=false
21531    else
21532      # The purpose of the label and of the branching condition is to
21533      # speed up the sed processing (if there are no `@' at all, there
21534      # is no need to browse any of the substitutions).
21535      # These are the two extra sed commands mentioned above.
21536      (echo ':t
21537  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21538      if test -z "$ac_sed_cmds"; then
21539	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21540      else
21541	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21542      fi
21543      ac_sed_frag=`expr $ac_sed_frag + 1`
21544      ac_beg=$ac_end
21545      ac_end=`expr $ac_end + $ac_max_sed_lines`
21546    fi
21547  done
21548  if test -z "$ac_sed_cmds"; then
21549    ac_sed_cmds=cat
21550  fi
21551fi # test -n "$CONFIG_FILES"
21552
21553_ACEOF
21554cat >>$CONFIG_STATUS <<\_ACEOF
21555for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21556  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21557  case $ac_file in
21558  - | *:- | *:-:* ) # input from stdin
21559	cat >$tmp/stdin
21560	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21561	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21562  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21563	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21564  * )   ac_file_in=$ac_file.in ;;
21565  esac
21566
21567  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21568  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21569$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21570	 X"$ac_file" : 'X\(//\)[^/]' \| \
21571	 X"$ac_file" : 'X\(//\)$' \| \
21572	 X"$ac_file" : 'X\(/\)' \| \
21573	 .     : '\(.\)' 2>/dev/null ||
21574echo X"$ac_file" |
21575    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21576  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21577  	  /^X\(\/\/\)$/{ s//\1/; q; }
21578  	  /^X\(\/\).*/{ s//\1/; q; }
21579  	  s/.*/./; q'`
21580  { if $as_mkdir_p; then
21581    mkdir -p "$ac_dir"
21582  else
21583    as_dir="$ac_dir"
21584    as_dirs=
21585    while test ! -d "$as_dir"; do
21586      as_dirs="$as_dir $as_dirs"
21587      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21588$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21589	 X"$as_dir" : 'X\(//\)[^/]' \| \
21590	 X"$as_dir" : 'X\(//\)$' \| \
21591	 X"$as_dir" : 'X\(/\)' \| \
21592	 .     : '\(.\)' 2>/dev/null ||
21593echo X"$as_dir" |
21594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21595  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21596  	  /^X\(\/\/\)$/{ s//\1/; q; }
21597  	  /^X\(\/\).*/{ s//\1/; q; }
21598  	  s/.*/./; q'`
21599    done
21600    test ! -n "$as_dirs" || mkdir $as_dirs
21601  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21602echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21603   { (exit 1); exit 1; }; }; }
21604
21605  ac_builddir=.
21606
21607if test "$ac_dir" != .; then
21608  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21609  # A "../" for each directory in $ac_dir_suffix.
21610  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21611else
21612  ac_dir_suffix= ac_top_builddir=
21613fi
21614
21615case $srcdir in
21616  .)  # No --srcdir option.  We are building in place.
21617    ac_srcdir=.
21618    if test -z "$ac_top_builddir"; then
21619       ac_top_srcdir=.
21620    else
21621       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21622    fi ;;
21623  [\\/]* | ?:[\\/]* )  # Absolute path.
21624    ac_srcdir=$srcdir$ac_dir_suffix;
21625    ac_top_srcdir=$srcdir ;;
21626  *) # Relative path.
21627    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21628    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21629esac
21630
21631# Do not use `cd foo && pwd` to compute absolute paths, because
21632# the directories may not exist.
21633case `pwd` in
21634.) ac_abs_builddir="$ac_dir";;
21635*)
21636  case "$ac_dir" in
21637  .) ac_abs_builddir=`pwd`;;
21638  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21639  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21640  esac;;
21641esac
21642case $ac_abs_builddir in
21643.) ac_abs_top_builddir=${ac_top_builddir}.;;
21644*)
21645  case ${ac_top_builddir}. in
21646  .) ac_abs_top_builddir=$ac_abs_builddir;;
21647  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21648  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21649  esac;;
21650esac
21651case $ac_abs_builddir in
21652.) ac_abs_srcdir=$ac_srcdir;;
21653*)
21654  case $ac_srcdir in
21655  .) ac_abs_srcdir=$ac_abs_builddir;;
21656  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21657  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21658  esac;;
21659esac
21660case $ac_abs_builddir in
21661.) ac_abs_top_srcdir=$ac_top_srcdir;;
21662*)
21663  case $ac_top_srcdir in
21664  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21665  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21666  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21667  esac;;
21668esac
21669
21670
21671  case $INSTALL in
21672  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21673  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21674  esac
21675
21676  if test x"$ac_file" != x-; then
21677    { echo "$as_me:$LINENO: creating $ac_file" >&5
21678echo "$as_me: creating $ac_file" >&6;}
21679    rm -f "$ac_file"
21680  fi
21681  # Let's still pretend it is `configure' which instantiates (i.e., don't
21682  # use $as_me), people would be surprised to read:
21683  #    /* config.h.  Generated by config.status.  */
21684  if test x"$ac_file" = x-; then
21685    configure_input=
21686  else
21687    configure_input="$ac_file.  "
21688  fi
21689  configure_input=$configure_input"Generated from `echo $ac_file_in |
21690				     sed 's,.*/,,'` by configure."
21691
21692  # First look for the input files in the build tree, otherwise in the
21693  # src tree.
21694  ac_file_inputs=`IFS=:
21695    for f in $ac_file_in; do
21696      case $f in
21697      -) echo $tmp/stdin ;;
21698      [\\/$]*)
21699	 # Absolute (can't be DOS-style, as IFS=:)
21700	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21701echo "$as_me: error: cannot find input file: $f" >&2;}
21702   { (exit 1); exit 1; }; }
21703	 echo "$f";;
21704      *) # Relative
21705	 if test -f "$f"; then
21706	   # Build tree
21707	   echo "$f"
21708	 elif test -f "$srcdir/$f"; then
21709	   # Source tree
21710	   echo "$srcdir/$f"
21711	 else
21712	   # /dev/null tree
21713	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21714echo "$as_me: error: cannot find input file: $f" >&2;}
21715   { (exit 1); exit 1; }; }
21716	 fi;;
21717      esac
21718    done` || { (exit 1); exit 1; }
21719_ACEOF
21720cat >>$CONFIG_STATUS <<_ACEOF
21721  sed "$ac_vpsub
21722$extrasub
21723_ACEOF
21724cat >>$CONFIG_STATUS <<\_ACEOF
21725:t
21726/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21727s,@configure_input@,$configure_input,;t t
21728s,@srcdir@,$ac_srcdir,;t t
21729s,@abs_srcdir@,$ac_abs_srcdir,;t t
21730s,@top_srcdir@,$ac_top_srcdir,;t t
21731s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21732s,@builddir@,$ac_builddir,;t t
21733s,@abs_builddir@,$ac_abs_builddir,;t t
21734s,@top_builddir@,$ac_top_builddir,;t t
21735s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21736s,@INSTALL@,$ac_INSTALL,;t t
21737" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21738  rm -f $tmp/stdin
21739  if test x"$ac_file" != x-; then
21740    mv $tmp/out $ac_file
21741  else
21742    cat $tmp/out
21743    rm -f $tmp/out
21744  fi
21745
21746done
21747_ACEOF
21748cat >>$CONFIG_STATUS <<\_ACEOF
21749
21750#
21751# CONFIG_HEADER section.
21752#
21753
21754# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21755# NAME is the cpp macro being defined and VALUE is the value it is being given.
21756#
21757# ac_d sets the value in "#define NAME VALUE" lines.
21758ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21759ac_dB='[	 ].*$,\1#\2'
21760ac_dC=' '
21761ac_dD=',;t'
21762# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21763ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21764ac_uB='$,\1#\2define\3'
21765ac_uC=' '
21766ac_uD=',;t'
21767
21768for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21769  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21770  case $ac_file in
21771  - | *:- | *:-:* ) # input from stdin
21772	cat >$tmp/stdin
21773	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21774	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21775  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21776	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21777  * )   ac_file_in=$ac_file.in ;;
21778  esac
21779
21780  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21781echo "$as_me: creating $ac_file" >&6;}
21782
21783  # First look for the input files in the build tree, otherwise in the
21784  # src tree.
21785  ac_file_inputs=`IFS=:
21786    for f in $ac_file_in; do
21787      case $f in
21788      -) echo $tmp/stdin ;;
21789      [\\/$]*)
21790	 # Absolute (can't be DOS-style, as IFS=:)
21791	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21792echo "$as_me: error: cannot find input file: $f" >&2;}
21793   { (exit 1); exit 1; }; }
21794	 # Do quote $f, to prevent DOS paths from being IFS'd.
21795	 echo "$f";;
21796      *) # Relative
21797	 if test -f "$f"; then
21798	   # Build tree
21799	   echo "$f"
21800	 elif test -f "$srcdir/$f"; then
21801	   # Source tree
21802	   echo "$srcdir/$f"
21803	 else
21804	   # /dev/null tree
21805	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21806echo "$as_me: error: cannot find input file: $f" >&2;}
21807   { (exit 1); exit 1; }; }
21808	 fi;;
21809      esac
21810    done` || { (exit 1); exit 1; }
21811  # Remove the trailing spaces.
21812  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21813
21814_ACEOF
21815
21816# Transform confdefs.h into two sed scripts, `conftest.defines' and
21817# `conftest.undefs', that substitutes the proper values into
21818# config.h.in to produce config.h.  The first handles `#define'
21819# templates, and the second `#undef' templates.
21820# And first: Protect against being on the right side of a sed subst in
21821# config.status.  Protect against being in an unquoted here document
21822# in config.status.
21823rm -f conftest.defines conftest.undefs
21824# Using a here document instead of a string reduces the quoting nightmare.
21825# Putting comments in sed scripts is not portable.
21826#
21827# `end' is used to avoid that the second main sed command (meant for
21828# 0-ary CPP macros) applies to n-ary macro definitions.
21829# See the Autoconf documentation for `clear'.
21830cat >confdef2sed.sed <<\_ACEOF
21831s/[\\&,]/\\&/g
21832s,[\\$`],\\&,g
21833t clear
21834: clear
21835s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21836t end
21837s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21838: end
21839_ACEOF
21840# If some macros were called several times there might be several times
21841# the same #defines, which is useless.  Nevertheless, we may not want to
21842# sort them, since we want the *last* AC-DEFINE to be honored.
21843uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21844sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21845rm -f confdef2sed.sed
21846
21847# This sed command replaces #undef with comments.  This is necessary, for
21848# example, in the case of _POSIX_SOURCE, which is predefined and required
21849# on some systems where configure will not decide to define it.
21850cat >>conftest.undefs <<\_ACEOF
21851s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21852_ACEOF
21853
21854# Break up conftest.defines because some shells have a limit on the size
21855# of here documents, and old seds have small limits too (100 cmds).
21856echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21857echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21858echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21859echo '  :' >>$CONFIG_STATUS
21860rm -f conftest.tail
21861while grep . conftest.defines >/dev/null
21862do
21863  # Write a limited-size here document to $tmp/defines.sed.
21864  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21865  # Speed up: don't consider the non `#define' lines.
21866  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21867  # Work around the forget-to-reset-the-flag bug.
21868  echo 't clr' >>$CONFIG_STATUS
21869  echo ': clr' >>$CONFIG_STATUS
21870  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21871  echo 'CEOF
21872  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21873  rm -f $tmp/in
21874  mv $tmp/out $tmp/in
21875' >>$CONFIG_STATUS
21876  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21877  rm -f conftest.defines
21878  mv conftest.tail conftest.defines
21879done
21880rm -f conftest.defines
21881echo '  fi # grep' >>$CONFIG_STATUS
21882echo >>$CONFIG_STATUS
21883
21884# Break up conftest.undefs because some shells have a limit on the size
21885# of here documents, and old seds have small limits too (100 cmds).
21886echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21887rm -f conftest.tail
21888while grep . conftest.undefs >/dev/null
21889do
21890  # Write a limited-size here document to $tmp/undefs.sed.
21891  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21892  # Speed up: don't consider the non `#undef'
21893  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21894  # Work around the forget-to-reset-the-flag bug.
21895  echo 't clr' >>$CONFIG_STATUS
21896  echo ': clr' >>$CONFIG_STATUS
21897  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21898  echo 'CEOF
21899  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21900  rm -f $tmp/in
21901  mv $tmp/out $tmp/in
21902' >>$CONFIG_STATUS
21903  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21904  rm -f conftest.undefs
21905  mv conftest.tail conftest.undefs
21906done
21907rm -f conftest.undefs
21908
21909cat >>$CONFIG_STATUS <<\_ACEOF
21910  # Let's still pretend it is `configure' which instantiates (i.e., don't
21911  # use $as_me), people would be surprised to read:
21912  #    /* config.h.  Generated by config.status.  */
21913  if test x"$ac_file" = x-; then
21914    echo "/* Generated by configure.  */" >$tmp/config.h
21915  else
21916    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21917  fi
21918  cat $tmp/in >>$tmp/config.h
21919  rm -f $tmp/in
21920  if test x"$ac_file" != x-; then
21921    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21922      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21923echo "$as_me: $ac_file is unchanged" >&6;}
21924    else
21925      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21927	 X"$ac_file" : 'X\(//\)[^/]' \| \
21928	 X"$ac_file" : 'X\(//\)$' \| \
21929	 X"$ac_file" : 'X\(/\)' \| \
21930	 .     : '\(.\)' 2>/dev/null ||
21931echo X"$ac_file" |
21932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21933  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21934  	  /^X\(\/\/\)$/{ s//\1/; q; }
21935  	  /^X\(\/\).*/{ s//\1/; q; }
21936  	  s/.*/./; q'`
21937      { if $as_mkdir_p; then
21938    mkdir -p "$ac_dir"
21939  else
21940    as_dir="$ac_dir"
21941    as_dirs=
21942    while test ! -d "$as_dir"; do
21943      as_dirs="$as_dir $as_dirs"
21944      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21946	 X"$as_dir" : 'X\(//\)[^/]' \| \
21947	 X"$as_dir" : 'X\(//\)$' \| \
21948	 X"$as_dir" : 'X\(/\)' \| \
21949	 .     : '\(.\)' 2>/dev/null ||
21950echo X"$as_dir" |
21951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21952  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21953  	  /^X\(\/\/\)$/{ s//\1/; q; }
21954  	  /^X\(\/\).*/{ s//\1/; q; }
21955  	  s/.*/./; q'`
21956    done
21957    test ! -n "$as_dirs" || mkdir $as_dirs
21958  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21959echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21960   { (exit 1); exit 1; }; }; }
21961
21962      rm -f $ac_file
21963      mv $tmp/config.h $ac_file
21964    fi
21965  else
21966    cat $tmp/config.h
21967    rm -f $tmp/config.h
21968  fi
21969# Compute $ac_file's index in $config_headers.
21970_am_stamp_count=1
21971for _am_header in $config_headers :; do
21972  case $_am_header in
21973    $ac_file | $ac_file:* )
21974      break ;;
21975    * )
21976      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21977  esac
21978done
21979echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21980$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21981	 X$ac_file : 'X\(//\)[^/]' \| \
21982	 X$ac_file : 'X\(//\)$' \| \
21983	 X$ac_file : 'X\(/\)' \| \
21984	 .     : '\(.\)' 2>/dev/null ||
21985echo X$ac_file |
21986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21987  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21988  	  /^X\(\/\/\)$/{ s//\1/; q; }
21989  	  /^X\(\/\).*/{ s//\1/; q; }
21990  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21991done
21992_ACEOF
21993cat >>$CONFIG_STATUS <<\_ACEOF
21994
21995#
21996# CONFIG_COMMANDS section.
21997#
21998for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21999  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22000  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22001  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22002$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22003	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22004	 X"$ac_dest" : 'X\(//\)$' \| \
22005	 X"$ac_dest" : 'X\(/\)' \| \
22006	 .     : '\(.\)' 2>/dev/null ||
22007echo X"$ac_dest" |
22008    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22009  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22010  	  /^X\(\/\/\)$/{ s//\1/; q; }
22011  	  /^X\(\/\).*/{ s//\1/; q; }
22012  	  s/.*/./; q'`
22013  { if $as_mkdir_p; then
22014    mkdir -p "$ac_dir"
22015  else
22016    as_dir="$ac_dir"
22017    as_dirs=
22018    while test ! -d "$as_dir"; do
22019      as_dirs="$as_dir $as_dirs"
22020      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22022	 X"$as_dir" : 'X\(//\)[^/]' \| \
22023	 X"$as_dir" : 'X\(//\)$' \| \
22024	 X"$as_dir" : 'X\(/\)' \| \
22025	 .     : '\(.\)' 2>/dev/null ||
22026echo X"$as_dir" |
22027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22028  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22029  	  /^X\(\/\/\)$/{ s//\1/; q; }
22030  	  /^X\(\/\).*/{ s//\1/; q; }
22031  	  s/.*/./; q'`
22032    done
22033    test ! -n "$as_dirs" || mkdir $as_dirs
22034  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22035echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22036   { (exit 1); exit 1; }; }; }
22037
22038  ac_builddir=.
22039
22040if test "$ac_dir" != .; then
22041  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22042  # A "../" for each directory in $ac_dir_suffix.
22043  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22044else
22045  ac_dir_suffix= ac_top_builddir=
22046fi
22047
22048case $srcdir in
22049  .)  # No --srcdir option.  We are building in place.
22050    ac_srcdir=.
22051    if test -z "$ac_top_builddir"; then
22052       ac_top_srcdir=.
22053    else
22054       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22055    fi ;;
22056  [\\/]* | ?:[\\/]* )  # Absolute path.
22057    ac_srcdir=$srcdir$ac_dir_suffix;
22058    ac_top_srcdir=$srcdir ;;
22059  *) # Relative path.
22060    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22061    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22062esac
22063
22064# Do not use `cd foo && pwd` to compute absolute paths, because
22065# the directories may not exist.
22066case `pwd` in
22067.) ac_abs_builddir="$ac_dir";;
22068*)
22069  case "$ac_dir" in
22070  .) ac_abs_builddir=`pwd`;;
22071  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22072  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22073  esac;;
22074esac
22075case $ac_abs_builddir in
22076.) ac_abs_top_builddir=${ac_top_builddir}.;;
22077*)
22078  case ${ac_top_builddir}. in
22079  .) ac_abs_top_builddir=$ac_abs_builddir;;
22080  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22081  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22082  esac;;
22083esac
22084case $ac_abs_builddir in
22085.) ac_abs_srcdir=$ac_srcdir;;
22086*)
22087  case $ac_srcdir in
22088  .) ac_abs_srcdir=$ac_abs_builddir;;
22089  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22090  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22091  esac;;
22092esac
22093case $ac_abs_builddir in
22094.) ac_abs_top_srcdir=$ac_top_srcdir;;
22095*)
22096  case $ac_top_srcdir in
22097  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22098  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22099  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22100  esac;;
22101esac
22102
22103
22104  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22105echo "$as_me: executing $ac_dest commands" >&6;}
22106  case $ac_dest in
22107    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22108  # Strip MF so we end up with the name of the file.
22109  mf=`echo "$mf" | sed -e 's/:.*$//'`
22110  # Check whether this is an Automake generated Makefile or not.
22111  # We used to match only the files named `Makefile.in', but
22112  # some people rename them; so instead we look at the file content.
22113  # Grep'ing the first line is not enough: some people post-process
22114  # each Makefile.in and add a new line on top of each file to say so.
22115  # So let's grep whole file.
22116  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22117    dirpart=`(dirname "$mf") 2>/dev/null ||
22118$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22119	 X"$mf" : 'X\(//\)[^/]' \| \
22120	 X"$mf" : 'X\(//\)$' \| \
22121	 X"$mf" : 'X\(/\)' \| \
22122	 .     : '\(.\)' 2>/dev/null ||
22123echo X"$mf" |
22124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22125  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22126  	  /^X\(\/\/\)$/{ s//\1/; q; }
22127  	  /^X\(\/\).*/{ s//\1/; q; }
22128  	  s/.*/./; q'`
22129  else
22130    continue
22131  fi
22132  # Extract the definition of DEPDIR, am__include, and am__quote
22133  # from the Makefile without running `make'.
22134  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22135  test -z "$DEPDIR" && continue
22136  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22137  test -z "am__include" && continue
22138  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22139  # When using ansi2knr, U may be empty or an underscore; expand it
22140  U=`sed -n 's/^U = //p' < "$mf"`
22141  # Find all dependency output files, they are included files with
22142  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22143  # simplest approach to changing $(DEPDIR) to its actual value in the
22144  # expansion.
22145  for file in `sed -n "
22146    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22147       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22148    # Make sure the directory exists.
22149    test -f "$dirpart/$file" && continue
22150    fdir=`(dirname "$file") 2>/dev/null ||
22151$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22152	 X"$file" : 'X\(//\)[^/]' \| \
22153	 X"$file" : 'X\(//\)$' \| \
22154	 X"$file" : 'X\(/\)' \| \
22155	 .     : '\(.\)' 2>/dev/null ||
22156echo X"$file" |
22157    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22158  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22159  	  /^X\(\/\/\)$/{ s//\1/; q; }
22160  	  /^X\(\/\).*/{ s//\1/; q; }
22161  	  s/.*/./; q'`
22162    { if $as_mkdir_p; then
22163    mkdir -p $dirpart/$fdir
22164  else
22165    as_dir=$dirpart/$fdir
22166    as_dirs=
22167    while test ! -d "$as_dir"; do
22168      as_dirs="$as_dir $as_dirs"
22169      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22170$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22171	 X"$as_dir" : 'X\(//\)[^/]' \| \
22172	 X"$as_dir" : 'X\(//\)$' \| \
22173	 X"$as_dir" : 'X\(/\)' \| \
22174	 .     : '\(.\)' 2>/dev/null ||
22175echo X"$as_dir" |
22176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22177  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22178  	  /^X\(\/\/\)$/{ s//\1/; q; }
22179  	  /^X\(\/\).*/{ s//\1/; q; }
22180  	  s/.*/./; q'`
22181    done
22182    test ! -n "$as_dirs" || mkdir $as_dirs
22183  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22184echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22185   { (exit 1); exit 1; }; }; }
22186
22187    # echo "creating $dirpart/$file"
22188    echo '# dummy' > "$dirpart/$file"
22189  done
22190done
22191 ;;
22192  esac
22193done
22194_ACEOF
22195
22196cat >>$CONFIG_STATUS <<\_ACEOF
22197
22198{ (exit 0); exit 0; }
22199_ACEOF
22200chmod +x $CONFIG_STATUS
22201ac_clean_files=$ac_clean_files_save
22202
22203
22204# configure is writing to config.log, and then calls config.status.
22205# config.status does its own redirection, appending to config.log.
22206# Unfortunately, on DOS this fails, as config.log is still kept open
22207# by configure, so config.status won't be able to write to it; its
22208# output is simply discarded.  So we exec the FD to /dev/null,
22209# effectively closing config.log, so it can be properly (re)opened and
22210# appended to by config.status.  When coming back to configure, we
22211# need to make the FD available again.
22212if test "$no_create" != yes; then
22213  ac_cs_success=:
22214  ac_config_status_args=
22215  test "$silent" = yes &&
22216    ac_config_status_args="$ac_config_status_args --quiet"
22217  exec 5>/dev/null
22218  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22219  exec 5>>config.log
22220  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22221  # would make configure fail if this is the last instruction.
22222  $ac_cs_success || { (exit 1); exit 1; }
22223fi
22224
22225