1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.4.7.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
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#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76	 X"$0" : 'X\(//\)$' \| \
77	 X"$0" : 'X\(/\)$' \| \
78	 .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
82  	  /^X\/\(\/\).*/{ s//\1/; q; }
83  	  s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144	 case $as_dir in
145	 /*)
146	   if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154	     CONFIG_SHELL=$as_dir/$as_base
155	     export CONFIG_SHELL
156	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157	   fi;;
158	 esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='	' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" 	$as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='1.4.7'
433PACKAGE_STRING='ThirdPartyBlas 1.4.7'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834	      localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874	 X"$0" : 'X\(//\)[^/]' \| \
875	 X"$0" : 'X\(//\)$' \| \
876	 X"$0" : 'X\(/\)' \| \
877	 .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881  	  /^X\(\/\/\)$/{ s//\1/; q; }
882  	  /^X\(\/\).*/{ s//\1/; q; }
883  	  s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas 1.4.7 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029			  [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031			  [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas 1.4.7:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-blas compile project Blas with debug compiler flags
1080
1081  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1082  --disable-pkg-config    disable use of pkg-config (if available)
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088			  (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094  --disable-dependency-linking
1095                          disable linking library dependencies into shared
1096                          libraries
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-blas-verbosity specify the debug verbosity level for project Blas
1102  --with-blas-checklevel specify the sanity check level for project Blas
1103  --with-coin-instdir     prefix of installation directory for precompiled
1104                          COIN packages
1105  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1106  --with-pic              try to use only PIC/non-PIC objects [default=use
1107                          both]
1108  --with-tags[=TAGS]
1109                          include additional configurations [automatic]
1110
1111Some influential environment variables:
1112  CDEFS       Additional -D flags to be used when compiling C code.
1113  ADD_CFLAGS  Additional C compiler options
1114  DBG_CFLAGS  Debug C compiler options
1115  OPT_CFLAGS  Optimize C compiler options
1116  CC          C compiler command
1117  CFLAGS      C compiler flags
1118  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1119              nonstandard directory <lib dir>
1120  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1121              headers in a nonstandard directory <include dir>
1122  MPICC       C MPI Compiler
1123  ADD_FFLAGS  Additional Fortran compiler options
1124  DBG_FFLAGS  Debug Fortran compiler options
1125  OPT_FFLAGS  Optimize Fortran compiler options
1126  F77         Fortran 77 compiler command
1127  FFLAGS      Fortran 77 compiler flags
1128  MPIF77      Fortran MPI Compiler
1129  PKG_CONFIG  path to pkg-config utility
1130  CPP         C preprocessor
1131  CXX         C++ compiler command
1132  CXXFLAGS    C++ compiler flags
1133  CXXCPP      C++ preprocessor
1134
1135Use these variables to override the choices made by `configure' or to help
1136it to find libraries and programs with nonstandard names/locations.
1137
1138Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1139_ACEOF
1140fi
1141
1142if test "$ac_init_help" = "recursive"; then
1143  # If there are subdirs, report their specific --help.
1144  ac_popdir=`pwd`
1145  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1146    test -d $ac_dir || continue
1147    ac_builddir=.
1148
1149if test "$ac_dir" != .; then
1150  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1151  # A "../" for each directory in $ac_dir_suffix.
1152  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153else
1154  ac_dir_suffix= ac_top_builddir=
1155fi
1156
1157case $srcdir in
1158  .)  # No --srcdir option.  We are building in place.
1159    ac_srcdir=.
1160    if test -z "$ac_top_builddir"; then
1161       ac_top_srcdir=.
1162    else
1163       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164    fi ;;
1165  [\\/]* | ?:[\\/]* )  # Absolute path.
1166    ac_srcdir=$srcdir$ac_dir_suffix;
1167    ac_top_srcdir=$srcdir ;;
1168  *) # Relative path.
1169    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1170    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1171esac
1172
1173# Do not use `cd foo && pwd` to compute absolute paths, because
1174# the directories may not exist.
1175case `pwd` in
1176.) ac_abs_builddir="$ac_dir";;
1177*)
1178  case "$ac_dir" in
1179  .) ac_abs_builddir=`pwd`;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1181  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_builddir=${ac_top_builddir}.;;
1186*)
1187  case ${ac_top_builddir}. in
1188  .) ac_abs_top_builddir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1190  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_srcdir=$ac_srcdir;;
1195*)
1196  case $ac_srcdir in
1197  .) ac_abs_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1199  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1200  esac;;
1201esac
1202case $ac_abs_builddir in
1203.) ac_abs_top_srcdir=$ac_top_srcdir;;
1204*)
1205  case $ac_top_srcdir in
1206  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1207  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1208  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209  esac;;
1210esac
1211
1212    cd $ac_dir
1213    # Check for guested configure; otherwise get Cygnus style configure.
1214    if test -f $ac_srcdir/configure.gnu; then
1215      echo
1216      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1217    elif test -f $ac_srcdir/configure; then
1218      echo
1219      $SHELL $ac_srcdir/configure  --help=recursive
1220    elif test -f $ac_srcdir/configure.ac ||
1221	   test -f $ac_srcdir/configure.in; then
1222      echo
1223      $ac_configure --help
1224    else
1225      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1226    fi
1227    cd $ac_popdir
1228  done
1229fi
1230
1231test -n "$ac_init_help" && exit 0
1232if $ac_init_version; then
1233  cat <<\_ACEOF
1234ThirdPartyBlas configure 1.4.7
1235generated by GNU Autoconf 2.59
1236
1237Copyright (C) 2003 Free Software Foundation, Inc.
1238This configure script is free software; the Free Software Foundation
1239gives unlimited permission to copy, distribute and modify it.
1240
1241
1242Copyright 2006 International Business Machines and others.
1243All Rights Reserved.
1244This file is part of the open source package Coin which is distributed
1245under the Eclipse Public License.
1246_ACEOF
1247  exit 0
1248fi
1249exec 5>config.log
1250cat >&5 <<_ACEOF
1251This file contains any messages produced by compilers while
1252running configure, to aid debugging if configure makes a mistake.
1253
1254It was created by ThirdPartyBlas $as_me 1.4.7, which was
1255generated by GNU Autoconf 2.59.  Invocation command line was
1256
1257  $ $0 $@
1258
1259_ACEOF
1260{
1261cat <<_ASUNAME
1262## --------- ##
1263## Platform. ##
1264## --------- ##
1265
1266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1267uname -m = `(uname -m) 2>/dev/null || echo unknown`
1268uname -r = `(uname -r) 2>/dev/null || echo unknown`
1269uname -s = `(uname -s) 2>/dev/null || echo unknown`
1270uname -v = `(uname -v) 2>/dev/null || echo unknown`
1271
1272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1273/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1274
1275/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1276/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1278hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1279/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1280/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1281/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1282
1283_ASUNAME
1284
1285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286for as_dir in $PATH
1287do
1288  IFS=$as_save_IFS
1289  test -z "$as_dir" && as_dir=.
1290  echo "PATH: $as_dir"
1291done
1292
1293} >&5
1294
1295cat >&5 <<_ACEOF
1296
1297
1298## ----------- ##
1299## Core tests. ##
1300## ----------- ##
1301
1302_ACEOF
1303
1304
1305# Keep a trace of the command line.
1306# Strip out --no-create and --no-recursion so they do not pile up.
1307# Strip out --silent because we don't want to record it for future runs.
1308# Also quote any args containing shell meta-characters.
1309# Make two passes to allow for proper duplicate-argument suppression.
1310ac_configure_args=
1311ac_configure_args0=
1312ac_configure_args1=
1313ac_sep=
1314ac_must_keep_next=false
1315for ac_pass in 1 2
1316do
1317  for ac_arg
1318  do
1319    case $ac_arg in
1320    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1321    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322    | -silent | --silent | --silen | --sile | --sil)
1323      continue ;;
1324    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326    esac
1327    case $ac_pass in
1328    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329    2)
1330      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1331      if test $ac_must_keep_next = true; then
1332	ac_must_keep_next=false # Got value, back to normal.
1333      else
1334	case $ac_arg in
1335	  *=* | --config-cache | -C | -disable-* | --disable-* \
1336	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1337	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1338	  | -with-* | --with-* | -without-* | --without-* | --x)
1339	    case "$ac_configure_args0 " in
1340	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1341	    esac
1342	    ;;
1343	  -* ) ac_must_keep_next=true ;;
1344	esac
1345      fi
1346      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1347      # Get rid of the leading space.
1348      ac_sep=" "
1349      ;;
1350    esac
1351  done
1352done
1353$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1354$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355
1356# When interrupted or exit'd, cleanup temporary files, and complete
1357# config.log.  We remove comments because anyway the quotes in there
1358# would cause problems or look ugly.
1359# WARNING: Be sure not to use single quotes in there, as some shells,
1360# such as our DU 5.0 friend, will then `close' the trap.
1361trap 'exit_status=$?
1362  # Save into config.log some information that might help in debugging.
1363  {
1364    echo
1365
1366    cat <<\_ASBOX
1367## ---------------- ##
1368## Cache variables. ##
1369## ---------------- ##
1370_ASBOX
1371    echo
1372    # The following way of writing the cache mishandles newlines in values,
1373{
1374  (set) 2>&1 |
1375    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1376    *ac_space=\ *)
1377      sed -n \
1378	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1379	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380      ;;
1381    *)
1382      sed -n \
1383	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1384      ;;
1385    esac;
1386}
1387    echo
1388
1389    cat <<\_ASBOX
1390## ----------------- ##
1391## Output variables. ##
1392## ----------------- ##
1393_ASBOX
1394    echo
1395    for ac_var in $ac_subst_vars
1396    do
1397      eval ac_val=$`echo $ac_var`
1398      echo "$ac_var='"'"'$ac_val'"'"'"
1399    done | sort
1400    echo
1401
1402    if test -n "$ac_subst_files"; then
1403      cat <<\_ASBOX
1404## ------------- ##
1405## Output files. ##
1406## ------------- ##
1407_ASBOX
1408      echo
1409      for ac_var in $ac_subst_files
1410      do
1411	eval ac_val=$`echo $ac_var`
1412	echo "$ac_var='"'"'$ac_val'"'"'"
1413      done | sort
1414      echo
1415    fi
1416
1417    if test -s confdefs.h; then
1418      cat <<\_ASBOX
1419## ----------- ##
1420## confdefs.h. ##
1421## ----------- ##
1422_ASBOX
1423      echo
1424      sed "/^$/d" confdefs.h | sort
1425      echo
1426    fi
1427    test "$ac_signal" != 0 &&
1428      echo "$as_me: caught signal $ac_signal"
1429    echo "$as_me: exit $exit_status"
1430  } >&5
1431  rm -f core *.core &&
1432  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1433    exit $exit_status
1434     ' 0
1435for ac_signal in 1 2 13 15; do
1436  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437done
1438ac_signal=0
1439
1440# confdefs.h avoids OS command line length limits that DEFS can exceed.
1441rm -rf conftest* confdefs.h
1442# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1443echo >confdefs.h
1444
1445# Predefined preprocessor variables.
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_NAME "$PACKAGE_NAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_VERSION "$PACKAGE_VERSION"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_STRING "$PACKAGE_STRING"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469_ACEOF
1470
1471
1472# Let the site file select an alternate cache file if it wants to.
1473# Prefer explicitly selected file to automatically selected ones.
1474if test -z "$CONFIG_SITE"; then
1475  if test "x$prefix" != xNONE; then
1476    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477  else
1478    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479  fi
1480fi
1481for ac_site_file in $CONFIG_SITE; do
1482  if test -r "$ac_site_file"; then
1483    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1484echo "$as_me: loading site script $ac_site_file" >&6;}
1485    sed 's/^/| /' "$ac_site_file" >&5
1486    . "$ac_site_file"
1487  fi
1488done
1489
1490if test -r "$cache_file"; then
1491  # Some versions of bash will fail to source /dev/null (special
1492  # files actually), so we avoid doing that.
1493  if test -f "$cache_file"; then
1494    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1495echo "$as_me: loading cache $cache_file" >&6;}
1496    case $cache_file in
1497      [\\/]* | ?:[\\/]* ) . $cache_file;;
1498      *)                      . ./$cache_file;;
1499    esac
1500  fi
1501else
1502  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1503echo "$as_me: creating cache $cache_file" >&6;}
1504  >$cache_file
1505fi
1506
1507# Check that the precious variables saved in the cache have kept the same
1508# value.
1509ac_cache_corrupted=false
1510for ac_var in `(set) 2>&1 |
1511	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1512  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1513  eval ac_new_set=\$ac_env_${ac_var}_set
1514  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1515  eval ac_new_val="\$ac_env_${ac_var}_value"
1516  case $ac_old_set,$ac_new_set in
1517    set,)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,set)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,);;
1526    *)
1527      if test "x$ac_old_val" != "x$ac_new_val"; then
1528	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1529echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1530	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1531echo "$as_me:   former value:  $ac_old_val" >&2;}
1532	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1533echo "$as_me:   current value: $ac_new_val" >&2;}
1534	ac_cache_corrupted=:
1535      fi;;
1536  esac
1537  # Pass precious variables to config.status.
1538  if test "$ac_new_set" = set; then
1539    case $ac_new_val in
1540    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1541      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1542    *) ac_arg=$ac_var=$ac_new_val ;;
1543    esac
1544    case " $ac_configure_args " in
1545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1546      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1547    esac
1548  fi
1549done
1550if $ac_cache_corrupted; then
1551  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1552echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1553  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1554echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557
1558ac_ext=c
1559ac_cpp='$CPP $CPPFLAGS'
1560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1562ac_compiler_gnu=$ac_cv_c_compiler_gnu
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593# List one file in the package so that the configure script can test
1594# whether the package is actually there
1595
1596
1597# Where should everything be installed by default?  Here, we want it
1598# to be installed directly in 'bin', 'lib', 'include' subdirectories
1599# of the directory where configure is run.  The default would be
1600# /usr/local.
1601
1602
1603
1604# As backup, we make sure we don't loose an FLIBS if it has been set
1605# by the user
1606save_FLIBS="$FLIBS"
1607
1608# A useful makefile conditional that is always false
1609
1610
1611if false; then
1612  ALWAYS_FALSE_TRUE=
1613  ALWAYS_FALSE_FALSE='#'
1614else
1615  ALWAYS_FALSE_TRUE='#'
1616  ALWAYS_FALSE_FALSE=
1617fi
1618
1619
1620# We set the following variable so that we know later in AC_COIN_FINALIZE
1621# that we are in a project main directory
1622coin_projectdir=yes
1623
1624# Set the project's version numbers
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define BLAS_VERSION "$PACKAGE_VERSION"
1629_ACEOF
1630
1631
1632  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1633  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1634  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1636  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1637  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1638
1639cat >>confdefs.h <<_ACEOF
1640#define BLAS_VERSION_MAJOR $coin_majorver
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define BLAS_VERSION_MINOR $coin_minorver
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define BLAS_VERSION_RELEASE $coin_releasever
1651_ACEOF
1652
1653
1654  # We use the following variable to have a string with the upper case
1655  # version of the project name
1656  COIN_PRJCT=BLAS
1657
1658  # Set the project's SVN revision number. The complicated sed expression
1659  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1660  # as a single number.
1661  # Extract the first word of "svnversion", so it can be a program name with args.
1662set dummy svnversion; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_have_svnversion+set}" = set; then
1666  echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668  if test -n "$have_svnversion"; then
1669  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674  IFS=$as_save_IFS
1675  test -z "$as_dir" && as_dir=.
1676  for ac_exec_ext in '' $ac_executable_extensions; do
1677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678    ac_cv_prog_have_svnversion="yes"
1679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680    break 2
1681  fi
1682done
1683done
1684
1685  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1686fi
1687fi
1688have_svnversion=$ac_cv_prog_have_svnversion
1689if test -n "$have_svnversion"; then
1690  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1691echo "${ECHO_T}$have_svnversion" >&6
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697  if test "x$have_svnversion" = xyes; then
1698
1699    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1700    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1701      BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1702
1703cat >>confdefs.h <<_ACEOF
1704#define BLAS_SVN_REV $BLAS_SVN_REV
1705_ACEOF
1706
1707    fi
1708  fi
1709
1710
1711
1712# Capture libtool library version, if given.
1713 coin_libversion=5:7:4
1714
1715
1716
1717
1718#############################################################################
1719#                         Standard build tool stuff                         #
1720#############################################################################
1721
1722# Get the system type
1723ac_aux_dir=
1724for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1725  if test -f $ac_dir/install-sh; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install-sh -c"
1728    break
1729  elif test -f $ac_dir/install.sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install.sh -c"
1732    break
1733  elif test -f $ac_dir/shtool; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/shtool install -c"
1736    break
1737  fi
1738done
1739if test -z "$ac_aux_dir"; then
1740  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1741echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1745ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1746ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1747
1748# Make sure we can run config.sub.
1749$ac_config_sub sun4 >/dev/null 2>&1 ||
1750  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1751echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754echo "$as_me:$LINENO: checking build system type" >&5
1755echo $ECHO_N "checking build system type... $ECHO_C" >&6
1756if test "${ac_cv_build+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  ac_cv_build_alias=$build_alias
1760test -z "$ac_cv_build_alias" &&
1761  ac_cv_build_alias=`$ac_config_guess`
1762test -z "$ac_cv_build_alias" &&
1763  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1764echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1765   { (exit 1); exit 1; }; }
1766ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1767  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1768echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1769   { (exit 1); exit 1; }; }
1770
1771fi
1772echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1773echo "${ECHO_T}$ac_cv_build" >&6
1774build=$ac_cv_build
1775build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1776build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1777build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1778
1779
1780
1781#turn off warnings and pedantic mode since they could make trouble on some platforms,
1782#and we couldn't fix them anyway
1783coin_skip_warn_fflags=yes
1784
1785# Check if user wants to produce debugging code
1786
1787echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1788echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1789
1790# Check whether --enable-debug or --disable-debug was given.
1791if test "${enable_debug+set}" = set; then
1792  enableval="$enable_debug"
1793  case "${enableval}" in
1794   yes) coin_debug_compile=true
1795        if test "${enable_shared+set}" = set; then :; else
1796          enable_shared=no
1797        fi
1798        ;;
1799   no)  coin_debug_compile=false
1800        ;;
1801   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1803   { (exit 1); exit 1; }; }
1804        ;;
1805esac
1806else
1807  coin_debug_compile=false
1808fi;
1809
1810# Check whether --enable-debug-blas or --disable-debug-blas was given.
1811if test "${enable_debug_blas+set}" = set; then
1812  enableval="$enable_debug_blas"
1813  case "${enableval}" in
1814    yes) coin_debug_compile=true
1815         ;;
1816    no)  coin_debug_compile=false
1817         ;;
1818    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1819echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1820   { (exit 1); exit 1; }; }
1821         ;;
1822 esac
1823else
1824  :
1825fi;
1826
1827 # m4_ifvaln([Blas],
1828
1829if test $coin_debug_compile = true; then
1830  echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837
1838# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1839if test "${with_blas_verbosity+set}" = set; then
1840  withval="$with_blas_verbosity"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_blas_verbosity=$withval
1845else
1846  coin_blas_verbosity=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1851_ACEOF
1852
1853
1854
1855# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1856if test "${with_blas_checklevel+set}" = set; then
1857  withval="$with_blas_checklevel"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_blas_checklevel=$withval
1862else
1863  coin_blas_checklevel=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1868_ACEOF
1869
1870
1871 # m4_ifvaln([Blas],
1872
1873
1874
1875# Get the name of the Fortran compiler and appropriate compiler options
1876
1877
1878  # for backward compatibility
1879  # Check whether --enable-doscompile or --disable-doscompile was given.
1880if test "${enable_doscompile+set}" = set; then
1881  enableval="$enable_doscompile"
1882  enable_doscompile=$enableval
1883else
1884  enable_doscompile=no
1885fi;
1886
1887  # Check whether --enable-msvc or --disable-msvc was given.
1888if test "${enable_msvc+set}" = set; then
1889  enableval="$enable_msvc"
1890  enable_msvc=$enableval
1891else
1892  enable_msvc=no
1893     if test "$enable_doscompile" = msvc ; then
1894       enable_msvc=yes
1895     elif test "$enable_doscompile" != no ; then
1896       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1897echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1898   { (exit 1); exit 1; }; }
1899     fi
1900
1901fi;
1902
1903  if test "$enable_msvc" = MD; then
1904    enable_shared=yes
1905    enable_msvc=yes
1906  fi
1907
1908  if test "$enable_msvc" = yes; then
1909    case $build in
1910      *-cygwin* | *-mingw*) ;;
1911      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1912echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1913   { (exit 1); exit 1; }; } ;;
1914    esac
1915  fi
1916
1917
1918
1919ac_ext=c
1920ac_cpp='$CPP $CPPFLAGS'
1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925
1926# For consistency, we set the C compiler to the same value of the C++
1927# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1928if test x"$CXX" != x; then
1929  case "$CXX" in
1930    clang* ) ;;
1931    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1932      if test x"$CC" = x; then
1933        CC="$CXX"
1934        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1935echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1936      fi
1937      ;;
1938  esac
1939fi
1940
1941
1942
1943
1944
1945
1946coin_has_cc=yes
1947
1948save_cflags="$CFLAGS"
1949
1950# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1951# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1952# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1953# compiler. In this case, put cc after gcc.
1954
1955case $build in
1956  *-cygwin* | *-mingw*)
1957  	     if test "$enable_msvc" = yes ; then
1958	       comps="icl cl gcc"
1959	     else
1960	       comps="gcc icl cl"
1961	     fi ;;
1962  *-*-solaris*)
1963	     # Extract the first word of "cc", so it can be a program name with args.
1964set dummy cc; ac_word=$2
1965echo "$as_me:$LINENO: checking for $ac_word" >&5
1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1968  echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970  if test -n "$sol_cc_compiler"; then
1971  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1972else
1973  ac_prog_rejected=no
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  test -z "$as_dir" && as_dir=.
1979  for ac_exec_ext in '' $ac_executable_extensions; do
1980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982       ac_prog_rejected=yes
1983       continue
1984     fi
1985    ac_cv_prog_sol_cc_compiler="cc"
1986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987    break 2
1988  fi
1989done
1990done
1991
1992if test $ac_prog_rejected = yes; then
1993  # We found a bogon in the path, so make sure we never use it.
1994  set dummy $ac_cv_prog_sol_cc_compiler
1995  shift
1996  if test $# != 0; then
1997    # We chose a different compiler from the bogus one.
1998    # However, it has the same basename, so the bogon will be chosen
1999    # first if we set sol_cc_compiler to just the basename; use the full file name.
2000    shift
2001    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2002  fi
2003fi
2004fi
2005fi
2006sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2007if test -n "$sol_cc_compiler"; then
2008  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2009echo "${ECHO_T}$sol_cc_compiler" >&6
2010else
2011  echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6
2013fi
2014
2015	     if test "$sol_cc_compiler" = "cc" ; then
2016	       comps="cc xlc gcc pgcc icc"
2017	     else
2018	       comps="xlc gcc pgcc icc cc"
2019	     fi
2020	     ;;
2021  *-*-darwin*) comps="clang gcc cc" ;;
2022  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2023  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2024  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2025esac
2026
2027# We delete the cached value, since the test might not have been
2028# performed with our choice of compilers earlier
2029$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2030# AC_MSG_NOTICE([C compiler candidates: $comps])
2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036if test -n "$ac_tool_prefix"; then
2037  for ac_prog in $comps
2038  do
2039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_CC+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$CC"; then
2047  ac_cv_prog_CC="$CC" # Let the user override the test.
2048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052  IFS=$as_save_IFS
2053  test -z "$as_dir" && as_dir=.
2054  for ac_exec_ext in '' $ac_executable_extensions; do
2055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058    break 2
2059  fi
2060done
2061done
2062
2063fi
2064fi
2065CC=$ac_cv_prog_CC
2066if test -n "$CC"; then
2067  echo "$as_me:$LINENO: result: $CC" >&5
2068echo "${ECHO_T}$CC" >&6
2069else
2070  echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6
2072fi
2073
2074    test -n "$CC" && break
2075  done
2076fi
2077if test -z "$CC"; then
2078  ac_ct_CC=$CC
2079  for ac_prog in $comps
2080do
2081  # Extract the first word of "$ac_prog", so it can be a program name with args.
2082set dummy $ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$ac_ct_CC"; then
2089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_ac_ct_CC="$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108if test -n "$ac_ct_CC"; then
2109  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110echo "${ECHO_T}$ac_ct_CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116  test -n "$ac_ct_CC" && break
2117done
2118
2119  CC=$ac_ct_CC
2120fi
2121
2122
2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127   { (exit 1); exit 1; }; }
2128
2129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
2131     "checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134  (eval $ac_compiler --version </dev/null >&5) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139  (eval $ac_compiler -v </dev/null >&5) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144  (eval $ac_compiler -V </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148
2149cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h.  */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h.  */
2155
2156int
2157main ()
2158{
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164ac_clean_files_save=$ac_clean_files
2165ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166# Try to create an executable without -o first, disregard a.out.
2167# It will help us diagnose broken compilers, and finding out an intuition
2168# of exeext.
2169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173  (eval $ac_link_default) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  # Find the output, starting from the most likely.  This scheme is
2178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179# resort.
2180
2181# Be careful to initialize this variable, since it used to be cached.
2182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183ac_cv_exeext=
2184# b.out is created by i960 compilers.
2185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186do
2187  test -f "$ac_file" || continue
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190	;;
2191    conftest.$ac_ext )
2192	# This is the source file.
2193	;;
2194    [ab].out )
2195	# We found the default executable, but exeext='' is most
2196	# certainly right.
2197	break;;
2198    *.* )
2199	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200	# FIXME: I believe we export ac_cv_exeext for Libtool,
2201	# but it would be cool to find out if it's true.  Does anybody
2202	# maintain Libtool? --akim.
2203	export ac_cv_exeext
2204	break;;
2205    * )
2206	break;;
2207  esac
2208done
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214See \`config.log' for more details." >&5
2215echo "$as_me: error: C compiler cannot create executables
2216See \`config.log' for more details." >&2;}
2217   { (exit 77); exit 77; }; }
2218fi
2219
2220ac_exeext=$ac_cv_exeext
2221echo "$as_me:$LINENO: result: $ac_file" >&5
2222echo "${ECHO_T}$ac_file" >&6
2223
2224# Check the compiler produces executables we can run.  If not, either
2225# the compiler is broken, or we cross compile.
2226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229# If not cross compiling, check that we can run a simple program.
2230if test "$cross_compiling" != yes; then
2231  if { ac_try='./$ac_file'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237    cross_compiling=no
2238  else
2239    if test "$cross_compiling" = maybe; then
2240	cross_compiling=yes
2241    else
2242	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249    fi
2250  fi
2251fi
2252echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256ac_clean_files=$ac_clean_files_save
2257# Check the compiler produces executables we can run.  If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6
2263
2264echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267  (eval $ac_link) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276  test -f "$ac_file" || continue
2277  case $ac_file in
2278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280	  export ac_cv_exeext
2281	  break;;
2282    * ) break;;
2283  esac
2284done
2285else
2286  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302if test "${ac_cv_objext+set}" = set; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h.  */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h.  */
2311
2312int
2313main ()
2314{
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; then
2326  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330       break;;
2331  esac
2332done
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
2350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365#ifndef __GNUC__
2366       choke me
2367#endif
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>conftest.er1
2376  ac_status=$?
2377  grep -v '^ *+' conftest.er1 >conftest.err
2378  rm -f conftest.er1
2379  cat conftest.err >&5
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); } &&
2382	 { ac_try='test -z "$ac_c_werror_flag"
2383			 || test ! -s conftest.err'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; } &&
2389	 { ac_try='test -s conftest.$ac_objext'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; }; then
2395  ac_compiler_gnu=yes
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400ac_compiler_gnu=no
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423
2424int
2425main ()
2426{
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441	 { ac_try='test -z "$ac_c_werror_flag"
2442			 || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448	 { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_cv_prog_cc_g=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_cv_prog_cc_g=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466  CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468  if test "$GCC" = yes; then
2469    CFLAGS="-g -O2"
2470  else
2471    CFLAGS="-g"
2472  fi
2473else
2474  if test "$GCC" = yes; then
2475    CFLAGS="-O2"
2476  else
2477    CFLAGS=
2478  fi
2479fi
2480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501     char **p;
2502     int i;
2503{
2504  return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508  char *s;
2509  va_list v;
2510  va_start (v,p);
2511  s = g (p, va_arg (v,int));
2512  va_end (v);
2513  return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517   function prototypes and stuff, but not '\xHH' hex character constants.
2518   These don't provoke an error unfortunately, instead are silently treated
2519   as 'x'.  The following induces an error, until -std1 is added to get
2520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521   array size at least.  It's necessary to write '\x00'==0 to get something
2522   that's true only with -std1.  */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX			-qlanglvl=ansi
2542# Ultrix and OSF/1	-std1
2543# HP-UX 10.20 and later	-Ae
2544# HP-UX older versions	-Aa -D_HPUX_SOURCE
2545# SVR4			-Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548  CC="$ac_save_CC $ac_arg"
2549  rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558	 { ac_try='test -z "$ac_c_werror_flag"
2559			 || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565	 { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586  x|xno)
2587    echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589  *)
2590    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592    CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C.  Since we use `exit',
2596# in C++ we need to declare it.  In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601  choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   '' \
2628   'extern "C" void std::exit (int) throw (); using std::exit;' \
2629   'extern "C" void std::exit (int); using std::exit;' \
2630   'extern "C" void exit (int) throw ();' \
2631   'extern "C" void exit (int);' \
2632   'void exit (int);'
2633do
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645exit (42);
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652  (eval $ac_compile) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659	 { ac_try='test -z "$ac_c_werror_flag"
2660			 || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666	 { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  :
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677continue
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686$ac_declaration
2687int
2688main ()
2689{
2690exit (42);
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -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  break
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727  echo '#ifdef __cplusplus' >>confdefs.h
2728  echo $ac_declaration      >>confdefs.h
2729  echo '#endif'             >>confdefs.h
2730fi
2731
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744if test -z "$CC" ; then
2745  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2746echo "$as_me: error: Failed to find a C compiler!" >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2750case "$CC" in
2751  clang* ) ;;
2752  cl* | */cl* | CL* | */CL* )
2753    if test "$ac_cv_prog_cc_g" = yes ; then
2754      ac_cv_prog_cc_g=no
2755      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2756echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2757    fi ;;
2758  * )
2759    if test x"$CYGPATH_W" = x ; then
2760      CYGPATH_W=echo
2761    fi
2762    ;;
2763esac
2764CFLAGS="$save_cflags"
2765
2766# add automake conditional so we can recognize cl compiler in makefile
2767coin_cc_is_cl=false
2768case "$CC" in
2769  clang* ) ;;
2770  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2771    coin_cc_is_cl=true
2772    ;;
2773esac
2774
2775
2776if test $coin_cc_is_cl = true; then
2777  COIN_CC_IS_CL_TRUE=
2778  COIN_CC_IS_CL_FALSE='#'
2779else
2780  COIN_CC_IS_CL_TRUE='#'
2781  COIN_CC_IS_CL_FALSE=
2782fi
2783
2784
2785# Check if a project specific CFLAGS variable has been set
2786if test x$COIN_PRJCT != x; then
2787  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2788  if test x$coin_tmp = xset; then
2789    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2790  fi
2791fi
2792
2793if test x"$CFLAGS" = x; then
2794
2795  coin_add_cflags=
2796  coin_opt_cflags=
2797  coin_dbg_cflags=
2798  coin_warn_cflags=
2799
2800  if test "$GCC" = "yes"; then
2801    case "$CC" in
2802      icc* | */icc*)
2803        ;;
2804      *)
2805        coin_opt_cflags="-O3"
2806        coin_add_cflags="-pipe"
2807        coin_dbg_cflags="-g -O0"
2808        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2809    esac
2810  fi
2811  if test -z "$coin_opt_cflags"; then
2812    case $build in
2813      *-cygwin* | *-mingw*)
2814        case "$CC" in
2815          clang* ) ;;
2816          cl* | */cl* | CL* | */CL*)
2817            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2818              coin_opt_cflags='-MD -O2'
2819              coin_dbg_cflags='-MDd'
2820            else
2821              coin_opt_cflags='-MT -O2'
2822              coin_dbg_cflags='-MTd'
2823            fi
2824            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2825            ;;
2826          icl* | */icl* | ICL* | */ICL*)
2827            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2828              coin_opt_cflags='-MD -Ox'
2829              coin_dbg_cflags='-MDd -debug'
2830            else
2831              coin_opt_cflags='-MT -Ox'
2832              coin_dbg_cflags='-MTd -debug'
2833            fi
2834            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2835            ;;
2836        esac
2837        ;;
2838      *-linux-*)
2839        case "$CC" in
2840          icc* | */icc*)
2841            coin_opt_cflags="-O3 -ip -mp1"
2842            coin_add_cflags=""
2843            coin_dbg_cflags="-g"
2844            # Check if -i_dynamic is necessary (for new glibc library)
2845            CFLAGS=
2846            cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h.  */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h.  */
2852
2853int
2854main ()
2855{
2856int i=0; i++;
2857  ;
2858  return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext conftest$ac_exeext
2862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863  (eval $ac_link) 2>conftest.er1
2864  ac_status=$?
2865  grep -v '^ *+' conftest.er1 >conftest.err
2866  rm -f conftest.er1
2867  cat conftest.err >&5
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); } &&
2870	 { ac_try='test -z "$ac_c_werror_flag"
2871			 || test ! -s conftest.err'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; } &&
2877	 { ac_try='test -s conftest$ac_exeext'
2878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879  (eval $ac_try) 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; }; then
2883  :
2884else
2885  echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888coin_add_cflags="-i_dynamic $coin_add_cflags"
2889fi
2890rm -f conftest.err conftest.$ac_objext \
2891      conftest$ac_exeext conftest.$ac_ext
2892            ;;
2893          pgcc* | */pgcc*)
2894            coin_opt_cflags="-fast"
2895            coin_add_cflags="-Kieee -pc 64"
2896            coin_dbg_cflags="-g"
2897            ;;
2898        esac
2899        ;;
2900      *-ibm-*)
2901        case "$CC" in
2902          xlc* | */xlc* | mpxlc* | */mpxlc*)
2903            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2904            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2905            coin_dbg_cflags="-g"
2906          ;;
2907        esac
2908        ;;
2909      *-hp-*)
2910        coin_opt_cflags="-O"
2911        coin_add_cflags="-Ae"
2912        coin_dbg_cflags="-g"
2913        ;;
2914      *-*-solaris*)
2915        coin_opt_cflags="-xO4"
2916        coin_dbg_cflags="-g"
2917        ;;
2918      *-sgi-*)
2919        coin_opt_cflags="-O -OPT:Olimit=0"
2920        coin_dbg_cflags="-g"
2921        ;;
2922    esac
2923  fi
2924
2925  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2926    coin_dbg_cflags="-g"
2927  fi
2928
2929  if test -z "$coin_opt_cflags"; then
2930    # Try if -O option works if nothing else is set
2931    CFLAGS="-O"
2932    cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938
2939int
2940main ()
2941{
2942int i=0; i++;
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext conftest$ac_exeext
2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949  (eval $ac_link) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956	 { ac_try='test -z "$ac_c_werror_flag"
2957			 || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963	 { ac_try='test -s conftest$ac_exeext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  coin_opt_cflags="-O"
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974fi
2975rm -f conftest.err conftest.$ac_objext \
2976      conftest$ac_exeext conftest.$ac_ext
2977  fi
2978
2979  # if PM doesn't want the warning messages, take them out
2980  if test x"$coin_skip_warn_cflags" = xyes; then
2981    coin_warn_cflags=
2982  fi
2983
2984  if test x${DBG_CFLAGS+set} != xset; then
2985    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2986  fi
2987  if test x${OPT_CFLAGS+set} != xset; then
2988    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2989  fi
2990
2991  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2992  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2993
2994  if test "$coin_debug_compile" = "true"; then
2995    CFLAGS="$DBG_CFLAGS"
2996  else
2997    CFLAGS="$OPT_CFLAGS"
2998  fi
2999else
3000  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3001  if test x${DBG_CFLAGS+set} != xset; then
3002    DBG_CFLAGS="$CFLAGS"
3003  fi
3004  if test x${OPT_CFLAGS+set} != xset; then
3005    OPT_CFLAGS="$CFLAGS"
3006  fi
3007fi
3008
3009# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3010if test x$COIN_PRJCT != x; then
3011  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3012fi
3013
3014# Try if CFLAGS works
3015save_CFLAGS="$CFLAGS"
3016cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022
3023int
3024main ()
3025{
3026int i=0; i++;
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext conftest$ac_exeext
3032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033  (eval $ac_link) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040	 { ac_try='test -z "$ac_c_werror_flag"
3041			 || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047	 { ac_try='test -s conftest$ac_exeext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  :
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058CFLAGS=
3059fi
3060rm -f conftest.err conftest.$ac_objext \
3061      conftest$ac_exeext conftest.$ac_ext
3062if test -z "$CFLAGS"; then
3063  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3064echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3065  CFLAGS='-O'
3066  cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076int i=0; i++;
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext conftest$ac_exeext
3082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3083  (eval $ac_link) 2>conftest.er1
3084  ac_status=$?
3085  grep -v '^ *+' conftest.er1 >conftest.err
3086  rm -f conftest.er1
3087  cat conftest.err >&5
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); } &&
3090	 { ac_try='test -z "$ac_c_werror_flag"
3091			 || test ! -s conftest.err'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; } &&
3097	 { ac_try='test -s conftest$ac_exeext'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; }; then
3103  :
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108CFLAGS=
3109fi
3110rm -f conftest.err conftest.$ac_objext \
3111      conftest$ac_exeext conftest.$ac_ext
3112  if test -z "$CFLAGS"; then
3113    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3114echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3115  fi
3116fi
3117
3118{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3119echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3120
3121
3122if test x"$MPICC" = x; then :; else
3123  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3124echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3125  CC="$MPICC"
3126fi
3127
3128# Correct the LD variable if we are using the MS or Intel-windows compiler
3129case "$CC" in
3130  clang* ) ;;
3131  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3132    LD=link
3133    ;;
3134esac
3135
3136ac_ext=c
3137ac_cpp='$CPP $CPPFLAGS'
3138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143case $build in
3144  *-cygwin* | *-mingw*)
3145     if test "$enable_msvc" = yes ; then
3146       coin_f77_comps="ifort fl32 compile_f2c"
3147     else
3148       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3149     fi ;;
3150  *-*-solaris*)
3151     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3152  *-linux-gnu*)
3153     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3154  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3155 esac
3156
3157
3158
3159
3160
3161ac_ext=f
3162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3165
3166
3167
3168
3169
3170
3171coin_has_f77=yes
3172
3173save_fflags="$FFLAGS"
3174
3175# We delete the cached value, since the test might not have been
3176# performed with our choice of compilers earlier
3177$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3178
3179# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3180# coin_f77_comps to see if there's a program that matches one of the names.
3181# If there's no such program, F77 = unavailable. If we match the name,
3182# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3183# compiler.
3184# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3185
3186
3187{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3188echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3189if test -n "$ac_tool_prefix"; then
3190  for ac_prog in $coin_f77_comps
3191  do
3192    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_prog_F77+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if test -n "$F77"; then
3200  ac_cv_prog_F77="$F77" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for ac_exec_ext in '' $ac_executable_extensions; do
3208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216fi
3217fi
3218F77=$ac_cv_prog_F77
3219if test -n "$F77"; then
3220  echo "$as_me:$LINENO: result: $F77" >&5
3221echo "${ECHO_T}$F77" >&6
3222else
3223  echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226
3227    test -n "$F77" && break
3228  done
3229fi
3230if test -z "$F77"; then
3231  ac_ct_F77=$F77
3232  for ac_prog in $coin_f77_comps
3233do
3234  # Extract the first word of "$ac_prog", so it can be a program name with args.
3235set dummy $ac_prog; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  if test -n "$ac_ct_F77"; then
3242  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for ac_exec_ext in '' $ac_executable_extensions; do
3250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_ac_ct_F77="$ac_prog"
3252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256done
3257
3258fi
3259fi
3260ac_ct_F77=$ac_cv_prog_ac_ct_F77
3261if test -n "$ac_ct_F77"; then
3262  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3263echo "${ECHO_T}$ac_ct_F77" >&6
3264else
3265  echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
3268
3269  test -n "$ac_ct_F77" && break
3270done
3271test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3272
3273  F77=$ac_ct_F77
3274fi
3275
3276
3277if test "$F77" != "unavailable" ; then
3278  ac_ext=f
3279ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3280ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3282if test -n "$ac_tool_prefix"; then
3283  for ac_prog in $coin_f77_comps
3284  do
3285    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287echo "$as_me:$LINENO: checking for $ac_word" >&5
3288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289if test "${ac_cv_prog_F77+set}" = set; then
3290  echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292  if test -n "$F77"; then
3293  ac_cv_prog_F77="$F77" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300  for ac_exec_ext in '' $ac_executable_extensions; do
3301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307done
3308
3309fi
3310fi
3311F77=$ac_cv_prog_F77
3312if test -n "$F77"; then
3313  echo "$as_me:$LINENO: result: $F77" >&5
3314echo "${ECHO_T}$F77" >&6
3315else
3316  echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318fi
3319
3320    test -n "$F77" && break
3321  done
3322fi
3323if test -z "$F77"; then
3324  ac_ct_F77=$F77
3325  for ac_prog in $coin_f77_comps
3326do
3327  # Extract the first word of "$ac_prog", so it can be a program name with args.
3328set dummy $ac_prog; ac_word=$2
3329echo "$as_me:$LINENO: checking for $ac_word" >&5
3330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3332  echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334  if test -n "$ac_ct_F77"; then
3335  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342  for ac_exec_ext in '' $ac_executable_extensions; do
3343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_ac_ct_F77="$ac_prog"
3345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349done
3350
3351fi
3352fi
3353ac_ct_F77=$ac_cv_prog_ac_ct_F77
3354if test -n "$ac_ct_F77"; then
3355  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3356echo "${ECHO_T}$ac_ct_F77" >&6
3357else
3358  echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360fi
3361
3362  test -n "$ac_ct_F77" && break
3363done
3364
3365  F77=$ac_ct_F77
3366fi
3367
3368
3369# Provide some information about the compiler.
3370echo "$as_me:3370:" \
3371     "checking for Fortran 77 compiler version" >&5
3372ac_compiler=`set X $ac_compile; echo $2`
3373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374  (eval $ac_compiler --version </dev/null >&5) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379  (eval $ac_compiler -v </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384  (eval $ac_compiler -V </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388rm -f a.out
3389
3390# If we don't use `.F' as extension, the preprocessor is not run on the
3391# input file.  (Note that this only needs to work for GNU compilers.)
3392ac_save_ext=$ac_ext
3393ac_ext=F
3394echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3395echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3396if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3397  echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399  cat >conftest.$ac_ext <<_ACEOF
3400      program main
3401#ifndef __GNUC__
3402       choke me
3403#endif
3404
3405      end
3406_ACEOF
3407rm -f conftest.$ac_objext
3408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3409  (eval $ac_compile) 2>conftest.er1
3410  ac_status=$?
3411  grep -v '^ *+' conftest.er1 >conftest.err
3412  rm -f conftest.er1
3413  cat conftest.err >&5
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); } &&
3416	 { ac_try='test -z "$ac_f77_werror_flag"
3417			 || test ! -s conftest.err'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; } &&
3423	 { ac_try='test -s conftest.$ac_objext'
3424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425  (eval $ac_try) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }; }; then
3429  ac_compiler_gnu=yes
3430else
3431  echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434ac_compiler_gnu=no
3435fi
3436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3438
3439fi
3440echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3441echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3442ac_ext=$ac_save_ext
3443ac_test_FFLAGS=${FFLAGS+set}
3444ac_save_FFLAGS=$FFLAGS
3445FFLAGS=
3446echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3447echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3448if test "${ac_cv_prog_f77_g+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  FFLAGS=-g
3452cat >conftest.$ac_ext <<_ACEOF
3453      program main
3454
3455      end
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466	 { ac_try='test -z "$ac_f77_werror_flag"
3467			 || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473	 { ac_try='test -s conftest.$ac_objext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  ac_cv_prog_f77_g=yes
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484ac_cv_prog_f77_g=no
3485fi
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3490echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3491if test "$ac_test_FFLAGS" = set; then
3492  FFLAGS=$ac_save_FFLAGS
3493elif test $ac_cv_prog_f77_g = yes; then
3494  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3495    FFLAGS="-g -O2"
3496  else
3497    FFLAGS="-g"
3498  fi
3499else
3500  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3501    FFLAGS="-O2"
3502  else
3503    FFLAGS=
3504  fi
3505fi
3506
3507G77=`test $ac_compiler_gnu = yes && echo yes`
3508ac_ext=f
3509ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3510ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3512
3513else
3514  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3515echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3516fi
3517
3518FFLAGS="$save_fflags"
3519
3520# Check if a project specific FFLAGS variable has been set
3521if test x$COIN_PRJCT != x; then
3522  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3523  if test x$coin_tmp = xset; then
3524    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3525  fi
3526fi
3527
3528if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3529
3530  coin_add_fflags=
3531  coin_opt_fflags=
3532  coin_dbg_fflags=
3533  coin_warn_fflags=
3534
3535  if test "$G77" = "yes"; then
3536    coin_opt_fflags="-O3"
3537    coin_add_fflags="-pipe"
3538    coin_dbg_fflags="-g -O0"
3539  else
3540    case $build in
3541      *-cygwin* | *-mingw*)
3542        case $F77 in
3543          ifort* | */ifort* | IFORT* | */IFORT* )
3544            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3545              coin_opt_fflags='-MD -O3'
3546              coin_dbg_fflags='-MDd -debug'
3547            else
3548              coin_opt_fflags='-MT -O3'
3549              coin_dbg_fflags='-MTd -debug'
3550            fi
3551            coin_add_fflags='-fpp -nologo'
3552          ;;
3553          compile_f2c*)
3554            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3555              coin_opt_fflags='-MD -O2'
3556              coin_dbg_fflags='-MDd'
3557            else
3558              coin_opt_fflags='-MT -O2'
3559              coin_dbg_fflags='-MTd'
3560            fi
3561            coin_add_fflags='-nologo -wd4996'
3562          ;;
3563        esac
3564        ;;
3565      *-linux-*)
3566        case $F77 in
3567          ifc* | */ifc* | ifort* | */ifort*)
3568            coin_opt_fflags="-O3 -ip"
3569            coin_add_fflags="-cm -w90 -w95"
3570            coin_dbg_fflags="-g -CA -CB -CS"
3571            # Check if -i_dynamic is necessary (for new glibc library)
3572            FFLAGS=
3573            cat >conftest.$ac_ext <<_ACEOF
3574      program main
3575      write(*,*) 'Hello world'
3576      end
3577_ACEOF
3578rm -f conftest.$ac_objext conftest$ac_exeext
3579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580  (eval $ac_link) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } &&
3587	 { ac_try='test -z "$ac_f77_werror_flag"
3588			 || test ! -s conftest.err'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; } &&
3594	 { ac_try='test -s conftest$ac_exeext'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; }; then
3600  :
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605coin_add_fflags="-i_dynamic $coin_add_fflags"
3606fi
3607rm -f conftest.err conftest.$ac_objext \
3608      conftest$ac_exeext conftest.$ac_ext
3609            ;;
3610          pgf77* | */pgf77* | pgf90* | */pgf90*)
3611            coin_opt_fflags="-fast"
3612            coin_add_fflags="-Kieee -pc 64"
3613            coin_dbg_fflags="-g"
3614          ;;
3615        esac
3616        ;;
3617      *-ibm-*)
3618        case "$F77" in
3619          xlf* | */xlf* | mpxlf* | */mpxlf* )
3620            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3621            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3622            coin_dbg_fflags="-g -C"
3623            ;;
3624        esac
3625        ;;
3626      *-hp-*)
3627        coin_opt_fflags="+O3"
3628        coin_add_fflags="+U77"
3629        coin_dbg_fflags="-C -g"
3630        ;;
3631      *-*-solaris*)
3632        coin_opt_fflags="-O4"
3633        coin_dbg_fflags="-g"
3634        ;;
3635      *-sgi-*)
3636        coin_opt_fflags="-O5 -OPT:Olimit=0"
3637        coin_dbg_fflags="-g"
3638        ;;
3639    esac
3640  fi
3641
3642  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3643    coin_dbg_fflags="-g"
3644  fi
3645
3646  if test -z "$coin_opt_fflags"; then
3647    # Try if -O option works if nothing else is set
3648    FFLAGS=-O
3649    cat >conftest.$ac_ext <<_ACEOF
3650      program main
3651      integer i
3652      end
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656  (eval $ac_link) 2>conftest.er1
3657  ac_status=$?
3658  grep -v '^ *+' conftest.er1 >conftest.err
3659  rm -f conftest.er1
3660  cat conftest.err >&5
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); } &&
3663	 { ac_try='test -z "$ac_f77_werror_flag"
3664			 || test ! -s conftest.err'
3665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666  (eval $ac_try) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; } &&
3670	 { ac_try='test -s conftest$ac_exeext'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; }; then
3676  coin_opt_fflags="-O"
3677else
3678  echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext \
3683      conftest$ac_exeext conftest.$ac_ext
3684  fi
3685
3686  # if PM doesn't want the warning messages, take them out
3687  if test x"$coin_skip_warn_fflags" = xyes; then
3688    coin_warn_fflags=
3689  fi
3690
3691  if test x${DBG_FFLAGS+set} != xset; then
3692    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3693  fi
3694  if test x${OPT_FFLAGS+set} != xset; then
3695    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3696  fi
3697
3698  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3699  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3700
3701  if test "$coin_debug_compile" = "true"; then
3702    FFLAGS="$DBG_FFLAGS"
3703  else
3704    FFLAGS="$OPT_FFLAGS"
3705  fi
3706else
3707  FFLAGS="$FFLAGS $ADD_FFLAGS"
3708  if test x${DBG_FFLAGS+set} != xset; then
3709    DBG_FFLAGS="$FFLAGS"
3710  fi
3711  if test x${OPT_FFLAGS+set} != xset; then
3712    OPT_FFLAGS="$FFLAGS"
3713  fi
3714fi
3715
3716# Try if FFLAGS works
3717if test "$F77" != "unavailable" ; then
3718  cat >conftest.$ac_ext <<_ACEOF
3719      program main
3720      integer i
3721      end
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725  (eval $ac_link) 2>conftest.er1
3726  ac_status=$?
3727  grep -v '^ *+' conftest.er1 >conftest.err
3728  rm -f conftest.er1
3729  cat conftest.err >&5
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); } &&
3732	 { ac_try='test -z "$ac_f77_werror_flag"
3733			 || test ! -s conftest.err'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; } &&
3739	 { ac_try='test -s conftest$ac_exeext'
3740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741  (eval $ac_try) 2>&5
3742  ac_status=$?
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); }; }; then
3745  :
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750FFLAGS=
3751fi
3752rm -f conftest.err conftest.$ac_objext \
3753      conftest$ac_exeext conftest.$ac_ext
3754  if test -z "$FFLAGS"; then
3755    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3756echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3757    FFLAGS='-O'
3758    cat >conftest.$ac_ext <<_ACEOF
3759      program main
3760      integer i
3761      end
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765  (eval $ac_link) 2>conftest.er1
3766  ac_status=$?
3767  grep -v '^ *+' conftest.er1 >conftest.err
3768  rm -f conftest.er1
3769  cat conftest.err >&5
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); } &&
3772	 { ac_try='test -z "$ac_f77_werror_flag"
3773			 || test ! -s conftest.err'
3774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775  (eval $ac_try) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); }; } &&
3779	 { ac_try='test -s conftest$ac_exeext'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; }; then
3785  :
3786else
3787  echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790FFLAGS=
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793      conftest$ac_exeext conftest.$ac_ext
3794    if test -z "$FFLAGS"; then
3795      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3796echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3797    fi
3798  fi
3799fi
3800
3801{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3802echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3803
3804
3805if test x"$MPIF77" = x; then :; else
3806  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3807echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3808  F77="$MPIF77"
3809fi
3810
3811# correct the LD variable if we use the intel fortran compiler in windows
3812case $build in
3813  *-cygwin* | *-mingw*)
3814    case "$F77" in
3815      ifort* | */ifort* | IFORT* | */IFORT*)
3816        LD=link
3817      ;;
3818    esac
3819  ;;
3820esac
3821
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828
3829
3830# Get the linker flags (FLIBS) that are required for linking against this blas library
3831
3832# get FLIBS
3833ac_ext=f
3834ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3835ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3837echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3838echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3839if test "${ac_cv_prog_f77_v+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  cat >conftest.$ac_ext <<_ACEOF
3843      program main
3844
3845      end
3846_ACEOF
3847rm -f conftest.$ac_objext
3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849  (eval $ac_compile) 2>conftest.er1
3850  ac_status=$?
3851  grep -v '^ *+' conftest.er1 >conftest.err
3852  rm -f conftest.er1
3853  cat conftest.err >&5
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } &&
3856	 { ac_try='test -z "$ac_f77_werror_flag"
3857			 || test ! -s conftest.err'
3858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859  (eval $ac_try) 2>&5
3860  ac_status=$?
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); }; } &&
3863	 { ac_try='test -s conftest.$ac_objext'
3864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865  (eval $ac_try) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; }; then
3869  ac_cv_prog_f77_v=
3870# Try some options frequently used verbose output
3871for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3872  cat >conftest.$ac_ext <<_ACEOF
3873      program main
3874
3875      end
3876_ACEOF
3877
3878# Compile and link our simple test program by passing a flag (argument
3879# 1 to this macro) to the Fortran compiler in order to get
3880# "verbose" output that we can then parse for the Fortran linker
3881# flags.
3882ac_save_FFLAGS=$FFLAGS
3883FFLAGS="$FFLAGS $ac_verb"
3884(eval echo $as_me:3884: \"$ac_link\") >&5
3885ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3886echo "$ac_f77_v_output" >&5
3887FFLAGS=$ac_save_FFLAGS
3888
3889rm -f conftest*
3890
3891# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3892# /foo, /bar, and /baz are search directories for the Fortran linker.
3893# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3894ac_f77_v_output="`echo $ac_f77_v_output |
3895	grep 'LPATH is:' |
3896	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3897
3898case $ac_f77_v_output in
3899  # If we are using xlf then replace all the commas with spaces.
3900  *xlfentry*)
3901    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3902
3903  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3904  # $LIBS confuse us, and the libraries appear later in the output anyway).
3905  *mGLOB_options_string*)
3906    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3907
3908  # If we are using Cray Fortran then delete quotes.
3909  # Use "\"" instead of '"' for font-lock-mode.
3910  # FIXME: a more general fix for quoted arguments with spaces?
3911  *cft90*)
3912    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3913esac
3914
3915
3916  # look for -l* and *.a constructs in the output
3917  for ac_arg in $ac_f77_v_output; do
3918     case $ac_arg in
3919        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3920          ac_cv_prog_f77_v=$ac_verb
3921          break 2 ;;
3922     esac
3923  done
3924done
3925if test -z "$ac_cv_prog_f77_v"; then
3926   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3927echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3928fi
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3934echo "$as_me: WARNING: compilation failed" >&2;}
3935fi
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937
3938fi
3939echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3940echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3941echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3942echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3943if test "${ac_cv_f77_libs+set}" = set; then
3944  echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946  if test "x$FLIBS" != "x"; then
3947  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3948else
3949
3950cat >conftest.$ac_ext <<_ACEOF
3951      program main
3952
3953      end
3954_ACEOF
3955
3956# Compile and link our simple test program by passing a flag (argument
3957# 1 to this macro) to the Fortran compiler in order to get
3958# "verbose" output that we can then parse for the Fortran linker
3959# flags.
3960ac_save_FFLAGS=$FFLAGS
3961FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3962(eval echo $as_me:3962: \"$ac_link\") >&5
3963ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3964echo "$ac_f77_v_output" >&5
3965FFLAGS=$ac_save_FFLAGS
3966
3967rm -f conftest*
3968
3969# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3970# /foo, /bar, and /baz are search directories for the Fortran linker.
3971# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3972ac_f77_v_output="`echo $ac_f77_v_output |
3973	grep 'LPATH is:' |
3974	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3975
3976case $ac_f77_v_output in
3977  # If we are using xlf then replace all the commas with spaces.
3978  *xlfentry*)
3979    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3980
3981  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3982  # $LIBS confuse us, and the libraries appear later in the output anyway).
3983  *mGLOB_options_string*)
3984    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3985
3986  # If we are using Cray Fortran then delete quotes.
3987  # Use "\"" instead of '"' for font-lock-mode.
3988  # FIXME: a more general fix for quoted arguments with spaces?
3989  *cft90*)
3990    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3991esac
3992
3993
3994
3995ac_cv_f77_libs=
3996
3997# Save positional arguments (if any)
3998ac_save_positional="$@"
3999
4000set X $ac_f77_v_output
4001while test $# != 1; do
4002  shift
4003  ac_arg=$1
4004  case $ac_arg in
4005        [\\/]*.a | ?:[\\/]*.a)
4006            ac_exists=false
4007  for ac_i in $ac_cv_f77_libs; do
4008    if test x"$ac_arg" = x"$ac_i"; then
4009      ac_exists=true
4010      break
4011    fi
4012  done
4013
4014  if test x"$ac_exists" = xtrue; then
4015  :
4016else
4017  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4018fi
4019
4020          ;;
4021        -bI:*)
4022            ac_exists=false
4023  for ac_i in $ac_cv_f77_libs; do
4024    if test x"$ac_arg" = x"$ac_i"; then
4025      ac_exists=true
4026      break
4027    fi
4028  done
4029
4030  if test x"$ac_exists" = xtrue; then
4031  :
4032else
4033  if test "$ac_compiler_gnu" = yes; then
4034  for ac_link_opt in $ac_arg; do
4035    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4036  done
4037else
4038  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4039fi
4040fi
4041
4042          ;;
4043          # Ignore these flags.
4044        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4045          ;;
4046        -lkernel32)
4047          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4048          ;;
4049        -[LRuY])
4050          # These flags, when seen by themselves, take an argument.
4051          # We remove the space between option and argument and re-iterate
4052          # unless we find an empty arg or a new option (starting with -)
4053	  case $2 in
4054	     "" | -*);;
4055	     *)
4056		ac_arg="$ac_arg$2"
4057		shift; shift
4058		set X $ac_arg "$@"
4059		;;
4060	  esac
4061          ;;
4062        -YP,*)
4063          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4064              ac_exists=false
4065  for ac_i in $ac_cv_f77_libs; do
4066    if test x"$ac_j" = x"$ac_i"; then
4067      ac_exists=true
4068      break
4069    fi
4070  done
4071
4072  if test x"$ac_exists" = xtrue; then
4073  :
4074else
4075  ac_arg="$ac_arg $ac_j"
4076                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4077fi
4078
4079          done
4080          ;;
4081        -[lLR]*)
4082            ac_exists=false
4083  for ac_i in $ac_cv_f77_libs; do
4084    if test x"$ac_arg" = x"$ac_i"; then
4085      ac_exists=true
4086      break
4087    fi
4088  done
4089
4090  if test x"$ac_exists" = xtrue; then
4091  :
4092else
4093  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4094fi
4095
4096          ;;
4097          # Ignore everything else.
4098  esac
4099done
4100# restore positional arguments
4101set X $ac_save_positional; shift
4102
4103# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4104# then we insist that the "run path" must be an absolute path (i.e. it
4105# must begin with a "/").
4106case `(uname -sr) 2>/dev/null` in
4107   "SunOS 5"*)
4108      ac_ld_run_path=`echo $ac_f77_v_output |
4109                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4110      test "x$ac_ld_run_path" != x &&
4111        if test "$ac_compiler_gnu" = yes; then
4112  for ac_link_opt in $ac_ld_run_path; do
4113    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4114  done
4115else
4116  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4117fi
4118      ;;
4119esac
4120fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4121
4122fi
4123echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4124echo "${ECHO_T}$ac_cv_f77_libs" >&6
4125FLIBS="$ac_cv_f77_libs"
4126
4127
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134orig_FLIBS="$FLIBS"
4135
4136# If FLIBS has been set by the user, we just restore its value here
4137if test x"$save_FLIBS" != x; then
4138  FLIBS="$save_FLIBS"
4139else
4140  # This is to correct a missing exclusion in autoconf 2.59
4141  if test x"$FLIBS" != x; then
4142    my_flibs=
4143    for flag in $FLIBS; do
4144      case $flag in
4145        -lcrt*.o) ;;
4146        -lcygwin) ;;
4147        -lgcc*)   ;;
4148               *) my_flibs="$my_flibs $flag" ;;
4149      esac
4150    done
4151    FLIBS="$my_flibs"
4152  fi
4153
4154  case $build in
4155  # The following is a fix to define FLIBS for ifort on Windows
4156  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4157  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4158  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4159  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4160  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4161     *-cygwin* | *-mingw*)
4162       case "$F77" in
4163#         ifort* | */ifort* | IFORT* | */IFORT*)
4164#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4165#           if "$coin_debug_compile" = true ; then
4166#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4167#           else
4168#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4169#           fi
4170#           ;;
4171         compile_f2c*)
4172           FLIBS=`$F77 -FLIBS` ;;
4173       esac;;
4174     *-hp-*)
4175         FLIBS="$FLIBS -lm";;
4176     *-ibm-*)
4177         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4178     *-linux-*)
4179       case "$F77" in
4180         pgf77* | */pgf77* | pgf90* | */pgf90*)
4181# ask linker to go through the archives multiple times
4182# (the Fortran compiler seems to do that automatically...)
4183           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4184       esac
4185  esac
4186  ac_cv_f77_libs="$FLIBS"
4187fi
4188
4189if test "x$orig_FLIBS" != "x$FLIBS" ; then
4190  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4191echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4192fi
4193
4194ac_ext=f
4195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4198
4199echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4200echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4201if test "${ac_cv_f77_dummy_main+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  ac_f77_dm_save_LIBS=$LIBS
4205 LIBS="$LIBS $FLIBS"
4206 ac_fortran_dm_var=F77_DUMMY_MAIN
4207 ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 # First, try linking without a dummy main:
4214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h.  */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h.  */
4220
4221#ifdef F77_DUMMY_MAIN
4222
4223#  ifdef __cplusplus
4224     extern "C"
4225#  endif
4226   int F77_DUMMY_MAIN() { return 1; }
4227
4228#endif
4229int
4230main ()
4231{
4232
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext conftest$ac_exeext
4238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239  (eval $ac_link) 2>conftest.er1
4240  ac_status=$?
4241  grep -v '^ *+' conftest.er1 >conftest.err
4242  rm -f conftest.er1
4243  cat conftest.err >&5
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); } &&
4246	 { ac_try='test -z "$ac_c_werror_flag"
4247			 || test ! -s conftest.err'
4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249  (eval $ac_try) 2>&5
4250  ac_status=$?
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); }; } &&
4253	 { ac_try='test -s conftest$ac_exeext'
4254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255  (eval $ac_try) 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  ac_cv_fortran_dummy_main=none
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264ac_cv_fortran_dummy_main=unknown
4265fi
4266rm -f conftest.err conftest.$ac_objext \
4267      conftest$ac_exeext conftest.$ac_ext
4268
4269 if test $ac_cv_fortran_dummy_main = unknown; then
4270   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4271     cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277#define $ac_fortran_dm_var $ac_func
4278#ifdef F77_DUMMY_MAIN
4279
4280#  ifdef __cplusplus
4281     extern "C"
4282#  endif
4283   int F77_DUMMY_MAIN() { return 1; }
4284
4285#endif
4286int
4287main ()
4288{
4289
4290  ;
4291  return 0;
4292}
4293_ACEOF
4294rm -f conftest.$ac_objext conftest$ac_exeext
4295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296  (eval $ac_link) 2>conftest.er1
4297  ac_status=$?
4298  grep -v '^ *+' conftest.er1 >conftest.err
4299  rm -f conftest.er1
4300  cat conftest.err >&5
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); } &&
4303	 { ac_try='test -z "$ac_c_werror_flag"
4304			 || test ! -s conftest.err'
4305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306  (eval $ac_try) 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); }; } &&
4310	 { ac_try='test -s conftest$ac_exeext'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; }; then
4316  ac_cv_fortran_dummy_main=$ac_func; break
4317else
4318  echo "$as_me: failed program was:" >&5
4319sed 's/^/| /' conftest.$ac_ext >&5
4320
4321fi
4322rm -f conftest.err conftest.$ac_objext \
4323      conftest$ac_exeext conftest.$ac_ext
4324   done
4325 fi
4326 ac_ext=f
4327ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4328ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4330 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4331 rm -f conftest*
4332 LIBS=$ac_f77_dm_save_LIBS
4333
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4336echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4337F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4338if test "$F77_DUMMY_MAIN" != unknown; then
4339  if test $F77_DUMMY_MAIN != none; then
4340
4341cat >>confdefs.h <<_ACEOF
4342#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4343_ACEOF
4344
4345  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4346
4347cat >>confdefs.h <<\_ACEOF
4348#define FC_DUMMY_MAIN_EQ_F77 1
4349_ACEOF
4350
4351  fi
4352fi
4353else
4354  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4355See \`config.log' for more details." >&5
4356echo "$as_me: error: linking to Fortran libraries from C fails
4357See \`config.log' for more details." >&2;}
4358   { (exit 1); exit 1; }; }
4359fi
4360
4361
4362ac_ext=f
4363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4366
4367ac_ext=f
4368ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4369ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4371echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4372echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4373if test "${ac_cv_f77_mangling+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  cat >conftest.$ac_ext <<_ACEOF
4377      subroutine foobar()
4378      return
4379      end
4380      subroutine foo_bar()
4381      return
4382      end
4383_ACEOF
4384rm -f conftest.$ac_objext
4385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386  (eval $ac_compile) 2>conftest.er1
4387  ac_status=$?
4388  grep -v '^ *+' conftest.er1 >conftest.err
4389  rm -f conftest.er1
4390  cat conftest.err >&5
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); } &&
4393	 { ac_try='test -z "$ac_f77_werror_flag"
4394			 || test ! -s conftest.err'
4395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396  (eval $ac_try) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; } &&
4400	 { ac_try='test -s conftest.$ac_objext'
4401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; }; then
4406  mv conftest.$ac_objext cfortran_test.$ac_objext
4407
4408  ac_save_LIBS=$LIBS
4409  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4410
4411  ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416  ac_success=no
4417  for ac_foobar in foobar FOOBAR; do
4418    for ac_underscore in "" "_"; do
4419      ac_func="$ac_foobar$ac_underscore"
4420      cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426
4427/* Override any gcc2 internal prototype to avoid an error.  */
4428#ifdef __cplusplus
4429extern "C"
4430#endif
4431/* We use char because int might match the return type of a gcc2
4432   builtin and then its argument prototype would still apply.  */
4433char $ac_func ();
4434#ifdef F77_DUMMY_MAIN
4435
4436#  ifdef __cplusplus
4437     extern "C"
4438#  endif
4439   int F77_DUMMY_MAIN() { return 1; }
4440
4441#endif
4442int
4443main ()
4444{
4445$ac_func ();
4446  ;
4447  return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext conftest$ac_exeext
4451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4452  (eval $ac_link) 2>conftest.er1
4453  ac_status=$?
4454  grep -v '^ *+' conftest.er1 >conftest.err
4455  rm -f conftest.er1
4456  cat conftest.err >&5
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); } &&
4459	 { ac_try='test -z "$ac_c_werror_flag"
4460			 || test ! -s conftest.err'
4461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462  (eval $ac_try) 2>&5
4463  ac_status=$?
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); }; } &&
4466	 { ac_try='test -s conftest$ac_exeext'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; }; then
4472  ac_success=yes; break 2
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477fi
4478rm -f conftest.err conftest.$ac_objext \
4479      conftest$ac_exeext conftest.$ac_ext
4480    done
4481  done
4482  ac_ext=f
4483ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4484ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4486
4487  if test "$ac_success" = "yes"; then
4488     case $ac_foobar in
4489	foobar)
4490	   ac_case=lower
4491	   ac_foo_bar=foo_bar
4492	   ;;
4493	FOOBAR)
4494	   ac_case=upper
4495	   ac_foo_bar=FOO_BAR
4496	   ;;
4497     esac
4498
4499     ac_ext=c
4500ac_cpp='$CPP $CPPFLAGS'
4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504     ac_success_extra=no
4505     for ac_extra in "" "_"; do
4506	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4507	cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513
4514/* Override any gcc2 internal prototype to avoid an error.  */
4515#ifdef __cplusplus
4516extern "C"
4517#endif
4518/* We use char because int might match the return type of a gcc2
4519   builtin and then its argument prototype would still apply.  */
4520char $ac_func ();
4521#ifdef F77_DUMMY_MAIN
4522
4523#  ifdef __cplusplus
4524     extern "C"
4525#  endif
4526   int F77_DUMMY_MAIN() { return 1; }
4527
4528#endif
4529int
4530main ()
4531{
4532$ac_func ();
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537rm -f conftest.$ac_objext conftest$ac_exeext
4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539  (eval $ac_link) 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } &&
4546	 { ac_try='test -z "$ac_c_werror_flag"
4547			 || test ! -s conftest.err'
4548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549  (eval $ac_try) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; } &&
4553	 { ac_try='test -s conftest$ac_exeext'
4554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555  (eval $ac_try) 2>&5
4556  ac_status=$?
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); }; }; then
4559  ac_success_extra=yes; break
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564fi
4565rm -f conftest.err conftest.$ac_objext \
4566      conftest$ac_exeext conftest.$ac_ext
4567     done
4568     ac_ext=f
4569ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4570ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4572
4573     if test "$ac_success_extra" = "yes"; then
4574	ac_cv_f77_mangling="$ac_case case"
4575        if test -z "$ac_underscore"; then
4576           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4577	else
4578           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4579        fi
4580        if test -z "$ac_extra"; then
4581           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4582	else
4583           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4584        fi
4585      else
4586	ac_cv_f77_mangling="unknown"
4587      fi
4588  else
4589     ac_cv_f77_mangling="unknown"
4590  fi
4591
4592  LIBS=$ac_save_LIBS
4593  rm -f cfortran_test* conftest*
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4599See \`config.log' for more details." >&5
4600echo "$as_me: error: cannot compile a simple Fortran program
4601See \`config.log' for more details." >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606fi
4607echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4608echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4609
4610ac_ext=f
4611ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4612ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4614
4615
4616ac_ext=f
4617ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4618ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4620
4621ac_ext=f
4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4625
4626
4627case $ac_cv_f77_mangling in
4628  "lower case, no underscore, no extra underscore")
4629          cat >>confdefs.h <<\_ACEOF
4630#define F77_FUNC(name,NAME) name
4631_ACEOF
4632
4633          cat >>confdefs.h <<\_ACEOF
4634#define F77_FUNC_(name,NAME) name
4635_ACEOF
4636 ;;
4637  "lower case, no underscore, extra underscore")
4638          cat >>confdefs.h <<\_ACEOF
4639#define F77_FUNC(name,NAME) name
4640_ACEOF
4641
4642          cat >>confdefs.h <<\_ACEOF
4643#define F77_FUNC_(name,NAME) name ## _
4644_ACEOF
4645 ;;
4646  "lower case, underscore, no extra underscore")
4647          cat >>confdefs.h <<\_ACEOF
4648#define F77_FUNC(name,NAME) name ## _
4649_ACEOF
4650
4651          cat >>confdefs.h <<\_ACEOF
4652#define F77_FUNC_(name,NAME) name ## _
4653_ACEOF
4654 ;;
4655  "lower case, underscore, extra underscore")
4656          cat >>confdefs.h <<\_ACEOF
4657#define F77_FUNC(name,NAME) name ## _
4658_ACEOF
4659
4660          cat >>confdefs.h <<\_ACEOF
4661#define F77_FUNC_(name,NAME) name ## __
4662_ACEOF
4663 ;;
4664  "upper case, no underscore, no extra underscore")
4665          cat >>confdefs.h <<\_ACEOF
4666#define F77_FUNC(name,NAME) NAME
4667_ACEOF
4668
4669          cat >>confdefs.h <<\_ACEOF
4670#define F77_FUNC_(name,NAME) NAME
4671_ACEOF
4672 ;;
4673  "upper case, no underscore, extra underscore")
4674          cat >>confdefs.h <<\_ACEOF
4675#define F77_FUNC(name,NAME) NAME
4676_ACEOF
4677
4678          cat >>confdefs.h <<\_ACEOF
4679#define F77_FUNC_(name,NAME) NAME ## _
4680_ACEOF
4681 ;;
4682  "upper case, underscore, no extra underscore")
4683          cat >>confdefs.h <<\_ACEOF
4684#define F77_FUNC(name,NAME) NAME ## _
4685_ACEOF
4686
4687          cat >>confdefs.h <<\_ACEOF
4688#define F77_FUNC_(name,NAME) NAME ## _
4689_ACEOF
4690 ;;
4691  "upper case, underscore, extra underscore")
4692          cat >>confdefs.h <<\_ACEOF
4693#define F77_FUNC(name,NAME) NAME ## _
4694_ACEOF
4695
4696          cat >>confdefs.h <<\_ACEOF
4697#define F77_FUNC_(name,NAME) NAME ## __
4698_ACEOF
4699 ;;
4700  *)
4701          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4702echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4703          ;;
4704esac
4705
4706ac_ext=f
4707ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4708ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4710
4711ac_ext=c
4712ac_cpp='$CPP $CPPFLAGS'
4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717
4718
4719
4720# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4721BLAS_PCLIBS="$FLIBS"
4722
4723
4724# Check if pkg-config is available (to setup addlibs file)
4725
4726
4727# Check whether --enable-pkg-config or --disable-pkg-config was given.
4728if test "${enable_pkg_config+set}" = set; then
4729  enableval="$enable_pkg_config"
4730  use_pkgconfig="$enableval"
4731else
4732  if test x$coin_cc_is_cl = xtrue; then
4733     use_pkgconfig=no
4734   else
4735     use_pkgconfig=yes
4736   fi
4737fi;
4738
4739if test $use_pkgconfig = yes ; then
4740  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4741    if test -n "$ac_tool_prefix"; then
4742  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4743set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4744echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  if test -n "$PKG_CONFIG"; then
4750  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757  for ac_exec_ext in '' $ac_executable_extensions; do
4758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764done
4765
4766fi
4767fi
4768PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4769if test -n "$PKG_CONFIG"; then
4770  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4771echo "${ECHO_T}$PKG_CONFIG" >&6
4772else
4773  echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777fi
4778if test -z "$ac_cv_prog_PKG_CONFIG"; then
4779  ac_ct_PKG_CONFIG=$PKG_CONFIG
4780  # Extract the first word of "pkg-config", so it can be a program name with args.
4781set dummy pkg-config; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787  if test -n "$ac_ct_PKG_CONFIG"; then
4788  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795  for ac_exec_ext in '' $ac_executable_extensions; do
4796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802done
4803
4804fi
4805fi
4806ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4807if test -n "$ac_ct_PKG_CONFIG"; then
4808  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4809echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4810else
4811  echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813fi
4814
4815  PKG_CONFIG=$ac_ct_PKG_CONFIG
4816else
4817  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4818fi
4819
4820  fi
4821  if test -n "$PKG_CONFIG"; then
4822    _pkg_min_version=0.16.0
4823    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4824echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4825    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4826      echo "$as_me:$LINENO: result: yes" >&5
4827echo "${ECHO_T}yes" >&6
4828    else
4829      echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6
4831      PKG_CONFIG=""
4832    fi
4833  fi
4834
4835  # check if pkg-config supports the short-errors flag
4836  if test -n "$PKG_CONFIG" && \
4837    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4838    pkg_short_errors=" --short-errors "
4839  else
4840    pkg_short_errors=""
4841  fi
4842fi
4843
4844
4845
4846if test -n "$PKG_CONFIG"; then
4847  COIN_HAS_PKGCONFIG_TRUE=
4848  COIN_HAS_PKGCONFIG_FALSE='#'
4849else
4850  COIN_HAS_PKGCONFIG_TRUE='#'
4851  COIN_HAS_PKGCONFIG_FALSE=
4852fi
4853
4854
4855
4856# assemble pkg-config search path for installed projects
4857COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4858
4859# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4860# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4861# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4862if test "x${prefix}" = xNONE ; then
4863  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4864else
4865  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4866fi
4867
4868
4869# Check whether --with-coin-instdir or --without-coin-instdir was given.
4870if test "${with_coin_instdir+set}" = set; then
4871  withval="$with_coin_instdir"
4872  if test -d "$withval"; then : ; else
4873     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4874echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4875   { (exit 1); exit 1; }; }
4876   fi
4877   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4878
4879fi;
4880
4881
4882
4883# assemble additional pkg-config search paths for uninstalled projects
4884if test x$coin_projectdir = xyes ; then
4885  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4886  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4887  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4888  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4889  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4890  if test -f ../coin_subdirs.txt ; then
4891    for i in `cat ../coin_subdirs.txt` ; do
4892      if test -d ../$i ; then
4893        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4894      fi
4895      if test -d ../$i/pkgconfig ; then
4896        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4897      fi
4898    done
4899  fi
4900
4901  if test -f ../../coin_subdirs.txt ; then
4902    for i in `cat ../../coin_subdirs.txt` ; do
4903      if test -d ../../$i ; then
4904        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4905      fi
4906      if test -d ../../$i/pkgconfig ; then
4907        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4908      fi
4909    done
4910  fi
4911
4912
4913fi
4914
4915if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4916  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
4917echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
4918fi
4919
4920
4921
4922# Initialize automake
4923{
4924
4925
4926
4927# START
4928
4929coin_disable_shared=no
4930# Test if force_shared has been set
4931if test "x" = xforce_shared; then
4932  if test x$enable_shared = xno; then
4933    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4934echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4935   { (exit 1); exit 1; }; }
4936  fi
4937  enable_shared=yes;
4938else
4939  case $build in
4940    *-cygwin* | *-mingw*)
4941      coin_disable_shared=yes
4942      if test x"$enable_shared" = xyes; then
4943        case "$CC" in
4944          clang* )
4945            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4946echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4947            ;;
4948          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4949            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4950echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4951            ;;
4952          *gcc*)
4953            if test x"$enable_dependency_linking" = xyes; then
4954              coin_disable_shared=no
4955            else
4956              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4957echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4958            fi
4959            ;;
4960          *)
4961            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4962echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4963            ;;
4964        esac
4965      fi
4966    ;;
4967    *-aix*)
4968      coin_disable_shared=yes
4969      platform=AIX
4970      if test x"$enable_shared" = xyes; then
4971        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4972echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4973      fi
4974    ;;
4975  esac
4976fi
4977if test x"$coin_disable_shared" = xyes; then
4978  if test x"$enable_shared" = xyes; then
4979    :
4980  else
4981    # we don't disable shared, because it was not selected anyway
4982    coin_disable_shared=no
4983  fi
4984  enable_shared=no
4985fi
4986# By default, we only want the shared objects to be compiled
4987# Check whether --enable-static or --disable-static was given.
4988if test "${enable_static+set}" = set; then
4989  enableval="$enable_static"
4990  p=${PACKAGE-default}
4991    case $enableval in
4992    yes) enable_static=yes ;;
4993    no) enable_static=no ;;
4994    *)
4995     enable_static=no
4996      # Look at the argument we got.  We use all the common list separators.
4997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4998      for pkg in $enableval; do
4999	IFS="$lt_save_ifs"
5000	if test "X$pkg" = "X$p"; then
5001	  enable_static=yes
5002	fi
5003      done
5004      IFS="$lt_save_ifs"
5005      ;;
5006    esac
5007else
5008  enable_static=no
5009fi;
5010
5011
5012
5013
5014# Initialize automake
5015echo "$as_me:$LINENO: checking for egrep" >&5
5016echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5017if test "${ac_cv_prog_egrep+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5021    then ac_cv_prog_egrep='grep -E'
5022    else ac_cv_prog_egrep='egrep'
5023    fi
5024fi
5025echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5026echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5027 EGREP=$ac_cv_prog_egrep
5028
5029
5030echo "$as_me:$LINENO: checking whether ln -s works" >&5
5031echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5032LN_S=$as_ln_s
5033if test "$LN_S" = "ln -s"; then
5034  echo "$as_me:$LINENO: result: yes" >&5
5035echo "${ECHO_T}yes" >&6
5036else
5037  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5038echo "${ECHO_T}no, using $LN_S" >&6
5039fi
5040
5041am__api_version="1.9"
5042# Find a good install program.  We prefer a C program (faster),
5043# so one script is as good as another.  But avoid the broken or
5044# incompatible versions:
5045# SysV /etc/install, /usr/sbin/install
5046# SunOS /usr/etc/install
5047# IRIX /sbin/install
5048# AIX /bin/install
5049# AmigaOS /C/install, which installs bootblocks on floppy discs
5050# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5051# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5052# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5053# OS/2's system install, which has a completely different semantic
5054# ./install, which can be erroneously created by make from ./install.sh.
5055echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5056echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5057if test -z "$INSTALL"; then
5058if test "${ac_cv_path_install+set}" = set; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  test -z "$as_dir" && as_dir=.
5066  # Account for people who put trailing slashes in PATH elements.
5067case $as_dir/ in
5068  ./ | .// | /cC/* | \
5069  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5070  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5071  /usr/ucb/* ) ;;
5072  *)
5073    # OSF1 and SCO ODT 3.0 have their own names for install.
5074    # Don't use installbsd from OSF since it installs stuff as root
5075    # by default.
5076    for ac_prog in ginstall scoinst install; do
5077      for ac_exec_ext in '' $ac_executable_extensions; do
5078	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5079	  if test $ac_prog = install &&
5080	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5081	    # AIX install.  It has an incompatible calling convention.
5082	    :
5083	  elif test $ac_prog = install &&
5084	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085	    # program-specific install script used by HP pwplus--don't use.
5086	    :
5087	  else
5088	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5089	    break 3
5090	  fi
5091	fi
5092      done
5093    done
5094    ;;
5095esac
5096done
5097
5098
5099fi
5100  if test "${ac_cv_path_install+set}" = set; then
5101    INSTALL=$ac_cv_path_install
5102  else
5103    # As a last resort, use the slow shell script.  We don't cache a
5104    # path for INSTALL within a source directory, because that will
5105    # break other packages using the cache if that directory is
5106    # removed, or if the path is relative.
5107    INSTALL=$ac_install_sh
5108  fi
5109fi
5110echo "$as_me:$LINENO: result: $INSTALL" >&5
5111echo "${ECHO_T}$INSTALL" >&6
5112
5113# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5114# It thinks the first close brace ends the variable substitution.
5115test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5116
5117test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5118
5119test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5120
5121echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5122echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5123# Just in case
5124sleep 1
5125echo timestamp > conftest.file
5126# Do `set' in a subshell so we don't clobber the current shell's
5127# arguments.  Must try -L first in case configure is actually a
5128# symlink; some systems play weird games with the mod time of symlinks
5129# (eg FreeBSD returns the mod time of the symlink's containing
5130# directory).
5131if (
5132   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5133   if test "$*" = "X"; then
5134      # -L didn't work.
5135      set X `ls -t $srcdir/configure conftest.file`
5136   fi
5137   rm -f conftest.file
5138   if test "$*" != "X $srcdir/configure conftest.file" \
5139      && test "$*" != "X conftest.file $srcdir/configure"; then
5140
5141      # If neither matched, then we have a broken ls.  This can happen
5142      # if, for instance, CONFIG_SHELL is bash and it inherits a
5143      # broken ls alias from the environment.  This has actually
5144      # happened.  Such a system could not be considered "sane".
5145      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5146alias in your environment" >&5
5147echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5148alias in your environment" >&2;}
5149   { (exit 1); exit 1; }; }
5150   fi
5151
5152   test "$2" = conftest.file
5153   )
5154then
5155   # Ok.
5156   :
5157else
5158   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5159Check your system clock" >&5
5160echo "$as_me: error: newly created file is older than distributed files!
5161Check your system clock" >&2;}
5162   { (exit 1); exit 1; }; }
5163fi
5164echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166test "$program_prefix" != NONE &&
5167  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5168# Use a double $ so make ignores it.
5169test "$program_suffix" != NONE &&
5170  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5171# Double any \ or $.  echo might interpret backslashes.
5172# By default was `s,x,x', remove it if useless.
5173cat <<\_ACEOF >conftest.sed
5174s/[\\$]/&&/g;s/;s,x,x,$//
5175_ACEOF
5176program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5177rm conftest.sed
5178
5179# expand $ac_aux_dir to an absolute path
5180am_aux_dir=`cd $ac_aux_dir && pwd`
5181
5182test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5183# Use eval to expand $SHELL
5184if eval "$MISSING --run true"; then
5185  am_missing_run="$MISSING --run "
5186else
5187  am_missing_run=
5188  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5189echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5190fi
5191
5192if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5193  # We used to keeping the `.' as first argument, in order to
5194  # allow $(mkdir_p) to be used without argument.  As in
5195  #   $(mkdir_p) $(somedir)
5196  # where $(somedir) is conditionally defined.  However this is wrong
5197  # for two reasons:
5198  #  1. if the package is installed by a user who cannot write `.'
5199  #     make install will fail,
5200  #  2. the above comment should most certainly read
5201  #     $(mkdir_p) $(DESTDIR)$(somedir)
5202  #     so it does not work when $(somedir) is undefined and
5203  #     $(DESTDIR) is not.
5204  #  To support the latter case, we have to write
5205  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5206  #  so the `.' trick is pointless.
5207  mkdir_p='mkdir -p --'
5208else
5209  # On NextStep and OpenStep, the `mkdir' command does not
5210  # recognize any option.  It will interpret all options as
5211  # directories to create, and then abort because `.' already
5212  # exists.
5213  for d in ./-p ./--version;
5214  do
5215    test -d $d && rmdir $d
5216  done
5217  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5218  if test -f "$ac_aux_dir/mkinstalldirs"; then
5219    mkdir_p='$(mkinstalldirs)'
5220  else
5221    mkdir_p='$(install_sh) -d'
5222  fi
5223fi
5224
5225for ac_prog in gawk mawk nawk awk
5226do
5227  # Extract the first word of "$ac_prog", so it can be a program name with args.
5228set dummy $ac_prog; ac_word=$2
5229echo "$as_me:$LINENO: checking for $ac_word" >&5
5230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231if test "${ac_cv_prog_AWK+set}" = set; then
5232  echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234  if test -n "$AWK"; then
5235  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242  for ac_exec_ext in '' $ac_executable_extensions; do
5243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244    ac_cv_prog_AWK="$ac_prog"
5245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249done
5250
5251fi
5252fi
5253AWK=$ac_cv_prog_AWK
5254if test -n "$AWK"; then
5255  echo "$as_me:$LINENO: result: $AWK" >&5
5256echo "${ECHO_T}$AWK" >&6
5257else
5258  echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260fi
5261
5262  test -n "$AWK" && break
5263done
5264
5265echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5266echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5267set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5268if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5269  echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271  cat >conftest.make <<\_ACEOF
5272all:
5273	@echo 'ac_maketemp="$(MAKE)"'
5274_ACEOF
5275# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5276eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5277if test -n "$ac_maketemp"; then
5278  eval ac_cv_prog_make_${ac_make}_set=yes
5279else
5280  eval ac_cv_prog_make_${ac_make}_set=no
5281fi
5282rm -f conftest.make
5283fi
5284if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5285  echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287  SET_MAKE=
5288else
5289  echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291  SET_MAKE="MAKE=${MAKE-make}"
5292fi
5293
5294rm -rf .tst 2>/dev/null
5295mkdir .tst 2>/dev/null
5296if test -d .tst; then
5297  am__leading_dot=.
5298else
5299  am__leading_dot=_
5300fi
5301rmdir .tst 2>/dev/null
5302
5303DEPDIR="${am__leading_dot}deps"
5304
5305          ac_config_commands="$ac_config_commands depfiles"
5306
5307
5308am_make=${MAKE-make}
5309cat > confinc << 'END'
5310am__doit:
5311	@echo done
5312.PHONY: am__doit
5313END
5314# If we don't find an include directive, just comment out the code.
5315echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5316echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5317am__include="#"
5318am__quote=
5319_am_result=none
5320# First try GNU make style include.
5321echo "include confinc" > confmf
5322# We grep out `Entering directory' and `Leaving directory'
5323# messages which can occur if `w' ends up in MAKEFLAGS.
5324# In particular we don't look at `^make:' because GNU make might
5325# be invoked under some other name (usually "gmake"), in which
5326# case it prints its new name instead of `make'.
5327if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5328   am__include=include
5329   am__quote=
5330   _am_result=GNU
5331fi
5332# Now try BSD make style include.
5333if test "$am__include" = "#"; then
5334   echo '.include "confinc"' > confmf
5335   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5336      am__include=.include
5337      am__quote="\""
5338      _am_result=BSD
5339   fi
5340fi
5341
5342
5343echo "$as_me:$LINENO: result: $_am_result" >&5
5344echo "${ECHO_T}$_am_result" >&6
5345rm -f confinc confmf
5346
5347# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5348if test "${enable_dependency_tracking+set}" = set; then
5349  enableval="$enable_dependency_tracking"
5350
5351fi;
5352if test "x$enable_dependency_tracking" != xno; then
5353  am_depcomp="$ac_aux_dir/depcomp"
5354  AMDEPBACKSLASH='\'
5355fi
5356
5357
5358if test "x$enable_dependency_tracking" != xno; then
5359  AMDEP_TRUE=
5360  AMDEP_FALSE='#'
5361else
5362  AMDEP_TRUE='#'
5363  AMDEP_FALSE=
5364fi
5365
5366
5367
5368
5369
5370
5371# AC_MSG_NOTICE([Beginning automake initialisation.])
5372# Stuff for automake
5373# test to see if srcdir already configured
5374if test "`cd $srcdir && pwd`" != "`pwd`" &&
5375   test -f $srcdir/config.status; then
5376  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5377echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5378   { (exit 1); exit 1; }; }
5379fi
5380
5381# test whether we have cygpath
5382if test -z "$CYGPATH_W"; then
5383  if (cygpath --version) >/dev/null 2>/dev/null; then
5384    CYGPATH_W='cygpath -w'
5385  else
5386    CYGPATH_W=echo
5387  fi
5388fi
5389
5390
5391# Define the identity of the package.
5392 PACKAGE='thirdpartyblas'
5393 VERSION='1.4.7'
5394
5395
5396cat >>confdefs.h <<_ACEOF
5397#define PACKAGE "$PACKAGE"
5398_ACEOF
5399
5400
5401cat >>confdefs.h <<_ACEOF
5402#define VERSION "$VERSION"
5403_ACEOF
5404
5405# Some tools Automake needs.
5406
5407ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5408
5409
5410AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5411
5412
5413AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5414
5415
5416AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5417
5418
5419MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5420
5421install_sh=${install_sh-"$am_aux_dir/install-sh"}
5422
5423# Installed binaries are usually stripped using `strip' when the user
5424# run `make install-strip'.  However `strip' might not be the right
5425# tool to use in cross-compilation environments, therefore Automake
5426# will honor the `STRIP' environment variable to overrule this program.
5427if test "$cross_compiling" != no; then
5428  if test -n "$ac_tool_prefix"; then
5429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}strip; ac_word=$2
5431echo "$as_me:$LINENO: checking for $ac_word" >&5
5432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5433if test "${ac_cv_prog_STRIP+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  if test -n "$STRIP"; then
5437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444  for ac_exec_ext in '' $ac_executable_extensions; do
5445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451done
5452
5453fi
5454fi
5455STRIP=$ac_cv_prog_STRIP
5456if test -n "$STRIP"; then
5457  echo "$as_me:$LINENO: result: $STRIP" >&5
5458echo "${ECHO_T}$STRIP" >&6
5459else
5460  echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
5462fi
5463
5464fi
5465if test -z "$ac_cv_prog_STRIP"; then
5466  ac_ct_STRIP=$STRIP
5467  # Extract the first word of "strip", so it can be a program name with args.
5468set dummy strip; ac_word=$2
5469echo "$as_me:$LINENO: checking for $ac_word" >&5
5470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  if test -n "$ac_ct_STRIP"; then
5475  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_prog_ac_ct_STRIP="strip"
5485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489done
5490
5491  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5492fi
5493fi
5494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5495if test -n "$ac_ct_STRIP"; then
5496  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5497echo "${ECHO_T}$ac_ct_STRIP" >&6
5498else
5499  echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
5502
5503  STRIP=$ac_ct_STRIP
5504else
5505  STRIP="$ac_cv_prog_STRIP"
5506fi
5507
5508fi
5509INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5510
5511# We need awk for the "check" target.  The system "awk" is bad on
5512# some platforms.
5513# Always define AMTAR for backward compatibility.
5514
5515AMTAR=${AMTAR-"${am_missing_run}tar"}
5516
5517am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5518
5519
5520
5521
5522depcc="$CC"   am_compiler_list=
5523
5524echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5525echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5526if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5530  # We make a subdir and do the tests there.  Otherwise we can end up
5531  # making bogus files that we don't know about and never remove.  For
5532  # instance it was reported that on HP-UX the gcc test will end up
5533  # making a dummy file named `D' -- because `-MD' means `put the output
5534  # in D'.
5535  mkdir conftest.dir
5536  # Copy depcomp to subdir because otherwise we won't find it if we're
5537  # using a relative directory.
5538  cp "$am_depcomp" conftest.dir
5539  cd conftest.dir
5540  # We will build objects and dependencies in a subdirectory because
5541  # it helps to detect inapplicable dependency modes.  For instance
5542  # both Tru64's cc and ICC support -MD to output dependencies as a
5543  # side effect of compilation, but ICC will put the dependencies in
5544  # the current directory while Tru64 will put them in the object
5545  # directory.
5546  mkdir sub
5547
5548  am_cv_CC_dependencies_compiler_type=none
5549  if test "$am_compiler_list" = ""; then
5550     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5551  fi
5552  for depmode in $am_compiler_list; do
5553    # Setup a source with many dependencies, because some compilers
5554    # like to wrap large dependency lists on column 80 (with \), and
5555    # we should not choose a depcomp mode which is confused by this.
5556    #
5557    # We need to recreate these files for each test, as the compiler may
5558    # overwrite some of them when testing with obscure command lines.
5559    # This happens at least with the AIX C compiler.
5560    : > sub/conftest.c
5561    for i in 1 2 3 4 5 6; do
5562      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5563      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5564      # Solaris 8's {/usr,}/bin/sh.
5565      touch sub/conftst$i.h
5566    done
5567    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5568
5569    case $depmode in
5570    nosideeffect)
5571      # after this tag, mechanisms are not by side-effect, so they'll
5572      # only be used when explicitly requested
5573      if test "x$enable_dependency_tracking" = xyes; then
5574	continue
5575      else
5576	break
5577      fi
5578      ;;
5579    none) break ;;
5580    esac
5581    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5582    # mode.  It turns out that the SunPro C++ compiler does not properly
5583    # handle `-M -o', and we need to detect this.
5584    if depmode=$depmode \
5585       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5586       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5588         >/dev/null 2>conftest.err &&
5589       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5591       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592      # icc doesn't choke on unknown options, it will just issue warnings
5593      # or remarks (even with -Werror).  So we grep stderr for any message
5594      # that says an option was ignored or not supported.
5595      # When given -MP, icc 7.0 and 7.1 complain thusly:
5596      #   icc: Command line warning: ignoring option '-M'; no argument required
5597      # The diagnosis changed in icc 8.0:
5598      #   icc: Command line remark: option '-MP' not supported
5599      if (grep 'ignoring option' conftest.err ||
5600          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601        am_cv_CC_dependencies_compiler_type=$depmode
5602        break
5603      fi
5604    fi
5605  done
5606
5607  cd ..
5608  rm -rf conftest.dir
5609else
5610  am_cv_CC_dependencies_compiler_type=none
5611fi
5612
5613fi
5614echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5615echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5617
5618
5619
5620if
5621  test "x$enable_dependency_tracking" != xno \
5622  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623  am__fastdepCC_TRUE=
5624  am__fastdepCC_FALSE='#'
5625else
5626  am__fastdepCC_TRUE='#'
5627  am__fastdepCC_FALSE=
5628fi
5629
5630
5631
5632echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5633echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5634    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5635if test "${enable_maintainer_mode+set}" = set; then
5636  enableval="$enable_maintainer_mode"
5637  USE_MAINTAINER_MODE=$enableval
5638else
5639  USE_MAINTAINER_MODE=no
5640fi;
5641  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5642echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5643
5644
5645if test $USE_MAINTAINER_MODE = yes; then
5646  MAINTAINER_MODE_TRUE=
5647  MAINTAINER_MODE_FALSE='#'
5648else
5649  MAINTAINER_MODE_TRUE='#'
5650  MAINTAINER_MODE_FALSE=
5651fi
5652
5653  MAINT=$MAINTAINER_MODE_TRUE
5654
5655
5656
5657coin_have_externals=no
5658if test "$enable_maintainer_mode" = yes; then
5659
5660  # If maintainer mode is chosen, we make sure that the correct versions
5661  # of the tools are used, and that we know where libtool.m4 is (to
5662  # recreate acinclude.m4)
5663
5664
5665  LIBTOOLM4=
5666  # Normally, $HOME
5667  AUTOTOOLS_DFLT=$HOME
5668
5669  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5670echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5671if test "${ac_cv_use_correct_autotools+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674  ac_cv_use_correct_autotools=check
5675fi
5676echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5677echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5678
5679  if test $ac_cv_use_correct_autotools = check; then
5680    ac_cv_use_correct_autotools=yes
5681    # Check if we have autoconf
5682    # Extract the first word of "autoconf", so it can be a program name with args.
5683set dummy autoconf; ac_word=$2
5684echo "$as_me:$LINENO: checking for $ac_word" >&5
5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686if test "${ac_cv_prog_have_autoconf+set}" = set; then
5687  echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689  if test -n "$have_autoconf"; then
5690  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697  for ac_exec_ext in '' $ac_executable_extensions; do
5698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_have_autoconf="yes"
5700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704done
5705
5706  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5707fi
5708fi
5709have_autoconf=$ac_cv_prog_have_autoconf
5710if test -n "$have_autoconf"; then
5711  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5712echo "${ECHO_T}$have_autoconf" >&6
5713else
5714  echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718    if test $have_autoconf = no; then
5719      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5720echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5721   { (exit 1); exit 1; }; }
5722    fi
5723
5724    # Check whether autoconf is the correct version
5725    correct_version='2.59'
5726    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5727    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5728echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5729    autoconf --version > confauto.out 2>&1
5730    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5731      echo "$as_me:$LINENO: result: yes" >&5
5732echo "${ECHO_T}yes" >&6
5733    else
5734      rm -f confauto.out
5735      echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5738echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5739   { (exit 1); exit 1; }; }
5740    fi
5741    rm -f confauto.out
5742
5743    # Check if the executable autoconf is picked up from the correct location
5744    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5745echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5746    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5747    autoconf_dir=`cd $autoconf_dir; pwd`
5748    if test x$AUTOTOOLS_DIR = x; then
5749      want_dir=$AUTOTOOLS_DFLT/bin
5750    else
5751      want_dir=$AUTOTOOLS_DIR/bin
5752    fi
5753    if test $autoconf_dir = `cd $want_dir; pwd`; then
5754      echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756    else
5757      rm -f confauto.out
5758      echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5761echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5762   { (exit 1); exit 1; }; }
5763    fi
5764
5765    # Check if we have automake
5766    # Extract the first word of "automake", so it can be a program name with args.
5767set dummy automake; ac_word=$2
5768echo "$as_me:$LINENO: checking for $ac_word" >&5
5769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770if test "${ac_cv_prog_have_automake+set}" = set; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773  if test -n "$have_automake"; then
5774  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781  for ac_exec_ext in '' $ac_executable_extensions; do
5782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783    ac_cv_prog_have_automake="yes"
5784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788done
5789
5790  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5791fi
5792fi
5793have_automake=$ac_cv_prog_have_automake
5794if test -n "$have_automake"; then
5795  echo "$as_me:$LINENO: result: $have_automake" >&5
5796echo "${ECHO_T}$have_automake" >&6
5797else
5798  echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800fi
5801
5802    if test $have_automake = no; then
5803      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5804echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5805   { (exit 1); exit 1; }; }
5806    fi
5807
5808    # Check whether automake is the correct version
5809    correct_version='1.9.6'
5810    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5811    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5812echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5813    automake --version > confauto.out 2>&1
5814    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5815      echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817    else
5818      rm -f confauto.out
5819      echo "$as_me:$LINENO: result: no" >&5
5820echo "${ECHO_T}no" >&6
5821      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5822echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5823   { (exit 1); exit 1; }; }
5824    fi
5825    rm -f confauto.out
5826
5827    # Check if the executable automake is picked up from the correct location
5828    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5829echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5830    automake_dir=`which automake | sed -e 's=/automake=='`
5831    automake_dir=`cd $automake_dir; pwd`
5832    if test x$AUTOTOOLS_DIR = x; then
5833      want_dir=$AUTOTOOLS_DFLT/bin
5834    else
5835      want_dir=$AUTOTOOLS_DIR/bin
5836    fi
5837    if test $automake_dir = `cd $want_dir; pwd`; then
5838      echo "$as_me:$LINENO: result: yes" >&5
5839echo "${ECHO_T}yes" >&6
5840    else
5841      rm -f confauto.out
5842      echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5845echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5846   { (exit 1); exit 1; }; }
5847    fi
5848
5849    # Check if this is the correct version of libtool (with escaped dots)
5850    if test x$AUTOTOOLS_DIR = x; then
5851      want_dir=$AUTOTOOLS_DFLT/share
5852    else
5853      want_dir=$AUTOTOOLS_DIR/share
5854    fi
5855    correct_version='1.5.22'
5856    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5857    if test -r $want_dir/libtool/ltmain.sh; then
5858  have_ltmain=yes
5859  :
5860else
5861  have_ltmain=no
5862  :
5863fi
5864
5865    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5866echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5867    if test $have_ltmain = yes; then
5868    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5869        echo "$as_me:$LINENO: result: yes" >&5
5870echo "${ECHO_T}yes" >&6
5871      else
5872        echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5875echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5876   { (exit 1); exit 1; }; }
5877      fi
5878    else
5879      echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5882echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5883   { (exit 1); exit 1; }; }
5884    fi
5885  fi
5886
5887  # Check if we can find the libtool file
5888  if test x$AUTOTOOLS_DIR = x; then
5889    want_dir=$AUTOTOOLS_DFLT/share
5890  else
5891    want_dir=$AUTOTOOLS_DIR/share
5892  fi
5893  if test -r $want_dir/aclocal/libtool.m4; then
5894  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5895  :
5896else
5897  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5898echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5899   { (exit 1); exit 1; }; }
5900  :
5901fi
5902
5903
5904  # Check if we have an Dependencies file
5905  if test -r $srcdir/Dependencies; then
5906    coin_have_externals=yes
5907  fi
5908  # Check if subversion is installed and understands https
5909  # Extract the first word of "svn", so it can be a program name with args.
5910set dummy svn; ac_word=$2
5911echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913if test "${ac_cv_prog_have_svn+set}" = set; then
5914  echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916  if test -n "$have_svn"; then
5917  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924  for ac_exec_ext in '' $ac_executable_extensions; do
5925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_have_svn="yes"
5927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931done
5932
5933  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5934fi
5935fi
5936have_svn=$ac_cv_prog_have_svn
5937if test -n "$have_svn"; then
5938  echo "$as_me:$LINENO: result: $have_svn" >&5
5939echo "${ECHO_T}$have_svn" >&6
5940else
5941  echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943fi
5944
5945  if test x$have_svn = xyes; then
5946    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5947echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5948if test "${ac_cv_svn_understands_https+set}" = set; then
5949  echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951  svn --version > confauto.out 2>&1
5952                    if $EGREP https confauto.out >/dev/null 2>&1; then
5953                      ac_cv_svn_understands_https=yes
5954                    else
5955                      ac_cv_svn_understands_https=no
5956                      have_svn=no
5957                      ac_cv_prog_have_svn=no
5958                    fi
5959                    rm -f confauto.out
5960fi
5961echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5962echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5963  fi
5964
5965  # Find the location of the BuildTools directory
5966  BUILDTOOLSDIR=
5967  if test -r $srcdir/BuildTools/coin.m4; then
5968    BUILDTOOLSDIR=$srcdir/BuildTools
5969  else
5970    if test -r $srcdir/../BuildTools/coin.m4; then
5971      BUILDTOOLSDIR=$srcdir/../BuildTools
5972    else
5973      if test -r $srcdir/../../BuildTools/coin.m4; then
5974        BUILDTOOLSDIR=$srcdir/../../BuildTools
5975      else
5976        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5977echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5978   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5979      fi
5980    fi
5981  fi
5982
5983
5984  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5985  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5986    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5987  fi
5988
5989  # The following variable is set to the name of the directory where
5990  # the autotool scripts are located
5991
5992  AUX_DIR=$ac_aux_dir
5993fi
5994
5995# helpful variable for the base directory of this package
5996abs_source_dir=`cd $srcdir; pwd`
5997
5998
5999# Stuff for example Makefiles
6000if test x$prefix = xNONE; then
6001  full_prefix=$ac_default_prefix
6002else
6003  full_prefix=$prefix
6004fi
6005full_prefix=`cd $full_prefix ; pwd`
6006
6007abs_lib_dir=$full_prefix/lib
6008
6009abs_include_dir=$full_prefix/include
6010
6011abs_bin_dir=$full_prefix/bin
6012
6013
6014
6015if test $coin_have_externals = yes && test x$have_svn = xyes; then
6016  HAVE_EXTERNALS_TRUE=
6017  HAVE_EXTERNALS_FALSE='#'
6018else
6019  HAVE_EXTERNALS_TRUE='#'
6020  HAVE_EXTERNALS_FALSE=
6021fi
6022
6023
6024# AC_MSG_NOTICE([End automake initialisation.])
6025
6026
6027
6028LIBTOOL=
6029if test -f ../libtool; then
6030  coin_config_dir=..
6031  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6032fi
6033if test "x$LIBTOOL" = x; then
6034  if test -f ../../libtool; then
6035    coin_config_dir=../..
6036    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6037  fi
6038fi
6039
6040if test "x$LIBTOOL" = x; then
6041# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6042  # Stuff for libtool
6043  # Check whether --enable-shared or --disable-shared was given.
6044if test "${enable_shared+set}" = set; then
6045  enableval="$enable_shared"
6046  p=${PACKAGE-default}
6047    case $enableval in
6048    yes) enable_shared=yes ;;
6049    no) enable_shared=no ;;
6050    *)
6051      enable_shared=no
6052      # Look at the argument we got.  We use all the common list separators.
6053      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6054      for pkg in $enableval; do
6055	IFS="$lt_save_ifs"
6056	if test "X$pkg" = "X$p"; then
6057	  enable_shared=yes
6058	fi
6059      done
6060      IFS="$lt_save_ifs"
6061      ;;
6062    esac
6063else
6064  enable_shared=yes
6065fi;
6066
6067# Check whether --enable-fast-install or --disable-fast-install was given.
6068if test "${enable_fast_install+set}" = set; then
6069  enableval="$enable_fast_install"
6070  p=${PACKAGE-default}
6071    case $enableval in
6072    yes) enable_fast_install=yes ;;
6073    no) enable_fast_install=no ;;
6074    *)
6075      enable_fast_install=no
6076      # Look at the argument we got.  We use all the common list separators.
6077      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6078      for pkg in $enableval; do
6079	IFS="$lt_save_ifs"
6080	if test "X$pkg" = "X$p"; then
6081	  enable_fast_install=yes
6082	fi
6083      done
6084      IFS="$lt_save_ifs"
6085      ;;
6086    esac
6087else
6088  enable_fast_install=yes
6089fi;
6090
6091echo "$as_me:$LINENO: checking host system type" >&5
6092echo $ECHO_N "checking host system type... $ECHO_C" >&6
6093if test "${ac_cv_host+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  ac_cv_host_alias=$host_alias
6097test -z "$ac_cv_host_alias" &&
6098  ac_cv_host_alias=$ac_cv_build_alias
6099ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6100  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6101echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6102   { (exit 1); exit 1; }; }
6103
6104fi
6105echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6106echo "${ECHO_T}$ac_cv_host" >&6
6107host=$ac_cv_host
6108host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6109host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6110host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6111
6112
6113echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6114echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6115if test "${lt_cv_path_SED+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  # Loop through the user's path and test for sed and gsed.
6119# Then use that list of sed's as ones to test for truncation.
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  test -z "$as_dir" && as_dir=.
6125  for lt_ac_prog in sed gsed; do
6126    for ac_exec_ext in '' $ac_executable_extensions; do
6127      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6128        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6129      fi
6130    done
6131  done
6132done
6133lt_ac_max=0
6134lt_ac_count=0
6135# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6136# along with /bin/sed that truncates output.
6137for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6138  test ! -f $lt_ac_sed && continue
6139  cat /dev/null > conftest.in
6140  lt_ac_count=0
6141  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6142  # Check for GNU sed and select it if it is found.
6143  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6144    lt_cv_path_SED=$lt_ac_sed
6145    break
6146  fi
6147  while true; do
6148    cat conftest.in conftest.in >conftest.tmp
6149    mv conftest.tmp conftest.in
6150    cp conftest.in conftest.nl
6151    echo >>conftest.nl
6152    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6153    cmp -s conftest.out conftest.nl || break
6154    # 10000 chars as input seems more than enough
6155    test $lt_ac_count -gt 10 && break
6156    lt_ac_count=`expr $lt_ac_count + 1`
6157    if test $lt_ac_count -gt $lt_ac_max; then
6158      lt_ac_max=$lt_ac_count
6159      lt_cv_path_SED=$lt_ac_sed
6160    fi
6161  done
6162done
6163
6164fi
6165
6166SED=$lt_cv_path_SED
6167echo "$as_me:$LINENO: result: $SED" >&5
6168echo "${ECHO_T}$SED" >&6
6169
6170
6171# Check whether --with-gnu-ld or --without-gnu-ld was given.
6172if test "${with_gnu_ld+set}" = set; then
6173  withval="$with_gnu_ld"
6174  test "$withval" = no || with_gnu_ld=yes
6175else
6176  with_gnu_ld=no
6177fi;
6178ac_prog=ld
6179if test "$GCC" = yes; then
6180  # Check if gcc -print-prog-name=ld gives a path.
6181  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6182echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6183  case $host in
6184  *-*-mingw*)
6185    # gcc leaves a trailing carriage return which upsets mingw
6186    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6187  *)
6188    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6189  esac
6190  case $ac_prog in
6191    # Accept absolute paths.
6192    [\\/]* | ?:[\\/]*)
6193      re_direlt='/[^/][^/]*/\.\./'
6194      # Canonicalize the pathname of ld
6195      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6196      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6197	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6198      done
6199      test -z "$LD" && LD="$ac_prog"
6200      ;;
6201  "")
6202    # If it fails, then pretend we aren't using GCC.
6203    ac_prog=ld
6204    ;;
6205  *)
6206    # If it is relative, then search for the first ld in PATH.
6207    with_gnu_ld=unknown
6208    ;;
6209  esac
6210elif test "$with_gnu_ld" = yes; then
6211  echo "$as_me:$LINENO: checking for GNU ld" >&5
6212echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6213else
6214  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6215echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6216fi
6217if test "${lt_cv_path_LD+set}" = set; then
6218  echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220  if test -z "$LD"; then
6221  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6222  for ac_dir in $PATH; do
6223    IFS="$lt_save_ifs"
6224    test -z "$ac_dir" && ac_dir=.
6225    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6226      lt_cv_path_LD="$ac_dir/$ac_prog"
6227      # Check to see if the program is GNU ld.  I'd rather use --version,
6228      # but apparently some variants of GNU ld only accept -v.
6229      # Break only if it was the GNU/non-GNU ld that we prefer.
6230      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6231      *GNU* | *'with BFD'*)
6232	test "$with_gnu_ld" != no && break
6233	;;
6234      *)
6235	test "$with_gnu_ld" != yes && break
6236	;;
6237      esac
6238    fi
6239  done
6240  IFS="$lt_save_ifs"
6241else
6242  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6243fi
6244fi
6245
6246LD="$lt_cv_path_LD"
6247if test -n "$LD"; then
6248  echo "$as_me:$LINENO: result: $LD" >&5
6249echo "${ECHO_T}$LD" >&6
6250else
6251  echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
6253fi
6254test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6255echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6256   { (exit 1); exit 1; }; }
6257echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6258echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6259if test "${lt_cv_prog_gnu_ld+set}" = set; then
6260  echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6263case `$LD -v 2>&1 </dev/null` in
6264*GNU* | *'with BFD'*)
6265  lt_cv_prog_gnu_ld=yes
6266  ;;
6267*)
6268  lt_cv_prog_gnu_ld=no
6269  ;;
6270esac
6271fi
6272echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6273echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6274with_gnu_ld=$lt_cv_prog_gnu_ld
6275
6276
6277echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6278echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6279if test "${lt_cv_ld_reload_flag+set}" = set; then
6280  echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282  lt_cv_ld_reload_flag='-r'
6283fi
6284echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6285echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6286reload_flag=$lt_cv_ld_reload_flag
6287case $reload_flag in
6288"" | " "*) ;;
6289*) reload_flag=" $reload_flag" ;;
6290esac
6291reload_cmds='$LD$reload_flag -o $output$reload_objs'
6292case $host_os in
6293  darwin*)
6294    if test "$GCC" = yes; then
6295      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6296    else
6297      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6298    fi
6299    ;;
6300esac
6301
6302echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6303echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6304if test "${lt_cv_path_NM+set}" = set; then
6305  echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307  if test -n "$NM"; then
6308  # Let the user override the test.
6309  lt_cv_path_NM="$NM"
6310else
6311  lt_nm_to_check="${ac_tool_prefix}nm"
6312  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6313    lt_nm_to_check="$lt_nm_to_check nm"
6314  fi
6315  for lt_tmp_nm in $lt_nm_to_check; do
6316    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6318      IFS="$lt_save_ifs"
6319      test -z "$ac_dir" && ac_dir=.
6320      tmp_nm="$ac_dir/$lt_tmp_nm"
6321      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6322	# Check to see if the nm accepts a BSD-compat flag.
6323	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6324	#   nm: unknown option "B" ignored
6325	# Tru64's nm complains that /dev/null is an invalid object file
6326	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6327	*/dev/null* | *'Invalid file or object type'*)
6328	  lt_cv_path_NM="$tmp_nm -B"
6329	  break
6330	  ;;
6331	*)
6332	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6333	  */dev/null*)
6334	    lt_cv_path_NM="$tmp_nm -p"
6335	    break
6336	    ;;
6337	  *)
6338	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6339	    continue # so that we can try to find one that supports BSD flags
6340	    ;;
6341	  esac
6342	  ;;
6343	esac
6344      fi
6345    done
6346    IFS="$lt_save_ifs"
6347  done
6348  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6349fi
6350fi
6351echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6352echo "${ECHO_T}$lt_cv_path_NM" >&6
6353NM="$lt_cv_path_NM"
6354
6355echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6356echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6357if test "${lt_cv_deplibs_check_method+set}" = set; then
6358  echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360  lt_cv_file_magic_cmd='$MAGIC_CMD'
6361lt_cv_file_magic_test_file=
6362lt_cv_deplibs_check_method='unknown'
6363# Need to set the preceding variable on all platforms that support
6364# interlibrary dependencies.
6365# 'none' -- dependencies not supported.
6366# `unknown' -- same as none, but documents that we really don't know.
6367# 'pass_all' -- all dependencies passed with no checks.
6368# 'test_compile' -- check by making test program.
6369# 'file_magic [[regex]]' -- check by looking for files in library path
6370# which responds to the $file_magic_cmd with a given extended regex.
6371# If you have `file' or equivalent on your system and you're not sure
6372# whether `pass_all' will *always* work, you probably want this one.
6373
6374case $host_os in
6375aix4* | aix5*)
6376  lt_cv_deplibs_check_method=pass_all
6377  ;;
6378
6379beos*)
6380  lt_cv_deplibs_check_method=pass_all
6381  ;;
6382
6383bsdi[45]*)
6384  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6385  lt_cv_file_magic_cmd='/usr/bin/file -L'
6386  lt_cv_file_magic_test_file=/shlib/libc.so
6387  ;;
6388
6389cygwin*)
6390  # func_win32_libid is a shell function defined in ltmain.sh
6391  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6392  lt_cv_file_magic_cmd='func_win32_libid'
6393  ;;
6394
6395mingw* | pw32*)
6396  # Base MSYS/MinGW do not provide the 'file' command needed by
6397  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6398  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399  lt_cv_file_magic_cmd='$OBJDUMP -f'
6400  ;;
6401
6402darwin* | rhapsody*)
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405
6406freebsd* | kfreebsd*-gnu | dragonfly*)
6407  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6408    case $host_cpu in
6409    i*86 )
6410      # Not sure whether the presence of OpenBSD here was a mistake.
6411      # Let's accept both of them until this is cleared up.
6412      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6413      lt_cv_file_magic_cmd=/usr/bin/file
6414      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6415      ;;
6416    esac
6417  else
6418    lt_cv_deplibs_check_method=pass_all
6419  fi
6420  ;;
6421
6422gnu*)
6423  lt_cv_deplibs_check_method=pass_all
6424  ;;
6425
6426hpux10.20* | hpux11*)
6427  lt_cv_file_magic_cmd=/usr/bin/file
6428  case $host_cpu in
6429  ia64*)
6430    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6431    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6432    ;;
6433  hppa*64*)
6434    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]'
6435    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6436    ;;
6437  *)
6438    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6439    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6440    ;;
6441  esac
6442  ;;
6443
6444interix3*)
6445  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6446  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6447  ;;
6448
6449irix5* | irix6* | nonstopux*)
6450  case $LD in
6451  *-32|*"-32 ") libmagic=32-bit;;
6452  *-n32|*"-n32 ") libmagic=N32;;
6453  *-64|*"-64 ") libmagic=64-bit;;
6454  *) libmagic=never-match;;
6455  esac
6456  lt_cv_deplibs_check_method=pass_all
6457  ;;
6458
6459# This must be Linux ELF.
6460linux*)
6461  lt_cv_deplibs_check_method=pass_all
6462  ;;
6463
6464netbsd*)
6465  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467  else
6468    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6469  fi
6470  ;;
6471
6472newos6*)
6473  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6474  lt_cv_file_magic_cmd=/usr/bin/file
6475  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6476  ;;
6477
6478nto-qnx*)
6479  lt_cv_deplibs_check_method=unknown
6480  ;;
6481
6482openbsd*)
6483  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6485  else
6486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6487  fi
6488  ;;
6489
6490osf3* | osf4* | osf5*)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494solaris*)
6495  lt_cv_deplibs_check_method=pass_all
6496  ;;
6497
6498sysv4 | sysv4.3*)
6499  case $host_vendor in
6500  motorola)
6501    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]'
6502    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6503    ;;
6504  ncr)
6505    lt_cv_deplibs_check_method=pass_all
6506    ;;
6507  sequent)
6508    lt_cv_file_magic_cmd='/bin/file'
6509    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6510    ;;
6511  sni)
6512    lt_cv_file_magic_cmd='/bin/file'
6513    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6514    lt_cv_file_magic_test_file=/lib/libc.so
6515    ;;
6516  siemens)
6517    lt_cv_deplibs_check_method=pass_all
6518    ;;
6519  pc)
6520    lt_cv_deplibs_check_method=pass_all
6521    ;;
6522  esac
6523  ;;
6524
6525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6526  lt_cv_deplibs_check_method=pass_all
6527  ;;
6528esac
6529
6530fi
6531echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6532echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6533file_magic_cmd=$lt_cv_file_magic_cmd
6534deplibs_check_method=$lt_cv_deplibs_check_method
6535test -z "$deplibs_check_method" && deplibs_check_method=unknown
6536
6537
6538
6539
6540# If no C compiler was specified, use CC.
6541LTCC=${LTCC-"$CC"}
6542
6543# If no C compiler flags were specified, use CFLAGS.
6544LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6545
6546# Allow CC to be a program name with arguments.
6547compiler=$CC
6548
6549# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6550if test "${enable_libtool_lock+set}" = set; then
6551  enableval="$enable_libtool_lock"
6552
6553fi;
6554test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6555
6556# Some flags need to be propagated to the compiler or linker for good
6557# libtool support.
6558case $host in
6559ia64-*-hpux*)
6560  # Find out which ABI we are using.
6561  echo 'int i;' > conftest.$ac_ext
6562  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); }; then
6567    case `/usr/bin/file conftest.$ac_objext` in
6568    *ELF-32*)
6569      HPUX_IA64_MODE="32"
6570      ;;
6571    *ELF-64*)
6572      HPUX_IA64_MODE="64"
6573      ;;
6574    esac
6575  fi
6576  rm -rf conftest*
6577  ;;
6578*-*-irix6*)
6579  # Find out which ABI we are using.
6580  echo '#line 6580 "configure"' > conftest.$ac_ext
6581  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582  (eval $ac_compile) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); }; then
6586   if test "$lt_cv_prog_gnu_ld" = yes; then
6587    case `/usr/bin/file conftest.$ac_objext` in
6588    *32-bit*)
6589      LD="${LD-ld} -melf32bsmip"
6590      ;;
6591    *N32*)
6592      LD="${LD-ld} -melf32bmipn32"
6593      ;;
6594    *64-bit*)
6595      LD="${LD-ld} -melf64bmip"
6596      ;;
6597    esac
6598   else
6599    case `/usr/bin/file conftest.$ac_objext` in
6600    *32-bit*)
6601      LD="${LD-ld} -32"
6602      ;;
6603    *N32*)
6604      LD="${LD-ld} -n32"
6605      ;;
6606    *64-bit*)
6607      LD="${LD-ld} -64"
6608      ;;
6609    esac
6610   fi
6611  fi
6612  rm -rf conftest*
6613  ;;
6614
6615x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6616  # Find out which ABI we are using.
6617  echo 'int i;' > conftest.$ac_ext
6618  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619  (eval $ac_compile) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); }; then
6623    case `/usr/bin/file conftest.o` in
6624    *32-bit*)
6625      case $host in
6626        x86_64-*linux*)
6627          LD="${LD-ld} -m elf_i386"
6628          ;;
6629        ppc64-*linux*|powerpc64-*linux*)
6630          LD="${LD-ld} -m elf32ppclinux"
6631          ;;
6632        s390x-*linux*)
6633          LD="${LD-ld} -m elf_s390"
6634          ;;
6635        sparc64-*linux*)
6636          LD="${LD-ld} -m elf32_sparc"
6637          ;;
6638      esac
6639      ;;
6640    *64-bit*)
6641      case $host in
6642        x86_64-*linux*)
6643          LD="${LD-ld} -m elf_x86_64"
6644          ;;
6645        ppc*-*linux*|powerpc*-*linux*)
6646          LD="${LD-ld} -m elf64ppc"
6647          ;;
6648        s390*-*linux*)
6649          LD="${LD-ld} -m elf64_s390"
6650          ;;
6651        sparc*-*linux*)
6652          LD="${LD-ld} -m elf64_sparc"
6653          ;;
6654      esac
6655      ;;
6656    esac
6657  fi
6658  rm -rf conftest*
6659  ;;
6660
6661*-*-sco3.2v5*)
6662  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6663  SAVE_CFLAGS="$CFLAGS"
6664  CFLAGS="$CFLAGS -belf"
6665  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6666echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6667if test "${lt_cv_cc_needs_belf+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  ac_ext=c
6671ac_cpp='$CPP $CPPFLAGS'
6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676     cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682
6683#ifdef F77_DUMMY_MAIN
6684
6685#  ifdef __cplusplus
6686     extern "C"
6687#  endif
6688   int F77_DUMMY_MAIN() { return 1; }
6689
6690#endif
6691int
6692main ()
6693{
6694
6695  ;
6696  return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
6700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701  (eval $ac_link) 2>conftest.er1
6702  ac_status=$?
6703  grep -v '^ *+' conftest.er1 >conftest.err
6704  rm -f conftest.er1
6705  cat conftest.err >&5
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); } &&
6708	 { ac_try='test -z "$ac_c_werror_flag"
6709			 || test ! -s conftest.err'
6710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711  (eval $ac_try) 2>&5
6712  ac_status=$?
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); }; } &&
6715	 { ac_try='test -s conftest$ac_exeext'
6716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717  (eval $ac_try) 2>&5
6718  ac_status=$?
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); }; }; then
6721  lt_cv_cc_needs_belf=yes
6722else
6723  echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726lt_cv_cc_needs_belf=no
6727fi
6728rm -f conftest.err conftest.$ac_objext \
6729      conftest$ac_exeext conftest.$ac_ext
6730     ac_ext=c
6731ac_cpp='$CPP $CPPFLAGS'
6732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
6736fi
6737echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6738echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6739  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6740    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6741    CFLAGS="$SAVE_CFLAGS"
6742  fi
6743  ;;
6744sparc*-*solaris*)
6745  # Find out which ABI we are using.
6746  echo 'int i;' > conftest.$ac_ext
6747  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748  (eval $ac_compile) 2>&5
6749  ac_status=$?
6750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751  (exit $ac_status); }; then
6752    case `/usr/bin/file conftest.o` in
6753    *64-bit*)
6754      case $lt_cv_prog_gnu_ld in
6755      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6756      *)    LD="${LD-ld} -64" ;;
6757      esac
6758      ;;
6759    esac
6760  fi
6761  rm -rf conftest*
6762  ;;
6763
6764
6765esac
6766
6767need_locks="$enable_libtool_lock"
6768
6769
6770ac_ext=c
6771ac_cpp='$CPP $CPPFLAGS'
6772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774ac_compiler_gnu=$ac_cv_c_compiler_gnu
6775echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6776echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6777# On Suns, sometimes $CPP names a directory.
6778if test -n "$CPP" && test -d "$CPP"; then
6779  CPP=
6780fi
6781if test -z "$CPP"; then
6782  if test "${ac_cv_prog_CPP+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785      # Double quotes because CPP needs to be expanded
6786    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6787    do
6788      ac_preproc_ok=false
6789for ac_c_preproc_warn_flag in '' yes
6790do
6791  # Use a header file that comes with gcc, so configuring glibc
6792  # with a fresh cross-compiler works.
6793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6794  # <limits.h> exists even on freestanding compilers.
6795  # On the NeXT, cc -E runs the code through the compiler's parser,
6796  # not just through cpp. "Syntax error" is here to catch this case.
6797  cat >conftest.$ac_ext <<_ACEOF
6798/* confdefs.h.  */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h.  */
6803#ifdef __STDC__
6804# include <limits.h>
6805#else
6806# include <assert.h>
6807#endif
6808		     Syntax error
6809_ACEOF
6810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6812  ac_status=$?
6813  grep -v '^ *+' conftest.er1 >conftest.err
6814  rm -f conftest.er1
6815  cat conftest.err >&5
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); } >/dev/null; then
6818  if test -s conftest.err; then
6819    ac_cpp_err=$ac_c_preproc_warn_flag
6820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6821  else
6822    ac_cpp_err=
6823  fi
6824else
6825  ac_cpp_err=yes
6826fi
6827if test -z "$ac_cpp_err"; then
6828  :
6829else
6830  echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833  # Broken: fails on valid input.
6834continue
6835fi
6836rm -f conftest.err conftest.$ac_ext
6837
6838  # OK, works on sane cases.  Now check whether non-existent headers
6839  # can be detected and how.
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846#include <ac_nonexistent.h>
6847_ACEOF
6848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6850  ac_status=$?
6851  grep -v '^ *+' conftest.er1 >conftest.err
6852  rm -f conftest.er1
6853  cat conftest.err >&5
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); } >/dev/null; then
6856  if test -s conftest.err; then
6857    ac_cpp_err=$ac_c_preproc_warn_flag
6858    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6859  else
6860    ac_cpp_err=
6861  fi
6862else
6863  ac_cpp_err=yes
6864fi
6865if test -z "$ac_cpp_err"; then
6866  # Broken: success on invalid input.
6867continue
6868else
6869  echo "$as_me: failed program was:" >&5
6870sed 's/^/| /' conftest.$ac_ext >&5
6871
6872  # Passes both tests.
6873ac_preproc_ok=:
6874break
6875fi
6876rm -f conftest.err conftest.$ac_ext
6877
6878done
6879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6880rm -f conftest.err conftest.$ac_ext
6881if $ac_preproc_ok; then
6882  break
6883fi
6884
6885    done
6886    ac_cv_prog_CPP=$CPP
6887
6888fi
6889  CPP=$ac_cv_prog_CPP
6890else
6891  ac_cv_prog_CPP=$CPP
6892fi
6893echo "$as_me:$LINENO: result: $CPP" >&5
6894echo "${ECHO_T}$CPP" >&6
6895ac_preproc_ok=false
6896for ac_c_preproc_warn_flag in '' yes
6897do
6898  # Use a header file that comes with gcc, so configuring glibc
6899  # with a fresh cross-compiler works.
6900  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901  # <limits.h> exists even on freestanding compilers.
6902  # On the NeXT, cc -E runs the code through the compiler's parser,
6903  # not just through cpp. "Syntax error" is here to catch this case.
6904  cat >conftest.$ac_ext <<_ACEOF
6905/* confdefs.h.  */
6906_ACEOF
6907cat confdefs.h >>conftest.$ac_ext
6908cat >>conftest.$ac_ext <<_ACEOF
6909/* end confdefs.h.  */
6910#ifdef __STDC__
6911# include <limits.h>
6912#else
6913# include <assert.h>
6914#endif
6915		     Syntax error
6916_ACEOF
6917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6918  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6919  ac_status=$?
6920  grep -v '^ *+' conftest.er1 >conftest.err
6921  rm -f conftest.er1
6922  cat conftest.err >&5
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); } >/dev/null; then
6925  if test -s conftest.err; then
6926    ac_cpp_err=$ac_c_preproc_warn_flag
6927    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6928  else
6929    ac_cpp_err=
6930  fi
6931else
6932  ac_cpp_err=yes
6933fi
6934if test -z "$ac_cpp_err"; then
6935  :
6936else
6937  echo "$as_me: failed program was:" >&5
6938sed 's/^/| /' conftest.$ac_ext >&5
6939
6940  # Broken: fails on valid input.
6941continue
6942fi
6943rm -f conftest.err conftest.$ac_ext
6944
6945  # OK, works on sane cases.  Now check whether non-existent headers
6946  # can be detected and how.
6947  cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h.  */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h.  */
6953#include <ac_nonexistent.h>
6954_ACEOF
6955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } >/dev/null; then
6963  if test -s conftest.err; then
6964    ac_cpp_err=$ac_c_preproc_warn_flag
6965    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6966  else
6967    ac_cpp_err=
6968  fi
6969else
6970  ac_cpp_err=yes
6971fi
6972if test -z "$ac_cpp_err"; then
6973  # Broken: success on invalid input.
6974continue
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979  # Passes both tests.
6980ac_preproc_ok=:
6981break
6982fi
6983rm -f conftest.err conftest.$ac_ext
6984
6985done
6986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6987rm -f conftest.err conftest.$ac_ext
6988if $ac_preproc_ok; then
6989  :
6990else
6991  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6992See \`config.log' for more details." >&5
6993echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6994See \`config.log' for more details." >&2;}
6995   { (exit 1); exit 1; }; }
6996fi
6997
6998ac_ext=c
6999ac_cpp='$CPP $CPPFLAGS'
7000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004
7005echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7006echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7007if test "${ac_cv_header_stdc+set}" = set; then
7008  echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010  cat >conftest.$ac_ext <<_ACEOF
7011/* confdefs.h.  */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h.  */
7016#include <stdlib.h>
7017#include <stdarg.h>
7018#include <string.h>
7019#include <float.h>
7020
7021#ifdef F77_DUMMY_MAIN
7022
7023#  ifdef __cplusplus
7024     extern "C"
7025#  endif
7026   int F77_DUMMY_MAIN() { return 1; }
7027
7028#endif
7029int
7030main ()
7031{
7032
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext
7038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039  (eval $ac_compile) 2>conftest.er1
7040  ac_status=$?
7041  grep -v '^ *+' conftest.er1 >conftest.err
7042  rm -f conftest.er1
7043  cat conftest.err >&5
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } &&
7046	 { ac_try='test -z "$ac_c_werror_flag"
7047			 || test ! -s conftest.err'
7048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049  (eval $ac_try) 2>&5
7050  ac_status=$?
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); }; } &&
7053	 { ac_try='test -s conftest.$ac_objext'
7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055  (eval $ac_try) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; }; then
7059  ac_cv_header_stdc=yes
7060else
7061  echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064ac_cv_header_stdc=no
7065fi
7066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067
7068if test $ac_cv_header_stdc = yes; then
7069  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7070  cat >conftest.$ac_ext <<_ACEOF
7071/* confdefs.h.  */
7072_ACEOF
7073cat confdefs.h >>conftest.$ac_ext
7074cat >>conftest.$ac_ext <<_ACEOF
7075/* end confdefs.h.  */
7076#include <string.h>
7077
7078_ACEOF
7079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080  $EGREP "memchr" >/dev/null 2>&1; then
7081  :
7082else
7083  ac_cv_header_stdc=no
7084fi
7085rm -f conftest*
7086
7087fi
7088
7089if test $ac_cv_header_stdc = yes; then
7090  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7091  cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h.  */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h.  */
7097#include <stdlib.h>
7098
7099_ACEOF
7100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101  $EGREP "free" >/dev/null 2>&1; then
7102  :
7103else
7104  ac_cv_header_stdc=no
7105fi
7106rm -f conftest*
7107
7108fi
7109
7110if test $ac_cv_header_stdc = yes; then
7111  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112  if test "$cross_compiling" = yes; then
7113  :
7114else
7115  cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121#include <ctype.h>
7122#if ((' ' & 0x0FF) == 0x020)
7123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125#else
7126# define ISLOWER(c) \
7127		   (('a' <= (c) && (c) <= 'i') \
7128		     || ('j' <= (c) && (c) <= 'r') \
7129		     || ('s' <= (c) && (c) <= 'z'))
7130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7131#endif
7132
7133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7134int
7135main ()
7136{
7137  int i;
7138  for (i = 0; i < 256; i++)
7139    if (XOR (islower (i), ISLOWER (i))
7140	|| toupper (i) != TOUPPER (i))
7141      exit(2);
7142  exit (0);
7143}
7144_ACEOF
7145rm -f conftest$ac_exeext
7146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147  (eval $ac_link) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; }; then
7156  :
7157else
7158  echo "$as_me: program exited with status $ac_status" >&5
7159echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162( exit $ac_status )
7163ac_cv_header_stdc=no
7164fi
7165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166fi
7167fi
7168fi
7169echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7170echo "${ECHO_T}$ac_cv_header_stdc" >&6
7171if test $ac_cv_header_stdc = yes; then
7172
7173cat >>confdefs.h <<\_ACEOF
7174#define STDC_HEADERS 1
7175_ACEOF
7176
7177fi
7178
7179# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7190		  inttypes.h stdint.h unistd.h
7191do
7192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7193echo "$as_me:$LINENO: checking for $ac_header" >&5
7194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7195if eval "test \"\${$as_ac_Header+set}\" = set"; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h.  */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h.  */
7204$ac_includes_default
7205
7206#include <$ac_header>
7207_ACEOF
7208rm -f conftest.$ac_objext
7209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210  (eval $ac_compile) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } &&
7217	 { ac_try='test -z "$ac_c_werror_flag"
7218			 || test ! -s conftest.err'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; } &&
7224	 { ac_try='test -s conftest.$ac_objext'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; }; then
7230  eval "$as_ac_Header=yes"
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235eval "$as_ac_Header=no"
7236fi
7237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238fi
7239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7241if test `eval echo '${'$as_ac_Header'}'` = yes; then
7242  cat >>confdefs.h <<_ACEOF
7243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7244_ACEOF
7245
7246fi
7247
7248done
7249
7250
7251
7252for ac_header in dlfcn.h
7253do
7254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256  echo "$as_me:$LINENO: checking for $ac_header" >&5
7257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258if eval "test \"\${$as_ac_Header+set}\" = set"; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260fi
7261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7263else
7264  # Is the header compilable?
7265echo "$as_me:$LINENO: checking $ac_header usability" >&5
7266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7267cat >conftest.$ac_ext <<_ACEOF
7268/* confdefs.h.  */
7269_ACEOF
7270cat confdefs.h >>conftest.$ac_ext
7271cat >>conftest.$ac_ext <<_ACEOF
7272/* end confdefs.h.  */
7273$ac_includes_default
7274#include <$ac_header>
7275_ACEOF
7276rm -f conftest.$ac_objext
7277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278  (eval $ac_compile) 2>conftest.er1
7279  ac_status=$?
7280  grep -v '^ *+' conftest.er1 >conftest.err
7281  rm -f conftest.er1
7282  cat conftest.err >&5
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); } &&
7285	 { ac_try='test -z "$ac_c_werror_flag"
7286			 || test ! -s conftest.err'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; } &&
7292	 { ac_try='test -s conftest.$ac_objext'
7293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294  (eval $ac_try) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; }; then
7298  ac_header_compiler=yes
7299else
7300  echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303ac_header_compiler=no
7304fi
7305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7307echo "${ECHO_T}$ac_header_compiler" >&6
7308
7309# Is the header present?
7310echo "$as_me:$LINENO: checking $ac_header presence" >&5
7311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7312cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318#include <$ac_header>
7319_ACEOF
7320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7322  ac_status=$?
7323  grep -v '^ *+' conftest.er1 >conftest.err
7324  rm -f conftest.er1
7325  cat conftest.err >&5
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); } >/dev/null; then
7328  if test -s conftest.err; then
7329    ac_cpp_err=$ac_c_preproc_warn_flag
7330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7331  else
7332    ac_cpp_err=
7333  fi
7334else
7335  ac_cpp_err=yes
7336fi
7337if test -z "$ac_cpp_err"; then
7338  ac_header_preproc=yes
7339else
7340  echo "$as_me: failed program was:" >&5
7341sed 's/^/| /' conftest.$ac_ext >&5
7342
7343  ac_header_preproc=no
7344fi
7345rm -f conftest.err conftest.$ac_ext
7346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7347echo "${ECHO_T}$ac_header_preproc" >&6
7348
7349# So?  What about this header?
7350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7351  yes:no: )
7352    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7356    ac_header_preproc=yes
7357    ;;
7358  no:yes:* )
7359    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7361    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7362echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7363    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7365    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7366echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7369    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7371    (
7372      cat <<\_ASBOX
7373## --------------------------------------------------------------- ##
7374## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7375## --------------------------------------------------------------- ##
7376_ASBOX
7377    ) |
7378      sed "s/^/$as_me: WARNING:     /" >&2
7379    ;;
7380esac
7381echo "$as_me:$LINENO: checking for $ac_header" >&5
7382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386  eval "$as_ac_Header=\$ac_header_preproc"
7387fi
7388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390
7391fi
7392if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393  cat >>confdefs.h <<_ACEOF
7394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395_ACEOF
7396
7397fi
7398
7399done
7400
7401ac_ext=cc
7402ac_cpp='$CXXCPP $CPPFLAGS'
7403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7406if test -n "$ac_tool_prefix"; then
7407  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7408  do
7409    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7411echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413if test "${ac_cv_prog_CXX+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  if test -n "$CXX"; then
7417  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424  for ac_exec_ext in '' $ac_executable_extensions; do
7425  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428    break 2
7429  fi
7430done
7431done
7432
7433fi
7434fi
7435CXX=$ac_cv_prog_CXX
7436if test -n "$CXX"; then
7437  echo "$as_me:$LINENO: result: $CXX" >&5
7438echo "${ECHO_T}$CXX" >&6
7439else
7440  echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6
7442fi
7443
7444    test -n "$CXX" && break
7445  done
7446fi
7447if test -z "$CXX"; then
7448  ac_ct_CXX=$CXX
7449  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7450do
7451  # Extract the first word of "$ac_prog", so it can be a program name with args.
7452set dummy $ac_prog; ac_word=$2
7453echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7456  echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458  if test -n "$ac_ct_CXX"; then
7459  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466  for ac_exec_ext in '' $ac_executable_extensions; do
7467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_ac_ct_CXX="$ac_prog"
7469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473done
7474
7475fi
7476fi
7477ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7478if test -n "$ac_ct_CXX"; then
7479  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7480echo "${ECHO_T}$ac_ct_CXX" >&6
7481else
7482  echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484fi
7485
7486  test -n "$ac_ct_CXX" && break
7487done
7488test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7489
7490  CXX=$ac_ct_CXX
7491fi
7492
7493
7494# Provide some information about the compiler.
7495echo "$as_me:$LINENO:" \
7496     "checking for C++ compiler version" >&5
7497ac_compiler=`set X $ac_compile; echo $2`
7498{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7499  (eval $ac_compiler --version </dev/null >&5) 2>&5
7500  ac_status=$?
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); }
7503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7504  (eval $ac_compiler -v </dev/null >&5) 2>&5
7505  ac_status=$?
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); }
7508{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7509  (eval $ac_compiler -V </dev/null >&5) 2>&5
7510  ac_status=$?
7511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); }
7513
7514echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7515echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7516if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7517  echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519  cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h.  */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h.  */
7525
7526#ifdef F77_DUMMY_MAIN
7527
7528#  ifdef __cplusplus
7529     extern "C"
7530#  endif
7531   int F77_DUMMY_MAIN() { return 1; }
7532
7533#endif
7534int
7535main ()
7536{
7537#ifndef __GNUC__
7538       choke me
7539#endif
7540
7541  ;
7542  return 0;
7543}
7544_ACEOF
7545rm -f conftest.$ac_objext
7546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547  (eval $ac_compile) 2>conftest.er1
7548  ac_status=$?
7549  grep -v '^ *+' conftest.er1 >conftest.err
7550  rm -f conftest.er1
7551  cat conftest.err >&5
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } &&
7554	 { ac_try='test -z "$ac_cxx_werror_flag"
7555			 || test ! -s conftest.err'
7556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557  (eval $ac_try) 2>&5
7558  ac_status=$?
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); }; } &&
7561	 { ac_try='test -s conftest.$ac_objext'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; }; then
7567  ac_compiler_gnu=yes
7568else
7569  echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572ac_compiler_gnu=no
7573fi
7574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7576
7577fi
7578echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7579echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7580GXX=`test $ac_compiler_gnu = yes && echo yes`
7581ac_test_CXXFLAGS=${CXXFLAGS+set}
7582ac_save_CXXFLAGS=$CXXFLAGS
7583CXXFLAGS="-g"
7584echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7585echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7586if test "${ac_cv_prog_cxx_g+set}" = set; then
7587  echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589  cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h.  */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h.  */
7595
7596#ifdef F77_DUMMY_MAIN
7597
7598#  ifdef __cplusplus
7599     extern "C"
7600#  endif
7601   int F77_DUMMY_MAIN() { return 1; }
7602
7603#endif
7604int
7605main ()
7606{
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614  (eval $ac_compile) 2>conftest.er1
7615  ac_status=$?
7616  grep -v '^ *+' conftest.er1 >conftest.err
7617  rm -f conftest.er1
7618  cat conftest.err >&5
7619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620  (exit $ac_status); } &&
7621	 { ac_try='test -z "$ac_cxx_werror_flag"
7622			 || test ! -s conftest.err'
7623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624  (eval $ac_try) 2>&5
7625  ac_status=$?
7626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627  (exit $ac_status); }; } &&
7628	 { ac_try='test -s conftest.$ac_objext'
7629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630  (eval $ac_try) 2>&5
7631  ac_status=$?
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); }; }; then
7634  ac_cv_prog_cxx_g=yes
7635else
7636  echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639ac_cv_prog_cxx_g=no
7640fi
7641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7642fi
7643echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7644echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7645if test "$ac_test_CXXFLAGS" = set; then
7646  CXXFLAGS=$ac_save_CXXFLAGS
7647elif test $ac_cv_prog_cxx_g = yes; then
7648  if test "$GXX" = yes; then
7649    CXXFLAGS="-g -O2"
7650  else
7651    CXXFLAGS="-g"
7652  fi
7653else
7654  if test "$GXX" = yes; then
7655    CXXFLAGS="-O2"
7656  else
7657    CXXFLAGS=
7658  fi
7659fi
7660for ac_declaration in \
7661   '' \
7662   'extern "C" void std::exit (int) throw (); using std::exit;' \
7663   'extern "C" void std::exit (int); using std::exit;' \
7664   'extern "C" void exit (int) throw ();' \
7665   'extern "C" void exit (int);' \
7666   'void exit (int);'
7667do
7668  cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h.  */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h.  */
7674$ac_declaration
7675#include <stdlib.h>
7676#ifdef F77_DUMMY_MAIN
7677
7678#  ifdef __cplusplus
7679     extern "C"
7680#  endif
7681   int F77_DUMMY_MAIN() { return 1; }
7682
7683#endif
7684int
7685main ()
7686{
7687exit (42);
7688  ;
7689  return 0;
7690}
7691_ACEOF
7692rm -f conftest.$ac_objext
7693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7694  (eval $ac_compile) 2>conftest.er1
7695  ac_status=$?
7696  grep -v '^ *+' conftest.er1 >conftest.err
7697  rm -f conftest.er1
7698  cat conftest.err >&5
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); } &&
7701	 { ac_try='test -z "$ac_cxx_werror_flag"
7702			 || test ! -s conftest.err'
7703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704  (eval $ac_try) 2>&5
7705  ac_status=$?
7706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707  (exit $ac_status); }; } &&
7708	 { ac_try='test -s conftest.$ac_objext'
7709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710  (eval $ac_try) 2>&5
7711  ac_status=$?
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); }; }; then
7714  :
7715else
7716  echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719continue
7720fi
7721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7722  cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h.  */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h.  */
7728$ac_declaration
7729#ifdef F77_DUMMY_MAIN
7730
7731#  ifdef __cplusplus
7732     extern "C"
7733#  endif
7734   int F77_DUMMY_MAIN() { return 1; }
7735
7736#endif
7737int
7738main ()
7739{
7740exit (42);
7741  ;
7742  return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext
7746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747  (eval $ac_compile) 2>conftest.er1
7748  ac_status=$?
7749  grep -v '^ *+' conftest.er1 >conftest.err
7750  rm -f conftest.er1
7751  cat conftest.err >&5
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } &&
7754	 { ac_try='test -z "$ac_cxx_werror_flag"
7755			 || test ! -s conftest.err'
7756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757  (eval $ac_try) 2>&5
7758  ac_status=$?
7759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760  (exit $ac_status); }; } &&
7761	 { ac_try='test -s conftest.$ac_objext'
7762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763  (eval $ac_try) 2>&5
7764  ac_status=$?
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); }; }; then
7767  break
7768else
7769  echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772fi
7773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774done
7775rm -f conftest*
7776if test -n "$ac_declaration"; then
7777  echo '#ifdef __cplusplus' >>confdefs.h
7778  echo $ac_declaration      >>confdefs.h
7779  echo '#endif'             >>confdefs.h
7780fi
7781
7782ac_ext=cc
7783ac_cpp='$CXXCPP $CPPFLAGS'
7784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7787
7788depcc="$CXX"  am_compiler_list=
7789
7790echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7791echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7792if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7793  echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7796  # We make a subdir and do the tests there.  Otherwise we can end up
7797  # making bogus files that we don't know about and never remove.  For
7798  # instance it was reported that on HP-UX the gcc test will end up
7799  # making a dummy file named `D' -- because `-MD' means `put the output
7800  # in D'.
7801  mkdir conftest.dir
7802  # Copy depcomp to subdir because otherwise we won't find it if we're
7803  # using a relative directory.
7804  cp "$am_depcomp" conftest.dir
7805  cd conftest.dir
7806  # We will build objects and dependencies in a subdirectory because
7807  # it helps to detect inapplicable dependency modes.  For instance
7808  # both Tru64's cc and ICC support -MD to output dependencies as a
7809  # side effect of compilation, but ICC will put the dependencies in
7810  # the current directory while Tru64 will put them in the object
7811  # directory.
7812  mkdir sub
7813
7814  am_cv_CXX_dependencies_compiler_type=none
7815  if test "$am_compiler_list" = ""; then
7816     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7817  fi
7818  for depmode in $am_compiler_list; do
7819    # Setup a source with many dependencies, because some compilers
7820    # like to wrap large dependency lists on column 80 (with \), and
7821    # we should not choose a depcomp mode which is confused by this.
7822    #
7823    # We need to recreate these files for each test, as the compiler may
7824    # overwrite some of them when testing with obscure command lines.
7825    # This happens at least with the AIX C compiler.
7826    : > sub/conftest.c
7827    for i in 1 2 3 4 5 6; do
7828      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7829      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7830      # Solaris 8's {/usr,}/bin/sh.
7831      touch sub/conftst$i.h
7832    done
7833    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7834
7835    case $depmode in
7836    nosideeffect)
7837      # after this tag, mechanisms are not by side-effect, so they'll
7838      # only be used when explicitly requested
7839      if test "x$enable_dependency_tracking" = xyes; then
7840	continue
7841      else
7842	break
7843      fi
7844      ;;
7845    none) break ;;
7846    esac
7847    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7848    # mode.  It turns out that the SunPro C++ compiler does not properly
7849    # handle `-M -o', and we need to detect this.
7850    if depmode=$depmode \
7851       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7852       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7853       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7854         >/dev/null 2>conftest.err &&
7855       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7856       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7857       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7858      # icc doesn't choke on unknown options, it will just issue warnings
7859      # or remarks (even with -Werror).  So we grep stderr for any message
7860      # that says an option was ignored or not supported.
7861      # When given -MP, icc 7.0 and 7.1 complain thusly:
7862      #   icc: Command line warning: ignoring option '-M'; no argument required
7863      # The diagnosis changed in icc 8.0:
7864      #   icc: Command line remark: option '-MP' not supported
7865      if (grep 'ignoring option' conftest.err ||
7866          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7867        am_cv_CXX_dependencies_compiler_type=$depmode
7868        break
7869      fi
7870    fi
7871  done
7872
7873  cd ..
7874  rm -rf conftest.dir
7875else
7876  am_cv_CXX_dependencies_compiler_type=none
7877fi
7878
7879fi
7880echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7881echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7882CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7883
7884
7885
7886if
7887  test "x$enable_dependency_tracking" != xno \
7888  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7889  am__fastdepCXX_TRUE=
7890  am__fastdepCXX_FALSE='#'
7891else
7892  am__fastdepCXX_TRUE='#'
7893  am__fastdepCXX_FALSE=
7894fi
7895
7896
7897
7898
7899if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7900    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7901    (test "X$CXX" != "Xg++"))) ; then
7902  ac_ext=cc
7903ac_cpp='$CXXCPP $CPPFLAGS'
7904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7907echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7908echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7909if test -z "$CXXCPP"; then
7910  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913      # Double quotes because CXXCPP needs to be expanded
7914    for CXXCPP in "$CXX -E" "/lib/cpp"
7915    do
7916      ac_preproc_ok=false
7917for ac_cxx_preproc_warn_flag in '' yes
7918do
7919  # Use a header file that comes with gcc, so configuring glibc
7920  # with a fresh cross-compiler works.
7921  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922  # <limits.h> exists even on freestanding compilers.
7923  # On the NeXT, cc -E runs the code through the compiler's parser,
7924  # not just through cpp. "Syntax error" is here to catch this case.
7925  cat >conftest.$ac_ext <<_ACEOF
7926/* confdefs.h.  */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h.  */
7931#ifdef __STDC__
7932# include <limits.h>
7933#else
7934# include <assert.h>
7935#endif
7936		     Syntax error
7937_ACEOF
7938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7940  ac_status=$?
7941  grep -v '^ *+' conftest.er1 >conftest.err
7942  rm -f conftest.er1
7943  cat conftest.err >&5
7944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945  (exit $ac_status); } >/dev/null; then
7946  if test -s conftest.err; then
7947    ac_cpp_err=$ac_cxx_preproc_warn_flag
7948    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7949  else
7950    ac_cpp_err=
7951  fi
7952else
7953  ac_cpp_err=yes
7954fi
7955if test -z "$ac_cpp_err"; then
7956  :
7957else
7958  echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961  # Broken: fails on valid input.
7962continue
7963fi
7964rm -f conftest.err conftest.$ac_ext
7965
7966  # OK, works on sane cases.  Now check whether non-existent headers
7967  # can be detected and how.
7968  cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h.  */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h.  */
7974#include <ac_nonexistent.h>
7975_ACEOF
7976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7978  ac_status=$?
7979  grep -v '^ *+' conftest.er1 >conftest.err
7980  rm -f conftest.er1
7981  cat conftest.err >&5
7982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983  (exit $ac_status); } >/dev/null; then
7984  if test -s conftest.err; then
7985    ac_cpp_err=$ac_cxx_preproc_warn_flag
7986    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7987  else
7988    ac_cpp_err=
7989  fi
7990else
7991  ac_cpp_err=yes
7992fi
7993if test -z "$ac_cpp_err"; then
7994  # Broken: success on invalid input.
7995continue
7996else
7997  echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000  # Passes both tests.
8001ac_preproc_ok=:
8002break
8003fi
8004rm -f conftest.err conftest.$ac_ext
8005
8006done
8007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8008rm -f conftest.err conftest.$ac_ext
8009if $ac_preproc_ok; then
8010  break
8011fi
8012
8013    done
8014    ac_cv_prog_CXXCPP=$CXXCPP
8015
8016fi
8017  CXXCPP=$ac_cv_prog_CXXCPP
8018else
8019  ac_cv_prog_CXXCPP=$CXXCPP
8020fi
8021echo "$as_me:$LINENO: result: $CXXCPP" >&5
8022echo "${ECHO_T}$CXXCPP" >&6
8023ac_preproc_ok=false
8024for ac_cxx_preproc_warn_flag in '' yes
8025do
8026  # Use a header file that comes with gcc, so configuring glibc
8027  # with a fresh cross-compiler works.
8028  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029  # <limits.h> exists even on freestanding compilers.
8030  # On the NeXT, cc -E runs the code through the compiler's parser,
8031  # not just through cpp. "Syntax error" is here to catch this case.
8032  cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h.  */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h.  */
8038#ifdef __STDC__
8039# include <limits.h>
8040#else
8041# include <assert.h>
8042#endif
8043		     Syntax error
8044_ACEOF
8045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047  ac_status=$?
8048  grep -v '^ *+' conftest.er1 >conftest.err
8049  rm -f conftest.er1
8050  cat conftest.err >&5
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); } >/dev/null; then
8053  if test -s conftest.err; then
8054    ac_cpp_err=$ac_cxx_preproc_warn_flag
8055    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8056  else
8057    ac_cpp_err=
8058  fi
8059else
8060  ac_cpp_err=yes
8061fi
8062if test -z "$ac_cpp_err"; then
8063  :
8064else
8065  echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068  # Broken: fails on valid input.
8069continue
8070fi
8071rm -f conftest.err conftest.$ac_ext
8072
8073  # OK, works on sane cases.  Now check whether non-existent headers
8074  # can be detected and how.
8075  cat >conftest.$ac_ext <<_ACEOF
8076/* confdefs.h.  */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h.  */
8081#include <ac_nonexistent.h>
8082_ACEOF
8083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8085  ac_status=$?
8086  grep -v '^ *+' conftest.er1 >conftest.err
8087  rm -f conftest.er1
8088  cat conftest.err >&5
8089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090  (exit $ac_status); } >/dev/null; then
8091  if test -s conftest.err; then
8092    ac_cpp_err=$ac_cxx_preproc_warn_flag
8093    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8094  else
8095    ac_cpp_err=
8096  fi
8097else
8098  ac_cpp_err=yes
8099fi
8100if test -z "$ac_cpp_err"; then
8101  # Broken: success on invalid input.
8102continue
8103else
8104  echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
8107  # Passes both tests.
8108ac_preproc_ok=:
8109break
8110fi
8111rm -f conftest.err conftest.$ac_ext
8112
8113done
8114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8115rm -f conftest.err conftest.$ac_ext
8116if $ac_preproc_ok; then
8117  :
8118else
8119  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8120See \`config.log' for more details." >&5
8121echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8122See \`config.log' for more details." >&2;}
8123   { (exit 1); exit 1; }; }
8124fi
8125
8126ac_ext=cc
8127ac_cpp='$CXXCPP $CPPFLAGS'
8128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8131
8132fi
8133
8134
8135
8136# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8137
8138# find the maximum length of command line arguments
8139echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8140echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8141if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8142  echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144    i=0
8145  teststring="ABCD"
8146
8147  case $build_os in
8148  msdosdjgpp*)
8149    # On DJGPP, this test can blow up pretty badly due to problems in libc
8150    # (any single argument exceeding 2000 bytes causes a buffer overrun
8151    # during glob expansion).  Even if it were fixed, the result of this
8152    # check would be larger than it should be.
8153    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8154    ;;
8155
8156  gnu*)
8157    # Under GNU Hurd, this test is not required because there is
8158    # no limit to the length of command line arguments.
8159    # Libtool will interpret -1 as no limit whatsoever
8160    lt_cv_sys_max_cmd_len=-1;
8161    ;;
8162
8163  cygwin* | mingw*)
8164    # On Win9x/ME, this test blows up -- it succeeds, but takes
8165    # about 5 minutes as the teststring grows exponentially.
8166    # Worse, since 9x/ME are not pre-emptively multitasking,
8167    # you end up with a "frozen" computer, even though with patience
8168    # the test eventually succeeds (with a max line length of 256k).
8169    # Instead, let's just punt: use the minimum linelength reported by
8170    # all of the supported platforms: 8192 (on NT/2K/XP).
8171    lt_cv_sys_max_cmd_len=8192;
8172    ;;
8173
8174  amigaos*)
8175    # On AmigaOS with pdksh, this test takes hours, literally.
8176    # So we just punt and use a minimum line length of 8192.
8177    lt_cv_sys_max_cmd_len=8192;
8178    ;;
8179
8180  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8181    # This has been around since 386BSD, at least.  Likely further.
8182    if test -x /sbin/sysctl; then
8183      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8184    elif test -x /usr/sbin/sysctl; then
8185      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8186    else
8187      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8188    fi
8189    # And add a safety zone
8190    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8191    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8192    ;;
8193
8194  interix*)
8195    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8196    lt_cv_sys_max_cmd_len=196608
8197    ;;
8198
8199  osf*)
8200    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8201    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8202    # nice to cause kernel panics so lets avoid the loop below.
8203    # First set a reasonable default.
8204    lt_cv_sys_max_cmd_len=16384
8205    #
8206    if test -x /sbin/sysconfig; then
8207      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8208        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8209      esac
8210    fi
8211    ;;
8212  sco3.2v5*)
8213    lt_cv_sys_max_cmd_len=102400
8214    ;;
8215  sysv5* | sco5v6* | sysv4.2uw2*)
8216    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8217    if test -n "$kargmax"; then
8218      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8219    else
8220      lt_cv_sys_max_cmd_len=32768
8221    fi
8222    ;;
8223  *)
8224    # If test is not a shell built-in, we'll probably end up computing a
8225    # maximum length that is only half of the actual maximum length, but
8226    # we can't tell.
8227    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8228    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8229	       = "XX$teststring") >/dev/null 2>&1 &&
8230	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8231	    lt_cv_sys_max_cmd_len=$new_result &&
8232	    test $i != 17 # 1/2 MB should be enough
8233    do
8234      i=`expr $i + 1`
8235      teststring=$teststring$teststring
8236    done
8237    teststring=
8238    # Add a significant safety factor because C++ compilers can tack on massive
8239    # amounts of additional arguments before passing them to the linker.
8240    # It appears as though 1/2 is a usable value.
8241    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8242    ;;
8243  esac
8244
8245fi
8246
8247if test -n $lt_cv_sys_max_cmd_len ; then
8248  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8249echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8250else
8251  echo "$as_me:$LINENO: result: none" >&5
8252echo "${ECHO_T}none" >&6
8253fi
8254
8255
8256
8257
8258# Check for command to grab the raw symbol name followed by C symbol from nm.
8259echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8260echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8261if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8262  echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264
8265# These are sane defaults that work on at least a few old systems.
8266# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8267
8268# Character class describing NM global symbol codes.
8269symcode='[BCDEGRST]'
8270
8271# Regexp to match symbols that can be accessed directly from C.
8272sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8273
8274# Transform an extracted symbol line into a proper C declaration
8275lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8276
8277# Transform an extracted symbol line into symbol name and symbol address
8278lt_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'"
8279
8280# Define system-specific variables.
8281case $host_os in
8282aix*)
8283  symcode='[BCDT]'
8284  ;;
8285cygwin* | mingw* | pw32*)
8286  symcode='[ABCDGISTW]'
8287  ;;
8288hpux*) # Its linker distinguishes data from code symbols
8289  if test "$host_cpu" = ia64; then
8290    symcode='[ABCDEGRST]'
8291  fi
8292  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8293  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'"
8294  ;;
8295linux*)
8296  if test "$host_cpu" = ia64; then
8297    symcode='[ABCDGIRSTW]'
8298    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8299    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'"
8300  fi
8301  ;;
8302irix* | nonstopux*)
8303  symcode='[BCDEGRST]'
8304  ;;
8305osf*)
8306  symcode='[BCDEGQRST]'
8307  ;;
8308solaris*)
8309  symcode='[BDRT]'
8310  ;;
8311sco3.2v5*)
8312  symcode='[DT]'
8313  ;;
8314sysv4.2uw2*)
8315  symcode='[DT]'
8316  ;;
8317sysv5* | sco5v6* | unixware* | OpenUNIX*)
8318  symcode='[ABDT]'
8319  ;;
8320sysv4)
8321  symcode='[DFNSTU]'
8322  ;;
8323esac
8324
8325# Handle CRLF in mingw tool chain
8326opt_cr=
8327case $build_os in
8328mingw*)
8329  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8330  ;;
8331esac
8332
8333# If we're using GNU nm, then use its standard symbol codes.
8334case `$NM -V 2>&1` in
8335*GNU* | *'with BFD'*)
8336  symcode='[ABCDGIRSTW]' ;;
8337esac
8338
8339# Try without a prefix undercore, then with it.
8340for ac_symprfx in "" "_"; do
8341
8342  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8343  symxfrm="\\1 $ac_symprfx\\2 \\2"
8344
8345  # Write the raw and C identifiers.
8346  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8347
8348  # Check to see that the pipe works correctly.
8349  pipe_works=no
8350
8351  rm -f conftest*
8352  cat > conftest.$ac_ext <<EOF
8353#ifdef __cplusplus
8354extern "C" {
8355#endif
8356char nm_test_var;
8357void nm_test_func(){}
8358#ifdef __cplusplus
8359}
8360#endif
8361int main(){nm_test_var='a';nm_test_func();return(0);}
8362EOF
8363
8364  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365  (eval $ac_compile) 2>&5
8366  ac_status=$?
8367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368  (exit $ac_status); }; then
8369    # Now try to grab the symbols.
8370    nlist=conftest.nm
8371    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8372  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); } && test -s "$nlist"; then
8376      # Try sorting and uniquifying the output.
8377      if sort "$nlist" | uniq > "$nlist"T; then
8378	mv -f "$nlist"T "$nlist"
8379      else
8380	rm -f "$nlist"T
8381      fi
8382
8383      # Make sure that we snagged all the symbols we need.
8384      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8385	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8386	  cat <<EOF > conftest.$ac_ext
8387#ifdef __cplusplus
8388extern "C" {
8389#endif
8390
8391EOF
8392	  # Now generate the symbol file.
8393	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8394
8395	  cat <<EOF >> conftest.$ac_ext
8396#if defined (__STDC__) && __STDC__
8397# define lt_ptr_t void *
8398#else
8399# define lt_ptr_t char *
8400# define const
8401#endif
8402
8403/* The mapping between symbol names and symbols. */
8404const struct {
8405  const char *name;
8406  lt_ptr_t address;
8407}
8408lt_preloaded_symbols[] =
8409{
8410EOF
8411	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8412	  cat <<\EOF >> conftest.$ac_ext
8413  {0, (lt_ptr_t) 0}
8414};
8415
8416#ifdef __cplusplus
8417}
8418#endif
8419EOF
8420	  # Now try linking the two files.
8421	  mv conftest.$ac_objext conftstm.$ac_objext
8422	  lt_save_LIBS="$LIBS"
8423	  lt_save_CFLAGS="$CFLAGS"
8424	  LIBS="conftstm.$ac_objext"
8425	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8426	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427  (eval $ac_link) 2>&5
8428  ac_status=$?
8429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8431	    pipe_works=yes
8432	  fi
8433	  LIBS="$lt_save_LIBS"
8434	  CFLAGS="$lt_save_CFLAGS"
8435	else
8436	  echo "cannot find nm_test_func in $nlist" >&5
8437	fi
8438      else
8439	echo "cannot find nm_test_var in $nlist" >&5
8440      fi
8441    else
8442      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8443    fi
8444  else
8445    echo "$progname: failed program was:" >&5
8446    cat conftest.$ac_ext >&5
8447  fi
8448  rm -f conftest* conftst*
8449
8450  # Do not use the global_symbol_pipe unless it works.
8451  if test "$pipe_works" = yes; then
8452    break
8453  else
8454    lt_cv_sys_global_symbol_pipe=
8455  fi
8456done
8457
8458fi
8459
8460if test -z "$lt_cv_sys_global_symbol_pipe"; then
8461  lt_cv_sys_global_symbol_to_cdecl=
8462fi
8463if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8464  echo "$as_me:$LINENO: result: failed" >&5
8465echo "${ECHO_T}failed" >&6
8466else
8467  echo "$as_me:$LINENO: result: ok" >&5
8468echo "${ECHO_T}ok" >&6
8469fi
8470
8471echo "$as_me:$LINENO: checking for objdir" >&5
8472echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8473if test "${lt_cv_objdir+set}" = set; then
8474  echo $ECHO_N "(cached) $ECHO_C" >&6
8475else
8476  rm -f .libs 2>/dev/null
8477mkdir .libs 2>/dev/null
8478if test -d .libs; then
8479  lt_cv_objdir=.libs
8480else
8481  # MS-DOS does not allow filenames that begin with a dot.
8482  lt_cv_objdir=_libs
8483fi
8484rmdir .libs 2>/dev/null
8485fi
8486echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8487echo "${ECHO_T}$lt_cv_objdir" >&6
8488objdir=$lt_cv_objdir
8489
8490
8491
8492
8493
8494case $host_os in
8495aix3*)
8496  # AIX sometimes has problems with the GCC collect2 program.  For some
8497  # reason, if we set the COLLECT_NAMES environment variable, the problems
8498  # vanish in a puff of smoke.
8499  if test "X${COLLECT_NAMES+set}" != Xset; then
8500    COLLECT_NAMES=
8501    export COLLECT_NAMES
8502  fi
8503  ;;
8504esac
8505
8506# Sed substitution that helps us do robust quoting.  It backslashifies
8507# metacharacters that are still active within double-quoted strings.
8508Xsed='sed -e 1s/^X//'
8509sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8510
8511# Same as above, but do not quote variable references.
8512double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8513
8514# Sed substitution to delay expansion of an escaped shell variable in a
8515# double_quote_subst'ed string.
8516delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8517
8518# Sed substitution to avoid accidental globbing in evaled expressions
8519no_glob_subst='s/\*/\\\*/g'
8520
8521# Constants:
8522rm="rm -f"
8523
8524# Global variables:
8525default_ofile=libtool
8526can_build_shared=yes
8527
8528# All known linkers require a `.a' archive for static linking (except MSVC,
8529# which needs '.lib').
8530libext=a
8531ltmain="$ac_aux_dir/ltmain.sh"
8532ofile="$default_ofile"
8533with_gnu_ld="$lt_cv_prog_gnu_ld"
8534
8535if test -n "$ac_tool_prefix"; then
8536  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8537set dummy ${ac_tool_prefix}ar; ac_word=$2
8538echo "$as_me:$LINENO: checking for $ac_word" >&5
8539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8540if test "${ac_cv_prog_AR+set}" = set; then
8541  echo $ECHO_N "(cached) $ECHO_C" >&6
8542else
8543  if test -n "$AR"; then
8544  ac_cv_prog_AR="$AR" # Let the user override the test.
8545else
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549  IFS=$as_save_IFS
8550  test -z "$as_dir" && as_dir=.
8551  for ac_exec_ext in '' $ac_executable_extensions; do
8552  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553    ac_cv_prog_AR="${ac_tool_prefix}ar"
8554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8555    break 2
8556  fi
8557done
8558done
8559
8560fi
8561fi
8562AR=$ac_cv_prog_AR
8563if test -n "$AR"; then
8564  echo "$as_me:$LINENO: result: $AR" >&5
8565echo "${ECHO_T}$AR" >&6
8566else
8567  echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569fi
8570
8571fi
8572if test -z "$ac_cv_prog_AR"; then
8573  ac_ct_AR=$AR
8574  # Extract the first word of "ar", so it can be a program name with args.
8575set dummy ar; ac_word=$2
8576echo "$as_me:$LINENO: checking for $ac_word" >&5
8577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8578if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8579  echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581  if test -n "$ac_ct_AR"; then
8582  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8583else
8584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587  IFS=$as_save_IFS
8588  test -z "$as_dir" && as_dir=.
8589  for ac_exec_ext in '' $ac_executable_extensions; do
8590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591    ac_cv_prog_ac_ct_AR="ar"
8592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593    break 2
8594  fi
8595done
8596done
8597
8598  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8599fi
8600fi
8601ac_ct_AR=$ac_cv_prog_ac_ct_AR
8602if test -n "$ac_ct_AR"; then
8603  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8604echo "${ECHO_T}$ac_ct_AR" >&6
8605else
8606  echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608fi
8609
8610  AR=$ac_ct_AR
8611else
8612  AR="$ac_cv_prog_AR"
8613fi
8614
8615if test -n "$ac_tool_prefix"; then
8616  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8617set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8618echo "$as_me:$LINENO: checking for $ac_word" >&5
8619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8620if test "${ac_cv_prog_RANLIB+set}" = set; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623  if test -n "$RANLIB"; then
8624  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8625else
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629  IFS=$as_save_IFS
8630  test -z "$as_dir" && as_dir=.
8631  for ac_exec_ext in '' $ac_executable_extensions; do
8632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635    break 2
8636  fi
8637done
8638done
8639
8640fi
8641fi
8642RANLIB=$ac_cv_prog_RANLIB
8643if test -n "$RANLIB"; then
8644  echo "$as_me:$LINENO: result: $RANLIB" >&5
8645echo "${ECHO_T}$RANLIB" >&6
8646else
8647  echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649fi
8650
8651fi
8652if test -z "$ac_cv_prog_RANLIB"; then
8653  ac_ct_RANLIB=$RANLIB
8654  # Extract the first word of "ranlib", so it can be a program name with args.
8655set dummy ranlib; ac_word=$2
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8659  echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661  if test -n "$ac_ct_RANLIB"; then
8662  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667  IFS=$as_save_IFS
8668  test -z "$as_dir" && as_dir=.
8669  for ac_exec_ext in '' $ac_executable_extensions; do
8670  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_ac_ct_RANLIB="ranlib"
8672    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676done
8677
8678  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8679fi
8680fi
8681ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8682if test -n "$ac_ct_RANLIB"; then
8683  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8684echo "${ECHO_T}$ac_ct_RANLIB" >&6
8685else
8686  echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688fi
8689
8690  RANLIB=$ac_ct_RANLIB
8691else
8692  RANLIB="$ac_cv_prog_RANLIB"
8693fi
8694
8695if test -n "$ac_tool_prefix"; then
8696  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8697set dummy ${ac_tool_prefix}strip; ac_word=$2
8698echo "$as_me:$LINENO: checking for $ac_word" >&5
8699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700if test "${ac_cv_prog_STRIP+set}" = set; then
8701  echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703  if test -n "$STRIP"; then
8704  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8705else
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709  IFS=$as_save_IFS
8710  test -z "$as_dir" && as_dir=.
8711  for ac_exec_ext in '' $ac_executable_extensions; do
8712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715    break 2
8716  fi
8717done
8718done
8719
8720fi
8721fi
8722STRIP=$ac_cv_prog_STRIP
8723if test -n "$STRIP"; then
8724  echo "$as_me:$LINENO: result: $STRIP" >&5
8725echo "${ECHO_T}$STRIP" >&6
8726else
8727  echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729fi
8730
8731fi
8732if test -z "$ac_cv_prog_STRIP"; then
8733  ac_ct_STRIP=$STRIP
8734  # Extract the first word of "strip", so it can be a program name with args.
8735set dummy strip; ac_word=$2
8736echo "$as_me:$LINENO: checking for $ac_word" >&5
8737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8738if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8739  echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741  if test -n "$ac_ct_STRIP"; then
8742  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747  IFS=$as_save_IFS
8748  test -z "$as_dir" && as_dir=.
8749  for ac_exec_ext in '' $ac_executable_extensions; do
8750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751    ac_cv_prog_ac_ct_STRIP="strip"
8752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753    break 2
8754  fi
8755done
8756done
8757
8758  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8759fi
8760fi
8761ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8762if test -n "$ac_ct_STRIP"; then
8763  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8764echo "${ECHO_T}$ac_ct_STRIP" >&6
8765else
8766  echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768fi
8769
8770  STRIP=$ac_ct_STRIP
8771else
8772  STRIP="$ac_cv_prog_STRIP"
8773fi
8774
8775
8776old_CC="$CC"
8777old_CFLAGS="$CFLAGS"
8778
8779# Set sane defaults for various variables
8780test -z "$AR" && AR=ar
8781test -z "$AR_FLAGS" && AR_FLAGS=cru
8782test -z "$AS" && AS=as
8783test -z "$CC" && CC=cc
8784test -z "$LTCC" && LTCC=$CC
8785test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8786test -z "$DLLTOOL" && DLLTOOL=dlltool
8787test -z "$LD" && LD=ld
8788test -z "$LN_S" && LN_S="ln -s"
8789test -z "$MAGIC_CMD" && MAGIC_CMD=file
8790test -z "$NM" && NM=nm
8791test -z "$SED" && SED=sed
8792test -z "$OBJDUMP" && OBJDUMP=objdump
8793test -z "$RANLIB" && RANLIB=:
8794test -z "$STRIP" && STRIP=:
8795test -z "$ac_objext" && ac_objext=o
8796
8797# Determine commands to create old-style static archives.
8798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8799old_postinstall_cmds='chmod 644 $oldlib'
8800old_postuninstall_cmds=
8801
8802if test -n "$RANLIB"; then
8803  case $host_os in
8804  openbsd*)
8805    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8806    ;;
8807  *)
8808    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8809    ;;
8810  esac
8811  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8812fi
8813
8814for cc_temp in $compiler""; do
8815  case $cc_temp in
8816    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8817    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8818    \-*) ;;
8819    *) break;;
8820  esac
8821done
8822cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8823
8824
8825# Only perform the check for file, if the check method requires it
8826case $deplibs_check_method in
8827file_magic*)
8828  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8829    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8830echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8831if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8832  echo $ECHO_N "(cached) $ECHO_C" >&6
8833else
8834  case $MAGIC_CMD in
8835[\\/*] |  ?:[\\/]*)
8836  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8837  ;;
8838*)
8839  lt_save_MAGIC_CMD="$MAGIC_CMD"
8840  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8841  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8842  for ac_dir in $ac_dummy; do
8843    IFS="$lt_save_ifs"
8844    test -z "$ac_dir" && ac_dir=.
8845    if test -f $ac_dir/${ac_tool_prefix}file; then
8846      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8847      if test -n "$file_magic_test_file"; then
8848	case $deplibs_check_method in
8849	"file_magic "*)
8850	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8851	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8852	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8853	    $EGREP "$file_magic_regex" > /dev/null; then
8854	    :
8855	  else
8856	    cat <<EOF 1>&2
8857
8858*** Warning: the command libtool uses to detect shared libraries,
8859*** $file_magic_cmd, produces output that libtool cannot recognize.
8860*** The result is that libtool may fail to recognize shared libraries
8861*** as such.  This will affect the creation of libtool libraries that
8862*** depend on shared libraries, but programs linked with such libtool
8863*** libraries will work regardless of this problem.  Nevertheless, you
8864*** may want to report the problem to your system manager and/or to
8865*** bug-libtool@gnu.org
8866
8867EOF
8868	  fi ;;
8869	esac
8870      fi
8871      break
8872    fi
8873  done
8874  IFS="$lt_save_ifs"
8875  MAGIC_CMD="$lt_save_MAGIC_CMD"
8876  ;;
8877esac
8878fi
8879
8880MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8881if test -n "$MAGIC_CMD"; then
8882  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8883echo "${ECHO_T}$MAGIC_CMD" >&6
8884else
8885  echo "$as_me:$LINENO: result: no" >&5
8886echo "${ECHO_T}no" >&6
8887fi
8888
8889if test -z "$lt_cv_path_MAGIC_CMD"; then
8890  if test -n "$ac_tool_prefix"; then
8891    echo "$as_me:$LINENO: checking for file" >&5
8892echo $ECHO_N "checking for file... $ECHO_C" >&6
8893if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8894  echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896  case $MAGIC_CMD in
8897[\\/*] |  ?:[\\/]*)
8898  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8899  ;;
8900*)
8901  lt_save_MAGIC_CMD="$MAGIC_CMD"
8902  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8903  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8904  for ac_dir in $ac_dummy; do
8905    IFS="$lt_save_ifs"
8906    test -z "$ac_dir" && ac_dir=.
8907    if test -f $ac_dir/file; then
8908      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8909      if test -n "$file_magic_test_file"; then
8910	case $deplibs_check_method in
8911	"file_magic "*)
8912	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8913	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8915	    $EGREP "$file_magic_regex" > /dev/null; then
8916	    :
8917	  else
8918	    cat <<EOF 1>&2
8919
8920*** Warning: the command libtool uses to detect shared libraries,
8921*** $file_magic_cmd, produces output that libtool cannot recognize.
8922*** The result is that libtool may fail to recognize shared libraries
8923*** as such.  This will affect the creation of libtool libraries that
8924*** depend on shared libraries, but programs linked with such libtool
8925*** libraries will work regardless of this problem.  Nevertheless, you
8926*** may want to report the problem to your system manager and/or to
8927*** bug-libtool@gnu.org
8928
8929EOF
8930	  fi ;;
8931	esac
8932      fi
8933      break
8934    fi
8935  done
8936  IFS="$lt_save_ifs"
8937  MAGIC_CMD="$lt_save_MAGIC_CMD"
8938  ;;
8939esac
8940fi
8941
8942MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8943if test -n "$MAGIC_CMD"; then
8944  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8945echo "${ECHO_T}$MAGIC_CMD" >&6
8946else
8947  echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
8949fi
8950
8951  else
8952    MAGIC_CMD=:
8953  fi
8954fi
8955
8956  fi
8957  ;;
8958esac
8959
8960enable_dlopen=no
8961enable_win32_dll=no
8962
8963# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8964if test "${enable_libtool_lock+set}" = set; then
8965  enableval="$enable_libtool_lock"
8966
8967fi;
8968test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8969
8970
8971# Check whether --with-pic or --without-pic was given.
8972if test "${with_pic+set}" = set; then
8973  withval="$with_pic"
8974  pic_mode="$withval"
8975else
8976  pic_mode=default
8977fi;
8978test -z "$pic_mode" && pic_mode=default
8979
8980# Use C for the default configuration in the libtool script
8981tagname=
8982lt_save_CC="$CC"
8983ac_ext=c
8984ac_cpp='$CPP $CPPFLAGS'
8985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8987ac_compiler_gnu=$ac_cv_c_compiler_gnu
8988
8989
8990# Source file extension for C test sources.
8991ac_ext=c
8992
8993# Object file extension for compiled C test sources.
8994objext=o
8995objext=$objext
8996
8997# Code to be used in simple compile tests
8998lt_simple_compile_test_code="int some_variable = 0;\n"
8999
9000# Code to be used in simple link tests
9001lt_simple_link_test_code='int main(){return(0);}\n'
9002
9003
9004# If no C compiler was specified, use CC.
9005LTCC=${LTCC-"$CC"}
9006
9007# If no C compiler flags were specified, use CFLAGS.
9008LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9009
9010# Allow CC to be a program name with arguments.
9011compiler=$CC
9012
9013
9014# save warnings/boilerplate of simple test code
9015ac_outfile=conftest.$ac_objext
9016printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9017eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9018_lt_compiler_boilerplate=`cat conftest.err`
9019$rm conftest*
9020
9021ac_outfile=conftest.$ac_objext
9022printf "$lt_simple_link_test_code" >conftest.$ac_ext
9023eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9024_lt_linker_boilerplate=`cat conftest.err`
9025$rm conftest*
9026
9027
9028## CAVEAT EMPTOR:
9029## There is no encapsulation within the following macros, do not change
9030## the running order or otherwise move them around unless you know exactly
9031## what you are doing...
9032
9033lt_prog_compiler_no_builtin_flag=
9034
9035if test "$GCC" = yes; then
9036  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9037
9038
9039echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9040echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9041if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9042  echo $ECHO_N "(cached) $ECHO_C" >&6
9043else
9044  lt_cv_prog_compiler_rtti_exceptions=no
9045  ac_outfile=conftest.$ac_objext
9046   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9047   lt_compiler_flag="-fno-rtti -fno-exceptions"
9048   # Insert the option either (1) after the last *FLAGS variable, or
9049   # (2) before a word containing "conftest.", or (3) at the end.
9050   # Note that $ac_compile itself does not contain backslashes and begins
9051   # with a dollar sign (not a hyphen), so the echo should work correctly.
9052   # The option is referenced via a variable to avoid confusing sed.
9053   lt_compile=`echo "$ac_compile" | $SED \
9054   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9056   -e 's:$: $lt_compiler_flag:'`
9057   (eval echo "\"\$as_me:9057: $lt_compile\"" >&5)
9058   (eval "$lt_compile" 2>conftest.err)
9059   ac_status=$?
9060   cat conftest.err >&5
9061   echo "$as_me:9061: \$? = $ac_status" >&5
9062   if (exit $ac_status) && test -s "$ac_outfile"; then
9063     # The compiler can only warn and ignore the option if not recognized
9064     # So say no if there are warnings other than the usual output.
9065     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9066     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9067     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9068       lt_cv_prog_compiler_rtti_exceptions=yes
9069     fi
9070   fi
9071   $rm conftest*
9072
9073fi
9074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9075echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9076
9077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9078    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9079else
9080    :
9081fi
9082
9083fi
9084
9085lt_prog_compiler_wl=
9086lt_prog_compiler_pic=
9087lt_prog_compiler_static=
9088
9089echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9090echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9091
9092  if test "$GCC" = yes; then
9093    lt_prog_compiler_wl='-Wl,'
9094    lt_prog_compiler_static='-static'
9095
9096    case $host_os in
9097      aix*)
9098      # All AIX code is PIC.
9099      if test "$host_cpu" = ia64; then
9100	# AIX 5 now supports IA64 processor
9101	lt_prog_compiler_static='-Bstatic'
9102      fi
9103      ;;
9104
9105    amigaos*)
9106      # FIXME: we need at least 68020 code to build shared libraries, but
9107      # adding the `-m68020' flag to GCC prevents building anything better,
9108      # like `-m68040'.
9109      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9110      ;;
9111
9112    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9113      # PIC is the default for these OSes.
9114      ;;
9115
9116    mingw* | pw32* | os2*)
9117      # This hack is so that the source file can tell whether it is being
9118      # built for inclusion in a dll (and should export symbols for example).
9119      lt_prog_compiler_pic='-DDLL_EXPORT'
9120      ;;
9121
9122    darwin* | rhapsody*)
9123      # PIC is the default on this platform
9124      # Common symbols not allowed in MH_DYLIB files
9125      lt_prog_compiler_pic='-fno-common'
9126      ;;
9127
9128    interix3*)
9129      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9130      # Instead, we relocate shared libraries at runtime.
9131      ;;
9132
9133    msdosdjgpp*)
9134      # Just because we use GCC doesn't mean we suddenly get shared libraries
9135      # on systems that don't support them.
9136      lt_prog_compiler_can_build_shared=no
9137      enable_shared=no
9138      ;;
9139
9140    sysv4*MP*)
9141      if test -d /usr/nec; then
9142	lt_prog_compiler_pic=-Kconform_pic
9143      fi
9144      ;;
9145
9146    hpux*)
9147      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9148      # not for PA HP-UX.
9149      case $host_cpu in
9150      hppa*64*|ia64*)
9151	# +Z the default
9152	;;
9153      *)
9154	lt_prog_compiler_pic='-fPIC'
9155	;;
9156      esac
9157      ;;
9158
9159    *)
9160      lt_prog_compiler_pic='-fPIC'
9161      ;;
9162    esac
9163  else
9164    # PORTME Check for flag to pass linker flags through the system compiler.
9165    case $host_os in
9166    aix*)
9167      lt_prog_compiler_wl='-Wl,'
9168      if test "$host_cpu" = ia64; then
9169	# AIX 5 now supports IA64 processor
9170	lt_prog_compiler_static='-Bstatic'
9171      else
9172	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9173      fi
9174      ;;
9175      darwin*)
9176        # PIC is the default on this platform
9177        # Common symbols not allowed in MH_DYLIB files
9178       case $cc_basename in
9179         xlc*)
9180         lt_prog_compiler_pic='-qnocommon'
9181         lt_prog_compiler_wl='-Wl,'
9182         ;;
9183       esac
9184       ;;
9185
9186    mingw* | pw32* | os2*)
9187      # This hack is so that the source file can tell whether it is being
9188      # built for inclusion in a dll (and should export symbols for example).
9189      lt_prog_compiler_pic='-DDLL_EXPORT'
9190      ;;
9191
9192    hpux9* | hpux10* | hpux11*)
9193      lt_prog_compiler_wl='-Wl,'
9194      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9195      # not for PA HP-UX.
9196      case $host_cpu in
9197      hppa*64*|ia64*)
9198	# +Z the default
9199	;;
9200      *)
9201	lt_prog_compiler_pic='+Z'
9202	;;
9203      esac
9204      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9205      lt_prog_compiler_static='${wl}-a ${wl}archive'
9206      ;;
9207
9208    irix5* | irix6* | nonstopux*)
9209      lt_prog_compiler_wl='-Wl,'
9210      # PIC (with -KPIC) is the default.
9211      lt_prog_compiler_static='-non_shared'
9212      ;;
9213
9214    newsos6)
9215      lt_prog_compiler_pic='-KPIC'
9216      lt_prog_compiler_static='-Bstatic'
9217      ;;
9218
9219    linux*)
9220      case $cc_basename in
9221      icc* | ecc*)
9222	lt_prog_compiler_wl='-Wl,'
9223	lt_prog_compiler_pic='-KPIC'
9224	lt_prog_compiler_static='-static'
9225        ;;
9226      pgcc* | pgf77* | pgf90* | pgf95*)
9227        # Portland Group compilers (*not* the Pentium gcc compiler,
9228	# which looks to be a dead project)
9229	lt_prog_compiler_wl='-Wl,'
9230	lt_prog_compiler_pic='-fpic'
9231	lt_prog_compiler_static='-Bstatic'
9232        ;;
9233      ccc*)
9234        lt_prog_compiler_wl='-Wl,'
9235        # All Alpha code is PIC.
9236        lt_prog_compiler_static='-non_shared'
9237        ;;
9238      esac
9239      ;;
9240
9241    osf3* | osf4* | osf5*)
9242      lt_prog_compiler_wl='-Wl,'
9243      # All OSF/1 code is PIC.
9244      lt_prog_compiler_static='-non_shared'
9245      ;;
9246
9247    solaris*)
9248      lt_prog_compiler_pic='-KPIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      case $cc_basename in
9251      f77* | f90* | f95*)
9252	lt_prog_compiler_wl='-Qoption ld ';;
9253      *)
9254	lt_prog_compiler_wl='-Wl,';;
9255      esac
9256      ;;
9257
9258    sunos4*)
9259      lt_prog_compiler_wl='-Qoption ld '
9260      lt_prog_compiler_pic='-PIC'
9261      lt_prog_compiler_static='-Bstatic'
9262      ;;
9263
9264    sysv4 | sysv4.2uw2* | sysv4.3*)
9265      lt_prog_compiler_wl='-Wl,'
9266      lt_prog_compiler_pic='-KPIC'
9267      lt_prog_compiler_static='-Bstatic'
9268      ;;
9269
9270    sysv4*MP*)
9271      if test -d /usr/nec ;then
9272	lt_prog_compiler_pic='-Kconform_pic'
9273	lt_prog_compiler_static='-Bstatic'
9274      fi
9275      ;;
9276
9277    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9278      lt_prog_compiler_wl='-Wl,'
9279      lt_prog_compiler_pic='-KPIC'
9280      lt_prog_compiler_static='-Bstatic'
9281      ;;
9282
9283    unicos*)
9284      lt_prog_compiler_wl='-Wl,'
9285      lt_prog_compiler_can_build_shared=no
9286      ;;
9287
9288    uts4*)
9289      lt_prog_compiler_pic='-pic'
9290      lt_prog_compiler_static='-Bstatic'
9291      ;;
9292
9293    *)
9294      lt_prog_compiler_can_build_shared=no
9295      ;;
9296    esac
9297  fi
9298
9299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9300echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9301
9302#
9303# Check to make sure the PIC flag actually works.
9304#
9305if test -n "$lt_prog_compiler_pic"; then
9306
9307echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9308echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9309if test "${lt_prog_compiler_pic_works+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  lt_prog_compiler_pic_works=no
9313  ac_outfile=conftest.$ac_objext
9314   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9315   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9316   # Insert the option either (1) after the last *FLAGS variable, or
9317   # (2) before a word containing "conftest.", or (3) at the end.
9318   # Note that $ac_compile itself does not contain backslashes and begins
9319   # with a dollar sign (not a hyphen), so the echo should work correctly.
9320   # The option is referenced via a variable to avoid confusing sed.
9321   lt_compile=`echo "$ac_compile" | $SED \
9322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324   -e 's:$: $lt_compiler_flag:'`
9325   (eval echo "\"\$as_me:9325: $lt_compile\"" >&5)
9326   (eval "$lt_compile" 2>conftest.err)
9327   ac_status=$?
9328   cat conftest.err >&5
9329   echo "$as_me:9329: \$? = $ac_status" >&5
9330   if (exit $ac_status) && test -s "$ac_outfile"; then
9331     # The compiler can only warn and ignore the option if not recognized
9332     # So say no if there are warnings other than the usual output.
9333     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9334     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9336       lt_prog_compiler_pic_works=yes
9337     fi
9338   fi
9339   $rm conftest*
9340
9341fi
9342echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9343echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9344
9345if test x"$lt_prog_compiler_pic_works" = xyes; then
9346    case $lt_prog_compiler_pic in
9347     "" | " "*) ;;
9348     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9349     esac
9350else
9351    lt_prog_compiler_pic=
9352     lt_prog_compiler_can_build_shared=no
9353fi
9354
9355fi
9356case $host_os in
9357  # For platforms which do not support PIC, -DPIC is meaningless:
9358  *djgpp*)
9359    lt_prog_compiler_pic=
9360    ;;
9361  *)
9362    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9363    ;;
9364esac
9365
9366#
9367# Check to make sure the static flag actually works.
9368#
9369wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9370echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9371echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9372if test "${lt_prog_compiler_static_works+set}" = set; then
9373  echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375  lt_prog_compiler_static_works=no
9376   save_LDFLAGS="$LDFLAGS"
9377   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9378   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9379   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9380     # The linker can only warn and ignore the option if not recognized
9381     # So say no if there are warnings
9382     if test -s conftest.err; then
9383       # Append any errors to the config.log.
9384       cat conftest.err 1>&5
9385       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9386       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9387       if diff conftest.exp conftest.er2 >/dev/null; then
9388         lt_prog_compiler_static_works=yes
9389       fi
9390     else
9391       lt_prog_compiler_static_works=yes
9392     fi
9393   fi
9394   $rm conftest*
9395   LDFLAGS="$save_LDFLAGS"
9396
9397fi
9398echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9399echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9400
9401if test x"$lt_prog_compiler_static_works" = xyes; then
9402    :
9403else
9404    lt_prog_compiler_static=
9405fi
9406
9407
9408echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9409echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9410if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9411  echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413  lt_cv_prog_compiler_c_o=no
9414   $rm -r conftest 2>/dev/null
9415   mkdir conftest
9416   cd conftest
9417   mkdir out
9418   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9419
9420   lt_compiler_flag="-o out/conftest2.$ac_objext"
9421   # Insert the option either (1) after the last *FLAGS variable, or
9422   # (2) before a word containing "conftest.", or (3) at the end.
9423   # Note that $ac_compile itself does not contain backslashes and begins
9424   # with a dollar sign (not a hyphen), so the echo should work correctly.
9425   lt_compile=`echo "$ac_compile" | $SED \
9426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428   -e 's:$: $lt_compiler_flag:'`
9429   (eval echo "\"\$as_me:9429: $lt_compile\"" >&5)
9430   (eval "$lt_compile" 2>out/conftest.err)
9431   ac_status=$?
9432   cat out/conftest.err >&5
9433   echo "$as_me:9433: \$? = $ac_status" >&5
9434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9435   then
9436     # The compiler can only warn and ignore the option if not recognized
9437     # So say no if there are warnings
9438     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9439     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9440     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9441       lt_cv_prog_compiler_c_o=yes
9442     fi
9443   fi
9444   chmod u+w . 2>&5
9445   $rm conftest*
9446   # SGI C++ compiler will create directory out/ii_files/ for
9447   # template instantiation
9448   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9449   $rm out/* && rmdir out
9450   cd ..
9451   rmdir conftest
9452   $rm conftest*
9453
9454fi
9455echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9456echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9457
9458
9459hard_links="nottested"
9460if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9461  # do not overwrite the value of need_locks provided by the user
9462  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9463echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9464  hard_links=yes
9465  $rm conftest*
9466  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9467  touch conftest.a
9468  ln conftest.a conftest.b 2>&5 || hard_links=no
9469  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9470  echo "$as_me:$LINENO: result: $hard_links" >&5
9471echo "${ECHO_T}$hard_links" >&6
9472  if test "$hard_links" = no; then
9473    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9474echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9475    need_locks=warn
9476  fi
9477else
9478  need_locks=no
9479fi
9480
9481echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9482echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9483
9484  runpath_var=
9485  allow_undefined_flag=
9486  enable_shared_with_static_runtimes=no
9487  archive_cmds=
9488  archive_expsym_cmds=
9489  old_archive_From_new_cmds=
9490  old_archive_from_expsyms_cmds=
9491  export_dynamic_flag_spec=
9492  whole_archive_flag_spec=
9493  thread_safe_flag_spec=
9494  hardcode_libdir_flag_spec=
9495  hardcode_libdir_flag_spec_ld=
9496  hardcode_libdir_separator=
9497  hardcode_direct=no
9498  hardcode_minus_L=no
9499  hardcode_shlibpath_var=unsupported
9500  link_all_deplibs=unknown
9501  hardcode_automatic=no
9502  module_cmds=
9503  module_expsym_cmds=
9504  always_export_symbols=no
9505  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9506  # include_expsyms should be a list of space-separated symbols to be *always*
9507  # included in the symbol list
9508  include_expsyms=
9509  # exclude_expsyms can be an extended regexp of symbols to exclude
9510  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9511  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9512  # as well as any symbol that contains `d'.
9513  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9514  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9515  # platforms (ab)use it in PIC code, but their linkers get confused if
9516  # the symbol is explicitly referenced.  Since portable code cannot
9517  # rely on this symbol name, it's probably fine to never include it in
9518  # preloaded symbol tables.
9519  extract_expsyms_cmds=
9520  # Just being paranoid about ensuring that cc_basename is set.
9521  for cc_temp in $compiler""; do
9522  case $cc_temp in
9523    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9524    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9525    \-*) ;;
9526    *) break;;
9527  esac
9528done
9529cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9530
9531  case $host_os in
9532  cygwin* | mingw* | pw32*)
9533    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9534    # When not using gcc, we currently assume that we are using
9535    # Microsoft Visual C++.
9536    if test "$GCC" != yes; then
9537      with_gnu_ld=no
9538    fi
9539    ;;
9540  interix*)
9541    # we just hope/assume this is gcc and not c89 (= MSVC++)
9542    with_gnu_ld=yes
9543    ;;
9544  openbsd*)
9545    with_gnu_ld=no
9546    ;;
9547  esac
9548
9549  ld_shlibs=yes
9550  if test "$with_gnu_ld" = yes; then
9551    # If archive_cmds runs LD, not CC, wlarc should be empty
9552    wlarc='${wl}'
9553
9554    # Set some defaults for GNU ld with shared library support. These
9555    # are reset later if shared libraries are not supported. Putting them
9556    # here allows them to be overridden if necessary.
9557    runpath_var=LD_RUN_PATH
9558    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9559    export_dynamic_flag_spec='${wl}--export-dynamic'
9560    # ancient GNU ld didn't support --whole-archive et. al.
9561    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9562	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9563      else
9564  	whole_archive_flag_spec=
9565    fi
9566    supports_anon_versioning=no
9567    case `$LD -v 2>/dev/null` in
9568      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571      *\ 2.11.*) ;; # other 2.11 versions
9572      *) supports_anon_versioning=yes ;;
9573    esac
9574
9575    # See if GNU ld supports shared libraries.
9576    case $host_os in
9577    aix3* | aix4* | aix5*)
9578      # On AIX/PPC, the GNU linker is very broken
9579      if test "$host_cpu" != ia64; then
9580	ld_shlibs=no
9581	cat <<EOF 1>&2
9582
9583*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9584*** to be unable to reliably create shared libraries on AIX.
9585*** Therefore, libtool is disabling shared libraries support.  If you
9586*** really care for shared libraries, you may want to modify your PATH
9587*** so that a non-GNU linker is found, and then restart.
9588
9589EOF
9590      fi
9591      ;;
9592
9593    amigaos*)
9594      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)'
9595      hardcode_libdir_flag_spec='-L$libdir'
9596      hardcode_minus_L=yes
9597
9598      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9599      # that the semantics of dynamic libraries on AmigaOS, at least up
9600      # to version 4, is to share data among multiple programs linked
9601      # with the same dynamic library.  Since this doesn't match the
9602      # behavior of shared libraries on other platforms, we can't use
9603      # them.
9604      ld_shlibs=no
9605      ;;
9606
9607    beos*)
9608      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9609	allow_undefined_flag=unsupported
9610	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9611	# support --undefined.  This deserves some investigation.  FIXME
9612	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613      else
9614	ld_shlibs=no
9615      fi
9616      ;;
9617
9618    cygwin* | mingw* | pw32*)
9619      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9620      # as there is no search path for DLLs.
9621      hardcode_libdir_flag_spec='-L$libdir'
9622      allow_undefined_flag=unsupported
9623      always_export_symbols=no
9624      enable_shared_with_static_runtimes=yes
9625      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9626
9627      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9628        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9629	# If the export-symbols file already is a .def file (1st line
9630	# is EXPORTS), use it as is; otherwise, prepend...
9631	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9632	  cp $export_symbols $output_objdir/$soname.def;
9633	else
9634	  echo EXPORTS > $output_objdir/$soname.def;
9635	  cat $export_symbols >> $output_objdir/$soname.def;
9636	fi~
9637	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9638      else
9639	ld_shlibs=no
9640      fi
9641      ;;
9642
9643    interix3*)
9644      hardcode_direct=no
9645      hardcode_shlibpath_var=no
9646      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647      export_dynamic_flag_spec='${wl}-E'
9648      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9649      # Instead, shared libraries are loaded at an image base (0x10000000 by
9650      # default) and relocated if they conflict, which is a slow very memory
9651      # consuming and fragmenting process.  To avoid this, we pick a random,
9652      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9653      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9654      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9655      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9656      ;;
9657
9658    linux*)
9659      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9660	tmp_addflag=
9661	case $cc_basename,$host_cpu in
9662	pgcc*)				# Portland Group C compiler
9663	  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'
9664	  tmp_addflag=' $pic_flag'
9665	  ;;
9666	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9667	  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'
9668	  tmp_addflag=' $pic_flag -Mnomain' ;;
9669	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9670	  tmp_addflag=' -i_dynamic' ;;
9671	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9672	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9673	ifc* | ifort*)			# Intel Fortran compiler
9674	  tmp_addflag=' -nofor_main' ;;
9675	esac
9676	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9677
9678	if test $supports_anon_versioning = yes; then
9679	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9680  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9681  $echo "local: *; };" >> $output_objdir/$libname.ver~
9682	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9683	fi
9684      else
9685	ld_shlibs=no
9686      fi
9687      ;;
9688
9689    netbsd*)
9690      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9691	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9692	wlarc=
9693      else
9694	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9696      fi
9697      ;;
9698
9699    solaris*)
9700      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9701	ld_shlibs=no
9702	cat <<EOF 1>&2
9703
9704*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9705*** create shared libraries on Solaris systems.  Therefore, libtool
9706*** is disabling shared libraries support.  We urge you to upgrade GNU
9707*** binutils to release 2.9.1 or newer.  Another option is to modify
9708*** your PATH or compiler configuration so that the native linker is
9709*** used, and then restart.
9710
9711EOF
9712      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9713	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9715      else
9716	ld_shlibs=no
9717      fi
9718      ;;
9719
9720    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9721      case `$LD -v 2>&1` in
9722        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9723	ld_shlibs=no
9724	cat <<_LT_EOF 1>&2
9725
9726*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9727*** reliably create shared libraries on SCO systems.  Therefore, libtool
9728*** is disabling shared libraries support.  We urge you to upgrade GNU
9729*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9730*** your PATH or compiler configuration so that the native linker is
9731*** used, and then restart.
9732
9733_LT_EOF
9734	;;
9735	*)
9736	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9737	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9738	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9739	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9740	  else
9741	    ld_shlibs=no
9742	  fi
9743	;;
9744      esac
9745      ;;
9746
9747    sunos4*)
9748      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9749      wlarc=
9750      hardcode_direct=yes
9751      hardcode_shlibpath_var=no
9752      ;;
9753
9754    *)
9755      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9756	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9758      else
9759	ld_shlibs=no
9760      fi
9761      ;;
9762    esac
9763
9764    if test "$ld_shlibs" = no; then
9765      runpath_var=
9766      hardcode_libdir_flag_spec=
9767      export_dynamic_flag_spec=
9768      whole_archive_flag_spec=
9769    fi
9770  else
9771    # PORTME fill in a description of your system's linker (not GNU ld)
9772    case $host_os in
9773    aix3*)
9774      allow_undefined_flag=unsupported
9775      always_export_symbols=yes
9776      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'
9777      # Note: this linker hardcodes the directories in LIBPATH if there
9778      # are no directories specified by -L.
9779      hardcode_minus_L=yes
9780      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9781	# Neither direct hardcoding nor static linking is supported with a
9782	# broken collect2.
9783	hardcode_direct=unsupported
9784      fi
9785      ;;
9786
9787    aix4* | aix5*)
9788      if test "$host_cpu" = ia64; then
9789	# On IA64, the linker does run time linking by default, so we don't
9790	# have to do anything special.
9791	aix_use_runtimelinking=no
9792	exp_sym_flag='-Bexport'
9793	no_entry_flag=""
9794      else
9795	# If we're using GNU nm, then we don't want the "-C" option.
9796	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9797	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9798	  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'
9799	else
9800	  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'
9801	fi
9802	aix_use_runtimelinking=no
9803
9804	# Test if we are trying to use run time linking or normal
9805	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9806	# need to do runtime linking.
9807	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9808	  for ld_flag in $LDFLAGS; do
9809  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9810  	    aix_use_runtimelinking=yes
9811  	    break
9812  	  fi
9813	  done
9814	  ;;
9815	esac
9816
9817	exp_sym_flag='-bexport'
9818	no_entry_flag='-bnoentry'
9819      fi
9820
9821      # When large executables or shared objects are built, AIX ld can
9822      # have problems creating the table of contents.  If linking a library
9823      # or program results in "error TOC overflow" add -mminimal-toc to
9824      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9825      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9826
9827      archive_cmds=''
9828      hardcode_direct=yes
9829      hardcode_libdir_separator=':'
9830      link_all_deplibs=yes
9831
9832      if test "$GCC" = yes; then
9833	case $host_os in aix4.[012]|aix4.[012].*)
9834	# We only want to do this on AIX 4.2 and lower, the check
9835	# below for broken collect2 doesn't work under 4.3+
9836	  collect2name=`${CC} -print-prog-name=collect2`
9837	  if test -f "$collect2name" && \
9838  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9839	  then
9840  	  # We have reworked collect2
9841  	  hardcode_direct=yes
9842	  else
9843  	  # We have old collect2
9844  	  hardcode_direct=unsupported
9845  	  # It fails to find uninstalled libraries when the uninstalled
9846  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9847  	  # to unsupported forces relinking
9848  	  hardcode_minus_L=yes
9849  	  hardcode_libdir_flag_spec='-L$libdir'
9850  	  hardcode_libdir_separator=
9851	  fi
9852	  ;;
9853	esac
9854	shared_flag='-shared'
9855	if test "$aix_use_runtimelinking" = yes; then
9856	  shared_flag="$shared_flag "'${wl}-G'
9857	fi
9858      else
9859	# not using gcc
9860	if test "$host_cpu" = ia64; then
9861  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9862  	# chokes on -Wl,-G. The following line is correct:
9863	  shared_flag='-G'
9864	else
9865	  if test "$aix_use_runtimelinking" = yes; then
9866	    shared_flag='${wl}-G'
9867	  else
9868	    shared_flag='${wl}-bM:SRE'
9869	  fi
9870	fi
9871      fi
9872
9873      # It seems that -bexpall does not export symbols beginning with
9874      # underscore (_), so it is better to generate a list of symbols to export.
9875      always_export_symbols=yes
9876      if test "$aix_use_runtimelinking" = yes; then
9877	# Warning - without using the other runtime loading flags (-brtl),
9878	# -berok will link without error, but may produce a broken library.
9879	allow_undefined_flag='-berok'
9880       # Determine the default libpath from the value encoded in an empty executable.
9881       cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h.  */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h.  */
9887
9888#ifdef F77_DUMMY_MAIN
9889
9890#  ifdef __cplusplus
9891     extern "C"
9892#  endif
9893   int F77_DUMMY_MAIN() { return 1; }
9894
9895#endif
9896int
9897main ()
9898{
9899
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext conftest$ac_exeext
9905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906  (eval $ac_link) 2>conftest.er1
9907  ac_status=$?
9908  grep -v '^ *+' conftest.er1 >conftest.err
9909  rm -f conftest.er1
9910  cat conftest.err >&5
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); } &&
9913	 { ac_try='test -z "$ac_c_werror_flag"
9914			 || test ! -s conftest.err'
9915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916  (eval $ac_try) 2>&5
9917  ac_status=$?
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); }; } &&
9920	 { ac_try='test -s conftest$ac_exeext'
9921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922  (eval $ac_try) 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926
9927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9928}'`
9929# Check for a 64-bit object if we didn't find anything.
9930if 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; }
9931}'`; fi
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936fi
9937rm -f conftest.err conftest.$ac_objext \
9938      conftest$ac_exeext conftest.$ac_ext
9939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9940
9941       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9942	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9943       else
9944	if test "$host_cpu" = ia64; then
9945	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9946	  allow_undefined_flag="-z nodefs"
9947	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9948	else
9949	 # Determine the default libpath from the value encoded in an empty executable.
9950	 cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h.  */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h.  */
9956
9957#ifdef F77_DUMMY_MAIN
9958
9959#  ifdef __cplusplus
9960     extern "C"
9961#  endif
9962   int F77_DUMMY_MAIN() { return 1; }
9963
9964#endif
9965int
9966main ()
9967{
9968
9969  ;
9970  return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975  (eval $ac_link) 2>conftest.er1
9976  ac_status=$?
9977  grep -v '^ *+' conftest.er1 >conftest.err
9978  rm -f conftest.er1
9979  cat conftest.err >&5
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); } &&
9982	 { ac_try='test -z "$ac_c_werror_flag"
9983			 || test ! -s conftest.err'
9984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985  (eval $ac_try) 2>&5
9986  ac_status=$?
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); }; } &&
9989	 { ac_try='test -s conftest$ac_exeext'
9990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991  (eval $ac_try) 2>&5
9992  ac_status=$?
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); }; }; then
9995
9996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9997}'`
9998# Check for a 64-bit object if we didn't find anything.
9999if 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; }
10000}'`; fi
10001else
10002  echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005fi
10006rm -f conftest.err conftest.$ac_objext \
10007      conftest$ac_exeext conftest.$ac_ext
10008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10009
10010	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10011	  # Warning - without using the other run time loading flags,
10012	  # -berok will link without error, but may produce a broken library.
10013	  no_undefined_flag=' ${wl}-bernotok'
10014	  allow_undefined_flag=' ${wl}-berok'
10015	  # Exported symbols can be pulled into shared objects from archives
10016	  whole_archive_flag_spec='$convenience'
10017	  archive_cmds_need_lc=yes
10018	  # This is similar to how AIX traditionally builds its shared libraries.
10019	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10020	fi
10021      fi
10022      ;;
10023
10024    amigaos*)
10025      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)'
10026      hardcode_libdir_flag_spec='-L$libdir'
10027      hardcode_minus_L=yes
10028      # see comment about different semantics on the GNU ld section
10029      ld_shlibs=no
10030      ;;
10031
10032    bsdi[45]*)
10033      export_dynamic_flag_spec=-rdynamic
10034      ;;
10035
10036    cygwin* | mingw* | pw32*)
10037      # When not using gcc, we currently assume that we are using
10038      # Microsoft Visual C++.
10039      # hardcode_libdir_flag_spec is actually meaningless, as there is
10040      # no search path for DLLs.
10041      hardcode_libdir_flag_spec=' '
10042      allow_undefined_flag=unsupported
10043      # Tell ltmain to make .lib files, not .a files.
10044      libext=lib
10045      # Tell ltmain to make .dll files, not .so files.
10046      shrext_cmds=".dll"
10047      # FIXME: Setting linknames here is a bad hack.
10048      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10049      # The linker will automatically build a .lib file if we build a DLL.
10050      old_archive_From_new_cmds='true'
10051      # FIXME: Should let the user specify the lib program.
10052      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10053      fix_srcfile_path='`cygpath -w "$srcfile"`'
10054      enable_shared_with_static_runtimes=yes
10055      ;;
10056
10057    darwin* | rhapsody*)
10058      case $host_os in
10059        rhapsody* | darwin1.[012])
10060         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10061         ;;
10062       *) # Darwin 1.3 on
10063         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10064           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10065         else
10066           case ${MACOSX_DEPLOYMENT_TARGET} in
10067             10.[012])
10068               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10069               ;;
10070             10.*)
10071               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10072               ;;
10073           esac
10074         fi
10075         ;;
10076      esac
10077      archive_cmds_need_lc=no
10078      hardcode_direct=no
10079      hardcode_automatic=yes
10080      hardcode_shlibpath_var=unsupported
10081      whole_archive_flag_spec=''
10082      link_all_deplibs=yes
10083    if test "$GCC" = yes ; then
10084    	output_verbose_link_cmd='echo'
10085        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10086      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10087      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10088      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}'
10089      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}'
10090    else
10091      case $cc_basename in
10092        xlc*)
10093         output_verbose_link_cmd='echo'
10094         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10095         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10096          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10097         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}'
10098          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}'
10099          ;;
10100       *)
10101         ld_shlibs=no
10102          ;;
10103      esac
10104    fi
10105      ;;
10106
10107    dgux*)
10108      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109      hardcode_libdir_flag_spec='-L$libdir'
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    freebsd1*)
10114      ld_shlibs=no
10115      ;;
10116
10117    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10118    # support.  Future versions do this automatically, but an explicit c++rt0.o
10119    # does not break anything, and helps significantly (at the cost of a little
10120    # extra space).
10121    freebsd2.2*)
10122      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10123      hardcode_libdir_flag_spec='-R$libdir'
10124      hardcode_direct=yes
10125      hardcode_shlibpath_var=no
10126      ;;
10127
10128    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10129    freebsd2*)
10130      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10131      hardcode_direct=yes
10132      hardcode_minus_L=yes
10133      hardcode_shlibpath_var=no
10134      ;;
10135
10136    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10137    freebsd* | kfreebsd*-gnu | dragonfly*)
10138      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10139      hardcode_libdir_flag_spec='-R$libdir'
10140      hardcode_direct=yes
10141      hardcode_shlibpath_var=no
10142      ;;
10143
10144    hpux9*)
10145      if test "$GCC" = yes; then
10146	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'
10147      else
10148	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'
10149      fi
10150      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151      hardcode_libdir_separator=:
10152      hardcode_direct=yes
10153
10154      # hardcode_minus_L: Not really in the search PATH,
10155      # but as the default location of the library.
10156      hardcode_minus_L=yes
10157      export_dynamic_flag_spec='${wl}-E'
10158      ;;
10159
10160    hpux10*)
10161      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10162	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10163      else
10164	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10165      fi
10166      if test "$with_gnu_ld" = no; then
10167	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10168	hardcode_libdir_separator=:
10169
10170	hardcode_direct=yes
10171	export_dynamic_flag_spec='${wl}-E'
10172
10173	# hardcode_minus_L: Not really in the search PATH,
10174	# but as the default location of the library.
10175	hardcode_minus_L=yes
10176      fi
10177      ;;
10178
10179    hpux11*)
10180      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10181	case $host_cpu in
10182	hppa*64*)
10183	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10184	  ;;
10185	ia64*)
10186	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10187	  ;;
10188	*)
10189	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10190	  ;;
10191	esac
10192      else
10193	case $host_cpu in
10194	hppa*64*)
10195	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10196	  ;;
10197	ia64*)
10198	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10199	  ;;
10200	*)
10201	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10202	  ;;
10203	esac
10204      fi
10205      if test "$with_gnu_ld" = no; then
10206	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10207	hardcode_libdir_separator=:
10208
10209	case $host_cpu in
10210	hppa*64*|ia64*)
10211	  hardcode_libdir_flag_spec_ld='+b $libdir'
10212	  hardcode_direct=no
10213	  hardcode_shlibpath_var=no
10214	  ;;
10215	*)
10216	  hardcode_direct=yes
10217	  export_dynamic_flag_spec='${wl}-E'
10218
10219	  # hardcode_minus_L: Not really in the search PATH,
10220	  # but as the default location of the library.
10221	  hardcode_minus_L=yes
10222	  ;;
10223	esac
10224      fi
10225      ;;
10226
10227    irix5* | irix6* | nonstopux*)
10228      if test "$GCC" = yes; then
10229	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'
10230      else
10231	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'
10232	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10233      fi
10234      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235      hardcode_libdir_separator=:
10236      link_all_deplibs=yes
10237      ;;
10238
10239    netbsd*)
10240      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10241	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10242      else
10243	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10244      fi
10245      hardcode_libdir_flag_spec='-R$libdir'
10246      hardcode_direct=yes
10247      hardcode_shlibpath_var=no
10248      ;;
10249
10250    newsos6)
10251      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252      hardcode_direct=yes
10253      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254      hardcode_libdir_separator=:
10255      hardcode_shlibpath_var=no
10256      ;;
10257
10258    openbsd*)
10259      hardcode_direct=yes
10260      hardcode_shlibpath_var=no
10261      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10262	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10263	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10264	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10265	export_dynamic_flag_spec='${wl}-E'
10266      else
10267       case $host_os in
10268	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10269	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10270	   hardcode_libdir_flag_spec='-R$libdir'
10271	   ;;
10272	 *)
10273	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10274	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10275	   ;;
10276       esac
10277      fi
10278      ;;
10279
10280    os2*)
10281      hardcode_libdir_flag_spec='-L$libdir'
10282      hardcode_minus_L=yes
10283      allow_undefined_flag=unsupported
10284      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'
10285      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10286      ;;
10287
10288    osf3*)
10289      if test "$GCC" = yes; then
10290	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10291	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'
10292      else
10293	allow_undefined_flag=' -expect_unresolved \*'
10294	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'
10295      fi
10296      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10297      hardcode_libdir_separator=:
10298      ;;
10299
10300    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10301      if test "$GCC" = yes; then
10302	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10303	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'
10304	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305      else
10306	allow_undefined_flag=' -expect_unresolved \*'
10307	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'
10308	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10309	$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'
10310
10311	# Both c and cxx compiler support -rpath directly
10312	hardcode_libdir_flag_spec='-rpath $libdir'
10313      fi
10314      hardcode_libdir_separator=:
10315      ;;
10316
10317    solaris*)
10318      no_undefined_flag=' -z text'
10319      if test "$GCC" = yes; then
10320	wlarc='${wl}'
10321	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10323	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10324      else
10325	wlarc=''
10326	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10329      fi
10330      hardcode_libdir_flag_spec='-R$libdir'
10331      hardcode_shlibpath_var=no
10332      case $host_os in
10333      solaris2.[0-5] | solaris2.[0-5].*) ;;
10334      *)
10335 	# The compiler driver will combine linker options so we
10336 	# cannot just pass the convience library names through
10337 	# without $wl, iff we do not link with $LD.
10338 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10339 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10340 	case $wlarc in
10341 	'')
10342 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10343 	*)
10344 	  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' ;;
10345 	esac ;;
10346      esac
10347      link_all_deplibs=yes
10348      ;;
10349
10350    sunos4*)
10351      if test "x$host_vendor" = xsequent; then
10352	# Use $CC to link under sequent, because it throws in some extra .o
10353	# files that make .init and .fini sections work.
10354	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10355      else
10356	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10357      fi
10358      hardcode_libdir_flag_spec='-L$libdir'
10359      hardcode_direct=yes
10360      hardcode_minus_L=yes
10361      hardcode_shlibpath_var=no
10362      ;;
10363
10364    sysv4)
10365      case $host_vendor in
10366	sni)
10367	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368	  hardcode_direct=yes # is this really true???
10369	;;
10370	siemens)
10371	  ## LD is ld it makes a PLAMLIB
10372	  ## CC just makes a GrossModule.
10373	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10374	  reload_cmds='$CC -r -o $output$reload_objs'
10375	  hardcode_direct=no
10376        ;;
10377	motorola)
10378	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10380	;;
10381      esac
10382      runpath_var='LD_RUN_PATH'
10383      hardcode_shlibpath_var=no
10384      ;;
10385
10386    sysv4.3*)
10387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388      hardcode_shlibpath_var=no
10389      export_dynamic_flag_spec='-Bexport'
10390      ;;
10391
10392    sysv4*MP*)
10393      if test -d /usr/nec; then
10394	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395	hardcode_shlibpath_var=no
10396	runpath_var=LD_RUN_PATH
10397	hardcode_runpath_var=yes
10398	ld_shlibs=yes
10399      fi
10400      ;;
10401
10402    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10403      no_undefined_flag='${wl}-z,text'
10404      archive_cmds_need_lc=no
10405      hardcode_shlibpath_var=no
10406      runpath_var='LD_RUN_PATH'
10407
10408      if test "$GCC" = yes; then
10409	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411      else
10412	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414      fi
10415      ;;
10416
10417    sysv5* | sco3.2v5* | sco5v6*)
10418      # Note: We can NOT use -z defs as we might desire, because we do not
10419      # link with -lc, and that would cause any symbols used from libc to
10420      # always be unresolved, which means just about no library would
10421      # ever link correctly.  If we're not using GNU ld we use -z text
10422      # though, which does catch some bad symbols but isn't as heavy-handed
10423      # as -z defs.
10424      no_undefined_flag='${wl}-z,text'
10425      allow_undefined_flag='${wl}-z,nodefs'
10426      archive_cmds_need_lc=no
10427      hardcode_shlibpath_var=no
10428      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10429      hardcode_libdir_separator=':'
10430      link_all_deplibs=yes
10431      export_dynamic_flag_spec='${wl}-Bexport'
10432      runpath_var='LD_RUN_PATH'
10433
10434      if test "$GCC" = yes; then
10435	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10437      else
10438	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10439	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10440      fi
10441      ;;
10442
10443    uts4*)
10444      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445      hardcode_libdir_flag_spec='-L$libdir'
10446      hardcode_shlibpath_var=no
10447      ;;
10448
10449    *)
10450      ld_shlibs=no
10451      ;;
10452    esac
10453  fi
10454
10455echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10456echo "${ECHO_T}$ld_shlibs" >&6
10457test "$ld_shlibs" = no && can_build_shared=no
10458
10459#
10460# Do we need to explicitly link libc?
10461#
10462case "x$archive_cmds_need_lc" in
10463x|xyes)
10464  # Assume -lc should be added
10465  archive_cmds_need_lc=yes
10466
10467  if test "$enable_shared" = yes && test "$GCC" = yes; then
10468    case $archive_cmds in
10469    *'~'*)
10470      # FIXME: we may have to deal with multi-command sequences.
10471      ;;
10472    '$CC '*)
10473      # Test whether the compiler implicitly links with -lc since on some
10474      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10475      # to ld, don't add -lc before -lgcc.
10476      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10477echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10478      $rm conftest*
10479      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482  (eval $ac_compile) 2>&5
10483  ac_status=$?
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); } 2>conftest.err; then
10486        soname=conftest
10487        lib=conftest
10488        libobjs=conftest.$ac_objext
10489        deplibs=
10490        wl=$lt_prog_compiler_wl
10491	pic_flag=$lt_prog_compiler_pic
10492        compiler_flags=-v
10493        linker_flags=-v
10494        verstring=
10495        output_objdir=.
10496        libname=conftest
10497        lt_save_allow_undefined_flag=$allow_undefined_flag
10498        allow_undefined_flag=
10499        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10500  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10501  ac_status=$?
10502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503  (exit $ac_status); }
10504        then
10505	  archive_cmds_need_lc=no
10506        else
10507	  archive_cmds_need_lc=yes
10508        fi
10509        allow_undefined_flag=$lt_save_allow_undefined_flag
10510      else
10511        cat conftest.err 1>&5
10512      fi
10513      $rm conftest*
10514      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10515echo "${ECHO_T}$archive_cmds_need_lc" >&6
10516      ;;
10517    esac
10518  fi
10519  ;;
10520esac
10521
10522echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10523echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10524library_names_spec=
10525libname_spec='lib$name'
10526soname_spec=
10527shrext_cmds=".so"
10528postinstall_cmds=
10529postuninstall_cmds=
10530finish_cmds=
10531finish_eval=
10532shlibpath_var=
10533shlibpath_overrides_runpath=unknown
10534version_type=none
10535dynamic_linker="$host_os ld.so"
10536sys_lib_dlsearch_path_spec="/lib /usr/lib"
10537if test "$GCC" = yes; then
10538  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10539  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10540    # if the path contains ";" then we assume it to be the separator
10541    # otherwise default to the standard path separator (i.e. ":") - it is
10542    # assumed that no part of a normal pathname contains ";" but that should
10543    # okay in the real world where ";" in dirpaths is itself problematic.
10544    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10545  else
10546    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10547  fi
10548else
10549  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10550fi
10551need_lib_prefix=unknown
10552hardcode_into_libs=no
10553
10554# when you set need_version to no, make sure it does not cause -set_version
10555# flags to be left without arguments
10556need_version=unknown
10557
10558case $host_os in
10559aix3*)
10560  version_type=linux
10561  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10562  shlibpath_var=LIBPATH
10563
10564  # AIX 3 has no versioning support, so we append a major version to the name.
10565  soname_spec='${libname}${release}${shared_ext}$major'
10566  ;;
10567
10568aix4* | aix5*)
10569  version_type=linux
10570  need_lib_prefix=no
10571  need_version=no
10572  hardcode_into_libs=yes
10573  if test "$host_cpu" = ia64; then
10574    # AIX 5 supports IA64
10575    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10576    shlibpath_var=LD_LIBRARY_PATH
10577  else
10578    # With GCC up to 2.95.x, collect2 would create an import file
10579    # for dependence libraries.  The import file would start with
10580    # the line `#! .'.  This would cause the generated library to
10581    # depend on `.', always an invalid library.  This was fixed in
10582    # development snapshots of GCC prior to 3.0.
10583    case $host_os in
10584      aix4 | aix4.[01] | aix4.[01].*)
10585      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10586	   echo ' yes '
10587	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10588	:
10589      else
10590	can_build_shared=no
10591      fi
10592      ;;
10593    esac
10594    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10595    # soname into executable. Probably we can add versioning support to
10596    # collect2, so additional links can be useful in future.
10597    if test "$aix_use_runtimelinking" = yes; then
10598      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10599      # instead of lib<name>.a to let people know that these are not
10600      # typical AIX shared libraries.
10601      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602    else
10603      # We preserve .a as extension for shared libraries through AIX4.2
10604      # and later when we are not doing run time linking.
10605      library_names_spec='${libname}${release}.a $libname.a'
10606      soname_spec='${libname}${release}${shared_ext}$major'
10607    fi
10608    shlibpath_var=LIBPATH
10609  fi
10610  ;;
10611
10612amigaos*)
10613  library_names_spec='$libname.ixlibrary $libname.a'
10614  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10615  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'
10616  ;;
10617
10618beos*)
10619  library_names_spec='${libname}${shared_ext}'
10620  dynamic_linker="$host_os ld.so"
10621  shlibpath_var=LIBRARY_PATH
10622  ;;
10623
10624bsdi[45]*)
10625  version_type=linux
10626  need_version=no
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628  soname_spec='${libname}${release}${shared_ext}$major'
10629  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10630  shlibpath_var=LD_LIBRARY_PATH
10631  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10632  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10633  # the default ld.so.conf also contains /usr/contrib/lib and
10634  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10635  # libtool to hard-code these into programs
10636  ;;
10637
10638cygwin* | mingw* | pw32*)
10639  version_type=windows
10640  shrext_cmds=".dll"
10641  need_version=no
10642  need_lib_prefix=no
10643
10644  case $GCC,$host_os in
10645  yes,cygwin* | yes,mingw* | yes,pw32*)
10646    library_names_spec='$libname.dll.a'
10647    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10648    postinstall_cmds='base_file=`basename \${file}`~
10649      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10650      dldir=$destdir/`dirname \$dlpath`~
10651      test -d \$dldir || mkdir -p \$dldir~
10652      $install_prog $dir/$dlname \$dldir/$dlname~
10653      chmod a+x \$dldir/$dlname'
10654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655      dlpath=$dir/\$dldll~
10656       $rm \$dlpath'
10657    shlibpath_overrides_runpath=yes
10658
10659    case $host_os in
10660    cygwin*)
10661      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10662      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10664      ;;
10665    mingw*)
10666      # MinGW DLLs use traditional 'lib' prefix
10667      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10669      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10670        # It is most probably a Windows format PATH printed by
10671        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10672        # path with ; separators, and with drive letters. We can handle the
10673        # drive letters (cygwin fileutils understands them), so leave them,
10674        # especially as we might pass files found there to a mingw objdump,
10675        # which wouldn't understand a cygwinified path. Ahh.
10676        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10677      else
10678        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10679      fi
10680      ;;
10681    pw32*)
10682      # pw32 DLLs use 'pw' prefix rather than 'lib'
10683      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10684      ;;
10685    esac
10686    ;;
10687
10688  *)
10689    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10690    ;;
10691  esac
10692  dynamic_linker='Win32 ld.exe'
10693  # FIXME: first we should search . and the directory the executable is in
10694  shlibpath_var=PATH
10695  ;;
10696
10697darwin* | rhapsody*)
10698  dynamic_linker="$host_os dyld"
10699  version_type=darwin
10700  need_lib_prefix=no
10701  need_version=no
10702  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10703  soname_spec='${libname}${release}${major}$shared_ext'
10704  shlibpath_overrides_runpath=yes
10705  shlibpath_var=DYLD_LIBRARY_PATH
10706  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10707  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10708  if test "$GCC" = yes; then
10709    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"`
10710  else
10711    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10712  fi
10713  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10714  ;;
10715
10716dgux*)
10717  version_type=linux
10718  need_lib_prefix=no
10719  need_version=no
10720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10721  soname_spec='${libname}${release}${shared_ext}$major'
10722  shlibpath_var=LD_LIBRARY_PATH
10723  ;;
10724
10725freebsd1*)
10726  dynamic_linker=no
10727  ;;
10728
10729kfreebsd*-gnu)
10730  version_type=linux
10731  need_lib_prefix=no
10732  need_version=no
10733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10734  soname_spec='${libname}${release}${shared_ext}$major'
10735  shlibpath_var=LD_LIBRARY_PATH
10736  shlibpath_overrides_runpath=no
10737  hardcode_into_libs=yes
10738  dynamic_linker='GNU ld.so'
10739  ;;
10740
10741freebsd* | dragonfly*)
10742  # DragonFly does not have aout.  When/if they implement a new
10743  # versioning mechanism, adjust this.
10744  if test -x /usr/bin/objformat; then
10745    objformat=`/usr/bin/objformat`
10746  else
10747    case $host_os in
10748    freebsd[123]*) objformat=aout ;;
10749    *) objformat=elf ;;
10750    esac
10751  fi
10752  version_type=freebsd-$objformat
10753  case $version_type in
10754    freebsd-elf*)
10755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756      need_version=no
10757      need_lib_prefix=no
10758      ;;
10759    freebsd-*)
10760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10761      need_version=yes
10762      ;;
10763  esac
10764  shlibpath_var=LD_LIBRARY_PATH
10765  case $host_os in
10766  freebsd2*)
10767    shlibpath_overrides_runpath=yes
10768    ;;
10769  freebsd3.[01]* | freebsdelf3.[01]*)
10770    shlibpath_overrides_runpath=yes
10771    hardcode_into_libs=yes
10772    ;;
10773  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10774  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10775    shlibpath_overrides_runpath=no
10776    hardcode_into_libs=yes
10777    ;;
10778  freebsd*) # from 4.6 on
10779    shlibpath_overrides_runpath=yes
10780    hardcode_into_libs=yes
10781    ;;
10782  esac
10783  ;;
10784
10785gnu*)
10786  version_type=linux
10787  need_lib_prefix=no
10788  need_version=no
10789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10790  soname_spec='${libname}${release}${shared_ext}$major'
10791  shlibpath_var=LD_LIBRARY_PATH
10792  hardcode_into_libs=yes
10793  ;;
10794
10795hpux9* | hpux10* | hpux11*)
10796  # Give a soname corresponding to the major version so that dld.sl refuses to
10797  # link against other versions.
10798  version_type=sunos
10799  need_lib_prefix=no
10800  need_version=no
10801  case $host_cpu in
10802  ia64*)
10803    shrext_cmds='.so'
10804    hardcode_into_libs=yes
10805    dynamic_linker="$host_os dld.so"
10806    shlibpath_var=LD_LIBRARY_PATH
10807    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10808    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809    soname_spec='${libname}${release}${shared_ext}$major'
10810    if test "X$HPUX_IA64_MODE" = X32; then
10811      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10812    else
10813      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10814    fi
10815    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10816    ;;
10817   hppa*64*)
10818     shrext_cmds='.sl'
10819     hardcode_into_libs=yes
10820     dynamic_linker="$host_os dld.sl"
10821     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824     soname_spec='${libname}${release}${shared_ext}$major'
10825     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10827     ;;
10828   *)
10829    shrext_cmds='.sl'
10830    dynamic_linker="$host_os dld.sl"
10831    shlibpath_var=SHLIB_PATH
10832    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10833    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834    soname_spec='${libname}${release}${shared_ext}$major'
10835    ;;
10836  esac
10837  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10838  postinstall_cmds='chmod 555 $lib'
10839  ;;
10840
10841interix3*)
10842  version_type=linux
10843  need_lib_prefix=no
10844  need_version=no
10845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10846  soname_spec='${libname}${release}${shared_ext}$major'
10847  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10848  shlibpath_var=LD_LIBRARY_PATH
10849  shlibpath_overrides_runpath=no
10850  hardcode_into_libs=yes
10851  ;;
10852
10853irix5* | irix6* | nonstopux*)
10854  case $host_os in
10855    nonstopux*) version_type=nonstopux ;;
10856    *)
10857	if test "$lt_cv_prog_gnu_ld" = yes; then
10858		version_type=linux
10859	else
10860		version_type=irix
10861	fi ;;
10862  esac
10863  need_lib_prefix=no
10864  need_version=no
10865  soname_spec='${libname}${release}${shared_ext}$major'
10866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10867  case $host_os in
10868  irix5* | nonstopux*)
10869    libsuff= shlibsuff=
10870    ;;
10871  *)
10872    case $LD in # libtool.m4 will add one of these switches to LD
10873    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10874      libsuff= shlibsuff= libmagic=32-bit;;
10875    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10876      libsuff=32 shlibsuff=N32 libmagic=N32;;
10877    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10878      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10879    *) libsuff= shlibsuff= libmagic=never-match;;
10880    esac
10881    ;;
10882  esac
10883  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10884  shlibpath_overrides_runpath=no
10885  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10886  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10887  hardcode_into_libs=yes
10888  ;;
10889
10890# No shared lib support for Linux oldld, aout, or coff.
10891linux*oldld* | linux*aout* | linux*coff*)
10892  dynamic_linker=no
10893  ;;
10894
10895# This must be Linux ELF.
10896linux*)
10897  version_type=linux
10898  need_lib_prefix=no
10899  need_version=no
10900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901  soname_spec='${libname}${release}${shared_ext}$major'
10902  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10903  shlibpath_var=LD_LIBRARY_PATH
10904  shlibpath_overrides_runpath=no
10905  # This implies no fast_install, which is unacceptable.
10906  # Some rework will be needed to allow for fast_install
10907  # before this can be enabled.
10908  hardcode_into_libs=yes
10909
10910  # Append ld.so.conf contents to the search path
10911  if test -f /etc/ld.so.conf; then
10912    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' ' '`
10913    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10914  fi
10915
10916  # We used to test for /lib/ld.so.1 and disable shared libraries on
10917  # powerpc, because MkLinux only supported shared libraries with the
10918  # GNU dynamic linker.  Since this was broken with cross compilers,
10919  # most powerpc-linux boxes support dynamic linking these days and
10920  # people can always --disable-shared, the test was removed, and we
10921  # assume the GNU/Linux dynamic linker is in use.
10922  dynamic_linker='GNU/Linux ld.so'
10923  ;;
10924
10925knetbsd*-gnu)
10926  version_type=linux
10927  need_lib_prefix=no
10928  need_version=no
10929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10930  soname_spec='${libname}${release}${shared_ext}$major'
10931  shlibpath_var=LD_LIBRARY_PATH
10932  shlibpath_overrides_runpath=no
10933  hardcode_into_libs=yes
10934  dynamic_linker='GNU ld.so'
10935  ;;
10936
10937netbsd*)
10938  version_type=sunos
10939  need_lib_prefix=no
10940  need_version=no
10941  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10942    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10943    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10944    dynamic_linker='NetBSD (a.out) ld.so'
10945  else
10946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10947    soname_spec='${libname}${release}${shared_ext}$major'
10948    dynamic_linker='NetBSD ld.elf_so'
10949  fi
10950  shlibpath_var=LD_LIBRARY_PATH
10951  shlibpath_overrides_runpath=yes
10952  hardcode_into_libs=yes
10953  ;;
10954
10955newsos6)
10956  version_type=linux
10957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958  shlibpath_var=LD_LIBRARY_PATH
10959  shlibpath_overrides_runpath=yes
10960  ;;
10961
10962nto-qnx*)
10963  version_type=linux
10964  need_lib_prefix=no
10965  need_version=no
10966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967  soname_spec='${libname}${release}${shared_ext}$major'
10968  shlibpath_var=LD_LIBRARY_PATH
10969  shlibpath_overrides_runpath=yes
10970  ;;
10971
10972openbsd*)
10973  version_type=sunos
10974  sys_lib_dlsearch_path_spec="/usr/lib"
10975  need_lib_prefix=no
10976  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10977  case $host_os in
10978    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10979    *)                         need_version=no  ;;
10980  esac
10981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10982  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10983  shlibpath_var=LD_LIBRARY_PATH
10984  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10985    case $host_os in
10986      openbsd2.[89] | openbsd2.[89].*)
10987	shlibpath_overrides_runpath=no
10988	;;
10989      *)
10990	shlibpath_overrides_runpath=yes
10991	;;
10992      esac
10993  else
10994    shlibpath_overrides_runpath=yes
10995  fi
10996  ;;
10997
10998os2*)
10999  libname_spec='$name'
11000  shrext_cmds=".dll"
11001  need_lib_prefix=no
11002  library_names_spec='$libname${shared_ext} $libname.a'
11003  dynamic_linker='OS/2 ld.exe'
11004  shlibpath_var=LIBPATH
11005  ;;
11006
11007osf3* | osf4* | osf5*)
11008  version_type=osf
11009  need_lib_prefix=no
11010  need_version=no
11011  soname_spec='${libname}${release}${shared_ext}$major'
11012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013  shlibpath_var=LD_LIBRARY_PATH
11014  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11015  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11016  ;;
11017
11018solaris*)
11019  version_type=linux
11020  need_lib_prefix=no
11021  need_version=no
11022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023  soname_spec='${libname}${release}${shared_ext}$major'
11024  shlibpath_var=LD_LIBRARY_PATH
11025  shlibpath_overrides_runpath=yes
11026  hardcode_into_libs=yes
11027  # ldd complains unless libraries are executable
11028  postinstall_cmds='chmod +x $lib'
11029  ;;
11030
11031sunos4*)
11032  version_type=sunos
11033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035  shlibpath_var=LD_LIBRARY_PATH
11036  shlibpath_overrides_runpath=yes
11037  if test "$with_gnu_ld" = yes; then
11038    need_lib_prefix=no
11039  fi
11040  need_version=yes
11041  ;;
11042
11043sysv4 | sysv4.3*)
11044  version_type=linux
11045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046  soname_spec='${libname}${release}${shared_ext}$major'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  case $host_vendor in
11049    sni)
11050      shlibpath_overrides_runpath=no
11051      need_lib_prefix=no
11052      export_dynamic_flag_spec='${wl}-Blargedynsym'
11053      runpath_var=LD_RUN_PATH
11054      ;;
11055    siemens)
11056      need_lib_prefix=no
11057      ;;
11058    motorola)
11059      need_lib_prefix=no
11060      need_version=no
11061      shlibpath_overrides_runpath=no
11062      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063      ;;
11064  esac
11065  ;;
11066
11067sysv4*MP*)
11068  if test -d /usr/nec ;then
11069    version_type=linux
11070    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071    soname_spec='$libname${shared_ext}.$major'
11072    shlibpath_var=LD_LIBRARY_PATH
11073  fi
11074  ;;
11075
11076sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077  version_type=freebsd-elf
11078  need_lib_prefix=no
11079  need_version=no
11080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081  soname_spec='${libname}${release}${shared_ext}$major'
11082  shlibpath_var=LD_LIBRARY_PATH
11083  hardcode_into_libs=yes
11084  if test "$with_gnu_ld" = yes; then
11085    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086    shlibpath_overrides_runpath=no
11087  else
11088    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11089    shlibpath_overrides_runpath=yes
11090    case $host_os in
11091      sco3.2v5*)
11092        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11093	;;
11094    esac
11095  fi
11096  sys_lib_dlsearch_path_spec='/usr/lib'
11097  ;;
11098
11099uts4*)
11100  version_type=linux
11101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102  soname_spec='${libname}${release}${shared_ext}$major'
11103  shlibpath_var=LD_LIBRARY_PATH
11104  ;;
11105
11106*)
11107  dynamic_linker=no
11108  ;;
11109esac
11110echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11111echo "${ECHO_T}$dynamic_linker" >&6
11112test "$dynamic_linker" = no && can_build_shared=no
11113
11114variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11115if test "$GCC" = yes; then
11116  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11117fi
11118
11119echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11120echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11121hardcode_action=
11122if test -n "$hardcode_libdir_flag_spec" || \
11123   test -n "$runpath_var" || \
11124   test "X$hardcode_automatic" = "Xyes" ; then
11125
11126  # We can hardcode non-existant directories.
11127  if test "$hardcode_direct" != no &&
11128     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11129     # have to relink, otherwise we might link with an installed library
11130     # when we should be linking with a yet-to-be-installed one
11131     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11132     test "$hardcode_minus_L" != no; then
11133    # Linking always hardcodes the temporary library directory.
11134    hardcode_action=relink
11135  else
11136    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11137    hardcode_action=immediate
11138  fi
11139else
11140  # We cannot hardcode anything, or else we can only hardcode existing
11141  # directories.
11142  hardcode_action=unsupported
11143fi
11144echo "$as_me:$LINENO: result: $hardcode_action" >&5
11145echo "${ECHO_T}$hardcode_action" >&6
11146
11147if test "$hardcode_action" = relink; then
11148  # Fast installation is not supported
11149  enable_fast_install=no
11150elif test "$shlibpath_overrides_runpath" = yes ||
11151     test "$enable_shared" = no; then
11152  # Fast installation is not necessary
11153  enable_fast_install=needless
11154fi
11155
11156striplib=
11157old_striplib=
11158echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11159echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11160if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11161  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11162  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11163  echo "$as_me:$LINENO: result: yes" >&5
11164echo "${ECHO_T}yes" >&6
11165else
11166# FIXME - insert some real tests, host_os isn't really good enough
11167  case $host_os in
11168   darwin*)
11169       if test -n "$STRIP" ; then
11170         striplib="$STRIP -x"
11171         echo "$as_me:$LINENO: result: yes" >&5
11172echo "${ECHO_T}yes" >&6
11173       else
11174  echo "$as_me:$LINENO: result: no" >&5
11175echo "${ECHO_T}no" >&6
11176fi
11177       ;;
11178   *)
11179  echo "$as_me:$LINENO: result: no" >&5
11180echo "${ECHO_T}no" >&6
11181    ;;
11182  esac
11183fi
11184
11185if test "x$enable_dlopen" != xyes; then
11186  enable_dlopen=unknown
11187  enable_dlopen_self=unknown
11188  enable_dlopen_self_static=unknown
11189else
11190  lt_cv_dlopen=no
11191  lt_cv_dlopen_libs=
11192
11193  case $host_os in
11194  beos*)
11195    lt_cv_dlopen="load_add_on"
11196    lt_cv_dlopen_libs=
11197    lt_cv_dlopen_self=yes
11198    ;;
11199
11200  mingw* | pw32*)
11201    lt_cv_dlopen="LoadLibrary"
11202    lt_cv_dlopen_libs=
11203   ;;
11204
11205  cygwin*)
11206    lt_cv_dlopen="dlopen"
11207    lt_cv_dlopen_libs=
11208   ;;
11209
11210  darwin*)
11211  # if libdl is installed we need to link against it
11212    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11213echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11214if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11215  echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217  ac_check_lib_save_LIBS=$LIBS
11218LIBS="-ldl  $LIBS"
11219cat >conftest.$ac_ext <<_ACEOF
11220/* confdefs.h.  */
11221_ACEOF
11222cat confdefs.h >>conftest.$ac_ext
11223cat >>conftest.$ac_ext <<_ACEOF
11224/* end confdefs.h.  */
11225
11226/* Override any gcc2 internal prototype to avoid an error.  */
11227#ifdef __cplusplus
11228extern "C"
11229#endif
11230/* We use char because int might match the return type of a gcc2
11231   builtin and then its argument prototype would still apply.  */
11232char dlopen ();
11233#ifdef F77_DUMMY_MAIN
11234
11235#  ifdef __cplusplus
11236     extern "C"
11237#  endif
11238   int F77_DUMMY_MAIN() { return 1; }
11239
11240#endif
11241int
11242main ()
11243{
11244dlopen ();
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249rm -f conftest.$ac_objext conftest$ac_exeext
11250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251  (eval $ac_link) 2>conftest.er1
11252  ac_status=$?
11253  grep -v '^ *+' conftest.er1 >conftest.err
11254  rm -f conftest.er1
11255  cat conftest.err >&5
11256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257  (exit $ac_status); } &&
11258	 { ac_try='test -z "$ac_c_werror_flag"
11259			 || test ! -s conftest.err'
11260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261  (eval $ac_try) 2>&5
11262  ac_status=$?
11263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264  (exit $ac_status); }; } &&
11265	 { ac_try='test -s conftest$ac_exeext'
11266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267  (eval $ac_try) 2>&5
11268  ac_status=$?
11269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270  (exit $ac_status); }; }; then
11271  ac_cv_lib_dl_dlopen=yes
11272else
11273  echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
11276ac_cv_lib_dl_dlopen=no
11277fi
11278rm -f conftest.err conftest.$ac_objext \
11279      conftest$ac_exeext conftest.$ac_ext
11280LIBS=$ac_check_lib_save_LIBS
11281fi
11282echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11283echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11284if test $ac_cv_lib_dl_dlopen = yes; then
11285  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11286else
11287
11288    lt_cv_dlopen="dyld"
11289    lt_cv_dlopen_libs=
11290    lt_cv_dlopen_self=yes
11291
11292fi
11293
11294   ;;
11295
11296  *)
11297    echo "$as_me:$LINENO: checking for shl_load" >&5
11298echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11299if test "${ac_cv_func_shl_load+set}" = set; then
11300  echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302  cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h.  */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h.  */
11308/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11309   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11310#define shl_load innocuous_shl_load
11311
11312/* System header to define __stub macros and hopefully few prototypes,
11313    which can conflict with char shl_load (); below.
11314    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11315    <limits.h> exists even on freestanding compilers.  */
11316
11317#ifdef __STDC__
11318# include <limits.h>
11319#else
11320# include <assert.h>
11321#endif
11322
11323#undef shl_load
11324
11325/* Override any gcc2 internal prototype to avoid an error.  */
11326#ifdef __cplusplus
11327extern "C"
11328{
11329#endif
11330/* We use char because int might match the return type of a gcc2
11331   builtin and then its argument prototype would still apply.  */
11332char shl_load ();
11333/* The GNU C library defines this for functions which it implements
11334    to always fail with ENOSYS.  Some functions are actually named
11335    something starting with __ and the normal name is an alias.  */
11336#if defined (__stub_shl_load) || defined (__stub___shl_load)
11337choke me
11338#else
11339char (*f) () = shl_load;
11340#endif
11341#ifdef __cplusplus
11342}
11343#endif
11344
11345#ifdef F77_DUMMY_MAIN
11346
11347#  ifdef __cplusplus
11348     extern "C"
11349#  endif
11350   int F77_DUMMY_MAIN() { return 1; }
11351
11352#endif
11353int
11354main ()
11355{
11356return f != shl_load;
11357  ;
11358  return 0;
11359}
11360_ACEOF
11361rm -f conftest.$ac_objext conftest$ac_exeext
11362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363  (eval $ac_link) 2>conftest.er1
11364  ac_status=$?
11365  grep -v '^ *+' conftest.er1 >conftest.err
11366  rm -f conftest.er1
11367  cat conftest.err >&5
11368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369  (exit $ac_status); } &&
11370	 { ac_try='test -z "$ac_c_werror_flag"
11371			 || test ! -s conftest.err'
11372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373  (eval $ac_try) 2>&5
11374  ac_status=$?
11375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376  (exit $ac_status); }; } &&
11377	 { ac_try='test -s conftest$ac_exeext'
11378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379  (eval $ac_try) 2>&5
11380  ac_status=$?
11381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382  (exit $ac_status); }; }; then
11383  ac_cv_func_shl_load=yes
11384else
11385  echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
11388ac_cv_func_shl_load=no
11389fi
11390rm -f conftest.err conftest.$ac_objext \
11391      conftest$ac_exeext conftest.$ac_ext
11392fi
11393echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11394echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11395if test $ac_cv_func_shl_load = yes; then
11396  lt_cv_dlopen="shl_load"
11397else
11398  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11399echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11400if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11401  echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403  ac_check_lib_save_LIBS=$LIBS
11404LIBS="-ldld  $LIBS"
11405cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h.  */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h.  */
11411
11412/* Override any gcc2 internal prototype to avoid an error.  */
11413#ifdef __cplusplus
11414extern "C"
11415#endif
11416/* We use char because int might match the return type of a gcc2
11417   builtin and then its argument prototype would still apply.  */
11418char shl_load ();
11419#ifdef F77_DUMMY_MAIN
11420
11421#  ifdef __cplusplus
11422     extern "C"
11423#  endif
11424   int F77_DUMMY_MAIN() { return 1; }
11425
11426#endif
11427int
11428main ()
11429{
11430shl_load ();
11431  ;
11432  return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext conftest$ac_exeext
11436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437  (eval $ac_link) 2>conftest.er1
11438  ac_status=$?
11439  grep -v '^ *+' conftest.er1 >conftest.err
11440  rm -f conftest.er1
11441  cat conftest.err >&5
11442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443  (exit $ac_status); } &&
11444	 { ac_try='test -z "$ac_c_werror_flag"
11445			 || test ! -s conftest.err'
11446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447  (eval $ac_try) 2>&5
11448  ac_status=$?
11449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450  (exit $ac_status); }; } &&
11451	 { ac_try='test -s conftest$ac_exeext'
11452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453  (eval $ac_try) 2>&5
11454  ac_status=$?
11455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456  (exit $ac_status); }; }; then
11457  ac_cv_lib_dld_shl_load=yes
11458else
11459  echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
11462ac_cv_lib_dld_shl_load=no
11463fi
11464rm -f conftest.err conftest.$ac_objext \
11465      conftest$ac_exeext conftest.$ac_ext
11466LIBS=$ac_check_lib_save_LIBS
11467fi
11468echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11469echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11470if test $ac_cv_lib_dld_shl_load = yes; then
11471  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11472else
11473  echo "$as_me:$LINENO: checking for dlopen" >&5
11474echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11475if test "${ac_cv_func_dlopen+set}" = set; then
11476  echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478  cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h.  */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h.  */
11484/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11485   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11486#define dlopen innocuous_dlopen
11487
11488/* System header to define __stub macros and hopefully few prototypes,
11489    which can conflict with char dlopen (); below.
11490    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11491    <limits.h> exists even on freestanding compilers.  */
11492
11493#ifdef __STDC__
11494# include <limits.h>
11495#else
11496# include <assert.h>
11497#endif
11498
11499#undef dlopen
11500
11501/* Override any gcc2 internal prototype to avoid an error.  */
11502#ifdef __cplusplus
11503extern "C"
11504{
11505#endif
11506/* We use char because int might match the return type of a gcc2
11507   builtin and then its argument prototype would still apply.  */
11508char dlopen ();
11509/* The GNU C library defines this for functions which it implements
11510    to always fail with ENOSYS.  Some functions are actually named
11511    something starting with __ and the normal name is an alias.  */
11512#if defined (__stub_dlopen) || defined (__stub___dlopen)
11513choke me
11514#else
11515char (*f) () = dlopen;
11516#endif
11517#ifdef __cplusplus
11518}
11519#endif
11520
11521#ifdef F77_DUMMY_MAIN
11522
11523#  ifdef __cplusplus
11524     extern "C"
11525#  endif
11526   int F77_DUMMY_MAIN() { return 1; }
11527
11528#endif
11529int
11530main ()
11531{
11532return f != dlopen;
11533  ;
11534  return 0;
11535}
11536_ACEOF
11537rm -f conftest.$ac_objext conftest$ac_exeext
11538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539  (eval $ac_link) 2>conftest.er1
11540  ac_status=$?
11541  grep -v '^ *+' conftest.er1 >conftest.err
11542  rm -f conftest.er1
11543  cat conftest.err >&5
11544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545  (exit $ac_status); } &&
11546	 { ac_try='test -z "$ac_c_werror_flag"
11547			 || test ! -s conftest.err'
11548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549  (eval $ac_try) 2>&5
11550  ac_status=$?
11551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552  (exit $ac_status); }; } &&
11553	 { ac_try='test -s conftest$ac_exeext'
11554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555  (eval $ac_try) 2>&5
11556  ac_status=$?
11557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558  (exit $ac_status); }; }; then
11559  ac_cv_func_dlopen=yes
11560else
11561  echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564ac_cv_func_dlopen=no
11565fi
11566rm -f conftest.err conftest.$ac_objext \
11567      conftest$ac_exeext conftest.$ac_ext
11568fi
11569echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11570echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11571if test $ac_cv_func_dlopen = yes; then
11572  lt_cv_dlopen="dlopen"
11573else
11574  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11575echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11576if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11577  echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579  ac_check_lib_save_LIBS=$LIBS
11580LIBS="-ldl  $LIBS"
11581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h.  */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h.  */
11587
11588/* Override any gcc2 internal prototype to avoid an error.  */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592/* We use char because int might match the return type of a gcc2
11593   builtin and then its argument prototype would still apply.  */
11594char dlopen ();
11595#ifdef F77_DUMMY_MAIN
11596
11597#  ifdef __cplusplus
11598     extern "C"
11599#  endif
11600   int F77_DUMMY_MAIN() { return 1; }
11601
11602#endif
11603int
11604main ()
11605{
11606dlopen ();
11607  ;
11608  return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext conftest$ac_exeext
11612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613  (eval $ac_link) 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } &&
11620	 { ac_try='test -z "$ac_c_werror_flag"
11621			 || test ! -s conftest.err'
11622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623  (eval $ac_try) 2>&5
11624  ac_status=$?
11625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626  (exit $ac_status); }; } &&
11627	 { ac_try='test -s conftest$ac_exeext'
11628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629  (eval $ac_try) 2>&5
11630  ac_status=$?
11631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632  (exit $ac_status); }; }; then
11633  ac_cv_lib_dl_dlopen=yes
11634else
11635  echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638ac_cv_lib_dl_dlopen=no
11639fi
11640rm -f conftest.err conftest.$ac_objext \
11641      conftest$ac_exeext conftest.$ac_ext
11642LIBS=$ac_check_lib_save_LIBS
11643fi
11644echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11646if test $ac_cv_lib_dl_dlopen = yes; then
11647  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648else
11649  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11650echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11651if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11652  echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654  ac_check_lib_save_LIBS=$LIBS
11655LIBS="-lsvld  $LIBS"
11656cat >conftest.$ac_ext <<_ACEOF
11657/* confdefs.h.  */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h.  */
11662
11663/* Override any gcc2 internal prototype to avoid an error.  */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667/* We use char because int might match the return type of a gcc2
11668   builtin and then its argument prototype would still apply.  */
11669char dlopen ();
11670#ifdef F77_DUMMY_MAIN
11671
11672#  ifdef __cplusplus
11673     extern "C"
11674#  endif
11675   int F77_DUMMY_MAIN() { return 1; }
11676
11677#endif
11678int
11679main ()
11680{
11681dlopen ();
11682  ;
11683  return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext conftest$ac_exeext
11687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11688  (eval $ac_link) 2>conftest.er1
11689  ac_status=$?
11690  grep -v '^ *+' conftest.er1 >conftest.err
11691  rm -f conftest.er1
11692  cat conftest.err >&5
11693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694  (exit $ac_status); } &&
11695	 { ac_try='test -z "$ac_c_werror_flag"
11696			 || test ! -s conftest.err'
11697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698  (eval $ac_try) 2>&5
11699  ac_status=$?
11700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701  (exit $ac_status); }; } &&
11702	 { ac_try='test -s conftest$ac_exeext'
11703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704  (eval $ac_try) 2>&5
11705  ac_status=$?
11706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707  (exit $ac_status); }; }; then
11708  ac_cv_lib_svld_dlopen=yes
11709else
11710  echo "$as_me: failed program was:" >&5
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
11713ac_cv_lib_svld_dlopen=no
11714fi
11715rm -f conftest.err conftest.$ac_objext \
11716      conftest$ac_exeext conftest.$ac_ext
11717LIBS=$ac_check_lib_save_LIBS
11718fi
11719echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11720echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11721if test $ac_cv_lib_svld_dlopen = yes; then
11722  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11723else
11724  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11725echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11726if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11727  echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729  ac_check_lib_save_LIBS=$LIBS
11730LIBS="-ldld  $LIBS"
11731cat >conftest.$ac_ext <<_ACEOF
11732/* confdefs.h.  */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h.  */
11737
11738/* Override any gcc2 internal prototype to avoid an error.  */
11739#ifdef __cplusplus
11740extern "C"
11741#endif
11742/* We use char because int might match the return type of a gcc2
11743   builtin and then its argument prototype would still apply.  */
11744char dld_link ();
11745#ifdef F77_DUMMY_MAIN
11746
11747#  ifdef __cplusplus
11748     extern "C"
11749#  endif
11750   int F77_DUMMY_MAIN() { return 1; }
11751
11752#endif
11753int
11754main ()
11755{
11756dld_link ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761rm -f conftest.$ac_objext conftest$ac_exeext
11762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763  (eval $ac_link) 2>conftest.er1
11764  ac_status=$?
11765  grep -v '^ *+' conftest.er1 >conftest.err
11766  rm -f conftest.er1
11767  cat conftest.err >&5
11768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769  (exit $ac_status); } &&
11770	 { ac_try='test -z "$ac_c_werror_flag"
11771			 || test ! -s conftest.err'
11772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773  (eval $ac_try) 2>&5
11774  ac_status=$?
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); }; } &&
11777	 { ac_try='test -s conftest$ac_exeext'
11778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779  (eval $ac_try) 2>&5
11780  ac_status=$?
11781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782  (exit $ac_status); }; }; then
11783  ac_cv_lib_dld_dld_link=yes
11784else
11785  echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
11788ac_cv_lib_dld_dld_link=no
11789fi
11790rm -f conftest.err conftest.$ac_objext \
11791      conftest$ac_exeext conftest.$ac_ext
11792LIBS=$ac_check_lib_save_LIBS
11793fi
11794echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11795echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11796if test $ac_cv_lib_dld_dld_link = yes; then
11797  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11798fi
11799
11800
11801fi
11802
11803
11804fi
11805
11806
11807fi
11808
11809
11810fi
11811
11812
11813fi
11814
11815    ;;
11816  esac
11817
11818  if test "x$lt_cv_dlopen" != xno; then
11819    enable_dlopen=yes
11820  else
11821    enable_dlopen=no
11822  fi
11823
11824  case $lt_cv_dlopen in
11825  dlopen)
11826    save_CPPFLAGS="$CPPFLAGS"
11827    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11828
11829    save_LDFLAGS="$LDFLAGS"
11830    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11831
11832    save_LIBS="$LIBS"
11833    LIBS="$lt_cv_dlopen_libs $LIBS"
11834
11835    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11836echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11837if test "${lt_cv_dlopen_self+set}" = set; then
11838  echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840  	  if test "$cross_compiling" = yes; then :
11841  lt_cv_dlopen_self=cross
11842else
11843  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11844  lt_status=$lt_dlunknown
11845  cat > conftest.$ac_ext <<EOF
11846#line 11846 "configure"
11847#include "confdefs.h"
11848
11849#if HAVE_DLFCN_H
11850#include <dlfcn.h>
11851#endif
11852
11853#include <stdio.h>
11854
11855#ifdef RTLD_GLOBAL
11856#  define LT_DLGLOBAL		RTLD_GLOBAL
11857#else
11858#  ifdef DL_GLOBAL
11859#    define LT_DLGLOBAL		DL_GLOBAL
11860#  else
11861#    define LT_DLGLOBAL		0
11862#  endif
11863#endif
11864
11865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866   find out it does not work in some platform. */
11867#ifndef LT_DLLAZY_OR_NOW
11868#  ifdef RTLD_LAZY
11869#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11870#  else
11871#    ifdef DL_LAZY
11872#      define LT_DLLAZY_OR_NOW		DL_LAZY
11873#    else
11874#      ifdef RTLD_NOW
11875#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11876#      else
11877#        ifdef DL_NOW
11878#          define LT_DLLAZY_OR_NOW	DL_NOW
11879#        else
11880#          define LT_DLLAZY_OR_NOW	0
11881#        endif
11882#      endif
11883#    endif
11884#  endif
11885#endif
11886
11887#ifdef __cplusplus
11888extern "C" void exit (int);
11889#endif
11890
11891void fnord() { int i=42;}
11892int main ()
11893{
11894  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11895  int status = $lt_dlunknown;
11896
11897  if (self)
11898    {
11899      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11900      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11901      /* dlclose (self); */
11902    }
11903  else
11904    puts (dlerror ());
11905
11906    exit (status);
11907}
11908EOF
11909  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910  (eval $ac_link) 2>&5
11911  ac_status=$?
11912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11914    (./conftest; exit; ) >&5 2>/dev/null
11915    lt_status=$?
11916    case x$lt_status in
11917      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11918      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11919      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11920    esac
11921  else :
11922    # compilation failed
11923    lt_cv_dlopen_self=no
11924  fi
11925fi
11926rm -fr conftest*
11927
11928
11929fi
11930echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11931echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11932
11933    if test "x$lt_cv_dlopen_self" = xyes; then
11934      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11935      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11936echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11937if test "${lt_cv_dlopen_self_static+set}" = set; then
11938  echo $ECHO_N "(cached) $ECHO_C" >&6
11939else
11940  	  if test "$cross_compiling" = yes; then :
11941  lt_cv_dlopen_self_static=cross
11942else
11943  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11944  lt_status=$lt_dlunknown
11945  cat > conftest.$ac_ext <<EOF
11946#line 11946 "configure"
11947#include "confdefs.h"
11948
11949#if HAVE_DLFCN_H
11950#include <dlfcn.h>
11951#endif
11952
11953#include <stdio.h>
11954
11955#ifdef RTLD_GLOBAL
11956#  define LT_DLGLOBAL		RTLD_GLOBAL
11957#else
11958#  ifdef DL_GLOBAL
11959#    define LT_DLGLOBAL		DL_GLOBAL
11960#  else
11961#    define LT_DLGLOBAL		0
11962#  endif
11963#endif
11964
11965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11966   find out it does not work in some platform. */
11967#ifndef LT_DLLAZY_OR_NOW
11968#  ifdef RTLD_LAZY
11969#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11970#  else
11971#    ifdef DL_LAZY
11972#      define LT_DLLAZY_OR_NOW		DL_LAZY
11973#    else
11974#      ifdef RTLD_NOW
11975#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11976#      else
11977#        ifdef DL_NOW
11978#          define LT_DLLAZY_OR_NOW	DL_NOW
11979#        else
11980#          define LT_DLLAZY_OR_NOW	0
11981#        endif
11982#      endif
11983#    endif
11984#  endif
11985#endif
11986
11987#ifdef __cplusplus
11988extern "C" void exit (int);
11989#endif
11990
11991void fnord() { int i=42;}
11992int main ()
11993{
11994  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11995  int status = $lt_dlunknown;
11996
11997  if (self)
11998    {
11999      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12000      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12001      /* dlclose (self); */
12002    }
12003  else
12004    puts (dlerror ());
12005
12006    exit (status);
12007}
12008EOF
12009  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010  (eval $ac_link) 2>&5
12011  ac_status=$?
12012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12014    (./conftest; exit; ) >&5 2>/dev/null
12015    lt_status=$?
12016    case x$lt_status in
12017      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12018      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12019      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12020    esac
12021  else :
12022    # compilation failed
12023    lt_cv_dlopen_self_static=no
12024  fi
12025fi
12026rm -fr conftest*
12027
12028
12029fi
12030echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12031echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12032    fi
12033
12034    CPPFLAGS="$save_CPPFLAGS"
12035    LDFLAGS="$save_LDFLAGS"
12036    LIBS="$save_LIBS"
12037    ;;
12038  esac
12039
12040  case $lt_cv_dlopen_self in
12041  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12042  *) enable_dlopen_self=unknown ;;
12043  esac
12044
12045  case $lt_cv_dlopen_self_static in
12046  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12047  *) enable_dlopen_self_static=unknown ;;
12048  esac
12049fi
12050
12051
12052# Report which library types will actually be built
12053echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12054echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12055echo "$as_me:$LINENO: result: $can_build_shared" >&5
12056echo "${ECHO_T}$can_build_shared" >&6
12057
12058echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12059echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12060test "$can_build_shared" = "no" && enable_shared=no
12061
12062# On AIX, shared libraries and static libraries use the same namespace, and
12063# are all built from PIC.
12064case $host_os in
12065aix3*)
12066  test "$enable_shared" = yes && enable_static=no
12067  if test -n "$RANLIB"; then
12068    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12069    postinstall_cmds='$RANLIB $lib'
12070  fi
12071  ;;
12072
12073aix4* | aix5*)
12074  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12075    test "$enable_shared" = yes && enable_static=no
12076  fi
12077    ;;
12078esac
12079echo "$as_me:$LINENO: result: $enable_shared" >&5
12080echo "${ECHO_T}$enable_shared" >&6
12081
12082echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12083echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12084# Make sure either enable_shared or enable_static is yes.
12085test "$enable_shared" = yes || enable_static=yes
12086echo "$as_me:$LINENO: result: $enable_static" >&5
12087echo "${ECHO_T}$enable_static" >&6
12088
12089# The else clause should only fire when bootstrapping the
12090# libtool distribution, otherwise you forgot to ship ltmain.sh
12091# with your package, and you will get complaints that there are
12092# no rules to generate ltmain.sh.
12093if test -f "$ltmain"; then
12094  # See if we are running on zsh, and set the options which allow our commands through
12095  # without removal of \ escapes.
12096  if test -n "${ZSH_VERSION+set}" ; then
12097    setopt NO_GLOB_SUBST
12098  fi
12099  # Now quote all the things that may contain metacharacters while being
12100  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12101  # variables and quote the copies for generation of the libtool script.
12102  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12103    SED SHELL STRIP \
12104    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12105    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12106    deplibs_check_method reload_flag reload_cmds need_locks \
12107    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12108    lt_cv_sys_global_symbol_to_c_name_address \
12109    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12110    old_postinstall_cmds old_postuninstall_cmds \
12111    compiler \
12112    CC \
12113    LD \
12114    lt_prog_compiler_wl \
12115    lt_prog_compiler_pic \
12116    lt_prog_compiler_static \
12117    lt_prog_compiler_no_builtin_flag \
12118    export_dynamic_flag_spec \
12119    thread_safe_flag_spec \
12120    whole_archive_flag_spec \
12121    enable_shared_with_static_runtimes \
12122    old_archive_cmds \
12123    old_archive_from_new_cmds \
12124    predep_objects \
12125    postdep_objects \
12126    predeps \
12127    postdeps \
12128    compiler_lib_search_path \
12129    archive_cmds \
12130    archive_expsym_cmds \
12131    postinstall_cmds \
12132    postuninstall_cmds \
12133    old_archive_from_expsyms_cmds \
12134    allow_undefined_flag \
12135    no_undefined_flag \
12136    export_symbols_cmds \
12137    hardcode_libdir_flag_spec \
12138    hardcode_libdir_flag_spec_ld \
12139    hardcode_libdir_separator \
12140    hardcode_automatic \
12141    module_cmds \
12142    module_expsym_cmds \
12143    lt_cv_prog_compiler_c_o \
12144    exclude_expsyms \
12145    include_expsyms; do
12146
12147    case $var in
12148    old_archive_cmds | \
12149    old_archive_from_new_cmds | \
12150    archive_cmds | \
12151    archive_expsym_cmds | \
12152    module_cmds | \
12153    module_expsym_cmds | \
12154    old_archive_from_expsyms_cmds | \
12155    export_symbols_cmds | \
12156    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12157    postinstall_cmds | postuninstall_cmds | \
12158    old_postinstall_cmds | old_postuninstall_cmds | \
12159    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12160      # Double-quote double-evaled strings.
12161      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12162      ;;
12163    *)
12164      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12165      ;;
12166    esac
12167  done
12168
12169  case $lt_echo in
12170  *'\$0 --fallback-echo"')
12171    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12172    ;;
12173  esac
12174
12175cfgfile="${ofile}T"
12176  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12177  $rm -f "$cfgfile"
12178  { echo "$as_me:$LINENO: creating $ofile" >&5
12179echo "$as_me: creating $ofile" >&6;}
12180
12181  cat <<__EOF__ >> "$cfgfile"
12182#! $SHELL
12183
12184# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12185# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12186# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12187#
12188# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12189# Free Software Foundation, Inc.
12190#
12191# This file is part of GNU Libtool:
12192# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12193#
12194# This program is free software; you can redistribute it and/or modify
12195# it under the terms of the GNU General Public License as published by
12196# the Free Software Foundation; either version 2 of the License, or
12197# (at your option) any later version.
12198#
12199# This program is distributed in the hope that it will be useful, but
12200# WITHOUT ANY WARRANTY; without even the implied warranty of
12201# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12202# General Public License for more details.
12203#
12204# You should have received a copy of the GNU General Public License
12205# along with this program; if not, write to the Free Software
12206# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12207#
12208# As a special exception to the GNU General Public License, if you
12209# distribute this file as part of a program that contains a
12210# configuration script generated by Autoconf, you may include it under
12211# the same distribution terms that you use for the rest of that program.
12212
12213# A sed program that does not truncate output.
12214SED=$lt_SED
12215
12216# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12217Xsed="$SED -e 1s/^X//"
12218
12219# The HP-UX ksh and POSIX shell print the target directory to stdout
12220# if CDPATH is set.
12221(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12222
12223# The names of the tagged configurations supported by this script.
12224available_tags=
12225
12226# ### BEGIN LIBTOOL CONFIG
12227
12228# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12229
12230# Shell to use when invoking shell scripts.
12231SHELL=$lt_SHELL
12232
12233# Whether or not to build shared libraries.
12234build_libtool_libs=$enable_shared
12235
12236# Whether or not to build static libraries.
12237build_old_libs=$enable_static
12238
12239# Whether or not to add -lc for building shared libraries.
12240build_libtool_need_lc=$archive_cmds_need_lc
12241
12242# Whether or not to disallow shared libs when runtime libs are static
12243allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12244
12245# Whether or not to optimize for fast installation.
12246fast_install=$enable_fast_install
12247
12248# The host system.
12249host_alias=$host_alias
12250host=$host
12251host_os=$host_os
12252
12253# The build system.
12254build_alias=$build_alias
12255build=$build
12256build_os=$build_os
12257
12258# An echo program that does not interpret backslashes.
12259echo=$lt_echo
12260
12261# The archiver.
12262AR=$lt_AR
12263AR_FLAGS=$lt_AR_FLAGS
12264
12265# A C compiler.
12266LTCC=$lt_LTCC
12267
12268# LTCC compiler flags.
12269LTCFLAGS=$lt_LTCFLAGS
12270
12271# A language-specific compiler.
12272CC=$lt_compiler
12273
12274# Is the compiler the GNU C compiler?
12275with_gcc=$GCC
12276
12277# An ERE matcher.
12278EGREP=$lt_EGREP
12279
12280# The linker used to build libraries.
12281LD=$lt_LD
12282
12283# Whether we need hard or soft links.
12284LN_S=$lt_LN_S
12285
12286# A BSD-compatible nm program.
12287NM=$lt_NM
12288
12289# A symbol stripping program
12290STRIP=$lt_STRIP
12291
12292# Used to examine libraries when file_magic_cmd begins "file"
12293MAGIC_CMD=$MAGIC_CMD
12294
12295# Used on cygwin: DLL creation program.
12296DLLTOOL="$DLLTOOL"
12297
12298# Used on cygwin: object dumper.
12299OBJDUMP="$OBJDUMP"
12300
12301# Used on cygwin: assembler.
12302AS="$AS"
12303
12304# The name of the directory that contains temporary libtool files.
12305objdir=$objdir
12306
12307# How to create reloadable object files.
12308reload_flag=$lt_reload_flag
12309reload_cmds=$lt_reload_cmds
12310
12311# How to pass a linker flag through the compiler.
12312wl=$lt_lt_prog_compiler_wl
12313
12314# Object file suffix (normally "o").
12315objext="$ac_objext"
12316
12317# Old archive suffix (normally "a").
12318libext="$libext"
12319
12320# Shared library suffix (normally ".so").
12321shrext_cmds='$shrext_cmds'
12322
12323# Executable file suffix (normally "").
12324exeext="$exeext"
12325
12326# Additional compiler flags for building library objects.
12327pic_flag=$lt_lt_prog_compiler_pic
12328pic_mode=$pic_mode
12329
12330# What is the maximum length of a command?
12331max_cmd_len=$lt_cv_sys_max_cmd_len
12332
12333# Does compiler simultaneously support -c and -o options?
12334compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12335
12336# Must we lock files when doing compilation?
12337need_locks=$lt_need_locks
12338
12339# Do we need the lib prefix for modules?
12340need_lib_prefix=$need_lib_prefix
12341
12342# Do we need a version for libraries?
12343need_version=$need_version
12344
12345# Whether dlopen is supported.
12346dlopen_support=$enable_dlopen
12347
12348# Whether dlopen of programs is supported.
12349dlopen_self=$enable_dlopen_self
12350
12351# Whether dlopen of statically linked programs is supported.
12352dlopen_self_static=$enable_dlopen_self_static
12353
12354# Compiler flag to prevent dynamic linking.
12355link_static_flag=$lt_lt_prog_compiler_static
12356
12357# Compiler flag to turn off builtin functions.
12358no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12359
12360# Compiler flag to allow reflexive dlopens.
12361export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12362
12363# Compiler flag to generate shared objects directly from archives.
12364whole_archive_flag_spec=$lt_whole_archive_flag_spec
12365
12366# Compiler flag to generate thread-safe objects.
12367thread_safe_flag_spec=$lt_thread_safe_flag_spec
12368
12369# Library versioning type.
12370version_type=$version_type
12371
12372# Format of library name prefix.
12373libname_spec=$lt_libname_spec
12374
12375# List of archive names.  First name is the real one, the rest are links.
12376# The last name is the one that the linker finds with -lNAME.
12377library_names_spec=$lt_library_names_spec
12378
12379# The coded name of the library, if different from the real name.
12380soname_spec=$lt_soname_spec
12381
12382# Commands used to build and install an old-style archive.
12383RANLIB=$lt_RANLIB
12384old_archive_cmds=$lt_old_archive_cmds
12385old_postinstall_cmds=$lt_old_postinstall_cmds
12386old_postuninstall_cmds=$lt_old_postuninstall_cmds
12387
12388# Create an old-style archive from a shared archive.
12389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12390
12391# Create a temporary old-style archive to link instead of a shared archive.
12392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12393
12394# Commands used to build and install a shared archive.
12395archive_cmds=$lt_archive_cmds
12396archive_expsym_cmds=$lt_archive_expsym_cmds
12397postinstall_cmds=$lt_postinstall_cmds
12398postuninstall_cmds=$lt_postuninstall_cmds
12399
12400# Commands used to build a loadable module (assumed same as above if empty)
12401module_cmds=$lt_module_cmds
12402module_expsym_cmds=$lt_module_expsym_cmds
12403
12404# Commands to strip libraries.
12405old_striplib=$lt_old_striplib
12406striplib=$lt_striplib
12407
12408# Dependencies to place before the objects being linked to create a
12409# shared library.
12410predep_objects=$lt_predep_objects
12411
12412# Dependencies to place after the objects being linked to create a
12413# shared library.
12414postdep_objects=$lt_postdep_objects
12415
12416# Dependencies to place before the objects being linked to create a
12417# shared library.
12418predeps=$lt_predeps
12419
12420# Dependencies to place after the objects being linked to create a
12421# shared library.
12422postdeps=$lt_postdeps
12423
12424# The library search path used internally by the compiler when linking
12425# a shared library.
12426compiler_lib_search_path=$lt_compiler_lib_search_path
12427
12428# Method to check whether dependent libraries are shared objects.
12429deplibs_check_method=$lt_deplibs_check_method
12430
12431# Command to use when deplibs_check_method == file_magic.
12432file_magic_cmd=$lt_file_magic_cmd
12433
12434# Flag that allows shared libraries with undefined symbols to be built.
12435allow_undefined_flag=$lt_allow_undefined_flag
12436
12437# Flag that forces no undefined symbols.
12438no_undefined_flag=$lt_no_undefined_flag
12439
12440# Commands used to finish a libtool library installation in a directory.
12441finish_cmds=$lt_finish_cmds
12442
12443# Same as above, but a single script fragment to be evaled but not shown.
12444finish_eval=$lt_finish_eval
12445
12446# Take the output of nm and produce a listing of raw symbols and C names.
12447global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12448
12449# Transform the output of nm in a proper C declaration
12450global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12451
12452# Transform the output of nm in a C name address pair
12453global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12454
12455# This is the shared library runtime path variable.
12456runpath_var=$runpath_var
12457
12458# This is the shared library path variable.
12459shlibpath_var=$shlibpath_var
12460
12461# Is shlibpath searched before the hard-coded library search path?
12462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12463
12464# How to hardcode a shared library path into an executable.
12465hardcode_action=$hardcode_action
12466
12467# Whether we should hardcode library paths into libraries.
12468hardcode_into_libs=$hardcode_into_libs
12469
12470# Flag to hardcode \$libdir into a binary during linking.
12471# This must work even if \$libdir does not exist.
12472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12473
12474# If ld is used when linking, flag to hardcode \$libdir into
12475# a binary during linking. This must work even if \$libdir does
12476# not exist.
12477hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12478
12479# Whether we need a single -rpath flag with a separated argument.
12480hardcode_libdir_separator=$lt_hardcode_libdir_separator
12481
12482# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12483# resulting binary.
12484hardcode_direct=$hardcode_direct
12485
12486# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12487# resulting binary.
12488hardcode_minus_L=$hardcode_minus_L
12489
12490# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12491# the resulting binary.
12492hardcode_shlibpath_var=$hardcode_shlibpath_var
12493
12494# Set to yes if building a shared library automatically hardcodes DIR into the library
12495# and all subsequent libraries and executables linked against it.
12496hardcode_automatic=$hardcode_automatic
12497
12498# Variables whose values should be saved in libtool wrapper scripts and
12499# restored at relink time.
12500variables_saved_for_relink="$variables_saved_for_relink"
12501
12502# Whether libtool must link a program against all its dependency libraries.
12503link_all_deplibs=$link_all_deplibs
12504
12505# Compile-time system search path for libraries
12506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12507
12508# Run-time system search path for libraries
12509sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12510
12511# Fix the shell variable \$srcfile for the compiler.
12512fix_srcfile_path="$fix_srcfile_path"
12513
12514# Set to yes if exported symbols are required.
12515always_export_symbols=$always_export_symbols
12516
12517# The commands to list exported symbols.
12518export_symbols_cmds=$lt_export_symbols_cmds
12519
12520# The commands to extract the exported symbol list from a shared archive.
12521extract_expsyms_cmds=$lt_extract_expsyms_cmds
12522
12523# Symbols that should not be listed in the preloaded symbols.
12524exclude_expsyms=$lt_exclude_expsyms
12525
12526# Symbols that must always be exported.
12527include_expsyms=$lt_include_expsyms
12528
12529# ### END LIBTOOL CONFIG
12530
12531__EOF__
12532
12533
12534  case $host_os in
12535  aix3*)
12536    cat <<\EOF >> "$cfgfile"
12537
12538# AIX sometimes has problems with the GCC collect2 program.  For some
12539# reason, if we set the COLLECT_NAMES environment variable, the problems
12540# vanish in a puff of smoke.
12541if test "X${COLLECT_NAMES+set}" != Xset; then
12542  COLLECT_NAMES=
12543  export COLLECT_NAMES
12544fi
12545EOF
12546    ;;
12547  esac
12548
12549  # We use sed instead of cat because bash on DJGPP gets confused if
12550  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12551  # text mode, it properly converts lines to CR/LF.  This bash problem
12552  # is reportedly fixed, but why not run on old versions too?
12553  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12554
12555  mv -f "$cfgfile" "$ofile" || \
12556    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12557  chmod +x "$ofile"
12558
12559else
12560  # If there is no Makefile yet, we rely on a make rule to execute
12561  # `config.status --recheck' to rerun these tests and create the
12562  # libtool script then.
12563  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12564  if test -f "$ltmain_in"; then
12565    test -f Makefile && make "$ltmain"
12566  fi
12567fi
12568
12569
12570ac_ext=c
12571ac_cpp='$CPP $CPPFLAGS'
12572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576CC="$lt_save_CC"
12577
12578
12579# Check whether --with-tags or --without-tags was given.
12580if test "${with_tags+set}" = set; then
12581  withval="$with_tags"
12582  tagnames="$withval"
12583fi;
12584
12585if test -f "$ltmain" && test -n "$tagnames"; then
12586  if test ! -f "${ofile}"; then
12587    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12588echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12589  fi
12590
12591  if test -z "$LTCC"; then
12592    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12593    if test -z "$LTCC"; then
12594      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12595echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12596    else
12597      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12598echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12599    fi
12600  fi
12601  if test -z "$LTCFLAGS"; then
12602    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12603  fi
12604
12605  # Extract list of available tagged configurations in $ofile.
12606  # Note that this assumes the entire list is on one line.
12607  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12608
12609  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12610  for tagname in $tagnames; do
12611    IFS="$lt_save_ifs"
12612    # Check whether tagname contains only valid characters
12613    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12614    "") ;;
12615    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12616echo "$as_me: error: invalid tag name: $tagname" >&2;}
12617   { (exit 1); exit 1; }; }
12618	;;
12619    esac
12620
12621    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12622    then
12623      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12624echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12625   { (exit 1); exit 1; }; }
12626    fi
12627
12628    # Update the list of available tags.
12629    if test -n "$tagname"; then
12630      echo appending configuration tag \"$tagname\" to $ofile
12631
12632      case $tagname in
12633      CXX)
12634	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12635	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12636	    (test "X$CXX" != "Xg++"))) ; then
12637	  ac_ext=cc
12638ac_cpp='$CXXCPP $CPPFLAGS'
12639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12642
12643
12644
12645
12646archive_cmds_need_lc_CXX=no
12647allow_undefined_flag_CXX=
12648always_export_symbols_CXX=no
12649archive_expsym_cmds_CXX=
12650export_dynamic_flag_spec_CXX=
12651hardcode_direct_CXX=no
12652hardcode_libdir_flag_spec_CXX=
12653hardcode_libdir_flag_spec_ld_CXX=
12654hardcode_libdir_separator_CXX=
12655hardcode_minus_L_CXX=no
12656hardcode_shlibpath_var_CXX=unsupported
12657hardcode_automatic_CXX=no
12658module_cmds_CXX=
12659module_expsym_cmds_CXX=
12660link_all_deplibs_CXX=unknown
12661old_archive_cmds_CXX=$old_archive_cmds
12662no_undefined_flag_CXX=
12663whole_archive_flag_spec_CXX=
12664enable_shared_with_static_runtimes_CXX=no
12665
12666# Dependencies to place before and after the object being linked:
12667predep_objects_CXX=
12668postdep_objects_CXX=
12669predeps_CXX=
12670postdeps_CXX=
12671compiler_lib_search_path_CXX=
12672
12673# Source file extension for C++ test sources.
12674ac_ext=cpp
12675
12676# Object file extension for compiled C++ test sources.
12677objext=o
12678objext_CXX=$objext
12679
12680# Code to be used in simple compile tests
12681lt_simple_compile_test_code="int some_variable = 0;\n"
12682
12683# Code to be used in simple link tests
12684lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12685
12686# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12687
12688# If no C compiler was specified, use CC.
12689LTCC=${LTCC-"$CC"}
12690
12691# If no C compiler flags were specified, use CFLAGS.
12692LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12693
12694# Allow CC to be a program name with arguments.
12695compiler=$CC
12696
12697
12698# save warnings/boilerplate of simple test code
12699ac_outfile=conftest.$ac_objext
12700printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12701eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12702_lt_compiler_boilerplate=`cat conftest.err`
12703$rm conftest*
12704
12705ac_outfile=conftest.$ac_objext
12706printf "$lt_simple_link_test_code" >conftest.$ac_ext
12707eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12708_lt_linker_boilerplate=`cat conftest.err`
12709$rm conftest*
12710
12711
12712# Allow CC to be a program name with arguments.
12713lt_save_CC=$CC
12714lt_save_LD=$LD
12715lt_save_GCC=$GCC
12716GCC=$GXX
12717lt_save_with_gnu_ld=$with_gnu_ld
12718lt_save_path_LD=$lt_cv_path_LD
12719if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12720  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12721else
12722  $as_unset lt_cv_prog_gnu_ld
12723fi
12724if test -n "${lt_cv_path_LDCXX+set}"; then
12725  lt_cv_path_LD=$lt_cv_path_LDCXX
12726else
12727  $as_unset lt_cv_path_LD
12728fi
12729test -z "${LDCXX+set}" || LD=$LDCXX
12730CC=${CXX-"c++"}
12731compiler=$CC
12732compiler_CXX=$CC
12733for cc_temp in $compiler""; do
12734  case $cc_temp in
12735    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12736    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12737    \-*) ;;
12738    *) break;;
12739  esac
12740done
12741cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12742
12743
12744# We don't want -fno-exception wen compiling C++ code, so set the
12745# no_builtin_flag separately
12746if test "$GXX" = yes; then
12747  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12748else
12749  lt_prog_compiler_no_builtin_flag_CXX=
12750fi
12751
12752if test "$GXX" = yes; then
12753  # Set up default GNU C++ configuration
12754
12755
12756# Check whether --with-gnu-ld or --without-gnu-ld was given.
12757if test "${with_gnu_ld+set}" = set; then
12758  withval="$with_gnu_ld"
12759  test "$withval" = no || with_gnu_ld=yes
12760else
12761  with_gnu_ld=no
12762fi;
12763ac_prog=ld
12764if test "$GCC" = yes; then
12765  # Check if gcc -print-prog-name=ld gives a path.
12766  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12767echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12768  case $host in
12769  *-*-mingw*)
12770    # gcc leaves a trailing carriage return which upsets mingw
12771    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12772  *)
12773    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12774  esac
12775  case $ac_prog in
12776    # Accept absolute paths.
12777    [\\/]* | ?:[\\/]*)
12778      re_direlt='/[^/][^/]*/\.\./'
12779      # Canonicalize the pathname of ld
12780      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12781      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12782	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12783      done
12784      test -z "$LD" && LD="$ac_prog"
12785      ;;
12786  "")
12787    # If it fails, then pretend we aren't using GCC.
12788    ac_prog=ld
12789    ;;
12790  *)
12791    # If it is relative, then search for the first ld in PATH.
12792    with_gnu_ld=unknown
12793    ;;
12794  esac
12795elif test "$with_gnu_ld" = yes; then
12796  echo "$as_me:$LINENO: checking for GNU ld" >&5
12797echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12798else
12799  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12800echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12801fi
12802if test "${lt_cv_path_LD+set}" = set; then
12803  echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805  if test -z "$LD"; then
12806  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12807  for ac_dir in $PATH; do
12808    IFS="$lt_save_ifs"
12809    test -z "$ac_dir" && ac_dir=.
12810    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12811      lt_cv_path_LD="$ac_dir/$ac_prog"
12812      # Check to see if the program is GNU ld.  I'd rather use --version,
12813      # but apparently some variants of GNU ld only accept -v.
12814      # Break only if it was the GNU/non-GNU ld that we prefer.
12815      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12816      *GNU* | *'with BFD'*)
12817	test "$with_gnu_ld" != no && break
12818	;;
12819      *)
12820	test "$with_gnu_ld" != yes && break
12821	;;
12822      esac
12823    fi
12824  done
12825  IFS="$lt_save_ifs"
12826else
12827  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12828fi
12829fi
12830
12831LD="$lt_cv_path_LD"
12832if test -n "$LD"; then
12833  echo "$as_me:$LINENO: result: $LD" >&5
12834echo "${ECHO_T}$LD" >&6
12835else
12836  echo "$as_me:$LINENO: result: no" >&5
12837echo "${ECHO_T}no" >&6
12838fi
12839test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12840echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12841   { (exit 1); exit 1; }; }
12842echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12843echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12844if test "${lt_cv_prog_gnu_ld+set}" = set; then
12845  echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12848case `$LD -v 2>&1 </dev/null` in
12849*GNU* | *'with BFD'*)
12850  lt_cv_prog_gnu_ld=yes
12851  ;;
12852*)
12853  lt_cv_prog_gnu_ld=no
12854  ;;
12855esac
12856fi
12857echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12858echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12859with_gnu_ld=$lt_cv_prog_gnu_ld
12860
12861
12862
12863  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12864  # archiving commands below assume that GNU ld is being used.
12865  if test "$with_gnu_ld" = yes; then
12866    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12867    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'
12868
12869    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12870    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12871
12872    # If archive_cmds runs LD, not CC, wlarc should be empty
12873    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12874    #     investigate it a little bit more. (MM)
12875    wlarc='${wl}'
12876
12877    # ancient GNU ld didn't support --whole-archive et. al.
12878    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12879	grep 'no-whole-archive' > /dev/null; then
12880      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12881    else
12882      whole_archive_flag_spec_CXX=
12883    fi
12884  else
12885    with_gnu_ld=no
12886    wlarc=
12887
12888    # A generic and very simple default shared library creation
12889    # command for GNU C++ for the case where it uses the native
12890    # linker, instead of GNU ld.  If possible, this setting should
12891    # overridden to take advantage of the native linker features on
12892    # the platform it is being used on.
12893    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12894  fi
12895
12896  # Commands to make compiler produce verbose output that lists
12897  # what "hidden" libraries, object files and flags are used when
12898  # linking a shared library.
12899  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12900
12901else
12902  GXX=no
12903  with_gnu_ld=no
12904  wlarc=
12905fi
12906
12907# PORTME: fill in a description of your system's C++ link characteristics
12908echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12909echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12910ld_shlibs_CXX=yes
12911case $host_os in
12912  aix3*)
12913    # FIXME: insert proper C++ library support
12914    ld_shlibs_CXX=no
12915    ;;
12916  aix4* | aix5*)
12917    if test "$host_cpu" = ia64; then
12918      # On IA64, the linker does run time linking by default, so we don't
12919      # have to do anything special.
12920      aix_use_runtimelinking=no
12921      exp_sym_flag='-Bexport'
12922      no_entry_flag=""
12923    else
12924      aix_use_runtimelinking=no
12925
12926      # Test if we are trying to use run time linking or normal
12927      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12928      # need to do runtime linking.
12929      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12930	for ld_flag in $LDFLAGS; do
12931	  case $ld_flag in
12932	  *-brtl*)
12933	    aix_use_runtimelinking=yes
12934	    break
12935	    ;;
12936	  esac
12937	done
12938	;;
12939      esac
12940
12941      exp_sym_flag='-bexport'
12942      no_entry_flag='-bnoentry'
12943    fi
12944
12945    # When large executables or shared objects are built, AIX ld can
12946    # have problems creating the table of contents.  If linking a library
12947    # or program results in "error TOC overflow" add -mminimal-toc to
12948    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12949    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12950
12951    archive_cmds_CXX=''
12952    hardcode_direct_CXX=yes
12953    hardcode_libdir_separator_CXX=':'
12954    link_all_deplibs_CXX=yes
12955
12956    if test "$GXX" = yes; then
12957      case $host_os in aix4.[012]|aix4.[012].*)
12958      # We only want to do this on AIX 4.2 and lower, the check
12959      # below for broken collect2 doesn't work under 4.3+
12960	collect2name=`${CC} -print-prog-name=collect2`
12961	if test -f "$collect2name" && \
12962	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12963	then
12964	  # We have reworked collect2
12965	  hardcode_direct_CXX=yes
12966	else
12967	  # We have old collect2
12968	  hardcode_direct_CXX=unsupported
12969	  # It fails to find uninstalled libraries when the uninstalled
12970	  # path is not listed in the libpath.  Setting hardcode_minus_L
12971	  # to unsupported forces relinking
12972	  hardcode_minus_L_CXX=yes
12973	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12974	  hardcode_libdir_separator_CXX=
12975	fi
12976	;;
12977      esac
12978      shared_flag='-shared'
12979      if test "$aix_use_runtimelinking" = yes; then
12980	shared_flag="$shared_flag "'${wl}-G'
12981      fi
12982    else
12983      # not using gcc
12984      if test "$host_cpu" = ia64; then
12985	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12986	# chokes on -Wl,-G. The following line is correct:
12987	shared_flag='-G'
12988      else
12989	if test "$aix_use_runtimelinking" = yes; then
12990	  shared_flag='${wl}-G'
12991	else
12992	  shared_flag='${wl}-bM:SRE'
12993	fi
12994      fi
12995    fi
12996
12997    # It seems that -bexpall does not export symbols beginning with
12998    # underscore (_), so it is better to generate a list of symbols to export.
12999    always_export_symbols_CXX=yes
13000    if test "$aix_use_runtimelinking" = yes; then
13001      # Warning - without using the other runtime loading flags (-brtl),
13002      # -berok will link without error, but may produce a broken library.
13003      allow_undefined_flag_CXX='-berok'
13004      # Determine the default libpath from the value encoded in an empty executable.
13005      cat >conftest.$ac_ext <<_ACEOF
13006/* confdefs.h.  */
13007_ACEOF
13008cat confdefs.h >>conftest.$ac_ext
13009cat >>conftest.$ac_ext <<_ACEOF
13010/* end confdefs.h.  */
13011
13012#ifdef F77_DUMMY_MAIN
13013
13014#  ifdef __cplusplus
13015     extern "C"
13016#  endif
13017   int F77_DUMMY_MAIN() { return 1; }
13018
13019#endif
13020int
13021main ()
13022{
13023
13024  ;
13025  return 0;
13026}
13027_ACEOF
13028rm -f conftest.$ac_objext conftest$ac_exeext
13029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030  (eval $ac_link) 2>conftest.er1
13031  ac_status=$?
13032  grep -v '^ *+' conftest.er1 >conftest.err
13033  rm -f conftest.er1
13034  cat conftest.err >&5
13035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036  (exit $ac_status); } &&
13037	 { ac_try='test -z "$ac_cxx_werror_flag"
13038			 || test ! -s conftest.err'
13039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040  (eval $ac_try) 2>&5
13041  ac_status=$?
13042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043  (exit $ac_status); }; } &&
13044	 { ac_try='test -s conftest$ac_exeext'
13045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046  (eval $ac_try) 2>&5
13047  ac_status=$?
13048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049  (exit $ac_status); }; }; then
13050
13051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13052}'`
13053# Check for a 64-bit object if we didn't find anything.
13054if 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; }
13055}'`; fi
13056else
13057  echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
13059
13060fi
13061rm -f conftest.err conftest.$ac_objext \
13062      conftest$ac_exeext conftest.$ac_ext
13063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13064
13065      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13066
13067      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13068     else
13069      if test "$host_cpu" = ia64; then
13070	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13071	allow_undefined_flag_CXX="-z nodefs"
13072	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13073      else
13074	# Determine the default libpath from the value encoded in an empty executable.
13075	cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h.  */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h.  */
13081
13082#ifdef F77_DUMMY_MAIN
13083
13084#  ifdef __cplusplus
13085     extern "C"
13086#  endif
13087   int F77_DUMMY_MAIN() { return 1; }
13088
13089#endif
13090int
13091main ()
13092{
13093
13094  ;
13095  return 0;
13096}
13097_ACEOF
13098rm -f conftest.$ac_objext conftest$ac_exeext
13099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100  (eval $ac_link) 2>conftest.er1
13101  ac_status=$?
13102  grep -v '^ *+' conftest.er1 >conftest.err
13103  rm -f conftest.er1
13104  cat conftest.err >&5
13105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106  (exit $ac_status); } &&
13107	 { ac_try='test -z "$ac_cxx_werror_flag"
13108			 || test ! -s conftest.err'
13109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110  (eval $ac_try) 2>&5
13111  ac_status=$?
13112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113  (exit $ac_status); }; } &&
13114	 { ac_try='test -s conftest$ac_exeext'
13115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116  (eval $ac_try) 2>&5
13117  ac_status=$?
13118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119  (exit $ac_status); }; }; then
13120
13121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13122}'`
13123# Check for a 64-bit object if we didn't find anything.
13124if 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; }
13125}'`; fi
13126else
13127  echo "$as_me: failed program was:" >&5
13128sed 's/^/| /' conftest.$ac_ext >&5
13129
13130fi
13131rm -f conftest.err conftest.$ac_objext \
13132      conftest$ac_exeext conftest.$ac_ext
13133if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13134
13135	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13136	# Warning - without using the other run time loading flags,
13137	# -berok will link without error, but may produce a broken library.
13138	no_undefined_flag_CXX=' ${wl}-bernotok'
13139	allow_undefined_flag_CXX=' ${wl}-berok'
13140	# Exported symbols can be pulled into shared objects from archives
13141	whole_archive_flag_spec_CXX='$convenience'
13142	archive_cmds_need_lc_CXX=yes
13143	# This is similar to how AIX traditionally builds its shared libraries.
13144	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13145      fi
13146    fi
13147    ;;
13148
13149  beos*)
13150    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13151      allow_undefined_flag_CXX=unsupported
13152      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13153      # support --undefined.  This deserves some investigation.  FIXME
13154      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13155    else
13156      ld_shlibs_CXX=no
13157    fi
13158    ;;
13159
13160  chorus*)
13161    case $cc_basename in
13162      *)
13163	# FIXME: insert proper C++ library support
13164	ld_shlibs_CXX=no
13165	;;
13166    esac
13167    ;;
13168
13169  cygwin* | mingw* | pw32*)
13170    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13171    # as there is no search path for DLLs.
13172    hardcode_libdir_flag_spec_CXX='-L$libdir'
13173    allow_undefined_flag_CXX=unsupported
13174    always_export_symbols_CXX=no
13175    enable_shared_with_static_runtimes_CXX=yes
13176
13177    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13178      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13179      # If the export-symbols file already is a .def file (1st line
13180      # is EXPORTS), use it as is; otherwise, prepend...
13181      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13182	cp $export_symbols $output_objdir/$soname.def;
13183      else
13184	echo EXPORTS > $output_objdir/$soname.def;
13185	cat $export_symbols >> $output_objdir/$soname.def;
13186      fi~
13187      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13188    else
13189      ld_shlibs_CXX=no
13190    fi
13191  ;;
13192      darwin* | rhapsody*)
13193        case $host_os in
13194        rhapsody* | darwin1.[012])
13195         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13196         ;;
13197       *) # Darwin 1.3 on
13198         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13199           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13200         else
13201           case ${MACOSX_DEPLOYMENT_TARGET} in
13202             10.[012])
13203               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13204               ;;
13205             10.*)
13206               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13207               ;;
13208           esac
13209         fi
13210         ;;
13211        esac
13212      archive_cmds_need_lc_CXX=no
13213      hardcode_direct_CXX=no
13214      hardcode_automatic_CXX=yes
13215      hardcode_shlibpath_var_CXX=unsupported
13216      whole_archive_flag_spec_CXX=''
13217      link_all_deplibs_CXX=yes
13218
13219    if test "$GXX" = yes ; then
13220      lt_int_apple_cc_single_mod=no
13221      output_verbose_link_cmd='echo'
13222      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13223       lt_int_apple_cc_single_mod=yes
13224      fi
13225      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13226       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13227      else
13228          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'
13229        fi
13230        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13231        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13232          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13233            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}'
13234          else
13235            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}'
13236          fi
13237            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}'
13238      else
13239      case $cc_basename in
13240        xlc*)
13241         output_verbose_link_cmd='echo'
13242          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'
13243          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13244          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13245          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}'
13246          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}'
13247          ;;
13248       *)
13249         ld_shlibs_CXX=no
13250          ;;
13251      esac
13252      fi
13253        ;;
13254
13255  dgux*)
13256    case $cc_basename in
13257      ec++*)
13258	# FIXME: insert proper C++ library support
13259	ld_shlibs_CXX=no
13260	;;
13261      ghcx*)
13262	# Green Hills C++ Compiler
13263	# FIXME: insert proper C++ library support
13264	ld_shlibs_CXX=no
13265	;;
13266      *)
13267	# FIXME: insert proper C++ library support
13268	ld_shlibs_CXX=no
13269	;;
13270    esac
13271    ;;
13272  freebsd[12]*)
13273    # C++ shared libraries reported to be fairly broken before switch to ELF
13274    ld_shlibs_CXX=no
13275    ;;
13276  freebsd-elf*)
13277    archive_cmds_need_lc_CXX=no
13278    ;;
13279  freebsd* | kfreebsd*-gnu | dragonfly*)
13280    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13281    # conventions
13282    ld_shlibs_CXX=yes
13283    ;;
13284  gnu*)
13285    ;;
13286  hpux9*)
13287    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13288    hardcode_libdir_separator_CXX=:
13289    export_dynamic_flag_spec_CXX='${wl}-E'
13290    hardcode_direct_CXX=yes
13291    hardcode_minus_L_CXX=yes # Not in the search PATH,
13292				# but as the default
13293				# location of the library.
13294
13295    case $cc_basename in
13296    CC*)
13297      # FIXME: insert proper C++ library support
13298      ld_shlibs_CXX=no
13299      ;;
13300    aCC*)
13301      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'
13302      # Commands to make compiler produce verbose output that lists
13303      # what "hidden" libraries, object files and flags are used when
13304      # linking a shared library.
13305      #
13306      # There doesn't appear to be a way to prevent this compiler from
13307      # explicitly linking system object files so we need to strip them
13308      # from the output so that they don't get included in the library
13309      # dependencies.
13310      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'
13311      ;;
13312    *)
13313      if test "$GXX" = yes; then
13314        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'
13315      else
13316        # FIXME: insert proper C++ library support
13317        ld_shlibs_CXX=no
13318      fi
13319      ;;
13320    esac
13321    ;;
13322  hpux10*|hpux11*)
13323    if test $with_gnu_ld = no; then
13324      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13325      hardcode_libdir_separator_CXX=:
13326
13327      case $host_cpu in
13328      hppa*64*|ia64*)
13329	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13330        ;;
13331      *)
13332	export_dynamic_flag_spec_CXX='${wl}-E'
13333        ;;
13334      esac
13335    fi
13336    case $host_cpu in
13337    hppa*64*|ia64*)
13338      hardcode_direct_CXX=no
13339      hardcode_shlibpath_var_CXX=no
13340      ;;
13341    *)
13342      hardcode_direct_CXX=yes
13343      hardcode_minus_L_CXX=yes # Not in the search PATH,
13344					      # but as the default
13345					      # location of the library.
13346      ;;
13347    esac
13348
13349    case $cc_basename in
13350      CC*)
13351	# FIXME: insert proper C++ library support
13352	ld_shlibs_CXX=no
13353	;;
13354      aCC*)
13355	case $host_cpu in
13356	hppa*64*)
13357	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13358	  ;;
13359	ia64*)
13360	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13361	  ;;
13362	*)
13363	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13364	  ;;
13365	esac
13366	# Commands to make compiler produce verbose output that lists
13367	# what "hidden" libraries, object files and flags are used when
13368	# linking a shared library.
13369	#
13370	# There doesn't appear to be a way to prevent this compiler from
13371	# explicitly linking system object files so we need to strip them
13372	# from the output so that they don't get included in the library
13373	# dependencies.
13374	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'
13375	;;
13376      *)
13377	if test "$GXX" = yes; then
13378	  if test $with_gnu_ld = no; then
13379	    case $host_cpu in
13380	    hppa*64*)
13381	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382	      ;;
13383	    ia64*)
13384	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13385	      ;;
13386	    *)
13387	      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'
13388	      ;;
13389	    esac
13390	  fi
13391	else
13392	  # FIXME: insert proper C++ library support
13393	  ld_shlibs_CXX=no
13394	fi
13395	;;
13396    esac
13397    ;;
13398  interix3*)
13399    hardcode_direct_CXX=no
13400    hardcode_shlibpath_var_CXX=no
13401    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13402    export_dynamic_flag_spec_CXX='${wl}-E'
13403    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13404    # Instead, shared libraries are loaded at an image base (0x10000000 by
13405    # default) and relocated if they conflict, which is a slow very memory
13406    # consuming and fragmenting process.  To avoid this, we pick a random,
13407    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13408    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13409    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13410    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13411    ;;
13412  irix5* | irix6*)
13413    case $cc_basename in
13414      CC*)
13415	# SGI C++
13416	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'
13417
13418	# Archives containing C++ object files must be created using
13419	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13420	# necessary to make sure instantiated templates are included
13421	# in the archive.
13422	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13423	;;
13424      *)
13425	if test "$GXX" = yes; then
13426	  if test "$with_gnu_ld" = no; then
13427	    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'
13428	  else
13429	    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'
13430	  fi
13431	fi
13432	link_all_deplibs_CXX=yes
13433	;;
13434    esac
13435    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13436    hardcode_libdir_separator_CXX=:
13437    ;;
13438  linux*)
13439    case $cc_basename in
13440      KCC*)
13441	# Kuck and Associates, Inc. (KAI) C++ Compiler
13442
13443	# KCC will only create a shared library if the output file
13444	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13445	# to its proper name (with version) after linking.
13446	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'
13447	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'
13448	# Commands to make compiler produce verbose output that lists
13449	# what "hidden" libraries, object files and flags are used when
13450	# linking a shared library.
13451	#
13452	# There doesn't appear to be a way to prevent this compiler from
13453	# explicitly linking system object files so we need to strip them
13454	# from the output so that they don't get included in the library
13455	# dependencies.
13456	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'
13457
13458	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13459	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13460
13461	# Archives containing C++ object files must be created using
13462	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13463	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13464	;;
13465      icpc*)
13466	# Intel C++
13467	with_gnu_ld=yes
13468	# version 8.0 and above of icpc choke on multiply defined symbols
13469	# if we add $predep_objects and $postdep_objects, however 7.1 and
13470	# earlier do not add the objects themselves.
13471	case `$CC -V 2>&1` in
13472	*"Version 7."*)
13473  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13474  	  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'
13475	  ;;
13476	*)  # Version 8.0 or newer
13477	  tmp_idyn=
13478	  case $host_cpu in
13479	    ia64*) tmp_idyn=' -i_dynamic';;
13480	  esac
13481  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482	  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'
13483	  ;;
13484	esac
13485	archive_cmds_need_lc_CXX=no
13486	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13487	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13488	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13489	;;
13490      pgCC*)
13491        # Portland Group C++ compiler
13492	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13493  	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'
13494
13495	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13496	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13497	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'
13498        ;;
13499      cxx*)
13500	# Compaq C++
13501	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13502	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'
13503
13504	runpath_var=LD_RUN_PATH
13505	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13506	hardcode_libdir_separator_CXX=:
13507
13508	# Commands to make compiler produce verbose output that lists
13509	# what "hidden" libraries, object files and flags are used when
13510	# linking a shared library.
13511	#
13512	# There doesn't appear to be a way to prevent this compiler from
13513	# explicitly linking system object files so we need to strip them
13514	# from the output so that they don't get included in the library
13515	# dependencies.
13516	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'
13517	;;
13518    esac
13519    ;;
13520  lynxos*)
13521    # FIXME: insert proper C++ library support
13522    ld_shlibs_CXX=no
13523    ;;
13524  m88k*)
13525    # FIXME: insert proper C++ library support
13526    ld_shlibs_CXX=no
13527    ;;
13528  mvs*)
13529    case $cc_basename in
13530      cxx*)
13531	# FIXME: insert proper C++ library support
13532	ld_shlibs_CXX=no
13533	;;
13534      *)
13535	# FIXME: insert proper C++ library support
13536	ld_shlibs_CXX=no
13537	;;
13538    esac
13539    ;;
13540  netbsd*)
13541    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13542      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13543      wlarc=
13544      hardcode_libdir_flag_spec_CXX='-R$libdir'
13545      hardcode_direct_CXX=yes
13546      hardcode_shlibpath_var_CXX=no
13547    fi
13548    # Workaround some broken pre-1.5 toolchains
13549    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13550    ;;
13551  openbsd2*)
13552    # C++ shared libraries are fairly broken
13553    ld_shlibs_CXX=no
13554    ;;
13555  openbsd*)
13556    hardcode_direct_CXX=yes
13557    hardcode_shlibpath_var_CXX=no
13558    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13559    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13560    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13561      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13562      export_dynamic_flag_spec_CXX='${wl}-E'
13563      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13564    fi
13565    output_verbose_link_cmd='echo'
13566    ;;
13567  osf3*)
13568    case $cc_basename in
13569      KCC*)
13570	# Kuck and Associates, Inc. (KAI) C++ Compiler
13571
13572	# KCC will only create a shared library if the output file
13573	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13574	# to its proper name (with version) after linking.
13575	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'
13576
13577	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13578	hardcode_libdir_separator_CXX=:
13579
13580	# Archives containing C++ object files must be created using
13581	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13582	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13583
13584	;;
13585      RCC*)
13586	# Rational C++ 2.4.1
13587	# FIXME: insert proper C++ library support
13588	ld_shlibs_CXX=no
13589	;;
13590      cxx*)
13591	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13592	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'
13593
13594	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13595	hardcode_libdir_separator_CXX=:
13596
13597	# Commands to make compiler produce verbose output that lists
13598	# what "hidden" libraries, object files and flags are used when
13599	# linking a shared library.
13600	#
13601	# There doesn't appear to be a way to prevent this compiler from
13602	# explicitly linking system object files so we need to strip them
13603	# from the output so that they don't get included in the library
13604	# dependencies.
13605	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'
13606	;;
13607      *)
13608	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13609	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13610	  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'
13611
13612	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13613	  hardcode_libdir_separator_CXX=:
13614
13615	  # Commands to make compiler produce verbose output that lists
13616	  # what "hidden" libraries, object files and flags are used when
13617	  # linking a shared library.
13618	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13619
13620	else
13621	  # FIXME: insert proper C++ library support
13622	  ld_shlibs_CXX=no
13623	fi
13624	;;
13625    esac
13626    ;;
13627  osf4* | osf5*)
13628    case $cc_basename in
13629      KCC*)
13630	# Kuck and Associates, Inc. (KAI) C++ Compiler
13631
13632	# KCC will only create a shared library if the output file
13633	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13634	# to its proper name (with version) after linking.
13635	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'
13636
13637	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638	hardcode_libdir_separator_CXX=:
13639
13640	# Archives containing C++ object files must be created using
13641	# the KAI C++ compiler.
13642	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13643	;;
13644      RCC*)
13645	# Rational C++ 2.4.1
13646	# FIXME: insert proper C++ library support
13647	ld_shlibs_CXX=no
13648	;;
13649      cxx*)
13650	allow_undefined_flag_CXX=' -expect_unresolved \*'
13651	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'
13652	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13653	  echo "-hidden">> $lib.exp~
13654	  $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~
13655	  $rm $lib.exp'
13656
13657	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13658	hardcode_libdir_separator_CXX=:
13659
13660	# Commands to make compiler produce verbose output that lists
13661	# what "hidden" libraries, object files and flags are used when
13662	# linking a shared library.
13663	#
13664	# There doesn't appear to be a way to prevent this compiler from
13665	# explicitly linking system object files so we need to strip them
13666	# from the output so that they don't get included in the library
13667	# dependencies.
13668	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'
13669	;;
13670      *)
13671	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13672	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13673	 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'
13674
13675	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13676	  hardcode_libdir_separator_CXX=:
13677
13678	  # Commands to make compiler produce verbose output that lists
13679	  # what "hidden" libraries, object files and flags are used when
13680	  # linking a shared library.
13681	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13682
13683	else
13684	  # FIXME: insert proper C++ library support
13685	  ld_shlibs_CXX=no
13686	fi
13687	;;
13688    esac
13689    ;;
13690  psos*)
13691    # FIXME: insert proper C++ library support
13692    ld_shlibs_CXX=no
13693    ;;
13694  sunos4*)
13695    case $cc_basename in
13696      CC*)
13697	# Sun C++ 4.x
13698	# FIXME: insert proper C++ library support
13699	ld_shlibs_CXX=no
13700	;;
13701      lcc*)
13702	# Lucid
13703	# FIXME: insert proper C++ library support
13704	ld_shlibs_CXX=no
13705	;;
13706      *)
13707	# FIXME: insert proper C++ library support
13708	ld_shlibs_CXX=no
13709	;;
13710    esac
13711    ;;
13712  solaris*)
13713    case $cc_basename in
13714      CC*)
13715	# Sun C++ 4.2, 5.x and Centerline C++
13716        archive_cmds_need_lc_CXX=yes
13717	no_undefined_flag_CXX=' -zdefs'
13718	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13720	$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'
13721
13722	hardcode_libdir_flag_spec_CXX='-R$libdir'
13723	hardcode_shlibpath_var_CXX=no
13724	case $host_os in
13725	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13726	  *)
13727	    # The C++ compiler is used as linker so we must use $wl
13728	    # flag to pass the commands to the underlying system
13729	    # linker. We must also pass each convience library through
13730	    # to the system linker between allextract/defaultextract.
13731	    # The C++ compiler will combine linker options so we
13732	    # cannot just pass the convience library names through
13733	    # without $wl.
13734	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13735	    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'
13736	    ;;
13737	esac
13738	link_all_deplibs_CXX=yes
13739
13740	output_verbose_link_cmd='echo'
13741
13742	# Archives containing C++ object files must be created using
13743	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13744	# necessary to make sure instantiated templates are included
13745	# in the archive.
13746	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13747	;;
13748      gcx*)
13749	# Green Hills C++ Compiler
13750	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13751
13752	# The C++ compiler must be used to create the archive.
13753	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13754	;;
13755      *)
13756	# GNU C++ compiler with Solaris linker
13757	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13758	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13759	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13760	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13761	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13762		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13763
13764	    # Commands to make compiler produce verbose output that lists
13765	    # what "hidden" libraries, object files and flags are used when
13766	    # linking a shared library.
13767	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13768	  else
13769	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13770	    # platform.
13771	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13772	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13773		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13774
13775	    # Commands to make compiler produce verbose output that lists
13776	    # what "hidden" libraries, object files and flags are used when
13777	    # linking a shared library.
13778	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13779	  fi
13780
13781	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13782	fi
13783	;;
13784    esac
13785    ;;
13786  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13787    no_undefined_flag_CXX='${wl}-z,text'
13788    archive_cmds_need_lc_CXX=no
13789    hardcode_shlibpath_var_CXX=no
13790    runpath_var='LD_RUN_PATH'
13791
13792    case $cc_basename in
13793      CC*)
13794	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13795	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796	;;
13797      *)
13798	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800	;;
13801    esac
13802    ;;
13803  sysv5* | sco3.2v5* | sco5v6*)
13804    # Note: We can NOT use -z defs as we might desire, because we do not
13805    # link with -lc, and that would cause any symbols used from libc to
13806    # always be unresolved, which means just about no library would
13807    # ever link correctly.  If we're not using GNU ld we use -z text
13808    # though, which does catch some bad symbols but isn't as heavy-handed
13809    # as -z defs.
13810    # For security reasons, it is highly recommended that you always
13811    # use absolute paths for naming shared libraries, and exclude the
13812    # DT_RUNPATH tag from executables and libraries.  But doing so
13813    # requires that you compile everything twice, which is a pain.
13814    # So that behaviour is only enabled if SCOABSPATH is set to a
13815    # non-empty value in the environment.  Most likely only useful for
13816    # creating official distributions of packages.
13817    # This is a hack until libtool officially supports absolute path
13818    # names for shared libraries.
13819    no_undefined_flag_CXX='${wl}-z,text'
13820    allow_undefined_flag_CXX='${wl}-z,nodefs'
13821    archive_cmds_need_lc_CXX=no
13822    hardcode_shlibpath_var_CXX=no
13823    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13824    hardcode_libdir_separator_CXX=':'
13825    link_all_deplibs_CXX=yes
13826    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13827    runpath_var='LD_RUN_PATH'
13828
13829    case $cc_basename in
13830      CC*)
13831	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13832	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13833	;;
13834      *)
13835	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13836	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13837	;;
13838    esac
13839    ;;
13840  tandem*)
13841    case $cc_basename in
13842      NCC*)
13843	# NonStop-UX NCC 3.20
13844	# FIXME: insert proper C++ library support
13845	ld_shlibs_CXX=no
13846	;;
13847      *)
13848	# FIXME: insert proper C++ library support
13849	ld_shlibs_CXX=no
13850	;;
13851    esac
13852    ;;
13853  vxworks*)
13854    # FIXME: insert proper C++ library support
13855    ld_shlibs_CXX=no
13856    ;;
13857  *)
13858    # FIXME: insert proper C++ library support
13859    ld_shlibs_CXX=no
13860    ;;
13861esac
13862echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13863echo "${ECHO_T}$ld_shlibs_CXX" >&6
13864test "$ld_shlibs_CXX" = no && can_build_shared=no
13865
13866GCC_CXX="$GXX"
13867LD_CXX="$LD"
13868
13869## CAVEAT EMPTOR:
13870## There is no encapsulation within the following macros, do not change
13871## the running order or otherwise move them around unless you know exactly
13872## what you are doing...
13873
13874cat > conftest.$ac_ext <<EOF
13875class Foo
13876{
13877public:
13878  Foo (void) { a = 0; }
13879private:
13880  int a;
13881};
13882EOF
13883
13884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885  (eval $ac_compile) 2>&5
13886  ac_status=$?
13887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888  (exit $ac_status); }; then
13889  # Parse the compiler output and extract the necessary
13890  # objects, libraries and library flags.
13891
13892  # Sentinel used to keep track of whether or not we are before
13893  # the conftest object file.
13894  pre_test_object_deps_done=no
13895
13896  # The `*' in the case matches for architectures that use `case' in
13897  # $output_verbose_cmd can trigger glob expansion during the loop
13898  # eval without this substitution.
13899  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13900
13901  for p in `eval $output_verbose_link_cmd`; do
13902    case $p in
13903
13904    -L* | -R* | -l*)
13905       # Some compilers place space between "-{L,R}" and the path.
13906       # Remove the space.
13907       if test $p = "-L" \
13908	  || test $p = "-R"; then
13909	 prev=$p
13910	 continue
13911       else
13912	 prev=
13913       fi
13914
13915       if test "$pre_test_object_deps_done" = no; then
13916	 case $p in
13917	 -L* | -R*)
13918	   # Internal compiler library paths should come after those
13919	   # provided the user.  The postdeps already come after the
13920	   # user supplied libs so there is no need to process them.
13921	   if test -z "$compiler_lib_search_path_CXX"; then
13922	     compiler_lib_search_path_CXX="${prev}${p}"
13923	   else
13924	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13925	   fi
13926	   ;;
13927	 # The "-l" case would never come before the object being
13928	 # linked, so don't bother handling this case.
13929	 esac
13930       else
13931	 if test -z "$postdeps_CXX"; then
13932	   postdeps_CXX="${prev}${p}"
13933	 else
13934	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13935	 fi
13936       fi
13937       ;;
13938
13939    *.$objext)
13940       # This assumes that the test object file only shows up
13941       # once in the compiler output.
13942       if test "$p" = "conftest.$objext"; then
13943	 pre_test_object_deps_done=yes
13944	 continue
13945       fi
13946
13947       if test "$pre_test_object_deps_done" = no; then
13948	 if test -z "$predep_objects_CXX"; then
13949	   predep_objects_CXX="$p"
13950	 else
13951	   predep_objects_CXX="$predep_objects_CXX $p"
13952	 fi
13953       else
13954	 if test -z "$postdep_objects_CXX"; then
13955	   postdep_objects_CXX="$p"
13956	 else
13957	   postdep_objects_CXX="$postdep_objects_CXX $p"
13958	 fi
13959       fi
13960       ;;
13961
13962    *) ;; # Ignore the rest.
13963
13964    esac
13965  done
13966
13967  # Clean up.
13968  rm -f a.out a.exe
13969else
13970  echo "libtool.m4: error: problem compiling CXX test program"
13971fi
13972
13973$rm -f confest.$objext
13974
13975# PORTME: override above test on systems where it is broken
13976case $host_os in
13977interix3*)
13978  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13979  # hack all around it, let's just trust "g++" to DTRT.
13980  predep_objects_CXX=
13981  postdep_objects_CXX=
13982  postdeps_CXX=
13983  ;;
13984
13985solaris*)
13986  case $cc_basename in
13987  CC*)
13988    # Adding this requires a known-good setup of shared libraries for
13989    # Sun compiler versions before 5.6, else PIC objects from an old
13990    # archive will be linked into the output, leading to subtle bugs.
13991    postdeps_CXX='-lCstd -lCrun'
13992    ;;
13993  esac
13994  ;;
13995esac
13996
13997
13998case " $postdeps_CXX " in
13999*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14000esac
14001
14002lt_prog_compiler_wl_CXX=
14003lt_prog_compiler_pic_CXX=
14004lt_prog_compiler_static_CXX=
14005
14006echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14008
14009  # C++ specific cases for pic, static, wl, etc.
14010  if test "$GXX" = yes; then
14011    lt_prog_compiler_wl_CXX='-Wl,'
14012    lt_prog_compiler_static_CXX='-static'
14013
14014    case $host_os in
14015    aix*)
14016      # All AIX code is PIC.
14017      if test "$host_cpu" = ia64; then
14018	# AIX 5 now supports IA64 processor
14019	lt_prog_compiler_static_CXX='-Bstatic'
14020      fi
14021      ;;
14022    amigaos*)
14023      # FIXME: we need at least 68020 code to build shared libraries, but
14024      # adding the `-m68020' flag to GCC prevents building anything better,
14025      # like `-m68040'.
14026      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14027      ;;
14028    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14029      # PIC is the default for these OSes.
14030      ;;
14031    mingw* | os2* | pw32*)
14032      # This hack is so that the source file can tell whether it is being
14033      # built for inclusion in a dll (and should export symbols for example).
14034      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14035      ;;
14036    darwin* | rhapsody*)
14037      # PIC is the default on this platform
14038      # Common symbols not allowed in MH_DYLIB files
14039      lt_prog_compiler_pic_CXX='-fno-common'
14040      ;;
14041    *djgpp*)
14042      # DJGPP does not support shared libraries at all
14043      lt_prog_compiler_pic_CXX=
14044      ;;
14045    interix3*)
14046      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14047      # Instead, we relocate shared libraries at runtime.
14048      ;;
14049    sysv4*MP*)
14050      if test -d /usr/nec; then
14051	lt_prog_compiler_pic_CXX=-Kconform_pic
14052      fi
14053      ;;
14054    hpux*)
14055      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14056      # not for PA HP-UX.
14057      case $host_cpu in
14058      hppa*64*|ia64*)
14059	;;
14060      *)
14061	lt_prog_compiler_pic_CXX='-fPIC'
14062	;;
14063      esac
14064      ;;
14065    *)
14066      lt_prog_compiler_pic_CXX='-fPIC'
14067      ;;
14068    esac
14069  else
14070    case $host_os in
14071      aix4* | aix5*)
14072	# All AIX code is PIC.
14073	if test "$host_cpu" = ia64; then
14074	  # AIX 5 now supports IA64 processor
14075	  lt_prog_compiler_static_CXX='-Bstatic'
14076	else
14077	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14078	fi
14079	;;
14080      chorus*)
14081	case $cc_basename in
14082	cxch68*)
14083	  # Green Hills C++ Compiler
14084	  # _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"
14085	  ;;
14086	esac
14087	;;
14088       darwin*)
14089         # PIC is the default on this platform
14090         # Common symbols not allowed in MH_DYLIB files
14091         case $cc_basename in
14092           xlc*)
14093           lt_prog_compiler_pic_CXX='-qnocommon'
14094           lt_prog_compiler_wl_CXX='-Wl,'
14095           ;;
14096         esac
14097       ;;
14098      dgux*)
14099	case $cc_basename in
14100	  ec++*)
14101	    lt_prog_compiler_pic_CXX='-KPIC'
14102	    ;;
14103	  ghcx*)
14104	    # Green Hills C++ Compiler
14105	    lt_prog_compiler_pic_CXX='-pic'
14106	    ;;
14107	  *)
14108	    ;;
14109	esac
14110	;;
14111      freebsd* | kfreebsd*-gnu | dragonfly*)
14112	# FreeBSD uses GNU C++
14113	;;
14114      hpux9* | hpux10* | hpux11*)
14115	case $cc_basename in
14116	  CC*)
14117	    lt_prog_compiler_wl_CXX='-Wl,'
14118	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14119	    if test "$host_cpu" != ia64; then
14120	      lt_prog_compiler_pic_CXX='+Z'
14121	    fi
14122	    ;;
14123	  aCC*)
14124	    lt_prog_compiler_wl_CXX='-Wl,'
14125	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14126	    case $host_cpu in
14127	    hppa*64*|ia64*)
14128	      # +Z the default
14129	      ;;
14130	    *)
14131	      lt_prog_compiler_pic_CXX='+Z'
14132	      ;;
14133	    esac
14134	    ;;
14135	  *)
14136	    ;;
14137	esac
14138	;;
14139      interix*)
14140	# This is c89, which is MS Visual C++ (no shared libs)
14141	# Anyone wants to do a port?
14142	;;
14143      irix5* | irix6* | nonstopux*)
14144	case $cc_basename in
14145	  CC*)
14146	    lt_prog_compiler_wl_CXX='-Wl,'
14147	    lt_prog_compiler_static_CXX='-non_shared'
14148	    # CC pic flag -KPIC is the default.
14149	    ;;
14150	  *)
14151	    ;;
14152	esac
14153	;;
14154      linux*)
14155	case $cc_basename in
14156	  KCC*)
14157	    # KAI C++ Compiler
14158	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14159	    lt_prog_compiler_pic_CXX='-fPIC'
14160	    ;;
14161	  icpc* | ecpc*)
14162	    # Intel C++
14163	    lt_prog_compiler_wl_CXX='-Wl,'
14164	    lt_prog_compiler_pic_CXX='-KPIC'
14165	    lt_prog_compiler_static_CXX='-static'
14166	    ;;
14167	  pgCC*)
14168	    # Portland Group C++ compiler.
14169	    lt_prog_compiler_wl_CXX='-Wl,'
14170	    lt_prog_compiler_pic_CXX='-fpic'
14171	    lt_prog_compiler_static_CXX='-Bstatic'
14172	    ;;
14173	  cxx*)
14174	    # Compaq C++
14175	    # Make sure the PIC flag is empty.  It appears that all Alpha
14176	    # Linux and Compaq Tru64 Unix objects are PIC.
14177	    lt_prog_compiler_pic_CXX=
14178	    lt_prog_compiler_static_CXX='-non_shared'
14179	    ;;
14180	  *)
14181	    ;;
14182	esac
14183	;;
14184      lynxos*)
14185	;;
14186      m88k*)
14187	;;
14188      mvs*)
14189	case $cc_basename in
14190	  cxx*)
14191	    lt_prog_compiler_pic_CXX='-W c,exportall'
14192	    ;;
14193	  *)
14194	    ;;
14195	esac
14196	;;
14197      netbsd*)
14198	;;
14199      osf3* | osf4* | osf5*)
14200	case $cc_basename in
14201	  KCC*)
14202	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14203	    ;;
14204	  RCC*)
14205	    # Rational C++ 2.4.1
14206	    lt_prog_compiler_pic_CXX='-pic'
14207	    ;;
14208	  cxx*)
14209	    # Digital/Compaq C++
14210	    lt_prog_compiler_wl_CXX='-Wl,'
14211	    # Make sure the PIC flag is empty.  It appears that all Alpha
14212	    # Linux and Compaq Tru64 Unix objects are PIC.
14213	    lt_prog_compiler_pic_CXX=
14214	    lt_prog_compiler_static_CXX='-non_shared'
14215	    ;;
14216	  *)
14217	    ;;
14218	esac
14219	;;
14220      psos*)
14221	;;
14222      solaris*)
14223	case $cc_basename in
14224	  CC*)
14225	    # Sun C++ 4.2, 5.x and Centerline C++
14226	    lt_prog_compiler_pic_CXX='-KPIC'
14227	    lt_prog_compiler_static_CXX='-Bstatic'
14228	    lt_prog_compiler_wl_CXX='-Qoption ld '
14229	    ;;
14230	  gcx*)
14231	    # Green Hills C++ Compiler
14232	    lt_prog_compiler_pic_CXX='-PIC'
14233	    ;;
14234	  *)
14235	    ;;
14236	esac
14237	;;
14238      sunos4*)
14239	case $cc_basename in
14240	  CC*)
14241	    # Sun C++ 4.x
14242	    lt_prog_compiler_pic_CXX='-pic'
14243	    lt_prog_compiler_static_CXX='-Bstatic'
14244	    ;;
14245	  lcc*)
14246	    # Lucid
14247	    lt_prog_compiler_pic_CXX='-pic'
14248	    ;;
14249	  *)
14250	    ;;
14251	esac
14252	;;
14253      tandem*)
14254	case $cc_basename in
14255	  NCC*)
14256	    # NonStop-UX NCC 3.20
14257	    lt_prog_compiler_pic_CXX='-KPIC'
14258	    ;;
14259	  *)
14260	    ;;
14261	esac
14262	;;
14263      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14264	case $cc_basename in
14265	  CC*)
14266	    lt_prog_compiler_wl_CXX='-Wl,'
14267	    lt_prog_compiler_pic_CXX='-KPIC'
14268	    lt_prog_compiler_static_CXX='-Bstatic'
14269	    ;;
14270	esac
14271	;;
14272      vxworks*)
14273	;;
14274      *)
14275	lt_prog_compiler_can_build_shared_CXX=no
14276	;;
14277    esac
14278  fi
14279
14280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14281echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14282
14283#
14284# Check to make sure the PIC flag actually works.
14285#
14286if test -n "$lt_prog_compiler_pic_CXX"; then
14287
14288echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14289echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14290if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14291  echo $ECHO_N "(cached) $ECHO_C" >&6
14292else
14293  lt_prog_compiler_pic_works_CXX=no
14294  ac_outfile=conftest.$ac_objext
14295   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14296   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14297   # Insert the option either (1) after the last *FLAGS variable, or
14298   # (2) before a word containing "conftest.", or (3) at the end.
14299   # Note that $ac_compile itself does not contain backslashes and begins
14300   # with a dollar sign (not a hyphen), so the echo should work correctly.
14301   # The option is referenced via a variable to avoid confusing sed.
14302   lt_compile=`echo "$ac_compile" | $SED \
14303   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14304   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14305   -e 's:$: $lt_compiler_flag:'`
14306   (eval echo "\"\$as_me:14306: $lt_compile\"" >&5)
14307   (eval "$lt_compile" 2>conftest.err)
14308   ac_status=$?
14309   cat conftest.err >&5
14310   echo "$as_me:14310: \$? = $ac_status" >&5
14311   if (exit $ac_status) && test -s "$ac_outfile"; then
14312     # The compiler can only warn and ignore the option if not recognized
14313     # So say no if there are warnings other than the usual output.
14314     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14315     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14316     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14317       lt_prog_compiler_pic_works_CXX=yes
14318     fi
14319   fi
14320   $rm conftest*
14321
14322fi
14323echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14324echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14325
14326if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14327    case $lt_prog_compiler_pic_CXX in
14328     "" | " "*) ;;
14329     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14330     esac
14331else
14332    lt_prog_compiler_pic_CXX=
14333     lt_prog_compiler_can_build_shared_CXX=no
14334fi
14335
14336fi
14337case $host_os in
14338  # For platforms which do not support PIC, -DPIC is meaningless:
14339  *djgpp*)
14340    lt_prog_compiler_pic_CXX=
14341    ;;
14342  *)
14343    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14344    ;;
14345esac
14346
14347#
14348# Check to make sure the static flag actually works.
14349#
14350wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14351echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14352echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14353if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14354  echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356  lt_prog_compiler_static_works_CXX=no
14357   save_LDFLAGS="$LDFLAGS"
14358   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14359   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14360   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14361     # The linker can only warn and ignore the option if not recognized
14362     # So say no if there are warnings
14363     if test -s conftest.err; then
14364       # Append any errors to the config.log.
14365       cat conftest.err 1>&5
14366       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14367       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14368       if diff conftest.exp conftest.er2 >/dev/null; then
14369         lt_prog_compiler_static_works_CXX=yes
14370       fi
14371     else
14372       lt_prog_compiler_static_works_CXX=yes
14373     fi
14374   fi
14375   $rm conftest*
14376   LDFLAGS="$save_LDFLAGS"
14377
14378fi
14379echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14380echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14381
14382if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14383    :
14384else
14385    lt_prog_compiler_static_CXX=
14386fi
14387
14388
14389echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14390echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14391if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14392  echo $ECHO_N "(cached) $ECHO_C" >&6
14393else
14394  lt_cv_prog_compiler_c_o_CXX=no
14395   $rm -r conftest 2>/dev/null
14396   mkdir conftest
14397   cd conftest
14398   mkdir out
14399   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14400
14401   lt_compiler_flag="-o out/conftest2.$ac_objext"
14402   # Insert the option either (1) after the last *FLAGS variable, or
14403   # (2) before a word containing "conftest.", or (3) at the end.
14404   # Note that $ac_compile itself does not contain backslashes and begins
14405   # with a dollar sign (not a hyphen), so the echo should work correctly.
14406   lt_compile=`echo "$ac_compile" | $SED \
14407   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409   -e 's:$: $lt_compiler_flag:'`
14410   (eval echo "\"\$as_me:14410: $lt_compile\"" >&5)
14411   (eval "$lt_compile" 2>out/conftest.err)
14412   ac_status=$?
14413   cat out/conftest.err >&5
14414   echo "$as_me:14414: \$? = $ac_status" >&5
14415   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14416   then
14417     # The compiler can only warn and ignore the option if not recognized
14418     # So say no if there are warnings
14419     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14420     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14421     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14422       lt_cv_prog_compiler_c_o_CXX=yes
14423     fi
14424   fi
14425   chmod u+w . 2>&5
14426   $rm conftest*
14427   # SGI C++ compiler will create directory out/ii_files/ for
14428   # template instantiation
14429   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14430   $rm out/* && rmdir out
14431   cd ..
14432   rmdir conftest
14433   $rm conftest*
14434
14435fi
14436echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14437echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14438
14439
14440hard_links="nottested"
14441if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14442  # do not overwrite the value of need_locks provided by the user
14443  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14444echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14445  hard_links=yes
14446  $rm conftest*
14447  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14448  touch conftest.a
14449  ln conftest.a conftest.b 2>&5 || hard_links=no
14450  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14451  echo "$as_me:$LINENO: result: $hard_links" >&5
14452echo "${ECHO_T}$hard_links" >&6
14453  if test "$hard_links" = no; then
14454    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14455echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14456    need_locks=warn
14457  fi
14458else
14459  need_locks=no
14460fi
14461
14462echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14463echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14464
14465  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14466  case $host_os in
14467  aix4* | aix5*)
14468    # If we're using GNU nm, then we don't want the "-C" option.
14469    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14470    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14471      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'
14472    else
14473      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'
14474    fi
14475    ;;
14476  pw32*)
14477    export_symbols_cmds_CXX="$ltdll_cmds"
14478  ;;
14479  cygwin* | mingw*)
14480    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'
14481  ;;
14482  *)
14483    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14484  ;;
14485  esac
14486
14487echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14488echo "${ECHO_T}$ld_shlibs_CXX" >&6
14489test "$ld_shlibs_CXX" = no && can_build_shared=no
14490
14491#
14492# Do we need to explicitly link libc?
14493#
14494case "x$archive_cmds_need_lc_CXX" in
14495x|xyes)
14496  # Assume -lc should be added
14497  archive_cmds_need_lc_CXX=yes
14498
14499  if test "$enable_shared" = yes && test "$GCC" = yes; then
14500    case $archive_cmds_CXX in
14501    *'~'*)
14502      # FIXME: we may have to deal with multi-command sequences.
14503      ;;
14504    '$CC '*)
14505      # Test whether the compiler implicitly links with -lc since on some
14506      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14507      # to ld, don't add -lc before -lgcc.
14508      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14510      $rm conftest*
14511      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14512
14513      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514  (eval $ac_compile) 2>&5
14515  ac_status=$?
14516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517  (exit $ac_status); } 2>conftest.err; then
14518        soname=conftest
14519        lib=conftest
14520        libobjs=conftest.$ac_objext
14521        deplibs=
14522        wl=$lt_prog_compiler_wl_CXX
14523	pic_flag=$lt_prog_compiler_pic_CXX
14524        compiler_flags=-v
14525        linker_flags=-v
14526        verstring=
14527        output_objdir=.
14528        libname=conftest
14529        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14530        allow_undefined_flag_CXX=
14531        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14532  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14533  ac_status=$?
14534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535  (exit $ac_status); }
14536        then
14537	  archive_cmds_need_lc_CXX=no
14538        else
14539	  archive_cmds_need_lc_CXX=yes
14540        fi
14541        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14542      else
14543        cat conftest.err 1>&5
14544      fi
14545      $rm conftest*
14546      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14547echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14548      ;;
14549    esac
14550  fi
14551  ;;
14552esac
14553
14554echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14556library_names_spec=
14557libname_spec='lib$name'
14558soname_spec=
14559shrext_cmds=".so"
14560postinstall_cmds=
14561postuninstall_cmds=
14562finish_cmds=
14563finish_eval=
14564shlibpath_var=
14565shlibpath_overrides_runpath=unknown
14566version_type=none
14567dynamic_linker="$host_os ld.so"
14568sys_lib_dlsearch_path_spec="/lib /usr/lib"
14569if test "$GCC" = yes; then
14570  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14571  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14572    # if the path contains ";" then we assume it to be the separator
14573    # otherwise default to the standard path separator (i.e. ":") - it is
14574    # assumed that no part of a normal pathname contains ";" but that should
14575    # okay in the real world where ";" in dirpaths is itself problematic.
14576    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14577  else
14578    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14579  fi
14580else
14581  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14582fi
14583need_lib_prefix=unknown
14584hardcode_into_libs=no
14585
14586# when you set need_version to no, make sure it does not cause -set_version
14587# flags to be left without arguments
14588need_version=unknown
14589
14590case $host_os in
14591aix3*)
14592  version_type=linux
14593  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14594  shlibpath_var=LIBPATH
14595
14596  # AIX 3 has no versioning support, so we append a major version to the name.
14597  soname_spec='${libname}${release}${shared_ext}$major'
14598  ;;
14599
14600aix4* | aix5*)
14601  version_type=linux
14602  need_lib_prefix=no
14603  need_version=no
14604  hardcode_into_libs=yes
14605  if test "$host_cpu" = ia64; then
14606    # AIX 5 supports IA64
14607    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14608    shlibpath_var=LD_LIBRARY_PATH
14609  else
14610    # With GCC up to 2.95.x, collect2 would create an import file
14611    # for dependence libraries.  The import file would start with
14612    # the line `#! .'.  This would cause the generated library to
14613    # depend on `.', always an invalid library.  This was fixed in
14614    # development snapshots of GCC prior to 3.0.
14615    case $host_os in
14616      aix4 | aix4.[01] | aix4.[01].*)
14617      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14618	   echo ' yes '
14619	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14620	:
14621      else
14622	can_build_shared=no
14623      fi
14624      ;;
14625    esac
14626    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14627    # soname into executable. Probably we can add versioning support to
14628    # collect2, so additional links can be useful in future.
14629    if test "$aix_use_runtimelinking" = yes; then
14630      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14631      # instead of lib<name>.a to let people know that these are not
14632      # typical AIX shared libraries.
14633      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634    else
14635      # We preserve .a as extension for shared libraries through AIX4.2
14636      # and later when we are not doing run time linking.
14637      library_names_spec='${libname}${release}.a $libname.a'
14638      soname_spec='${libname}${release}${shared_ext}$major'
14639    fi
14640    shlibpath_var=LIBPATH
14641  fi
14642  ;;
14643
14644amigaos*)
14645  library_names_spec='$libname.ixlibrary $libname.a'
14646  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14647  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'
14648  ;;
14649
14650beos*)
14651  library_names_spec='${libname}${shared_ext}'
14652  dynamic_linker="$host_os ld.so"
14653  shlibpath_var=LIBRARY_PATH
14654  ;;
14655
14656bsdi[45]*)
14657  version_type=linux
14658  need_version=no
14659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660  soname_spec='${libname}${release}${shared_ext}$major'
14661  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14662  shlibpath_var=LD_LIBRARY_PATH
14663  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14664  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14665  # the default ld.so.conf also contains /usr/contrib/lib and
14666  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14667  # libtool to hard-code these into programs
14668  ;;
14669
14670cygwin* | mingw* | pw32*)
14671  version_type=windows
14672  shrext_cmds=".dll"
14673  need_version=no
14674  need_lib_prefix=no
14675
14676  case $GCC,$host_os in
14677  yes,cygwin* | yes,mingw* | yes,pw32*)
14678    library_names_spec='$libname.dll.a'
14679    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14680    postinstall_cmds='base_file=`basename \${file}`~
14681      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14682      dldir=$destdir/`dirname \$dlpath`~
14683      test -d \$dldir || mkdir -p \$dldir~
14684      $install_prog $dir/$dlname \$dldir/$dlname~
14685      chmod a+x \$dldir/$dlname'
14686    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14687      dlpath=$dir/\$dldll~
14688       $rm \$dlpath'
14689    shlibpath_overrides_runpath=yes
14690
14691    case $host_os in
14692    cygwin*)
14693      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14694      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14695      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14696      ;;
14697    mingw*)
14698      # MinGW DLLs use traditional 'lib' prefix
14699      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14700      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14701      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14702        # It is most probably a Windows format PATH printed by
14703        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14704        # path with ; separators, and with drive letters. We can handle the
14705        # drive letters (cygwin fileutils understands them), so leave them,
14706        # especially as we might pass files found there to a mingw objdump,
14707        # which wouldn't understand a cygwinified path. Ahh.
14708        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14709      else
14710        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14711      fi
14712      ;;
14713    pw32*)
14714      # pw32 DLLs use 'pw' prefix rather than 'lib'
14715      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14716      ;;
14717    esac
14718    ;;
14719
14720  *)
14721    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14722    ;;
14723  esac
14724  dynamic_linker='Win32 ld.exe'
14725  # FIXME: first we should search . and the directory the executable is in
14726  shlibpath_var=PATH
14727  ;;
14728
14729darwin* | rhapsody*)
14730  dynamic_linker="$host_os dyld"
14731  version_type=darwin
14732  need_lib_prefix=no
14733  need_version=no
14734  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14735  soname_spec='${libname}${release}${major}$shared_ext'
14736  shlibpath_overrides_runpath=yes
14737  shlibpath_var=DYLD_LIBRARY_PATH
14738  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14739  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14740  if test "$GCC" = yes; then
14741    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"`
14742  else
14743    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14744  fi
14745  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14746  ;;
14747
14748dgux*)
14749  version_type=linux
14750  need_lib_prefix=no
14751  need_version=no
14752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14753  soname_spec='${libname}${release}${shared_ext}$major'
14754  shlibpath_var=LD_LIBRARY_PATH
14755  ;;
14756
14757freebsd1*)
14758  dynamic_linker=no
14759  ;;
14760
14761kfreebsd*-gnu)
14762  version_type=linux
14763  need_lib_prefix=no
14764  need_version=no
14765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14766  soname_spec='${libname}${release}${shared_ext}$major'
14767  shlibpath_var=LD_LIBRARY_PATH
14768  shlibpath_overrides_runpath=no
14769  hardcode_into_libs=yes
14770  dynamic_linker='GNU ld.so'
14771  ;;
14772
14773freebsd* | dragonfly*)
14774  # DragonFly does not have aout.  When/if they implement a new
14775  # versioning mechanism, adjust this.
14776  if test -x /usr/bin/objformat; then
14777    objformat=`/usr/bin/objformat`
14778  else
14779    case $host_os in
14780    freebsd[123]*) objformat=aout ;;
14781    *) objformat=elf ;;
14782    esac
14783  fi
14784  version_type=freebsd-$objformat
14785  case $version_type in
14786    freebsd-elf*)
14787      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14788      need_version=no
14789      need_lib_prefix=no
14790      ;;
14791    freebsd-*)
14792      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14793      need_version=yes
14794      ;;
14795  esac
14796  shlibpath_var=LD_LIBRARY_PATH
14797  case $host_os in
14798  freebsd2*)
14799    shlibpath_overrides_runpath=yes
14800    ;;
14801  freebsd3.[01]* | freebsdelf3.[01]*)
14802    shlibpath_overrides_runpath=yes
14803    hardcode_into_libs=yes
14804    ;;
14805  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14806  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14807    shlibpath_overrides_runpath=no
14808    hardcode_into_libs=yes
14809    ;;
14810  freebsd*) # from 4.6 on
14811    shlibpath_overrides_runpath=yes
14812    hardcode_into_libs=yes
14813    ;;
14814  esac
14815  ;;
14816
14817gnu*)
14818  version_type=linux
14819  need_lib_prefix=no
14820  need_version=no
14821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14822  soname_spec='${libname}${release}${shared_ext}$major'
14823  shlibpath_var=LD_LIBRARY_PATH
14824  hardcode_into_libs=yes
14825  ;;
14826
14827hpux9* | hpux10* | hpux11*)
14828  # Give a soname corresponding to the major version so that dld.sl refuses to
14829  # link against other versions.
14830  version_type=sunos
14831  need_lib_prefix=no
14832  need_version=no
14833  case $host_cpu in
14834  ia64*)
14835    shrext_cmds='.so'
14836    hardcode_into_libs=yes
14837    dynamic_linker="$host_os dld.so"
14838    shlibpath_var=LD_LIBRARY_PATH
14839    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14840    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841    soname_spec='${libname}${release}${shared_ext}$major'
14842    if test "X$HPUX_IA64_MODE" = X32; then
14843      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14844    else
14845      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14846    fi
14847    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14848    ;;
14849   hppa*64*)
14850     shrext_cmds='.sl'
14851     hardcode_into_libs=yes
14852     dynamic_linker="$host_os dld.sl"
14853     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856     soname_spec='${libname}${release}${shared_ext}$major'
14857     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14858     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14859     ;;
14860   *)
14861    shrext_cmds='.sl'
14862    dynamic_linker="$host_os dld.sl"
14863    shlibpath_var=SHLIB_PATH
14864    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866    soname_spec='${libname}${release}${shared_ext}$major'
14867    ;;
14868  esac
14869  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14870  postinstall_cmds='chmod 555 $lib'
14871  ;;
14872
14873interix3*)
14874  version_type=linux
14875  need_lib_prefix=no
14876  need_version=no
14877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14878  soname_spec='${libname}${release}${shared_ext}$major'
14879  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14880  shlibpath_var=LD_LIBRARY_PATH
14881  shlibpath_overrides_runpath=no
14882  hardcode_into_libs=yes
14883  ;;
14884
14885irix5* | irix6* | nonstopux*)
14886  case $host_os in
14887    nonstopux*) version_type=nonstopux ;;
14888    *)
14889	if test "$lt_cv_prog_gnu_ld" = yes; then
14890		version_type=linux
14891	else
14892		version_type=irix
14893	fi ;;
14894  esac
14895  need_lib_prefix=no
14896  need_version=no
14897  soname_spec='${libname}${release}${shared_ext}$major'
14898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14899  case $host_os in
14900  irix5* | nonstopux*)
14901    libsuff= shlibsuff=
14902    ;;
14903  *)
14904    case $LD in # libtool.m4 will add one of these switches to LD
14905    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14906      libsuff= shlibsuff= libmagic=32-bit;;
14907    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14908      libsuff=32 shlibsuff=N32 libmagic=N32;;
14909    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14910      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14911    *) libsuff= shlibsuff= libmagic=never-match;;
14912    esac
14913    ;;
14914  esac
14915  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14916  shlibpath_overrides_runpath=no
14917  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14918  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14919  hardcode_into_libs=yes
14920  ;;
14921
14922# No shared lib support for Linux oldld, aout, or coff.
14923linux*oldld* | linux*aout* | linux*coff*)
14924  dynamic_linker=no
14925  ;;
14926
14927# This must be Linux ELF.
14928linux*)
14929  version_type=linux
14930  need_lib_prefix=no
14931  need_version=no
14932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933  soname_spec='${libname}${release}${shared_ext}$major'
14934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14935  shlibpath_var=LD_LIBRARY_PATH
14936  shlibpath_overrides_runpath=no
14937  # This implies no fast_install, which is unacceptable.
14938  # Some rework will be needed to allow for fast_install
14939  # before this can be enabled.
14940  hardcode_into_libs=yes
14941
14942  # Append ld.so.conf contents to the search path
14943  if test -f /etc/ld.so.conf; then
14944    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' ' '`
14945    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14946  fi
14947
14948  # We used to test for /lib/ld.so.1 and disable shared libraries on
14949  # powerpc, because MkLinux only supported shared libraries with the
14950  # GNU dynamic linker.  Since this was broken with cross compilers,
14951  # most powerpc-linux boxes support dynamic linking these days and
14952  # people can always --disable-shared, the test was removed, and we
14953  # assume the GNU/Linux dynamic linker is in use.
14954  dynamic_linker='GNU/Linux ld.so'
14955  ;;
14956
14957knetbsd*-gnu)
14958  version_type=linux
14959  need_lib_prefix=no
14960  need_version=no
14961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  shlibpath_var=LD_LIBRARY_PATH
14964  shlibpath_overrides_runpath=no
14965  hardcode_into_libs=yes
14966  dynamic_linker='GNU ld.so'
14967  ;;
14968
14969netbsd*)
14970  version_type=sunos
14971  need_lib_prefix=no
14972  need_version=no
14973  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14974    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14975    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14976    dynamic_linker='NetBSD (a.out) ld.so'
14977  else
14978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14979    soname_spec='${libname}${release}${shared_ext}$major'
14980    dynamic_linker='NetBSD ld.elf_so'
14981  fi
14982  shlibpath_var=LD_LIBRARY_PATH
14983  shlibpath_overrides_runpath=yes
14984  hardcode_into_libs=yes
14985  ;;
14986
14987newsos6)
14988  version_type=linux
14989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990  shlibpath_var=LD_LIBRARY_PATH
14991  shlibpath_overrides_runpath=yes
14992  ;;
14993
14994nto-qnx*)
14995  version_type=linux
14996  need_lib_prefix=no
14997  need_version=no
14998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999  soname_spec='${libname}${release}${shared_ext}$major'
15000  shlibpath_var=LD_LIBRARY_PATH
15001  shlibpath_overrides_runpath=yes
15002  ;;
15003
15004openbsd*)
15005  version_type=sunos
15006  sys_lib_dlsearch_path_spec="/usr/lib"
15007  need_lib_prefix=no
15008  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15009  case $host_os in
15010    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15011    *)                         need_version=no  ;;
15012  esac
15013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15014  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15015  shlibpath_var=LD_LIBRARY_PATH
15016  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15017    case $host_os in
15018      openbsd2.[89] | openbsd2.[89].*)
15019	shlibpath_overrides_runpath=no
15020	;;
15021      *)
15022	shlibpath_overrides_runpath=yes
15023	;;
15024      esac
15025  else
15026    shlibpath_overrides_runpath=yes
15027  fi
15028  ;;
15029
15030os2*)
15031  libname_spec='$name'
15032  shrext_cmds=".dll"
15033  need_lib_prefix=no
15034  library_names_spec='$libname${shared_ext} $libname.a'
15035  dynamic_linker='OS/2 ld.exe'
15036  shlibpath_var=LIBPATH
15037  ;;
15038
15039osf3* | osf4* | osf5*)
15040  version_type=osf
15041  need_lib_prefix=no
15042  need_version=no
15043  soname_spec='${libname}${release}${shared_ext}$major'
15044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15045  shlibpath_var=LD_LIBRARY_PATH
15046  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15047  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15048  ;;
15049
15050solaris*)
15051  version_type=linux
15052  need_lib_prefix=no
15053  need_version=no
15054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055  soname_spec='${libname}${release}${shared_ext}$major'
15056  shlibpath_var=LD_LIBRARY_PATH
15057  shlibpath_overrides_runpath=yes
15058  hardcode_into_libs=yes
15059  # ldd complains unless libraries are executable
15060  postinstall_cmds='chmod +x $lib'
15061  ;;
15062
15063sunos4*)
15064  version_type=sunos
15065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15066  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15067  shlibpath_var=LD_LIBRARY_PATH
15068  shlibpath_overrides_runpath=yes
15069  if test "$with_gnu_ld" = yes; then
15070    need_lib_prefix=no
15071  fi
15072  need_version=yes
15073  ;;
15074
15075sysv4 | sysv4.3*)
15076  version_type=linux
15077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078  soname_spec='${libname}${release}${shared_ext}$major'
15079  shlibpath_var=LD_LIBRARY_PATH
15080  case $host_vendor in
15081    sni)
15082      shlibpath_overrides_runpath=no
15083      need_lib_prefix=no
15084      export_dynamic_flag_spec='${wl}-Blargedynsym'
15085      runpath_var=LD_RUN_PATH
15086      ;;
15087    siemens)
15088      need_lib_prefix=no
15089      ;;
15090    motorola)
15091      need_lib_prefix=no
15092      need_version=no
15093      shlibpath_overrides_runpath=no
15094      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15095      ;;
15096  esac
15097  ;;
15098
15099sysv4*MP*)
15100  if test -d /usr/nec ;then
15101    version_type=linux
15102    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15103    soname_spec='$libname${shared_ext}.$major'
15104    shlibpath_var=LD_LIBRARY_PATH
15105  fi
15106  ;;
15107
15108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15109  version_type=freebsd-elf
15110  need_lib_prefix=no
15111  need_version=no
15112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15113  soname_spec='${libname}${release}${shared_ext}$major'
15114  shlibpath_var=LD_LIBRARY_PATH
15115  hardcode_into_libs=yes
15116  if test "$with_gnu_ld" = yes; then
15117    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15118    shlibpath_overrides_runpath=no
15119  else
15120    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15121    shlibpath_overrides_runpath=yes
15122    case $host_os in
15123      sco3.2v5*)
15124        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15125	;;
15126    esac
15127  fi
15128  sys_lib_dlsearch_path_spec='/usr/lib'
15129  ;;
15130
15131uts4*)
15132  version_type=linux
15133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134  soname_spec='${libname}${release}${shared_ext}$major'
15135  shlibpath_var=LD_LIBRARY_PATH
15136  ;;
15137
15138*)
15139  dynamic_linker=no
15140  ;;
15141esac
15142echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15143echo "${ECHO_T}$dynamic_linker" >&6
15144test "$dynamic_linker" = no && can_build_shared=no
15145
15146variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15147if test "$GCC" = yes; then
15148  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15149fi
15150
15151echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15152echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15153hardcode_action_CXX=
15154if test -n "$hardcode_libdir_flag_spec_CXX" || \
15155   test -n "$runpath_var_CXX" || \
15156   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15157
15158  # We can hardcode non-existant directories.
15159  if test "$hardcode_direct_CXX" != no &&
15160     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15161     # have to relink, otherwise we might link with an installed library
15162     # when we should be linking with a yet-to-be-installed one
15163     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15164     test "$hardcode_minus_L_CXX" != no; then
15165    # Linking always hardcodes the temporary library directory.
15166    hardcode_action_CXX=relink
15167  else
15168    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15169    hardcode_action_CXX=immediate
15170  fi
15171else
15172  # We cannot hardcode anything, or else we can only hardcode existing
15173  # directories.
15174  hardcode_action_CXX=unsupported
15175fi
15176echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15177echo "${ECHO_T}$hardcode_action_CXX" >&6
15178
15179if test "$hardcode_action_CXX" = relink; then
15180  # Fast installation is not supported
15181  enable_fast_install=no
15182elif test "$shlibpath_overrides_runpath" = yes ||
15183     test "$enable_shared" = no; then
15184  # Fast installation is not necessary
15185  enable_fast_install=needless
15186fi
15187
15188
15189# The else clause should only fire when bootstrapping the
15190# libtool distribution, otherwise you forgot to ship ltmain.sh
15191# with your package, and you will get complaints that there are
15192# no rules to generate ltmain.sh.
15193if test -f "$ltmain"; then
15194  # See if we are running on zsh, and set the options which allow our commands through
15195  # without removal of \ escapes.
15196  if test -n "${ZSH_VERSION+set}" ; then
15197    setopt NO_GLOB_SUBST
15198  fi
15199  # Now quote all the things that may contain metacharacters while being
15200  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15201  # variables and quote the copies for generation of the libtool script.
15202  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15203    SED SHELL STRIP \
15204    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15205    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15206    deplibs_check_method reload_flag reload_cmds need_locks \
15207    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15208    lt_cv_sys_global_symbol_to_c_name_address \
15209    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15210    old_postinstall_cmds old_postuninstall_cmds \
15211    compiler_CXX \
15212    CC_CXX \
15213    LD_CXX \
15214    lt_prog_compiler_wl_CXX \
15215    lt_prog_compiler_pic_CXX \
15216    lt_prog_compiler_static_CXX \
15217    lt_prog_compiler_no_builtin_flag_CXX \
15218    export_dynamic_flag_spec_CXX \
15219    thread_safe_flag_spec_CXX \
15220    whole_archive_flag_spec_CXX \
15221    enable_shared_with_static_runtimes_CXX \
15222    old_archive_cmds_CXX \
15223    old_archive_from_new_cmds_CXX \
15224    predep_objects_CXX \
15225    postdep_objects_CXX \
15226    predeps_CXX \
15227    postdeps_CXX \
15228    compiler_lib_search_path_CXX \
15229    archive_cmds_CXX \
15230    archive_expsym_cmds_CXX \
15231    postinstall_cmds_CXX \
15232    postuninstall_cmds_CXX \
15233    old_archive_from_expsyms_cmds_CXX \
15234    allow_undefined_flag_CXX \
15235    no_undefined_flag_CXX \
15236    export_symbols_cmds_CXX \
15237    hardcode_libdir_flag_spec_CXX \
15238    hardcode_libdir_flag_spec_ld_CXX \
15239    hardcode_libdir_separator_CXX \
15240    hardcode_automatic_CXX \
15241    module_cmds_CXX \
15242    module_expsym_cmds_CXX \
15243    lt_cv_prog_compiler_c_o_CXX \
15244    exclude_expsyms_CXX \
15245    include_expsyms_CXX; do
15246
15247    case $var in
15248    old_archive_cmds_CXX | \
15249    old_archive_from_new_cmds_CXX | \
15250    archive_cmds_CXX | \
15251    archive_expsym_cmds_CXX | \
15252    module_cmds_CXX | \
15253    module_expsym_cmds_CXX | \
15254    old_archive_from_expsyms_cmds_CXX | \
15255    export_symbols_cmds_CXX | \
15256    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15257    postinstall_cmds | postuninstall_cmds | \
15258    old_postinstall_cmds | old_postuninstall_cmds | \
15259    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15260      # Double-quote double-evaled strings.
15261      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15262      ;;
15263    *)
15264      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15265      ;;
15266    esac
15267  done
15268
15269  case $lt_echo in
15270  *'\$0 --fallback-echo"')
15271    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15272    ;;
15273  esac
15274
15275cfgfile="$ofile"
15276
15277  cat <<__EOF__ >> "$cfgfile"
15278# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15279
15280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15281
15282# Shell to use when invoking shell scripts.
15283SHELL=$lt_SHELL
15284
15285# Whether or not to build shared libraries.
15286build_libtool_libs=$enable_shared
15287
15288# Whether or not to build static libraries.
15289build_old_libs=$enable_static
15290
15291# Whether or not to add -lc for building shared libraries.
15292build_libtool_need_lc=$archive_cmds_need_lc_CXX
15293
15294# Whether or not to disallow shared libs when runtime libs are static
15295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15296
15297# Whether or not to optimize for fast installation.
15298fast_install=$enable_fast_install
15299
15300# The host system.
15301host_alias=$host_alias
15302host=$host
15303host_os=$host_os
15304
15305# The build system.
15306build_alias=$build_alias
15307build=$build
15308build_os=$build_os
15309
15310# An echo program that does not interpret backslashes.
15311echo=$lt_echo
15312
15313# The archiver.
15314AR=$lt_AR
15315AR_FLAGS=$lt_AR_FLAGS
15316
15317# A C compiler.
15318LTCC=$lt_LTCC
15319
15320# LTCC compiler flags.
15321LTCFLAGS=$lt_LTCFLAGS
15322
15323# A language-specific compiler.
15324CC=$lt_compiler_CXX
15325
15326# Is the compiler the GNU C compiler?
15327with_gcc=$GCC_CXX
15328
15329# An ERE matcher.
15330EGREP=$lt_EGREP
15331
15332# The linker used to build libraries.
15333LD=$lt_LD_CXX
15334
15335# Whether we need hard or soft links.
15336LN_S=$lt_LN_S
15337
15338# A BSD-compatible nm program.
15339NM=$lt_NM
15340
15341# A symbol stripping program
15342STRIP=$lt_STRIP
15343
15344# Used to examine libraries when file_magic_cmd begins "file"
15345MAGIC_CMD=$MAGIC_CMD
15346
15347# Used on cygwin: DLL creation program.
15348DLLTOOL="$DLLTOOL"
15349
15350# Used on cygwin: object dumper.
15351OBJDUMP="$OBJDUMP"
15352
15353# Used on cygwin: assembler.
15354AS="$AS"
15355
15356# The name of the directory that contains temporary libtool files.
15357objdir=$objdir
15358
15359# How to create reloadable object files.
15360reload_flag=$lt_reload_flag
15361reload_cmds=$lt_reload_cmds
15362
15363# How to pass a linker flag through the compiler.
15364wl=$lt_lt_prog_compiler_wl_CXX
15365
15366# Object file suffix (normally "o").
15367objext="$ac_objext"
15368
15369# Old archive suffix (normally "a").
15370libext="$libext"
15371
15372# Shared library suffix (normally ".so").
15373shrext_cmds='$shrext_cmds'
15374
15375# Executable file suffix (normally "").
15376exeext="$exeext"
15377
15378# Additional compiler flags for building library objects.
15379pic_flag=$lt_lt_prog_compiler_pic_CXX
15380pic_mode=$pic_mode
15381
15382# What is the maximum length of a command?
15383max_cmd_len=$lt_cv_sys_max_cmd_len
15384
15385# Does compiler simultaneously support -c and -o options?
15386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15387
15388# Must we lock files when doing compilation?
15389need_locks=$lt_need_locks
15390
15391# Do we need the lib prefix for modules?
15392need_lib_prefix=$need_lib_prefix
15393
15394# Do we need a version for libraries?
15395need_version=$need_version
15396
15397# Whether dlopen is supported.
15398dlopen_support=$enable_dlopen
15399
15400# Whether dlopen of programs is supported.
15401dlopen_self=$enable_dlopen_self
15402
15403# Whether dlopen of statically linked programs is supported.
15404dlopen_self_static=$enable_dlopen_self_static
15405
15406# Compiler flag to prevent dynamic linking.
15407link_static_flag=$lt_lt_prog_compiler_static_CXX
15408
15409# Compiler flag to turn off builtin functions.
15410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15411
15412# Compiler flag to allow reflexive dlopens.
15413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15414
15415# Compiler flag to generate shared objects directly from archives.
15416whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15417
15418# Compiler flag to generate thread-safe objects.
15419thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15420
15421# Library versioning type.
15422version_type=$version_type
15423
15424# Format of library name prefix.
15425libname_spec=$lt_libname_spec
15426
15427# List of archive names.  First name is the real one, the rest are links.
15428# The last name is the one that the linker finds with -lNAME.
15429library_names_spec=$lt_library_names_spec
15430
15431# The coded name of the library, if different from the real name.
15432soname_spec=$lt_soname_spec
15433
15434# Commands used to build and install an old-style archive.
15435RANLIB=$lt_RANLIB
15436old_archive_cmds=$lt_old_archive_cmds_CXX
15437old_postinstall_cmds=$lt_old_postinstall_cmds
15438old_postuninstall_cmds=$lt_old_postuninstall_cmds
15439
15440# Create an old-style archive from a shared archive.
15441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15442
15443# Create a temporary old-style archive to link instead of a shared archive.
15444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15445
15446# Commands used to build and install a shared archive.
15447archive_cmds=$lt_archive_cmds_CXX
15448archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15449postinstall_cmds=$lt_postinstall_cmds
15450postuninstall_cmds=$lt_postuninstall_cmds
15451
15452# Commands used to build a loadable module (assumed same as above if empty)
15453module_cmds=$lt_module_cmds_CXX
15454module_expsym_cmds=$lt_module_expsym_cmds_CXX
15455
15456# Commands to strip libraries.
15457old_striplib=$lt_old_striplib
15458striplib=$lt_striplib
15459
15460# Dependencies to place before the objects being linked to create a
15461# shared library.
15462predep_objects=$lt_predep_objects_CXX
15463
15464# Dependencies to place after the objects being linked to create a
15465# shared library.
15466postdep_objects=$lt_postdep_objects_CXX
15467
15468# Dependencies to place before the objects being linked to create a
15469# shared library.
15470predeps=$lt_predeps_CXX
15471
15472# Dependencies to place after the objects being linked to create a
15473# shared library.
15474postdeps=$lt_postdeps_CXX
15475
15476# The library search path used internally by the compiler when linking
15477# a shared library.
15478compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15479
15480# Method to check whether dependent libraries are shared objects.
15481deplibs_check_method=$lt_deplibs_check_method
15482
15483# Command to use when deplibs_check_method == file_magic.
15484file_magic_cmd=$lt_file_magic_cmd
15485
15486# Flag that allows shared libraries with undefined symbols to be built.
15487allow_undefined_flag=$lt_allow_undefined_flag_CXX
15488
15489# Flag that forces no undefined symbols.
15490no_undefined_flag=$lt_no_undefined_flag_CXX
15491
15492# Commands used to finish a libtool library installation in a directory.
15493finish_cmds=$lt_finish_cmds
15494
15495# Same as above, but a single script fragment to be evaled but not shown.
15496finish_eval=$lt_finish_eval
15497
15498# Take the output of nm and produce a listing of raw symbols and C names.
15499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15500
15501# Transform the output of nm in a proper C declaration
15502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15503
15504# Transform the output of nm in a C name address pair
15505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15506
15507# This is the shared library runtime path variable.
15508runpath_var=$runpath_var
15509
15510# This is the shared library path variable.
15511shlibpath_var=$shlibpath_var
15512
15513# Is shlibpath searched before the hard-coded library search path?
15514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15515
15516# How to hardcode a shared library path into an executable.
15517hardcode_action=$hardcode_action_CXX
15518
15519# Whether we should hardcode library paths into libraries.
15520hardcode_into_libs=$hardcode_into_libs
15521
15522# Flag to hardcode \$libdir into a binary during linking.
15523# This must work even if \$libdir does not exist.
15524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15525
15526# If ld is used when linking, flag to hardcode \$libdir into
15527# a binary during linking. This must work even if \$libdir does
15528# not exist.
15529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15530
15531# Whether we need a single -rpath flag with a separated argument.
15532hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15533
15534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15535# resulting binary.
15536hardcode_direct=$hardcode_direct_CXX
15537
15538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15539# resulting binary.
15540hardcode_minus_L=$hardcode_minus_L_CXX
15541
15542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15543# the resulting binary.
15544hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15545
15546# Set to yes if building a shared library automatically hardcodes DIR into the library
15547# and all subsequent libraries and executables linked against it.
15548hardcode_automatic=$hardcode_automatic_CXX
15549
15550# Variables whose values should be saved in libtool wrapper scripts and
15551# restored at relink time.
15552variables_saved_for_relink="$variables_saved_for_relink"
15553
15554# Whether libtool must link a program against all its dependency libraries.
15555link_all_deplibs=$link_all_deplibs_CXX
15556
15557# Compile-time system search path for libraries
15558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15559
15560# Run-time system search path for libraries
15561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15562
15563# Fix the shell variable \$srcfile for the compiler.
15564fix_srcfile_path="$fix_srcfile_path_CXX"
15565
15566# Set to yes if exported symbols are required.
15567always_export_symbols=$always_export_symbols_CXX
15568
15569# The commands to list exported symbols.
15570export_symbols_cmds=$lt_export_symbols_cmds_CXX
15571
15572# The commands to extract the exported symbol list from a shared archive.
15573extract_expsyms_cmds=$lt_extract_expsyms_cmds
15574
15575# Symbols that should not be listed in the preloaded symbols.
15576exclude_expsyms=$lt_exclude_expsyms_CXX
15577
15578# Symbols that must always be exported.
15579include_expsyms=$lt_include_expsyms_CXX
15580
15581# ### END LIBTOOL TAG CONFIG: $tagname
15582
15583__EOF__
15584
15585
15586else
15587  # If there is no Makefile yet, we rely on a make rule to execute
15588  # `config.status --recheck' to rerun these tests and create the
15589  # libtool script then.
15590  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15591  if test -f "$ltmain_in"; then
15592    test -f Makefile && make "$ltmain"
15593  fi
15594fi
15595
15596
15597ac_ext=c
15598ac_cpp='$CPP $CPPFLAGS'
15599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15601ac_compiler_gnu=$ac_cv_c_compiler_gnu
15602
15603CC=$lt_save_CC
15604LDCXX=$LD
15605LD=$lt_save_LD
15606GCC=$lt_save_GCC
15607with_gnu_ldcxx=$with_gnu_ld
15608with_gnu_ld=$lt_save_with_gnu_ld
15609lt_cv_path_LDCXX=$lt_cv_path_LD
15610lt_cv_path_LD=$lt_save_path_LD
15611lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15612lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15613
15614	else
15615	  tagname=""
15616	fi
15617	;;
15618
15619      F77)
15620	if test -n "$F77" && test "X$F77" != "Xno"; then
15621
15622ac_ext=f
15623ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15624ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15625ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15626
15627
15628archive_cmds_need_lc_F77=no
15629allow_undefined_flag_F77=
15630always_export_symbols_F77=no
15631archive_expsym_cmds_F77=
15632export_dynamic_flag_spec_F77=
15633hardcode_direct_F77=no
15634hardcode_libdir_flag_spec_F77=
15635hardcode_libdir_flag_spec_ld_F77=
15636hardcode_libdir_separator_F77=
15637hardcode_minus_L_F77=no
15638hardcode_automatic_F77=no
15639module_cmds_F77=
15640module_expsym_cmds_F77=
15641link_all_deplibs_F77=unknown
15642old_archive_cmds_F77=$old_archive_cmds
15643no_undefined_flag_F77=
15644whole_archive_flag_spec_F77=
15645enable_shared_with_static_runtimes_F77=no
15646
15647# Source file extension for f77 test sources.
15648ac_ext=f
15649
15650# Object file extension for compiled f77 test sources.
15651objext=o
15652objext_F77=$objext
15653
15654# Code to be used in simple compile tests
15655lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15656
15657# Code to be used in simple link tests
15658lt_simple_link_test_code="      program t\n      end\n"
15659
15660# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15661
15662# If no C compiler was specified, use CC.
15663LTCC=${LTCC-"$CC"}
15664
15665# If no C compiler flags were specified, use CFLAGS.
15666LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15667
15668# Allow CC to be a program name with arguments.
15669compiler=$CC
15670
15671
15672# save warnings/boilerplate of simple test code
15673ac_outfile=conftest.$ac_objext
15674printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15675eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15676_lt_compiler_boilerplate=`cat conftest.err`
15677$rm conftest*
15678
15679ac_outfile=conftest.$ac_objext
15680printf "$lt_simple_link_test_code" >conftest.$ac_ext
15681eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15682_lt_linker_boilerplate=`cat conftest.err`
15683$rm conftest*
15684
15685
15686# Allow CC to be a program name with arguments.
15687lt_save_CC="$CC"
15688CC=${F77-"f77"}
15689compiler=$CC
15690compiler_F77=$CC
15691for cc_temp in $compiler""; do
15692  case $cc_temp in
15693    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15694    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15695    \-*) ;;
15696    *) break;;
15697  esac
15698done
15699cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15700
15701
15702echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15703echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15704echo "$as_me:$LINENO: result: $can_build_shared" >&5
15705echo "${ECHO_T}$can_build_shared" >&6
15706
15707echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15708echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15709test "$can_build_shared" = "no" && enable_shared=no
15710
15711# On AIX, shared libraries and static libraries use the same namespace, and
15712# are all built from PIC.
15713case $host_os in
15714aix3*)
15715  test "$enable_shared" = yes && enable_static=no
15716  if test -n "$RANLIB"; then
15717    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15718    postinstall_cmds='$RANLIB $lib'
15719  fi
15720  ;;
15721aix4* | aix5*)
15722  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15723    test "$enable_shared" = yes && enable_static=no
15724  fi
15725  ;;
15726esac
15727echo "$as_me:$LINENO: result: $enable_shared" >&5
15728echo "${ECHO_T}$enable_shared" >&6
15729
15730echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15731echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15732# Make sure either enable_shared or enable_static is yes.
15733test "$enable_shared" = yes || enable_static=yes
15734echo "$as_me:$LINENO: result: $enable_static" >&5
15735echo "${ECHO_T}$enable_static" >&6
15736
15737GCC_F77="$G77"
15738LD_F77="$LD"
15739
15740lt_prog_compiler_wl_F77=
15741lt_prog_compiler_pic_F77=
15742lt_prog_compiler_static_F77=
15743
15744echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15745echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15746
15747  if test "$GCC" = yes; then
15748    lt_prog_compiler_wl_F77='-Wl,'
15749    lt_prog_compiler_static_F77='-static'
15750
15751    case $host_os in
15752      aix*)
15753      # All AIX code is PIC.
15754      if test "$host_cpu" = ia64; then
15755	# AIX 5 now supports IA64 processor
15756	lt_prog_compiler_static_F77='-Bstatic'
15757      fi
15758      ;;
15759
15760    amigaos*)
15761      # FIXME: we need at least 68020 code to build shared libraries, but
15762      # adding the `-m68020' flag to GCC prevents building anything better,
15763      # like `-m68040'.
15764      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15765      ;;
15766
15767    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15768      # PIC is the default for these OSes.
15769      ;;
15770
15771    mingw* | pw32* | os2*)
15772      # This hack is so that the source file can tell whether it is being
15773      # built for inclusion in a dll (and should export symbols for example).
15774      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15775      ;;
15776
15777    darwin* | rhapsody*)
15778      # PIC is the default on this platform
15779      # Common symbols not allowed in MH_DYLIB files
15780      lt_prog_compiler_pic_F77='-fno-common'
15781      ;;
15782
15783    interix3*)
15784      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15785      # Instead, we relocate shared libraries at runtime.
15786      ;;
15787
15788    msdosdjgpp*)
15789      # Just because we use GCC doesn't mean we suddenly get shared libraries
15790      # on systems that don't support them.
15791      lt_prog_compiler_can_build_shared_F77=no
15792      enable_shared=no
15793      ;;
15794
15795    sysv4*MP*)
15796      if test -d /usr/nec; then
15797	lt_prog_compiler_pic_F77=-Kconform_pic
15798      fi
15799      ;;
15800
15801    hpux*)
15802      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15803      # not for PA HP-UX.
15804      case $host_cpu in
15805      hppa*64*|ia64*)
15806	# +Z the default
15807	;;
15808      *)
15809	lt_prog_compiler_pic_F77='-fPIC'
15810	;;
15811      esac
15812      ;;
15813
15814    *)
15815      lt_prog_compiler_pic_F77='-fPIC'
15816      ;;
15817    esac
15818  else
15819    # PORTME Check for flag to pass linker flags through the system compiler.
15820    case $host_os in
15821    aix*)
15822      lt_prog_compiler_wl_F77='-Wl,'
15823      if test "$host_cpu" = ia64; then
15824	# AIX 5 now supports IA64 processor
15825	lt_prog_compiler_static_F77='-Bstatic'
15826      else
15827	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15828      fi
15829      ;;
15830      darwin*)
15831        # PIC is the default on this platform
15832        # Common symbols not allowed in MH_DYLIB files
15833       case $cc_basename in
15834         xlc*)
15835         lt_prog_compiler_pic_F77='-qnocommon'
15836         lt_prog_compiler_wl_F77='-Wl,'
15837         ;;
15838       esac
15839       ;;
15840
15841    mingw* | pw32* | os2*)
15842      # This hack is so that the source file can tell whether it is being
15843      # built for inclusion in a dll (and should export symbols for example).
15844      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15845      ;;
15846
15847    hpux9* | hpux10* | hpux11*)
15848      lt_prog_compiler_wl_F77='-Wl,'
15849      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15850      # not for PA HP-UX.
15851      case $host_cpu in
15852      hppa*64*|ia64*)
15853	# +Z the default
15854	;;
15855      *)
15856	lt_prog_compiler_pic_F77='+Z'
15857	;;
15858      esac
15859      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15860      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15861      ;;
15862
15863    irix5* | irix6* | nonstopux*)
15864      lt_prog_compiler_wl_F77='-Wl,'
15865      # PIC (with -KPIC) is the default.
15866      lt_prog_compiler_static_F77='-non_shared'
15867      ;;
15868
15869    newsos6)
15870      lt_prog_compiler_pic_F77='-KPIC'
15871      lt_prog_compiler_static_F77='-Bstatic'
15872      ;;
15873
15874    linux*)
15875      case $cc_basename in
15876      icc* | ecc*)
15877	lt_prog_compiler_wl_F77='-Wl,'
15878	lt_prog_compiler_pic_F77='-KPIC'
15879	lt_prog_compiler_static_F77='-static'
15880        ;;
15881      pgcc* | pgf77* | pgf90* | pgf95*)
15882        # Portland Group compilers (*not* the Pentium gcc compiler,
15883	# which looks to be a dead project)
15884	lt_prog_compiler_wl_F77='-Wl,'
15885	lt_prog_compiler_pic_F77='-fpic'
15886	lt_prog_compiler_static_F77='-Bstatic'
15887        ;;
15888      ccc*)
15889        lt_prog_compiler_wl_F77='-Wl,'
15890        # All Alpha code is PIC.
15891        lt_prog_compiler_static_F77='-non_shared'
15892        ;;
15893      esac
15894      ;;
15895
15896    osf3* | osf4* | osf5*)
15897      lt_prog_compiler_wl_F77='-Wl,'
15898      # All OSF/1 code is PIC.
15899      lt_prog_compiler_static_F77='-non_shared'
15900      ;;
15901
15902    solaris*)
15903      lt_prog_compiler_pic_F77='-KPIC'
15904      lt_prog_compiler_static_F77='-Bstatic'
15905      case $cc_basename in
15906      f77* | f90* | f95*)
15907	lt_prog_compiler_wl_F77='-Qoption ld ';;
15908      *)
15909	lt_prog_compiler_wl_F77='-Wl,';;
15910      esac
15911      ;;
15912
15913    sunos4*)
15914      lt_prog_compiler_wl_F77='-Qoption ld '
15915      lt_prog_compiler_pic_F77='-PIC'
15916      lt_prog_compiler_static_F77='-Bstatic'
15917      ;;
15918
15919    sysv4 | sysv4.2uw2* | sysv4.3*)
15920      lt_prog_compiler_wl_F77='-Wl,'
15921      lt_prog_compiler_pic_F77='-KPIC'
15922      lt_prog_compiler_static_F77='-Bstatic'
15923      ;;
15924
15925    sysv4*MP*)
15926      if test -d /usr/nec ;then
15927	lt_prog_compiler_pic_F77='-Kconform_pic'
15928	lt_prog_compiler_static_F77='-Bstatic'
15929      fi
15930      ;;
15931
15932    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15933      lt_prog_compiler_wl_F77='-Wl,'
15934      lt_prog_compiler_pic_F77='-KPIC'
15935      lt_prog_compiler_static_F77='-Bstatic'
15936      ;;
15937
15938    unicos*)
15939      lt_prog_compiler_wl_F77='-Wl,'
15940      lt_prog_compiler_can_build_shared_F77=no
15941      ;;
15942
15943    uts4*)
15944      lt_prog_compiler_pic_F77='-pic'
15945      lt_prog_compiler_static_F77='-Bstatic'
15946      ;;
15947
15948    *)
15949      lt_prog_compiler_can_build_shared_F77=no
15950      ;;
15951    esac
15952  fi
15953
15954echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15955echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15956
15957#
15958# Check to make sure the PIC flag actually works.
15959#
15960if test -n "$lt_prog_compiler_pic_F77"; then
15961
15962echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15963echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15964if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15965  echo $ECHO_N "(cached) $ECHO_C" >&6
15966else
15967  lt_prog_compiler_pic_works_F77=no
15968  ac_outfile=conftest.$ac_objext
15969   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15970   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15971   # Insert the option either (1) after the last *FLAGS variable, or
15972   # (2) before a word containing "conftest.", or (3) at the end.
15973   # Note that $ac_compile itself does not contain backslashes and begins
15974   # with a dollar sign (not a hyphen), so the echo should work correctly.
15975   # The option is referenced via a variable to avoid confusing sed.
15976   lt_compile=`echo "$ac_compile" | $SED \
15977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15979   -e 's:$: $lt_compiler_flag:'`
15980   (eval echo "\"\$as_me:15980: $lt_compile\"" >&5)
15981   (eval "$lt_compile" 2>conftest.err)
15982   ac_status=$?
15983   cat conftest.err >&5
15984   echo "$as_me:15984: \$? = $ac_status" >&5
15985   if (exit $ac_status) && test -s "$ac_outfile"; then
15986     # The compiler can only warn and ignore the option if not recognized
15987     # So say no if there are warnings other than the usual output.
15988     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15989     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15990     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15991       lt_prog_compiler_pic_works_F77=yes
15992     fi
15993   fi
15994   $rm conftest*
15995
15996fi
15997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15998echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15999
16000if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16001    case $lt_prog_compiler_pic_F77 in
16002     "" | " "*) ;;
16003     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16004     esac
16005else
16006    lt_prog_compiler_pic_F77=
16007     lt_prog_compiler_can_build_shared_F77=no
16008fi
16009
16010fi
16011case $host_os in
16012  # For platforms which do not support PIC, -DPIC is meaningless:
16013  *djgpp*)
16014    lt_prog_compiler_pic_F77=
16015    ;;
16016  *)
16017    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16018    ;;
16019esac
16020
16021#
16022# Check to make sure the static flag actually works.
16023#
16024wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16025echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16026echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16027if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16028  echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
16030  lt_prog_compiler_static_works_F77=no
16031   save_LDFLAGS="$LDFLAGS"
16032   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16033   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16034   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16035     # The linker can only warn and ignore the option if not recognized
16036     # So say no if there are warnings
16037     if test -s conftest.err; then
16038       # Append any errors to the config.log.
16039       cat conftest.err 1>&5
16040       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16041       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16042       if diff conftest.exp conftest.er2 >/dev/null; then
16043         lt_prog_compiler_static_works_F77=yes
16044       fi
16045     else
16046       lt_prog_compiler_static_works_F77=yes
16047     fi
16048   fi
16049   $rm conftest*
16050   LDFLAGS="$save_LDFLAGS"
16051
16052fi
16053echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16054echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
16055
16056if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16057    :
16058else
16059    lt_prog_compiler_static_F77=
16060fi
16061
16062
16063echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16065if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16066  echo $ECHO_N "(cached) $ECHO_C" >&6
16067else
16068  lt_cv_prog_compiler_c_o_F77=no
16069   $rm -r conftest 2>/dev/null
16070   mkdir conftest
16071   cd conftest
16072   mkdir out
16073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074
16075   lt_compiler_flag="-o out/conftest2.$ac_objext"
16076   # Insert the option either (1) after the last *FLAGS variable, or
16077   # (2) before a word containing "conftest.", or (3) at the end.
16078   # Note that $ac_compile itself does not contain backslashes and begins
16079   # with a dollar sign (not a hyphen), so the echo should work correctly.
16080   lt_compile=`echo "$ac_compile" | $SED \
16081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083   -e 's:$: $lt_compiler_flag:'`
16084   (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085   (eval "$lt_compile" 2>out/conftest.err)
16086   ac_status=$?
16087   cat out/conftest.err >&5
16088   echo "$as_me:16088: \$? = $ac_status" >&5
16089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16090   then
16091     # The compiler can only warn and ignore the option if not recognized
16092     # So say no if there are warnings
16093     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16096       lt_cv_prog_compiler_c_o_F77=yes
16097     fi
16098   fi
16099   chmod u+w . 2>&5
16100   $rm conftest*
16101   # SGI C++ compiler will create directory out/ii_files/ for
16102   # template instantiation
16103   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16104   $rm out/* && rmdir out
16105   cd ..
16106   rmdir conftest
16107   $rm conftest*
16108
16109fi
16110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16111echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16112
16113
16114hard_links="nottested"
16115if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16116  # do not overwrite the value of need_locks provided by the user
16117  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16119  hard_links=yes
16120  $rm conftest*
16121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16122  touch conftest.a
16123  ln conftest.a conftest.b 2>&5 || hard_links=no
16124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16125  echo "$as_me:$LINENO: result: $hard_links" >&5
16126echo "${ECHO_T}$hard_links" >&6
16127  if test "$hard_links" = no; then
16128    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16130    need_locks=warn
16131  fi
16132else
16133  need_locks=no
16134fi
16135
16136echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16137echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16138
16139  runpath_var=
16140  allow_undefined_flag_F77=
16141  enable_shared_with_static_runtimes_F77=no
16142  archive_cmds_F77=
16143  archive_expsym_cmds_F77=
16144  old_archive_From_new_cmds_F77=
16145  old_archive_from_expsyms_cmds_F77=
16146  export_dynamic_flag_spec_F77=
16147  whole_archive_flag_spec_F77=
16148  thread_safe_flag_spec_F77=
16149  hardcode_libdir_flag_spec_F77=
16150  hardcode_libdir_flag_spec_ld_F77=
16151  hardcode_libdir_separator_F77=
16152  hardcode_direct_F77=no
16153  hardcode_minus_L_F77=no
16154  hardcode_shlibpath_var_F77=unsupported
16155  link_all_deplibs_F77=unknown
16156  hardcode_automatic_F77=no
16157  module_cmds_F77=
16158  module_expsym_cmds_F77=
16159  always_export_symbols_F77=no
16160  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16161  # include_expsyms should be a list of space-separated symbols to be *always*
16162  # included in the symbol list
16163  include_expsyms_F77=
16164  # exclude_expsyms can be an extended regexp of symbols to exclude
16165  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16166  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16167  # as well as any symbol that contains `d'.
16168  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16169  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16170  # platforms (ab)use it in PIC code, but their linkers get confused if
16171  # the symbol is explicitly referenced.  Since portable code cannot
16172  # rely on this symbol name, it's probably fine to never include it in
16173  # preloaded symbol tables.
16174  extract_expsyms_cmds=
16175  # Just being paranoid about ensuring that cc_basename is set.
16176  for cc_temp in $compiler""; do
16177  case $cc_temp in
16178    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16179    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16180    \-*) ;;
16181    *) break;;
16182  esac
16183done
16184cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16185
16186  case $host_os in
16187  cygwin* | mingw* | pw32*)
16188    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16189    # When not using gcc, we currently assume that we are using
16190    # Microsoft Visual C++.
16191    if test "$GCC" != yes; then
16192      with_gnu_ld=no
16193    fi
16194    ;;
16195  interix*)
16196    # we just hope/assume this is gcc and not c89 (= MSVC++)
16197    with_gnu_ld=yes
16198    ;;
16199  openbsd*)
16200    with_gnu_ld=no
16201    ;;
16202  esac
16203
16204  ld_shlibs_F77=yes
16205  if test "$with_gnu_ld" = yes; then
16206    # If archive_cmds runs LD, not CC, wlarc should be empty
16207    wlarc='${wl}'
16208
16209    # Set some defaults for GNU ld with shared library support. These
16210    # are reset later if shared libraries are not supported. Putting them
16211    # here allows them to be overridden if necessary.
16212    runpath_var=LD_RUN_PATH
16213    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16214    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16215    # ancient GNU ld didn't support --whole-archive et. al.
16216    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16217	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16218      else
16219  	whole_archive_flag_spec_F77=
16220    fi
16221    supports_anon_versioning=no
16222    case `$LD -v 2>/dev/null` in
16223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16226      *\ 2.11.*) ;; # other 2.11 versions
16227      *) supports_anon_versioning=yes ;;
16228    esac
16229
16230    # See if GNU ld supports shared libraries.
16231    case $host_os in
16232    aix3* | aix4* | aix5*)
16233      # On AIX/PPC, the GNU linker is very broken
16234      if test "$host_cpu" != ia64; then
16235	ld_shlibs_F77=no
16236	cat <<EOF 1>&2
16237
16238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16239*** to be unable to reliably create shared libraries on AIX.
16240*** Therefore, libtool is disabling shared libraries support.  If you
16241*** really care for shared libraries, you may want to modify your PATH
16242*** so that a non-GNU linker is found, and then restart.
16243
16244EOF
16245      fi
16246      ;;
16247
16248    amigaos*)
16249      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)'
16250      hardcode_libdir_flag_spec_F77='-L$libdir'
16251      hardcode_minus_L_F77=yes
16252
16253      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16254      # that the semantics of dynamic libraries on AmigaOS, at least up
16255      # to version 4, is to share data among multiple programs linked
16256      # with the same dynamic library.  Since this doesn't match the
16257      # behavior of shared libraries on other platforms, we can't use
16258      # them.
16259      ld_shlibs_F77=no
16260      ;;
16261
16262    beos*)
16263      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16264	allow_undefined_flag_F77=unsupported
16265	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16266	# support --undefined.  This deserves some investigation.  FIXME
16267	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268      else
16269	ld_shlibs_F77=no
16270      fi
16271      ;;
16272
16273    cygwin* | mingw* | pw32*)
16274      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16275      # as there is no search path for DLLs.
16276      hardcode_libdir_flag_spec_F77='-L$libdir'
16277      allow_undefined_flag_F77=unsupported
16278      always_export_symbols_F77=no
16279      enable_shared_with_static_runtimes_F77=yes
16280      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16281
16282      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16283        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16284	# If the export-symbols file already is a .def file (1st line
16285	# is EXPORTS), use it as is; otherwise, prepend...
16286	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16287	  cp $export_symbols $output_objdir/$soname.def;
16288	else
16289	  echo EXPORTS > $output_objdir/$soname.def;
16290	  cat $export_symbols >> $output_objdir/$soname.def;
16291	fi~
16292	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16293      else
16294	ld_shlibs_F77=no
16295      fi
16296      ;;
16297
16298    interix3*)
16299      hardcode_direct_F77=no
16300      hardcode_shlibpath_var_F77=no
16301      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16302      export_dynamic_flag_spec_F77='${wl}-E'
16303      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16304      # Instead, shared libraries are loaded at an image base (0x10000000 by
16305      # default) and relocated if they conflict, which is a slow very memory
16306      # consuming and fragmenting process.  To avoid this, we pick a random,
16307      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16308      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16309      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16310      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16311      ;;
16312
16313    linux*)
16314      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16315	tmp_addflag=
16316	case $cc_basename,$host_cpu in
16317	pgcc*)				# Portland Group C compiler
16318	  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'
16319	  tmp_addflag=' $pic_flag'
16320	  ;;
16321	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16322	  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'
16323	  tmp_addflag=' $pic_flag -Mnomain' ;;
16324	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16325	  tmp_addflag=' -i_dynamic' ;;
16326	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16327	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16328	ifc* | ifort*)			# Intel Fortran compiler
16329	  tmp_addflag=' -nofor_main' ;;
16330	esac
16331	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16332
16333	if test $supports_anon_versioning = yes; then
16334	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16335  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16336  $echo "local: *; };" >> $output_objdir/$libname.ver~
16337	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16338	fi
16339      else
16340	ld_shlibs_F77=no
16341      fi
16342      ;;
16343
16344    netbsd*)
16345      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16346	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16347	wlarc=
16348      else
16349	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16350	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16351      fi
16352      ;;
16353
16354    solaris*)
16355      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16356	ld_shlibs_F77=no
16357	cat <<EOF 1>&2
16358
16359*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16360*** create shared libraries on Solaris systems.  Therefore, libtool
16361*** is disabling shared libraries support.  We urge you to upgrade GNU
16362*** binutils to release 2.9.1 or newer.  Another option is to modify
16363*** your PATH or compiler configuration so that the native linker is
16364*** used, and then restart.
16365
16366EOF
16367      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16368	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16369	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16370      else
16371	ld_shlibs_F77=no
16372      fi
16373      ;;
16374
16375    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16376      case `$LD -v 2>&1` in
16377        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16378	ld_shlibs_F77=no
16379	cat <<_LT_EOF 1>&2
16380
16381*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16382*** reliably create shared libraries on SCO systems.  Therefore, libtool
16383*** is disabling shared libraries support.  We urge you to upgrade GNU
16384*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16385*** your PATH or compiler configuration so that the native linker is
16386*** used, and then restart.
16387
16388_LT_EOF
16389	;;
16390	*)
16391	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16392	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16393	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16394	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16395	  else
16396	    ld_shlibs_F77=no
16397	  fi
16398	;;
16399      esac
16400      ;;
16401
16402    sunos4*)
16403      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16404      wlarc=
16405      hardcode_direct_F77=yes
16406      hardcode_shlibpath_var_F77=no
16407      ;;
16408
16409    *)
16410      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16411	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16412	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16413      else
16414	ld_shlibs_F77=no
16415      fi
16416      ;;
16417    esac
16418
16419    if test "$ld_shlibs_F77" = no; then
16420      runpath_var=
16421      hardcode_libdir_flag_spec_F77=
16422      export_dynamic_flag_spec_F77=
16423      whole_archive_flag_spec_F77=
16424    fi
16425  else
16426    # PORTME fill in a description of your system's linker (not GNU ld)
16427    case $host_os in
16428    aix3*)
16429      allow_undefined_flag_F77=unsupported
16430      always_export_symbols_F77=yes
16431      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'
16432      # Note: this linker hardcodes the directories in LIBPATH if there
16433      # are no directories specified by -L.
16434      hardcode_minus_L_F77=yes
16435      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16436	# Neither direct hardcoding nor static linking is supported with a
16437	# broken collect2.
16438	hardcode_direct_F77=unsupported
16439      fi
16440      ;;
16441
16442    aix4* | aix5*)
16443      if test "$host_cpu" = ia64; then
16444	# On IA64, the linker does run time linking by default, so we don't
16445	# have to do anything special.
16446	aix_use_runtimelinking=no
16447	exp_sym_flag='-Bexport'
16448	no_entry_flag=""
16449      else
16450	# If we're using GNU nm, then we don't want the "-C" option.
16451	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16452	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16453	  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'
16454	else
16455	  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'
16456	fi
16457	aix_use_runtimelinking=no
16458
16459	# Test if we are trying to use run time linking or normal
16460	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16461	# need to do runtime linking.
16462	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16463	  for ld_flag in $LDFLAGS; do
16464  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16465  	    aix_use_runtimelinking=yes
16466  	    break
16467  	  fi
16468	  done
16469	  ;;
16470	esac
16471
16472	exp_sym_flag='-bexport'
16473	no_entry_flag='-bnoentry'
16474      fi
16475
16476      # When large executables or shared objects are built, AIX ld can
16477      # have problems creating the table of contents.  If linking a library
16478      # or program results in "error TOC overflow" add -mminimal-toc to
16479      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16480      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16481
16482      archive_cmds_F77=''
16483      hardcode_direct_F77=yes
16484      hardcode_libdir_separator_F77=':'
16485      link_all_deplibs_F77=yes
16486
16487      if test "$GCC" = yes; then
16488	case $host_os in aix4.[012]|aix4.[012].*)
16489	# We only want to do this on AIX 4.2 and lower, the check
16490	# below for broken collect2 doesn't work under 4.3+
16491	  collect2name=`${CC} -print-prog-name=collect2`
16492	  if test -f "$collect2name" && \
16493  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16494	  then
16495  	  # We have reworked collect2
16496  	  hardcode_direct_F77=yes
16497	  else
16498  	  # We have old collect2
16499  	  hardcode_direct_F77=unsupported
16500  	  # It fails to find uninstalled libraries when the uninstalled
16501  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16502  	  # to unsupported forces relinking
16503  	  hardcode_minus_L_F77=yes
16504  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16505  	  hardcode_libdir_separator_F77=
16506	  fi
16507	  ;;
16508	esac
16509	shared_flag='-shared'
16510	if test "$aix_use_runtimelinking" = yes; then
16511	  shared_flag="$shared_flag "'${wl}-G'
16512	fi
16513      else
16514	# not using gcc
16515	if test "$host_cpu" = ia64; then
16516  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16517  	# chokes on -Wl,-G. The following line is correct:
16518	  shared_flag='-G'
16519	else
16520	  if test "$aix_use_runtimelinking" = yes; then
16521	    shared_flag='${wl}-G'
16522	  else
16523	    shared_flag='${wl}-bM:SRE'
16524	  fi
16525	fi
16526      fi
16527
16528      # It seems that -bexpall does not export symbols beginning with
16529      # underscore (_), so it is better to generate a list of symbols to export.
16530      always_export_symbols_F77=yes
16531      if test "$aix_use_runtimelinking" = yes; then
16532	# Warning - without using the other runtime loading flags (-brtl),
16533	# -berok will link without error, but may produce a broken library.
16534	allow_undefined_flag_F77='-berok'
16535       # Determine the default libpath from the value encoded in an empty executable.
16536       cat >conftest.$ac_ext <<_ACEOF
16537      program main
16538
16539      end
16540_ACEOF
16541rm -f conftest.$ac_objext conftest$ac_exeext
16542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16543  (eval $ac_link) 2>conftest.er1
16544  ac_status=$?
16545  grep -v '^ *+' conftest.er1 >conftest.err
16546  rm -f conftest.er1
16547  cat conftest.err >&5
16548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549  (exit $ac_status); } &&
16550	 { ac_try='test -z "$ac_f77_werror_flag"
16551			 || test ! -s conftest.err'
16552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553  (eval $ac_try) 2>&5
16554  ac_status=$?
16555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556  (exit $ac_status); }; } &&
16557	 { ac_try='test -s conftest$ac_exeext'
16558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559  (eval $ac_try) 2>&5
16560  ac_status=$?
16561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562  (exit $ac_status); }; }; then
16563
16564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16565}'`
16566# Check for a 64-bit object if we didn't find anything.
16567if 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; }
16568}'`; fi
16569else
16570  echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573fi
16574rm -f conftest.err conftest.$ac_objext \
16575      conftest$ac_exeext conftest.$ac_ext
16576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16577
16578       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16579	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16580       else
16581	if test "$host_cpu" = ia64; then
16582	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16583	  allow_undefined_flag_F77="-z nodefs"
16584	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16585	else
16586	 # Determine the default libpath from the value encoded in an empty executable.
16587	 cat >conftest.$ac_ext <<_ACEOF
16588      program main
16589
16590      end
16591_ACEOF
16592rm -f conftest.$ac_objext conftest$ac_exeext
16593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594  (eval $ac_link) 2>conftest.er1
16595  ac_status=$?
16596  grep -v '^ *+' conftest.er1 >conftest.err
16597  rm -f conftest.er1
16598  cat conftest.err >&5
16599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600  (exit $ac_status); } &&
16601	 { ac_try='test -z "$ac_f77_werror_flag"
16602			 || test ! -s conftest.err'
16603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604  (eval $ac_try) 2>&5
16605  ac_status=$?
16606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607  (exit $ac_status); }; } &&
16608	 { ac_try='test -s conftest$ac_exeext'
16609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610  (eval $ac_try) 2>&5
16611  ac_status=$?
16612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613  (exit $ac_status); }; }; then
16614
16615aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16616}'`
16617# Check for a 64-bit object if we didn't find anything.
16618if 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; }
16619}'`; fi
16620else
16621  echo "$as_me: failed program was:" >&5
16622sed 's/^/| /' conftest.$ac_ext >&5
16623
16624fi
16625rm -f conftest.err conftest.$ac_objext \
16626      conftest$ac_exeext conftest.$ac_ext
16627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16628
16629	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16630	  # Warning - without using the other run time loading flags,
16631	  # -berok will link without error, but may produce a broken library.
16632	  no_undefined_flag_F77=' ${wl}-bernotok'
16633	  allow_undefined_flag_F77=' ${wl}-berok'
16634	  # Exported symbols can be pulled into shared objects from archives
16635	  whole_archive_flag_spec_F77='$convenience'
16636	  archive_cmds_need_lc_F77=yes
16637	  # This is similar to how AIX traditionally builds its shared libraries.
16638	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16639	fi
16640      fi
16641      ;;
16642
16643    amigaos*)
16644      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)'
16645      hardcode_libdir_flag_spec_F77='-L$libdir'
16646      hardcode_minus_L_F77=yes
16647      # see comment about different semantics on the GNU ld section
16648      ld_shlibs_F77=no
16649      ;;
16650
16651    bsdi[45]*)
16652      export_dynamic_flag_spec_F77=-rdynamic
16653      ;;
16654
16655    cygwin* | mingw* | pw32*)
16656      # When not using gcc, we currently assume that we are using
16657      # Microsoft Visual C++.
16658      # hardcode_libdir_flag_spec is actually meaningless, as there is
16659      # no search path for DLLs.
16660      hardcode_libdir_flag_spec_F77=' '
16661      allow_undefined_flag_F77=unsupported
16662      # Tell ltmain to make .lib files, not .a files.
16663      libext=lib
16664      # Tell ltmain to make .dll files, not .so files.
16665      shrext_cmds=".dll"
16666      # FIXME: Setting linknames here is a bad hack.
16667      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16668      # The linker will automatically build a .lib file if we build a DLL.
16669      old_archive_From_new_cmds_F77='true'
16670      # FIXME: Should let the user specify the lib program.
16671      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16672      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16673      enable_shared_with_static_runtimes_F77=yes
16674      ;;
16675
16676    darwin* | rhapsody*)
16677      case $host_os in
16678        rhapsody* | darwin1.[012])
16679         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16680         ;;
16681       *) # Darwin 1.3 on
16682         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16683           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16684         else
16685           case ${MACOSX_DEPLOYMENT_TARGET} in
16686             10.[012])
16687               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16688               ;;
16689             10.*)
16690               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16691               ;;
16692           esac
16693         fi
16694         ;;
16695      esac
16696      archive_cmds_need_lc_F77=no
16697      hardcode_direct_F77=no
16698      hardcode_automatic_F77=yes
16699      hardcode_shlibpath_var_F77=unsupported
16700      whole_archive_flag_spec_F77=''
16701      link_all_deplibs_F77=yes
16702    if test "$GCC" = yes ; then
16703    	output_verbose_link_cmd='echo'
16704        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16705      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16706      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16707      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}'
16708      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}'
16709    else
16710      case $cc_basename in
16711        xlc*)
16712         output_verbose_link_cmd='echo'
16713         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16714         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16715          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16716         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}'
16717          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}'
16718          ;;
16719       *)
16720         ld_shlibs_F77=no
16721          ;;
16722      esac
16723    fi
16724      ;;
16725
16726    dgux*)
16727      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728      hardcode_libdir_flag_spec_F77='-L$libdir'
16729      hardcode_shlibpath_var_F77=no
16730      ;;
16731
16732    freebsd1*)
16733      ld_shlibs_F77=no
16734      ;;
16735
16736    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16737    # support.  Future versions do this automatically, but an explicit c++rt0.o
16738    # does not break anything, and helps significantly (at the cost of a little
16739    # extra space).
16740    freebsd2.2*)
16741      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16742      hardcode_libdir_flag_spec_F77='-R$libdir'
16743      hardcode_direct_F77=yes
16744      hardcode_shlibpath_var_F77=no
16745      ;;
16746
16747    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16748    freebsd2*)
16749      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16750      hardcode_direct_F77=yes
16751      hardcode_minus_L_F77=yes
16752      hardcode_shlibpath_var_F77=no
16753      ;;
16754
16755    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16756    freebsd* | kfreebsd*-gnu | dragonfly*)
16757      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16758      hardcode_libdir_flag_spec_F77='-R$libdir'
16759      hardcode_direct_F77=yes
16760      hardcode_shlibpath_var_F77=no
16761      ;;
16762
16763    hpux9*)
16764      if test "$GCC" = yes; then
16765	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'
16766      else
16767	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'
16768      fi
16769      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16770      hardcode_libdir_separator_F77=:
16771      hardcode_direct_F77=yes
16772
16773      # hardcode_minus_L: Not really in the search PATH,
16774      # but as the default location of the library.
16775      hardcode_minus_L_F77=yes
16776      export_dynamic_flag_spec_F77='${wl}-E'
16777      ;;
16778
16779    hpux10*)
16780      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16781	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16782      else
16783	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16784      fi
16785      if test "$with_gnu_ld" = no; then
16786	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16787	hardcode_libdir_separator_F77=:
16788
16789	hardcode_direct_F77=yes
16790	export_dynamic_flag_spec_F77='${wl}-E'
16791
16792	# hardcode_minus_L: Not really in the search PATH,
16793	# but as the default location of the library.
16794	hardcode_minus_L_F77=yes
16795      fi
16796      ;;
16797
16798    hpux11*)
16799      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16800	case $host_cpu in
16801	hppa*64*)
16802	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803	  ;;
16804	ia64*)
16805	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16806	  ;;
16807	*)
16808	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16809	  ;;
16810	esac
16811      else
16812	case $host_cpu in
16813	hppa*64*)
16814	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16815	  ;;
16816	ia64*)
16817	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16818	  ;;
16819	*)
16820	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16821	  ;;
16822	esac
16823      fi
16824      if test "$with_gnu_ld" = no; then
16825	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16826	hardcode_libdir_separator_F77=:
16827
16828	case $host_cpu in
16829	hppa*64*|ia64*)
16830	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16831	  hardcode_direct_F77=no
16832	  hardcode_shlibpath_var_F77=no
16833	  ;;
16834	*)
16835	  hardcode_direct_F77=yes
16836	  export_dynamic_flag_spec_F77='${wl}-E'
16837
16838	  # hardcode_minus_L: Not really in the search PATH,
16839	  # but as the default location of the library.
16840	  hardcode_minus_L_F77=yes
16841	  ;;
16842	esac
16843      fi
16844      ;;
16845
16846    irix5* | irix6* | nonstopux*)
16847      if test "$GCC" = yes; then
16848	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'
16849      else
16850	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'
16851	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16852      fi
16853      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16854      hardcode_libdir_separator_F77=:
16855      link_all_deplibs_F77=yes
16856      ;;
16857
16858    netbsd*)
16859      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16860	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16861      else
16862	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16863      fi
16864      hardcode_libdir_flag_spec_F77='-R$libdir'
16865      hardcode_direct_F77=yes
16866      hardcode_shlibpath_var_F77=no
16867      ;;
16868
16869    newsos6)
16870      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871      hardcode_direct_F77=yes
16872      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16873      hardcode_libdir_separator_F77=:
16874      hardcode_shlibpath_var_F77=no
16875      ;;
16876
16877    openbsd*)
16878      hardcode_direct_F77=yes
16879      hardcode_shlibpath_var_F77=no
16880      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16881	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16882	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16883	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16884	export_dynamic_flag_spec_F77='${wl}-E'
16885      else
16886       case $host_os in
16887	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16888	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16889	   hardcode_libdir_flag_spec_F77='-R$libdir'
16890	   ;;
16891	 *)
16892	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16893	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16894	   ;;
16895       esac
16896      fi
16897      ;;
16898
16899    os2*)
16900      hardcode_libdir_flag_spec_F77='-L$libdir'
16901      hardcode_minus_L_F77=yes
16902      allow_undefined_flag_F77=unsupported
16903      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'
16904      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16905      ;;
16906
16907    osf3*)
16908      if test "$GCC" = yes; then
16909	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16910	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'
16911      else
16912	allow_undefined_flag_F77=' -expect_unresolved \*'
16913	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'
16914      fi
16915      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16916      hardcode_libdir_separator_F77=:
16917      ;;
16918
16919    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16920      if test "$GCC" = yes; then
16921	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16922	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'
16923	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16924      else
16925	allow_undefined_flag_F77=' -expect_unresolved \*'
16926	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'
16927	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~
16928	$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'
16929
16930	# Both c and cxx compiler support -rpath directly
16931	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16932      fi
16933      hardcode_libdir_separator_F77=:
16934      ;;
16935
16936    solaris*)
16937      no_undefined_flag_F77=' -z text'
16938      if test "$GCC" = yes; then
16939	wlarc='${wl}'
16940	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16941	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16942	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16943      else
16944	wlarc=''
16945	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16946	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16947  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16948      fi
16949      hardcode_libdir_flag_spec_F77='-R$libdir'
16950      hardcode_shlibpath_var_F77=no
16951      case $host_os in
16952      solaris2.[0-5] | solaris2.[0-5].*) ;;
16953      *)
16954 	# The compiler driver will combine linker options so we
16955 	# cannot just pass the convience library names through
16956 	# without $wl, iff we do not link with $LD.
16957 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16958 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16959 	case $wlarc in
16960 	'')
16961 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16962 	*)
16963 	  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' ;;
16964 	esac ;;
16965      esac
16966      link_all_deplibs_F77=yes
16967      ;;
16968
16969    sunos4*)
16970      if test "x$host_vendor" = xsequent; then
16971	# Use $CC to link under sequent, because it throws in some extra .o
16972	# files that make .init and .fini sections work.
16973	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16974      else
16975	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16976      fi
16977      hardcode_libdir_flag_spec_F77='-L$libdir'
16978      hardcode_direct_F77=yes
16979      hardcode_minus_L_F77=yes
16980      hardcode_shlibpath_var_F77=no
16981      ;;
16982
16983    sysv4)
16984      case $host_vendor in
16985	sni)
16986	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16987	  hardcode_direct_F77=yes # is this really true???
16988	;;
16989	siemens)
16990	  ## LD is ld it makes a PLAMLIB
16991	  ## CC just makes a GrossModule.
16992	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16993	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16994	  hardcode_direct_F77=no
16995        ;;
16996	motorola)
16997	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16998	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16999	;;
17000      esac
17001      runpath_var='LD_RUN_PATH'
17002      hardcode_shlibpath_var_F77=no
17003      ;;
17004
17005    sysv4.3*)
17006      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17007      hardcode_shlibpath_var_F77=no
17008      export_dynamic_flag_spec_F77='-Bexport'
17009      ;;
17010
17011    sysv4*MP*)
17012      if test -d /usr/nec; then
17013	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014	hardcode_shlibpath_var_F77=no
17015	runpath_var=LD_RUN_PATH
17016	hardcode_runpath_var=yes
17017	ld_shlibs_F77=yes
17018      fi
17019      ;;
17020
17021    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17022      no_undefined_flag_F77='${wl}-z,text'
17023      archive_cmds_need_lc_F77=no
17024      hardcode_shlibpath_var_F77=no
17025      runpath_var='LD_RUN_PATH'
17026
17027      if test "$GCC" = yes; then
17028	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17029	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17030      else
17031	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17032	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17033      fi
17034      ;;
17035
17036    sysv5* | sco3.2v5* | sco5v6*)
17037      # Note: We can NOT use -z defs as we might desire, because we do not
17038      # link with -lc, and that would cause any symbols used from libc to
17039      # always be unresolved, which means just about no library would
17040      # ever link correctly.  If we're not using GNU ld we use -z text
17041      # though, which does catch some bad symbols but isn't as heavy-handed
17042      # as -z defs.
17043      no_undefined_flag_F77='${wl}-z,text'
17044      allow_undefined_flag_F77='${wl}-z,nodefs'
17045      archive_cmds_need_lc_F77=no
17046      hardcode_shlibpath_var_F77=no
17047      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17048      hardcode_libdir_separator_F77=':'
17049      link_all_deplibs_F77=yes
17050      export_dynamic_flag_spec_F77='${wl}-Bexport'
17051      runpath_var='LD_RUN_PATH'
17052
17053      if test "$GCC" = yes; then
17054	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17055	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17056      else
17057	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17058	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17059      fi
17060      ;;
17061
17062    uts4*)
17063      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17064      hardcode_libdir_flag_spec_F77='-L$libdir'
17065      hardcode_shlibpath_var_F77=no
17066      ;;
17067
17068    *)
17069      ld_shlibs_F77=no
17070      ;;
17071    esac
17072  fi
17073
17074echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17075echo "${ECHO_T}$ld_shlibs_F77" >&6
17076test "$ld_shlibs_F77" = no && can_build_shared=no
17077
17078#
17079# Do we need to explicitly link libc?
17080#
17081case "x$archive_cmds_need_lc_F77" in
17082x|xyes)
17083  # Assume -lc should be added
17084  archive_cmds_need_lc_F77=yes
17085
17086  if test "$enable_shared" = yes && test "$GCC" = yes; then
17087    case $archive_cmds_F77 in
17088    *'~'*)
17089      # FIXME: we may have to deal with multi-command sequences.
17090      ;;
17091    '$CC '*)
17092      # Test whether the compiler implicitly links with -lc since on some
17093      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17094      # to ld, don't add -lc before -lgcc.
17095      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17096echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17097      $rm conftest*
17098      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17099
17100      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17101  (eval $ac_compile) 2>&5
17102  ac_status=$?
17103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104  (exit $ac_status); } 2>conftest.err; then
17105        soname=conftest
17106        lib=conftest
17107        libobjs=conftest.$ac_objext
17108        deplibs=
17109        wl=$lt_prog_compiler_wl_F77
17110	pic_flag=$lt_prog_compiler_pic_F77
17111        compiler_flags=-v
17112        linker_flags=-v
17113        verstring=
17114        output_objdir=.
17115        libname=conftest
17116        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17117        allow_undefined_flag_F77=
17118        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17119  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17120  ac_status=$?
17121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122  (exit $ac_status); }
17123        then
17124	  archive_cmds_need_lc_F77=no
17125        else
17126	  archive_cmds_need_lc_F77=yes
17127        fi
17128        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17129      else
17130        cat conftest.err 1>&5
17131      fi
17132      $rm conftest*
17133      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17134echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17135      ;;
17136    esac
17137  fi
17138  ;;
17139esac
17140
17141echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17142echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17143library_names_spec=
17144libname_spec='lib$name'
17145soname_spec=
17146shrext_cmds=".so"
17147postinstall_cmds=
17148postuninstall_cmds=
17149finish_cmds=
17150finish_eval=
17151shlibpath_var=
17152shlibpath_overrides_runpath=unknown
17153version_type=none
17154dynamic_linker="$host_os ld.so"
17155sys_lib_dlsearch_path_spec="/lib /usr/lib"
17156if test "$GCC" = yes; then
17157  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17158  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17159    # if the path contains ";" then we assume it to be the separator
17160    # otherwise default to the standard path separator (i.e. ":") - it is
17161    # assumed that no part of a normal pathname contains ";" but that should
17162    # okay in the real world where ";" in dirpaths is itself problematic.
17163    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17164  else
17165    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17166  fi
17167else
17168  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17169fi
17170need_lib_prefix=unknown
17171hardcode_into_libs=no
17172
17173# when you set need_version to no, make sure it does not cause -set_version
17174# flags to be left without arguments
17175need_version=unknown
17176
17177case $host_os in
17178aix3*)
17179  version_type=linux
17180  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17181  shlibpath_var=LIBPATH
17182
17183  # AIX 3 has no versioning support, so we append a major version to the name.
17184  soname_spec='${libname}${release}${shared_ext}$major'
17185  ;;
17186
17187aix4* | aix5*)
17188  version_type=linux
17189  need_lib_prefix=no
17190  need_version=no
17191  hardcode_into_libs=yes
17192  if test "$host_cpu" = ia64; then
17193    # AIX 5 supports IA64
17194    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17195    shlibpath_var=LD_LIBRARY_PATH
17196  else
17197    # With GCC up to 2.95.x, collect2 would create an import file
17198    # for dependence libraries.  The import file would start with
17199    # the line `#! .'.  This would cause the generated library to
17200    # depend on `.', always an invalid library.  This was fixed in
17201    # development snapshots of GCC prior to 3.0.
17202    case $host_os in
17203      aix4 | aix4.[01] | aix4.[01].*)
17204      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17205	   echo ' yes '
17206	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17207	:
17208      else
17209	can_build_shared=no
17210      fi
17211      ;;
17212    esac
17213    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17214    # soname into executable. Probably we can add versioning support to
17215    # collect2, so additional links can be useful in future.
17216    if test "$aix_use_runtimelinking" = yes; then
17217      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17218      # instead of lib<name>.a to let people know that these are not
17219      # typical AIX shared libraries.
17220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221    else
17222      # We preserve .a as extension for shared libraries through AIX4.2
17223      # and later when we are not doing run time linking.
17224      library_names_spec='${libname}${release}.a $libname.a'
17225      soname_spec='${libname}${release}${shared_ext}$major'
17226    fi
17227    shlibpath_var=LIBPATH
17228  fi
17229  ;;
17230
17231amigaos*)
17232  library_names_spec='$libname.ixlibrary $libname.a'
17233  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17234  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'
17235  ;;
17236
17237beos*)
17238  library_names_spec='${libname}${shared_ext}'
17239  dynamic_linker="$host_os ld.so"
17240  shlibpath_var=LIBRARY_PATH
17241  ;;
17242
17243bsdi[45]*)
17244  version_type=linux
17245  need_version=no
17246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247  soname_spec='${libname}${release}${shared_ext}$major'
17248  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17249  shlibpath_var=LD_LIBRARY_PATH
17250  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17251  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17252  # the default ld.so.conf also contains /usr/contrib/lib and
17253  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17254  # libtool to hard-code these into programs
17255  ;;
17256
17257cygwin* | mingw* | pw32*)
17258  version_type=windows
17259  shrext_cmds=".dll"
17260  need_version=no
17261  need_lib_prefix=no
17262
17263  case $GCC,$host_os in
17264  yes,cygwin* | yes,mingw* | yes,pw32*)
17265    library_names_spec='$libname.dll.a'
17266    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17267    postinstall_cmds='base_file=`basename \${file}`~
17268      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17269      dldir=$destdir/`dirname \$dlpath`~
17270      test -d \$dldir || mkdir -p \$dldir~
17271      $install_prog $dir/$dlname \$dldir/$dlname~
17272      chmod a+x \$dldir/$dlname'
17273    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17274      dlpath=$dir/\$dldll~
17275       $rm \$dlpath'
17276    shlibpath_overrides_runpath=yes
17277
17278    case $host_os in
17279    cygwin*)
17280      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17281      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17282      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17283      ;;
17284    mingw*)
17285      # MinGW DLLs use traditional 'lib' prefix
17286      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17287      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17288      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17289        # It is most probably a Windows format PATH printed by
17290        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17291        # path with ; separators, and with drive letters. We can handle the
17292        # drive letters (cygwin fileutils understands them), so leave them,
17293        # especially as we might pass files found there to a mingw objdump,
17294        # which wouldn't understand a cygwinified path. Ahh.
17295        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17296      else
17297        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17298      fi
17299      ;;
17300    pw32*)
17301      # pw32 DLLs use 'pw' prefix rather than 'lib'
17302      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17303      ;;
17304    esac
17305    ;;
17306
17307  *)
17308    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17309    ;;
17310  esac
17311  dynamic_linker='Win32 ld.exe'
17312  # FIXME: first we should search . and the directory the executable is in
17313  shlibpath_var=PATH
17314  ;;
17315
17316darwin* | rhapsody*)
17317  dynamic_linker="$host_os dyld"
17318  version_type=darwin
17319  need_lib_prefix=no
17320  need_version=no
17321  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17322  soname_spec='${libname}${release}${major}$shared_ext'
17323  shlibpath_overrides_runpath=yes
17324  shlibpath_var=DYLD_LIBRARY_PATH
17325  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17326  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17327  if test "$GCC" = yes; then
17328    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"`
17329  else
17330    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17331  fi
17332  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17333  ;;
17334
17335dgux*)
17336  version_type=linux
17337  need_lib_prefix=no
17338  need_version=no
17339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17340  soname_spec='${libname}${release}${shared_ext}$major'
17341  shlibpath_var=LD_LIBRARY_PATH
17342  ;;
17343
17344freebsd1*)
17345  dynamic_linker=no
17346  ;;
17347
17348kfreebsd*-gnu)
17349  version_type=linux
17350  need_lib_prefix=no
17351  need_version=no
17352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17353  soname_spec='${libname}${release}${shared_ext}$major'
17354  shlibpath_var=LD_LIBRARY_PATH
17355  shlibpath_overrides_runpath=no
17356  hardcode_into_libs=yes
17357  dynamic_linker='GNU ld.so'
17358  ;;
17359
17360freebsd* | dragonfly*)
17361  # DragonFly does not have aout.  When/if they implement a new
17362  # versioning mechanism, adjust this.
17363  if test -x /usr/bin/objformat; then
17364    objformat=`/usr/bin/objformat`
17365  else
17366    case $host_os in
17367    freebsd[123]*) objformat=aout ;;
17368    *) objformat=elf ;;
17369    esac
17370  fi
17371  version_type=freebsd-$objformat
17372  case $version_type in
17373    freebsd-elf*)
17374      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17375      need_version=no
17376      need_lib_prefix=no
17377      ;;
17378    freebsd-*)
17379      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17380      need_version=yes
17381      ;;
17382  esac
17383  shlibpath_var=LD_LIBRARY_PATH
17384  case $host_os in
17385  freebsd2*)
17386    shlibpath_overrides_runpath=yes
17387    ;;
17388  freebsd3.[01]* | freebsdelf3.[01]*)
17389    shlibpath_overrides_runpath=yes
17390    hardcode_into_libs=yes
17391    ;;
17392  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17393  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17394    shlibpath_overrides_runpath=no
17395    hardcode_into_libs=yes
17396    ;;
17397  freebsd*) # from 4.6 on
17398    shlibpath_overrides_runpath=yes
17399    hardcode_into_libs=yes
17400    ;;
17401  esac
17402  ;;
17403
17404gnu*)
17405  version_type=linux
17406  need_lib_prefix=no
17407  need_version=no
17408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17409  soname_spec='${libname}${release}${shared_ext}$major'
17410  shlibpath_var=LD_LIBRARY_PATH
17411  hardcode_into_libs=yes
17412  ;;
17413
17414hpux9* | hpux10* | hpux11*)
17415  # Give a soname corresponding to the major version so that dld.sl refuses to
17416  # link against other versions.
17417  version_type=sunos
17418  need_lib_prefix=no
17419  need_version=no
17420  case $host_cpu in
17421  ia64*)
17422    shrext_cmds='.so'
17423    hardcode_into_libs=yes
17424    dynamic_linker="$host_os dld.so"
17425    shlibpath_var=LD_LIBRARY_PATH
17426    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428    soname_spec='${libname}${release}${shared_ext}$major'
17429    if test "X$HPUX_IA64_MODE" = X32; then
17430      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17431    else
17432      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17433    fi
17434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17435    ;;
17436   hppa*64*)
17437     shrext_cmds='.sl'
17438     hardcode_into_libs=yes
17439     dynamic_linker="$host_os dld.sl"
17440     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443     soname_spec='${libname}${release}${shared_ext}$major'
17444     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17446     ;;
17447   *)
17448    shrext_cmds='.sl'
17449    dynamic_linker="$host_os dld.sl"
17450    shlibpath_var=SHLIB_PATH
17451    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453    soname_spec='${libname}${release}${shared_ext}$major'
17454    ;;
17455  esac
17456  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17457  postinstall_cmds='chmod 555 $lib'
17458  ;;
17459
17460interix3*)
17461  version_type=linux
17462  need_lib_prefix=no
17463  need_version=no
17464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17465  soname_spec='${libname}${release}${shared_ext}$major'
17466  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17467  shlibpath_var=LD_LIBRARY_PATH
17468  shlibpath_overrides_runpath=no
17469  hardcode_into_libs=yes
17470  ;;
17471
17472irix5* | irix6* | nonstopux*)
17473  case $host_os in
17474    nonstopux*) version_type=nonstopux ;;
17475    *)
17476	if test "$lt_cv_prog_gnu_ld" = yes; then
17477		version_type=linux
17478	else
17479		version_type=irix
17480	fi ;;
17481  esac
17482  need_lib_prefix=no
17483  need_version=no
17484  soname_spec='${libname}${release}${shared_ext}$major'
17485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17486  case $host_os in
17487  irix5* | nonstopux*)
17488    libsuff= shlibsuff=
17489    ;;
17490  *)
17491    case $LD in # libtool.m4 will add one of these switches to LD
17492    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17493      libsuff= shlibsuff= libmagic=32-bit;;
17494    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17495      libsuff=32 shlibsuff=N32 libmagic=N32;;
17496    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17497      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17498    *) libsuff= shlibsuff= libmagic=never-match;;
17499    esac
17500    ;;
17501  esac
17502  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17503  shlibpath_overrides_runpath=no
17504  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17505  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17506  hardcode_into_libs=yes
17507  ;;
17508
17509# No shared lib support for Linux oldld, aout, or coff.
17510linux*oldld* | linux*aout* | linux*coff*)
17511  dynamic_linker=no
17512  ;;
17513
17514# This must be Linux ELF.
17515linux*)
17516  version_type=linux
17517  need_lib_prefix=no
17518  need_version=no
17519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520  soname_spec='${libname}${release}${shared_ext}$major'
17521  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17522  shlibpath_var=LD_LIBRARY_PATH
17523  shlibpath_overrides_runpath=no
17524  # This implies no fast_install, which is unacceptable.
17525  # Some rework will be needed to allow for fast_install
17526  # before this can be enabled.
17527  hardcode_into_libs=yes
17528
17529  # Append ld.so.conf contents to the search path
17530  if test -f /etc/ld.so.conf; then
17531    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' ' '`
17532    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17533  fi
17534
17535  # We used to test for /lib/ld.so.1 and disable shared libraries on
17536  # powerpc, because MkLinux only supported shared libraries with the
17537  # GNU dynamic linker.  Since this was broken with cross compilers,
17538  # most powerpc-linux boxes support dynamic linking these days and
17539  # people can always --disable-shared, the test was removed, and we
17540  # assume the GNU/Linux dynamic linker is in use.
17541  dynamic_linker='GNU/Linux ld.so'
17542  ;;
17543
17544knetbsd*-gnu)
17545  version_type=linux
17546  need_lib_prefix=no
17547  need_version=no
17548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17549  soname_spec='${libname}${release}${shared_ext}$major'
17550  shlibpath_var=LD_LIBRARY_PATH
17551  shlibpath_overrides_runpath=no
17552  hardcode_into_libs=yes
17553  dynamic_linker='GNU ld.so'
17554  ;;
17555
17556netbsd*)
17557  version_type=sunos
17558  need_lib_prefix=no
17559  need_version=no
17560  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17562    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17563    dynamic_linker='NetBSD (a.out) ld.so'
17564  else
17565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17566    soname_spec='${libname}${release}${shared_ext}$major'
17567    dynamic_linker='NetBSD ld.elf_so'
17568  fi
17569  shlibpath_var=LD_LIBRARY_PATH
17570  shlibpath_overrides_runpath=yes
17571  hardcode_into_libs=yes
17572  ;;
17573
17574newsos6)
17575  version_type=linux
17576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577  shlibpath_var=LD_LIBRARY_PATH
17578  shlibpath_overrides_runpath=yes
17579  ;;
17580
17581nto-qnx*)
17582  version_type=linux
17583  need_lib_prefix=no
17584  need_version=no
17585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586  soname_spec='${libname}${release}${shared_ext}$major'
17587  shlibpath_var=LD_LIBRARY_PATH
17588  shlibpath_overrides_runpath=yes
17589  ;;
17590
17591openbsd*)
17592  version_type=sunos
17593  sys_lib_dlsearch_path_spec="/usr/lib"
17594  need_lib_prefix=no
17595  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17596  case $host_os in
17597    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17598    *)                         need_version=no  ;;
17599  esac
17600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17602  shlibpath_var=LD_LIBRARY_PATH
17603  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17604    case $host_os in
17605      openbsd2.[89] | openbsd2.[89].*)
17606	shlibpath_overrides_runpath=no
17607	;;
17608      *)
17609	shlibpath_overrides_runpath=yes
17610	;;
17611      esac
17612  else
17613    shlibpath_overrides_runpath=yes
17614  fi
17615  ;;
17616
17617os2*)
17618  libname_spec='$name'
17619  shrext_cmds=".dll"
17620  need_lib_prefix=no
17621  library_names_spec='$libname${shared_ext} $libname.a'
17622  dynamic_linker='OS/2 ld.exe'
17623  shlibpath_var=LIBPATH
17624  ;;
17625
17626osf3* | osf4* | osf5*)
17627  version_type=osf
17628  need_lib_prefix=no
17629  need_version=no
17630  soname_spec='${libname}${release}${shared_ext}$major'
17631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632  shlibpath_var=LD_LIBRARY_PATH
17633  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17634  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17635  ;;
17636
17637solaris*)
17638  version_type=linux
17639  need_lib_prefix=no
17640  need_version=no
17641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642  soname_spec='${libname}${release}${shared_ext}$major'
17643  shlibpath_var=LD_LIBRARY_PATH
17644  shlibpath_overrides_runpath=yes
17645  hardcode_into_libs=yes
17646  # ldd complains unless libraries are executable
17647  postinstall_cmds='chmod +x $lib'
17648  ;;
17649
17650sunos4*)
17651  version_type=sunos
17652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17654  shlibpath_var=LD_LIBRARY_PATH
17655  shlibpath_overrides_runpath=yes
17656  if test "$with_gnu_ld" = yes; then
17657    need_lib_prefix=no
17658  fi
17659  need_version=yes
17660  ;;
17661
17662sysv4 | sysv4.3*)
17663  version_type=linux
17664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665  soname_spec='${libname}${release}${shared_ext}$major'
17666  shlibpath_var=LD_LIBRARY_PATH
17667  case $host_vendor in
17668    sni)
17669      shlibpath_overrides_runpath=no
17670      need_lib_prefix=no
17671      export_dynamic_flag_spec='${wl}-Blargedynsym'
17672      runpath_var=LD_RUN_PATH
17673      ;;
17674    siemens)
17675      need_lib_prefix=no
17676      ;;
17677    motorola)
17678      need_lib_prefix=no
17679      need_version=no
17680      shlibpath_overrides_runpath=no
17681      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17682      ;;
17683  esac
17684  ;;
17685
17686sysv4*MP*)
17687  if test -d /usr/nec ;then
17688    version_type=linux
17689    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17690    soname_spec='$libname${shared_ext}.$major'
17691    shlibpath_var=LD_LIBRARY_PATH
17692  fi
17693  ;;
17694
17695sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17696  version_type=freebsd-elf
17697  need_lib_prefix=no
17698  need_version=no
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17700  soname_spec='${libname}${release}${shared_ext}$major'
17701  shlibpath_var=LD_LIBRARY_PATH
17702  hardcode_into_libs=yes
17703  if test "$with_gnu_ld" = yes; then
17704    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17705    shlibpath_overrides_runpath=no
17706  else
17707    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17708    shlibpath_overrides_runpath=yes
17709    case $host_os in
17710      sco3.2v5*)
17711        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17712	;;
17713    esac
17714  fi
17715  sys_lib_dlsearch_path_spec='/usr/lib'
17716  ;;
17717
17718uts4*)
17719  version_type=linux
17720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721  soname_spec='${libname}${release}${shared_ext}$major'
17722  shlibpath_var=LD_LIBRARY_PATH
17723  ;;
17724
17725*)
17726  dynamic_linker=no
17727  ;;
17728esac
17729echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17730echo "${ECHO_T}$dynamic_linker" >&6
17731test "$dynamic_linker" = no && can_build_shared=no
17732
17733variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17734if test "$GCC" = yes; then
17735  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17736fi
17737
17738echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17739echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17740hardcode_action_F77=
17741if test -n "$hardcode_libdir_flag_spec_F77" || \
17742   test -n "$runpath_var_F77" || \
17743   test "X$hardcode_automatic_F77" = "Xyes" ; then
17744
17745  # We can hardcode non-existant directories.
17746  if test "$hardcode_direct_F77" != no &&
17747     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17748     # have to relink, otherwise we might link with an installed library
17749     # when we should be linking with a yet-to-be-installed one
17750     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17751     test "$hardcode_minus_L_F77" != no; then
17752    # Linking always hardcodes the temporary library directory.
17753    hardcode_action_F77=relink
17754  else
17755    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17756    hardcode_action_F77=immediate
17757  fi
17758else
17759  # We cannot hardcode anything, or else we can only hardcode existing
17760  # directories.
17761  hardcode_action_F77=unsupported
17762fi
17763echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17764echo "${ECHO_T}$hardcode_action_F77" >&6
17765
17766if test "$hardcode_action_F77" = relink; then
17767  # Fast installation is not supported
17768  enable_fast_install=no
17769elif test "$shlibpath_overrides_runpath" = yes ||
17770     test "$enable_shared" = no; then
17771  # Fast installation is not necessary
17772  enable_fast_install=needless
17773fi
17774
17775
17776# The else clause should only fire when bootstrapping the
17777# libtool distribution, otherwise you forgot to ship ltmain.sh
17778# with your package, and you will get complaints that there are
17779# no rules to generate ltmain.sh.
17780if test -f "$ltmain"; then
17781  # See if we are running on zsh, and set the options which allow our commands through
17782  # without removal of \ escapes.
17783  if test -n "${ZSH_VERSION+set}" ; then
17784    setopt NO_GLOB_SUBST
17785  fi
17786  # Now quote all the things that may contain metacharacters while being
17787  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17788  # variables and quote the copies for generation of the libtool script.
17789  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17790    SED SHELL STRIP \
17791    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17792    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17793    deplibs_check_method reload_flag reload_cmds need_locks \
17794    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17795    lt_cv_sys_global_symbol_to_c_name_address \
17796    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17797    old_postinstall_cmds old_postuninstall_cmds \
17798    compiler_F77 \
17799    CC_F77 \
17800    LD_F77 \
17801    lt_prog_compiler_wl_F77 \
17802    lt_prog_compiler_pic_F77 \
17803    lt_prog_compiler_static_F77 \
17804    lt_prog_compiler_no_builtin_flag_F77 \
17805    export_dynamic_flag_spec_F77 \
17806    thread_safe_flag_spec_F77 \
17807    whole_archive_flag_spec_F77 \
17808    enable_shared_with_static_runtimes_F77 \
17809    old_archive_cmds_F77 \
17810    old_archive_from_new_cmds_F77 \
17811    predep_objects_F77 \
17812    postdep_objects_F77 \
17813    predeps_F77 \
17814    postdeps_F77 \
17815    compiler_lib_search_path_F77 \
17816    archive_cmds_F77 \
17817    archive_expsym_cmds_F77 \
17818    postinstall_cmds_F77 \
17819    postuninstall_cmds_F77 \
17820    old_archive_from_expsyms_cmds_F77 \
17821    allow_undefined_flag_F77 \
17822    no_undefined_flag_F77 \
17823    export_symbols_cmds_F77 \
17824    hardcode_libdir_flag_spec_F77 \
17825    hardcode_libdir_flag_spec_ld_F77 \
17826    hardcode_libdir_separator_F77 \
17827    hardcode_automatic_F77 \
17828    module_cmds_F77 \
17829    module_expsym_cmds_F77 \
17830    lt_cv_prog_compiler_c_o_F77 \
17831    exclude_expsyms_F77 \
17832    include_expsyms_F77; do
17833
17834    case $var in
17835    old_archive_cmds_F77 | \
17836    old_archive_from_new_cmds_F77 | \
17837    archive_cmds_F77 | \
17838    archive_expsym_cmds_F77 | \
17839    module_cmds_F77 | \
17840    module_expsym_cmds_F77 | \
17841    old_archive_from_expsyms_cmds_F77 | \
17842    export_symbols_cmds_F77 | \
17843    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17844    postinstall_cmds | postuninstall_cmds | \
17845    old_postinstall_cmds | old_postuninstall_cmds | \
17846    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17847      # Double-quote double-evaled strings.
17848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17849      ;;
17850    *)
17851      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17852      ;;
17853    esac
17854  done
17855
17856  case $lt_echo in
17857  *'\$0 --fallback-echo"')
17858    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17859    ;;
17860  esac
17861
17862cfgfile="$ofile"
17863
17864  cat <<__EOF__ >> "$cfgfile"
17865# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17866
17867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17868
17869# Shell to use when invoking shell scripts.
17870SHELL=$lt_SHELL
17871
17872# Whether or not to build shared libraries.
17873build_libtool_libs=$enable_shared
17874
17875# Whether or not to build static libraries.
17876build_old_libs=$enable_static
17877
17878# Whether or not to add -lc for building shared libraries.
17879build_libtool_need_lc=$archive_cmds_need_lc_F77
17880
17881# Whether or not to disallow shared libs when runtime libs are static
17882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17883
17884# Whether or not to optimize for fast installation.
17885fast_install=$enable_fast_install
17886
17887# The host system.
17888host_alias=$host_alias
17889host=$host
17890host_os=$host_os
17891
17892# The build system.
17893build_alias=$build_alias
17894build=$build
17895build_os=$build_os
17896
17897# An echo program that does not interpret backslashes.
17898echo=$lt_echo
17899
17900# The archiver.
17901AR=$lt_AR
17902AR_FLAGS=$lt_AR_FLAGS
17903
17904# A C compiler.
17905LTCC=$lt_LTCC
17906
17907# LTCC compiler flags.
17908LTCFLAGS=$lt_LTCFLAGS
17909
17910# A language-specific compiler.
17911CC=$lt_compiler_F77
17912
17913# Is the compiler the GNU C compiler?
17914with_gcc=$GCC_F77
17915
17916# An ERE matcher.
17917EGREP=$lt_EGREP
17918
17919# The linker used to build libraries.
17920LD=$lt_LD_F77
17921
17922# Whether we need hard or soft links.
17923LN_S=$lt_LN_S
17924
17925# A BSD-compatible nm program.
17926NM=$lt_NM
17927
17928# A symbol stripping program
17929STRIP=$lt_STRIP
17930
17931# Used to examine libraries when file_magic_cmd begins "file"
17932MAGIC_CMD=$MAGIC_CMD
17933
17934# Used on cygwin: DLL creation program.
17935DLLTOOL="$DLLTOOL"
17936
17937# Used on cygwin: object dumper.
17938OBJDUMP="$OBJDUMP"
17939
17940# Used on cygwin: assembler.
17941AS="$AS"
17942
17943# The name of the directory that contains temporary libtool files.
17944objdir=$objdir
17945
17946# How to create reloadable object files.
17947reload_flag=$lt_reload_flag
17948reload_cmds=$lt_reload_cmds
17949
17950# How to pass a linker flag through the compiler.
17951wl=$lt_lt_prog_compiler_wl_F77
17952
17953# Object file suffix (normally "o").
17954objext="$ac_objext"
17955
17956# Old archive suffix (normally "a").
17957libext="$libext"
17958
17959# Shared library suffix (normally ".so").
17960shrext_cmds='$shrext_cmds'
17961
17962# Executable file suffix (normally "").
17963exeext="$exeext"
17964
17965# Additional compiler flags for building library objects.
17966pic_flag=$lt_lt_prog_compiler_pic_F77
17967pic_mode=$pic_mode
17968
17969# What is the maximum length of a command?
17970max_cmd_len=$lt_cv_sys_max_cmd_len
17971
17972# Does compiler simultaneously support -c and -o options?
17973compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17974
17975# Must we lock files when doing compilation?
17976need_locks=$lt_need_locks
17977
17978# Do we need the lib prefix for modules?
17979need_lib_prefix=$need_lib_prefix
17980
17981# Do we need a version for libraries?
17982need_version=$need_version
17983
17984# Whether dlopen is supported.
17985dlopen_support=$enable_dlopen
17986
17987# Whether dlopen of programs is supported.
17988dlopen_self=$enable_dlopen_self
17989
17990# Whether dlopen of statically linked programs is supported.
17991dlopen_self_static=$enable_dlopen_self_static
17992
17993# Compiler flag to prevent dynamic linking.
17994link_static_flag=$lt_lt_prog_compiler_static_F77
17995
17996# Compiler flag to turn off builtin functions.
17997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17998
17999# Compiler flag to allow reflexive dlopens.
18000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18001
18002# Compiler flag to generate shared objects directly from archives.
18003whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18004
18005# Compiler flag to generate thread-safe objects.
18006thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18007
18008# Library versioning type.
18009version_type=$version_type
18010
18011# Format of library name prefix.
18012libname_spec=$lt_libname_spec
18013
18014# List of archive names.  First name is the real one, the rest are links.
18015# The last name is the one that the linker finds with -lNAME.
18016library_names_spec=$lt_library_names_spec
18017
18018# The coded name of the library, if different from the real name.
18019soname_spec=$lt_soname_spec
18020
18021# Commands used to build and install an old-style archive.
18022RANLIB=$lt_RANLIB
18023old_archive_cmds=$lt_old_archive_cmds_F77
18024old_postinstall_cmds=$lt_old_postinstall_cmds
18025old_postuninstall_cmds=$lt_old_postuninstall_cmds
18026
18027# Create an old-style archive from a shared archive.
18028old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18029
18030# Create a temporary old-style archive to link instead of a shared archive.
18031old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18032
18033# Commands used to build and install a shared archive.
18034archive_cmds=$lt_archive_cmds_F77
18035archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18036postinstall_cmds=$lt_postinstall_cmds
18037postuninstall_cmds=$lt_postuninstall_cmds
18038
18039# Commands used to build a loadable module (assumed same as above if empty)
18040module_cmds=$lt_module_cmds_F77
18041module_expsym_cmds=$lt_module_expsym_cmds_F77
18042
18043# Commands to strip libraries.
18044old_striplib=$lt_old_striplib
18045striplib=$lt_striplib
18046
18047# Dependencies to place before the objects being linked to create a
18048# shared library.
18049predep_objects=$lt_predep_objects_F77
18050
18051# Dependencies to place after the objects being linked to create a
18052# shared library.
18053postdep_objects=$lt_postdep_objects_F77
18054
18055# Dependencies to place before the objects being linked to create a
18056# shared library.
18057predeps=$lt_predeps_F77
18058
18059# Dependencies to place after the objects being linked to create a
18060# shared library.
18061postdeps=$lt_postdeps_F77
18062
18063# The library search path used internally by the compiler when linking
18064# a shared library.
18065compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18066
18067# Method to check whether dependent libraries are shared objects.
18068deplibs_check_method=$lt_deplibs_check_method
18069
18070# Command to use when deplibs_check_method == file_magic.
18071file_magic_cmd=$lt_file_magic_cmd
18072
18073# Flag that allows shared libraries with undefined symbols to be built.
18074allow_undefined_flag=$lt_allow_undefined_flag_F77
18075
18076# Flag that forces no undefined symbols.
18077no_undefined_flag=$lt_no_undefined_flag_F77
18078
18079# Commands used to finish a libtool library installation in a directory.
18080finish_cmds=$lt_finish_cmds
18081
18082# Same as above, but a single script fragment to be evaled but not shown.
18083finish_eval=$lt_finish_eval
18084
18085# Take the output of nm and produce a listing of raw symbols and C names.
18086global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18087
18088# Transform the output of nm in a proper C declaration
18089global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18090
18091# Transform the output of nm in a C name address pair
18092global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18093
18094# This is the shared library runtime path variable.
18095runpath_var=$runpath_var
18096
18097# This is the shared library path variable.
18098shlibpath_var=$shlibpath_var
18099
18100# Is shlibpath searched before the hard-coded library search path?
18101shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18102
18103# How to hardcode a shared library path into an executable.
18104hardcode_action=$hardcode_action_F77
18105
18106# Whether we should hardcode library paths into libraries.
18107hardcode_into_libs=$hardcode_into_libs
18108
18109# Flag to hardcode \$libdir into a binary during linking.
18110# This must work even if \$libdir does not exist.
18111hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18112
18113# If ld is used when linking, flag to hardcode \$libdir into
18114# a binary during linking. This must work even if \$libdir does
18115# not exist.
18116hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18117
18118# Whether we need a single -rpath flag with a separated argument.
18119hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18120
18121# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18122# resulting binary.
18123hardcode_direct=$hardcode_direct_F77
18124
18125# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18126# resulting binary.
18127hardcode_minus_L=$hardcode_minus_L_F77
18128
18129# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18130# the resulting binary.
18131hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18132
18133# Set to yes if building a shared library automatically hardcodes DIR into the library
18134# and all subsequent libraries and executables linked against it.
18135hardcode_automatic=$hardcode_automatic_F77
18136
18137# Variables whose values should be saved in libtool wrapper scripts and
18138# restored at relink time.
18139variables_saved_for_relink="$variables_saved_for_relink"
18140
18141# Whether libtool must link a program against all its dependency libraries.
18142link_all_deplibs=$link_all_deplibs_F77
18143
18144# Compile-time system search path for libraries
18145sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18146
18147# Run-time system search path for libraries
18148sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18149
18150# Fix the shell variable \$srcfile for the compiler.
18151fix_srcfile_path="$fix_srcfile_path_F77"
18152
18153# Set to yes if exported symbols are required.
18154always_export_symbols=$always_export_symbols_F77
18155
18156# The commands to list exported symbols.
18157export_symbols_cmds=$lt_export_symbols_cmds_F77
18158
18159# The commands to extract the exported symbol list from a shared archive.
18160extract_expsyms_cmds=$lt_extract_expsyms_cmds
18161
18162# Symbols that should not be listed in the preloaded symbols.
18163exclude_expsyms=$lt_exclude_expsyms_F77
18164
18165# Symbols that must always be exported.
18166include_expsyms=$lt_include_expsyms_F77
18167
18168# ### END LIBTOOL TAG CONFIG: $tagname
18169
18170__EOF__
18171
18172
18173else
18174  # If there is no Makefile yet, we rely on a make rule to execute
18175  # `config.status --recheck' to rerun these tests and create the
18176  # libtool script then.
18177  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18178  if test -f "$ltmain_in"; then
18179    test -f Makefile && make "$ltmain"
18180  fi
18181fi
18182
18183
18184ac_ext=c
18185ac_cpp='$CPP $CPPFLAGS'
18186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18188ac_compiler_gnu=$ac_cv_c_compiler_gnu
18189
18190CC="$lt_save_CC"
18191
18192	else
18193	  tagname=""
18194	fi
18195	;;
18196
18197      GCJ)
18198	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18199
18200
18201
18202# Source file extension for Java test sources.
18203ac_ext=java
18204
18205# Object file extension for compiled Java test sources.
18206objext=o
18207objext_GCJ=$objext
18208
18209# Code to be used in simple compile tests
18210lt_simple_compile_test_code="class foo {}\n"
18211
18212# Code to be used in simple link tests
18213lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18214
18215# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18216
18217# If no C compiler was specified, use CC.
18218LTCC=${LTCC-"$CC"}
18219
18220# If no C compiler flags were specified, use CFLAGS.
18221LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18222
18223# Allow CC to be a program name with arguments.
18224compiler=$CC
18225
18226
18227# save warnings/boilerplate of simple test code
18228ac_outfile=conftest.$ac_objext
18229printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18230eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18231_lt_compiler_boilerplate=`cat conftest.err`
18232$rm conftest*
18233
18234ac_outfile=conftest.$ac_objext
18235printf "$lt_simple_link_test_code" >conftest.$ac_ext
18236eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18237_lt_linker_boilerplate=`cat conftest.err`
18238$rm conftest*
18239
18240
18241# Allow CC to be a program name with arguments.
18242lt_save_CC="$CC"
18243CC=${GCJ-"gcj"}
18244compiler=$CC
18245compiler_GCJ=$CC
18246for cc_temp in $compiler""; do
18247  case $cc_temp in
18248    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18249    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18250    \-*) ;;
18251    *) break;;
18252  esac
18253done
18254cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18255
18256
18257# GCJ did not exist at the time GCC didn't implicitly link libc in.
18258archive_cmds_need_lc_GCJ=no
18259
18260old_archive_cmds_GCJ=$old_archive_cmds
18261
18262## CAVEAT EMPTOR:
18263## There is no encapsulation within the following macros, do not change
18264## the running order or otherwise move them around unless you know exactly
18265## what you are doing...
18266
18267lt_prog_compiler_no_builtin_flag_GCJ=
18268
18269if test "$GCC" = yes; then
18270  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18271
18272
18273echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18274echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18275if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18276  echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278  lt_cv_prog_compiler_rtti_exceptions=no
18279  ac_outfile=conftest.$ac_objext
18280   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18281   lt_compiler_flag="-fno-rtti -fno-exceptions"
18282   # Insert the option either (1) after the last *FLAGS variable, or
18283   # (2) before a word containing "conftest.", or (3) at the end.
18284   # Note that $ac_compile itself does not contain backslashes and begins
18285   # with a dollar sign (not a hyphen), so the echo should work correctly.
18286   # The option is referenced via a variable to avoid confusing sed.
18287   lt_compile=`echo "$ac_compile" | $SED \
18288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18290   -e 's:$: $lt_compiler_flag:'`
18291   (eval echo "\"\$as_me:18291: $lt_compile\"" >&5)
18292   (eval "$lt_compile" 2>conftest.err)
18293   ac_status=$?
18294   cat conftest.err >&5
18295   echo "$as_me:18295: \$? = $ac_status" >&5
18296   if (exit $ac_status) && test -s "$ac_outfile"; then
18297     # The compiler can only warn and ignore the option if not recognized
18298     # So say no if there are warnings other than the usual output.
18299     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18300     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18301     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18302       lt_cv_prog_compiler_rtti_exceptions=yes
18303     fi
18304   fi
18305   $rm conftest*
18306
18307fi
18308echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18309echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18310
18311if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18312    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18313else
18314    :
18315fi
18316
18317fi
18318
18319lt_prog_compiler_wl_GCJ=
18320lt_prog_compiler_pic_GCJ=
18321lt_prog_compiler_static_GCJ=
18322
18323echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18324echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18325
18326  if test "$GCC" = yes; then
18327    lt_prog_compiler_wl_GCJ='-Wl,'
18328    lt_prog_compiler_static_GCJ='-static'
18329
18330    case $host_os in
18331      aix*)
18332      # All AIX code is PIC.
18333      if test "$host_cpu" = ia64; then
18334	# AIX 5 now supports IA64 processor
18335	lt_prog_compiler_static_GCJ='-Bstatic'
18336      fi
18337      ;;
18338
18339    amigaos*)
18340      # FIXME: we need at least 68020 code to build shared libraries, but
18341      # adding the `-m68020' flag to GCC prevents building anything better,
18342      # like `-m68040'.
18343      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18344      ;;
18345
18346    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18347      # PIC is the default for these OSes.
18348      ;;
18349
18350    mingw* | pw32* | os2*)
18351      # This hack is so that the source file can tell whether it is being
18352      # built for inclusion in a dll (and should export symbols for example).
18353      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18354      ;;
18355
18356    darwin* | rhapsody*)
18357      # PIC is the default on this platform
18358      # Common symbols not allowed in MH_DYLIB files
18359      lt_prog_compiler_pic_GCJ='-fno-common'
18360      ;;
18361
18362    interix3*)
18363      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18364      # Instead, we relocate shared libraries at runtime.
18365      ;;
18366
18367    msdosdjgpp*)
18368      # Just because we use GCC doesn't mean we suddenly get shared libraries
18369      # on systems that don't support them.
18370      lt_prog_compiler_can_build_shared_GCJ=no
18371      enable_shared=no
18372      ;;
18373
18374    sysv4*MP*)
18375      if test -d /usr/nec; then
18376	lt_prog_compiler_pic_GCJ=-Kconform_pic
18377      fi
18378      ;;
18379
18380    hpux*)
18381      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18382      # not for PA HP-UX.
18383      case $host_cpu in
18384      hppa*64*|ia64*)
18385	# +Z the default
18386	;;
18387      *)
18388	lt_prog_compiler_pic_GCJ='-fPIC'
18389	;;
18390      esac
18391      ;;
18392
18393    *)
18394      lt_prog_compiler_pic_GCJ='-fPIC'
18395      ;;
18396    esac
18397  else
18398    # PORTME Check for flag to pass linker flags through the system compiler.
18399    case $host_os in
18400    aix*)
18401      lt_prog_compiler_wl_GCJ='-Wl,'
18402      if test "$host_cpu" = ia64; then
18403	# AIX 5 now supports IA64 processor
18404	lt_prog_compiler_static_GCJ='-Bstatic'
18405      else
18406	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18407      fi
18408      ;;
18409      darwin*)
18410        # PIC is the default on this platform
18411        # Common symbols not allowed in MH_DYLIB files
18412       case $cc_basename in
18413         xlc*)
18414         lt_prog_compiler_pic_GCJ='-qnocommon'
18415         lt_prog_compiler_wl_GCJ='-Wl,'
18416         ;;
18417       esac
18418       ;;
18419
18420    mingw* | pw32* | os2*)
18421      # This hack is so that the source file can tell whether it is being
18422      # built for inclusion in a dll (and should export symbols for example).
18423      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18424      ;;
18425
18426    hpux9* | hpux10* | hpux11*)
18427      lt_prog_compiler_wl_GCJ='-Wl,'
18428      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18429      # not for PA HP-UX.
18430      case $host_cpu in
18431      hppa*64*|ia64*)
18432	# +Z the default
18433	;;
18434      *)
18435	lt_prog_compiler_pic_GCJ='+Z'
18436	;;
18437      esac
18438      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18439      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18440      ;;
18441
18442    irix5* | irix6* | nonstopux*)
18443      lt_prog_compiler_wl_GCJ='-Wl,'
18444      # PIC (with -KPIC) is the default.
18445      lt_prog_compiler_static_GCJ='-non_shared'
18446      ;;
18447
18448    newsos6)
18449      lt_prog_compiler_pic_GCJ='-KPIC'
18450      lt_prog_compiler_static_GCJ='-Bstatic'
18451      ;;
18452
18453    linux*)
18454      case $cc_basename in
18455      icc* | ecc*)
18456	lt_prog_compiler_wl_GCJ='-Wl,'
18457	lt_prog_compiler_pic_GCJ='-KPIC'
18458	lt_prog_compiler_static_GCJ='-static'
18459        ;;
18460      pgcc* | pgf77* | pgf90* | pgf95*)
18461        # Portland Group compilers (*not* the Pentium gcc compiler,
18462	# which looks to be a dead project)
18463	lt_prog_compiler_wl_GCJ='-Wl,'
18464	lt_prog_compiler_pic_GCJ='-fpic'
18465	lt_prog_compiler_static_GCJ='-Bstatic'
18466        ;;
18467      ccc*)
18468        lt_prog_compiler_wl_GCJ='-Wl,'
18469        # All Alpha code is PIC.
18470        lt_prog_compiler_static_GCJ='-non_shared'
18471        ;;
18472      esac
18473      ;;
18474
18475    osf3* | osf4* | osf5*)
18476      lt_prog_compiler_wl_GCJ='-Wl,'
18477      # All OSF/1 code is PIC.
18478      lt_prog_compiler_static_GCJ='-non_shared'
18479      ;;
18480
18481    solaris*)
18482      lt_prog_compiler_pic_GCJ='-KPIC'
18483      lt_prog_compiler_static_GCJ='-Bstatic'
18484      case $cc_basename in
18485      f77* | f90* | f95*)
18486	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18487      *)
18488	lt_prog_compiler_wl_GCJ='-Wl,';;
18489      esac
18490      ;;
18491
18492    sunos4*)
18493      lt_prog_compiler_wl_GCJ='-Qoption ld '
18494      lt_prog_compiler_pic_GCJ='-PIC'
18495      lt_prog_compiler_static_GCJ='-Bstatic'
18496      ;;
18497
18498    sysv4 | sysv4.2uw2* | sysv4.3*)
18499      lt_prog_compiler_wl_GCJ='-Wl,'
18500      lt_prog_compiler_pic_GCJ='-KPIC'
18501      lt_prog_compiler_static_GCJ='-Bstatic'
18502      ;;
18503
18504    sysv4*MP*)
18505      if test -d /usr/nec ;then
18506	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18507	lt_prog_compiler_static_GCJ='-Bstatic'
18508      fi
18509      ;;
18510
18511    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18512      lt_prog_compiler_wl_GCJ='-Wl,'
18513      lt_prog_compiler_pic_GCJ='-KPIC'
18514      lt_prog_compiler_static_GCJ='-Bstatic'
18515      ;;
18516
18517    unicos*)
18518      lt_prog_compiler_wl_GCJ='-Wl,'
18519      lt_prog_compiler_can_build_shared_GCJ=no
18520      ;;
18521
18522    uts4*)
18523      lt_prog_compiler_pic_GCJ='-pic'
18524      lt_prog_compiler_static_GCJ='-Bstatic'
18525      ;;
18526
18527    *)
18528      lt_prog_compiler_can_build_shared_GCJ=no
18529      ;;
18530    esac
18531  fi
18532
18533echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18534echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18535
18536#
18537# Check to make sure the PIC flag actually works.
18538#
18539if test -n "$lt_prog_compiler_pic_GCJ"; then
18540
18541echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18542echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18543if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18544  echo $ECHO_N "(cached) $ECHO_C" >&6
18545else
18546  lt_prog_compiler_pic_works_GCJ=no
18547  ac_outfile=conftest.$ac_objext
18548   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18549   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18550   # Insert the option either (1) after the last *FLAGS variable, or
18551   # (2) before a word containing "conftest.", or (3) at the end.
18552   # Note that $ac_compile itself does not contain backslashes and begins
18553   # with a dollar sign (not a hyphen), so the echo should work correctly.
18554   # The option is referenced via a variable to avoid confusing sed.
18555   lt_compile=`echo "$ac_compile" | $SED \
18556   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18557   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18558   -e 's:$: $lt_compiler_flag:'`
18559   (eval echo "\"\$as_me:18559: $lt_compile\"" >&5)
18560   (eval "$lt_compile" 2>conftest.err)
18561   ac_status=$?
18562   cat conftest.err >&5
18563   echo "$as_me:18563: \$? = $ac_status" >&5
18564   if (exit $ac_status) && test -s "$ac_outfile"; then
18565     # The compiler can only warn and ignore the option if not recognized
18566     # So say no if there are warnings other than the usual output.
18567     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18568     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18569     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18570       lt_prog_compiler_pic_works_GCJ=yes
18571     fi
18572   fi
18573   $rm conftest*
18574
18575fi
18576echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18577echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18578
18579if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18580    case $lt_prog_compiler_pic_GCJ in
18581     "" | " "*) ;;
18582     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18583     esac
18584else
18585    lt_prog_compiler_pic_GCJ=
18586     lt_prog_compiler_can_build_shared_GCJ=no
18587fi
18588
18589fi
18590case $host_os in
18591  # For platforms which do not support PIC, -DPIC is meaningless:
18592  *djgpp*)
18593    lt_prog_compiler_pic_GCJ=
18594    ;;
18595  *)
18596    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18597    ;;
18598esac
18599
18600#
18601# Check to make sure the static flag actually works.
18602#
18603wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18604echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18605echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18606if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18607  echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609  lt_prog_compiler_static_works_GCJ=no
18610   save_LDFLAGS="$LDFLAGS"
18611   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18612   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18613   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18614     # The linker can only warn and ignore the option if not recognized
18615     # So say no if there are warnings
18616     if test -s conftest.err; then
18617       # Append any errors to the config.log.
18618       cat conftest.err 1>&5
18619       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18620       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18621       if diff conftest.exp conftest.er2 >/dev/null; then
18622         lt_prog_compiler_static_works_GCJ=yes
18623       fi
18624     else
18625       lt_prog_compiler_static_works_GCJ=yes
18626     fi
18627   fi
18628   $rm conftest*
18629   LDFLAGS="$save_LDFLAGS"
18630
18631fi
18632echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18633echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
18634
18635if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18636    :
18637else
18638    lt_prog_compiler_static_GCJ=
18639fi
18640
18641
18642echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18643echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18644if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18645  echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647  lt_cv_prog_compiler_c_o_GCJ=no
18648   $rm -r conftest 2>/dev/null
18649   mkdir conftest
18650   cd conftest
18651   mkdir out
18652   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18653
18654   lt_compiler_flag="-o out/conftest2.$ac_objext"
18655   # Insert the option either (1) after the last *FLAGS variable, or
18656   # (2) before a word containing "conftest.", or (3) at the end.
18657   # Note that $ac_compile itself does not contain backslashes and begins
18658   # with a dollar sign (not a hyphen), so the echo should work correctly.
18659   lt_compile=`echo "$ac_compile" | $SED \
18660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18662   -e 's:$: $lt_compiler_flag:'`
18663   (eval echo "\"\$as_me:18663: $lt_compile\"" >&5)
18664   (eval "$lt_compile" 2>out/conftest.err)
18665   ac_status=$?
18666   cat out/conftest.err >&5
18667   echo "$as_me:18667: \$? = $ac_status" >&5
18668   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18669   then
18670     # The compiler can only warn and ignore the option if not recognized
18671     # So say no if there are warnings
18672     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18673     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18674     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18675       lt_cv_prog_compiler_c_o_GCJ=yes
18676     fi
18677   fi
18678   chmod u+w . 2>&5
18679   $rm conftest*
18680   # SGI C++ compiler will create directory out/ii_files/ for
18681   # template instantiation
18682   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18683   $rm out/* && rmdir out
18684   cd ..
18685   rmdir conftest
18686   $rm conftest*
18687
18688fi
18689echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18690echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18691
18692
18693hard_links="nottested"
18694if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18695  # do not overwrite the value of need_locks provided by the user
18696  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18697echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18698  hard_links=yes
18699  $rm conftest*
18700  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18701  touch conftest.a
18702  ln conftest.a conftest.b 2>&5 || hard_links=no
18703  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18704  echo "$as_me:$LINENO: result: $hard_links" >&5
18705echo "${ECHO_T}$hard_links" >&6
18706  if test "$hard_links" = no; then
18707    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18708echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18709    need_locks=warn
18710  fi
18711else
18712  need_locks=no
18713fi
18714
18715echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18716echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18717
18718  runpath_var=
18719  allow_undefined_flag_GCJ=
18720  enable_shared_with_static_runtimes_GCJ=no
18721  archive_cmds_GCJ=
18722  archive_expsym_cmds_GCJ=
18723  old_archive_From_new_cmds_GCJ=
18724  old_archive_from_expsyms_cmds_GCJ=
18725  export_dynamic_flag_spec_GCJ=
18726  whole_archive_flag_spec_GCJ=
18727  thread_safe_flag_spec_GCJ=
18728  hardcode_libdir_flag_spec_GCJ=
18729  hardcode_libdir_flag_spec_ld_GCJ=
18730  hardcode_libdir_separator_GCJ=
18731  hardcode_direct_GCJ=no
18732  hardcode_minus_L_GCJ=no
18733  hardcode_shlibpath_var_GCJ=unsupported
18734  link_all_deplibs_GCJ=unknown
18735  hardcode_automatic_GCJ=no
18736  module_cmds_GCJ=
18737  module_expsym_cmds_GCJ=
18738  always_export_symbols_GCJ=no
18739  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18740  # include_expsyms should be a list of space-separated symbols to be *always*
18741  # included in the symbol list
18742  include_expsyms_GCJ=
18743  # exclude_expsyms can be an extended regexp of symbols to exclude
18744  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18745  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18746  # as well as any symbol that contains `d'.
18747  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18748  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18749  # platforms (ab)use it in PIC code, but their linkers get confused if
18750  # the symbol is explicitly referenced.  Since portable code cannot
18751  # rely on this symbol name, it's probably fine to never include it in
18752  # preloaded symbol tables.
18753  extract_expsyms_cmds=
18754  # Just being paranoid about ensuring that cc_basename is set.
18755  for cc_temp in $compiler""; do
18756  case $cc_temp in
18757    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18758    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18759    \-*) ;;
18760    *) break;;
18761  esac
18762done
18763cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18764
18765  case $host_os in
18766  cygwin* | mingw* | pw32*)
18767    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18768    # When not using gcc, we currently assume that we are using
18769    # Microsoft Visual C++.
18770    if test "$GCC" != yes; then
18771      with_gnu_ld=no
18772    fi
18773    ;;
18774  interix*)
18775    # we just hope/assume this is gcc and not c89 (= MSVC++)
18776    with_gnu_ld=yes
18777    ;;
18778  openbsd*)
18779    with_gnu_ld=no
18780    ;;
18781  esac
18782
18783  ld_shlibs_GCJ=yes
18784  if test "$with_gnu_ld" = yes; then
18785    # If archive_cmds runs LD, not CC, wlarc should be empty
18786    wlarc='${wl}'
18787
18788    # Set some defaults for GNU ld with shared library support. These
18789    # are reset later if shared libraries are not supported. Putting them
18790    # here allows them to be overridden if necessary.
18791    runpath_var=LD_RUN_PATH
18792    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18793    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18794    # ancient GNU ld didn't support --whole-archive et. al.
18795    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18796	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18797      else
18798  	whole_archive_flag_spec_GCJ=
18799    fi
18800    supports_anon_versioning=no
18801    case `$LD -v 2>/dev/null` in
18802      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18803      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18804      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18805      *\ 2.11.*) ;; # other 2.11 versions
18806      *) supports_anon_versioning=yes ;;
18807    esac
18808
18809    # See if GNU ld supports shared libraries.
18810    case $host_os in
18811    aix3* | aix4* | aix5*)
18812      # On AIX/PPC, the GNU linker is very broken
18813      if test "$host_cpu" != ia64; then
18814	ld_shlibs_GCJ=no
18815	cat <<EOF 1>&2
18816
18817*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18818*** to be unable to reliably create shared libraries on AIX.
18819*** Therefore, libtool is disabling shared libraries support.  If you
18820*** really care for shared libraries, you may want to modify your PATH
18821*** so that a non-GNU linker is found, and then restart.
18822
18823EOF
18824      fi
18825      ;;
18826
18827    amigaos*)
18828      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)'
18829      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18830      hardcode_minus_L_GCJ=yes
18831
18832      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18833      # that the semantics of dynamic libraries on AmigaOS, at least up
18834      # to version 4, is to share data among multiple programs linked
18835      # with the same dynamic library.  Since this doesn't match the
18836      # behavior of shared libraries on other platforms, we can't use
18837      # them.
18838      ld_shlibs_GCJ=no
18839      ;;
18840
18841    beos*)
18842      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18843	allow_undefined_flag_GCJ=unsupported
18844	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18845	# support --undefined.  This deserves some investigation.  FIXME
18846	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18847      else
18848	ld_shlibs_GCJ=no
18849      fi
18850      ;;
18851
18852    cygwin* | mingw* | pw32*)
18853      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18854      # as there is no search path for DLLs.
18855      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18856      allow_undefined_flag_GCJ=unsupported
18857      always_export_symbols_GCJ=no
18858      enable_shared_with_static_runtimes_GCJ=yes
18859      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18860
18861      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18862        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18863	# If the export-symbols file already is a .def file (1st line
18864	# is EXPORTS), use it as is; otherwise, prepend...
18865	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18866	  cp $export_symbols $output_objdir/$soname.def;
18867	else
18868	  echo EXPORTS > $output_objdir/$soname.def;
18869	  cat $export_symbols >> $output_objdir/$soname.def;
18870	fi~
18871	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18872      else
18873	ld_shlibs_GCJ=no
18874      fi
18875      ;;
18876
18877    interix3*)
18878      hardcode_direct_GCJ=no
18879      hardcode_shlibpath_var_GCJ=no
18880      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18881      export_dynamic_flag_spec_GCJ='${wl}-E'
18882      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18883      # Instead, shared libraries are loaded at an image base (0x10000000 by
18884      # default) and relocated if they conflict, which is a slow very memory
18885      # consuming and fragmenting process.  To avoid this, we pick a random,
18886      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18887      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18888      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18889      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18890      ;;
18891
18892    linux*)
18893      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18894	tmp_addflag=
18895	case $cc_basename,$host_cpu in
18896	pgcc*)				# Portland Group C compiler
18897	  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'
18898	  tmp_addflag=' $pic_flag'
18899	  ;;
18900	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18901	  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'
18902	  tmp_addflag=' $pic_flag -Mnomain' ;;
18903	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18904	  tmp_addflag=' -i_dynamic' ;;
18905	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18906	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18907	ifc* | ifort*)			# Intel Fortran compiler
18908	  tmp_addflag=' -nofor_main' ;;
18909	esac
18910	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18911
18912	if test $supports_anon_versioning = yes; then
18913	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18914  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18915  $echo "local: *; };" >> $output_objdir/$libname.ver~
18916	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18917	fi
18918      else
18919	ld_shlibs_GCJ=no
18920      fi
18921      ;;
18922
18923    netbsd*)
18924      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18925	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18926	wlarc=
18927      else
18928	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18929	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18930      fi
18931      ;;
18932
18933    solaris*)
18934      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18935	ld_shlibs_GCJ=no
18936	cat <<EOF 1>&2
18937
18938*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18939*** create shared libraries on Solaris systems.  Therefore, libtool
18940*** is disabling shared libraries support.  We urge you to upgrade GNU
18941*** binutils to release 2.9.1 or newer.  Another option is to modify
18942*** your PATH or compiler configuration so that the native linker is
18943*** used, and then restart.
18944
18945EOF
18946      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18947	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18948	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18949      else
18950	ld_shlibs_GCJ=no
18951      fi
18952      ;;
18953
18954    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18955      case `$LD -v 2>&1` in
18956        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18957	ld_shlibs_GCJ=no
18958	cat <<_LT_EOF 1>&2
18959
18960*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18961*** reliably create shared libraries on SCO systems.  Therefore, libtool
18962*** is disabling shared libraries support.  We urge you to upgrade GNU
18963*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18964*** your PATH or compiler configuration so that the native linker is
18965*** used, and then restart.
18966
18967_LT_EOF
18968	;;
18969	*)
18970	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18971	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18972	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18973	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18974	  else
18975	    ld_shlibs_GCJ=no
18976	  fi
18977	;;
18978      esac
18979      ;;
18980
18981    sunos4*)
18982      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18983      wlarc=
18984      hardcode_direct_GCJ=yes
18985      hardcode_shlibpath_var_GCJ=no
18986      ;;
18987
18988    *)
18989      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18990	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18991	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18992      else
18993	ld_shlibs_GCJ=no
18994      fi
18995      ;;
18996    esac
18997
18998    if test "$ld_shlibs_GCJ" = no; then
18999      runpath_var=
19000      hardcode_libdir_flag_spec_GCJ=
19001      export_dynamic_flag_spec_GCJ=
19002      whole_archive_flag_spec_GCJ=
19003    fi
19004  else
19005    # PORTME fill in a description of your system's linker (not GNU ld)
19006    case $host_os in
19007    aix3*)
19008      allow_undefined_flag_GCJ=unsupported
19009      always_export_symbols_GCJ=yes
19010      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'
19011      # Note: this linker hardcodes the directories in LIBPATH if there
19012      # are no directories specified by -L.
19013      hardcode_minus_L_GCJ=yes
19014      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19015	# Neither direct hardcoding nor static linking is supported with a
19016	# broken collect2.
19017	hardcode_direct_GCJ=unsupported
19018      fi
19019      ;;
19020
19021    aix4* | aix5*)
19022      if test "$host_cpu" = ia64; then
19023	# On IA64, the linker does run time linking by default, so we don't
19024	# have to do anything special.
19025	aix_use_runtimelinking=no
19026	exp_sym_flag='-Bexport'
19027	no_entry_flag=""
19028      else
19029	# If we're using GNU nm, then we don't want the "-C" option.
19030	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19031	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19032	  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'
19033	else
19034	  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'
19035	fi
19036	aix_use_runtimelinking=no
19037
19038	# Test if we are trying to use run time linking or normal
19039	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19040	# need to do runtime linking.
19041	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19042	  for ld_flag in $LDFLAGS; do
19043  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19044  	    aix_use_runtimelinking=yes
19045  	    break
19046  	  fi
19047	  done
19048	  ;;
19049	esac
19050
19051	exp_sym_flag='-bexport'
19052	no_entry_flag='-bnoentry'
19053      fi
19054
19055      # When large executables or shared objects are built, AIX ld can
19056      # have problems creating the table of contents.  If linking a library
19057      # or program results in "error TOC overflow" add -mminimal-toc to
19058      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19059      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19060
19061      archive_cmds_GCJ=''
19062      hardcode_direct_GCJ=yes
19063      hardcode_libdir_separator_GCJ=':'
19064      link_all_deplibs_GCJ=yes
19065
19066      if test "$GCC" = yes; then
19067	case $host_os in aix4.[012]|aix4.[012].*)
19068	# We only want to do this on AIX 4.2 and lower, the check
19069	# below for broken collect2 doesn't work under 4.3+
19070	  collect2name=`${CC} -print-prog-name=collect2`
19071	  if test -f "$collect2name" && \
19072  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19073	  then
19074  	  # We have reworked collect2
19075  	  hardcode_direct_GCJ=yes
19076	  else
19077  	  # We have old collect2
19078  	  hardcode_direct_GCJ=unsupported
19079  	  # It fails to find uninstalled libraries when the uninstalled
19080  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19081  	  # to unsupported forces relinking
19082  	  hardcode_minus_L_GCJ=yes
19083  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19084  	  hardcode_libdir_separator_GCJ=
19085	  fi
19086	  ;;
19087	esac
19088	shared_flag='-shared'
19089	if test "$aix_use_runtimelinking" = yes; then
19090	  shared_flag="$shared_flag "'${wl}-G'
19091	fi
19092      else
19093	# not using gcc
19094	if test "$host_cpu" = ia64; then
19095  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19096  	# chokes on -Wl,-G. The following line is correct:
19097	  shared_flag='-G'
19098	else
19099	  if test "$aix_use_runtimelinking" = yes; then
19100	    shared_flag='${wl}-G'
19101	  else
19102	    shared_flag='${wl}-bM:SRE'
19103	  fi
19104	fi
19105      fi
19106
19107      # It seems that -bexpall does not export symbols beginning with
19108      # underscore (_), so it is better to generate a list of symbols to export.
19109      always_export_symbols_GCJ=yes
19110      if test "$aix_use_runtimelinking" = yes; then
19111	# Warning - without using the other runtime loading flags (-brtl),
19112	# -berok will link without error, but may produce a broken library.
19113	allow_undefined_flag_GCJ='-berok'
19114       # Determine the default libpath from the value encoded in an empty executable.
19115       cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h.  */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h.  */
19121
19122#ifdef F77_DUMMY_MAIN
19123
19124#  ifdef __cplusplus
19125     extern "C"
19126#  endif
19127   int F77_DUMMY_MAIN() { return 1; }
19128
19129#endif
19130int
19131main ()
19132{
19133
19134  ;
19135  return 0;
19136}
19137_ACEOF
19138rm -f conftest.$ac_objext conftest$ac_exeext
19139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19140  (eval $ac_link) 2>conftest.er1
19141  ac_status=$?
19142  grep -v '^ *+' conftest.er1 >conftest.err
19143  rm -f conftest.er1
19144  cat conftest.err >&5
19145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146  (exit $ac_status); } &&
19147	 { ac_try='test -z "$ac_c_werror_flag"
19148			 || test ! -s conftest.err'
19149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150  (eval $ac_try) 2>&5
19151  ac_status=$?
19152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153  (exit $ac_status); }; } &&
19154	 { ac_try='test -s conftest$ac_exeext'
19155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156  (eval $ac_try) 2>&5
19157  ac_status=$?
19158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159  (exit $ac_status); }; }; then
19160
19161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19162}'`
19163# Check for a 64-bit object if we didn't find anything.
19164if 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; }
19165}'`; fi
19166else
19167  echo "$as_me: failed program was:" >&5
19168sed 's/^/| /' conftest.$ac_ext >&5
19169
19170fi
19171rm -f conftest.err conftest.$ac_objext \
19172      conftest$ac_exeext conftest.$ac_ext
19173if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19174
19175       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19176	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19177       else
19178	if test "$host_cpu" = ia64; then
19179	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19180	  allow_undefined_flag_GCJ="-z nodefs"
19181	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19182	else
19183	 # Determine the default libpath from the value encoded in an empty executable.
19184	 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h.  */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h.  */
19190
19191#ifdef F77_DUMMY_MAIN
19192
19193#  ifdef __cplusplus
19194     extern "C"
19195#  endif
19196   int F77_DUMMY_MAIN() { return 1; }
19197
19198#endif
19199int
19200main ()
19201{
19202
19203  ;
19204  return 0;
19205}
19206_ACEOF
19207rm -f conftest.$ac_objext conftest$ac_exeext
19208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209  (eval $ac_link) 2>conftest.er1
19210  ac_status=$?
19211  grep -v '^ *+' conftest.er1 >conftest.err
19212  rm -f conftest.er1
19213  cat conftest.err >&5
19214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215  (exit $ac_status); } &&
19216	 { ac_try='test -z "$ac_c_werror_flag"
19217			 || test ! -s conftest.err'
19218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219  (eval $ac_try) 2>&5
19220  ac_status=$?
19221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222  (exit $ac_status); }; } &&
19223	 { ac_try='test -s conftest$ac_exeext'
19224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225  (eval $ac_try) 2>&5
19226  ac_status=$?
19227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228  (exit $ac_status); }; }; then
19229
19230aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19231}'`
19232# Check for a 64-bit object if we didn't find anything.
19233if 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; }
19234}'`; fi
19235else
19236  echo "$as_me: failed program was:" >&5
19237sed 's/^/| /' conftest.$ac_ext >&5
19238
19239fi
19240rm -f conftest.err conftest.$ac_objext \
19241      conftest$ac_exeext conftest.$ac_ext
19242if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19243
19244	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19245	  # Warning - without using the other run time loading flags,
19246	  # -berok will link without error, but may produce a broken library.
19247	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19248	  allow_undefined_flag_GCJ=' ${wl}-berok'
19249	  # Exported symbols can be pulled into shared objects from archives
19250	  whole_archive_flag_spec_GCJ='$convenience'
19251	  archive_cmds_need_lc_GCJ=yes
19252	  # This is similar to how AIX traditionally builds its shared libraries.
19253	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19254	fi
19255      fi
19256      ;;
19257
19258    amigaos*)
19259      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)'
19260      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19261      hardcode_minus_L_GCJ=yes
19262      # see comment about different semantics on the GNU ld section
19263      ld_shlibs_GCJ=no
19264      ;;
19265
19266    bsdi[45]*)
19267      export_dynamic_flag_spec_GCJ=-rdynamic
19268      ;;
19269
19270    cygwin* | mingw* | pw32*)
19271      # When not using gcc, we currently assume that we are using
19272      # Microsoft Visual C++.
19273      # hardcode_libdir_flag_spec is actually meaningless, as there is
19274      # no search path for DLLs.
19275      hardcode_libdir_flag_spec_GCJ=' '
19276      allow_undefined_flag_GCJ=unsupported
19277      # Tell ltmain to make .lib files, not .a files.
19278      libext=lib
19279      # Tell ltmain to make .dll files, not .so files.
19280      shrext_cmds=".dll"
19281      # FIXME: Setting linknames here is a bad hack.
19282      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19283      # The linker will automatically build a .lib file if we build a DLL.
19284      old_archive_From_new_cmds_GCJ='true'
19285      # FIXME: Should let the user specify the lib program.
19286      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19287      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19288      enable_shared_with_static_runtimes_GCJ=yes
19289      ;;
19290
19291    darwin* | rhapsody*)
19292      case $host_os in
19293        rhapsody* | darwin1.[012])
19294         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19295         ;;
19296       *) # Darwin 1.3 on
19297         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19298           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19299         else
19300           case ${MACOSX_DEPLOYMENT_TARGET} in
19301             10.[012])
19302               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19303               ;;
19304             10.*)
19305               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19306               ;;
19307           esac
19308         fi
19309         ;;
19310      esac
19311      archive_cmds_need_lc_GCJ=no
19312      hardcode_direct_GCJ=no
19313      hardcode_automatic_GCJ=yes
19314      hardcode_shlibpath_var_GCJ=unsupported
19315      whole_archive_flag_spec_GCJ=''
19316      link_all_deplibs_GCJ=yes
19317    if test "$GCC" = yes ; then
19318    	output_verbose_link_cmd='echo'
19319        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19320      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19321      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19322      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}'
19323      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}'
19324    else
19325      case $cc_basename in
19326        xlc*)
19327         output_verbose_link_cmd='echo'
19328         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19329         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19330          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19331         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}'
19332          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}'
19333          ;;
19334       *)
19335         ld_shlibs_GCJ=no
19336          ;;
19337      esac
19338    fi
19339      ;;
19340
19341    dgux*)
19342      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19343      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19344      hardcode_shlibpath_var_GCJ=no
19345      ;;
19346
19347    freebsd1*)
19348      ld_shlibs_GCJ=no
19349      ;;
19350
19351    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19352    # support.  Future versions do this automatically, but an explicit c++rt0.o
19353    # does not break anything, and helps significantly (at the cost of a little
19354    # extra space).
19355    freebsd2.2*)
19356      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19357      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19358      hardcode_direct_GCJ=yes
19359      hardcode_shlibpath_var_GCJ=no
19360      ;;
19361
19362    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19363    freebsd2*)
19364      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19365      hardcode_direct_GCJ=yes
19366      hardcode_minus_L_GCJ=yes
19367      hardcode_shlibpath_var_GCJ=no
19368      ;;
19369
19370    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19371    freebsd* | kfreebsd*-gnu | dragonfly*)
19372      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19373      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19374      hardcode_direct_GCJ=yes
19375      hardcode_shlibpath_var_GCJ=no
19376      ;;
19377
19378    hpux9*)
19379      if test "$GCC" = yes; then
19380	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'
19381      else
19382	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'
19383      fi
19384      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19385      hardcode_libdir_separator_GCJ=:
19386      hardcode_direct_GCJ=yes
19387
19388      # hardcode_minus_L: Not really in the search PATH,
19389      # but as the default location of the library.
19390      hardcode_minus_L_GCJ=yes
19391      export_dynamic_flag_spec_GCJ='${wl}-E'
19392      ;;
19393
19394    hpux10*)
19395      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19396	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19397      else
19398	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19399      fi
19400      if test "$with_gnu_ld" = no; then
19401	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19402	hardcode_libdir_separator_GCJ=:
19403
19404	hardcode_direct_GCJ=yes
19405	export_dynamic_flag_spec_GCJ='${wl}-E'
19406
19407	# hardcode_minus_L: Not really in the search PATH,
19408	# but as the default location of the library.
19409	hardcode_minus_L_GCJ=yes
19410      fi
19411      ;;
19412
19413    hpux11*)
19414      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19415	case $host_cpu in
19416	hppa*64*)
19417	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19418	  ;;
19419	ia64*)
19420	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19421	  ;;
19422	*)
19423	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19424	  ;;
19425	esac
19426      else
19427	case $host_cpu in
19428	hppa*64*)
19429	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19430	  ;;
19431	ia64*)
19432	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19433	  ;;
19434	*)
19435	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19436	  ;;
19437	esac
19438      fi
19439      if test "$with_gnu_ld" = no; then
19440	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19441	hardcode_libdir_separator_GCJ=:
19442
19443	case $host_cpu in
19444	hppa*64*|ia64*)
19445	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19446	  hardcode_direct_GCJ=no
19447	  hardcode_shlibpath_var_GCJ=no
19448	  ;;
19449	*)
19450	  hardcode_direct_GCJ=yes
19451	  export_dynamic_flag_spec_GCJ='${wl}-E'
19452
19453	  # hardcode_minus_L: Not really in the search PATH,
19454	  # but as the default location of the library.
19455	  hardcode_minus_L_GCJ=yes
19456	  ;;
19457	esac
19458      fi
19459      ;;
19460
19461    irix5* | irix6* | nonstopux*)
19462      if test "$GCC" = yes; then
19463	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'
19464      else
19465	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'
19466	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19467      fi
19468      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19469      hardcode_libdir_separator_GCJ=:
19470      link_all_deplibs_GCJ=yes
19471      ;;
19472
19473    netbsd*)
19474      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19475	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19476      else
19477	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19478      fi
19479      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19480      hardcode_direct_GCJ=yes
19481      hardcode_shlibpath_var_GCJ=no
19482      ;;
19483
19484    newsos6)
19485      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19486      hardcode_direct_GCJ=yes
19487      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19488      hardcode_libdir_separator_GCJ=:
19489      hardcode_shlibpath_var_GCJ=no
19490      ;;
19491
19492    openbsd*)
19493      hardcode_direct_GCJ=yes
19494      hardcode_shlibpath_var_GCJ=no
19495      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19496	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19497	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19498	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19499	export_dynamic_flag_spec_GCJ='${wl}-E'
19500      else
19501       case $host_os in
19502	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19503	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19504	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19505	   ;;
19506	 *)
19507	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19508	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19509	   ;;
19510       esac
19511      fi
19512      ;;
19513
19514    os2*)
19515      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19516      hardcode_minus_L_GCJ=yes
19517      allow_undefined_flag_GCJ=unsupported
19518      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'
19519      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19520      ;;
19521
19522    osf3*)
19523      if test "$GCC" = yes; then
19524	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19525	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'
19526      else
19527	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19528	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'
19529      fi
19530      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19531      hardcode_libdir_separator_GCJ=:
19532      ;;
19533
19534    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19535      if test "$GCC" = yes; then
19536	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19537	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'
19538	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19539      else
19540	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19541	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'
19542	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~
19543	$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'
19544
19545	# Both c and cxx compiler support -rpath directly
19546	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19547      fi
19548      hardcode_libdir_separator_GCJ=:
19549      ;;
19550
19551    solaris*)
19552      no_undefined_flag_GCJ=' -z text'
19553      if test "$GCC" = yes; then
19554	wlarc='${wl}'
19555	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19556	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19557	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19558      else
19559	wlarc=''
19560	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19561	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19562  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19563      fi
19564      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19565      hardcode_shlibpath_var_GCJ=no
19566      case $host_os in
19567      solaris2.[0-5] | solaris2.[0-5].*) ;;
19568      *)
19569 	# The compiler driver will combine linker options so we
19570 	# cannot just pass the convience library names through
19571 	# without $wl, iff we do not link with $LD.
19572 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19573 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19574 	case $wlarc in
19575 	'')
19576 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19577 	*)
19578 	  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' ;;
19579 	esac ;;
19580      esac
19581      link_all_deplibs_GCJ=yes
19582      ;;
19583
19584    sunos4*)
19585      if test "x$host_vendor" = xsequent; then
19586	# Use $CC to link under sequent, because it throws in some extra .o
19587	# files that make .init and .fini sections work.
19588	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19589      else
19590	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19591      fi
19592      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19593      hardcode_direct_GCJ=yes
19594      hardcode_minus_L_GCJ=yes
19595      hardcode_shlibpath_var_GCJ=no
19596      ;;
19597
19598    sysv4)
19599      case $host_vendor in
19600	sni)
19601	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19602	  hardcode_direct_GCJ=yes # is this really true???
19603	;;
19604	siemens)
19605	  ## LD is ld it makes a PLAMLIB
19606	  ## CC just makes a GrossModule.
19607	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19608	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19609	  hardcode_direct_GCJ=no
19610        ;;
19611	motorola)
19612	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19613	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19614	;;
19615      esac
19616      runpath_var='LD_RUN_PATH'
19617      hardcode_shlibpath_var_GCJ=no
19618      ;;
19619
19620    sysv4.3*)
19621      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19622      hardcode_shlibpath_var_GCJ=no
19623      export_dynamic_flag_spec_GCJ='-Bexport'
19624      ;;
19625
19626    sysv4*MP*)
19627      if test -d /usr/nec; then
19628	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19629	hardcode_shlibpath_var_GCJ=no
19630	runpath_var=LD_RUN_PATH
19631	hardcode_runpath_var=yes
19632	ld_shlibs_GCJ=yes
19633      fi
19634      ;;
19635
19636    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19637      no_undefined_flag_GCJ='${wl}-z,text'
19638      archive_cmds_need_lc_GCJ=no
19639      hardcode_shlibpath_var_GCJ=no
19640      runpath_var='LD_RUN_PATH'
19641
19642      if test "$GCC" = yes; then
19643	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19645      else
19646	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19647	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648      fi
19649      ;;
19650
19651    sysv5* | sco3.2v5* | sco5v6*)
19652      # Note: We can NOT use -z defs as we might desire, because we do not
19653      # link with -lc, and that would cause any symbols used from libc to
19654      # always be unresolved, which means just about no library would
19655      # ever link correctly.  If we're not using GNU ld we use -z text
19656      # though, which does catch some bad symbols but isn't as heavy-handed
19657      # as -z defs.
19658      no_undefined_flag_GCJ='${wl}-z,text'
19659      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19660      archive_cmds_need_lc_GCJ=no
19661      hardcode_shlibpath_var_GCJ=no
19662      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19663      hardcode_libdir_separator_GCJ=':'
19664      link_all_deplibs_GCJ=yes
19665      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19666      runpath_var='LD_RUN_PATH'
19667
19668      if test "$GCC" = yes; then
19669	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19670	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19671      else
19672	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19673	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19674      fi
19675      ;;
19676
19677    uts4*)
19678      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19679      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19680      hardcode_shlibpath_var_GCJ=no
19681      ;;
19682
19683    *)
19684      ld_shlibs_GCJ=no
19685      ;;
19686    esac
19687  fi
19688
19689echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19690echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19691test "$ld_shlibs_GCJ" = no && can_build_shared=no
19692
19693#
19694# Do we need to explicitly link libc?
19695#
19696case "x$archive_cmds_need_lc_GCJ" in
19697x|xyes)
19698  # Assume -lc should be added
19699  archive_cmds_need_lc_GCJ=yes
19700
19701  if test "$enable_shared" = yes && test "$GCC" = yes; then
19702    case $archive_cmds_GCJ in
19703    *'~'*)
19704      # FIXME: we may have to deal with multi-command sequences.
19705      ;;
19706    '$CC '*)
19707      # Test whether the compiler implicitly links with -lc since on some
19708      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19709      # to ld, don't add -lc before -lgcc.
19710      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19711echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19712      $rm conftest*
19713      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19714
19715      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716  (eval $ac_compile) 2>&5
19717  ac_status=$?
19718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719  (exit $ac_status); } 2>conftest.err; then
19720        soname=conftest
19721        lib=conftest
19722        libobjs=conftest.$ac_objext
19723        deplibs=
19724        wl=$lt_prog_compiler_wl_GCJ
19725	pic_flag=$lt_prog_compiler_pic_GCJ
19726        compiler_flags=-v
19727        linker_flags=-v
19728        verstring=
19729        output_objdir=.
19730        libname=conftest
19731        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19732        allow_undefined_flag_GCJ=
19733        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19734  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19735  ac_status=$?
19736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737  (exit $ac_status); }
19738        then
19739	  archive_cmds_need_lc_GCJ=no
19740        else
19741	  archive_cmds_need_lc_GCJ=yes
19742        fi
19743        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19744      else
19745        cat conftest.err 1>&5
19746      fi
19747      $rm conftest*
19748      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19749echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19750      ;;
19751    esac
19752  fi
19753  ;;
19754esac
19755
19756echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19757echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19758library_names_spec=
19759libname_spec='lib$name'
19760soname_spec=
19761shrext_cmds=".so"
19762postinstall_cmds=
19763postuninstall_cmds=
19764finish_cmds=
19765finish_eval=
19766shlibpath_var=
19767shlibpath_overrides_runpath=unknown
19768version_type=none
19769dynamic_linker="$host_os ld.so"
19770sys_lib_dlsearch_path_spec="/lib /usr/lib"
19771if test "$GCC" = yes; then
19772  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19773  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19774    # if the path contains ";" then we assume it to be the separator
19775    # otherwise default to the standard path separator (i.e. ":") - it is
19776    # assumed that no part of a normal pathname contains ";" but that should
19777    # okay in the real world where ";" in dirpaths is itself problematic.
19778    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19779  else
19780    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19781  fi
19782else
19783  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19784fi
19785need_lib_prefix=unknown
19786hardcode_into_libs=no
19787
19788# when you set need_version to no, make sure it does not cause -set_version
19789# flags to be left without arguments
19790need_version=unknown
19791
19792case $host_os in
19793aix3*)
19794  version_type=linux
19795  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19796  shlibpath_var=LIBPATH
19797
19798  # AIX 3 has no versioning support, so we append a major version to the name.
19799  soname_spec='${libname}${release}${shared_ext}$major'
19800  ;;
19801
19802aix4* | aix5*)
19803  version_type=linux
19804  need_lib_prefix=no
19805  need_version=no
19806  hardcode_into_libs=yes
19807  if test "$host_cpu" = ia64; then
19808    # AIX 5 supports IA64
19809    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19810    shlibpath_var=LD_LIBRARY_PATH
19811  else
19812    # With GCC up to 2.95.x, collect2 would create an import file
19813    # for dependence libraries.  The import file would start with
19814    # the line `#! .'.  This would cause the generated library to
19815    # depend on `.', always an invalid library.  This was fixed in
19816    # development snapshots of GCC prior to 3.0.
19817    case $host_os in
19818      aix4 | aix4.[01] | aix4.[01].*)
19819      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19820	   echo ' yes '
19821	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19822	:
19823      else
19824	can_build_shared=no
19825      fi
19826      ;;
19827    esac
19828    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19829    # soname into executable. Probably we can add versioning support to
19830    # collect2, so additional links can be useful in future.
19831    if test "$aix_use_runtimelinking" = yes; then
19832      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19833      # instead of lib<name>.a to let people know that these are not
19834      # typical AIX shared libraries.
19835      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19836    else
19837      # We preserve .a as extension for shared libraries through AIX4.2
19838      # and later when we are not doing run time linking.
19839      library_names_spec='${libname}${release}.a $libname.a'
19840      soname_spec='${libname}${release}${shared_ext}$major'
19841    fi
19842    shlibpath_var=LIBPATH
19843  fi
19844  ;;
19845
19846amigaos*)
19847  library_names_spec='$libname.ixlibrary $libname.a'
19848  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19849  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'
19850  ;;
19851
19852beos*)
19853  library_names_spec='${libname}${shared_ext}'
19854  dynamic_linker="$host_os ld.so"
19855  shlibpath_var=LIBRARY_PATH
19856  ;;
19857
19858bsdi[45]*)
19859  version_type=linux
19860  need_version=no
19861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19862  soname_spec='${libname}${release}${shared_ext}$major'
19863  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19864  shlibpath_var=LD_LIBRARY_PATH
19865  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19866  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19867  # the default ld.so.conf also contains /usr/contrib/lib and
19868  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19869  # libtool to hard-code these into programs
19870  ;;
19871
19872cygwin* | mingw* | pw32*)
19873  version_type=windows
19874  shrext_cmds=".dll"
19875  need_version=no
19876  need_lib_prefix=no
19877
19878  case $GCC,$host_os in
19879  yes,cygwin* | yes,mingw* | yes,pw32*)
19880    library_names_spec='$libname.dll.a'
19881    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19882    postinstall_cmds='base_file=`basename \${file}`~
19883      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19884      dldir=$destdir/`dirname \$dlpath`~
19885      test -d \$dldir || mkdir -p \$dldir~
19886      $install_prog $dir/$dlname \$dldir/$dlname~
19887      chmod a+x \$dldir/$dlname'
19888    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19889      dlpath=$dir/\$dldll~
19890       $rm \$dlpath'
19891    shlibpath_overrides_runpath=yes
19892
19893    case $host_os in
19894    cygwin*)
19895      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19896      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19897      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19898      ;;
19899    mingw*)
19900      # MinGW DLLs use traditional 'lib' prefix
19901      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19902      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19903      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19904        # It is most probably a Windows format PATH printed by
19905        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19906        # path with ; separators, and with drive letters. We can handle the
19907        # drive letters (cygwin fileutils understands them), so leave them,
19908        # especially as we might pass files found there to a mingw objdump,
19909        # which wouldn't understand a cygwinified path. Ahh.
19910        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19911      else
19912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19913      fi
19914      ;;
19915    pw32*)
19916      # pw32 DLLs use 'pw' prefix rather than 'lib'
19917      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19918      ;;
19919    esac
19920    ;;
19921
19922  *)
19923    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19924    ;;
19925  esac
19926  dynamic_linker='Win32 ld.exe'
19927  # FIXME: first we should search . and the directory the executable is in
19928  shlibpath_var=PATH
19929  ;;
19930
19931darwin* | rhapsody*)
19932  dynamic_linker="$host_os dyld"
19933  version_type=darwin
19934  need_lib_prefix=no
19935  need_version=no
19936  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19937  soname_spec='${libname}${release}${major}$shared_ext'
19938  shlibpath_overrides_runpath=yes
19939  shlibpath_var=DYLD_LIBRARY_PATH
19940  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19941  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19942  if test "$GCC" = yes; then
19943    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"`
19944  else
19945    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19946  fi
19947  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19948  ;;
19949
19950dgux*)
19951  version_type=linux
19952  need_lib_prefix=no
19953  need_version=no
19954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19955  soname_spec='${libname}${release}${shared_ext}$major'
19956  shlibpath_var=LD_LIBRARY_PATH
19957  ;;
19958
19959freebsd1*)
19960  dynamic_linker=no
19961  ;;
19962
19963kfreebsd*-gnu)
19964  version_type=linux
19965  need_lib_prefix=no
19966  need_version=no
19967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19968  soname_spec='${libname}${release}${shared_ext}$major'
19969  shlibpath_var=LD_LIBRARY_PATH
19970  shlibpath_overrides_runpath=no
19971  hardcode_into_libs=yes
19972  dynamic_linker='GNU ld.so'
19973  ;;
19974
19975freebsd* | dragonfly*)
19976  # DragonFly does not have aout.  When/if they implement a new
19977  # versioning mechanism, adjust this.
19978  if test -x /usr/bin/objformat; then
19979    objformat=`/usr/bin/objformat`
19980  else
19981    case $host_os in
19982    freebsd[123]*) objformat=aout ;;
19983    *) objformat=elf ;;
19984    esac
19985  fi
19986  version_type=freebsd-$objformat
19987  case $version_type in
19988    freebsd-elf*)
19989      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19990      need_version=no
19991      need_lib_prefix=no
19992      ;;
19993    freebsd-*)
19994      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19995      need_version=yes
19996      ;;
19997  esac
19998  shlibpath_var=LD_LIBRARY_PATH
19999  case $host_os in
20000  freebsd2*)
20001    shlibpath_overrides_runpath=yes
20002    ;;
20003  freebsd3.[01]* | freebsdelf3.[01]*)
20004    shlibpath_overrides_runpath=yes
20005    hardcode_into_libs=yes
20006    ;;
20007  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20008  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20009    shlibpath_overrides_runpath=no
20010    hardcode_into_libs=yes
20011    ;;
20012  freebsd*) # from 4.6 on
20013    shlibpath_overrides_runpath=yes
20014    hardcode_into_libs=yes
20015    ;;
20016  esac
20017  ;;
20018
20019gnu*)
20020  version_type=linux
20021  need_lib_prefix=no
20022  need_version=no
20023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20024  soname_spec='${libname}${release}${shared_ext}$major'
20025  shlibpath_var=LD_LIBRARY_PATH
20026  hardcode_into_libs=yes
20027  ;;
20028
20029hpux9* | hpux10* | hpux11*)
20030  # Give a soname corresponding to the major version so that dld.sl refuses to
20031  # link against other versions.
20032  version_type=sunos
20033  need_lib_prefix=no
20034  need_version=no
20035  case $host_cpu in
20036  ia64*)
20037    shrext_cmds='.so'
20038    hardcode_into_libs=yes
20039    dynamic_linker="$host_os dld.so"
20040    shlibpath_var=LD_LIBRARY_PATH
20041    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043    soname_spec='${libname}${release}${shared_ext}$major'
20044    if test "X$HPUX_IA64_MODE" = X32; then
20045      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20046    else
20047      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20048    fi
20049    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20050    ;;
20051   hppa*64*)
20052     shrext_cmds='.sl'
20053     hardcode_into_libs=yes
20054     dynamic_linker="$host_os dld.sl"
20055     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20058     soname_spec='${libname}${release}${shared_ext}$major'
20059     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20060     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20061     ;;
20062   *)
20063    shrext_cmds='.sl'
20064    dynamic_linker="$host_os dld.sl"
20065    shlibpath_var=SHLIB_PATH
20066    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068    soname_spec='${libname}${release}${shared_ext}$major'
20069    ;;
20070  esac
20071  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20072  postinstall_cmds='chmod 555 $lib'
20073  ;;
20074
20075interix3*)
20076  version_type=linux
20077  need_lib_prefix=no
20078  need_version=no
20079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20080  soname_spec='${libname}${release}${shared_ext}$major'
20081  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20082  shlibpath_var=LD_LIBRARY_PATH
20083  shlibpath_overrides_runpath=no
20084  hardcode_into_libs=yes
20085  ;;
20086
20087irix5* | irix6* | nonstopux*)
20088  case $host_os in
20089    nonstopux*) version_type=nonstopux ;;
20090    *)
20091	if test "$lt_cv_prog_gnu_ld" = yes; then
20092		version_type=linux
20093	else
20094		version_type=irix
20095	fi ;;
20096  esac
20097  need_lib_prefix=no
20098  need_version=no
20099  soname_spec='${libname}${release}${shared_ext}$major'
20100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20101  case $host_os in
20102  irix5* | nonstopux*)
20103    libsuff= shlibsuff=
20104    ;;
20105  *)
20106    case $LD in # libtool.m4 will add one of these switches to LD
20107    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20108      libsuff= shlibsuff= libmagic=32-bit;;
20109    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20110      libsuff=32 shlibsuff=N32 libmagic=N32;;
20111    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20112      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20113    *) libsuff= shlibsuff= libmagic=never-match;;
20114    esac
20115    ;;
20116  esac
20117  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20118  shlibpath_overrides_runpath=no
20119  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20120  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20121  hardcode_into_libs=yes
20122  ;;
20123
20124# No shared lib support for Linux oldld, aout, or coff.
20125linux*oldld* | linux*aout* | linux*coff*)
20126  dynamic_linker=no
20127  ;;
20128
20129# This must be Linux ELF.
20130linux*)
20131  version_type=linux
20132  need_lib_prefix=no
20133  need_version=no
20134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20135  soname_spec='${libname}${release}${shared_ext}$major'
20136  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20137  shlibpath_var=LD_LIBRARY_PATH
20138  shlibpath_overrides_runpath=no
20139  # This implies no fast_install, which is unacceptable.
20140  # Some rework will be needed to allow for fast_install
20141  # before this can be enabled.
20142  hardcode_into_libs=yes
20143
20144  # Append ld.so.conf contents to the search path
20145  if test -f /etc/ld.so.conf; then
20146    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' ' '`
20147    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20148  fi
20149
20150  # We used to test for /lib/ld.so.1 and disable shared libraries on
20151  # powerpc, because MkLinux only supported shared libraries with the
20152  # GNU dynamic linker.  Since this was broken with cross compilers,
20153  # most powerpc-linux boxes support dynamic linking these days and
20154  # people can always --disable-shared, the test was removed, and we
20155  # assume the GNU/Linux dynamic linker is in use.
20156  dynamic_linker='GNU/Linux ld.so'
20157  ;;
20158
20159knetbsd*-gnu)
20160  version_type=linux
20161  need_lib_prefix=no
20162  need_version=no
20163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20164  soname_spec='${libname}${release}${shared_ext}$major'
20165  shlibpath_var=LD_LIBRARY_PATH
20166  shlibpath_overrides_runpath=no
20167  hardcode_into_libs=yes
20168  dynamic_linker='GNU ld.so'
20169  ;;
20170
20171netbsd*)
20172  version_type=sunos
20173  need_lib_prefix=no
20174  need_version=no
20175  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20176    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20177    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20178    dynamic_linker='NetBSD (a.out) ld.so'
20179  else
20180    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20181    soname_spec='${libname}${release}${shared_ext}$major'
20182    dynamic_linker='NetBSD ld.elf_so'
20183  fi
20184  shlibpath_var=LD_LIBRARY_PATH
20185  shlibpath_overrides_runpath=yes
20186  hardcode_into_libs=yes
20187  ;;
20188
20189newsos6)
20190  version_type=linux
20191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192  shlibpath_var=LD_LIBRARY_PATH
20193  shlibpath_overrides_runpath=yes
20194  ;;
20195
20196nto-qnx*)
20197  version_type=linux
20198  need_lib_prefix=no
20199  need_version=no
20200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201  soname_spec='${libname}${release}${shared_ext}$major'
20202  shlibpath_var=LD_LIBRARY_PATH
20203  shlibpath_overrides_runpath=yes
20204  ;;
20205
20206openbsd*)
20207  version_type=sunos
20208  sys_lib_dlsearch_path_spec="/usr/lib"
20209  need_lib_prefix=no
20210  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20211  case $host_os in
20212    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20213    *)                         need_version=no  ;;
20214  esac
20215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20216  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20217  shlibpath_var=LD_LIBRARY_PATH
20218  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20219    case $host_os in
20220      openbsd2.[89] | openbsd2.[89].*)
20221	shlibpath_overrides_runpath=no
20222	;;
20223      *)
20224	shlibpath_overrides_runpath=yes
20225	;;
20226      esac
20227  else
20228    shlibpath_overrides_runpath=yes
20229  fi
20230  ;;
20231
20232os2*)
20233  libname_spec='$name'
20234  shrext_cmds=".dll"
20235  need_lib_prefix=no
20236  library_names_spec='$libname${shared_ext} $libname.a'
20237  dynamic_linker='OS/2 ld.exe'
20238  shlibpath_var=LIBPATH
20239  ;;
20240
20241osf3* | osf4* | osf5*)
20242  version_type=osf
20243  need_lib_prefix=no
20244  need_version=no
20245  soname_spec='${libname}${release}${shared_ext}$major'
20246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20247  shlibpath_var=LD_LIBRARY_PATH
20248  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20249  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20250  ;;
20251
20252solaris*)
20253  version_type=linux
20254  need_lib_prefix=no
20255  need_version=no
20256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257  soname_spec='${libname}${release}${shared_ext}$major'
20258  shlibpath_var=LD_LIBRARY_PATH
20259  shlibpath_overrides_runpath=yes
20260  hardcode_into_libs=yes
20261  # ldd complains unless libraries are executable
20262  postinstall_cmds='chmod +x $lib'
20263  ;;
20264
20265sunos4*)
20266  version_type=sunos
20267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20268  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20269  shlibpath_var=LD_LIBRARY_PATH
20270  shlibpath_overrides_runpath=yes
20271  if test "$with_gnu_ld" = yes; then
20272    need_lib_prefix=no
20273  fi
20274  need_version=yes
20275  ;;
20276
20277sysv4 | sysv4.3*)
20278  version_type=linux
20279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280  soname_spec='${libname}${release}${shared_ext}$major'
20281  shlibpath_var=LD_LIBRARY_PATH
20282  case $host_vendor in
20283    sni)
20284      shlibpath_overrides_runpath=no
20285      need_lib_prefix=no
20286      export_dynamic_flag_spec='${wl}-Blargedynsym'
20287      runpath_var=LD_RUN_PATH
20288      ;;
20289    siemens)
20290      need_lib_prefix=no
20291      ;;
20292    motorola)
20293      need_lib_prefix=no
20294      need_version=no
20295      shlibpath_overrides_runpath=no
20296      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20297      ;;
20298  esac
20299  ;;
20300
20301sysv4*MP*)
20302  if test -d /usr/nec ;then
20303    version_type=linux
20304    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20305    soname_spec='$libname${shared_ext}.$major'
20306    shlibpath_var=LD_LIBRARY_PATH
20307  fi
20308  ;;
20309
20310sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20311  version_type=freebsd-elf
20312  need_lib_prefix=no
20313  need_version=no
20314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20315  soname_spec='${libname}${release}${shared_ext}$major'
20316  shlibpath_var=LD_LIBRARY_PATH
20317  hardcode_into_libs=yes
20318  if test "$with_gnu_ld" = yes; then
20319    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20320    shlibpath_overrides_runpath=no
20321  else
20322    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20323    shlibpath_overrides_runpath=yes
20324    case $host_os in
20325      sco3.2v5*)
20326        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20327	;;
20328    esac
20329  fi
20330  sys_lib_dlsearch_path_spec='/usr/lib'
20331  ;;
20332
20333uts4*)
20334  version_type=linux
20335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336  soname_spec='${libname}${release}${shared_ext}$major'
20337  shlibpath_var=LD_LIBRARY_PATH
20338  ;;
20339
20340*)
20341  dynamic_linker=no
20342  ;;
20343esac
20344echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20345echo "${ECHO_T}$dynamic_linker" >&6
20346test "$dynamic_linker" = no && can_build_shared=no
20347
20348variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20349if test "$GCC" = yes; then
20350  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20351fi
20352
20353echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20354echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20355hardcode_action_GCJ=
20356if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20357   test -n "$runpath_var_GCJ" || \
20358   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20359
20360  # We can hardcode non-existant directories.
20361  if test "$hardcode_direct_GCJ" != no &&
20362     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20363     # have to relink, otherwise we might link with an installed library
20364     # when we should be linking with a yet-to-be-installed one
20365     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20366     test "$hardcode_minus_L_GCJ" != no; then
20367    # Linking always hardcodes the temporary library directory.
20368    hardcode_action_GCJ=relink
20369  else
20370    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20371    hardcode_action_GCJ=immediate
20372  fi
20373else
20374  # We cannot hardcode anything, or else we can only hardcode existing
20375  # directories.
20376  hardcode_action_GCJ=unsupported
20377fi
20378echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20379echo "${ECHO_T}$hardcode_action_GCJ" >&6
20380
20381if test "$hardcode_action_GCJ" = relink; then
20382  # Fast installation is not supported
20383  enable_fast_install=no
20384elif test "$shlibpath_overrides_runpath" = yes ||
20385     test "$enable_shared" = no; then
20386  # Fast installation is not necessary
20387  enable_fast_install=needless
20388fi
20389
20390
20391# The else clause should only fire when bootstrapping the
20392# libtool distribution, otherwise you forgot to ship ltmain.sh
20393# with your package, and you will get complaints that there are
20394# no rules to generate ltmain.sh.
20395if test -f "$ltmain"; then
20396  # See if we are running on zsh, and set the options which allow our commands through
20397  # without removal of \ escapes.
20398  if test -n "${ZSH_VERSION+set}" ; then
20399    setopt NO_GLOB_SUBST
20400  fi
20401  # Now quote all the things that may contain metacharacters while being
20402  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20403  # variables and quote the copies for generation of the libtool script.
20404  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20405    SED SHELL STRIP \
20406    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20407    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20408    deplibs_check_method reload_flag reload_cmds need_locks \
20409    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20410    lt_cv_sys_global_symbol_to_c_name_address \
20411    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20412    old_postinstall_cmds old_postuninstall_cmds \
20413    compiler_GCJ \
20414    CC_GCJ \
20415    LD_GCJ \
20416    lt_prog_compiler_wl_GCJ \
20417    lt_prog_compiler_pic_GCJ \
20418    lt_prog_compiler_static_GCJ \
20419    lt_prog_compiler_no_builtin_flag_GCJ \
20420    export_dynamic_flag_spec_GCJ \
20421    thread_safe_flag_spec_GCJ \
20422    whole_archive_flag_spec_GCJ \
20423    enable_shared_with_static_runtimes_GCJ \
20424    old_archive_cmds_GCJ \
20425    old_archive_from_new_cmds_GCJ \
20426    predep_objects_GCJ \
20427    postdep_objects_GCJ \
20428    predeps_GCJ \
20429    postdeps_GCJ \
20430    compiler_lib_search_path_GCJ \
20431    archive_cmds_GCJ \
20432    archive_expsym_cmds_GCJ \
20433    postinstall_cmds_GCJ \
20434    postuninstall_cmds_GCJ \
20435    old_archive_from_expsyms_cmds_GCJ \
20436    allow_undefined_flag_GCJ \
20437    no_undefined_flag_GCJ \
20438    export_symbols_cmds_GCJ \
20439    hardcode_libdir_flag_spec_GCJ \
20440    hardcode_libdir_flag_spec_ld_GCJ \
20441    hardcode_libdir_separator_GCJ \
20442    hardcode_automatic_GCJ \
20443    module_cmds_GCJ \
20444    module_expsym_cmds_GCJ \
20445    lt_cv_prog_compiler_c_o_GCJ \
20446    exclude_expsyms_GCJ \
20447    include_expsyms_GCJ; do
20448
20449    case $var in
20450    old_archive_cmds_GCJ | \
20451    old_archive_from_new_cmds_GCJ | \
20452    archive_cmds_GCJ | \
20453    archive_expsym_cmds_GCJ | \
20454    module_cmds_GCJ | \
20455    module_expsym_cmds_GCJ | \
20456    old_archive_from_expsyms_cmds_GCJ | \
20457    export_symbols_cmds_GCJ | \
20458    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20459    postinstall_cmds | postuninstall_cmds | \
20460    old_postinstall_cmds | old_postuninstall_cmds | \
20461    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20462      # Double-quote double-evaled strings.
20463      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20464      ;;
20465    *)
20466      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20467      ;;
20468    esac
20469  done
20470
20471  case $lt_echo in
20472  *'\$0 --fallback-echo"')
20473    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20474    ;;
20475  esac
20476
20477cfgfile="$ofile"
20478
20479  cat <<__EOF__ >> "$cfgfile"
20480# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20481
20482# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20483
20484# Shell to use when invoking shell scripts.
20485SHELL=$lt_SHELL
20486
20487# Whether or not to build shared libraries.
20488build_libtool_libs=$enable_shared
20489
20490# Whether or not to build static libraries.
20491build_old_libs=$enable_static
20492
20493# Whether or not to add -lc for building shared libraries.
20494build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20495
20496# Whether or not to disallow shared libs when runtime libs are static
20497allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20498
20499# Whether or not to optimize for fast installation.
20500fast_install=$enable_fast_install
20501
20502# The host system.
20503host_alias=$host_alias
20504host=$host
20505host_os=$host_os
20506
20507# The build system.
20508build_alias=$build_alias
20509build=$build
20510build_os=$build_os
20511
20512# An echo program that does not interpret backslashes.
20513echo=$lt_echo
20514
20515# The archiver.
20516AR=$lt_AR
20517AR_FLAGS=$lt_AR_FLAGS
20518
20519# A C compiler.
20520LTCC=$lt_LTCC
20521
20522# LTCC compiler flags.
20523LTCFLAGS=$lt_LTCFLAGS
20524
20525# A language-specific compiler.
20526CC=$lt_compiler_GCJ
20527
20528# Is the compiler the GNU C compiler?
20529with_gcc=$GCC_GCJ
20530
20531# An ERE matcher.
20532EGREP=$lt_EGREP
20533
20534# The linker used to build libraries.
20535LD=$lt_LD_GCJ
20536
20537# Whether we need hard or soft links.
20538LN_S=$lt_LN_S
20539
20540# A BSD-compatible nm program.
20541NM=$lt_NM
20542
20543# A symbol stripping program
20544STRIP=$lt_STRIP
20545
20546# Used to examine libraries when file_magic_cmd begins "file"
20547MAGIC_CMD=$MAGIC_CMD
20548
20549# Used on cygwin: DLL creation program.
20550DLLTOOL="$DLLTOOL"
20551
20552# Used on cygwin: object dumper.
20553OBJDUMP="$OBJDUMP"
20554
20555# Used on cygwin: assembler.
20556AS="$AS"
20557
20558# The name of the directory that contains temporary libtool files.
20559objdir=$objdir
20560
20561# How to create reloadable object files.
20562reload_flag=$lt_reload_flag
20563reload_cmds=$lt_reload_cmds
20564
20565# How to pass a linker flag through the compiler.
20566wl=$lt_lt_prog_compiler_wl_GCJ
20567
20568# Object file suffix (normally "o").
20569objext="$ac_objext"
20570
20571# Old archive suffix (normally "a").
20572libext="$libext"
20573
20574# Shared library suffix (normally ".so").
20575shrext_cmds='$shrext_cmds'
20576
20577# Executable file suffix (normally "").
20578exeext="$exeext"
20579
20580# Additional compiler flags for building library objects.
20581pic_flag=$lt_lt_prog_compiler_pic_GCJ
20582pic_mode=$pic_mode
20583
20584# What is the maximum length of a command?
20585max_cmd_len=$lt_cv_sys_max_cmd_len
20586
20587# Does compiler simultaneously support -c and -o options?
20588compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20589
20590# Must we lock files when doing compilation?
20591need_locks=$lt_need_locks
20592
20593# Do we need the lib prefix for modules?
20594need_lib_prefix=$need_lib_prefix
20595
20596# Do we need a version for libraries?
20597need_version=$need_version
20598
20599# Whether dlopen is supported.
20600dlopen_support=$enable_dlopen
20601
20602# Whether dlopen of programs is supported.
20603dlopen_self=$enable_dlopen_self
20604
20605# Whether dlopen of statically linked programs is supported.
20606dlopen_self_static=$enable_dlopen_self_static
20607
20608# Compiler flag to prevent dynamic linking.
20609link_static_flag=$lt_lt_prog_compiler_static_GCJ
20610
20611# Compiler flag to turn off builtin functions.
20612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20613
20614# Compiler flag to allow reflexive dlopens.
20615export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20616
20617# Compiler flag to generate shared objects directly from archives.
20618whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20619
20620# Compiler flag to generate thread-safe objects.
20621thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20622
20623# Library versioning type.
20624version_type=$version_type
20625
20626# Format of library name prefix.
20627libname_spec=$lt_libname_spec
20628
20629# List of archive names.  First name is the real one, the rest are links.
20630# The last name is the one that the linker finds with -lNAME.
20631library_names_spec=$lt_library_names_spec
20632
20633# The coded name of the library, if different from the real name.
20634soname_spec=$lt_soname_spec
20635
20636# Commands used to build and install an old-style archive.
20637RANLIB=$lt_RANLIB
20638old_archive_cmds=$lt_old_archive_cmds_GCJ
20639old_postinstall_cmds=$lt_old_postinstall_cmds
20640old_postuninstall_cmds=$lt_old_postuninstall_cmds
20641
20642# Create an old-style archive from a shared archive.
20643old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20644
20645# Create a temporary old-style archive to link instead of a shared archive.
20646old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20647
20648# Commands used to build and install a shared archive.
20649archive_cmds=$lt_archive_cmds_GCJ
20650archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20651postinstall_cmds=$lt_postinstall_cmds
20652postuninstall_cmds=$lt_postuninstall_cmds
20653
20654# Commands used to build a loadable module (assumed same as above if empty)
20655module_cmds=$lt_module_cmds_GCJ
20656module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20657
20658# Commands to strip libraries.
20659old_striplib=$lt_old_striplib
20660striplib=$lt_striplib
20661
20662# Dependencies to place before the objects being linked to create a
20663# shared library.
20664predep_objects=$lt_predep_objects_GCJ
20665
20666# Dependencies to place after the objects being linked to create a
20667# shared library.
20668postdep_objects=$lt_postdep_objects_GCJ
20669
20670# Dependencies to place before the objects being linked to create a
20671# shared library.
20672predeps=$lt_predeps_GCJ
20673
20674# Dependencies to place after the objects being linked to create a
20675# shared library.
20676postdeps=$lt_postdeps_GCJ
20677
20678# The library search path used internally by the compiler when linking
20679# a shared library.
20680compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20681
20682# Method to check whether dependent libraries are shared objects.
20683deplibs_check_method=$lt_deplibs_check_method
20684
20685# Command to use when deplibs_check_method == file_magic.
20686file_magic_cmd=$lt_file_magic_cmd
20687
20688# Flag that allows shared libraries with undefined symbols to be built.
20689allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20690
20691# Flag that forces no undefined symbols.
20692no_undefined_flag=$lt_no_undefined_flag_GCJ
20693
20694# Commands used to finish a libtool library installation in a directory.
20695finish_cmds=$lt_finish_cmds
20696
20697# Same as above, but a single script fragment to be evaled but not shown.
20698finish_eval=$lt_finish_eval
20699
20700# Take the output of nm and produce a listing of raw symbols and C names.
20701global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20702
20703# Transform the output of nm in a proper C declaration
20704global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20705
20706# Transform the output of nm in a C name address pair
20707global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20708
20709# This is the shared library runtime path variable.
20710runpath_var=$runpath_var
20711
20712# This is the shared library path variable.
20713shlibpath_var=$shlibpath_var
20714
20715# Is shlibpath searched before the hard-coded library search path?
20716shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20717
20718# How to hardcode a shared library path into an executable.
20719hardcode_action=$hardcode_action_GCJ
20720
20721# Whether we should hardcode library paths into libraries.
20722hardcode_into_libs=$hardcode_into_libs
20723
20724# Flag to hardcode \$libdir into a binary during linking.
20725# This must work even if \$libdir does not exist.
20726hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20727
20728# If ld is used when linking, flag to hardcode \$libdir into
20729# a binary during linking. This must work even if \$libdir does
20730# not exist.
20731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20732
20733# Whether we need a single -rpath flag with a separated argument.
20734hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20735
20736# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20737# resulting binary.
20738hardcode_direct=$hardcode_direct_GCJ
20739
20740# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20741# resulting binary.
20742hardcode_minus_L=$hardcode_minus_L_GCJ
20743
20744# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20745# the resulting binary.
20746hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20747
20748# Set to yes if building a shared library automatically hardcodes DIR into the library
20749# and all subsequent libraries and executables linked against it.
20750hardcode_automatic=$hardcode_automatic_GCJ
20751
20752# Variables whose values should be saved in libtool wrapper scripts and
20753# restored at relink time.
20754variables_saved_for_relink="$variables_saved_for_relink"
20755
20756# Whether libtool must link a program against all its dependency libraries.
20757link_all_deplibs=$link_all_deplibs_GCJ
20758
20759# Compile-time system search path for libraries
20760sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20761
20762# Run-time system search path for libraries
20763sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20764
20765# Fix the shell variable \$srcfile for the compiler.
20766fix_srcfile_path="$fix_srcfile_path_GCJ"
20767
20768# Set to yes if exported symbols are required.
20769always_export_symbols=$always_export_symbols_GCJ
20770
20771# The commands to list exported symbols.
20772export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20773
20774# The commands to extract the exported symbol list from a shared archive.
20775extract_expsyms_cmds=$lt_extract_expsyms_cmds
20776
20777# Symbols that should not be listed in the preloaded symbols.
20778exclude_expsyms=$lt_exclude_expsyms_GCJ
20779
20780# Symbols that must always be exported.
20781include_expsyms=$lt_include_expsyms_GCJ
20782
20783# ### END LIBTOOL TAG CONFIG: $tagname
20784
20785__EOF__
20786
20787
20788else
20789  # If there is no Makefile yet, we rely on a make rule to execute
20790  # `config.status --recheck' to rerun these tests and create the
20791  # libtool script then.
20792  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20793  if test -f "$ltmain_in"; then
20794    test -f Makefile && make "$ltmain"
20795  fi
20796fi
20797
20798
20799ac_ext=c
20800ac_cpp='$CPP $CPPFLAGS'
20801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804
20805CC="$lt_save_CC"
20806
20807	else
20808	  tagname=""
20809	fi
20810	;;
20811
20812      RC)
20813
20814
20815
20816# Source file extension for RC test sources.
20817ac_ext=rc
20818
20819# Object file extension for compiled RC test sources.
20820objext=o
20821objext_RC=$objext
20822
20823# Code to be used in simple compile tests
20824lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20825
20826# Code to be used in simple link tests
20827lt_simple_link_test_code="$lt_simple_compile_test_code"
20828
20829# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20830
20831# If no C compiler was specified, use CC.
20832LTCC=${LTCC-"$CC"}
20833
20834# If no C compiler flags were specified, use CFLAGS.
20835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20836
20837# Allow CC to be a program name with arguments.
20838compiler=$CC
20839
20840
20841# save warnings/boilerplate of simple test code
20842ac_outfile=conftest.$ac_objext
20843printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20844eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20845_lt_compiler_boilerplate=`cat conftest.err`
20846$rm conftest*
20847
20848ac_outfile=conftest.$ac_objext
20849printf "$lt_simple_link_test_code" >conftest.$ac_ext
20850eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20851_lt_linker_boilerplate=`cat conftest.err`
20852$rm conftest*
20853
20854
20855# Allow CC to be a program name with arguments.
20856lt_save_CC="$CC"
20857CC=${RC-"windres"}
20858compiler=$CC
20859compiler_RC=$CC
20860for cc_temp in $compiler""; do
20861  case $cc_temp in
20862    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20863    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20864    \-*) ;;
20865    *) break;;
20866  esac
20867done
20868cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20869
20870lt_cv_prog_compiler_c_o_RC=yes
20871
20872# The else clause should only fire when bootstrapping the
20873# libtool distribution, otherwise you forgot to ship ltmain.sh
20874# with your package, and you will get complaints that there are
20875# no rules to generate ltmain.sh.
20876if test -f "$ltmain"; then
20877  # See if we are running on zsh, and set the options which allow our commands through
20878  # without removal of \ escapes.
20879  if test -n "${ZSH_VERSION+set}" ; then
20880    setopt NO_GLOB_SUBST
20881  fi
20882  # Now quote all the things that may contain metacharacters while being
20883  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20884  # variables and quote the copies for generation of the libtool script.
20885  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20886    SED SHELL STRIP \
20887    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20888    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20889    deplibs_check_method reload_flag reload_cmds need_locks \
20890    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20891    lt_cv_sys_global_symbol_to_c_name_address \
20892    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20893    old_postinstall_cmds old_postuninstall_cmds \
20894    compiler_RC \
20895    CC_RC \
20896    LD_RC \
20897    lt_prog_compiler_wl_RC \
20898    lt_prog_compiler_pic_RC \
20899    lt_prog_compiler_static_RC \
20900    lt_prog_compiler_no_builtin_flag_RC \
20901    export_dynamic_flag_spec_RC \
20902    thread_safe_flag_spec_RC \
20903    whole_archive_flag_spec_RC \
20904    enable_shared_with_static_runtimes_RC \
20905    old_archive_cmds_RC \
20906    old_archive_from_new_cmds_RC \
20907    predep_objects_RC \
20908    postdep_objects_RC \
20909    predeps_RC \
20910    postdeps_RC \
20911    compiler_lib_search_path_RC \
20912    archive_cmds_RC \
20913    archive_expsym_cmds_RC \
20914    postinstall_cmds_RC \
20915    postuninstall_cmds_RC \
20916    old_archive_from_expsyms_cmds_RC \
20917    allow_undefined_flag_RC \
20918    no_undefined_flag_RC \
20919    export_symbols_cmds_RC \
20920    hardcode_libdir_flag_spec_RC \
20921    hardcode_libdir_flag_spec_ld_RC \
20922    hardcode_libdir_separator_RC \
20923    hardcode_automatic_RC \
20924    module_cmds_RC \
20925    module_expsym_cmds_RC \
20926    lt_cv_prog_compiler_c_o_RC \
20927    exclude_expsyms_RC \
20928    include_expsyms_RC; do
20929
20930    case $var in
20931    old_archive_cmds_RC | \
20932    old_archive_from_new_cmds_RC | \
20933    archive_cmds_RC | \
20934    archive_expsym_cmds_RC | \
20935    module_cmds_RC | \
20936    module_expsym_cmds_RC | \
20937    old_archive_from_expsyms_cmds_RC | \
20938    export_symbols_cmds_RC | \
20939    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20940    postinstall_cmds | postuninstall_cmds | \
20941    old_postinstall_cmds | old_postuninstall_cmds | \
20942    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20943      # Double-quote double-evaled strings.
20944      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20945      ;;
20946    *)
20947      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20948      ;;
20949    esac
20950  done
20951
20952  case $lt_echo in
20953  *'\$0 --fallback-echo"')
20954    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20955    ;;
20956  esac
20957
20958cfgfile="$ofile"
20959
20960  cat <<__EOF__ >> "$cfgfile"
20961# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20962
20963# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20964
20965# Shell to use when invoking shell scripts.
20966SHELL=$lt_SHELL
20967
20968# Whether or not to build shared libraries.
20969build_libtool_libs=$enable_shared
20970
20971# Whether or not to build static libraries.
20972build_old_libs=$enable_static
20973
20974# Whether or not to add -lc for building shared libraries.
20975build_libtool_need_lc=$archive_cmds_need_lc_RC
20976
20977# Whether or not to disallow shared libs when runtime libs are static
20978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20979
20980# Whether or not to optimize for fast installation.
20981fast_install=$enable_fast_install
20982
20983# The host system.
20984host_alias=$host_alias
20985host=$host
20986host_os=$host_os
20987
20988# The build system.
20989build_alias=$build_alias
20990build=$build
20991build_os=$build_os
20992
20993# An echo program that does not interpret backslashes.
20994echo=$lt_echo
20995
20996# The archiver.
20997AR=$lt_AR
20998AR_FLAGS=$lt_AR_FLAGS
20999
21000# A C compiler.
21001LTCC=$lt_LTCC
21002
21003# LTCC compiler flags.
21004LTCFLAGS=$lt_LTCFLAGS
21005
21006# A language-specific compiler.
21007CC=$lt_compiler_RC
21008
21009# Is the compiler the GNU C compiler?
21010with_gcc=$GCC_RC
21011
21012# An ERE matcher.
21013EGREP=$lt_EGREP
21014
21015# The linker used to build libraries.
21016LD=$lt_LD_RC
21017
21018# Whether we need hard or soft links.
21019LN_S=$lt_LN_S
21020
21021# A BSD-compatible nm program.
21022NM=$lt_NM
21023
21024# A symbol stripping program
21025STRIP=$lt_STRIP
21026
21027# Used to examine libraries when file_magic_cmd begins "file"
21028MAGIC_CMD=$MAGIC_CMD
21029
21030# Used on cygwin: DLL creation program.
21031DLLTOOL="$DLLTOOL"
21032
21033# Used on cygwin: object dumper.
21034OBJDUMP="$OBJDUMP"
21035
21036# Used on cygwin: assembler.
21037AS="$AS"
21038
21039# The name of the directory that contains temporary libtool files.
21040objdir=$objdir
21041
21042# How to create reloadable object files.
21043reload_flag=$lt_reload_flag
21044reload_cmds=$lt_reload_cmds
21045
21046# How to pass a linker flag through the compiler.
21047wl=$lt_lt_prog_compiler_wl_RC
21048
21049# Object file suffix (normally "o").
21050objext="$ac_objext"
21051
21052# Old archive suffix (normally "a").
21053libext="$libext"
21054
21055# Shared library suffix (normally ".so").
21056shrext_cmds='$shrext_cmds'
21057
21058# Executable file suffix (normally "").
21059exeext="$exeext"
21060
21061# Additional compiler flags for building library objects.
21062pic_flag=$lt_lt_prog_compiler_pic_RC
21063pic_mode=$pic_mode
21064
21065# What is the maximum length of a command?
21066max_cmd_len=$lt_cv_sys_max_cmd_len
21067
21068# Does compiler simultaneously support -c and -o options?
21069compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21070
21071# Must we lock files when doing compilation?
21072need_locks=$lt_need_locks
21073
21074# Do we need the lib prefix for modules?
21075need_lib_prefix=$need_lib_prefix
21076
21077# Do we need a version for libraries?
21078need_version=$need_version
21079
21080# Whether dlopen is supported.
21081dlopen_support=$enable_dlopen
21082
21083# Whether dlopen of programs is supported.
21084dlopen_self=$enable_dlopen_self
21085
21086# Whether dlopen of statically linked programs is supported.
21087dlopen_self_static=$enable_dlopen_self_static
21088
21089# Compiler flag to prevent dynamic linking.
21090link_static_flag=$lt_lt_prog_compiler_static_RC
21091
21092# Compiler flag to turn off builtin functions.
21093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21094
21095# Compiler flag to allow reflexive dlopens.
21096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21097
21098# Compiler flag to generate shared objects directly from archives.
21099whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21100
21101# Compiler flag to generate thread-safe objects.
21102thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21103
21104# Library versioning type.
21105version_type=$version_type
21106
21107# Format of library name prefix.
21108libname_spec=$lt_libname_spec
21109
21110# List of archive names.  First name is the real one, the rest are links.
21111# The last name is the one that the linker finds with -lNAME.
21112library_names_spec=$lt_library_names_spec
21113
21114# The coded name of the library, if different from the real name.
21115soname_spec=$lt_soname_spec
21116
21117# Commands used to build and install an old-style archive.
21118RANLIB=$lt_RANLIB
21119old_archive_cmds=$lt_old_archive_cmds_RC
21120old_postinstall_cmds=$lt_old_postinstall_cmds
21121old_postuninstall_cmds=$lt_old_postuninstall_cmds
21122
21123# Create an old-style archive from a shared archive.
21124old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21125
21126# Create a temporary old-style archive to link instead of a shared archive.
21127old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21128
21129# Commands used to build and install a shared archive.
21130archive_cmds=$lt_archive_cmds_RC
21131archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21132postinstall_cmds=$lt_postinstall_cmds
21133postuninstall_cmds=$lt_postuninstall_cmds
21134
21135# Commands used to build a loadable module (assumed same as above if empty)
21136module_cmds=$lt_module_cmds_RC
21137module_expsym_cmds=$lt_module_expsym_cmds_RC
21138
21139# Commands to strip libraries.
21140old_striplib=$lt_old_striplib
21141striplib=$lt_striplib
21142
21143# Dependencies to place before the objects being linked to create a
21144# shared library.
21145predep_objects=$lt_predep_objects_RC
21146
21147# Dependencies to place after the objects being linked to create a
21148# shared library.
21149postdep_objects=$lt_postdep_objects_RC
21150
21151# Dependencies to place before the objects being linked to create a
21152# shared library.
21153predeps=$lt_predeps_RC
21154
21155# Dependencies to place after the objects being linked to create a
21156# shared library.
21157postdeps=$lt_postdeps_RC
21158
21159# The library search path used internally by the compiler when linking
21160# a shared library.
21161compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21162
21163# Method to check whether dependent libraries are shared objects.
21164deplibs_check_method=$lt_deplibs_check_method
21165
21166# Command to use when deplibs_check_method == file_magic.
21167file_magic_cmd=$lt_file_magic_cmd
21168
21169# Flag that allows shared libraries with undefined symbols to be built.
21170allow_undefined_flag=$lt_allow_undefined_flag_RC
21171
21172# Flag that forces no undefined symbols.
21173no_undefined_flag=$lt_no_undefined_flag_RC
21174
21175# Commands used to finish a libtool library installation in a directory.
21176finish_cmds=$lt_finish_cmds
21177
21178# Same as above, but a single script fragment to be evaled but not shown.
21179finish_eval=$lt_finish_eval
21180
21181# Take the output of nm and produce a listing of raw symbols and C names.
21182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21183
21184# Transform the output of nm in a proper C declaration
21185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21186
21187# Transform the output of nm in a C name address pair
21188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21189
21190# This is the shared library runtime path variable.
21191runpath_var=$runpath_var
21192
21193# This is the shared library path variable.
21194shlibpath_var=$shlibpath_var
21195
21196# Is shlibpath searched before the hard-coded library search path?
21197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21198
21199# How to hardcode a shared library path into an executable.
21200hardcode_action=$hardcode_action_RC
21201
21202# Whether we should hardcode library paths into libraries.
21203hardcode_into_libs=$hardcode_into_libs
21204
21205# Flag to hardcode \$libdir into a binary during linking.
21206# This must work even if \$libdir does not exist.
21207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21208
21209# If ld is used when linking, flag to hardcode \$libdir into
21210# a binary during linking. This must work even if \$libdir does
21211# not exist.
21212hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21213
21214# Whether we need a single -rpath flag with a separated argument.
21215hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21216
21217# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21218# resulting binary.
21219hardcode_direct=$hardcode_direct_RC
21220
21221# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21222# resulting binary.
21223hardcode_minus_L=$hardcode_minus_L_RC
21224
21225# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21226# the resulting binary.
21227hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21228
21229# Set to yes if building a shared library automatically hardcodes DIR into the library
21230# and all subsequent libraries and executables linked against it.
21231hardcode_automatic=$hardcode_automatic_RC
21232
21233# Variables whose values should be saved in libtool wrapper scripts and
21234# restored at relink time.
21235variables_saved_for_relink="$variables_saved_for_relink"
21236
21237# Whether libtool must link a program against all its dependency libraries.
21238link_all_deplibs=$link_all_deplibs_RC
21239
21240# Compile-time system search path for libraries
21241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21242
21243# Run-time system search path for libraries
21244sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21245
21246# Fix the shell variable \$srcfile for the compiler.
21247fix_srcfile_path="$fix_srcfile_path_RC"
21248
21249# Set to yes if exported symbols are required.
21250always_export_symbols=$always_export_symbols_RC
21251
21252# The commands to list exported symbols.
21253export_symbols_cmds=$lt_export_symbols_cmds_RC
21254
21255# The commands to extract the exported symbol list from a shared archive.
21256extract_expsyms_cmds=$lt_extract_expsyms_cmds
21257
21258# Symbols that should not be listed in the preloaded symbols.
21259exclude_expsyms=$lt_exclude_expsyms_RC
21260
21261# Symbols that must always be exported.
21262include_expsyms=$lt_include_expsyms_RC
21263
21264# ### END LIBTOOL TAG CONFIG: $tagname
21265
21266__EOF__
21267
21268
21269else
21270  # If there is no Makefile yet, we rely on a make rule to execute
21271  # `config.status --recheck' to rerun these tests and create the
21272  # libtool script then.
21273  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21274  if test -f "$ltmain_in"; then
21275    test -f Makefile && make "$ltmain"
21276  fi
21277fi
21278
21279
21280ac_ext=c
21281ac_cpp='$CPP $CPPFLAGS'
21282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285
21286CC="$lt_save_CC"
21287
21288	;;
21289
21290      *)
21291	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21292echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21293   { (exit 1); exit 1; }; }
21294	;;
21295      esac
21296
21297      # Append the new tag name to the list of available tags.
21298      if test -n "$tagname" ; then
21299      available_tags="$available_tags $tagname"
21300    fi
21301    fi
21302  done
21303  IFS="$lt_save_ifs"
21304
21305  # Now substitute the updated list of available tags.
21306  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21307    mv "${ofile}T" "$ofile"
21308    chmod +x "$ofile"
21309  else
21310    rm -f "${ofile}T"
21311    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21312echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21313   { (exit 1); exit 1; }; }
21314  fi
21315fi
21316
21317
21318
21319# This can be used to rebuild libtool when needed
21320LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21321
21322# Always use our own libtool.
21323LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21324
21325# Prevent multiple expansion
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
21338 # AC_REQUIRE([AC_COIN_DLFCN_H])
21339
21340# NEW: If libtool exists in the directory higher up, we use that one
21341#      instead of creating a new one
21342
21343# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
21344# out in front of this macro body. You'll notice that LIBTOOL is already
21345# defined here.  We'll have to count on this macro not being called if libtool
21346# already exists, or at least move the libtool fixes outside the conditional.
21347# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
21348# This test is therefore removed.  -- lh, 061214 --
21349# if test "x$LIBTOOL" = x; then
21350
21351# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
21362
21363
21364
21365  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
21366echo "$as_me: Build is \"$build\"." >&6;}
21367  mydos2unix='| dos2unix'
21368  case $build in
21369    *-mingw*)
21370      CYGPATH_W=echo
21371      ;;
21372  esac
21373
21374  case $build in
21375    # Here we need to check if -m32 is specified.  If so, we need to correct
21376    # sys_lib_search_path_spec
21377    *-cygwin* | *-mingw*)
21378       case "$CXX" in
21379    clang* )
21380      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
21381      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
21382echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
21383      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21384	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21385	  -e 's|libext="lib"|libext="a"|' \
21386      libtool > conftest.bla
21387      ;;
21388    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21389      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
21390echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
21391      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21392	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21393	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21394	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21395	  -e 's%lib /OUT:%lib -OUT:%' \
21396	  -e "s%cygpath -w%$CYGPATH_W%" \
21397	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
21398	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
21399	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
21400	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
21401	  -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
21402      libtool > conftest.bla
21403      ;;
21404    *)
21405      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
21406echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
21407      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21408	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21409	  -e 's|libext="lib"|libext="a"|' \
21410      libtool > conftest.bla
21411      ;;
21412  esac
21413  mv conftest.bla libtool
21414  chmod 755 libtool
21415
21416      ;;
21417    *x86_64-*)
21418      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
21419        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
21420echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
21421        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
21422        mv conftest.bla libtool
21423        chmod 755 libtool
21424      fi
21425      ;;
21426
21427    *-solaris*)
21428       if test "$GCC" = yes && \
21429     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
21430    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
21431    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
21432      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
21433echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
21434      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
21435      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
21436      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
21437	# AC_MSG_NOTICE(Compensating for broken gcc)
21438	for lib in $fixlibtmp ; do
21439	  if test -d "${lib}${hdwisa}" ; then
21440	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
21441	  fi
21442	done
21443	syslibpath64="${syslibpath64} ${fixlibtmp}"
21444      else
21445	syslibpath64="$fixlibtmp"
21446      fi
21447      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
21448      mv conftest.bla libtool
21449      chmod 755 libtool
21450    fi
21451    # AC_MSG_NOTICE(Result is )
21452    # $EGREP 'sys_lib_search_path_spec=' libtool
21453  fi
21454      ;;
21455    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
21456    *-darwin*)
21457      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
21458echo "$as_me: Applying patches to libtool for Darwin" >&6;}
21459      sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \
21460        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
21461      libtool > conftest.bla
21462
21463      mv conftest.bla libtool
21464      chmod 755 libtool
21465      ;;
21466  esac
21467# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
21468# the macro. -- lh, 061214 --
21469# fi
21470
21471# AC_MSG_NOTICE([End libtool initialisation.])
21472
21473# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
21474  # set RPATH_FLAGS to the compiler link flags required to hardcode location
21475  # of the shared objects
21476  RPATH_FLAGS=
21477
21478if test $enable_shared = yes; then
21479  case $build in
21480    *-linux-*)
21481      if test "$GXX" = "yes"; then
21482        RPATH_FLAGS=
21483        for dir in $abs_lib_dir; do
21484          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
21485        done
21486      fi ;;
21487    *-darwin*)
21488        RPATH_FLAGS=nothing ;;
21489    *-ibm-*)
21490      case "$CXX" in
21491      xlC* | */xlC* | mpxlC* | */mpxlC*)
21492        RPATH_FLAGS=nothing ;;
21493      esac ;;
21494    *-hp-*)
21495        RPATH_FLAGS=nothing ;;
21496    *-mingw32)
21497        RPATH_FLAGS=nothing ;;
21498    *-*-solaris*)
21499        RPATH_FLAGS=
21500        for dir in $abs_lib_dir; do
21501          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
21502        done
21503  esac
21504
21505  if test "$RPATH_FLAGS" = ""; then
21506    { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5
21507echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;}
21508  fi
21509  if test "$RPATH_FLAGS" = "nothing"; then
21510    RPATH_FLAGS=
21511  fi
21512fi
21513
21514
21515
21516
21517else
21518
21519  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
21520echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
21521  # get all missing information from the config.log file
21522
21523  # output variables and defines
21524  as_save_IFS=$IFS
21525  IFS='
21526'
21527  for oneline in `cat $coin_config_dir/config.status`; do
21528    case "$oneline" in
21529         # First some automake conditionals
21530      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
21531      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
21532      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
21533      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
21534        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
21535#        echo "$command"
21536        eval "$command"
21537        ;;
21538      s,@DEFS@* )
21539        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
21540#        echo "$command"
21541        eval "$command"
21542        ;;
21543    esac
21544  done
21545  IFS=$as_save_IFS
21546
21547  # And some defines (assuming here that the packages base dir
21548  # doesn't have a config.h file
21549  for word in $defsline; do
21550#    echo word $word
21551    case $word in
21552      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
21553        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
21554#        echo dd $i
21555        echo $i >>confdefs.h
21556        ;;
21557    esac
21558  done
21559fi
21560
21561# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
21562
21563# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
21564if test "${enable_dependency_linking+set}" = set; then
21565  enableval="$enable_dependency_linking"
21566  dependency_linking="$enableval"
21567else
21568  dependency_linking=auto
21569fi;
21570
21571if test "$dependency_linking" = auto; then
21572  # On Cygwin and AIX, building DLLs doesn't work
21573  dependency_linking=no
21574  if test x"$coin_disable_shared" = xno; then
21575    case $build in
21576      *-cygwin* | *-mingw*)
21577        case "$CC" in
21578          clang* )
21579            dependency_linking=yes
21580            ;;
21581          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21582            dependency_linking=no
21583            ;;
21584          *gcc*)
21585            dependency_linking=yes
21586            ;;
21587          *)
21588            dependency_linking=yes
21589            ;;
21590        esac
21591        ;;
21592      *)
21593        dependency_linking=yes
21594        ;;
21595    esac
21596  fi
21597fi
21598
21599if test "$dependency_linking" = yes ;
21600then
21601  LT_LDFLAGS="-no-undefined"
21602else
21603  LT_LDFLAGS=
21604fi
21605
21606
21607
21608if test "$dependency_linking" = yes; then
21609  DEPENDENCY_LINKING_TRUE=
21610  DEPENDENCY_LINKING_FALSE='#'
21611else
21612  DEPENDENCY_LINKING_TRUE='#'
21613  DEPENDENCY_LINKING_FALSE=
21614fi
21615
21616
21617# Check if we want to set the library version
21618echo "$as_me:$LINENO: checking if library version is set" >&5
21619echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
21620if test x"$coin_libversion" != x; then
21621  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
21622  echo "$as_me:$LINENO: result: $coin_libversion" >&5
21623echo "${ECHO_T}$coin_libversion" >&6
21624else
21625  echo "$as_me:$LINENO: result: no" >&5
21626echo "${ECHO_T}no" >&6
21627fi
21628
21629
21630
21631#END
21632}
21633
21634                              ac_config_files="$ac_config_files Makefile coinblas.pc coinblas-uninstalled.pc"
21635
21636
21637
21638
21639
21640
21641echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
21642echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
21643coin_link_input_cmd="$LN_S"
21644case "$CC" in
21645  clang* ) ;;
21646  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21647    coin_link_input_cmd=cp ;;
21648esac
21649echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
21650echo "${ECHO_T}$coin_link_input_cmd" >&6
21651
21652
21653
21654if test x$coin_skip_ac_output != xyes; then
21655
21656  # library extension
21657
21658  case "$CC" in
21659    clang* )
21660         LIBEXT=a ;;
21661    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21662         LIBEXT=lib ;;
21663      *) LIBEXT=a ;;
21664  esac
21665
21666  # Define VPATH_DISTCLEANFILES to be everything that needs to be
21667  # cleaned for distclean in a vpath configuration
21668
21669  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
21670
21671  # Take out subdirectories if their configuration concluded that they
21672  # don't need to be compiled
21673  if test x"$coin_ac_skip_subdirs" != x; then
21674    new_subdirs=
21675    for i in $subdirs; do
21676      skipme=no
21677      for j in $coin_ac_skip_subdirs; do
21678        if test $i = $j; then
21679          skipme=yes;
21680        fi
21681      done
21682      if test $skipme = no; then
21683        new_subdirs="$new_subdirs $i"
21684      fi
21685    done
21686    subdirs="$new_subdirs"
21687  fi
21688
21689  # need to come before AC_OUTPUT
21690  if test x$coin_projectdir != xyes; then
21691    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
21692    echo $coin_subdirs > coin_subdirs.txt
21693  else
21694    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
21695    ABSBUILDDIR="`pwd`"
21696
21697  fi
21698
21699  cat >confcache <<\_ACEOF
21700# This file is a shell script that caches the results of configure
21701# tests run on this system so they can be shared between configure
21702# scripts and configure runs, see configure's option --config-cache.
21703# It is not useful on other systems.  If it contains results you don't
21704# want to keep, you may remove or edit it.
21705#
21706# config.status only pays attention to the cache file if you give it
21707# the --recheck option to rerun configure.
21708#
21709# `ac_cv_env_foo' variables (set or unset) will be overridden when
21710# loading this file, other *unset* `ac_cv_foo' will be assigned the
21711# following values.
21712
21713_ACEOF
21714
21715# The following way of writing the cache mishandles newlines in values,
21716# but we know of no workaround that is simple, portable, and efficient.
21717# So, don't put newlines in cache variables' values.
21718# Ultrix sh set writes to stderr and can't be redirected directly,
21719# and sets the high bit in the cache file unless we assign to the vars.
21720{
21721  (set) 2>&1 |
21722    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21723    *ac_space=\ *)
21724      # `set' does not quote correctly, so add quotes (double-quote
21725      # substitution turns \\\\ into \\, and sed turns \\ into \).
21726      sed -n \
21727	"s/'/'\\\\''/g;
21728	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21729      ;;
21730    *)
21731      # `set' quotes correctly as required by POSIX, so do not add quotes.
21732      sed -n \
21733	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21734      ;;
21735    esac;
21736} |
21737  sed '
21738     t clear
21739     : clear
21740     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21741     t end
21742     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21743     : end' >>confcache
21744if diff $cache_file confcache >/dev/null 2>&1; then :; else
21745  if test -w $cache_file; then
21746    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21747    cat confcache >$cache_file
21748  else
21749    echo "not updating unwritable cache $cache_file"
21750  fi
21751fi
21752rm -f confcache
21753
21754test "x$prefix" = xNONE && prefix=$ac_default_prefix
21755# Let make expand exec_prefix.
21756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21757
21758# VPATH may cause trouble with some makes, so we remove $(srcdir),
21759# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21760# trailing colons and then remove the whole line if VPATH becomes empty
21761# (actually we leave an empty line to preserve line numbers).
21762if test "x$srcdir" = x.; then
21763  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21764s/:*\$(srcdir):*/:/;
21765s/:*\${srcdir}:*/:/;
21766s/:*@srcdir@:*/:/;
21767s/^\([^=]*=[	 ]*\):*/\1/;
21768s/:*$//;
21769s/^[^=]*=[	 ]*$//;
21770}'
21771fi
21772
21773# Transform confdefs.h into DEFS.
21774# Protect against shell expansion while executing Makefile rules.
21775# Protect against Makefile macro expansion.
21776#
21777# If the first sed substitution is executed (which looks for macros that
21778# take arguments), then we branch to the quote section.  Otherwise,
21779# look for a macro that doesn't take arguments.
21780cat >confdef2opt.sed <<\_ACEOF
21781t clear
21782: clear
21783s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
21784t quote
21785s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
21786t quote
21787d
21788: quote
21789s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
21790s,\[,\\&,g
21791s,\],\\&,g
21792s,\$,$$,g
21793p
21794_ACEOF
21795# We use echo to avoid assuming a particular line-breaking character.
21796# The extra dot is to prevent the shell from consuming trailing
21797# line-breaks from the sub-command output.  A line-break within
21798# single-quotes doesn't work because, if this script is created in a
21799# platform that uses two characters for line-breaks (e.g., DOS), tr
21800# would break.
21801ac_LF_and_DOT=`echo; echo .`
21802DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21803rm -f confdef2opt.sed
21804
21805
21806ac_libobjs=
21807ac_ltlibobjs=
21808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21809  # 1. Remove the extension, and $U if already installed.
21810  ac_i=`echo "$ac_i" |
21811	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21812  # 2. Add them.
21813  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21814  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21815done
21816LIBOBJS=$ac_libobjs
21817
21818LTLIBOBJS=$ac_ltlibobjs
21819
21820
21821if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
21822  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
21823Usually this means the macro was only invoked conditionally." >&5
21824echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
21825Usually this means the macro was only invoked conditionally." >&2;}
21826   { (exit 1); exit 1; }; }
21827fi
21828if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
21829  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
21830Usually this means the macro was only invoked conditionally." >&5
21831echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
21832Usually this means the macro was only invoked conditionally." >&2;}
21833   { (exit 1); exit 1; }; }
21834fi
21835if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
21836  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
21837Usually this means the macro was only invoked conditionally." >&5
21838echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
21839Usually this means the macro was only invoked conditionally." >&2;}
21840   { (exit 1); exit 1; }; }
21841fi
21842if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21843  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21844Usually this means the macro was only invoked conditionally." >&5
21845echo "$as_me: error: conditional \"AMDEP\" was never defined.
21846Usually this means the macro was only invoked conditionally." >&2;}
21847   { (exit 1); exit 1; }; }
21848fi
21849if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21850  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21851Usually this means the macro was only invoked conditionally." >&5
21852echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21853Usually this means the macro was only invoked conditionally." >&2;}
21854   { (exit 1); exit 1; }; }
21855fi
21856if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21857  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21858Usually this means the macro was only invoked conditionally." >&5
21859echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21860Usually this means the macro was only invoked conditionally." >&2;}
21861   { (exit 1); exit 1; }; }
21862fi
21863if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
21864  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
21865Usually this means the macro was only invoked conditionally." >&5
21866echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
21867Usually this means the macro was only invoked conditionally." >&2;}
21868   { (exit 1); exit 1; }; }
21869fi
21870if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21871  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21872Usually this means the macro was only invoked conditionally." >&5
21873echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21874Usually this means the macro was only invoked conditionally." >&2;}
21875   { (exit 1); exit 1; }; }
21876fi
21877if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
21878  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21879Usually this means the macro was only invoked conditionally." >&5
21880echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21881Usually this means the macro was only invoked conditionally." >&2;}
21882   { (exit 1); exit 1; }; }
21883fi
21884
21885: ${CONFIG_STATUS=./config.status}
21886ac_clean_files_save=$ac_clean_files
21887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21888{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21889echo "$as_me: creating $CONFIG_STATUS" >&6;}
21890cat >$CONFIG_STATUS <<_ACEOF
21891#! $SHELL
21892# Generated by $as_me.
21893# Run this file to recreate the current configuration.
21894# Compiler output produced by configure, useful for debugging
21895# configure, is in config.log if it exists.
21896
21897debug=false
21898ac_cs_recheck=false
21899ac_cs_silent=false
21900SHELL=\${CONFIG_SHELL-$SHELL}
21901_ACEOF
21902
21903cat >>$CONFIG_STATUS <<\_ACEOF
21904## --------------------- ##
21905## M4sh Initialization.  ##
21906## --------------------- ##
21907
21908# Be Bourne compatible
21909if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21910  emulate sh
21911  NULLCMD=:
21912  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21913  # is contrary to our usage.  Disable this feature.
21914  alias -g '${1+"$@"}'='"$@"'
21915elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21916  set -o posix
21917fi
21918DUALCASE=1; export DUALCASE # for MKS sh
21919
21920# Support unset when possible.
21921if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21922  as_unset=unset
21923else
21924  as_unset=false
21925fi
21926
21927
21928# Work around bugs in pre-3.0 UWIN ksh.
21929$as_unset ENV MAIL MAILPATH
21930PS1='$ '
21931PS2='> '
21932PS4='+ '
21933
21934# NLS nuisances.
21935for as_var in \
21936  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21937  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21938  LC_TELEPHONE LC_TIME
21939do
21940  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21941    eval $as_var=C; export $as_var
21942  else
21943    $as_unset $as_var
21944  fi
21945done
21946
21947# Required to use basename.
21948if expr a : '\(a\)' >/dev/null 2>&1; then
21949  as_expr=expr
21950else
21951  as_expr=false
21952fi
21953
21954if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21955  as_basename=basename
21956else
21957  as_basename=false
21958fi
21959
21960
21961# Name of the executable.
21962as_me=`$as_basename "$0" ||
21963$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21964	 X"$0" : 'X\(//\)$' \| \
21965	 X"$0" : 'X\(/\)$' \| \
21966	 .     : '\(.\)' 2>/dev/null ||
21967echo X/"$0" |
21968    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21969  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21970  	  /^X\/\(\/\).*/{ s//\1/; q; }
21971  	  s/.*/./; q'`
21972
21973
21974# PATH needs CR, and LINENO needs CR and PATH.
21975# Avoid depending upon Character Ranges.
21976as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21977as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21978as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21979as_cr_digits='0123456789'
21980as_cr_alnum=$as_cr_Letters$as_cr_digits
21981
21982# The user is always right.
21983if test "${PATH_SEPARATOR+set}" != set; then
21984  echo "#! /bin/sh" >conf$$.sh
21985  echo  "exit 0"   >>conf$$.sh
21986  chmod +x conf$$.sh
21987  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21988    PATH_SEPARATOR=';'
21989  else
21990    PATH_SEPARATOR=:
21991  fi
21992  rm -f conf$$.sh
21993fi
21994
21995
21996  as_lineno_1=$LINENO
21997  as_lineno_2=$LINENO
21998  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21999  test "x$as_lineno_1" != "x$as_lineno_2" &&
22000  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22001  # Find who we are.  Look in the path if we contain no path at all
22002  # relative or not.
22003  case $0 in
22004    *[\\/]* ) as_myself=$0 ;;
22005    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22006for as_dir in $PATH
22007do
22008  IFS=$as_save_IFS
22009  test -z "$as_dir" && as_dir=.
22010  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22011done
22012
22013       ;;
22014  esac
22015  # We did not find ourselves, most probably we were run as `sh COMMAND'
22016  # in which case we are not to be found in the path.
22017  if test "x$as_myself" = x; then
22018    as_myself=$0
22019  fi
22020  if test ! -f "$as_myself"; then
22021    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22022echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22023   { (exit 1); exit 1; }; }
22024  fi
22025  case $CONFIG_SHELL in
22026  '')
22027    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22028for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22029do
22030  IFS=$as_save_IFS
22031  test -z "$as_dir" && as_dir=.
22032  for as_base in sh bash ksh sh5; do
22033	 case $as_dir in
22034	 /*)
22035	   if ("$as_dir/$as_base" -c '
22036  as_lineno_1=$LINENO
22037  as_lineno_2=$LINENO
22038  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22039  test "x$as_lineno_1" != "x$as_lineno_2" &&
22040  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22041	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22042	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22043	     CONFIG_SHELL=$as_dir/$as_base
22044	     export CONFIG_SHELL
22045	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22046	   fi;;
22047	 esac
22048       done
22049done
22050;;
22051  esac
22052
22053  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22054  # uniformly replaced by the line number.  The first 'sed' inserts a
22055  # line-number line before each line; the second 'sed' does the real
22056  # work.  The second script uses 'N' to pair each line-number line
22057  # with the numbered line, and appends trailing '-' during
22058  # substitution so that $LINENO is not a special case at line end.
22059  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22060  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22061  sed '=' <$as_myself |
22062    sed '
22063      N
22064      s,$,-,
22065      : loop
22066      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22067      t loop
22068      s,-$,,
22069      s,^['$as_cr_digits']*\n,,
22070    ' >$as_me.lineno &&
22071  chmod +x $as_me.lineno ||
22072    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22073echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22074   { (exit 1); exit 1; }; }
22075
22076  # Don't try to exec as it changes $[0], causing all sort of problems
22077  # (the dirname of $[0] is not the place where we might find the
22078  # original and so on.  Autoconf is especially sensible to this).
22079  . ./$as_me.lineno
22080  # Exit status is that of the last command.
22081  exit
22082}
22083
22084
22085case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22086  *c*,-n*) ECHO_N= ECHO_C='
22087' ECHO_T='	' ;;
22088  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22089  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22090esac
22091
22092if expr a : '\(a\)' >/dev/null 2>&1; then
22093  as_expr=expr
22094else
22095  as_expr=false
22096fi
22097
22098rm -f conf$$ conf$$.exe conf$$.file
22099echo >conf$$.file
22100if ln -s conf$$.file conf$$ 2>/dev/null; then
22101  # We could just check for DJGPP; but this test a) works b) is more generic
22102  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22103  if test -f conf$$.exe; then
22104    # Don't use ln at all; we don't have any links
22105    as_ln_s='cp -p'
22106  else
22107    as_ln_s='ln -s'
22108  fi
22109elif ln conf$$.file conf$$ 2>/dev/null; then
22110  as_ln_s=ln
22111else
22112  as_ln_s='cp -p'
22113fi
22114rm -f conf$$ conf$$.exe conf$$.file
22115
22116if mkdir -p . 2>/dev/null; then
22117  as_mkdir_p=:
22118else
22119  test -d ./-p && rmdir ./-p
22120  as_mkdir_p=false
22121fi
22122
22123as_executable_p="test -f"
22124
22125# Sed expression to map a string onto a valid CPP name.
22126as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22127
22128# Sed expression to map a string onto a valid variable name.
22129as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22130
22131
22132# IFS
22133# We need space, tab and new line, in precisely that order.
22134as_nl='
22135'
22136IFS=" 	$as_nl"
22137
22138# CDPATH.
22139$as_unset CDPATH
22140
22141exec 6>&1
22142
22143# Open the log real soon, to keep \$[0] and so on meaningful, and to
22144# report actual input values of CONFIG_FILES etc. instead of their
22145# values after options handling.  Logging --version etc. is OK.
22146exec 5>>config.log
22147{
22148  echo
22149  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22150## Running $as_me. ##
22151_ASBOX
22152} >&5
22153cat >&5 <<_CSEOF
22154
22155This file was extended by ThirdPartyBlas $as_me 1.4.7, which was
22156generated by GNU Autoconf 2.59.  Invocation command line was
22157
22158  CONFIG_FILES    = $CONFIG_FILES
22159  CONFIG_HEADERS  = $CONFIG_HEADERS
22160  CONFIG_LINKS    = $CONFIG_LINKS
22161  CONFIG_COMMANDS = $CONFIG_COMMANDS
22162  $ $0 $@
22163
22164_CSEOF
22165echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22166echo >&5
22167_ACEOF
22168
22169# Files that config.status was made for.
22170if test -n "$ac_config_files"; then
22171  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22172fi
22173
22174if test -n "$ac_config_headers"; then
22175  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22176fi
22177
22178if test -n "$ac_config_links"; then
22179  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22180fi
22181
22182if test -n "$ac_config_commands"; then
22183  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22184fi
22185
22186cat >>$CONFIG_STATUS <<\_ACEOF
22187
22188ac_cs_usage="\
22189\`$as_me' instantiates files from templates according to the
22190current configuration.
22191
22192Usage: $0 [OPTIONS] [FILE]...
22193
22194  -h, --help       print this help, then exit
22195  -V, --version    print version number, then exit
22196  -q, --quiet      do not print progress messages
22197  -d, --debug      don't remove temporary files
22198      --recheck    update $as_me by reconfiguring in the same conditions
22199  --file=FILE[:TEMPLATE]
22200		   instantiate the configuration file FILE
22201
22202Configuration files:
22203$config_files
22204
22205Configuration commands:
22206$config_commands
22207
22208Report bugs to <bug-autoconf@gnu.org>."
22209_ACEOF
22210
22211cat >>$CONFIG_STATUS <<_ACEOF
22212ac_cs_version="\\
22213ThirdPartyBlas config.status 1.4.7
22214configured by $0, generated by GNU Autoconf 2.59,
22215  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22216
22217Copyright (C) 2003 Free Software Foundation, Inc.
22218This config.status script is free software; the Free Software Foundation
22219gives unlimited permission to copy, distribute and modify it."
22220srcdir=$srcdir
22221INSTALL="$INSTALL"
22222_ACEOF
22223
22224cat >>$CONFIG_STATUS <<\_ACEOF
22225# If no file are specified by the user, then we need to provide default
22226# value.  By we need to know if files were specified by the user.
22227ac_need_defaults=:
22228while test $# != 0
22229do
22230  case $1 in
22231  --*=*)
22232    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22233    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22234    ac_shift=:
22235    ;;
22236  -*)
22237    ac_option=$1
22238    ac_optarg=$2
22239    ac_shift=shift
22240    ;;
22241  *) # This is not an option, so the user has probably given explicit
22242     # arguments.
22243     ac_option=$1
22244     ac_need_defaults=false;;
22245  esac
22246
22247  case $ac_option in
22248  # Handling of the options.
22249_ACEOF
22250cat >>$CONFIG_STATUS <<\_ACEOF
22251  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22252    ac_cs_recheck=: ;;
22253  --version | --vers* | -V )
22254    echo "$ac_cs_version"; exit 0 ;;
22255  --he | --h)
22256    # Conflict between --help and --header
22257    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22258Try \`$0 --help' for more information." >&5
22259echo "$as_me: error: ambiguous option: $1
22260Try \`$0 --help' for more information." >&2;}
22261   { (exit 1); exit 1; }; };;
22262  --help | --hel | -h )
22263    echo "$ac_cs_usage"; exit 0 ;;
22264  --debug | --d* | -d )
22265    debug=: ;;
22266  --file | --fil | --fi | --f )
22267    $ac_shift
22268    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22269    ac_need_defaults=false;;
22270  --header | --heade | --head | --hea )
22271    $ac_shift
22272    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22273    ac_need_defaults=false;;
22274  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22275  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22276    ac_cs_silent=: ;;
22277
22278  # This is an error.
22279  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22280Try \`$0 --help' for more information." >&5
22281echo "$as_me: error: unrecognized option: $1
22282Try \`$0 --help' for more information." >&2;}
22283   { (exit 1); exit 1; }; } ;;
22284
22285  *) ac_config_targets="$ac_config_targets $1" ;;
22286
22287  esac
22288  shift
22289done
22290
22291ac_configure_extra_args=
22292
22293if $ac_cs_silent; then
22294  exec 6>/dev/null
22295  ac_configure_extra_args="$ac_configure_extra_args --silent"
22296fi
22297
22298_ACEOF
22299cat >>$CONFIG_STATUS <<_ACEOF
22300if \$ac_cs_recheck; then
22301  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22302  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22303fi
22304
22305_ACEOF
22306
22307cat >>$CONFIG_STATUS <<_ACEOF
22308#
22309# INIT-COMMANDS section.
22310#
22311
22312AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22313
22314_ACEOF
22315
22316
22317
22318cat >>$CONFIG_STATUS <<\_ACEOF
22319for ac_config_target in $ac_config_targets
22320do
22321  case "$ac_config_target" in
22322  # Handling of arguments.
22323  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22324  "coinblas.pc" ) CONFIG_FILES="$CONFIG_FILES coinblas.pc" ;;
22325  "coinblas-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinblas-uninstalled.pc" ;;
22326  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22327  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22328echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22329   { (exit 1); exit 1; }; };;
22330  esac
22331done
22332
22333# If the user did not use the arguments to specify the items to instantiate,
22334# then the envvar interface is used.  Set only those that are not.
22335# We use the long form for the default assignment because of an extremely
22336# bizarre bug on SunOS 4.1.3.
22337if $ac_need_defaults; then
22338  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22339  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22340fi
22341
22342# Have a temporary directory for convenience.  Make it in the build tree
22343# simply because there is no reason to put it here, and in addition,
22344# creating and moving files from /tmp can sometimes cause problems.
22345# Create a temporary directory, and hook for its removal unless debugging.
22346$debug ||
22347{
22348  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22349  trap '{ (exit 1); exit 1; }' 1 2 13 15
22350}
22351
22352# Create a (secure) tmp directory for tmp files.
22353
22354{
22355  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22356  test -n "$tmp" && test -d "$tmp"
22357}  ||
22358{
22359  tmp=./confstat$$-$RANDOM
22360  (umask 077 && mkdir $tmp)
22361} ||
22362{
22363   echo "$me: cannot create a temporary directory in ." >&2
22364   { (exit 1); exit 1; }
22365}
22366
22367_ACEOF
22368
22369cat >>$CONFIG_STATUS <<_ACEOF
22370
22371#
22372# CONFIG_FILES section.
22373#
22374
22375# No need to generate the scripts if there are no CONFIG_FILES.
22376# This happens for instance when ./config.status config.h
22377if test -n "\$CONFIG_FILES"; then
22378  # Protect against being on the right side of a sed subst in config.status.
22379  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22380   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22381s,@SHELL@,$SHELL,;t t
22382s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22383s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22384s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22385s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22386s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22387s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22388s,@exec_prefix@,$exec_prefix,;t t
22389s,@prefix@,$prefix,;t t
22390s,@program_transform_name@,$program_transform_name,;t t
22391s,@bindir@,$bindir,;t t
22392s,@sbindir@,$sbindir,;t t
22393s,@libexecdir@,$libexecdir,;t t
22394s,@datadir@,$datadir,;t t
22395s,@sysconfdir@,$sysconfdir,;t t
22396s,@sharedstatedir@,$sharedstatedir,;t t
22397s,@localstatedir@,$localstatedir,;t t
22398s,@libdir@,$libdir,;t t
22399s,@includedir@,$includedir,;t t
22400s,@oldincludedir@,$oldincludedir,;t t
22401s,@infodir@,$infodir,;t t
22402s,@mandir@,$mandir,;t t
22403s,@build_alias@,$build_alias,;t t
22404s,@host_alias@,$host_alias,;t t
22405s,@target_alias@,$target_alias,;t t
22406s,@DEFS@,$DEFS,;t t
22407s,@ECHO_C@,$ECHO_C,;t t
22408s,@ECHO_N@,$ECHO_N,;t t
22409s,@ECHO_T@,$ECHO_T,;t t
22410s,@LIBS@,$LIBS,;t t
22411s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
22412s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
22413s,@have_svnversion@,$have_svnversion,;t t
22414s,@BLAS_SVN_REV@,$BLAS_SVN_REV,;t t
22415s,@build@,$build,;t t
22416s,@build_cpu@,$build_cpu,;t t
22417s,@build_vendor@,$build_vendor,;t t
22418s,@build_os@,$build_os,;t t
22419s,@CDEFS@,$CDEFS,;t t
22420s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22421s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22422s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22423s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22424s,@CC@,$CC,;t t
22425s,@CFLAGS@,$CFLAGS,;t t
22426s,@LDFLAGS@,$LDFLAGS,;t t
22427s,@CPPFLAGS@,$CPPFLAGS,;t t
22428s,@ac_ct_CC@,$ac_ct_CC,;t t
22429s,@EXEEXT@,$EXEEXT,;t t
22430s,@OBJEXT@,$OBJEXT,;t t
22431s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22432s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22433s,@MPICC@,$MPICC,;t t
22434s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22435s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22436s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22437s,@F77@,$F77,;t t
22438s,@ac_ct_F77@,$ac_ct_F77,;t t
22439s,@FFLAGS@,$FFLAGS,;t t
22440s,@MPIF77@,$MPIF77,;t t
22441s,@FLIBS@,$FLIBS,;t t
22442s,@BLAS_PCLIBS@,$BLAS_PCLIBS,;t t
22443s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22444s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
22445s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
22446s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
22447s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
22448s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
22449s,@EGREP@,$EGREP,;t t
22450s,@LN_S@,$LN_S,;t t
22451s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22452s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22453s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22454s,@CYGPATH_W@,$CYGPATH_W,;t t
22455s,@PACKAGE@,$PACKAGE,;t t
22456s,@VERSION@,$VERSION,;t t
22457s,@ACLOCAL@,$ACLOCAL,;t t
22458s,@AUTOCONF@,$AUTOCONF,;t t
22459s,@AUTOMAKE@,$AUTOMAKE,;t t
22460s,@AUTOHEADER@,$AUTOHEADER,;t t
22461s,@MAKEINFO@,$MAKEINFO,;t t
22462s,@install_sh@,$install_sh,;t t
22463s,@STRIP@,$STRIP,;t t
22464s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22465s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22466s,@mkdir_p@,$mkdir_p,;t t
22467s,@AWK@,$AWK,;t t
22468s,@SET_MAKE@,$SET_MAKE,;t t
22469s,@am__leading_dot@,$am__leading_dot,;t t
22470s,@AMTAR@,$AMTAR,;t t
22471s,@am__tar@,$am__tar,;t t
22472s,@am__untar@,$am__untar,;t t
22473s,@DEPDIR@,$DEPDIR,;t t
22474s,@am__include@,$am__include,;t t
22475s,@am__quote@,$am__quote,;t t
22476s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22477s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22478s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22479s,@CCDEPMODE@,$CCDEPMODE,;t t
22480s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22481s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22482s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22483s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22484s,@MAINT@,$MAINT,;t t
22485s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22486s,@have_autoconf@,$have_autoconf,;t t
22487s,@have_automake@,$have_automake,;t t
22488s,@have_svn@,$have_svn,;t t
22489s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22490s,@AUX_DIR@,$AUX_DIR,;t t
22491s,@abs_source_dir@,$abs_source_dir,;t t
22492s,@abs_lib_dir@,$abs_lib_dir,;t t
22493s,@abs_include_dir@,$abs_include_dir,;t t
22494s,@abs_bin_dir@,$abs_bin_dir,;t t
22495s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22496s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22497s,@host@,$host,;t t
22498s,@host_cpu@,$host_cpu,;t t
22499s,@host_vendor@,$host_vendor,;t t
22500s,@host_os@,$host_os,;t t
22501s,@ECHO@,$ECHO,;t t
22502s,@AR@,$AR,;t t
22503s,@ac_ct_AR@,$ac_ct_AR,;t t
22504s,@RANLIB@,$RANLIB,;t t
22505s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22506s,@CPP@,$CPP,;t t
22507s,@CXX@,$CXX,;t t
22508s,@CXXFLAGS@,$CXXFLAGS,;t t
22509s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22510s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22511s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22512s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22513s,@CXXCPP@,$CXXCPP,;t t
22514s,@LIBTOOL@,$LIBTOOL,;t t
22515s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22516s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22517s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22518s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22519s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22520s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22521s,@LIBEXT@,$LIBEXT,;t t
22522s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22523s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22524s,@LIBOBJS@,$LIBOBJS,;t t
22525s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22526CEOF
22527
22528_ACEOF
22529
22530  cat >>$CONFIG_STATUS <<\_ACEOF
22531  # Split the substitutions into bite-sized pieces for seds with
22532  # small command number limits, like on Digital OSF/1 and HP-UX.
22533  ac_max_sed_lines=48
22534  ac_sed_frag=1 # Number of current file.
22535  ac_beg=1 # First line for current file.
22536  ac_end=$ac_max_sed_lines # Line after last line for current file.
22537  ac_more_lines=:
22538  ac_sed_cmds=
22539  while $ac_more_lines; do
22540    if test $ac_beg -gt 1; then
22541      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22542    else
22543      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22544    fi
22545    if test ! -s $tmp/subs.frag; then
22546      ac_more_lines=false
22547    else
22548      # The purpose of the label and of the branching condition is to
22549      # speed up the sed processing (if there are no `@' at all, there
22550      # is no need to browse any of the substitutions).
22551      # These are the two extra sed commands mentioned above.
22552      (echo ':t
22553  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22554      if test -z "$ac_sed_cmds"; then
22555	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22556      else
22557	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22558      fi
22559      ac_sed_frag=`expr $ac_sed_frag + 1`
22560      ac_beg=$ac_end
22561      ac_end=`expr $ac_end + $ac_max_sed_lines`
22562    fi
22563  done
22564  if test -z "$ac_sed_cmds"; then
22565    ac_sed_cmds=cat
22566  fi
22567fi # test -n "$CONFIG_FILES"
22568
22569_ACEOF
22570cat >>$CONFIG_STATUS <<\_ACEOF
22571for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22572  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22573  case $ac_file in
22574  - | *:- | *:-:* ) # input from stdin
22575	cat >$tmp/stdin
22576	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22577	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22578  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22579	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22580  * )   ac_file_in=$ac_file.in ;;
22581  esac
22582
22583  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22584  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22585$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22586	 X"$ac_file" : 'X\(//\)[^/]' \| \
22587	 X"$ac_file" : 'X\(//\)$' \| \
22588	 X"$ac_file" : 'X\(/\)' \| \
22589	 .     : '\(.\)' 2>/dev/null ||
22590echo X"$ac_file" |
22591    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22592  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22593  	  /^X\(\/\/\)$/{ s//\1/; q; }
22594  	  /^X\(\/\).*/{ s//\1/; q; }
22595  	  s/.*/./; q'`
22596  { if $as_mkdir_p; then
22597    mkdir -p "$ac_dir"
22598  else
22599    as_dir="$ac_dir"
22600    as_dirs=
22601    while test ! -d "$as_dir"; do
22602      as_dirs="$as_dir $as_dirs"
22603      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22605	 X"$as_dir" : 'X\(//\)[^/]' \| \
22606	 X"$as_dir" : 'X\(//\)$' \| \
22607	 X"$as_dir" : 'X\(/\)' \| \
22608	 .     : '\(.\)' 2>/dev/null ||
22609echo X"$as_dir" |
22610    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22611  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22612  	  /^X\(\/\/\)$/{ s//\1/; q; }
22613  	  /^X\(\/\).*/{ s//\1/; q; }
22614  	  s/.*/./; q'`
22615    done
22616    test ! -n "$as_dirs" || mkdir $as_dirs
22617  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22618echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22619   { (exit 1); exit 1; }; }; }
22620
22621  ac_builddir=.
22622
22623if test "$ac_dir" != .; then
22624  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22625  # A "../" for each directory in $ac_dir_suffix.
22626  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22627else
22628  ac_dir_suffix= ac_top_builddir=
22629fi
22630
22631case $srcdir in
22632  .)  # No --srcdir option.  We are building in place.
22633    ac_srcdir=.
22634    if test -z "$ac_top_builddir"; then
22635       ac_top_srcdir=.
22636    else
22637       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22638    fi ;;
22639  [\\/]* | ?:[\\/]* )  # Absolute path.
22640    ac_srcdir=$srcdir$ac_dir_suffix;
22641    ac_top_srcdir=$srcdir ;;
22642  *) # Relative path.
22643    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22644    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22645esac
22646
22647# Do not use `cd foo && pwd` to compute absolute paths, because
22648# the directories may not exist.
22649case `pwd` in
22650.) ac_abs_builddir="$ac_dir";;
22651*)
22652  case "$ac_dir" in
22653  .) ac_abs_builddir=`pwd`;;
22654  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22655  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22656  esac;;
22657esac
22658case $ac_abs_builddir in
22659.) ac_abs_top_builddir=${ac_top_builddir}.;;
22660*)
22661  case ${ac_top_builddir}. in
22662  .) ac_abs_top_builddir=$ac_abs_builddir;;
22663  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22664  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22665  esac;;
22666esac
22667case $ac_abs_builddir in
22668.) ac_abs_srcdir=$ac_srcdir;;
22669*)
22670  case $ac_srcdir in
22671  .) ac_abs_srcdir=$ac_abs_builddir;;
22672  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22673  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22674  esac;;
22675esac
22676case $ac_abs_builddir in
22677.) ac_abs_top_srcdir=$ac_top_srcdir;;
22678*)
22679  case $ac_top_srcdir in
22680  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22681  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22682  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22683  esac;;
22684esac
22685
22686
22687  case $INSTALL in
22688  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22689  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22690  esac
22691
22692  if test x"$ac_file" != x-; then
22693    { echo "$as_me:$LINENO: creating $ac_file" >&5
22694echo "$as_me: creating $ac_file" >&6;}
22695    rm -f "$ac_file"
22696  fi
22697  # Let's still pretend it is `configure' which instantiates (i.e., don't
22698  # use $as_me), people would be surprised to read:
22699  #    /* config.h.  Generated by config.status.  */
22700  if test x"$ac_file" = x-; then
22701    configure_input=
22702  else
22703    configure_input="$ac_file.  "
22704  fi
22705  configure_input=$configure_input"Generated from `echo $ac_file_in |
22706				     sed 's,.*/,,'` by configure."
22707
22708  # First look for the input files in the build tree, otherwise in the
22709  # src tree.
22710  ac_file_inputs=`IFS=:
22711    for f in $ac_file_in; do
22712      case $f in
22713      -) echo $tmp/stdin ;;
22714      [\\/$]*)
22715	 # Absolute (can't be DOS-style, as IFS=:)
22716	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22717echo "$as_me: error: cannot find input file: $f" >&2;}
22718   { (exit 1); exit 1; }; }
22719	 echo "$f";;
22720      *) # Relative
22721	 if test -f "$f"; then
22722	   # Build tree
22723	   echo "$f"
22724	 elif test -f "$srcdir/$f"; then
22725	   # Source tree
22726	   echo "$srcdir/$f"
22727	 else
22728	   # /dev/null tree
22729	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22730echo "$as_me: error: cannot find input file: $f" >&2;}
22731   { (exit 1); exit 1; }; }
22732	 fi;;
22733      esac
22734    done` || { (exit 1); exit 1; }
22735_ACEOF
22736cat >>$CONFIG_STATUS <<_ACEOF
22737  sed "$ac_vpsub
22738$extrasub
22739_ACEOF
22740cat >>$CONFIG_STATUS <<\_ACEOF
22741:t
22742/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22743s,@configure_input@,$configure_input,;t t
22744s,@srcdir@,$ac_srcdir,;t t
22745s,@abs_srcdir@,$ac_abs_srcdir,;t t
22746s,@top_srcdir@,$ac_top_srcdir,;t t
22747s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22748s,@builddir@,$ac_builddir,;t t
22749s,@abs_builddir@,$ac_abs_builddir,;t t
22750s,@top_builddir@,$ac_top_builddir,;t t
22751s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22752s,@INSTALL@,$ac_INSTALL,;t t
22753" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22754  rm -f $tmp/stdin
22755  if test x"$ac_file" != x-; then
22756    mv $tmp/out $ac_file
22757  else
22758    cat $tmp/out
22759    rm -f $tmp/out
22760  fi
22761
22762done
22763_ACEOF
22764cat >>$CONFIG_STATUS <<\_ACEOF
22765
22766#
22767# CONFIG_COMMANDS section.
22768#
22769for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22770  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22771  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22772  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22773$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22774	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22775	 X"$ac_dest" : 'X\(//\)$' \| \
22776	 X"$ac_dest" : 'X\(/\)' \| \
22777	 .     : '\(.\)' 2>/dev/null ||
22778echo X"$ac_dest" |
22779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22780  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22781  	  /^X\(\/\/\)$/{ s//\1/; q; }
22782  	  /^X\(\/\).*/{ s//\1/; q; }
22783  	  s/.*/./; q'`
22784  { if $as_mkdir_p; then
22785    mkdir -p "$ac_dir"
22786  else
22787    as_dir="$ac_dir"
22788    as_dirs=
22789    while test ! -d "$as_dir"; do
22790      as_dirs="$as_dir $as_dirs"
22791      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22792$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793	 X"$as_dir" : 'X\(//\)[^/]' \| \
22794	 X"$as_dir" : 'X\(//\)$' \| \
22795	 X"$as_dir" : 'X\(/\)' \| \
22796	 .     : '\(.\)' 2>/dev/null ||
22797echo X"$as_dir" |
22798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22799  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22800  	  /^X\(\/\/\)$/{ s//\1/; q; }
22801  	  /^X\(\/\).*/{ s//\1/; q; }
22802  	  s/.*/./; q'`
22803    done
22804    test ! -n "$as_dirs" || mkdir $as_dirs
22805  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22806echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22807   { (exit 1); exit 1; }; }; }
22808
22809  ac_builddir=.
22810
22811if test "$ac_dir" != .; then
22812  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22813  # A "../" for each directory in $ac_dir_suffix.
22814  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22815else
22816  ac_dir_suffix= ac_top_builddir=
22817fi
22818
22819case $srcdir in
22820  .)  # No --srcdir option.  We are building in place.
22821    ac_srcdir=.
22822    if test -z "$ac_top_builddir"; then
22823       ac_top_srcdir=.
22824    else
22825       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22826    fi ;;
22827  [\\/]* | ?:[\\/]* )  # Absolute path.
22828    ac_srcdir=$srcdir$ac_dir_suffix;
22829    ac_top_srcdir=$srcdir ;;
22830  *) # Relative path.
22831    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22832    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22833esac
22834
22835# Do not use `cd foo && pwd` to compute absolute paths, because
22836# the directories may not exist.
22837case `pwd` in
22838.) ac_abs_builddir="$ac_dir";;
22839*)
22840  case "$ac_dir" in
22841  .) ac_abs_builddir=`pwd`;;
22842  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22843  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22844  esac;;
22845esac
22846case $ac_abs_builddir in
22847.) ac_abs_top_builddir=${ac_top_builddir}.;;
22848*)
22849  case ${ac_top_builddir}. in
22850  .) ac_abs_top_builddir=$ac_abs_builddir;;
22851  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22852  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22853  esac;;
22854esac
22855case $ac_abs_builddir in
22856.) ac_abs_srcdir=$ac_srcdir;;
22857*)
22858  case $ac_srcdir in
22859  .) ac_abs_srcdir=$ac_abs_builddir;;
22860  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22861  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22862  esac;;
22863esac
22864case $ac_abs_builddir in
22865.) ac_abs_top_srcdir=$ac_top_srcdir;;
22866*)
22867  case $ac_top_srcdir in
22868  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22869  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22870  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22871  esac;;
22872esac
22873
22874
22875  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22876echo "$as_me: executing $ac_dest commands" >&6;}
22877  case $ac_dest in
22878    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22879  # Strip MF so we end up with the name of the file.
22880  mf=`echo "$mf" | sed -e 's/:.*$//'`
22881  # Check whether this is an Automake generated Makefile or not.
22882  # We used to match only the files named `Makefile.in', but
22883  # some people rename them; so instead we look at the file content.
22884  # Grep'ing the first line is not enough: some people post-process
22885  # each Makefile.in and add a new line on top of each file to say so.
22886  # So let's grep whole file.
22887  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22888    dirpart=`(dirname "$mf") 2>/dev/null ||
22889$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22890	 X"$mf" : 'X\(//\)[^/]' \| \
22891	 X"$mf" : 'X\(//\)$' \| \
22892	 X"$mf" : 'X\(/\)' \| \
22893	 .     : '\(.\)' 2>/dev/null ||
22894echo X"$mf" |
22895    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22896  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22897  	  /^X\(\/\/\)$/{ s//\1/; q; }
22898  	  /^X\(\/\).*/{ s//\1/; q; }
22899  	  s/.*/./; q'`
22900  else
22901    continue
22902  fi
22903  # Extract the definition of DEPDIR, am__include, and am__quote
22904  # from the Makefile without running `make'.
22905  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22906  test -z "$DEPDIR" && continue
22907  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22908  test -z "am__include" && continue
22909  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22910  # When using ansi2knr, U may be empty or an underscore; expand it
22911  U=`sed -n 's/^U = //p' < "$mf"`
22912  # Find all dependency output files, they are included files with
22913  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22914  # simplest approach to changing $(DEPDIR) to its actual value in the
22915  # expansion.
22916  for file in `sed -n "
22917    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22918       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22919    # Make sure the directory exists.
22920    test -f "$dirpart/$file" && continue
22921    fdir=`(dirname "$file") 2>/dev/null ||
22922$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22923	 X"$file" : 'X\(//\)[^/]' \| \
22924	 X"$file" : 'X\(//\)$' \| \
22925	 X"$file" : 'X\(/\)' \| \
22926	 .     : '\(.\)' 2>/dev/null ||
22927echo X"$file" |
22928    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22929  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22930  	  /^X\(\/\/\)$/{ s//\1/; q; }
22931  	  /^X\(\/\).*/{ s//\1/; q; }
22932  	  s/.*/./; q'`
22933    { if $as_mkdir_p; then
22934    mkdir -p $dirpart/$fdir
22935  else
22936    as_dir=$dirpart/$fdir
22937    as_dirs=
22938    while test ! -d "$as_dir"; do
22939      as_dirs="$as_dir $as_dirs"
22940      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22942	 X"$as_dir" : 'X\(//\)[^/]' \| \
22943	 X"$as_dir" : 'X\(//\)$' \| \
22944	 X"$as_dir" : 'X\(/\)' \| \
22945	 .     : '\(.\)' 2>/dev/null ||
22946echo X"$as_dir" |
22947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22948  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22949  	  /^X\(\/\/\)$/{ s//\1/; q; }
22950  	  /^X\(\/\).*/{ s//\1/; q; }
22951  	  s/.*/./; q'`
22952    done
22953    test ! -n "$as_dirs" || mkdir $as_dirs
22954  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22955echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22956   { (exit 1); exit 1; }; }; }
22957
22958    # echo "creating $dirpart/$file"
22959    echo '# dummy' > "$dirpart/$file"
22960  done
22961done
22962 ;;
22963  esac
22964done
22965_ACEOF
22966
22967cat >>$CONFIG_STATUS <<\_ACEOF
22968
22969{ (exit 0); exit 0; }
22970_ACEOF
22971chmod +x $CONFIG_STATUS
22972ac_clean_files=$ac_clean_files_save
22973
22974
22975# configure is writing to config.log, and then calls config.status.
22976# config.status does its own redirection, appending to config.log.
22977# Unfortunately, on DOS this fails, as config.log is still kept open
22978# by configure, so config.status won't be able to write to it; its
22979# output is simply discarded.  So we exec the FD to /dev/null,
22980# effectively closing config.log, so it can be properly (re)opened and
22981# appended to by config.status.  When coming back to configure, we
22982# need to make the FD available again.
22983if test "$no_create" != yes; then
22984  ac_cs_success=:
22985  ac_config_status_args=
22986  test "$silent" = yes &&
22987    ac_config_status_args="$ac_config_status_args --quiet"
22988  exec 5>/dev/null
22989  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22990  exec 5>>config.log
22991  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22992  # would make configure fail if this is the last instruction.
22993  $ac_cs_success || { (exit 1); exit 1; }
22994fi
22995
22996
22997  if test x"$coin_vpath_link_files" = x; then : ; else
22998    lnkcmd="$coin_link_input_cmd"
22999    if test "$lnkcmd" = cp; then
23000      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23001echo "$as_me: Copying data files for VPATH configuration" >&6;}
23002    else
23003      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23004echo "$as_me: Creating VPATH links for data files" >&6;}
23005    fi
23006    for file in $coin_vpath_link_files; do
23007      dir=`(dirname "./$file") 2>/dev/null ||
23008$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23009	 X"./$file" : 'X\(//\)[^/]' \| \
23010	 X"./$file" : 'X\(//\)$' \| \
23011	 X"./$file" : 'X\(/\)' \| \
23012	 .     : '\(.\)' 2>/dev/null ||
23013echo X"./$file" |
23014    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23015  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23016  	  /^X\(\/\/\)$/{ s//\1/; q; }
23017  	  /^X\(\/\).*/{ s//\1/; q; }
23018  	  s/.*/./; q'`
23019      if test -d $dir; then : ; else
23020        { if $as_mkdir_p; then
23021    mkdir -p $dir
23022  else
23023    as_dir=$dir
23024    as_dirs=
23025    while test ! -d "$as_dir"; do
23026      as_dirs="$as_dir $as_dirs"
23027      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23029	 X"$as_dir" : 'X\(//\)[^/]' \| \
23030	 X"$as_dir" : 'X\(//\)$' \| \
23031	 X"$as_dir" : 'X\(/\)' \| \
23032	 .     : '\(.\)' 2>/dev/null ||
23033echo X"$as_dir" |
23034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23035  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23036  	  /^X\(\/\/\)$/{ s//\1/; q; }
23037  	  /^X\(\/\).*/{ s//\1/; q; }
23038  	  s/.*/./; q'`
23039    done
23040    test ! -n "$as_dirs" || mkdir $as_dirs
23041  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23042echo "$as_me: error: cannot create directory $dir" >&2;}
23043   { (exit 1); exit 1; }; }; }
23044
23045      fi
23046      rm -f $file
23047      $lnkcmd $abs_source_dir/$file $file
23048    done
23049  fi
23050
23051  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23052echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23053  if test x$coin_projectdir = xyes; then
23054    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23055echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23056  else
23057    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23058echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23059  fi
23060else
23061  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23062echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23063fi
23064
23065
23066