1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 1.17.3.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77	 X"$0" : 'X\(//\)$' \| \
78	 X"$0" : 'X\(/\)$' \| \
79	 .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
83  	  /^X\/\(\/\).*/{ s//\1/; q; }
84  	  s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145	 case $as_dir in
146	 /*)
147	   if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155	     CONFIG_SHELL=$as_dir/$as_base
156	     export CONFIG_SHELL
157	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158	   fi;;
159	 esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='	' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS=" 	$as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338	 test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350	 test "X$echo_testing_string" = "X$echo_test_string"; then
351	# Cool, printf works
352	:
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358	export CONFIG_SHELL
359	SHELL="$CONFIG_SHELL"
360	export SHELL
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368	# maybe with a smaller string...
369	prev=:
370
371	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373	  then
374	    break
375	  fi
376	  prev="$cmd"
377	done
378
379	if test "$prev" != 'sed 50q "$0"'; then
380	  echo_test_string=`eval $prev`
381	  export echo_test_string
382	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383	else
384	  # Oops.  We lost completely, so just stick with echo.
385	  echo=echo
386	fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='1.17.3'
434PACKAGE_STRING='Clp 1.17.3'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484ac_subdirs_all="$ac_subdirs_all CoinUtils"
485ac_subdirs_all="$ac_subdirs_all Osi"
486ac_subdirs_all="$ac_subdirs_all Clp"
487ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os 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 CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
488ac_subst_files=''
489
490# Initialize some variables set by options.
491ac_init_help=
492ac_init_version=false
493# The variables have the same names as the options, with
494# dashes changed to underlines.
495cache_file=/dev/null
496exec_prefix=NONE
497no_create=
498no_recursion=
499prefix=NONE
500program_prefix=NONE
501program_suffix=NONE
502program_transform_name=s,x,x,
503silent=
504site=
505srcdir=
506verbose=
507x_includes=NONE
508x_libraries=NONE
509
510# Installation directory options.
511# These are left unexpanded so users can "make install exec_prefix=/foo"
512# and all the variables that are supposed to be based on exec_prefix
513# by default will actually change.
514# Use braces instead of parens because sh, perl, etc. also accept them.
515bindir='${exec_prefix}/bin'
516sbindir='${exec_prefix}/sbin'
517libexecdir='${exec_prefix}/libexec'
518datadir='${prefix}/share'
519sysconfdir='${prefix}/etc'
520sharedstatedir='${prefix}/com'
521localstatedir='${prefix}/var'
522libdir='${exec_prefix}/lib'
523includedir='${prefix}/include'
524oldincludedir='/usr/include'
525infodir='${prefix}/info'
526mandir='${prefix}/man'
527
528ac_prev=
529for ac_option
530do
531  # If the previous option needs an argument, assign it.
532  if test -n "$ac_prev"; then
533    eval "$ac_prev=\$ac_option"
534    ac_prev=
535    continue
536  fi
537
538  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
539
540  # Accept the important Cygnus configure options, so we can diagnose typos.
541
542  case $ac_option in
543
544  -bindir | --bindir | --bindi | --bind | --bin | --bi)
545    ac_prev=bindir ;;
546  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
547    bindir=$ac_optarg ;;
548
549  -build | --build | --buil | --bui | --bu)
550    ac_prev=build_alias ;;
551  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
552    build_alias=$ac_optarg ;;
553
554  -cache-file | --cache-file | --cache-fil | --cache-fi \
555  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
556    ac_prev=cache_file ;;
557  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
558  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
559    cache_file=$ac_optarg ;;
560
561  --config-cache | -C)
562    cache_file=config.cache ;;
563
564  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
565    ac_prev=datadir ;;
566  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
567  | --da=*)
568    datadir=$ac_optarg ;;
569
570  -disable-* | --disable-*)
571    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
572    # Reject names that are not valid shell variable names.
573    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575   { (exit 1); exit 1; }; }
576    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577    eval "enable_$ac_feature=no" ;;
578
579  -enable-* | --enable-*)
580    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
581    # Reject names that are not valid shell variable names.
582    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
584   { (exit 1); exit 1; }; }
585    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
586    case $ac_option in
587      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
588      *) ac_optarg=yes ;;
589    esac
590    eval "enable_$ac_feature='$ac_optarg'" ;;
591
592  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
593  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
594  | --exec | --exe | --ex)
595    ac_prev=exec_prefix ;;
596  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
597  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
598  | --exec=* | --exe=* | --ex=*)
599    exec_prefix=$ac_optarg ;;
600
601  -gas | --gas | --ga | --g)
602    # Obsolete; use --with-gas.
603    with_gas=yes ;;
604
605  -help | --help | --hel | --he | -h)
606    ac_init_help=long ;;
607  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
608    ac_init_help=recursive ;;
609  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
610    ac_init_help=short ;;
611
612  -host | --host | --hos | --ho)
613    ac_prev=host_alias ;;
614  -host=* | --host=* | --hos=* | --ho=*)
615    host_alias=$ac_optarg ;;
616
617  -includedir | --includedir | --includedi | --included | --include \
618  | --includ | --inclu | --incl | --inc)
619    ac_prev=includedir ;;
620  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
621  | --includ=* | --inclu=* | --incl=* | --inc=*)
622    includedir=$ac_optarg ;;
623
624  -infodir | --infodir | --infodi | --infod | --info | --inf)
625    ac_prev=infodir ;;
626  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
627    infodir=$ac_optarg ;;
628
629  -libdir | --libdir | --libdi | --libd)
630    ac_prev=libdir ;;
631  -libdir=* | --libdir=* | --libdi=* | --libd=*)
632    libdir=$ac_optarg ;;
633
634  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
635  | --libexe | --libex | --libe)
636    ac_prev=libexecdir ;;
637  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
638  | --libexe=* | --libex=* | --libe=*)
639    libexecdir=$ac_optarg ;;
640
641  -localstatedir | --localstatedir | --localstatedi | --localstated \
642  | --localstate | --localstat | --localsta | --localst \
643  | --locals | --local | --loca | --loc | --lo)
644    ac_prev=localstatedir ;;
645  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
646  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
647  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
648    localstatedir=$ac_optarg ;;
649
650  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
651    ac_prev=mandir ;;
652  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
653    mandir=$ac_optarg ;;
654
655  -nfp | --nfp | --nf)
656    # Obsolete; use --without-fp.
657    with_fp=no ;;
658
659  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
660  | --no-cr | --no-c | -n)
661    no_create=yes ;;
662
663  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
664  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
665    no_recursion=yes ;;
666
667  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
668  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
669  | --oldin | --oldi | --old | --ol | --o)
670    ac_prev=oldincludedir ;;
671  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
672  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
673  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
674    oldincludedir=$ac_optarg ;;
675
676  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
677    ac_prev=prefix ;;
678  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
679    prefix=$ac_optarg ;;
680
681  -program-prefix | --program-prefix | --program-prefi | --program-pref \
682  | --program-pre | --program-pr | --program-p)
683    ac_prev=program_prefix ;;
684  -program-prefix=* | --program-prefix=* | --program-prefi=* \
685  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
686    program_prefix=$ac_optarg ;;
687
688  -program-suffix | --program-suffix | --program-suffi | --program-suff \
689  | --program-suf | --program-su | --program-s)
690    ac_prev=program_suffix ;;
691  -program-suffix=* | --program-suffix=* | --program-suffi=* \
692  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
693    program_suffix=$ac_optarg ;;
694
695  -program-transform-name | --program-transform-name \
696  | --program-transform-nam | --program-transform-na \
697  | --program-transform-n | --program-transform- \
698  | --program-transform | --program-transfor \
699  | --program-transfo | --program-transf \
700  | --program-trans | --program-tran \
701  | --progr-tra | --program-tr | --program-t)
702    ac_prev=program_transform_name ;;
703  -program-transform-name=* | --program-transform-name=* \
704  | --program-transform-nam=* | --program-transform-na=* \
705  | --program-transform-n=* | --program-transform-=* \
706  | --program-transform=* | --program-transfor=* \
707  | --program-transfo=* | --program-transf=* \
708  | --program-trans=* | --program-tran=* \
709  | --progr-tra=* | --program-tr=* | --program-t=*)
710    program_transform_name=$ac_optarg ;;
711
712  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
713  | -silent | --silent | --silen | --sile | --sil)
714    silent=yes ;;
715
716  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
717    ac_prev=sbindir ;;
718  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
719  | --sbi=* | --sb=*)
720    sbindir=$ac_optarg ;;
721
722  -sharedstatedir | --sharedstatedir | --sharedstatedi \
723  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
724  | --sharedst | --shareds | --shared | --share | --shar \
725  | --sha | --sh)
726    ac_prev=sharedstatedir ;;
727  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
728  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
729  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
730  | --sha=* | --sh=*)
731    sharedstatedir=$ac_optarg ;;
732
733  -site | --site | --sit)
734    ac_prev=site ;;
735  -site=* | --site=* | --sit=*)
736    site=$ac_optarg ;;
737
738  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
739    ac_prev=srcdir ;;
740  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
741    srcdir=$ac_optarg ;;
742
743  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
744  | --syscon | --sysco | --sysc | --sys | --sy)
745    ac_prev=sysconfdir ;;
746  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
747  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
748    sysconfdir=$ac_optarg ;;
749
750  -target | --target | --targe | --targ | --tar | --ta | --t)
751    ac_prev=target_alias ;;
752  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
753    target_alias=$ac_optarg ;;
754
755  -v | -verbose | --verbose | --verbos | --verbo | --verb)
756    verbose=yes ;;
757
758  -version | --version | --versio | --versi | --vers | -V)
759    ac_init_version=: ;;
760
761  -with-* | --with-*)
762    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
763    # Reject names that are not valid shell variable names.
764    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
765      { echo "$as_me: error: invalid package name: $ac_package" >&2
766   { (exit 1); exit 1; }; }
767    ac_package=`echo $ac_package| sed 's/-/_/g'`
768    case $ac_option in
769      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
770      *) ac_optarg=yes ;;
771    esac
772    eval "with_$ac_package='$ac_optarg'" ;;
773
774  -without-* | --without-*)
775    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
776    # Reject names that are not valid shell variable names.
777    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
778      { echo "$as_me: error: invalid package name: $ac_package" >&2
779   { (exit 1); exit 1; }; }
780    ac_package=`echo $ac_package | sed 's/-/_/g'`
781    eval "with_$ac_package=no" ;;
782
783  --x)
784    # Obsolete; use --with-x.
785    with_x=yes ;;
786
787  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
788  | --x-incl | --x-inc | --x-in | --x-i)
789    ac_prev=x_includes ;;
790  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
791  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
792    x_includes=$ac_optarg ;;
793
794  -x-libraries | --x-libraries | --x-librarie | --x-librari \
795  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
796    ac_prev=x_libraries ;;
797  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
798  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
799    x_libraries=$ac_optarg ;;
800
801  -*) { echo "$as_me: error: unrecognized option: $ac_option
802Try \`$0 --help' for more information." >&2
803   { (exit 1); exit 1; }; }
804    ;;
805
806  *=*)
807    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
808    # Reject names that are not valid shell variable names.
809    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
810      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
811   { (exit 1); exit 1; }; }
812    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
813    eval "$ac_envvar='$ac_optarg'"
814    export $ac_envvar ;;
815
816  *)
817    # FIXME: should be removed in autoconf 3.0.
818    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
819    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
821    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
822    ;;
823
824  esac
825done
826
827if test -n "$ac_prev"; then
828  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
829  { echo "$as_me: error: missing argument to $ac_option" >&2
830   { (exit 1); exit 1; }; }
831fi
832
833# Be sure to have absolute paths.
834for ac_var in exec_prefix prefix
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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# Be sure to have absolute paths.
845for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
846	      localstatedir libdir includedir oldincludedir infodir mandir
847do
848  eval ac_val=$`echo $ac_var`
849  case $ac_val in
850    [\\/$]* | ?:[\\/]* ) ;;
851    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
852   { (exit 1); exit 1; }; };;
853  esac
854done
855
856# There might be people who depend on the old broken behavior: `$host'
857# used to hold the argument of --host etc.
858# FIXME: To remove some day.
859build=$build_alias
860host=$host_alias
861target=$target_alias
862
863# FIXME: To remove some day.
864if test "x$host_alias" != x; then
865  if test "x$build_alias" = x; then
866    cross_compiling=maybe
867    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
868    If a cross compiler is detected then cross compile mode will be used." >&2
869  elif test "x$build_alias" != "x$host_alias"; then
870    cross_compiling=yes
871  fi
872fi
873
874ac_tool_prefix=
875test -n "$host_alias" && ac_tool_prefix=$host_alias-
876
877test "$silent" = yes && exec 6>/dev/null
878
879
880# Find the source files, if location was not specified.
881if test -z "$srcdir"; then
882  ac_srcdir_defaulted=yes
883  # Try the directory containing this script, then its parent.
884  ac_confdir=`(dirname "$0") 2>/dev/null ||
885$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
886	 X"$0" : 'X\(//\)[^/]' \| \
887	 X"$0" : 'X\(//\)$' \| \
888	 X"$0" : 'X\(/\)' \| \
889	 .     : '\(.\)' 2>/dev/null ||
890echo X"$0" |
891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
892  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
893  	  /^X\(\/\/\)$/{ s//\1/; q; }
894  	  /^X\(\/\).*/{ s//\1/; q; }
895  	  s/.*/./; q'`
896  srcdir=$ac_confdir
897  if test ! -r $srcdir/$ac_unique_file; then
898    srcdir=..
899  fi
900else
901  ac_srcdir_defaulted=no
902fi
903if test ! -r $srcdir/$ac_unique_file; then
904  if test "$ac_srcdir_defaulted" = yes; then
905    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
906   { (exit 1); exit 1; }; }
907  else
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
909   { (exit 1); exit 1; }; }
910  fi
911fi
912(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
913  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
914   { (exit 1); exit 1; }; }
915srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
916ac_env_build_alias_set=${build_alias+set}
917ac_env_build_alias_value=$build_alias
918ac_cv_env_build_alias_set=${build_alias+set}
919ac_cv_env_build_alias_value=$build_alias
920ac_env_host_alias_set=${host_alias+set}
921ac_env_host_alias_value=$host_alias
922ac_cv_env_host_alias_set=${host_alias+set}
923ac_cv_env_host_alias_value=$host_alias
924ac_env_target_alias_set=${target_alias+set}
925ac_env_target_alias_value=$target_alias
926ac_cv_env_target_alias_set=${target_alias+set}
927ac_cv_env_target_alias_value=$target_alias
928ac_env_CDEFS_set=${CDEFS+set}
929ac_env_CDEFS_value=$CDEFS
930ac_cv_env_CDEFS_set=${CDEFS+set}
931ac_cv_env_CDEFS_value=$CDEFS
932ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
933ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
934ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
935ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
936ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
937ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
938ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
939ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
940ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
941ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
942ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
943ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
944ac_env_CC_set=${CC+set}
945ac_env_CC_value=$CC
946ac_cv_env_CC_set=${CC+set}
947ac_cv_env_CC_value=$CC
948ac_env_CFLAGS_set=${CFLAGS+set}
949ac_env_CFLAGS_value=$CFLAGS
950ac_cv_env_CFLAGS_set=${CFLAGS+set}
951ac_cv_env_CFLAGS_value=$CFLAGS
952ac_env_LDFLAGS_set=${LDFLAGS+set}
953ac_env_LDFLAGS_value=$LDFLAGS
954ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
955ac_cv_env_LDFLAGS_value=$LDFLAGS
956ac_env_CPPFLAGS_set=${CPPFLAGS+set}
957ac_env_CPPFLAGS_value=$CPPFLAGS
958ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
959ac_cv_env_CPPFLAGS_value=$CPPFLAGS
960ac_env_MPICC_set=${MPICC+set}
961ac_env_MPICC_value=$MPICC
962ac_cv_env_MPICC_set=${MPICC+set}
963ac_cv_env_MPICC_value=$MPICC
964ac_env_CXXDEFS_set=${CXXDEFS+set}
965ac_env_CXXDEFS_value=$CXXDEFS
966ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
967ac_cv_env_CXXDEFS_value=$CXXDEFS
968ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
969ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
970ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
971ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
972ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
973ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
974ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
975ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
976ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
977ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
978ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
979ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_MPICXX_set=${MPICXX+set}
989ac_env_MPICXX_value=$MPICXX
990ac_cv_env_MPICXX_set=${MPICXX+set}
991ac_cv_env_MPICXX_value=$MPICXX
992ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
993ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
994ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
995ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
996ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
997ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
998ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
999ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1000ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1001ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1002ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1003ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1004ac_env_F77_set=${F77+set}
1005ac_env_F77_value=$F77
1006ac_cv_env_F77_set=${F77+set}
1007ac_cv_env_F77_value=$F77
1008ac_env_FFLAGS_set=${FFLAGS+set}
1009ac_env_FFLAGS_value=$FFLAGS
1010ac_cv_env_FFLAGS_set=${FFLAGS+set}
1011ac_cv_env_FFLAGS_value=$FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016ac_env_CPP_set=${CPP+set}
1017ac_env_CPP_value=$CPP
1018ac_cv_env_CPP_set=${CPP+set}
1019ac_cv_env_CPP_value=$CPP
1020ac_env_CXXCPP_set=${CXXCPP+set}
1021ac_env_CXXCPP_value=$CXXCPP
1022ac_cv_env_CXXCPP_set=${CXXCPP+set}
1023ac_cv_env_CXXCPP_value=$CXXCPP
1024ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1025ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1026ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1027ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1028
1029#
1030# Report the --help message.
1031#
1032if test "$ac_init_help" = "long"; then
1033  # Omit some internal or obsolete options to make the list less imposing.
1034  # This message is too long to be a string in the A/UX 3.1 sh.
1035  cat <<_ACEOF
1036\`configure' configures Clp 1.17.3 to adapt to many kinds of systems.
1037
1038Usage: $0 [OPTION]... [VAR=VALUE]...
1039
1040To assign environment variables (e.g., CC, CFLAGS...), specify them as
1041VAR=VALUE.  See below for descriptions of some of the useful variables.
1042
1043Defaults for the options are specified in brackets.
1044
1045Configuration:
1046  -h, --help              display this help and exit
1047      --help=short        display options specific to this package
1048      --help=recursive    display the short help of all the included packages
1049  -V, --version           display version information and exit
1050  -q, --quiet, --silent   do not print \`checking...' messages
1051      --cache-file=FILE   cache test results in FILE [disabled]
1052  -C, --config-cache      alias for \`--cache-file=config.cache'
1053  -n, --no-create         do not create output files
1054      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1055
1056_ACEOF
1057
1058  cat <<_ACEOF
1059Installation directories:
1060  --prefix=PREFIX         install architecture-independent files in PREFIX
1061			  [$ac_default_prefix]
1062  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1063			  [PREFIX]
1064
1065By default, \`make install' will install all the files in
1066\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1067an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1068for instance \`--prefix=\$HOME'.
1069
1070For better control, use the options below.
1071
1072Fine tuning of the installation directories:
1073  --bindir=DIR           user executables [EPREFIX/bin]
1074  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1075  --libexecdir=DIR       program executables [EPREFIX/libexec]
1076  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1077  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1078  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1079  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1080  --libdir=DIR           object code libraries [EPREFIX/lib]
1081  --includedir=DIR       C header files [PREFIX/include]
1082  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1083  --infodir=DIR          info documentation [PREFIX/info]
1084  --mandir=DIR           man documentation [PREFIX/man]
1085_ACEOF
1086
1087  cat <<\_ACEOF
1088
1089Program names:
1090  --program-prefix=PREFIX            prepend PREFIX to installed program names
1091  --program-suffix=SUFFIX            append SUFFIX to installed program names
1092  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1093
1094System types:
1095  --build=BUILD     configure for building on BUILD [guessed]
1096  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1097_ACEOF
1098fi
1099
1100if test -n "$ac_init_help"; then
1101  case $ac_init_help in
1102     short | recursive ) echo "Configuration of Clp 1.17.3:";;
1103   esac
1104  cat <<\_ACEOF
1105
1106Optional Features:
1107  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1108  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1109  --enable-debug          compile all projects with debug options tests
1110                          (implies --disable-shared)
1111
1112  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1113  --enable-static[=PKGS]
1114                          build static libraries [default=no]
1115  --disable-dependency-tracking  speeds up one-time build
1116  --enable-dependency-tracking   do not reject slow dependency extractors
1117  --enable-maintainer-mode  enable make rules and dependencies not useful
1118			  (and sometimes confusing) to the casual installer
1119  --enable-shared[=PKGS]
1120                          build shared libraries [default=yes]
1121  --enable-fast-install[=PKGS]
1122                          optimize for fast installation [default=yes]
1123  --disable-libtool-lock  avoid locking (might break parallel builds)
1124  --disable-dependency-linking
1125                          disable linking library dependencies into shared
1126                          libraries
1127
1128Optional Packages:
1129  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1130  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136
1137  --with-asl-lib linker flags for using project ASL
1138  --with-asl-incdir directory with header files for using project ASL
1139  --with-asl-datadir directory with data files for using project ASL
1140  --with-blas-lib linker flags for using project Blas
1141  --with-blas-incdir directory with header files for using project Blas
1142  --with-blas-datadir directory with data files for using project Blas
1143  --with-blas             specify BLAS library (or BUILD to enforce use of
1144                          ThirdParty/Blas)
1145  --with-lapack-lib linker flags for using project Lapack
1146  --with-lapack-incdir directory with header files for using project Lapack
1147  --with-lapack-datadir directory with data files for using project Lapack
1148  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1149                          ThirdParty/Lapack)
1150  --with-metis-lib linker flags for using project Metis
1151  --with-metis-incdir directory with header files for using project Metis
1152  --with-metis-datadir directory with data files for using project Metis
1153  --with-mumps-lib linker flags for using project Mumps
1154  --with-mumps-incdir directory with header files for using project Mumps
1155  --with-mumps-datadir directory with data files for using project Mumps
1156  --with-glpk-lib linker flags for using project Glpk
1157  --with-glpk-incdir directory with header files for using project Glpk
1158  --with-glpk-datadir directory with data files for using project Glpk
1159  --with-sample-lib linker flags for using project Sample
1160  --with-sample-incdir directory with header files for using project Sample
1161  --with-sample-datadir directory with data files for using project Sample
1162  --with-netlib-lib linker flags for using project Netlib
1163  --with-netlib-incdir directory with header files for using project Netlib
1164  --with-netlib-datadir directory with data files for using project Netlib
1165  --with-coinutils-lib linker flags for using project CoinUtils
1166  --with-coinutils-incdir directory with header files for using project
1167                          CoinUtils
1168  --with-coinutils-datadir
1169                          directory with data files for using project
1170                          CoinUtils
1171  --with-osi-lib linker flags for using project Osi
1172  --with-osi-incdir directory with header files for using project Osi
1173  --with-osi-datadir directory with data files for using project Osi
1174  --with-clp-lib linker flags for using project Clp
1175  --with-clp-incdir directory with header files for using project Clp
1176  --with-clp-datadir directory with data files for using project Clp
1177  --with-dot              use dot (from graphviz) when creating documentation
1178                          with doxygen if available; --without-dot to disable
1179
1180Some influential environment variables:
1181  CDEFS       Additional -D flags to be used when compiling C code.
1182  ADD_CFLAGS  Additional C compiler options
1183  DBG_CFLAGS  Debug C compiler options
1184  OPT_CFLAGS  Optimize C compiler options
1185  CC          C compiler command
1186  CFLAGS      C compiler flags
1187  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1188              nonstandard directory <lib dir>
1189  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1190              headers in a nonstandard directory <include dir>
1191  MPICC       C MPI Compiler
1192  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1193  ADD_CXXFLAGS
1194              Additional C++ compiler options
1195  DBG_CXXFLAGS
1196              Debug C++ compiler options
1197  OPT_CXXFLAGS
1198              Optimize C++ compiler options
1199  CXX         C++ compiler command
1200  CXXFLAGS    C++ compiler flags
1201  MPICXX      C++ MPI Compiler
1202  ADD_FFLAGS  Additional Fortran compiler options
1203  DBG_FFLAGS  Debug Fortran compiler options
1204  OPT_FFLAGS  Optimize Fortran compiler options
1205  F77         Fortran 77 compiler command
1206  FFLAGS      Fortran 77 compiler flags
1207  MPIF77      Fortran MPI Compiler
1208  CPP         C preprocessor
1209  CXXCPP      C++ preprocessor
1210  COIN_SKIP_PROJECTS
1211              Set to the subdirectories of projects that should be skipped in
1212              the configuration
1213
1214Use these variables to override the choices made by `configure' or to help
1215it to find libraries and programs with nonstandard names/locations.
1216
1217Report bugs to <coin-clp@lists.coin-or.org>.
1218_ACEOF
1219fi
1220
1221if test "$ac_init_help" = "recursive"; then
1222  # If there are subdirs, report their specific --help.
1223  ac_popdir=`pwd`
1224  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1225    test -d $ac_dir || continue
1226    ac_builddir=.
1227
1228if test "$ac_dir" != .; then
1229  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1230  # A "../" for each directory in $ac_dir_suffix.
1231  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1232else
1233  ac_dir_suffix= ac_top_builddir=
1234fi
1235
1236case $srcdir in
1237  .)  # No --srcdir option.  We are building in place.
1238    ac_srcdir=.
1239    if test -z "$ac_top_builddir"; then
1240       ac_top_srcdir=.
1241    else
1242       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1243    fi ;;
1244  [\\/]* | ?:[\\/]* )  # Absolute path.
1245    ac_srcdir=$srcdir$ac_dir_suffix;
1246    ac_top_srcdir=$srcdir ;;
1247  *) # Relative path.
1248    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1249    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1250esac
1251
1252# Do not use `cd foo && pwd` to compute absolute paths, because
1253# the directories may not exist.
1254case `pwd` in
1255.) ac_abs_builddir="$ac_dir";;
1256*)
1257  case "$ac_dir" in
1258  .) ac_abs_builddir=`pwd`;;
1259  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1260  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1261  esac;;
1262esac
1263case $ac_abs_builddir in
1264.) ac_abs_top_builddir=${ac_top_builddir}.;;
1265*)
1266  case ${ac_top_builddir}. in
1267  .) ac_abs_top_builddir=$ac_abs_builddir;;
1268  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1269  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1270  esac;;
1271esac
1272case $ac_abs_builddir in
1273.) ac_abs_srcdir=$ac_srcdir;;
1274*)
1275  case $ac_srcdir in
1276  .) ac_abs_srcdir=$ac_abs_builddir;;
1277  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1278  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1279  esac;;
1280esac
1281case $ac_abs_builddir in
1282.) ac_abs_top_srcdir=$ac_top_srcdir;;
1283*)
1284  case $ac_top_srcdir in
1285  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1286  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1287  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1288  esac;;
1289esac
1290
1291    cd $ac_dir
1292    # Check for guested configure; otherwise get Cygnus style configure.
1293    if test -f $ac_srcdir/configure.gnu; then
1294      echo
1295      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1296    elif test -f $ac_srcdir/configure; then
1297      echo
1298      $SHELL $ac_srcdir/configure  --help=recursive
1299    elif test -f $ac_srcdir/configure.ac ||
1300	   test -f $ac_srcdir/configure.in; then
1301      echo
1302      $ac_configure --help
1303    else
1304      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1305    fi
1306    cd $ac_popdir
1307  done
1308fi
1309
1310test -n "$ac_init_help" && exit 0
1311if $ac_init_version; then
1312  cat <<\_ACEOF
1313Clp configure 1.17.3
1314generated by GNU Autoconf 2.59
1315
1316Copyright (C) 2003 Free Software Foundation, Inc.
1317This configure script is free software; the Free Software Foundation
1318gives unlimited permission to copy, distribute and modify it.
1319
1320
1321Copyright 2006 International Business Machines and others.
1322All Rights Reserved.
1323This file is part of the open source package Coin which is distributed
1324under the Eclipse Public License.
1325_ACEOF
1326  exit 0
1327fi
1328exec 5>config.log
1329cat >&5 <<_ACEOF
1330This file contains any messages produced by compilers while
1331running configure, to aid debugging if configure makes a mistake.
1332
1333It was created by Clp $as_me 1.17.3, which was
1334generated by GNU Autoconf 2.59.  Invocation command line was
1335
1336  $ $0 $@
1337
1338_ACEOF
1339{
1340cat <<_ASUNAME
1341## --------- ##
1342## Platform. ##
1343## --------- ##
1344
1345hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1346uname -m = `(uname -m) 2>/dev/null || echo unknown`
1347uname -r = `(uname -r) 2>/dev/null || echo unknown`
1348uname -s = `(uname -s) 2>/dev/null || echo unknown`
1349uname -v = `(uname -v) 2>/dev/null || echo unknown`
1350
1351/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1352/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1353
1354/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1355/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1356/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1357hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1358/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1359/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1360/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1361
1362_ASUNAME
1363
1364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365for as_dir in $PATH
1366do
1367  IFS=$as_save_IFS
1368  test -z "$as_dir" && as_dir=.
1369  echo "PATH: $as_dir"
1370done
1371
1372} >&5
1373
1374cat >&5 <<_ACEOF
1375
1376
1377## ----------- ##
1378## Core tests. ##
1379## ----------- ##
1380
1381_ACEOF
1382
1383
1384# Keep a trace of the command line.
1385# Strip out --no-create and --no-recursion so they do not pile up.
1386# Strip out --silent because we don't want to record it for future runs.
1387# Also quote any args containing shell meta-characters.
1388# Make two passes to allow for proper duplicate-argument suppression.
1389ac_configure_args=
1390ac_configure_args0=
1391ac_configure_args1=
1392ac_sep=
1393ac_must_keep_next=false
1394for ac_pass in 1 2
1395do
1396  for ac_arg
1397  do
1398    case $ac_arg in
1399    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1400    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1401    | -silent | --silent | --silen | --sile | --sil)
1402      continue ;;
1403    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1404      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1405    esac
1406    case $ac_pass in
1407    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1408    2)
1409      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1410      if test $ac_must_keep_next = true; then
1411	ac_must_keep_next=false # Got value, back to normal.
1412      else
1413	case $ac_arg in
1414	  *=* | --config-cache | -C | -disable-* | --disable-* \
1415	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1416	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1417	  | -with-* | --with-* | -without-* | --without-* | --x)
1418	    case "$ac_configure_args0 " in
1419	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1420	    esac
1421	    ;;
1422	  -* ) ac_must_keep_next=true ;;
1423	esac
1424      fi
1425      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1426      # Get rid of the leading space.
1427      ac_sep=" "
1428      ;;
1429    esac
1430  done
1431done
1432$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1433$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1434
1435# When interrupted or exit'd, cleanup temporary files, and complete
1436# config.log.  We remove comments because anyway the quotes in there
1437# would cause problems or look ugly.
1438# WARNING: Be sure not to use single quotes in there, as some shells,
1439# such as our DU 5.0 friend, will then `close' the trap.
1440trap 'exit_status=$?
1441  # Save into config.log some information that might help in debugging.
1442  {
1443    echo
1444
1445    cat <<\_ASBOX
1446## ---------------- ##
1447## Cache variables. ##
1448## ---------------- ##
1449_ASBOX
1450    echo
1451    # The following way of writing the cache mishandles newlines in values,
1452{
1453  (set) 2>&1 |
1454    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1455    *ac_space=\ *)
1456      sed -n \
1457	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1458	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1459      ;;
1460    *)
1461      sed -n \
1462	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1463      ;;
1464    esac;
1465}
1466    echo
1467
1468    cat <<\_ASBOX
1469## ----------------- ##
1470## Output variables. ##
1471## ----------------- ##
1472_ASBOX
1473    echo
1474    for ac_var in $ac_subst_vars
1475    do
1476      eval ac_val=$`echo $ac_var`
1477      echo "$ac_var='"'"'$ac_val'"'"'"
1478    done | sort
1479    echo
1480
1481    if test -n "$ac_subst_files"; then
1482      cat <<\_ASBOX
1483## ------------- ##
1484## Output files. ##
1485## ------------- ##
1486_ASBOX
1487      echo
1488      for ac_var in $ac_subst_files
1489      do
1490	eval ac_val=$`echo $ac_var`
1491	echo "$ac_var='"'"'$ac_val'"'"'"
1492      done | sort
1493      echo
1494    fi
1495
1496    if test -s confdefs.h; then
1497      cat <<\_ASBOX
1498## ----------- ##
1499## confdefs.h. ##
1500## ----------- ##
1501_ASBOX
1502      echo
1503      sed "/^$/d" confdefs.h | sort
1504      echo
1505    fi
1506    test "$ac_signal" != 0 &&
1507      echo "$as_me: caught signal $ac_signal"
1508    echo "$as_me: exit $exit_status"
1509  } >&5
1510  rm -f core *.core &&
1511  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1512    exit $exit_status
1513     ' 0
1514for ac_signal in 1 2 13 15; do
1515  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1516done
1517ac_signal=0
1518
1519# confdefs.h avoids OS command line length limits that DEFS can exceed.
1520rm -rf conftest* confdefs.h
1521# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1522echo >confdefs.h
1523
1524# Predefined preprocessor variables.
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_NAME "$PACKAGE_NAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_VERSION "$PACKAGE_VERSION"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_STRING "$PACKAGE_STRING"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1548_ACEOF
1549
1550
1551# Let the site file select an alternate cache file if it wants to.
1552# Prefer explicitly selected file to automatically selected ones.
1553if test -z "$CONFIG_SITE"; then
1554  if test "x$prefix" != xNONE; then
1555    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1556  else
1557    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1558  fi
1559fi
1560for ac_site_file in $CONFIG_SITE; do
1561  if test -r "$ac_site_file"; then
1562    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1563echo "$as_me: loading site script $ac_site_file" >&6;}
1564    sed 's/^/| /' "$ac_site_file" >&5
1565    . "$ac_site_file"
1566  fi
1567done
1568
1569if test -r "$cache_file"; then
1570  # Some versions of bash will fail to source /dev/null (special
1571  # files actually), so we avoid doing that.
1572  if test -f "$cache_file"; then
1573    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1574echo "$as_me: loading cache $cache_file" >&6;}
1575    case $cache_file in
1576      [\\/]* | ?:[\\/]* ) . $cache_file;;
1577      *)                      . ./$cache_file;;
1578    esac
1579  fi
1580else
1581  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1582echo "$as_me: creating cache $cache_file" >&6;}
1583  >$cache_file
1584fi
1585
1586# Check that the precious variables saved in the cache have kept the same
1587# value.
1588ac_cache_corrupted=false
1589for ac_var in `(set) 2>&1 |
1590	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1591  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1592  eval ac_new_set=\$ac_env_${ac_var}_set
1593  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1594  eval ac_new_val="\$ac_env_${ac_var}_value"
1595  case $ac_old_set,$ac_new_set in
1596    set,)
1597      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1598echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1599      ac_cache_corrupted=: ;;
1600    ,set)
1601      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1602echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1603      ac_cache_corrupted=: ;;
1604    ,);;
1605    *)
1606      if test "x$ac_old_val" != "x$ac_new_val"; then
1607	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1608echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1609	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1610echo "$as_me:   former value:  $ac_old_val" >&2;}
1611	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1612echo "$as_me:   current value: $ac_new_val" >&2;}
1613	ac_cache_corrupted=:
1614      fi;;
1615  esac
1616  # Pass precious variables to config.status.
1617  if test "$ac_new_set" = set; then
1618    case $ac_new_val in
1619    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1620      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1621    *) ac_arg=$ac_var=$ac_new_val ;;
1622    esac
1623    case " $ac_configure_args " in
1624      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1625      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1626    esac
1627  fi
1628done
1629if $ac_cache_corrupted; then
1630  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1631echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1632  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1633echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1634   { (exit 1); exit 1; }; }
1635fi
1636
1637ac_ext=c
1638ac_cpp='$CPP $CPPFLAGS'
1639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1641ac_compiler_gnu=$ac_cv_c_compiler_gnu
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674# List one file in the package so that the configure script can test
1675# whether the package is actually there
1676
1677
1678# Where should everything be installed by default?  Here, we want it
1679# to be installed directly in 'bin', 'lib', 'include' subdirectories
1680# of the directory where configure is run.  The default would be
1681# /usr/local.
1682
1683
1684#############################################################################
1685#              Create the libtool script for the subdirectories             #
1686#############################################################################
1687
1688ac_aux_dir=
1689for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1690  if test -f $ac_dir/install-sh; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/install-sh -c"
1693    break
1694  elif test -f $ac_dir/install.sh; then
1695    ac_aux_dir=$ac_dir
1696    ac_install_sh="$ac_aux_dir/install.sh -c"
1697    break
1698  elif test -f $ac_dir/shtool; then
1699    ac_aux_dir=$ac_dir
1700    ac_install_sh="$ac_aux_dir/shtool install -c"
1701    break
1702  fi
1703done
1704if test -z "$ac_aux_dir"; then
1705  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1706echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1707   { (exit 1); exit 1; }; }
1708fi
1709ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1710ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1711ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1712
1713# Make sure we can run config.sub.
1714$ac_config_sub sun4 >/dev/null 2>&1 ||
1715  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1716echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1717   { (exit 1); exit 1; }; }
1718
1719echo "$as_me:$LINENO: checking build system type" >&5
1720echo $ECHO_N "checking build system type... $ECHO_C" >&6
1721if test "${ac_cv_build+set}" = set; then
1722  echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724  ac_cv_build_alias=$build_alias
1725test -z "$ac_cv_build_alias" &&
1726  ac_cv_build_alias=`$ac_config_guess`
1727test -z "$ac_cv_build_alias" &&
1728  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1729echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1730   { (exit 1); exit 1; }; }
1731ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1732  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1733echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736fi
1737echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1738echo "${ECHO_T}$ac_cv_build" >&6
1739build=$ac_cv_build
1740build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743
1744
1745
1746# Check if user wants to produce debugging code
1747
1748echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1749echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1750
1751# Check whether --enable-debug or --disable-debug was given.
1752if test "${enable_debug+set}" = set; then
1753  enableval="$enable_debug"
1754  case "${enableval}" in
1755   yes) coin_debug_compile=true
1756        if test "${enable_shared+set}" = set; then :; else
1757          enable_shared=no
1758        fi
1759        ;;
1760   no)  coin_debug_compile=false
1761        ;;
1762   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1763echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1764   { (exit 1); exit 1; }; }
1765        ;;
1766esac
1767else
1768  coin_debug_compile=false
1769fi;
1770
1771 # m4_ifvaln([],
1772
1773if test $coin_debug_compile = true; then
1774  echo "$as_me:$LINENO: result: yes" >&5
1775echo "${ECHO_T}yes" >&6
1776else
1777  echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779fi
1780
1781 # m4_ifvaln([],
1782
1783
1784
1785# Get the name of the C compiler and appropriate compiler options
1786
1787
1788  # for backward compatibility
1789  # Check whether --enable-doscompile or --disable-doscompile was given.
1790if test "${enable_doscompile+set}" = set; then
1791  enableval="$enable_doscompile"
1792  enable_doscompile=$enableval
1793else
1794  enable_doscompile=no
1795fi;
1796
1797  # Check whether --enable-msvc or --disable-msvc was given.
1798if test "${enable_msvc+set}" = set; then
1799  enableval="$enable_msvc"
1800  enable_msvc=$enableval
1801else
1802  enable_msvc=no
1803     if test "$enable_doscompile" = msvc ; then
1804       enable_msvc=yes
1805     elif test "$enable_doscompile" != no ; then
1806       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1807echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1808   { (exit 1); exit 1; }; }
1809     fi
1810
1811fi;
1812
1813  if test "$enable_msvc" = MD; then
1814    enable_shared=yes
1815    enable_msvc=yes
1816  fi
1817
1818  if test "$enable_msvc" = yes; then
1819    case $build in
1820      *-cygwin* | *-mingw*) ;;
1821      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1822echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1823   { (exit 1); exit 1; }; } ;;
1824    esac
1825  fi
1826
1827
1828
1829ac_ext=c
1830ac_cpp='$CPP $CPPFLAGS'
1831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834
1835
1836# For consistency, we set the C compiler to the same value of the C++
1837# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1838if test x"$CXX" != x; then
1839  case "$CXX" in
1840    clang* ) ;;
1841    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1842      if test x"$CC" = x; then
1843        CC="$CXX"
1844        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1845echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1846      fi
1847      ;;
1848  esac
1849fi
1850
1851
1852
1853
1854
1855
1856coin_has_cc=yes
1857
1858save_cflags="$CFLAGS"
1859
1860# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1861# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1862# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1863# compiler. In this case, put cc after gcc.
1864
1865case $build in
1866  *-cygwin* | *-mingw*)
1867  	     if test "$enable_msvc" = yes ; then
1868	       comps="icl cl gcc"
1869	     else
1870	       comps="gcc icl cl"
1871	     fi ;;
1872  *-*-solaris*)
1873	     # Extract the first word of "cc", so it can be a program name with args.
1874set dummy cc; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  if test -n "$sol_cc_compiler"; then
1881  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1882else
1883  ac_prog_rejected=no
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887  IFS=$as_save_IFS
1888  test -z "$as_dir" && as_dir=.
1889  for ac_exec_ext in '' $ac_executable_extensions; do
1890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1892       ac_prog_rejected=yes
1893       continue
1894     fi
1895    ac_cv_prog_sol_cc_compiler="cc"
1896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897    break 2
1898  fi
1899done
1900done
1901
1902if test $ac_prog_rejected = yes; then
1903  # We found a bogon in the path, so make sure we never use it.
1904  set dummy $ac_cv_prog_sol_cc_compiler
1905  shift
1906  if test $# != 0; then
1907    # We chose a different compiler from the bogus one.
1908    # However, it has the same basename, so the bogon will be chosen
1909    # first if we set sol_cc_compiler to just the basename; use the full file name.
1910    shift
1911    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1912  fi
1913fi
1914fi
1915fi
1916sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1917if test -n "$sol_cc_compiler"; then
1918  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1919echo "${ECHO_T}$sol_cc_compiler" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925	     if test "$sol_cc_compiler" = "cc" ; then
1926	       comps="cc xlc gcc pgcc icc"
1927	     else
1928	       comps="xlc gcc pgcc icc cc"
1929	     fi
1930	     ;;
1931  *-*-darwin*) comps="clang gcc cc" ;;
1932  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1933  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1934  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1935esac
1936
1937# We delete the cached value, since the test might not have been
1938# performed with our choice of compilers earlier
1939$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1940# AC_MSG_NOTICE([C compiler candidates: $comps])
1941ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946if test -n "$ac_tool_prefix"; then
1947  for ac_prog in $comps
1948  do
1949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_CC+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$CC"; then
1957  ac_cv_prog_CC="$CC" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972
1973fi
1974fi
1975CC=$ac_cv_prog_CC
1976if test -n "$CC"; then
1977  echo "$as_me:$LINENO: result: $CC" >&5
1978echo "${ECHO_T}$CC" >&6
1979else
1980  echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984    test -n "$CC" && break
1985  done
1986fi
1987if test -z "$CC"; then
1988  ac_ct_CC=$CC
1989  for ac_prog in $comps
1990do
1991  # Extract the first word of "$ac_prog", so it can be a program name with args.
1992set dummy $ac_prog; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996  echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998  if test -n "$ac_ct_CC"; then
1999  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006  for ac_exec_ext in '' $ac_executable_extensions; do
2007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008    ac_cv_prog_ac_ct_CC="$ac_prog"
2009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010    break 2
2011  fi
2012done
2013done
2014
2015fi
2016fi
2017ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018if test -n "$ac_ct_CC"; then
2019  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020echo "${ECHO_T}$ac_ct_CC" >&6
2021else
2022  echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026  test -n "$ac_ct_CC" && break
2027done
2028
2029  CC=$ac_ct_CC
2030fi
2031
2032
2033test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: no acceptable C compiler found in \$PATH
2036See \`config.log' for more details." >&2;}
2037   { (exit 1); exit 1; }; }
2038
2039# Provide some information about the compiler.
2040echo "$as_me:$LINENO:" \
2041     "checking for C compiler version" >&5
2042ac_compiler=`set X $ac_compile; echo $2`
2043{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044  (eval $ac_compiler --version </dev/null >&5) 2>&5
2045  ac_status=$?
2046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047  (exit $ac_status); }
2048{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049  (eval $ac_compiler -v </dev/null >&5) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054  (eval $ac_compiler -V </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058
2059cat >conftest.$ac_ext <<_ACEOF
2060/* confdefs.h.  */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h.  */
2065
2066int
2067main ()
2068{
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074ac_clean_files_save=$ac_clean_files
2075ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076# Try to create an executable without -o first, disregard a.out.
2077# It will help us diagnose broken compilers, and finding out an intuition
2078# of exeext.
2079echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2080echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2081ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083  (eval $ac_link_default) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }; then
2087  # Find the output, starting from the most likely.  This scheme is
2088# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089# resort.
2090
2091# Be careful to initialize this variable, since it used to be cached.
2092# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2093ac_cv_exeext=
2094# b.out is created by i960 compilers.
2095for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2096do
2097  test -f "$ac_file" || continue
2098  case $ac_file in
2099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100	;;
2101    conftest.$ac_ext )
2102	# This is the source file.
2103	;;
2104    [ab].out )
2105	# We found the default executable, but exeext='' is most
2106	# certainly right.
2107	break;;
2108    *.* )
2109	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110	# FIXME: I believe we export ac_cv_exeext for Libtool,
2111	# but it would be cool to find out if it's true.  Does anybody
2112	# maintain Libtool? --akim.
2113	export ac_cv_exeext
2114	break;;
2115    * )
2116	break;;
2117  esac
2118done
2119else
2120  echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: C compiler cannot create executables
2126See \`config.log' for more details." >&2;}
2127   { (exit 77); exit 77; }; }
2128fi
2129
2130ac_exeext=$ac_cv_exeext
2131echo "$as_me:$LINENO: result: $ac_file" >&5
2132echo "${ECHO_T}$ac_file" >&6
2133
2134# Check the compiler produces executables we can run.  If not, either
2135# the compiler is broken, or we cross compile.
2136echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2138# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139# If not cross compiling, check that we can run a simple program.
2140if test "$cross_compiling" != yes; then
2141  if { ac_try='./$ac_file'
2142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143  (eval $ac_try) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }; }; then
2147    cross_compiling=no
2148  else
2149    if test "$cross_compiling" = maybe; then
2150	cross_compiling=yes
2151    else
2152	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153If you meant to cross compile, use \`--host'.
2154See \`config.log' for more details." >&5
2155echo "$as_me: error: cannot run C compiled programs.
2156If you meant to cross compile, use \`--host'.
2157See \`config.log' for more details." >&2;}
2158   { (exit 1); exit 1; }; }
2159    fi
2160  fi
2161fi
2162echo "$as_me:$LINENO: result: yes" >&5
2163echo "${ECHO_T}yes" >&6
2164
2165rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166ac_clean_files=$ac_clean_files_save
2167# Check the compiler produces executables we can run.  If not, either
2168# the compiler is broken, or we cross compile.
2169echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172echo "${ECHO_T}$cross_compiling" >&6
2173
2174echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177  (eval $ac_link) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; then
2181  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2183# work properly (i.e., refer to `conftest.exe'), while it won't with
2184# `rm'.
2185for ac_file in conftest.exe conftest conftest.*; do
2186  test -f "$ac_file" || continue
2187  case $ac_file in
2188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190	  export ac_cv_exeext
2191	  break;;
2192    * ) break;;
2193  esac
2194done
2195else
2196  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest$ac_cv_exeext
2204echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205echo "${ECHO_T}$ac_cv_exeext" >&6
2206
2207rm -f conftest.$ac_ext
2208EXEEXT=$ac_cv_exeext
2209ac_exeext=$EXEEXT
2210echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212if test "${ac_cv_objext+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215  cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h.  */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h.  */
2221
2222int
2223main ()
2224{
2225
2226  ;
2227  return 0;
2228}
2229_ACEOF
2230rm -f conftest.o conftest.obj
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232  (eval $ac_compile) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; then
2236  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237  case $ac_file in
2238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240       break;;
2241  esac
2242done
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250See \`config.log' for more details." >&2;}
2251   { (exit 1); exit 1; }; }
2252fi
2253
2254rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257echo "${ECHO_T}$ac_cv_objext" >&6
2258OBJEXT=$ac_cv_objext
2259ac_objext=$OBJEXT
2260echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2261echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2262if test "${ac_cv_c_compiler_gnu+set}" = set; then
2263  echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265  cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h.  */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h.  */
2271
2272int
2273main ()
2274{
2275#ifndef __GNUC__
2276       choke me
2277#endif
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285  (eval $ac_compile) 2>conftest.er1
2286  ac_status=$?
2287  grep -v '^ *+' conftest.er1 >conftest.err
2288  rm -f conftest.er1
2289  cat conftest.err >&5
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); } &&
2292	 { ac_try='test -z "$ac_c_werror_flag"
2293			 || test ! -s conftest.err'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; } &&
2299	 { ac_try='test -s conftest.$ac_objext'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; }; then
2305  ac_compiler_gnu=yes
2306else
2307  echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310ac_compiler_gnu=no
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313ac_cv_c_compiler_gnu=$ac_compiler_gnu
2314
2315fi
2316echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318GCC=`test $ac_compiler_gnu = yes && echo yes`
2319ac_test_CFLAGS=${CFLAGS+set}
2320ac_save_CFLAGS=$CFLAGS
2321CFLAGS="-g"
2322echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324if test "${ac_cv_prog_cc_g+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333
2334int
2335main ()
2336{
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>conftest.er1
2345  ac_status=$?
2346  grep -v '^ *+' conftest.er1 >conftest.err
2347  rm -f conftest.er1
2348  cat conftest.err >&5
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); } &&
2351	 { ac_try='test -z "$ac_c_werror_flag"
2352			 || test ! -s conftest.err'
2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354  (eval $ac_try) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; } &&
2358	 { ac_try='test -s conftest.$ac_objext'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; }; then
2364  ac_cv_prog_cc_g=yes
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369ac_cv_prog_cc_g=no
2370fi
2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372fi
2373echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2374echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375if test "$ac_test_CFLAGS" = set; then
2376  CFLAGS=$ac_save_CFLAGS
2377elif test $ac_cv_prog_cc_g = yes; then
2378  if test "$GCC" = yes; then
2379    CFLAGS="-g -O2"
2380  else
2381    CFLAGS="-g"
2382  fi
2383else
2384  if test "$GCC" = yes; then
2385    CFLAGS="-O2"
2386  else
2387    CFLAGS=
2388  fi
2389fi
2390echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393  echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395  ac_cv_prog_cc_stdc=no
2396ac_save_CC=$CC
2397cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403#include <stdarg.h>
2404#include <stdio.h>
2405#include <sys/types.h>
2406#include <sys/stat.h>
2407/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2408struct buf { int x; };
2409FILE * (*rcsopen) (struct buf *, struct stat *, int);
2410static char *e (p, i)
2411     char **p;
2412     int i;
2413{
2414  return p[i];
2415}
2416static char *f (char * (*g) (char **, int), char **p, ...)
2417{
2418  char *s;
2419  va_list v;
2420  va_start (v,p);
2421  s = g (p, va_arg (v,int));
2422  va_end (v);
2423  return s;
2424}
2425
2426/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2427   function prototypes and stuff, but not '\xHH' hex character constants.
2428   These don't provoke an error unfortunately, instead are silently treated
2429   as 'x'.  The following induces an error, until -std1 is added to get
2430   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2431   array size at least.  It's necessary to write '\x00'==0 to get something
2432   that's true only with -std1.  */
2433int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2434
2435int test (int i, double x);
2436struct s1 {int (*f) (int a);};
2437struct s2 {int (*f) (double a);};
2438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2439int argc;
2440char **argv;
2441int
2442main ()
2443{
2444return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449# Don't try gcc -ansi; that turns off useful extensions and
2450# breaks some systems' header files.
2451# AIX			-qlanglvl=ansi
2452# Ultrix and OSF/1	-std1
2453# HP-UX 10.20 and later	-Ae
2454# HP-UX older versions	-Aa -D_HPUX_SOURCE
2455# SVR4			-Xc -D__EXTENSIONS__
2456for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2457do
2458  CC="$ac_save_CC $ac_arg"
2459  rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468	 { ac_try='test -z "$ac_c_werror_flag"
2469			 || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475	 { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_cv_prog_cc_stdc=$ac_arg
2482break
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487fi
2488rm -f conftest.err conftest.$ac_objext
2489done
2490rm -f conftest.$ac_ext conftest.$ac_objext
2491CC=$ac_save_CC
2492
2493fi
2494
2495case "x$ac_cv_prog_cc_stdc" in
2496  x|xno)
2497    echo "$as_me:$LINENO: result: none needed" >&5
2498echo "${ECHO_T}none needed" >&6 ;;
2499  *)
2500    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2501echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2502    CC="$CC $ac_cv_prog_cc_stdc" ;;
2503esac
2504
2505# Some people use a C++ compiler to compile C.  Since we use `exit',
2506# in C++ we need to declare it.  In case someone uses the same compiler
2507# for both compiling C and C++ we need to have the C++ compiler decide
2508# the declaration of exit, since it's the most demanding environment.
2509cat >conftest.$ac_ext <<_ACEOF
2510#ifndef __cplusplus
2511  choke me
2512#endif
2513_ACEOF
2514rm -f conftest.$ac_objext
2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516  (eval $ac_compile) 2>conftest.er1
2517  ac_status=$?
2518  grep -v '^ *+' conftest.er1 >conftest.err
2519  rm -f conftest.er1
2520  cat conftest.err >&5
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); } &&
2523	 { ac_try='test -z "$ac_c_werror_flag"
2524			 || test ! -s conftest.err'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; } &&
2530	 { ac_try='test -s conftest.$ac_objext'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; }; then
2536  for ac_declaration in \
2537   '' \
2538   'extern "C" void std::exit (int) throw (); using std::exit;' \
2539   'extern "C" void std::exit (int); using std::exit;' \
2540   'extern "C" void exit (int) throw ();' \
2541   'extern "C" void exit (int);' \
2542   'void exit (int);'
2543do
2544  cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550$ac_declaration
2551#include <stdlib.h>
2552int
2553main ()
2554{
2555exit (42);
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562  (eval $ac_compile) 2>conftest.er1
2563  ac_status=$?
2564  grep -v '^ *+' conftest.er1 >conftest.err
2565  rm -f conftest.er1
2566  cat conftest.err >&5
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); } &&
2569	 { ac_try='test -z "$ac_c_werror_flag"
2570			 || test ! -s conftest.err'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; } &&
2576	 { ac_try='test -s conftest.$ac_objext'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582  :
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587continue
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590  cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h.  */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h.  */
2596$ac_declaration
2597int
2598main ()
2599{
2600exit (42);
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext
2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607  (eval $ac_compile) 2>conftest.er1
2608  ac_status=$?
2609  grep -v '^ *+' conftest.er1 >conftest.err
2610  rm -f conftest.er1
2611  cat conftest.err >&5
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); } &&
2614	 { ac_try='test -z "$ac_c_werror_flag"
2615			 || test ! -s conftest.err'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621	 { ac_try='test -s conftest.$ac_objext'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; }; then
2627  break
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632fi
2633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634done
2635rm -f conftest*
2636if test -n "$ac_declaration"; then
2637  echo '#ifdef __cplusplus' >>confdefs.h
2638  echo $ac_declaration      >>confdefs.h
2639  echo '#endif'             >>confdefs.h
2640fi
2641
2642else
2643  echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646fi
2647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648ac_ext=c
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653
2654if test -z "$CC" ; then
2655  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2656echo "$as_me: error: Failed to find a C compiler!" >&2;}
2657   { (exit 1); exit 1; }; }
2658fi
2659# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2660case "$CC" in
2661  clang* ) ;;
2662  cl* | */cl* | CL* | */CL* )
2663    if test "$ac_cv_prog_cc_g" = yes ; then
2664      ac_cv_prog_cc_g=no
2665      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2666echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2667    fi ;;
2668  * )
2669    if test x"$CYGPATH_W" = x ; then
2670      CYGPATH_W=echo
2671    fi
2672    ;;
2673esac
2674CFLAGS="$save_cflags"
2675
2676# add automake conditional so we can recognize cl compiler in makefile
2677coin_cc_is_cl=false
2678case "$CC" in
2679  clang* ) ;;
2680  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2681    coin_cc_is_cl=true
2682    ;;
2683esac
2684
2685
2686if test $coin_cc_is_cl = true; then
2687  COIN_CC_IS_CL_TRUE=
2688  COIN_CC_IS_CL_FALSE='#'
2689else
2690  COIN_CC_IS_CL_TRUE='#'
2691  COIN_CC_IS_CL_FALSE=
2692fi
2693
2694
2695# Check if a project specific CFLAGS variable has been set
2696if test x$COIN_PRJCT != x; then
2697  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2698  if test x$coin_tmp = xset; then
2699    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2700  fi
2701fi
2702
2703if test x"$CFLAGS" = x; then
2704
2705  coin_add_cflags=
2706  coin_opt_cflags=
2707  coin_dbg_cflags=
2708  coin_warn_cflags=
2709
2710  if test "$GCC" = "yes"; then
2711    case "$CC" in
2712      icc* | */icc*)
2713        ;;
2714      *)
2715        coin_opt_cflags="-O3"
2716        coin_add_cflags="-pipe"
2717        coin_dbg_cflags="-g -O0"
2718        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2719    esac
2720  fi
2721  if test -z "$coin_opt_cflags"; then
2722    case $build in
2723      *-cygwin* | *-mingw*)
2724        case "$CC" in
2725          clang* ) ;;
2726          cl* | */cl* | CL* | */CL*)
2727            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2728              coin_opt_cflags='-MD -O2'
2729              coin_dbg_cflags='-MDd'
2730            else
2731              coin_opt_cflags='-MT -O2'
2732              coin_dbg_cflags='-MTd'
2733            fi
2734            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2735            ;;
2736          icl* | */icl* | ICL* | */ICL*)
2737            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2738              coin_opt_cflags='-MD -Ox'
2739              coin_dbg_cflags='-MDd -debug'
2740            else
2741              coin_opt_cflags='-MT -Ox'
2742              coin_dbg_cflags='-MTd -debug'
2743            fi
2744            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2745            ;;
2746        esac
2747        ;;
2748      *-linux-*)
2749        case "$CC" in
2750          icc* | */icc*)
2751            coin_opt_cflags="-O3 -ip -mp1"
2752            coin_add_cflags=""
2753            coin_dbg_cflags="-g"
2754            # Check if -i_dynamic is necessary (for new glibc library)
2755            CFLAGS=
2756            cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763int
2764main ()
2765{
2766int i=0; i++;
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext conftest$ac_exeext
2772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2773  (eval $ac_link) 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } &&
2780	 { ac_try='test -z "$ac_c_werror_flag"
2781			 || test ! -s conftest.err'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; } &&
2787	 { ac_try='test -s conftest$ac_exeext'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; }; then
2793  :
2794else
2795  echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798coin_add_cflags="-i_dynamic $coin_add_cflags"
2799fi
2800rm -f conftest.err conftest.$ac_objext \
2801      conftest$ac_exeext conftest.$ac_ext
2802            ;;
2803          pgcc* | */pgcc*)
2804            coin_opt_cflags="-fast"
2805            coin_add_cflags="-Kieee -pc 64"
2806            coin_dbg_cflags="-g"
2807            ;;
2808        esac
2809        ;;
2810      *-ibm-*)
2811        case "$CC" in
2812          xlc* | */xlc* | mpxlc* | */mpxlc*)
2813            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2814            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2815            coin_dbg_cflags="-g"
2816          ;;
2817        esac
2818        ;;
2819      *-hp-*)
2820        coin_opt_cflags="-O"
2821        coin_add_cflags="-Ae"
2822        coin_dbg_cflags="-g"
2823        ;;
2824      *-*-solaris*)
2825        coin_opt_cflags="-xO4"
2826        coin_dbg_cflags="-g"
2827        ;;
2828      *-sgi-*)
2829        coin_opt_cflags="-O -OPT:Olimit=0"
2830        coin_dbg_cflags="-g"
2831        ;;
2832    esac
2833  fi
2834
2835  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2836    coin_dbg_cflags="-g"
2837  fi
2838
2839  if test -z "$coin_opt_cflags"; then
2840    # Try if -O option works if nothing else is set
2841    CFLAGS="-O"
2842    cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848
2849int
2850main ()
2851{
2852int i=0; i++;
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext conftest$ac_exeext
2858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859  (eval $ac_link) 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } &&
2866	 { ac_try='test -z "$ac_c_werror_flag"
2867			 || test ! -s conftest.err'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873	 { ac_try='test -s conftest$ac_exeext'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879  coin_opt_cflags="-O"
2880else
2881  echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884fi
2885rm -f conftest.err conftest.$ac_objext \
2886      conftest$ac_exeext conftest.$ac_ext
2887  fi
2888
2889  # if PM doesn't want the warning messages, take them out
2890  if test x"$coin_skip_warn_cflags" = xyes; then
2891    coin_warn_cflags=
2892  fi
2893
2894  if test x${DBG_CFLAGS+set} != xset; then
2895    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2896  fi
2897  if test x${OPT_CFLAGS+set} != xset; then
2898    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2899  fi
2900
2901  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2902  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2903
2904  if test "$coin_debug_compile" = "true"; then
2905    CFLAGS="$DBG_CFLAGS"
2906  else
2907    CFLAGS="$OPT_CFLAGS"
2908  fi
2909else
2910  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2911  if test x${DBG_CFLAGS+set} != xset; then
2912    DBG_CFLAGS="$CFLAGS"
2913  fi
2914  if test x${OPT_CFLAGS+set} != xset; then
2915    OPT_CFLAGS="$CFLAGS"
2916  fi
2917fi
2918
2919# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2920if test x$COIN_PRJCT != x; then
2921  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2922fi
2923
2924# Try if CFLAGS works
2925save_CFLAGS="$CFLAGS"
2926cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h.  */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h.  */
2932
2933int
2934main ()
2935{
2936int i=0; i++;
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext conftest$ac_exeext
2942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943  (eval $ac_link) 2>conftest.er1
2944  ac_status=$?
2945  grep -v '^ *+' conftest.er1 >conftest.err
2946  rm -f conftest.er1
2947  cat conftest.err >&5
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); } &&
2950	 { ac_try='test -z "$ac_c_werror_flag"
2951			 || test ! -s conftest.err'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; } &&
2957	 { ac_try='test -s conftest$ac_exeext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  :
2964else
2965  echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968CFLAGS=
2969fi
2970rm -f conftest.err conftest.$ac_objext \
2971      conftest$ac_exeext conftest.$ac_ext
2972if test -z "$CFLAGS"; then
2973  { 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
2974echo "$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;}
2975  CFLAGS='-O'
2976  cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h.  */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h.  */
2982
2983int
2984main ()
2985{
2986int i=0; i++;
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext conftest$ac_exeext
2992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2993  (eval $ac_link) 2>conftest.er1
2994  ac_status=$?
2995  grep -v '^ *+' conftest.er1 >conftest.err
2996  rm -f conftest.er1
2997  cat conftest.err >&5
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); } &&
3000	 { ac_try='test -z "$ac_c_werror_flag"
3001			 || test ! -s conftest.err'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; } &&
3007	 { ac_try='test -s conftest$ac_exeext'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; }; then
3013  :
3014else
3015  echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018CFLAGS=
3019fi
3020rm -f conftest.err conftest.$ac_objext \
3021      conftest$ac_exeext conftest.$ac_ext
3022  if test -z "$CFLAGS"; then
3023    { 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
3024echo "$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;}
3025  fi
3026fi
3027
3028{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3029echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3030
3031
3032if test x"$MPICC" = x; then :; else
3033  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3034echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3035  CC="$MPICC"
3036fi
3037
3038# Correct the LD variable if we are using the MS or Intel-windows compiler
3039case "$CC" in
3040  clang* ) ;;
3041  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3042    LD=link
3043    ;;
3044esac
3045
3046ac_ext=c
3047ac_cpp='$CPP $CPPFLAGS'
3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051
3052
3053
3054# Get the name of the C++ compiler and appropriate compiler options
3055
3056 #Let's try if that overcomes configuration problem with VC++ 6.0
3057
3058ac_ext=cc
3059ac_cpp='$CXXCPP $CPPFLAGS'
3060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3063
3064
3065
3066
3067
3068
3069
3070coin_has_cxx=yes
3071
3072save_cxxflags="$CXXFLAGS"
3073# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3074case $build in
3075  *-cygwin* | *-mingw*)
3076      if test "$enable_msvc" = yes ; then
3077         comps="icl cl g++"
3078      else
3079         comps="g++ icl cl"
3080      fi ;;
3081  *-*-solaris*)
3082  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3083  *-darwin*) comps="clang++ g++ c++ CC" ;;
3084  *-linux-gnu*)
3085             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3086          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3087esac
3088
3089# We delete the cached value, since the test might not have been
3090# performed with our choice of compilers earlier
3091$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3092# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3093ac_ext=cc
3094ac_cpp='$CXXCPP $CPPFLAGS'
3095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3098if test -n "$ac_tool_prefix"; then
3099  for ac_prog in $CCC $comps
3100  do
3101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105if test "${ac_cv_prog_CXX+set}" = set; then
3106  echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108  if test -n "$CXX"; then
3109  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116  for ac_exec_ext in '' $ac_executable_extensions; do
3117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123done
3124
3125fi
3126fi
3127CXX=$ac_cv_prog_CXX
3128if test -n "$CXX"; then
3129  echo "$as_me:$LINENO: result: $CXX" >&5
3130echo "${ECHO_T}$CXX" >&6
3131else
3132  echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
3134fi
3135
3136    test -n "$CXX" && break
3137  done
3138fi
3139if test -z "$CXX"; then
3140  ac_ct_CXX=$CXX
3141  for ac_prog in $CCC $comps
3142do
3143  # Extract the first word of "$ac_prog", so it can be a program name with args.
3144set dummy $ac_prog; ac_word=$2
3145echo "$as_me:$LINENO: checking for $ac_word" >&5
3146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3148  echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150  if test -n "$ac_ct_CXX"; then
3151  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158  for ac_exec_ext in '' $ac_executable_extensions; do
3159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    ac_cv_prog_ac_ct_CXX="$ac_prog"
3161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165done
3166
3167fi
3168fi
3169ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3170if test -n "$ac_ct_CXX"; then
3171  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3172echo "${ECHO_T}$ac_ct_CXX" >&6
3173else
3174  echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176fi
3177
3178  test -n "$ac_ct_CXX" && break
3179done
3180test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3181
3182  CXX=$ac_ct_CXX
3183fi
3184
3185
3186# Provide some information about the compiler.
3187echo "$as_me:$LINENO:" \
3188     "checking for C++ compiler version" >&5
3189ac_compiler=`set X $ac_compile; echo $2`
3190{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3191  (eval $ac_compiler --version </dev/null >&5) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }
3195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3196  (eval $ac_compiler -v </dev/null >&5) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3201  (eval $ac_compiler -V </dev/null >&5) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }
3205
3206echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3207echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3208if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3209  echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211  cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h.  */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h.  */
3217
3218int
3219main ()
3220{
3221#ifndef __GNUC__
3222       choke me
3223#endif
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231  (eval $ac_compile) 2>conftest.er1
3232  ac_status=$?
3233  grep -v '^ *+' conftest.er1 >conftest.err
3234  rm -f conftest.er1
3235  cat conftest.err >&5
3236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237  (exit $ac_status); } &&
3238	 { ac_try='test -z "$ac_cxx_werror_flag"
3239			 || test ! -s conftest.err'
3240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241  (eval $ac_try) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }; } &&
3245	 { ac_try='test -s conftest.$ac_objext'
3246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247  (eval $ac_try) 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }; }; then
3251  ac_compiler_gnu=yes
3252else
3253  echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256ac_compiler_gnu=no
3257fi
3258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3260
3261fi
3262echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3263echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3264GXX=`test $ac_compiler_gnu = yes && echo yes`
3265ac_test_CXXFLAGS=${CXXFLAGS+set}
3266ac_save_CXXFLAGS=$CXXFLAGS
3267CXXFLAGS="-g"
3268echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3269echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3270if test "${ac_cv_prog_cxx_g+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h.  */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h.  */
3279
3280int
3281main ()
3282{
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290  (eval $ac_compile) 2>conftest.er1
3291  ac_status=$?
3292  grep -v '^ *+' conftest.er1 >conftest.err
3293  rm -f conftest.er1
3294  cat conftest.err >&5
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); } &&
3297	 { ac_try='test -z "$ac_cxx_werror_flag"
3298			 || test ! -s conftest.err'
3299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300  (eval $ac_try) 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; } &&
3304	 { ac_try='test -s conftest.$ac_objext'
3305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306  (eval $ac_try) 2>&5
3307  ac_status=$?
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); }; }; then
3310  ac_cv_prog_cxx_g=yes
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315ac_cv_prog_cxx_g=no
3316fi
3317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318fi
3319echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3320echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3321if test "$ac_test_CXXFLAGS" = set; then
3322  CXXFLAGS=$ac_save_CXXFLAGS
3323elif test $ac_cv_prog_cxx_g = yes; then
3324  if test "$GXX" = yes; then
3325    CXXFLAGS="-g -O2"
3326  else
3327    CXXFLAGS="-g"
3328  fi
3329else
3330  if test "$GXX" = yes; then
3331    CXXFLAGS="-O2"
3332  else
3333    CXXFLAGS=
3334  fi
3335fi
3336for ac_declaration in \
3337   '' \
3338   'extern "C" void std::exit (int) throw (); using std::exit;' \
3339   'extern "C" void std::exit (int); using std::exit;' \
3340   'extern "C" void exit (int) throw ();' \
3341   'extern "C" void exit (int);' \
3342   'void exit (int);'
3343do
3344  cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350$ac_declaration
3351#include <stdlib.h>
3352int
3353main ()
3354{
3355exit (42);
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext
3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362  (eval $ac_compile) 2>conftest.er1
3363  ac_status=$?
3364  grep -v '^ *+' conftest.er1 >conftest.err
3365  rm -f conftest.er1
3366  cat conftest.err >&5
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); } &&
3369	 { ac_try='test -z "$ac_cxx_werror_flag"
3370			 || test ! -s conftest.err'
3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372  (eval $ac_try) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; } &&
3376	 { ac_try='test -s conftest.$ac_objext'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; }; then
3382  :
3383else
3384  echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387continue
3388fi
3389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390  cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396$ac_declaration
3397int
3398main ()
3399{
3400exit (42);
3401  ;
3402  return 0;
3403}
3404_ACEOF
3405rm -f conftest.$ac_objext
3406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407  (eval $ac_compile) 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } &&
3414	 { ac_try='test -z "$ac_cxx_werror_flag"
3415			 || test ! -s conftest.err'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; } &&
3421	 { ac_try='test -s conftest.$ac_objext'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; }; then
3427  break
3428else
3429  echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434done
3435rm -f conftest*
3436if test -n "$ac_declaration"; then
3437  echo '#ifdef __cplusplus' >>confdefs.h
3438  echo $ac_declaration      >>confdefs.h
3439  echo '#endif'             >>confdefs.h
3440fi
3441
3442ac_ext=cc
3443ac_cpp='$CXXCPP $CPPFLAGS'
3444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3447
3448
3449#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3450#thus, we test here whether $CXX is actually working
3451ac_ext=cc
3452ac_cpp='$CXXCPP $CPPFLAGS'
3453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3456
3457echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3458echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3459cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469int i=0;
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476  (eval $ac_compile) 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } &&
3483	 { ac_try='test -z "$ac_cxx_werror_flag"
3484			 || test ! -s conftest.err'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; } &&
3490	 { ac_try='test -s conftest.$ac_objext'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; }; then
3496  echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
3498else
3499  echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3505echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3506   { (exit 1); exit 1; }; }
3507
3508fi
3509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510ac_ext=cc
3511ac_cpp='$CXXCPP $CPPFLAGS'
3512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3515
3516
3517coin_cxx_is_cl=false
3518# It seems that we need to cleanup something here for the Windows
3519case "$CXX" in
3520  clang* | */clang*) ;;
3521  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3522    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3523    mv confdefs.hh confdefs.h
3524    coin_cxx_is_cl=true
3525    ;;
3526esac
3527
3528# add automake conditional so we can recognize cl compiler in makefile
3529
3530
3531if test $coin_cxx_is_cl = true; then
3532  COIN_CXX_IS_CL_TRUE=
3533  COIN_CXX_IS_CL_FALSE='#'
3534else
3535  COIN_CXX_IS_CL_TRUE='#'
3536  COIN_CXX_IS_CL_FALSE=
3537fi
3538
3539
3540# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3541case "$CXX" in
3542  clang* ) ;;
3543  cl* | */cl* | CL* | */CL* )
3544    if test "$ac_cv_prog_cxx_g" = yes ; then
3545      ac_cv_prog_cxx_g=no
3546      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3547echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3548    fi ;;
3549  * )
3550    if test x"$CYGPATH_W" = x ; then
3551      CYGPATH_W=echo
3552    fi
3553    ;;
3554esac
3555CXXFLAGS="$save_cxxflags"
3556
3557# Check if a project specific CXXFLAGS variable has been set
3558if test x$COIN_PRJCT != x; then
3559  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3560  if test x$coin_tmp = xset; then
3561    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3562  fi
3563fi
3564
3565if test x"$CXXFLAGS" = x; then
3566
3567# ToDo decide whether we want -DNDEBUG for optimization
3568  coin_add_cxxflags=
3569  coin_opt_cxxflags=
3570  coin_dbg_cxxflags=
3571  coin_warn_cxxflags=
3572
3573  if test "$GXX" = "yes"; then
3574    case "$CXX" in
3575      icpc* | */icpc*)
3576        ;;
3577      *)
3578# ToDo decide about unroll-loops
3579        coin_opt_cxxflags="-O3"
3580        coin_add_cxxflags="-pipe"
3581        coin_dbg_cxxflags="-g -O0"
3582        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3583    esac
3584  fi
3585
3586# Note that we do not need to cover GCC in the following tests.
3587
3588  if test -z "$coin_opt_cxxflags"; then
3589    case $build in
3590      *-cygwin* | *-mingw*)
3591        case "$CXX" in
3592          clang* ) ;;
3593          cl* | */cl* | CL* | */CL*)
3594            # The MT and MTd options are mutually exclusive
3595            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3596               coin_opt_cxxflags='-MD -O2'
3597               coin_dbg_cxxflags='-MDd'
3598            else
3599               coin_opt_cxxflags='-MT -O2'
3600               coin_dbg_cxxflags='-MTd'
3601            fi
3602            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3603            ;;
3604          icl* | */icl* | ICL* | */ICL*)
3605          # The MT and MTd options are mutually exclusive
3606            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3607              coin_opt_cxxflags='-MD -Ox'
3608              coin_dbg_cxxflags='-MDd -debug'
3609            else
3610              coin_opt_cxxflags='-MT -Ox'
3611              coin_dbg_cxxflags='-MTd -debug'
3612            fi
3613            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3614            ;;
3615        esac
3616        ;;
3617      *-linux-*)
3618        case "$CXX" in
3619          icpc* | */icpc*)
3620            coin_opt_cxxflags="-O3 -ip -mp1"
3621            coin_add_cxxflags=""
3622            coin_dbg_cxxflags="-g"
3623            # Check if -i_dynamic is necessary (for new glibc library)
3624            CXXFLAGS=
3625            cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h.  */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h.  */
3631
3632int
3633main ()
3634{
3635int i=0; i++;
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext conftest$ac_exeext
3641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642  (eval $ac_link) 2>conftest.er1
3643  ac_status=$?
3644  grep -v '^ *+' conftest.er1 >conftest.err
3645  rm -f conftest.er1
3646  cat conftest.err >&5
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); } &&
3649	 { ac_try='test -z "$ac_cxx_werror_flag"
3650			 || test ! -s conftest.err'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; } &&
3656	 { ac_try='test -s conftest$ac_exeext'
3657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658  (eval $ac_try) 2>&5
3659  ac_status=$?
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); }; }; then
3662  :
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3668fi
3669rm -f conftest.err conftest.$ac_objext \
3670      conftest$ac_exeext conftest.$ac_ext
3671            ;;
3672          pgCC* | */pgCC*)
3673            coin_opt_cxxflags="-fast"
3674            coin_add_cxxflags="-Kieee -pc 64"
3675            coin_dbg_cxxflags="-g"
3676            ;;
3677        esac
3678        ;;
3679      *-ibm-*)
3680        case "$CXX" in
3681          xlC* | */xlC* | mpxlC* | */mpxlC*)
3682            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3683            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3684            coin_dbg_cxxflags="-g"
3685            ;;
3686        esac
3687        ;;
3688      *-hp-*)
3689        case "$CXX" in
3690          aCC* | */aCC* )
3691            coin_opt_cxxflags="-O"
3692            coin_add_cxxflags="-AA"
3693            coin_dbg_cxxflags="-g"
3694            ;;
3695        esac
3696        ;;
3697      *-*-solaris*)
3698          coin_opt_cxxflags="-O4"
3699          coin_dbg_cxxflags="-g"
3700        ;;
3701    esac
3702  fi
3703
3704# Generic flag settings. If these don't work, add a case above.
3705
3706  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3707    coin_dbg_cxxflags="-g"
3708  fi
3709
3710  if test -z "$coin_opt_cxxflags"; then
3711    # Try if -O option works if nothing else is set
3712    CXXFLAGS=-O
3713    cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719
3720int
3721main ()
3722{
3723int i=0; i++;
3724  ;
3725  return 0;
3726}
3727_ACEOF
3728rm -f conftest.$ac_objext conftest$ac_exeext
3729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730  (eval $ac_link) 2>conftest.er1
3731  ac_status=$?
3732  grep -v '^ *+' conftest.er1 >conftest.err
3733  rm -f conftest.er1
3734  cat conftest.err >&5
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); } &&
3737	 { ac_try='test -z "$ac_cxx_werror_flag"
3738			 || test ! -s conftest.err'
3739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740  (eval $ac_try) 2>&5
3741  ac_status=$?
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); }; } &&
3744	 { ac_try='test -s conftest$ac_exeext'
3745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746  (eval $ac_try) 2>&5
3747  ac_status=$?
3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749  (exit $ac_status); }; }; then
3750  coin_opt_cxxflags="-O"
3751else
3752  echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755fi
3756rm -f conftest.err conftest.$ac_objext \
3757      conftest$ac_exeext conftest.$ac_ext
3758  fi
3759
3760  # if PM doesn't want the warning messages, take them out
3761  if test x"$coin_skip_warn_cxxflags" = xyes; then
3762    coin_warn_cxxflags=
3763  fi
3764
3765# Do final setup of flags based on values determined above.
3766
3767  if test x${DBG_CXXFLAGS+set} != xset; then
3768    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3769  fi
3770  if test x${OPT_CXXFLAGS+set} != xset; then
3771    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3772  fi
3773
3774  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3775  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3776
3777  if test "$coin_debug_compile" = "true"; then
3778    CXXFLAGS="$DBG_CXXFLAGS"
3779  else
3780    CXXFLAGS="$OPT_CXXFLAGS"
3781  fi
3782
3783# Handle the case where CXXFLAGS was set externally.
3784else
3785  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3786  if test x${DBG_CXXFLAGS+set} != xset; then
3787    DBG_CXXFLAGS="$CXXFLAGS"
3788  fi
3789  if test x${OPT_CXXFLAGS+set} != xset; then
3790    OPT_CXXFLAGS="$CXXFLAGS"
3791  fi
3792fi
3793
3794# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3795if test x$COIN_PRJCT != x; then
3796  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3797fi
3798
3799# Try if CXXFLAGS works
3800save_CXXFLAGS="$CXXFLAGS"
3801cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811int i=0; i++;
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext conftest$ac_exeext
3817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818  (eval $ac_link) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } &&
3825	 { ac_try='test -z "$ac_cxx_werror_flag"
3826			 || test ! -s conftest.err'
3827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828  (eval $ac_try) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); }; } &&
3832	 { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  :
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843CXXFLAGS=
3844fi
3845rm -f conftest.err conftest.$ac_objext \
3846      conftest$ac_exeext conftest.$ac_ext
3847if test -z "$CXXFLAGS"; then
3848  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3849echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3850  CXXFLAGS='-O'
3851  cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h.  */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861int i=0; i++;
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext conftest$ac_exeext
3867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868  (eval $ac_link) 2>conftest.er1
3869  ac_status=$?
3870  grep -v '^ *+' conftest.er1 >conftest.err
3871  rm -f conftest.er1
3872  cat conftest.err >&5
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); } &&
3875	 { ac_try='test -z "$ac_cxx_werror_flag"
3876			 || test ! -s conftest.err'
3877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878  (eval $ac_try) 2>&5
3879  ac_status=$?
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); }; } &&
3882	 { ac_try='test -s conftest$ac_exeext'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; }; then
3888  :
3889else
3890  echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893CXXFLAGS=
3894fi
3895rm -f conftest.err conftest.$ac_objext \
3896      conftest$ac_exeext conftest.$ac_ext
3897  if test -z "$CXXFLAGS"; then
3898    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
3899echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
3900  fi
3901fi
3902
3903{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3904echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3905
3906
3907if test x"$MPICXX" = x; then :; else
3908  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3909echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3910  CXX="$MPICXX"
3911fi
3912
3913# correct the LD variable in a build with MS or Intel-windows compiler
3914case "$CXX" in
3915  clang* ) ;;
3916  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3917    LD=link
3918    ;;
3919esac
3920
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928
3929# Get the name of the Fortran compiler and appropriate compiler options
3930case $build in
3931  *-cygwin* | *-mingw*)
3932     if test "$enable_msvc" = yes ; then
3933       coin_f77_comps="ifort fl32 compile_f2c"
3934     else
3935       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3936     fi ;;
3937  *-*-solaris*)
3938     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3939  *-linux-gnu*)
3940     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3941  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3942 esac
3943
3944
3945
3946
3947
3948ac_ext=f
3949ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3950ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3952
3953
3954
3955
3956
3957
3958coin_has_f77=yes
3959
3960save_fflags="$FFLAGS"
3961
3962# We delete the cached value, since the test might not have been
3963# performed with our choice of compilers earlier
3964$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3965
3966# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3967# coin_f77_comps to see if there's a program that matches one of the names.
3968# If there's no such program, F77 = unavailable. If we match the name,
3969# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3970# compiler.
3971# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3972
3973
3974{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3975echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3976if test -n "$ac_tool_prefix"; then
3977  for ac_prog in $coin_f77_comps
3978  do
3979    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3981echo "$as_me:$LINENO: checking for $ac_word" >&5
3982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983if test "${ac_cv_prog_F77+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  if test -n "$F77"; then
3987  ac_cv_prog_F77="$F77" # Let the user override the test.
3988else
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994  for ac_exec_ext in '' $ac_executable_extensions; do
3995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998    break 2
3999  fi
4000done
4001done
4002
4003fi
4004fi
4005F77=$ac_cv_prog_F77
4006if test -n "$F77"; then
4007  echo "$as_me:$LINENO: result: $F77" >&5
4008echo "${ECHO_T}$F77" >&6
4009else
4010  echo "$as_me:$LINENO: result: no" >&5
4011echo "${ECHO_T}no" >&6
4012fi
4013
4014    test -n "$F77" && break
4015  done
4016fi
4017if test -z "$F77"; then
4018  ac_ct_F77=$F77
4019  for ac_prog in $coin_f77_comps
4020do
4021  # Extract the first word of "$ac_prog", so it can be a program name with args.
4022set dummy $ac_prog; ac_word=$2
4023echo "$as_me:$LINENO: checking for $ac_word" >&5
4024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4026  echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028  if test -n "$ac_ct_F77"; then
4029  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034  IFS=$as_save_IFS
4035  test -z "$as_dir" && as_dir=.
4036  for ac_exec_ext in '' $ac_executable_extensions; do
4037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038    ac_cv_prog_ac_ct_F77="$ac_prog"
4039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040    break 2
4041  fi
4042done
4043done
4044
4045fi
4046fi
4047ac_ct_F77=$ac_cv_prog_ac_ct_F77
4048if test -n "$ac_ct_F77"; then
4049  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4050echo "${ECHO_T}$ac_ct_F77" >&6
4051else
4052  echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054fi
4055
4056  test -n "$ac_ct_F77" && break
4057done
4058test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4059
4060  F77=$ac_ct_F77
4061fi
4062
4063
4064if test "$F77" != "unavailable" ; then
4065  ac_ext=f
4066ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4067ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4069if test -n "$ac_tool_prefix"; then
4070  for ac_prog in $coin_f77_comps
4071  do
4072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4074echo "$as_me:$LINENO: checking for $ac_word" >&5
4075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076if test "${ac_cv_prog_F77+set}" = set; then
4077  echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079  if test -n "$F77"; then
4080  ac_cv_prog_F77="$F77" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087  for ac_exec_ext in '' $ac_executable_extensions; do
4088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094done
4095
4096fi
4097fi
4098F77=$ac_cv_prog_F77
4099if test -n "$F77"; then
4100  echo "$as_me:$LINENO: result: $F77" >&5
4101echo "${ECHO_T}$F77" >&6
4102else
4103  echo "$as_me:$LINENO: result: no" >&5
4104echo "${ECHO_T}no" >&6
4105fi
4106
4107    test -n "$F77" && break
4108  done
4109fi
4110if test -z "$F77"; then
4111  ac_ct_F77=$F77
4112  for ac_prog in $coin_f77_comps
4113do
4114  # Extract the first word of "$ac_prog", so it can be a program name with args.
4115set dummy $ac_prog; ac_word=$2
4116echo "$as_me:$LINENO: checking for $ac_word" >&5
4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4119  echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121  if test -n "$ac_ct_F77"; then
4122  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129  for ac_exec_ext in '' $ac_executable_extensions; do
4130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131    ac_cv_prog_ac_ct_F77="$ac_prog"
4132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133    break 2
4134  fi
4135done
4136done
4137
4138fi
4139fi
4140ac_ct_F77=$ac_cv_prog_ac_ct_F77
4141if test -n "$ac_ct_F77"; then
4142  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4143echo "${ECHO_T}$ac_ct_F77" >&6
4144else
4145  echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147fi
4148
4149  test -n "$ac_ct_F77" && break
4150done
4151
4152  F77=$ac_ct_F77
4153fi
4154
4155
4156# Provide some information about the compiler.
4157echo "$as_me:4157:" \
4158     "checking for Fortran 77 compiler version" >&5
4159ac_compiler=`set X $ac_compile; echo $2`
4160{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4161  (eval $ac_compiler --version </dev/null >&5) 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); }
4165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4166  (eval $ac_compiler -v </dev/null >&5) 2>&5
4167  ac_status=$?
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); }
4170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4171  (eval $ac_compiler -V </dev/null >&5) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); }
4175rm -f a.out
4176
4177# If we don't use `.F' as extension, the preprocessor is not run on the
4178# input file.  (Note that this only needs to work for GNU compilers.)
4179ac_save_ext=$ac_ext
4180ac_ext=F
4181echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4182echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4183if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  cat >conftest.$ac_ext <<_ACEOF
4187      program main
4188#ifndef __GNUC__
4189       choke me
4190#endif
4191
4192      end
4193_ACEOF
4194rm -f conftest.$ac_objext
4195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196  (eval $ac_compile) 2>conftest.er1
4197  ac_status=$?
4198  grep -v '^ *+' conftest.er1 >conftest.err
4199  rm -f conftest.er1
4200  cat conftest.err >&5
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); } &&
4203	 { ac_try='test -z "$ac_f77_werror_flag"
4204			 || test ! -s conftest.err'
4205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206  (eval $ac_try) 2>&5
4207  ac_status=$?
4208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); }; } &&
4210	 { ac_try='test -s conftest.$ac_objext'
4211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212  (eval $ac_try) 2>&5
4213  ac_status=$?
4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215  (exit $ac_status); }; }; then
4216  ac_compiler_gnu=yes
4217else
4218  echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221ac_compiler_gnu=no
4222fi
4223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4225
4226fi
4227echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4228echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4229ac_ext=$ac_save_ext
4230ac_test_FFLAGS=${FFLAGS+set}
4231ac_save_FFLAGS=$FFLAGS
4232FFLAGS=
4233echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4234echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4235if test "${ac_cv_prog_f77_g+set}" = set; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  FFLAGS=-g
4239cat >conftest.$ac_ext <<_ACEOF
4240      program main
4241
4242      end
4243_ACEOF
4244rm -f conftest.$ac_objext
4245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4246  (eval $ac_compile) 2>conftest.er1
4247  ac_status=$?
4248  grep -v '^ *+' conftest.er1 >conftest.err
4249  rm -f conftest.er1
4250  cat conftest.err >&5
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); } &&
4253	 { ac_try='test -z "$ac_f77_werror_flag"
4254			 || test ! -s conftest.err'
4255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256  (eval $ac_try) 2>&5
4257  ac_status=$?
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); }; } &&
4260	 { ac_try='test -s conftest.$ac_objext'
4261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262  (eval $ac_try) 2>&5
4263  ac_status=$?
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); }; }; then
4266  ac_cv_prog_f77_g=yes
4267else
4268  echo "$as_me: failed program was:" >&5
4269sed 's/^/| /' conftest.$ac_ext >&5
4270
4271ac_cv_prog_f77_g=no
4272fi
4273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4274
4275fi
4276echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4277echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4278if test "$ac_test_FFLAGS" = set; then
4279  FFLAGS=$ac_save_FFLAGS
4280elif test $ac_cv_prog_f77_g = yes; then
4281  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4282    FFLAGS="-g -O2"
4283  else
4284    FFLAGS="-g"
4285  fi
4286else
4287  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4288    FFLAGS="-O2"
4289  else
4290    FFLAGS=
4291  fi
4292fi
4293
4294G77=`test $ac_compiler_gnu = yes && echo yes`
4295ac_ext=f
4296ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4297ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4299
4300else
4301  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4302echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4303fi
4304
4305FFLAGS="$save_fflags"
4306
4307# Check if a project specific FFLAGS variable has been set
4308if test x$COIN_PRJCT != x; then
4309  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4310  if test x$coin_tmp = xset; then
4311    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4312  fi
4313fi
4314
4315if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4316
4317  coin_add_fflags=
4318  coin_opt_fflags=
4319  coin_dbg_fflags=
4320  coin_warn_fflags=
4321
4322  if test "$G77" = "yes"; then
4323    coin_opt_fflags="-O3"
4324    coin_add_fflags="-pipe"
4325    coin_dbg_fflags="-g -O0"
4326  else
4327    case $build in
4328      *-cygwin* | *-mingw*)
4329        case $F77 in
4330          ifort* | */ifort* | IFORT* | */IFORT* )
4331            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4332              coin_opt_fflags='-MD -O3'
4333              coin_dbg_fflags='-MDd -debug'
4334            else
4335              coin_opt_fflags='-MT -O3'
4336              coin_dbg_fflags='-MTd -debug'
4337            fi
4338            coin_add_fflags='-fpp -nologo'
4339          ;;
4340          compile_f2c*)
4341            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4342              coin_opt_fflags='-MD -O2'
4343              coin_dbg_fflags='-MDd'
4344            else
4345              coin_opt_fflags='-MT -O2'
4346              coin_dbg_fflags='-MTd'
4347            fi
4348            coin_add_fflags='-nologo -wd4996'
4349          ;;
4350        esac
4351        ;;
4352      *-linux-*)
4353        case $F77 in
4354          ifc* | */ifc* | ifort* | */ifort*)
4355            coin_opt_fflags="-O3 -ip"
4356            coin_add_fflags="-cm -w90 -w95"
4357            coin_dbg_fflags="-g -CA -CB -CS"
4358            # Check if -i_dynamic is necessary (for new glibc library)
4359            FFLAGS=
4360            cat >conftest.$ac_ext <<_ACEOF
4361      program main
4362      write(*,*) 'Hello world'
4363      end
4364_ACEOF
4365rm -f conftest.$ac_objext conftest$ac_exeext
4366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367  (eval $ac_link) 2>conftest.er1
4368  ac_status=$?
4369  grep -v '^ *+' conftest.er1 >conftest.err
4370  rm -f conftest.er1
4371  cat conftest.err >&5
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); } &&
4374	 { ac_try='test -z "$ac_f77_werror_flag"
4375			 || test ! -s conftest.err'
4376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377  (eval $ac_try) 2>&5
4378  ac_status=$?
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); }; } &&
4381	 { ac_try='test -s conftest$ac_exeext'
4382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383  (eval $ac_try) 2>&5
4384  ac_status=$?
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); }; }; then
4387  :
4388else
4389  echo "$as_me: failed program was:" >&5
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
4392coin_add_fflags="-i_dynamic $coin_add_fflags"
4393fi
4394rm -f conftest.err conftest.$ac_objext \
4395      conftest$ac_exeext conftest.$ac_ext
4396            ;;
4397          pgf77* | */pgf77* | pgf90* | */pgf90*)
4398            coin_opt_fflags="-fast"
4399            coin_add_fflags="-Kieee -pc 64"
4400            coin_dbg_fflags="-g"
4401          ;;
4402        esac
4403        ;;
4404      *-ibm-*)
4405        case "$F77" in
4406          xlf* | */xlf* | mpxlf* | */mpxlf* )
4407            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4408            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4409            coin_dbg_fflags="-g -C"
4410            ;;
4411        esac
4412        ;;
4413      *-hp-*)
4414        coin_opt_fflags="+O3"
4415        coin_add_fflags="+U77"
4416        coin_dbg_fflags="-C -g"
4417        ;;
4418      *-*-solaris*)
4419        coin_opt_fflags="-O4"
4420        coin_dbg_fflags="-g"
4421        ;;
4422      *-sgi-*)
4423        coin_opt_fflags="-O5 -OPT:Olimit=0"
4424        coin_dbg_fflags="-g"
4425        ;;
4426    esac
4427  fi
4428
4429  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4430    coin_dbg_fflags="-g"
4431  fi
4432
4433  if test -z "$coin_opt_fflags"; then
4434    # Try if -O option works if nothing else is set
4435    FFLAGS=-O
4436    cat >conftest.$ac_ext <<_ACEOF
4437      program main
4438      integer i
4439      end
4440_ACEOF
4441rm -f conftest.$ac_objext conftest$ac_exeext
4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443  (eval $ac_link) 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } &&
4450	 { ac_try='test -z "$ac_f77_werror_flag"
4451			 || test ! -s conftest.err'
4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453  (eval $ac_try) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; } &&
4457	 { ac_try='test -s conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  coin_opt_fflags="-O"
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468fi
4469rm -f conftest.err conftest.$ac_objext \
4470      conftest$ac_exeext conftest.$ac_ext
4471  fi
4472
4473  # if PM doesn't want the warning messages, take them out
4474  if test x"$coin_skip_warn_fflags" = xyes; then
4475    coin_warn_fflags=
4476  fi
4477
4478  if test x${DBG_FFLAGS+set} != xset; then
4479    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4480  fi
4481  if test x${OPT_FFLAGS+set} != xset; then
4482    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4483  fi
4484
4485  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4486  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4487
4488  if test "$coin_debug_compile" = "true"; then
4489    FFLAGS="$DBG_FFLAGS"
4490  else
4491    FFLAGS="$OPT_FFLAGS"
4492  fi
4493else
4494  FFLAGS="$FFLAGS $ADD_FFLAGS"
4495  if test x${DBG_FFLAGS+set} != xset; then
4496    DBG_FFLAGS="$FFLAGS"
4497  fi
4498  if test x${OPT_FFLAGS+set} != xset; then
4499    OPT_FFLAGS="$FFLAGS"
4500  fi
4501fi
4502
4503# Try if FFLAGS works
4504if test "$F77" != "unavailable" ; then
4505  cat >conftest.$ac_ext <<_ACEOF
4506      program main
4507      integer i
4508      end
4509_ACEOF
4510rm -f conftest.$ac_objext conftest$ac_exeext
4511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512  (eval $ac_link) 2>conftest.er1
4513  ac_status=$?
4514  grep -v '^ *+' conftest.er1 >conftest.err
4515  rm -f conftest.er1
4516  cat conftest.err >&5
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); } &&
4519	 { ac_try='test -z "$ac_f77_werror_flag"
4520			 || test ! -s conftest.err'
4521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522  (eval $ac_try) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; } &&
4526	 { ac_try='test -s conftest$ac_exeext'
4527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528  (eval $ac_try) 2>&5
4529  ac_status=$?
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); }; }; then
4532  :
4533else
4534  echo "$as_me: failed program was:" >&5
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
4537FFLAGS=
4538fi
4539rm -f conftest.err conftest.$ac_objext \
4540      conftest$ac_exeext conftest.$ac_ext
4541  if test -z "$FFLAGS"; then
4542    { 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
4543echo "$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;}
4544    FFLAGS='-O'
4545    cat >conftest.$ac_ext <<_ACEOF
4546      program main
4547      integer i
4548      end
4549_ACEOF
4550rm -f conftest.$ac_objext conftest$ac_exeext
4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552  (eval $ac_link) 2>conftest.er1
4553  ac_status=$?
4554  grep -v '^ *+' conftest.er1 >conftest.err
4555  rm -f conftest.er1
4556  cat conftest.err >&5
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); } &&
4559	 { ac_try='test -z "$ac_f77_werror_flag"
4560			 || test ! -s conftest.err'
4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562  (eval $ac_try) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; } &&
4566	 { ac_try='test -s conftest$ac_exeext'
4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568  (eval $ac_try) 2>&5
4569  ac_status=$?
4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571  (exit $ac_status); }; }; then
4572  :
4573else
4574  echo "$as_me: failed program was:" >&5
4575sed 's/^/| /' conftest.$ac_ext >&5
4576
4577FFLAGS=
4578fi
4579rm -f conftest.err conftest.$ac_objext \
4580      conftest$ac_exeext conftest.$ac_ext
4581    if test -z "$FFLAGS"; then
4582      { 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
4583echo "$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;}
4584    fi
4585  fi
4586fi
4587
4588{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4589echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4590
4591
4592if test x"$MPIF77" = x; then :; else
4593  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4594echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4595  F77="$MPIF77"
4596fi
4597
4598# correct the LD variable if we use the intel fortran compiler in windows
4599case $build in
4600  *-cygwin* | *-mingw*)
4601    case "$F77" in
4602      ifort* | */ifort* | IFORT* | */IFORT*)
4603        LD=link
4604      ;;
4605    esac
4606  ;;
4607esac
4608
4609ac_ext=c
4610ac_cpp='$CPP $CPPFLAGS'
4611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614
4615
4616
4617# Initialize automake and libtool
4618# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4619{
4620
4621
4622
4623# START
4624
4625coin_disable_shared=no
4626# Test if force_shared has been set
4627if test "x" = xforce_shared; then
4628  if test x$enable_shared = xno; then
4629    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4630echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4631   { (exit 1); exit 1; }; }
4632  fi
4633  enable_shared=yes;
4634else
4635  case $build in
4636    *-cygwin* | *-mingw*)
4637      coin_disable_shared=yes
4638      if test x"$enable_shared" = xyes; then
4639        case "$CC" in
4640          clang* )
4641            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4642echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4643            ;;
4644          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4645            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4646echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4647            ;;
4648          *gcc*)
4649            if test x"$enable_dependency_linking" = xyes; then
4650              coin_disable_shared=no
4651            else
4652              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4653echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4654            fi
4655            ;;
4656          *)
4657            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4658echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4659            ;;
4660        esac
4661      fi
4662    ;;
4663    *-aix*)
4664      coin_disable_shared=yes
4665      platform=AIX
4666      if test x"$enable_shared" = xyes; then
4667        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4668echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4669      fi
4670    ;;
4671  esac
4672fi
4673if test x"$coin_disable_shared" = xyes; then
4674  if test x"$enable_shared" = xyes; then
4675    :
4676  else
4677    # we don't disable shared, because it was not selected anyway
4678    coin_disable_shared=no
4679  fi
4680  enable_shared=no
4681fi
4682# By default, we only want the shared objects to be compiled
4683# Check whether --enable-static or --disable-static was given.
4684if test "${enable_static+set}" = set; then
4685  enableval="$enable_static"
4686  p=${PACKAGE-default}
4687    case $enableval in
4688    yes) enable_static=yes ;;
4689    no) enable_static=no ;;
4690    *)
4691     enable_static=no
4692      # Look at the argument we got.  We use all the common list separators.
4693      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4694      for pkg in $enableval; do
4695	IFS="$lt_save_ifs"
4696	if test "X$pkg" = "X$p"; then
4697	  enable_static=yes
4698	fi
4699      done
4700      IFS="$lt_save_ifs"
4701      ;;
4702    esac
4703else
4704  enable_static=no
4705fi;
4706
4707
4708
4709
4710# Initialize automake
4711echo "$as_me:$LINENO: checking for egrep" >&5
4712echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4713if test "${ac_cv_prog_egrep+set}" = set; then
4714  echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4717    then ac_cv_prog_egrep='grep -E'
4718    else ac_cv_prog_egrep='egrep'
4719    fi
4720fi
4721echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4722echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4723 EGREP=$ac_cv_prog_egrep
4724
4725
4726echo "$as_me:$LINENO: checking whether ln -s works" >&5
4727echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4728LN_S=$as_ln_s
4729if test "$LN_S" = "ln -s"; then
4730  echo "$as_me:$LINENO: result: yes" >&5
4731echo "${ECHO_T}yes" >&6
4732else
4733  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4734echo "${ECHO_T}no, using $LN_S" >&6
4735fi
4736
4737am__api_version="1.9"
4738# Find a good install program.  We prefer a C program (faster),
4739# so one script is as good as another.  But avoid the broken or
4740# incompatible versions:
4741# SysV /etc/install, /usr/sbin/install
4742# SunOS /usr/etc/install
4743# IRIX /sbin/install
4744# AIX /bin/install
4745# AmigaOS /C/install, which installs bootblocks on floppy discs
4746# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4747# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4748# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4749# OS/2's system install, which has a completely different semantic
4750# ./install, which can be erroneously created by make from ./install.sh.
4751echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4752echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4753if test -z "$INSTALL"; then
4754if test "${ac_cv_path_install+set}" = set; then
4755  echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762  # Account for people who put trailing slashes in PATH elements.
4763case $as_dir/ in
4764  ./ | .// | /cC/* | \
4765  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4766  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4767  /usr/ucb/* ) ;;
4768  *)
4769    # OSF1 and SCO ODT 3.0 have their own names for install.
4770    # Don't use installbsd from OSF since it installs stuff as root
4771    # by default.
4772    for ac_prog in ginstall scoinst install; do
4773      for ac_exec_ext in '' $ac_executable_extensions; do
4774	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4775	  if test $ac_prog = install &&
4776	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4777	    # AIX install.  It has an incompatible calling convention.
4778	    :
4779	  elif test $ac_prog = install &&
4780	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4781	    # program-specific install script used by HP pwplus--don't use.
4782	    :
4783	  else
4784	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4785	    break 3
4786	  fi
4787	fi
4788      done
4789    done
4790    ;;
4791esac
4792done
4793
4794
4795fi
4796  if test "${ac_cv_path_install+set}" = set; then
4797    INSTALL=$ac_cv_path_install
4798  else
4799    # As a last resort, use the slow shell script.  We don't cache a
4800    # path for INSTALL within a source directory, because that will
4801    # break other packages using the cache if that directory is
4802    # removed, or if the path is relative.
4803    INSTALL=$ac_install_sh
4804  fi
4805fi
4806echo "$as_me:$LINENO: result: $INSTALL" >&5
4807echo "${ECHO_T}$INSTALL" >&6
4808
4809# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4810# It thinks the first close brace ends the variable substitution.
4811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4812
4813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4814
4815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4816
4817echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4818echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4819# Just in case
4820sleep 1
4821echo timestamp > conftest.file
4822# Do `set' in a subshell so we don't clobber the current shell's
4823# arguments.  Must try -L first in case configure is actually a
4824# symlink; some systems play weird games with the mod time of symlinks
4825# (eg FreeBSD returns the mod time of the symlink's containing
4826# directory).
4827if (
4828   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4829   if test "$*" = "X"; then
4830      # -L didn't work.
4831      set X `ls -t $srcdir/configure conftest.file`
4832   fi
4833   rm -f conftest.file
4834   if test "$*" != "X $srcdir/configure conftest.file" \
4835      && test "$*" != "X conftest.file $srcdir/configure"; then
4836
4837      # If neither matched, then we have a broken ls.  This can happen
4838      # if, for instance, CONFIG_SHELL is bash and it inherits a
4839      # broken ls alias from the environment.  This has actually
4840      # happened.  Such a system could not be considered "sane".
4841      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4842alias in your environment" >&5
4843echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4844alias in your environment" >&2;}
4845   { (exit 1); exit 1; }; }
4846   fi
4847
4848   test "$2" = conftest.file
4849   )
4850then
4851   # Ok.
4852   :
4853else
4854   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4855Check your system clock" >&5
4856echo "$as_me: error: newly created file is older than distributed files!
4857Check your system clock" >&2;}
4858   { (exit 1); exit 1; }; }
4859fi
4860echo "$as_me:$LINENO: result: yes" >&5
4861echo "${ECHO_T}yes" >&6
4862test "$program_prefix" != NONE &&
4863  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4864# Use a double $ so make ignores it.
4865test "$program_suffix" != NONE &&
4866  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4867# Double any \ or $.  echo might interpret backslashes.
4868# By default was `s,x,x', remove it if useless.
4869cat <<\_ACEOF >conftest.sed
4870s/[\\$]/&&/g;s/;s,x,x,$//
4871_ACEOF
4872program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4873rm conftest.sed
4874
4875# expand $ac_aux_dir to an absolute path
4876am_aux_dir=`cd $ac_aux_dir && pwd`
4877
4878test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4879# Use eval to expand $SHELL
4880if eval "$MISSING --run true"; then
4881  am_missing_run="$MISSING --run "
4882else
4883  am_missing_run=
4884  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4885echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4886fi
4887
4888if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4889  # We used to keeping the `.' as first argument, in order to
4890  # allow $(mkdir_p) to be used without argument.  As in
4891  #   $(mkdir_p) $(somedir)
4892  # where $(somedir) is conditionally defined.  However this is wrong
4893  # for two reasons:
4894  #  1. if the package is installed by a user who cannot write `.'
4895  #     make install will fail,
4896  #  2. the above comment should most certainly read
4897  #     $(mkdir_p) $(DESTDIR)$(somedir)
4898  #     so it does not work when $(somedir) is undefined and
4899  #     $(DESTDIR) is not.
4900  #  To support the latter case, we have to write
4901  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4902  #  so the `.' trick is pointless.
4903  mkdir_p='mkdir -p --'
4904else
4905  # On NextStep and OpenStep, the `mkdir' command does not
4906  # recognize any option.  It will interpret all options as
4907  # directories to create, and then abort because `.' already
4908  # exists.
4909  for d in ./-p ./--version;
4910  do
4911    test -d $d && rmdir $d
4912  done
4913  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4914  if test -f "$ac_aux_dir/mkinstalldirs"; then
4915    mkdir_p='$(mkinstalldirs)'
4916  else
4917    mkdir_p='$(install_sh) -d'
4918  fi
4919fi
4920
4921for ac_prog in gawk mawk nawk awk
4922do
4923  # Extract the first word of "$ac_prog", so it can be a program name with args.
4924set dummy $ac_prog; ac_word=$2
4925echo "$as_me:$LINENO: checking for $ac_word" >&5
4926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927if test "${ac_cv_prog_AWK+set}" = set; then
4928  echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930  if test -n "$AWK"; then
4931  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4932else
4933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938  for ac_exec_ext in '' $ac_executable_extensions; do
4939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940    ac_cv_prog_AWK="$ac_prog"
4941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945done
4946
4947fi
4948fi
4949AWK=$ac_cv_prog_AWK
4950if test -n "$AWK"; then
4951  echo "$as_me:$LINENO: result: $AWK" >&5
4952echo "${ECHO_T}$AWK" >&6
4953else
4954  echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
4956fi
4957
4958  test -n "$AWK" && break
4959done
4960
4961echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4962echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4963set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4964if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4965  echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967  cat >conftest.make <<\_ACEOF
4968all:
4969	@echo 'ac_maketemp="$(MAKE)"'
4970_ACEOF
4971# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4972eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4973if test -n "$ac_maketemp"; then
4974  eval ac_cv_prog_make_${ac_make}_set=yes
4975else
4976  eval ac_cv_prog_make_${ac_make}_set=no
4977fi
4978rm -f conftest.make
4979fi
4980if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4981  echo "$as_me:$LINENO: result: yes" >&5
4982echo "${ECHO_T}yes" >&6
4983  SET_MAKE=
4984else
4985  echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
4987  SET_MAKE="MAKE=${MAKE-make}"
4988fi
4989
4990rm -rf .tst 2>/dev/null
4991mkdir .tst 2>/dev/null
4992if test -d .tst; then
4993  am__leading_dot=.
4994else
4995  am__leading_dot=_
4996fi
4997rmdir .tst 2>/dev/null
4998
4999DEPDIR="${am__leading_dot}deps"
5000
5001          ac_config_commands="$ac_config_commands depfiles"
5002
5003
5004am_make=${MAKE-make}
5005cat > confinc << 'END'
5006am__doit:
5007	@echo done
5008.PHONY: am__doit
5009END
5010# If we don't find an include directive, just comment out the code.
5011echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5012echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5013am__include="#"
5014am__quote=
5015_am_result=none
5016# First try GNU make style include.
5017echo "include confinc" > confmf
5018# We grep out `Entering directory' and `Leaving directory'
5019# messages which can occur if `w' ends up in MAKEFLAGS.
5020# In particular we don't look at `^make:' because GNU make might
5021# be invoked under some other name (usually "gmake"), in which
5022# case it prints its new name instead of `make'.
5023if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5024   am__include=include
5025   am__quote=
5026   _am_result=GNU
5027fi
5028# Now try BSD make style include.
5029if test "$am__include" = "#"; then
5030   echo '.include "confinc"' > confmf
5031   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5032      am__include=.include
5033      am__quote="\""
5034      _am_result=BSD
5035   fi
5036fi
5037
5038
5039echo "$as_me:$LINENO: result: $_am_result" >&5
5040echo "${ECHO_T}$_am_result" >&6
5041rm -f confinc confmf
5042
5043# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5044if test "${enable_dependency_tracking+set}" = set; then
5045  enableval="$enable_dependency_tracking"
5046
5047fi;
5048if test "x$enable_dependency_tracking" != xno; then
5049  am_depcomp="$ac_aux_dir/depcomp"
5050  AMDEPBACKSLASH='\'
5051fi
5052
5053
5054if test "x$enable_dependency_tracking" != xno; then
5055  AMDEP_TRUE=
5056  AMDEP_FALSE='#'
5057else
5058  AMDEP_TRUE='#'
5059  AMDEP_FALSE=
5060fi
5061
5062
5063
5064
5065
5066
5067# AC_MSG_NOTICE([Beginning automake initialisation.])
5068# Stuff for automake
5069# test to see if srcdir already configured
5070if test "`cd $srcdir && pwd`" != "`pwd`" &&
5071   test -f $srcdir/config.status; then
5072  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5073echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5074   { (exit 1); exit 1; }; }
5075fi
5076
5077# test whether we have cygpath
5078if test -z "$CYGPATH_W"; then
5079  if (cygpath --version) >/dev/null 2>/dev/null; then
5080    CYGPATH_W='cygpath -w'
5081  else
5082    CYGPATH_W=echo
5083  fi
5084fi
5085
5086
5087# Define the identity of the package.
5088 PACKAGE='clp'
5089 VERSION='1.17.3'
5090
5091
5092cat >>confdefs.h <<_ACEOF
5093#define PACKAGE "$PACKAGE"
5094_ACEOF
5095
5096
5097cat >>confdefs.h <<_ACEOF
5098#define VERSION "$VERSION"
5099_ACEOF
5100
5101# Some tools Automake needs.
5102
5103ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5104
5105
5106AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5107
5108
5109AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5110
5111
5112AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5113
5114
5115MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5116
5117install_sh=${install_sh-"$am_aux_dir/install-sh"}
5118
5119# Installed binaries are usually stripped using `strip' when the user
5120# run `make install-strip'.  However `strip' might not be the right
5121# tool to use in cross-compilation environments, therefore Automake
5122# will honor the `STRIP' environment variable to overrule this program.
5123if test "$cross_compiling" != no; then
5124  if test -n "$ac_tool_prefix"; then
5125  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5126set dummy ${ac_tool_prefix}strip; ac_word=$2
5127echo "$as_me:$LINENO: checking for $ac_word" >&5
5128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129if test "${ac_cv_prog_STRIP+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  if test -n "$STRIP"; then
5133  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138  IFS=$as_save_IFS
5139  test -z "$as_dir" && as_dir=.
5140  for ac_exec_ext in '' $ac_executable_extensions; do
5141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144    break 2
5145  fi
5146done
5147done
5148
5149fi
5150fi
5151STRIP=$ac_cv_prog_STRIP
5152if test -n "$STRIP"; then
5153  echo "$as_me:$LINENO: result: $STRIP" >&5
5154echo "${ECHO_T}$STRIP" >&6
5155else
5156  echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159
5160fi
5161if test -z "$ac_cv_prog_STRIP"; then
5162  ac_ct_STRIP=$STRIP
5163  # Extract the first word of "strip", so it can be a program name with args.
5164set dummy strip; ac_word=$2
5165echo "$as_me:$LINENO: checking for $ac_word" >&5
5166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5168  echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170  if test -n "$ac_ct_STRIP"; then
5171  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176  IFS=$as_save_IFS
5177  test -z "$as_dir" && as_dir=.
5178  for ac_exec_ext in '' $ac_executable_extensions; do
5179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180    ac_cv_prog_ac_ct_STRIP="strip"
5181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182    break 2
5183  fi
5184done
5185done
5186
5187  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5188fi
5189fi
5190ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5191if test -n "$ac_ct_STRIP"; then
5192  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5193echo "${ECHO_T}$ac_ct_STRIP" >&6
5194else
5195  echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6
5197fi
5198
5199  STRIP=$ac_ct_STRIP
5200else
5201  STRIP="$ac_cv_prog_STRIP"
5202fi
5203
5204fi
5205INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5206
5207# We need awk for the "check" target.  The system "awk" is bad on
5208# some platforms.
5209# Always define AMTAR for backward compatibility.
5210
5211AMTAR=${AMTAR-"${am_missing_run}tar"}
5212
5213am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5214
5215
5216
5217
5218depcc="$CC"   am_compiler_list=
5219
5220echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5221echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5222if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5223  echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5226  # We make a subdir and do the tests there.  Otherwise we can end up
5227  # making bogus files that we don't know about and never remove.  For
5228  # instance it was reported that on HP-UX the gcc test will end up
5229  # making a dummy file named `D' -- because `-MD' means `put the output
5230  # in D'.
5231  mkdir conftest.dir
5232  # Copy depcomp to subdir because otherwise we won't find it if we're
5233  # using a relative directory.
5234  cp "$am_depcomp" conftest.dir
5235  cd conftest.dir
5236  # We will build objects and dependencies in a subdirectory because
5237  # it helps to detect inapplicable dependency modes.  For instance
5238  # both Tru64's cc and ICC support -MD to output dependencies as a
5239  # side effect of compilation, but ICC will put the dependencies in
5240  # the current directory while Tru64 will put them in the object
5241  # directory.
5242  mkdir sub
5243
5244  am_cv_CC_dependencies_compiler_type=none
5245  if test "$am_compiler_list" = ""; then
5246     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5247  fi
5248  for depmode in $am_compiler_list; do
5249    # Setup a source with many dependencies, because some compilers
5250    # like to wrap large dependency lists on column 80 (with \), and
5251    # we should not choose a depcomp mode which is confused by this.
5252    #
5253    # We need to recreate these files for each test, as the compiler may
5254    # overwrite some of them when testing with obscure command lines.
5255    # This happens at least with the AIX C compiler.
5256    : > sub/conftest.c
5257    for i in 1 2 3 4 5 6; do
5258      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5259      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5260      # Solaris 8's {/usr,}/bin/sh.
5261      touch sub/conftst$i.h
5262    done
5263    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5264
5265    case $depmode in
5266    nosideeffect)
5267      # after this tag, mechanisms are not by side-effect, so they'll
5268      # only be used when explicitly requested
5269      if test "x$enable_dependency_tracking" = xyes; then
5270	continue
5271      else
5272	break
5273      fi
5274      ;;
5275    none) break ;;
5276    esac
5277    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5278    # mode.  It turns out that the SunPro C++ compiler does not properly
5279    # handle `-M -o', and we need to detect this.
5280    if depmode=$depmode \
5281       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5282       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5283       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5284         >/dev/null 2>conftest.err &&
5285       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5286       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5287       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5288      # icc doesn't choke on unknown options, it will just issue warnings
5289      # or remarks (even with -Werror).  So we grep stderr for any message
5290      # that says an option was ignored or not supported.
5291      # When given -MP, icc 7.0 and 7.1 complain thusly:
5292      #   icc: Command line warning: ignoring option '-M'; no argument required
5293      # The diagnosis changed in icc 8.0:
5294      #   icc: Command line remark: option '-MP' not supported
5295      if (grep 'ignoring option' conftest.err ||
5296          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5297        am_cv_CC_dependencies_compiler_type=$depmode
5298        break
5299      fi
5300    fi
5301  done
5302
5303  cd ..
5304  rm -rf conftest.dir
5305else
5306  am_cv_CC_dependencies_compiler_type=none
5307fi
5308
5309fi
5310echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5311echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5312CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5313
5314
5315
5316if
5317  test "x$enable_dependency_tracking" != xno \
5318  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5319  am__fastdepCC_TRUE=
5320  am__fastdepCC_FALSE='#'
5321else
5322  am__fastdepCC_TRUE='#'
5323  am__fastdepCC_FALSE=
5324fi
5325
5326
5327depcc="$CXX"  am_compiler_list=
5328
5329echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5330echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5331if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5332  echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5335  # We make a subdir and do the tests there.  Otherwise we can end up
5336  # making bogus files that we don't know about and never remove.  For
5337  # instance it was reported that on HP-UX the gcc test will end up
5338  # making a dummy file named `D' -- because `-MD' means `put the output
5339  # in D'.
5340  mkdir conftest.dir
5341  # Copy depcomp to subdir because otherwise we won't find it if we're
5342  # using a relative directory.
5343  cp "$am_depcomp" conftest.dir
5344  cd conftest.dir
5345  # We will build objects and dependencies in a subdirectory because
5346  # it helps to detect inapplicable dependency modes.  For instance
5347  # both Tru64's cc and ICC support -MD to output dependencies as a
5348  # side effect of compilation, but ICC will put the dependencies in
5349  # the current directory while Tru64 will put them in the object
5350  # directory.
5351  mkdir sub
5352
5353  am_cv_CXX_dependencies_compiler_type=none
5354  if test "$am_compiler_list" = ""; then
5355     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5356  fi
5357  for depmode in $am_compiler_list; do
5358    # Setup a source with many dependencies, because some compilers
5359    # like to wrap large dependency lists on column 80 (with \), and
5360    # we should not choose a depcomp mode which is confused by this.
5361    #
5362    # We need to recreate these files for each test, as the compiler may
5363    # overwrite some of them when testing with obscure command lines.
5364    # This happens at least with the AIX C compiler.
5365    : > sub/conftest.c
5366    for i in 1 2 3 4 5 6; do
5367      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5368      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5369      # Solaris 8's {/usr,}/bin/sh.
5370      touch sub/conftst$i.h
5371    done
5372    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5373
5374    case $depmode in
5375    nosideeffect)
5376      # after this tag, mechanisms are not by side-effect, so they'll
5377      # only be used when explicitly requested
5378      if test "x$enable_dependency_tracking" = xyes; then
5379	continue
5380      else
5381	break
5382      fi
5383      ;;
5384    none) break ;;
5385    esac
5386    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5387    # mode.  It turns out that the SunPro C++ compiler does not properly
5388    # handle `-M -o', and we need to detect this.
5389    if depmode=$depmode \
5390       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5391       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5392       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5393         >/dev/null 2>conftest.err &&
5394       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5395       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5396       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5397      # icc doesn't choke on unknown options, it will just issue warnings
5398      # or remarks (even with -Werror).  So we grep stderr for any message
5399      # that says an option was ignored or not supported.
5400      # When given -MP, icc 7.0 and 7.1 complain thusly:
5401      #   icc: Command line warning: ignoring option '-M'; no argument required
5402      # The diagnosis changed in icc 8.0:
5403      #   icc: Command line remark: option '-MP' not supported
5404      if (grep 'ignoring option' conftest.err ||
5405          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5406        am_cv_CXX_dependencies_compiler_type=$depmode
5407        break
5408      fi
5409    fi
5410  done
5411
5412  cd ..
5413  rm -rf conftest.dir
5414else
5415  am_cv_CXX_dependencies_compiler_type=none
5416fi
5417
5418fi
5419echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5420echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5421CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5422
5423
5424
5425if
5426  test "x$enable_dependency_tracking" != xno \
5427  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5428  am__fastdepCXX_TRUE=
5429  am__fastdepCXX_FALSE='#'
5430else
5431  am__fastdepCXX_TRUE='#'
5432  am__fastdepCXX_FALSE=
5433fi
5434
5435
5436
5437echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5438echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5439    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5440if test "${enable_maintainer_mode+set}" = set; then
5441  enableval="$enable_maintainer_mode"
5442  USE_MAINTAINER_MODE=$enableval
5443else
5444  USE_MAINTAINER_MODE=no
5445fi;
5446  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5447echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5448
5449
5450if test $USE_MAINTAINER_MODE = yes; then
5451  MAINTAINER_MODE_TRUE=
5452  MAINTAINER_MODE_FALSE='#'
5453else
5454  MAINTAINER_MODE_TRUE='#'
5455  MAINTAINER_MODE_FALSE=
5456fi
5457
5458  MAINT=$MAINTAINER_MODE_TRUE
5459
5460
5461
5462coin_have_externals=no
5463if test "$enable_maintainer_mode" = yes; then
5464
5465  # If maintainer mode is chosen, we make sure that the correct versions
5466  # of the tools are used, and that we know where libtool.m4 is (to
5467  # recreate acinclude.m4)
5468
5469
5470  LIBTOOLM4=
5471  # Normally, $HOME
5472  AUTOTOOLS_DFLT=$HOME
5473
5474  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5475echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5476if test "${ac_cv_use_correct_autotools+set}" = set; then
5477  echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479  ac_cv_use_correct_autotools=check
5480fi
5481echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5482echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5483
5484  if test $ac_cv_use_correct_autotools = check; then
5485    ac_cv_use_correct_autotools=yes
5486    # Check if we have autoconf
5487    # Extract the first word of "autoconf", so it can be a program name with args.
5488set dummy autoconf; ac_word=$2
5489echo "$as_me:$LINENO: checking for $ac_word" >&5
5490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491if test "${ac_cv_prog_have_autoconf+set}" = set; then
5492  echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494  if test -n "$have_autoconf"; then
5495  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500  IFS=$as_save_IFS
5501  test -z "$as_dir" && as_dir=.
5502  for ac_exec_ext in '' $ac_executable_extensions; do
5503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504    ac_cv_prog_have_autoconf="yes"
5505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506    break 2
5507  fi
5508done
5509done
5510
5511  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5512fi
5513fi
5514have_autoconf=$ac_cv_prog_have_autoconf
5515if test -n "$have_autoconf"; then
5516  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5517echo "${ECHO_T}$have_autoconf" >&6
5518else
5519  echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521fi
5522
5523    if test $have_autoconf = no; then
5524      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5525echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5526   { (exit 1); exit 1; }; }
5527    fi
5528
5529    # Check whether autoconf is the correct version
5530    correct_version='2.59'
5531    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5532    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5533echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5534    autoconf --version > confauto.out 2>&1
5535    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5536      echo "$as_me:$LINENO: result: yes" >&5
5537echo "${ECHO_T}yes" >&6
5538    else
5539      rm -f confauto.out
5540      echo "$as_me:$LINENO: result: no" >&5
5541echo "${ECHO_T}no" >&6
5542      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5543echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5544   { (exit 1); exit 1; }; }
5545    fi
5546    rm -f confauto.out
5547
5548    # Check if the executable autoconf is picked up from the correct location
5549    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5550echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5551    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5552    autoconf_dir=`cd $autoconf_dir; pwd`
5553    if test x$AUTOTOOLS_DIR = x; then
5554      want_dir=$AUTOTOOLS_DFLT/bin
5555    else
5556      want_dir=$AUTOTOOLS_DIR/bin
5557    fi
5558    if test $autoconf_dir = `cd $want_dir; pwd`; then
5559      echo "$as_me:$LINENO: result: yes" >&5
5560echo "${ECHO_T}yes" >&6
5561    else
5562      rm -f confauto.out
5563      echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5566echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5567   { (exit 1); exit 1; }; }
5568    fi
5569
5570    # Check if we have automake
5571    # Extract the first word of "automake", so it can be a program name with args.
5572set dummy automake; ac_word=$2
5573echo "$as_me:$LINENO: checking for $ac_word" >&5
5574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575if test "${ac_cv_prog_have_automake+set}" = set; then
5576  echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578  if test -n "$have_automake"; then
5579  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584  IFS=$as_save_IFS
5585  test -z "$as_dir" && as_dir=.
5586  for ac_exec_ext in '' $ac_executable_extensions; do
5587  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588    ac_cv_prog_have_automake="yes"
5589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590    break 2
5591  fi
5592done
5593done
5594
5595  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5596fi
5597fi
5598have_automake=$ac_cv_prog_have_automake
5599if test -n "$have_automake"; then
5600  echo "$as_me:$LINENO: result: $have_automake" >&5
5601echo "${ECHO_T}$have_automake" >&6
5602else
5603  echo "$as_me:$LINENO: result: no" >&5
5604echo "${ECHO_T}no" >&6
5605fi
5606
5607    if test $have_automake = no; then
5608      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5609echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5610   { (exit 1); exit 1; }; }
5611    fi
5612
5613    # Check whether automake is the correct version
5614    correct_version='1.9.6'
5615    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5616    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5617echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5618    automake --version > confauto.out 2>&1
5619    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5620      echo "$as_me:$LINENO: result: yes" >&5
5621echo "${ECHO_T}yes" >&6
5622    else
5623      rm -f confauto.out
5624      echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6
5626      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5627echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5628   { (exit 1); exit 1; }; }
5629    fi
5630    rm -f confauto.out
5631
5632    # Check if the executable automake is picked up from the correct location
5633    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5634echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5635    automake_dir=`which automake | sed -e 's=/automake=='`
5636    automake_dir=`cd $automake_dir; pwd`
5637    if test x$AUTOTOOLS_DIR = x; then
5638      want_dir=$AUTOTOOLS_DFLT/bin
5639    else
5640      want_dir=$AUTOTOOLS_DIR/bin
5641    fi
5642    if test $automake_dir = `cd $want_dir; pwd`; then
5643      echo "$as_me:$LINENO: result: yes" >&5
5644echo "${ECHO_T}yes" >&6
5645    else
5646      rm -f confauto.out
5647      echo "$as_me:$LINENO: result: no" >&5
5648echo "${ECHO_T}no" >&6
5649      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5650echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5651   { (exit 1); exit 1; }; }
5652    fi
5653
5654    # Check if this is the correct version of libtool (with escaped dots)
5655    if test x$AUTOTOOLS_DIR = x; then
5656      want_dir=$AUTOTOOLS_DFLT/share
5657    else
5658      want_dir=$AUTOTOOLS_DIR/share
5659    fi
5660    correct_version='1.5.22'
5661    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5662    if test -r $want_dir/libtool/ltmain.sh; then
5663  have_ltmain=yes
5664  :
5665else
5666  have_ltmain=no
5667  :
5668fi
5669
5670    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5671echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5672    if test $have_ltmain = yes; then
5673    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5674        echo "$as_me:$LINENO: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
5676      else
5677        echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5680echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5681   { (exit 1); exit 1; }; }
5682      fi
5683    else
5684      echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6
5686      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5687echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5688   { (exit 1); exit 1; }; }
5689    fi
5690  fi
5691
5692  # Check if we can find the libtool file
5693  if test x$AUTOTOOLS_DIR = x; then
5694    want_dir=$AUTOTOOLS_DFLT/share
5695  else
5696    want_dir=$AUTOTOOLS_DIR/share
5697  fi
5698  if test -r $want_dir/aclocal/libtool.m4; then
5699  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5700  :
5701else
5702  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5703echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5704   { (exit 1); exit 1; }; }
5705  :
5706fi
5707
5708
5709  # Check if we have an Dependencies file
5710  if test -r $srcdir/Dependencies; then
5711    coin_have_externals=yes
5712  fi
5713  # Check if subversion is installed and understands https
5714  # Extract the first word of "svn", so it can be a program name with args.
5715set dummy svn; ac_word=$2
5716echo "$as_me:$LINENO: checking for $ac_word" >&5
5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718if test "${ac_cv_prog_have_svn+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  if test -n "$have_svn"; then
5722  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727  IFS=$as_save_IFS
5728  test -z "$as_dir" && as_dir=.
5729  for ac_exec_ext in '' $ac_executable_extensions; do
5730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731    ac_cv_prog_have_svn="yes"
5732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733    break 2
5734  fi
5735done
5736done
5737
5738  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5739fi
5740fi
5741have_svn=$ac_cv_prog_have_svn
5742if test -n "$have_svn"; then
5743  echo "$as_me:$LINENO: result: $have_svn" >&5
5744echo "${ECHO_T}$have_svn" >&6
5745else
5746  echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
5750  if test x$have_svn = xyes; then
5751    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5752echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5753if test "${ac_cv_svn_understands_https+set}" = set; then
5754  echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756  svn --version > confauto.out 2>&1
5757                    if $EGREP https confauto.out >/dev/null 2>&1; then
5758                      ac_cv_svn_understands_https=yes
5759                    else
5760                      ac_cv_svn_understands_https=no
5761                      have_svn=no
5762                      ac_cv_prog_have_svn=no
5763                    fi
5764                    rm -f confauto.out
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5767echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5768  fi
5769
5770  # Find the location of the BuildTools directory
5771  BUILDTOOLSDIR=
5772  if test -r $srcdir/BuildTools/coin.m4; then
5773    BUILDTOOLSDIR=$srcdir/BuildTools
5774  else
5775    if test -r $srcdir/../BuildTools/coin.m4; then
5776      BUILDTOOLSDIR=$srcdir/../BuildTools
5777    else
5778      if test -r $srcdir/../../BuildTools/coin.m4; then
5779        BUILDTOOLSDIR=$srcdir/../../BuildTools
5780      else
5781        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5782echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5783   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5784      fi
5785    fi
5786  fi
5787
5788
5789  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5790  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5791    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5792  fi
5793
5794  # The following variable is set to the name of the directory where
5795  # the autotool scripts are located
5796
5797  AUX_DIR=$ac_aux_dir
5798fi
5799
5800# helpful variable for the base directory of this package
5801abs_source_dir=`cd $srcdir; pwd`
5802
5803
5804# Stuff for example Makefiles
5805if test x$prefix = xNONE; then
5806  full_prefix=$ac_default_prefix
5807else
5808  full_prefix=$prefix
5809fi
5810full_prefix=`cd $full_prefix ; pwd`
5811
5812abs_lib_dir=$full_prefix/lib
5813
5814abs_include_dir=$full_prefix/include
5815
5816abs_bin_dir=$full_prefix/bin
5817
5818
5819
5820if test $coin_have_externals = yes && test x$have_svn = xyes; then
5821  HAVE_EXTERNALS_TRUE=
5822  HAVE_EXTERNALS_FALSE='#'
5823else
5824  HAVE_EXTERNALS_TRUE='#'
5825  HAVE_EXTERNALS_FALSE=
5826fi
5827
5828
5829# AC_MSG_NOTICE([End automake initialisation.])
5830
5831
5832
5833LIBTOOL=
5834if test -f ../libtool; then
5835  coin_config_dir=..
5836  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5837fi
5838if test "x$LIBTOOL" = x; then
5839  if test -f ../../libtool; then
5840    coin_config_dir=../..
5841    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5842  fi
5843fi
5844
5845if test "x$LIBTOOL" = x; then
5846# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5847  # Stuff for libtool
5848  # Check whether --enable-shared or --disable-shared was given.
5849if test "${enable_shared+set}" = set; then
5850  enableval="$enable_shared"
5851  p=${PACKAGE-default}
5852    case $enableval in
5853    yes) enable_shared=yes ;;
5854    no) enable_shared=no ;;
5855    *)
5856      enable_shared=no
5857      # Look at the argument we got.  We use all the common list separators.
5858      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5859      for pkg in $enableval; do
5860	IFS="$lt_save_ifs"
5861	if test "X$pkg" = "X$p"; then
5862	  enable_shared=yes
5863	fi
5864      done
5865      IFS="$lt_save_ifs"
5866      ;;
5867    esac
5868else
5869  enable_shared=yes
5870fi;
5871
5872# Check whether --enable-fast-install or --disable-fast-install was given.
5873if test "${enable_fast_install+set}" = set; then
5874  enableval="$enable_fast_install"
5875  p=${PACKAGE-default}
5876    case $enableval in
5877    yes) enable_fast_install=yes ;;
5878    no) enable_fast_install=no ;;
5879    *)
5880      enable_fast_install=no
5881      # Look at the argument we got.  We use all the common list separators.
5882      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5883      for pkg in $enableval; do
5884	IFS="$lt_save_ifs"
5885	if test "X$pkg" = "X$p"; then
5886	  enable_fast_install=yes
5887	fi
5888      done
5889      IFS="$lt_save_ifs"
5890      ;;
5891    esac
5892else
5893  enable_fast_install=yes
5894fi;
5895
5896echo "$as_me:$LINENO: checking host system type" >&5
5897echo $ECHO_N "checking host system type... $ECHO_C" >&6
5898if test "${ac_cv_host+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901  ac_cv_host_alias=$host_alias
5902test -z "$ac_cv_host_alias" &&
5903  ac_cv_host_alias=$ac_cv_build_alias
5904ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5905  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5906echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5907   { (exit 1); exit 1; }; }
5908
5909fi
5910echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5911echo "${ECHO_T}$ac_cv_host" >&6
5912host=$ac_cv_host
5913host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5914host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5915host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5916
5917
5918echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5919echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5920if test "${lt_cv_path_SED+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  # Loop through the user's path and test for sed and gsed.
5924# Then use that list of sed's as ones to test for truncation.
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928  IFS=$as_save_IFS
5929  test -z "$as_dir" && as_dir=.
5930  for lt_ac_prog in sed gsed; do
5931    for ac_exec_ext in '' $ac_executable_extensions; do
5932      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5933        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5934      fi
5935    done
5936  done
5937done
5938lt_ac_max=0
5939lt_ac_count=0
5940# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5941# along with /bin/sed that truncates output.
5942for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5943  test ! -f $lt_ac_sed && continue
5944  cat /dev/null > conftest.in
5945  lt_ac_count=0
5946  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5947  # Check for GNU sed and select it if it is found.
5948  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5949    lt_cv_path_SED=$lt_ac_sed
5950    break
5951  fi
5952  while true; do
5953    cat conftest.in conftest.in >conftest.tmp
5954    mv conftest.tmp conftest.in
5955    cp conftest.in conftest.nl
5956    echo >>conftest.nl
5957    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5958    cmp -s conftest.out conftest.nl || break
5959    # 10000 chars as input seems more than enough
5960    test $lt_ac_count -gt 10 && break
5961    lt_ac_count=`expr $lt_ac_count + 1`
5962    if test $lt_ac_count -gt $lt_ac_max; then
5963      lt_ac_max=$lt_ac_count
5964      lt_cv_path_SED=$lt_ac_sed
5965    fi
5966  done
5967done
5968
5969fi
5970
5971SED=$lt_cv_path_SED
5972echo "$as_me:$LINENO: result: $SED" >&5
5973echo "${ECHO_T}$SED" >&6
5974
5975
5976# Check whether --with-gnu-ld or --without-gnu-ld was given.
5977if test "${with_gnu_ld+set}" = set; then
5978  withval="$with_gnu_ld"
5979  test "$withval" = no || with_gnu_ld=yes
5980else
5981  with_gnu_ld=no
5982fi;
5983ac_prog=ld
5984if test "$GCC" = yes; then
5985  # Check if gcc -print-prog-name=ld gives a path.
5986  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5987echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5988  case $host in
5989  *-*-mingw*)
5990    # gcc leaves a trailing carriage return which upsets mingw
5991    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5992  *)
5993    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5994  esac
5995  case $ac_prog in
5996    # Accept absolute paths.
5997    [\\/]* | ?:[\\/]*)
5998      re_direlt='/[^/][^/]*/\.\./'
5999      # Canonicalize the pathname of ld
6000      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6001      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6002	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6003      done
6004      test -z "$LD" && LD="$ac_prog"
6005      ;;
6006  "")
6007    # If it fails, then pretend we aren't using GCC.
6008    ac_prog=ld
6009    ;;
6010  *)
6011    # If it is relative, then search for the first ld in PATH.
6012    with_gnu_ld=unknown
6013    ;;
6014  esac
6015elif test "$with_gnu_ld" = yes; then
6016  echo "$as_me:$LINENO: checking for GNU ld" >&5
6017echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6018else
6019  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6020echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6021fi
6022if test "${lt_cv_path_LD+set}" = set; then
6023  echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025  if test -z "$LD"; then
6026  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6027  for ac_dir in $PATH; do
6028    IFS="$lt_save_ifs"
6029    test -z "$ac_dir" && ac_dir=.
6030    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6031      lt_cv_path_LD="$ac_dir/$ac_prog"
6032      # Check to see if the program is GNU ld.  I'd rather use --version,
6033      # but apparently some variants of GNU ld only accept -v.
6034      # Break only if it was the GNU/non-GNU ld that we prefer.
6035      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6036      *GNU* | *'with BFD'*)
6037	test "$with_gnu_ld" != no && break
6038	;;
6039      *)
6040	test "$with_gnu_ld" != yes && break
6041	;;
6042      esac
6043    fi
6044  done
6045  IFS="$lt_save_ifs"
6046else
6047  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6048fi
6049fi
6050
6051LD="$lt_cv_path_LD"
6052if test -n "$LD"; then
6053  echo "$as_me:$LINENO: result: $LD" >&5
6054echo "${ECHO_T}$LD" >&6
6055else
6056  echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058fi
6059test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6060echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6061   { (exit 1); exit 1; }; }
6062echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6063echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6064if test "${lt_cv_prog_gnu_ld+set}" = set; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6068case `$LD -v 2>&1 </dev/null` in
6069*GNU* | *'with BFD'*)
6070  lt_cv_prog_gnu_ld=yes
6071  ;;
6072*)
6073  lt_cv_prog_gnu_ld=no
6074  ;;
6075esac
6076fi
6077echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6078echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6079with_gnu_ld=$lt_cv_prog_gnu_ld
6080
6081
6082echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6083echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6084if test "${lt_cv_ld_reload_flag+set}" = set; then
6085  echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087  lt_cv_ld_reload_flag='-r'
6088fi
6089echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6090echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6091reload_flag=$lt_cv_ld_reload_flag
6092case $reload_flag in
6093"" | " "*) ;;
6094*) reload_flag=" $reload_flag" ;;
6095esac
6096reload_cmds='$LD$reload_flag -o $output$reload_objs'
6097case $host_os in
6098  darwin*)
6099    if test "$GCC" = yes; then
6100      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6101    else
6102      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6103    fi
6104    ;;
6105esac
6106
6107echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6108echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6109if test "${lt_cv_path_NM+set}" = set; then
6110  echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112  if test -n "$NM"; then
6113  # Let the user override the test.
6114  lt_cv_path_NM="$NM"
6115else
6116  lt_nm_to_check="${ac_tool_prefix}nm"
6117  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6118    lt_nm_to_check="$lt_nm_to_check nm"
6119  fi
6120  for lt_tmp_nm in $lt_nm_to_check; do
6121    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6122    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6123      IFS="$lt_save_ifs"
6124      test -z "$ac_dir" && ac_dir=.
6125      tmp_nm="$ac_dir/$lt_tmp_nm"
6126      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6127	# Check to see if the nm accepts a BSD-compat flag.
6128	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6129	#   nm: unknown option "B" ignored
6130	# Tru64's nm complains that /dev/null is an invalid object file
6131	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6132	*/dev/null* | *'Invalid file or object type'*)
6133	  lt_cv_path_NM="$tmp_nm -B"
6134	  break
6135	  ;;
6136	*)
6137	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6138	  */dev/null*)
6139	    lt_cv_path_NM="$tmp_nm -p"
6140	    break
6141	    ;;
6142	  *)
6143	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6144	    continue # so that we can try to find one that supports BSD flags
6145	    ;;
6146	  esac
6147	  ;;
6148	esac
6149      fi
6150    done
6151    IFS="$lt_save_ifs"
6152  done
6153  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6154fi
6155fi
6156echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6157echo "${ECHO_T}$lt_cv_path_NM" >&6
6158NM="$lt_cv_path_NM"
6159
6160echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6161echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6162if test "${lt_cv_deplibs_check_method+set}" = set; then
6163  echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165  lt_cv_file_magic_cmd='$MAGIC_CMD'
6166lt_cv_file_magic_test_file=
6167lt_cv_deplibs_check_method='unknown'
6168# Need to set the preceding variable on all platforms that support
6169# interlibrary dependencies.
6170# 'none' -- dependencies not supported.
6171# `unknown' -- same as none, but documents that we really don't know.
6172# 'pass_all' -- all dependencies passed with no checks.
6173# 'test_compile' -- check by making test program.
6174# 'file_magic [[regex]]' -- check by looking for files in library path
6175# which responds to the $file_magic_cmd with a given extended regex.
6176# If you have `file' or equivalent on your system and you're not sure
6177# whether `pass_all' will *always* work, you probably want this one.
6178
6179case $host_os in
6180aix4* | aix5*)
6181  lt_cv_deplibs_check_method=pass_all
6182  ;;
6183
6184beos*)
6185  lt_cv_deplibs_check_method=pass_all
6186  ;;
6187
6188bsdi[45]*)
6189  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6190  lt_cv_file_magic_cmd='/usr/bin/file -L'
6191  lt_cv_file_magic_test_file=/shlib/libc.so
6192  ;;
6193
6194cygwin*)
6195  # func_win32_libid is a shell function defined in ltmain.sh
6196  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6197  lt_cv_file_magic_cmd='func_win32_libid'
6198  ;;
6199
6200mingw* | pw32*)
6201  # Base MSYS/MinGW do not provide the 'file' command needed by
6202  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6203  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6204  lt_cv_file_magic_cmd='$OBJDUMP -f'
6205  ;;
6206
6207darwin* | rhapsody*)
6208  lt_cv_deplibs_check_method=pass_all
6209  ;;
6210
6211freebsd* | kfreebsd*-gnu | dragonfly*)
6212  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6213    case $host_cpu in
6214    i*86 )
6215      # Not sure whether the presence of OpenBSD here was a mistake.
6216      # Let's accept both of them until this is cleared up.
6217      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6218      lt_cv_file_magic_cmd=/usr/bin/file
6219      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6220      ;;
6221    esac
6222  else
6223    lt_cv_deplibs_check_method=pass_all
6224  fi
6225  ;;
6226
6227gnu*)
6228  lt_cv_deplibs_check_method=pass_all
6229  ;;
6230
6231hpux10.20* | hpux11*)
6232  lt_cv_file_magic_cmd=/usr/bin/file
6233  case $host_cpu in
6234  ia64*)
6235    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6236    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6237    ;;
6238  hppa*64*)
6239    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]'
6240    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6241    ;;
6242  *)
6243    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6244    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6245    ;;
6246  esac
6247  ;;
6248
6249interix3*)
6250  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6251  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6252  ;;
6253
6254irix5* | irix6* | nonstopux*)
6255  case $LD in
6256  *-32|*"-32 ") libmagic=32-bit;;
6257  *-n32|*"-n32 ") libmagic=N32;;
6258  *-64|*"-64 ") libmagic=64-bit;;
6259  *) libmagic=never-match;;
6260  esac
6261  lt_cv_deplibs_check_method=pass_all
6262  ;;
6263
6264# This must be Linux ELF.
6265linux*)
6266  lt_cv_deplibs_check_method=pass_all
6267  ;;
6268
6269netbsd*)
6270  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6271    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6272  else
6273    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6274  fi
6275  ;;
6276
6277newos6*)
6278  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6279  lt_cv_file_magic_cmd=/usr/bin/file
6280  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6281  ;;
6282
6283nto-qnx*)
6284  lt_cv_deplibs_check_method=unknown
6285  ;;
6286
6287openbsd*)
6288  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6289    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6290  else
6291    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6292  fi
6293  ;;
6294
6295osf3* | osf4* | osf5*)
6296  lt_cv_deplibs_check_method=pass_all
6297  ;;
6298
6299solaris*)
6300  lt_cv_deplibs_check_method=pass_all
6301  ;;
6302
6303sysv4 | sysv4.3*)
6304  case $host_vendor in
6305  motorola)
6306    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]'
6307    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6308    ;;
6309  ncr)
6310    lt_cv_deplibs_check_method=pass_all
6311    ;;
6312  sequent)
6313    lt_cv_file_magic_cmd='/bin/file'
6314    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6315    ;;
6316  sni)
6317    lt_cv_file_magic_cmd='/bin/file'
6318    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6319    lt_cv_file_magic_test_file=/lib/libc.so
6320    ;;
6321  siemens)
6322    lt_cv_deplibs_check_method=pass_all
6323    ;;
6324  pc)
6325    lt_cv_deplibs_check_method=pass_all
6326    ;;
6327  esac
6328  ;;
6329
6330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6331  lt_cv_deplibs_check_method=pass_all
6332  ;;
6333esac
6334
6335fi
6336echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6337echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6338file_magic_cmd=$lt_cv_file_magic_cmd
6339deplibs_check_method=$lt_cv_deplibs_check_method
6340test -z "$deplibs_check_method" && deplibs_check_method=unknown
6341
6342
6343
6344
6345# If no C compiler was specified, use CC.
6346LTCC=${LTCC-"$CC"}
6347
6348# If no C compiler flags were specified, use CFLAGS.
6349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6350
6351# Allow CC to be a program name with arguments.
6352compiler=$CC
6353
6354# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6355if test "${enable_libtool_lock+set}" = set; then
6356  enableval="$enable_libtool_lock"
6357
6358fi;
6359test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6360
6361# Some flags need to be propagated to the compiler or linker for good
6362# libtool support.
6363case $host in
6364ia64-*-hpux*)
6365  # Find out which ABI we are using.
6366  echo 'int i;' > conftest.$ac_ext
6367  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368  (eval $ac_compile) 2>&5
6369  ac_status=$?
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); }; then
6372    case `/usr/bin/file conftest.$ac_objext` in
6373    *ELF-32*)
6374      HPUX_IA64_MODE="32"
6375      ;;
6376    *ELF-64*)
6377      HPUX_IA64_MODE="64"
6378      ;;
6379    esac
6380  fi
6381  rm -rf conftest*
6382  ;;
6383*-*-irix6*)
6384  # Find out which ABI we are using.
6385  echo '#line 6385 "configure"' > conftest.$ac_ext
6386  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387  (eval $ac_compile) 2>&5
6388  ac_status=$?
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); }; then
6391   if test "$lt_cv_prog_gnu_ld" = yes; then
6392    case `/usr/bin/file conftest.$ac_objext` in
6393    *32-bit*)
6394      LD="${LD-ld} -melf32bsmip"
6395      ;;
6396    *N32*)
6397      LD="${LD-ld} -melf32bmipn32"
6398      ;;
6399    *64-bit*)
6400      LD="${LD-ld} -melf64bmip"
6401      ;;
6402    esac
6403   else
6404    case `/usr/bin/file conftest.$ac_objext` in
6405    *32-bit*)
6406      LD="${LD-ld} -32"
6407      ;;
6408    *N32*)
6409      LD="${LD-ld} -n32"
6410      ;;
6411    *64-bit*)
6412      LD="${LD-ld} -64"
6413      ;;
6414    esac
6415   fi
6416  fi
6417  rm -rf conftest*
6418  ;;
6419
6420x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6421  # Find out which ABI we are using.
6422  echo 'int i;' > conftest.$ac_ext
6423  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424  (eval $ac_compile) 2>&5
6425  ac_status=$?
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); }; then
6428    case `/usr/bin/file conftest.o` in
6429    *32-bit*)
6430      case $host in
6431        x86_64-*linux*)
6432          LD="${LD-ld} -m elf_i386"
6433          ;;
6434        ppc64-*linux*|powerpc64-*linux*)
6435          LD="${LD-ld} -m elf32ppclinux"
6436          ;;
6437        s390x-*linux*)
6438          LD="${LD-ld} -m elf_s390"
6439          ;;
6440        sparc64-*linux*)
6441          LD="${LD-ld} -m elf32_sparc"
6442          ;;
6443      esac
6444      ;;
6445    *64-bit*)
6446      case $host in
6447        x86_64-*linux*)
6448          LD="${LD-ld} -m elf_x86_64"
6449          ;;
6450        ppc*-*linux*|powerpc*-*linux*)
6451          LD="${LD-ld} -m elf64ppc"
6452          ;;
6453        s390*-*linux*)
6454          LD="${LD-ld} -m elf64_s390"
6455          ;;
6456        sparc*-*linux*)
6457          LD="${LD-ld} -m elf64_sparc"
6458          ;;
6459      esac
6460      ;;
6461    esac
6462  fi
6463  rm -rf conftest*
6464  ;;
6465
6466*-*-sco3.2v5*)
6467  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6468  SAVE_CFLAGS="$CFLAGS"
6469  CFLAGS="$CFLAGS -belf"
6470  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6471echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6472if test "${lt_cv_cc_needs_belf+set}" = set; then
6473  echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475  ac_ext=c
6476ac_cpp='$CPP $CPPFLAGS'
6477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480
6481     cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h.  */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h.  */
6487
6488int
6489main ()
6490{
6491
6492  ;
6493  return 0;
6494}
6495_ACEOF
6496rm -f conftest.$ac_objext conftest$ac_exeext
6497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498  (eval $ac_link) 2>conftest.er1
6499  ac_status=$?
6500  grep -v '^ *+' conftest.er1 >conftest.err
6501  rm -f conftest.er1
6502  cat conftest.err >&5
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); } &&
6505	 { ac_try='test -z "$ac_c_werror_flag"
6506			 || test ! -s conftest.err'
6507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508  (eval $ac_try) 2>&5
6509  ac_status=$?
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); }; } &&
6512	 { ac_try='test -s conftest$ac_exeext'
6513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514  (eval $ac_try) 2>&5
6515  ac_status=$?
6516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517  (exit $ac_status); }; }; then
6518  lt_cv_cc_needs_belf=yes
6519else
6520  echo "$as_me: failed program was:" >&5
6521sed 's/^/| /' conftest.$ac_ext >&5
6522
6523lt_cv_cc_needs_belf=no
6524fi
6525rm -f conftest.err conftest.$ac_objext \
6526      conftest$ac_exeext conftest.$ac_ext
6527     ac_ext=c
6528ac_cpp='$CPP $CPPFLAGS'
6529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532
6533fi
6534echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6535echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6536  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6537    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6538    CFLAGS="$SAVE_CFLAGS"
6539  fi
6540  ;;
6541sparc*-*solaris*)
6542  # Find out which ABI we are using.
6543  echo 'int i;' > conftest.$ac_ext
6544  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545  (eval $ac_compile) 2>&5
6546  ac_status=$?
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); }; then
6549    case `/usr/bin/file conftest.o` in
6550    *64-bit*)
6551      case $lt_cv_prog_gnu_ld in
6552      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6553      *)    LD="${LD-ld} -64" ;;
6554      esac
6555      ;;
6556    esac
6557  fi
6558  rm -rf conftest*
6559  ;;
6560
6561
6562esac
6563
6564need_locks="$enable_libtool_lock"
6565
6566
6567ac_ext=c
6568ac_cpp='$CPP $CPPFLAGS'
6569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6573echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6574# On Suns, sometimes $CPP names a directory.
6575if test -n "$CPP" && test -d "$CPP"; then
6576  CPP=
6577fi
6578if test -z "$CPP"; then
6579  if test "${ac_cv_prog_CPP+set}" = set; then
6580  echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582      # Double quotes because CPP needs to be expanded
6583    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6584    do
6585      ac_preproc_ok=false
6586for ac_c_preproc_warn_flag in '' yes
6587do
6588  # Use a header file that comes with gcc, so configuring glibc
6589  # with a fresh cross-compiler works.
6590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6591  # <limits.h> exists even on freestanding compilers.
6592  # On the NeXT, cc -E runs the code through the compiler's parser,
6593  # not just through cpp. "Syntax error" is here to catch this case.
6594  cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600#ifdef __STDC__
6601# include <limits.h>
6602#else
6603# include <assert.h>
6604#endif
6605		     Syntax error
6606_ACEOF
6607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6609  ac_status=$?
6610  grep -v '^ *+' conftest.er1 >conftest.err
6611  rm -f conftest.er1
6612  cat conftest.err >&5
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); } >/dev/null; then
6615  if test -s conftest.err; then
6616    ac_cpp_err=$ac_c_preproc_warn_flag
6617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6618  else
6619    ac_cpp_err=
6620  fi
6621else
6622  ac_cpp_err=yes
6623fi
6624if test -z "$ac_cpp_err"; then
6625  :
6626else
6627  echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630  # Broken: fails on valid input.
6631continue
6632fi
6633rm -f conftest.err conftest.$ac_ext
6634
6635  # OK, works on sane cases.  Now check whether non-existent headers
6636  # can be detected and how.
6637  cat >conftest.$ac_ext <<_ACEOF
6638/* confdefs.h.  */
6639_ACEOF
6640cat confdefs.h >>conftest.$ac_ext
6641cat >>conftest.$ac_ext <<_ACEOF
6642/* end confdefs.h.  */
6643#include <ac_nonexistent.h>
6644_ACEOF
6645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } >/dev/null; then
6653  if test -s conftest.err; then
6654    ac_cpp_err=$ac_c_preproc_warn_flag
6655    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6656  else
6657    ac_cpp_err=
6658  fi
6659else
6660  ac_cpp_err=yes
6661fi
6662if test -z "$ac_cpp_err"; then
6663  # Broken: success on invalid input.
6664continue
6665else
6666  echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669  # Passes both tests.
6670ac_preproc_ok=:
6671break
6672fi
6673rm -f conftest.err conftest.$ac_ext
6674
6675done
6676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6677rm -f conftest.err conftest.$ac_ext
6678if $ac_preproc_ok; then
6679  break
6680fi
6681
6682    done
6683    ac_cv_prog_CPP=$CPP
6684
6685fi
6686  CPP=$ac_cv_prog_CPP
6687else
6688  ac_cv_prog_CPP=$CPP
6689fi
6690echo "$as_me:$LINENO: result: $CPP" >&5
6691echo "${ECHO_T}$CPP" >&6
6692ac_preproc_ok=false
6693for ac_c_preproc_warn_flag in '' yes
6694do
6695  # Use a header file that comes with gcc, so configuring glibc
6696  # with a fresh cross-compiler works.
6697  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698  # <limits.h> exists even on freestanding compilers.
6699  # On the NeXT, cc -E runs the code through the compiler's parser,
6700  # not just through cpp. "Syntax error" is here to catch this case.
6701  cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707#ifdef __STDC__
6708# include <limits.h>
6709#else
6710# include <assert.h>
6711#endif
6712		     Syntax error
6713_ACEOF
6714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6715  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6716  ac_status=$?
6717  grep -v '^ *+' conftest.er1 >conftest.err
6718  rm -f conftest.er1
6719  cat conftest.err >&5
6720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721  (exit $ac_status); } >/dev/null; then
6722  if test -s conftest.err; then
6723    ac_cpp_err=$ac_c_preproc_warn_flag
6724    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6725  else
6726    ac_cpp_err=
6727  fi
6728else
6729  ac_cpp_err=yes
6730fi
6731if test -z "$ac_cpp_err"; then
6732  :
6733else
6734  echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737  # Broken: fails on valid input.
6738continue
6739fi
6740rm -f conftest.err conftest.$ac_ext
6741
6742  # OK, works on sane cases.  Now check whether non-existent headers
6743  # can be detected and how.
6744  cat >conftest.$ac_ext <<_ACEOF
6745/* confdefs.h.  */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h.  */
6750#include <ac_nonexistent.h>
6751_ACEOF
6752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6754  ac_status=$?
6755  grep -v '^ *+' conftest.er1 >conftest.err
6756  rm -f conftest.er1
6757  cat conftest.err >&5
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); } >/dev/null; then
6760  if test -s conftest.err; then
6761    ac_cpp_err=$ac_c_preproc_warn_flag
6762    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6763  else
6764    ac_cpp_err=
6765  fi
6766else
6767  ac_cpp_err=yes
6768fi
6769if test -z "$ac_cpp_err"; then
6770  # Broken: success on invalid input.
6771continue
6772else
6773  echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776  # Passes both tests.
6777ac_preproc_ok=:
6778break
6779fi
6780rm -f conftest.err conftest.$ac_ext
6781
6782done
6783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6784rm -f conftest.err conftest.$ac_ext
6785if $ac_preproc_ok; then
6786  :
6787else
6788  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6789See \`config.log' for more details." >&5
6790echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6791See \`config.log' for more details." >&2;}
6792   { (exit 1); exit 1; }; }
6793fi
6794
6795ac_ext=c
6796ac_cpp='$CPP $CPPFLAGS'
6797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800
6801
6802echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6804if test "${ac_cv_header_stdc+set}" = set; then
6805  echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807  cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h.  */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h.  */
6813#include <stdlib.h>
6814#include <stdarg.h>
6815#include <string.h>
6816#include <float.h>
6817
6818int
6819main ()
6820{
6821
6822  ;
6823  return 0;
6824}
6825_ACEOF
6826rm -f conftest.$ac_objext
6827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828  (eval $ac_compile) 2>conftest.er1
6829  ac_status=$?
6830  grep -v '^ *+' conftest.er1 >conftest.err
6831  rm -f conftest.er1
6832  cat conftest.err >&5
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); } &&
6835	 { ac_try='test -z "$ac_c_werror_flag"
6836			 || test ! -s conftest.err'
6837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838  (eval $ac_try) 2>&5
6839  ac_status=$?
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); }; } &&
6842	 { ac_try='test -s conftest.$ac_objext'
6843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844  (eval $ac_try) 2>&5
6845  ac_status=$?
6846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847  (exit $ac_status); }; }; then
6848  ac_cv_header_stdc=yes
6849else
6850  echo "$as_me: failed program was:" >&5
6851sed 's/^/| /' conftest.$ac_ext >&5
6852
6853ac_cv_header_stdc=no
6854fi
6855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6856
6857if test $ac_cv_header_stdc = yes; then
6858  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6859  cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865#include <string.h>
6866
6867_ACEOF
6868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869  $EGREP "memchr" >/dev/null 2>&1; then
6870  :
6871else
6872  ac_cv_header_stdc=no
6873fi
6874rm -f conftest*
6875
6876fi
6877
6878if test $ac_cv_header_stdc = yes; then
6879  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6880  cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h.  */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h.  */
6886#include <stdlib.h>
6887
6888_ACEOF
6889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890  $EGREP "free" >/dev/null 2>&1; then
6891  :
6892else
6893  ac_cv_header_stdc=no
6894fi
6895rm -f conftest*
6896
6897fi
6898
6899if test $ac_cv_header_stdc = yes; then
6900  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6901  if test "$cross_compiling" = yes; then
6902  :
6903else
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#include <ctype.h>
6911#if ((' ' & 0x0FF) == 0x020)
6912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6914#else
6915# define ISLOWER(c) \
6916		   (('a' <= (c) && (c) <= 'i') \
6917		     || ('j' <= (c) && (c) <= 'r') \
6918		     || ('s' <= (c) && (c) <= 'z'))
6919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6920#endif
6921
6922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6923int
6924main ()
6925{
6926  int i;
6927  for (i = 0; i < 256; i++)
6928    if (XOR (islower (i), ISLOWER (i))
6929	|| toupper (i) != TOUPPER (i))
6930      exit(2);
6931  exit (0);
6932}
6933_ACEOF
6934rm -f conftest$ac_exeext
6935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936  (eval $ac_link) 2>&5
6937  ac_status=$?
6938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941  (eval $ac_try) 2>&5
6942  ac_status=$?
6943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944  (exit $ac_status); }; }; then
6945  :
6946else
6947  echo "$as_me: program exited with status $ac_status" >&5
6948echo "$as_me: failed program was:" >&5
6949sed 's/^/| /' conftest.$ac_ext >&5
6950
6951( exit $ac_status )
6952ac_cv_header_stdc=no
6953fi
6954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6955fi
6956fi
6957fi
6958echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6959echo "${ECHO_T}$ac_cv_header_stdc" >&6
6960if test $ac_cv_header_stdc = yes; then
6961
6962cat >>confdefs.h <<\_ACEOF
6963#define STDC_HEADERS 1
6964_ACEOF
6965
6966fi
6967
6968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6979		  inttypes.h stdint.h unistd.h
6980do
6981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982echo "$as_me:$LINENO: checking for $ac_header" >&5
6983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6984if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985  echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987  cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h.  */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h.  */
6993$ac_includes_default
6994
6995#include <$ac_header>
6996_ACEOF
6997rm -f conftest.$ac_objext
6998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999  (eval $ac_compile) 2>conftest.er1
7000  ac_status=$?
7001  grep -v '^ *+' conftest.er1 >conftest.err
7002  rm -f conftest.er1
7003  cat conftest.err >&5
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); } &&
7006	 { ac_try='test -z "$ac_c_werror_flag"
7007			 || test ! -s conftest.err'
7008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009  (eval $ac_try) 2>&5
7010  ac_status=$?
7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012  (exit $ac_status); }; } &&
7013	 { ac_try='test -s conftest.$ac_objext'
7014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015  (eval $ac_try) 2>&5
7016  ac_status=$?
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); }; }; then
7019  eval "$as_ac_Header=yes"
7020else
7021  echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024eval "$as_ac_Header=no"
7025fi
7026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7030if test `eval echo '${'$as_ac_Header'}'` = yes; then
7031  cat >>confdefs.h <<_ACEOF
7032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033_ACEOF
7034
7035fi
7036
7037done
7038
7039
7040
7041for ac_header in dlfcn.h
7042do
7043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7044if eval "test \"\${$as_ac_Header+set}\" = set"; then
7045  echo "$as_me:$LINENO: checking for $ac_header" >&5
7046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048  echo $ECHO_N "(cached) $ECHO_C" >&6
7049fi
7050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7052else
7053  # Is the header compilable?
7054echo "$as_me:$LINENO: checking $ac_header usability" >&5
7055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7056cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h.  */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h.  */
7062$ac_includes_default
7063#include <$ac_header>
7064_ACEOF
7065rm -f conftest.$ac_objext
7066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067  (eval $ac_compile) 2>conftest.er1
7068  ac_status=$?
7069  grep -v '^ *+' conftest.er1 >conftest.err
7070  rm -f conftest.er1
7071  cat conftest.err >&5
7072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073  (exit $ac_status); } &&
7074	 { ac_try='test -z "$ac_c_werror_flag"
7075			 || test ! -s conftest.err'
7076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077  (eval $ac_try) 2>&5
7078  ac_status=$?
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); }; } &&
7081	 { ac_try='test -s conftest.$ac_objext'
7082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083  (eval $ac_try) 2>&5
7084  ac_status=$?
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); }; }; then
7087  ac_header_compiler=yes
7088else
7089  echo "$as_me: failed program was:" >&5
7090sed 's/^/| /' conftest.$ac_ext >&5
7091
7092ac_header_compiler=no
7093fi
7094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7096echo "${ECHO_T}$ac_header_compiler" >&6
7097
7098# Is the header present?
7099echo "$as_me:$LINENO: checking $ac_header presence" >&5
7100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7101cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107#include <$ac_header>
7108_ACEOF
7109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7110  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7111  ac_status=$?
7112  grep -v '^ *+' conftest.er1 >conftest.err
7113  rm -f conftest.er1
7114  cat conftest.err >&5
7115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116  (exit $ac_status); } >/dev/null; then
7117  if test -s conftest.err; then
7118    ac_cpp_err=$ac_c_preproc_warn_flag
7119    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7120  else
7121    ac_cpp_err=
7122  fi
7123else
7124  ac_cpp_err=yes
7125fi
7126if test -z "$ac_cpp_err"; then
7127  ac_header_preproc=yes
7128else
7129  echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132  ac_header_preproc=no
7133fi
7134rm -f conftest.err conftest.$ac_ext
7135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7136echo "${ECHO_T}$ac_header_preproc" >&6
7137
7138# So?  What about this header?
7139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140  yes:no: )
7141    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7145    ac_header_preproc=yes
7146    ;;
7147  no:yes:* )
7148    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7150    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7151echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7152    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7154    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7155echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7156    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7158    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7160    (
7161      cat <<\_ASBOX
7162## ----------------------------------------- ##
7163## Report this to coin-clp@lists.coin-or.org ##
7164## ----------------------------------------- ##
7165_ASBOX
7166    ) |
7167      sed "s/^/$as_me: WARNING:     /" >&2
7168    ;;
7169esac
7170echo "$as_me:$LINENO: checking for $ac_header" >&5
7171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7172if eval "test \"\${$as_ac_Header+set}\" = set"; then
7173  echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175  eval "$as_ac_Header=\$ac_header_preproc"
7176fi
7177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179
7180fi
7181if test `eval echo '${'$as_ac_Header'}'` = yes; then
7182  cat >>confdefs.h <<_ACEOF
7183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7184_ACEOF
7185
7186fi
7187
7188done
7189
7190
7191
7192if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7193    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7194    (test "X$CXX" != "Xg++"))) ; then
7195  ac_ext=cc
7196ac_cpp='$CXXCPP $CPPFLAGS'
7197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7200echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7201echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7202if test -z "$CXXCPP"; then
7203  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206      # Double quotes because CXXCPP needs to be expanded
7207    for CXXCPP in "$CXX -E" "/lib/cpp"
7208    do
7209      ac_preproc_ok=false
7210for ac_cxx_preproc_warn_flag in '' yes
7211do
7212  # Use a header file that comes with gcc, so configuring glibc
7213  # with a fresh cross-compiler works.
7214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215  # <limits.h> exists even on freestanding compilers.
7216  # On the NeXT, cc -E runs the code through the compiler's parser,
7217  # not just through cpp. "Syntax error" is here to catch this case.
7218  cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h.  */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h.  */
7224#ifdef __STDC__
7225# include <limits.h>
7226#else
7227# include <assert.h>
7228#endif
7229		     Syntax error
7230_ACEOF
7231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7232  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7233  ac_status=$?
7234  grep -v '^ *+' conftest.er1 >conftest.err
7235  rm -f conftest.er1
7236  cat conftest.err >&5
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); } >/dev/null; then
7239  if test -s conftest.err; then
7240    ac_cpp_err=$ac_cxx_preproc_warn_flag
7241    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7242  else
7243    ac_cpp_err=
7244  fi
7245else
7246  ac_cpp_err=yes
7247fi
7248if test -z "$ac_cpp_err"; then
7249  :
7250else
7251  echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
7254  # Broken: fails on valid input.
7255continue
7256fi
7257rm -f conftest.err conftest.$ac_ext
7258
7259  # OK, works on sane cases.  Now check whether non-existent headers
7260  # can be detected and how.
7261  cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h.  */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h.  */
7267#include <ac_nonexistent.h>
7268_ACEOF
7269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7271  ac_status=$?
7272  grep -v '^ *+' conftest.er1 >conftest.err
7273  rm -f conftest.er1
7274  cat conftest.err >&5
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); } >/dev/null; then
7277  if test -s conftest.err; then
7278    ac_cpp_err=$ac_cxx_preproc_warn_flag
7279    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7280  else
7281    ac_cpp_err=
7282  fi
7283else
7284  ac_cpp_err=yes
7285fi
7286if test -z "$ac_cpp_err"; then
7287  # Broken: success on invalid input.
7288continue
7289else
7290  echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293  # Passes both tests.
7294ac_preproc_ok=:
7295break
7296fi
7297rm -f conftest.err conftest.$ac_ext
7298
7299done
7300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7301rm -f conftest.err conftest.$ac_ext
7302if $ac_preproc_ok; then
7303  break
7304fi
7305
7306    done
7307    ac_cv_prog_CXXCPP=$CXXCPP
7308
7309fi
7310  CXXCPP=$ac_cv_prog_CXXCPP
7311else
7312  ac_cv_prog_CXXCPP=$CXXCPP
7313fi
7314echo "$as_me:$LINENO: result: $CXXCPP" >&5
7315echo "${ECHO_T}$CXXCPP" >&6
7316ac_preproc_ok=false
7317for ac_cxx_preproc_warn_flag in '' yes
7318do
7319  # Use a header file that comes with gcc, so configuring glibc
7320  # with a fresh cross-compiler works.
7321  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322  # <limits.h> exists even on freestanding compilers.
7323  # On the NeXT, cc -E runs the code through the compiler's parser,
7324  # not just through cpp. "Syntax error" is here to catch this case.
7325  cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h.  */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h.  */
7331#ifdef __STDC__
7332# include <limits.h>
7333#else
7334# include <assert.h>
7335#endif
7336		     Syntax error
7337_ACEOF
7338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7339  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7340  ac_status=$?
7341  grep -v '^ *+' conftest.er1 >conftest.err
7342  rm -f conftest.er1
7343  cat conftest.err >&5
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); } >/dev/null; then
7346  if test -s conftest.err; then
7347    ac_cpp_err=$ac_cxx_preproc_warn_flag
7348    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7349  else
7350    ac_cpp_err=
7351  fi
7352else
7353  ac_cpp_err=yes
7354fi
7355if test -z "$ac_cpp_err"; then
7356  :
7357else
7358  echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
7361  # Broken: fails on valid input.
7362continue
7363fi
7364rm -f conftest.err conftest.$ac_ext
7365
7366  # OK, works on sane cases.  Now check whether non-existent headers
7367  # can be detected and how.
7368  cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374#include <ac_nonexistent.h>
7375_ACEOF
7376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } >/dev/null; then
7384  if test -s conftest.err; then
7385    ac_cpp_err=$ac_cxx_preproc_warn_flag
7386    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7387  else
7388    ac_cpp_err=
7389  fi
7390else
7391  ac_cpp_err=yes
7392fi
7393if test -z "$ac_cpp_err"; then
7394  # Broken: success on invalid input.
7395continue
7396else
7397  echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400  # Passes both tests.
7401ac_preproc_ok=:
7402break
7403fi
7404rm -f conftest.err conftest.$ac_ext
7405
7406done
7407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7408rm -f conftest.err conftest.$ac_ext
7409if $ac_preproc_ok; then
7410  :
7411else
7412  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7413See \`config.log' for more details." >&5
7414echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7415See \`config.log' for more details." >&2;}
7416   { (exit 1); exit 1; }; }
7417fi
7418
7419ac_ext=cc
7420ac_cpp='$CXXCPP $CPPFLAGS'
7421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7424
7425fi
7426
7427
7428# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7429
7430# find the maximum length of command line arguments
7431echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7432echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7433if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7434  echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436    i=0
7437  teststring="ABCD"
7438
7439  case $build_os in
7440  msdosdjgpp*)
7441    # On DJGPP, this test can blow up pretty badly due to problems in libc
7442    # (any single argument exceeding 2000 bytes causes a buffer overrun
7443    # during glob expansion).  Even if it were fixed, the result of this
7444    # check would be larger than it should be.
7445    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7446    ;;
7447
7448  gnu*)
7449    # Under GNU Hurd, this test is not required because there is
7450    # no limit to the length of command line arguments.
7451    # Libtool will interpret -1 as no limit whatsoever
7452    lt_cv_sys_max_cmd_len=-1;
7453    ;;
7454
7455  cygwin* | mingw*)
7456    # On Win9x/ME, this test blows up -- it succeeds, but takes
7457    # about 5 minutes as the teststring grows exponentially.
7458    # Worse, since 9x/ME are not pre-emptively multitasking,
7459    # you end up with a "frozen" computer, even though with patience
7460    # the test eventually succeeds (with a max line length of 256k).
7461    # Instead, let's just punt: use the minimum linelength reported by
7462    # all of the supported platforms: 8192 (on NT/2K/XP).
7463    lt_cv_sys_max_cmd_len=8192;
7464    ;;
7465
7466  amigaos*)
7467    # On AmigaOS with pdksh, this test takes hours, literally.
7468    # So we just punt and use a minimum line length of 8192.
7469    lt_cv_sys_max_cmd_len=8192;
7470    ;;
7471
7472  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7473    # This has been around since 386BSD, at least.  Likely further.
7474    if test -x /sbin/sysctl; then
7475      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7476    elif test -x /usr/sbin/sysctl; then
7477      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7478    else
7479      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7480    fi
7481    # And add a safety zone
7482    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7483    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7484    ;;
7485
7486  interix*)
7487    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7488    lt_cv_sys_max_cmd_len=196608
7489    ;;
7490
7491  osf*)
7492    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7493    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7494    # nice to cause kernel panics so lets avoid the loop below.
7495    # First set a reasonable default.
7496    lt_cv_sys_max_cmd_len=16384
7497    #
7498    if test -x /sbin/sysconfig; then
7499      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7500        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7501      esac
7502    fi
7503    ;;
7504  sco3.2v5*)
7505    lt_cv_sys_max_cmd_len=102400
7506    ;;
7507  sysv5* | sco5v6* | sysv4.2uw2*)
7508    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7509    if test -n "$kargmax"; then
7510      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7511    else
7512      lt_cv_sys_max_cmd_len=32768
7513    fi
7514    ;;
7515  *)
7516    # If test is not a shell built-in, we'll probably end up computing a
7517    # maximum length that is only half of the actual maximum length, but
7518    # we can't tell.
7519    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7520    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7521	       = "XX$teststring") >/dev/null 2>&1 &&
7522	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7523	    lt_cv_sys_max_cmd_len=$new_result &&
7524	    test $i != 17 # 1/2 MB should be enough
7525    do
7526      i=`expr $i + 1`
7527      teststring=$teststring$teststring
7528    done
7529    teststring=
7530    # Add a significant safety factor because C++ compilers can tack on massive
7531    # amounts of additional arguments before passing them to the linker.
7532    # It appears as though 1/2 is a usable value.
7533    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7534    ;;
7535  esac
7536
7537fi
7538
7539if test -n $lt_cv_sys_max_cmd_len ; then
7540  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7541echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7542else
7543  echo "$as_me:$LINENO: result: none" >&5
7544echo "${ECHO_T}none" >&6
7545fi
7546
7547
7548
7549
7550# Check for command to grab the raw symbol name followed by C symbol from nm.
7551echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7552echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7553if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556
7557# These are sane defaults that work on at least a few old systems.
7558# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7559
7560# Character class describing NM global symbol codes.
7561symcode='[BCDEGRST]'
7562
7563# Regexp to match symbols that can be accessed directly from C.
7564sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7565
7566# Transform an extracted symbol line into a proper C declaration
7567lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7568
7569# Transform an extracted symbol line into symbol name and symbol address
7570lt_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'"
7571
7572# Define system-specific variables.
7573case $host_os in
7574aix*)
7575  symcode='[BCDT]'
7576  ;;
7577cygwin* | mingw* | pw32*)
7578  symcode='[ABCDGISTW]'
7579  ;;
7580hpux*) # Its linker distinguishes data from code symbols
7581  if test "$host_cpu" = ia64; then
7582    symcode='[ABCDEGRST]'
7583  fi
7584  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7585  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'"
7586  ;;
7587linux*)
7588  if test "$host_cpu" = ia64; then
7589    symcode='[ABCDGIRSTW]'
7590    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7591    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'"
7592  fi
7593  ;;
7594irix* | nonstopux*)
7595  symcode='[BCDEGRST]'
7596  ;;
7597osf*)
7598  symcode='[BCDEGQRST]'
7599  ;;
7600solaris*)
7601  symcode='[BDRT]'
7602  ;;
7603sco3.2v5*)
7604  symcode='[DT]'
7605  ;;
7606sysv4.2uw2*)
7607  symcode='[DT]'
7608  ;;
7609sysv5* | sco5v6* | unixware* | OpenUNIX*)
7610  symcode='[ABDT]'
7611  ;;
7612sysv4)
7613  symcode='[DFNSTU]'
7614  ;;
7615esac
7616
7617# Handle CRLF in mingw tool chain
7618opt_cr=
7619case $build_os in
7620mingw*)
7621  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7622  ;;
7623esac
7624
7625# If we're using GNU nm, then use its standard symbol codes.
7626case `$NM -V 2>&1` in
7627*GNU* | *'with BFD'*)
7628  symcode='[ABCDGIRSTW]' ;;
7629esac
7630
7631# Try without a prefix undercore, then with it.
7632for ac_symprfx in "" "_"; do
7633
7634  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7635  symxfrm="\\1 $ac_symprfx\\2 \\2"
7636
7637  # Write the raw and C identifiers.
7638  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7639
7640  # Check to see that the pipe works correctly.
7641  pipe_works=no
7642
7643  rm -f conftest*
7644  cat > conftest.$ac_ext <<EOF
7645#ifdef __cplusplus
7646extern "C" {
7647#endif
7648char nm_test_var;
7649void nm_test_func(){}
7650#ifdef __cplusplus
7651}
7652#endif
7653int main(){nm_test_var='a';nm_test_func();return(0);}
7654EOF
7655
7656  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657  (eval $ac_compile) 2>&5
7658  ac_status=$?
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); }; then
7661    # Now try to grab the symbols.
7662    nlist=conftest.nm
7663    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7664  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7665  ac_status=$?
7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667  (exit $ac_status); } && test -s "$nlist"; then
7668      # Try sorting and uniquifying the output.
7669      if sort "$nlist" | uniq > "$nlist"T; then
7670	mv -f "$nlist"T "$nlist"
7671      else
7672	rm -f "$nlist"T
7673      fi
7674
7675      # Make sure that we snagged all the symbols we need.
7676      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7677	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7678	  cat <<EOF > conftest.$ac_ext
7679#ifdef __cplusplus
7680extern "C" {
7681#endif
7682
7683EOF
7684	  # Now generate the symbol file.
7685	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7686
7687	  cat <<EOF >> conftest.$ac_ext
7688#if defined (__STDC__) && __STDC__
7689# define lt_ptr_t void *
7690#else
7691# define lt_ptr_t char *
7692# define const
7693#endif
7694
7695/* The mapping between symbol names and symbols. */
7696const struct {
7697  const char *name;
7698  lt_ptr_t address;
7699}
7700lt_preloaded_symbols[] =
7701{
7702EOF
7703	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7704	  cat <<\EOF >> conftest.$ac_ext
7705  {0, (lt_ptr_t) 0}
7706};
7707
7708#ifdef __cplusplus
7709}
7710#endif
7711EOF
7712	  # Now try linking the two files.
7713	  mv conftest.$ac_objext conftstm.$ac_objext
7714	  lt_save_LIBS="$LIBS"
7715	  lt_save_CFLAGS="$CFLAGS"
7716	  LIBS="conftstm.$ac_objext"
7717	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7718	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719  (eval $ac_link) 2>&5
7720  ac_status=$?
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7723	    pipe_works=yes
7724	  fi
7725	  LIBS="$lt_save_LIBS"
7726	  CFLAGS="$lt_save_CFLAGS"
7727	else
7728	  echo "cannot find nm_test_func in $nlist" >&5
7729	fi
7730      else
7731	echo "cannot find nm_test_var in $nlist" >&5
7732      fi
7733    else
7734      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7735    fi
7736  else
7737    echo "$progname: failed program was:" >&5
7738    cat conftest.$ac_ext >&5
7739  fi
7740  rm -f conftest* conftst*
7741
7742  # Do not use the global_symbol_pipe unless it works.
7743  if test "$pipe_works" = yes; then
7744    break
7745  else
7746    lt_cv_sys_global_symbol_pipe=
7747  fi
7748done
7749
7750fi
7751
7752if test -z "$lt_cv_sys_global_symbol_pipe"; then
7753  lt_cv_sys_global_symbol_to_cdecl=
7754fi
7755if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7756  echo "$as_me:$LINENO: result: failed" >&5
7757echo "${ECHO_T}failed" >&6
7758else
7759  echo "$as_me:$LINENO: result: ok" >&5
7760echo "${ECHO_T}ok" >&6
7761fi
7762
7763echo "$as_me:$LINENO: checking for objdir" >&5
7764echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7765if test "${lt_cv_objdir+set}" = set; then
7766  echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768  rm -f .libs 2>/dev/null
7769mkdir .libs 2>/dev/null
7770if test -d .libs; then
7771  lt_cv_objdir=.libs
7772else
7773  # MS-DOS does not allow filenames that begin with a dot.
7774  lt_cv_objdir=_libs
7775fi
7776rmdir .libs 2>/dev/null
7777fi
7778echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7779echo "${ECHO_T}$lt_cv_objdir" >&6
7780objdir=$lt_cv_objdir
7781
7782
7783
7784
7785
7786case $host_os in
7787aix3*)
7788  # AIX sometimes has problems with the GCC collect2 program.  For some
7789  # reason, if we set the COLLECT_NAMES environment variable, the problems
7790  # vanish in a puff of smoke.
7791  if test "X${COLLECT_NAMES+set}" != Xset; then
7792    COLLECT_NAMES=
7793    export COLLECT_NAMES
7794  fi
7795  ;;
7796esac
7797
7798# Sed substitution that helps us do robust quoting.  It backslashifies
7799# metacharacters that are still active within double-quoted strings.
7800Xsed='sed -e 1s/^X//'
7801sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7802
7803# Same as above, but do not quote variable references.
7804double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7805
7806# Sed substitution to delay expansion of an escaped shell variable in a
7807# double_quote_subst'ed string.
7808delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7809
7810# Sed substitution to avoid accidental globbing in evaled expressions
7811no_glob_subst='s/\*/\\\*/g'
7812
7813# Constants:
7814rm="rm -f"
7815
7816# Global variables:
7817default_ofile=libtool
7818can_build_shared=yes
7819
7820# All known linkers require a `.a' archive for static linking (except MSVC,
7821# which needs '.lib').
7822libext=a
7823ltmain="$ac_aux_dir/ltmain.sh"
7824ofile="$default_ofile"
7825with_gnu_ld="$lt_cv_prog_gnu_ld"
7826
7827if test -n "$ac_tool_prefix"; then
7828  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7829set dummy ${ac_tool_prefix}ar; ac_word=$2
7830echo "$as_me:$LINENO: checking for $ac_word" >&5
7831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7832if test "${ac_cv_prog_AR+set}" = set; then
7833  echo $ECHO_N "(cached) $ECHO_C" >&6
7834else
7835  if test -n "$AR"; then
7836  ac_cv_prog_AR="$AR" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843  for ac_exec_ext in '' $ac_executable_extensions; do
7844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845    ac_cv_prog_AR="${ac_tool_prefix}ar"
7846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850done
7851
7852fi
7853fi
7854AR=$ac_cv_prog_AR
7855if test -n "$AR"; then
7856  echo "$as_me:$LINENO: result: $AR" >&5
7857echo "${ECHO_T}$AR" >&6
7858else
7859  echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
7861fi
7862
7863fi
7864if test -z "$ac_cv_prog_AR"; then
7865  ac_ct_AR=$AR
7866  # Extract the first word of "ar", so it can be a program name with args.
7867set dummy ar; ac_word=$2
7868echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7870if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  if test -n "$ac_ct_AR"; then
7874  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879  IFS=$as_save_IFS
7880  test -z "$as_dir" && as_dir=.
7881  for ac_exec_ext in '' $ac_executable_extensions; do
7882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883    ac_cv_prog_ac_ct_AR="ar"
7884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885    break 2
7886  fi
7887done
7888done
7889
7890  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7891fi
7892fi
7893ac_ct_AR=$ac_cv_prog_ac_ct_AR
7894if test -n "$ac_ct_AR"; then
7895  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7896echo "${ECHO_T}$ac_ct_AR" >&6
7897else
7898  echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
7900fi
7901
7902  AR=$ac_ct_AR
7903else
7904  AR="$ac_cv_prog_AR"
7905fi
7906
7907if test -n "$ac_tool_prefix"; then
7908  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7910echo "$as_me:$LINENO: checking for $ac_word" >&5
7911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7912if test "${ac_cv_prog_RANLIB+set}" = set; then
7913  echo $ECHO_N "(cached) $ECHO_C" >&6
7914else
7915  if test -n "$RANLIB"; then
7916  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7917else
7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921  IFS=$as_save_IFS
7922  test -z "$as_dir" && as_dir=.
7923  for ac_exec_ext in '' $ac_executable_extensions; do
7924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927    break 2
7928  fi
7929done
7930done
7931
7932fi
7933fi
7934RANLIB=$ac_cv_prog_RANLIB
7935if test -n "$RANLIB"; then
7936  echo "$as_me:$LINENO: result: $RANLIB" >&5
7937echo "${ECHO_T}$RANLIB" >&6
7938else
7939  echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6
7941fi
7942
7943fi
7944if test -z "$ac_cv_prog_RANLIB"; then
7945  ac_ct_RANLIB=$RANLIB
7946  # Extract the first word of "ranlib", so it can be a program name with args.
7947set dummy ranlib; ac_word=$2
7948echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  if test -n "$ac_ct_RANLIB"; then
7954  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  test -z "$as_dir" && as_dir=.
7961  for ac_exec_ext in '' $ac_executable_extensions; do
7962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963    ac_cv_prog_ac_ct_RANLIB="ranlib"
7964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965    break 2
7966  fi
7967done
7968done
7969
7970  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7971fi
7972fi
7973ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7974if test -n "$ac_ct_RANLIB"; then
7975  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7976echo "${ECHO_T}$ac_ct_RANLIB" >&6
7977else
7978  echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6
7980fi
7981
7982  RANLIB=$ac_ct_RANLIB
7983else
7984  RANLIB="$ac_cv_prog_RANLIB"
7985fi
7986
7987if test -n "$ac_tool_prefix"; then
7988  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7989set dummy ${ac_tool_prefix}strip; ac_word=$2
7990echo "$as_me:$LINENO: checking for $ac_word" >&5
7991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7992if test "${ac_cv_prog_STRIP+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  if test -n "$STRIP"; then
7996  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003  for ac_exec_ext in '' $ac_executable_extensions; do
8004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010done
8011
8012fi
8013fi
8014STRIP=$ac_cv_prog_STRIP
8015if test -n "$STRIP"; then
8016  echo "$as_me:$LINENO: result: $STRIP" >&5
8017echo "${ECHO_T}$STRIP" >&6
8018else
8019  echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6
8021fi
8022
8023fi
8024if test -z "$ac_cv_prog_STRIP"; then
8025  ac_ct_STRIP=$STRIP
8026  # Extract the first word of "strip", so it can be a program name with args.
8027set dummy strip; ac_word=$2
8028echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8030if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8031  echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033  if test -n "$ac_ct_STRIP"; then
8034  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039  IFS=$as_save_IFS
8040  test -z "$as_dir" && as_dir=.
8041  for ac_exec_ext in '' $ac_executable_extensions; do
8042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_ac_ct_STRIP="strip"
8044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048done
8049
8050  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8051fi
8052fi
8053ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8054if test -n "$ac_ct_STRIP"; then
8055  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8056echo "${ECHO_T}$ac_ct_STRIP" >&6
8057else
8058  echo "$as_me:$LINENO: result: no" >&5
8059echo "${ECHO_T}no" >&6
8060fi
8061
8062  STRIP=$ac_ct_STRIP
8063else
8064  STRIP="$ac_cv_prog_STRIP"
8065fi
8066
8067
8068old_CC="$CC"
8069old_CFLAGS="$CFLAGS"
8070
8071# Set sane defaults for various variables
8072test -z "$AR" && AR=ar
8073test -z "$AR_FLAGS" && AR_FLAGS=cru
8074test -z "$AS" && AS=as
8075test -z "$CC" && CC=cc
8076test -z "$LTCC" && LTCC=$CC
8077test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8078test -z "$DLLTOOL" && DLLTOOL=dlltool
8079test -z "$LD" && LD=ld
8080test -z "$LN_S" && LN_S="ln -s"
8081test -z "$MAGIC_CMD" && MAGIC_CMD=file
8082test -z "$NM" && NM=nm
8083test -z "$SED" && SED=sed
8084test -z "$OBJDUMP" && OBJDUMP=objdump
8085test -z "$RANLIB" && RANLIB=:
8086test -z "$STRIP" && STRIP=:
8087test -z "$ac_objext" && ac_objext=o
8088
8089# Determine commands to create old-style static archives.
8090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8091old_postinstall_cmds='chmod 644 $oldlib'
8092old_postuninstall_cmds=
8093
8094if test -n "$RANLIB"; then
8095  case $host_os in
8096  openbsd*)
8097    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8098    ;;
8099  *)
8100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8101    ;;
8102  esac
8103  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8104fi
8105
8106for cc_temp in $compiler""; do
8107  case $cc_temp in
8108    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8109    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8110    \-*) ;;
8111    *) break;;
8112  esac
8113done
8114cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8115
8116
8117# Only perform the check for file, if the check method requires it
8118case $deplibs_check_method in
8119file_magic*)
8120  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8121    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8122echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8123if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8124  echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126  case $MAGIC_CMD in
8127[\\/*] |  ?:[\\/]*)
8128  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8129  ;;
8130*)
8131  lt_save_MAGIC_CMD="$MAGIC_CMD"
8132  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8133  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8134  for ac_dir in $ac_dummy; do
8135    IFS="$lt_save_ifs"
8136    test -z "$ac_dir" && ac_dir=.
8137    if test -f $ac_dir/${ac_tool_prefix}file; then
8138      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8139      if test -n "$file_magic_test_file"; then
8140	case $deplibs_check_method in
8141	"file_magic "*)
8142	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8143	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8145	    $EGREP "$file_magic_regex" > /dev/null; then
8146	    :
8147	  else
8148	    cat <<EOF 1>&2
8149
8150*** Warning: the command libtool uses to detect shared libraries,
8151*** $file_magic_cmd, produces output that libtool cannot recognize.
8152*** The result is that libtool may fail to recognize shared libraries
8153*** as such.  This will affect the creation of libtool libraries that
8154*** depend on shared libraries, but programs linked with such libtool
8155*** libraries will work regardless of this problem.  Nevertheless, you
8156*** may want to report the problem to your system manager and/or to
8157*** bug-libtool@gnu.org
8158
8159EOF
8160	  fi ;;
8161	esac
8162      fi
8163      break
8164    fi
8165  done
8166  IFS="$lt_save_ifs"
8167  MAGIC_CMD="$lt_save_MAGIC_CMD"
8168  ;;
8169esac
8170fi
8171
8172MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8173if test -n "$MAGIC_CMD"; then
8174  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8175echo "${ECHO_T}$MAGIC_CMD" >&6
8176else
8177  echo "$as_me:$LINENO: result: no" >&5
8178echo "${ECHO_T}no" >&6
8179fi
8180
8181if test -z "$lt_cv_path_MAGIC_CMD"; then
8182  if test -n "$ac_tool_prefix"; then
8183    echo "$as_me:$LINENO: checking for file" >&5
8184echo $ECHO_N "checking for file... $ECHO_C" >&6
8185if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8186  echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188  case $MAGIC_CMD in
8189[\\/*] |  ?:[\\/]*)
8190  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8191  ;;
8192*)
8193  lt_save_MAGIC_CMD="$MAGIC_CMD"
8194  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8195  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8196  for ac_dir in $ac_dummy; do
8197    IFS="$lt_save_ifs"
8198    test -z "$ac_dir" && ac_dir=.
8199    if test -f $ac_dir/file; then
8200      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8201      if test -n "$file_magic_test_file"; then
8202	case $deplibs_check_method in
8203	"file_magic "*)
8204	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8206	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8207	    $EGREP "$file_magic_regex" > /dev/null; then
8208	    :
8209	  else
8210	    cat <<EOF 1>&2
8211
8212*** Warning: the command libtool uses to detect shared libraries,
8213*** $file_magic_cmd, produces output that libtool cannot recognize.
8214*** The result is that libtool may fail to recognize shared libraries
8215*** as such.  This will affect the creation of libtool libraries that
8216*** depend on shared libraries, but programs linked with such libtool
8217*** libraries will work regardless of this problem.  Nevertheless, you
8218*** may want to report the problem to your system manager and/or to
8219*** bug-libtool@gnu.org
8220
8221EOF
8222	  fi ;;
8223	esac
8224      fi
8225      break
8226    fi
8227  done
8228  IFS="$lt_save_ifs"
8229  MAGIC_CMD="$lt_save_MAGIC_CMD"
8230  ;;
8231esac
8232fi
8233
8234MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8235if test -n "$MAGIC_CMD"; then
8236  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8237echo "${ECHO_T}$MAGIC_CMD" >&6
8238else
8239  echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241fi
8242
8243  else
8244    MAGIC_CMD=:
8245  fi
8246fi
8247
8248  fi
8249  ;;
8250esac
8251
8252enable_dlopen=no
8253enable_win32_dll=no
8254
8255# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8256if test "${enable_libtool_lock+set}" = set; then
8257  enableval="$enable_libtool_lock"
8258
8259fi;
8260test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8261
8262
8263# Check whether --with-pic or --without-pic was given.
8264if test "${with_pic+set}" = set; then
8265  withval="$with_pic"
8266  pic_mode="$withval"
8267else
8268  pic_mode=default
8269fi;
8270test -z "$pic_mode" && pic_mode=default
8271
8272# Use C for the default configuration in the libtool script
8273tagname=
8274lt_save_CC="$CC"
8275ac_ext=c
8276ac_cpp='$CPP $CPPFLAGS'
8277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8279ac_compiler_gnu=$ac_cv_c_compiler_gnu
8280
8281
8282# Source file extension for C test sources.
8283ac_ext=c
8284
8285# Object file extension for compiled C test sources.
8286objext=o
8287objext=$objext
8288
8289# Code to be used in simple compile tests
8290lt_simple_compile_test_code="int some_variable = 0;\n"
8291
8292# Code to be used in simple link tests
8293lt_simple_link_test_code='int main(){return(0);}\n'
8294
8295
8296# If no C compiler was specified, use CC.
8297LTCC=${LTCC-"$CC"}
8298
8299# If no C compiler flags were specified, use CFLAGS.
8300LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8301
8302# Allow CC to be a program name with arguments.
8303compiler=$CC
8304
8305
8306# save warnings/boilerplate of simple test code
8307ac_outfile=conftest.$ac_objext
8308printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8309eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8310_lt_compiler_boilerplate=`cat conftest.err`
8311$rm conftest*
8312
8313ac_outfile=conftest.$ac_objext
8314printf "$lt_simple_link_test_code" >conftest.$ac_ext
8315eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8316_lt_linker_boilerplate=`cat conftest.err`
8317$rm conftest*
8318
8319
8320## CAVEAT EMPTOR:
8321## There is no encapsulation within the following macros, do not change
8322## the running order or otherwise move them around unless you know exactly
8323## what you are doing...
8324
8325lt_prog_compiler_no_builtin_flag=
8326
8327if test "$GCC" = yes; then
8328  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8329
8330
8331echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8332echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8333if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8334  echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336  lt_cv_prog_compiler_rtti_exceptions=no
8337  ac_outfile=conftest.$ac_objext
8338   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8339   lt_compiler_flag="-fno-rtti -fno-exceptions"
8340   # Insert the option either (1) after the last *FLAGS variable, or
8341   # (2) before a word containing "conftest.", or (3) at the end.
8342   # Note that $ac_compile itself does not contain backslashes and begins
8343   # with a dollar sign (not a hyphen), so the echo should work correctly.
8344   # The option is referenced via a variable to avoid confusing sed.
8345   lt_compile=`echo "$ac_compile" | $SED \
8346   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348   -e 's:$: $lt_compiler_flag:'`
8349   (eval echo "\"\$as_me:8349: $lt_compile\"" >&5)
8350   (eval "$lt_compile" 2>conftest.err)
8351   ac_status=$?
8352   cat conftest.err >&5
8353   echo "$as_me:8353: \$? = $ac_status" >&5
8354   if (exit $ac_status) && test -s "$ac_outfile"; then
8355     # The compiler can only warn and ignore the option if not recognized
8356     # So say no if there are warnings other than the usual output.
8357     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8358     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8359     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8360       lt_cv_prog_compiler_rtti_exceptions=yes
8361     fi
8362   fi
8363   $rm conftest*
8364
8365fi
8366echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8367echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8368
8369if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8370    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8371else
8372    :
8373fi
8374
8375fi
8376
8377lt_prog_compiler_wl=
8378lt_prog_compiler_pic=
8379lt_prog_compiler_static=
8380
8381echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8382echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8383
8384  if test "$GCC" = yes; then
8385    lt_prog_compiler_wl='-Wl,'
8386    lt_prog_compiler_static='-static'
8387
8388    case $host_os in
8389      aix*)
8390      # All AIX code is PIC.
8391      if test "$host_cpu" = ia64; then
8392	# AIX 5 now supports IA64 processor
8393	lt_prog_compiler_static='-Bstatic'
8394      fi
8395      ;;
8396
8397    amigaos*)
8398      # FIXME: we need at least 68020 code to build shared libraries, but
8399      # adding the `-m68020' flag to GCC prevents building anything better,
8400      # like `-m68040'.
8401      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8402      ;;
8403
8404    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8405      # PIC is the default for these OSes.
8406      ;;
8407
8408    mingw* | pw32* | os2*)
8409      # This hack is so that the source file can tell whether it is being
8410      # built for inclusion in a dll (and should export symbols for example).
8411      lt_prog_compiler_pic='-DDLL_EXPORT'
8412      ;;
8413
8414    darwin* | rhapsody*)
8415      # PIC is the default on this platform
8416      # Common symbols not allowed in MH_DYLIB files
8417      lt_prog_compiler_pic='-fno-common'
8418      ;;
8419
8420    interix3*)
8421      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8422      # Instead, we relocate shared libraries at runtime.
8423      ;;
8424
8425    msdosdjgpp*)
8426      # Just because we use GCC doesn't mean we suddenly get shared libraries
8427      # on systems that don't support them.
8428      lt_prog_compiler_can_build_shared=no
8429      enable_shared=no
8430      ;;
8431
8432    sysv4*MP*)
8433      if test -d /usr/nec; then
8434	lt_prog_compiler_pic=-Kconform_pic
8435      fi
8436      ;;
8437
8438    hpux*)
8439      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8440      # not for PA HP-UX.
8441      case $host_cpu in
8442      hppa*64*|ia64*)
8443	# +Z the default
8444	;;
8445      *)
8446	lt_prog_compiler_pic='-fPIC'
8447	;;
8448      esac
8449      ;;
8450
8451    *)
8452      lt_prog_compiler_pic='-fPIC'
8453      ;;
8454    esac
8455  else
8456    # PORTME Check for flag to pass linker flags through the system compiler.
8457    case $host_os in
8458    aix*)
8459      lt_prog_compiler_wl='-Wl,'
8460      if test "$host_cpu" = ia64; then
8461	# AIX 5 now supports IA64 processor
8462	lt_prog_compiler_static='-Bstatic'
8463      else
8464	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8465      fi
8466      ;;
8467      darwin*)
8468        # PIC is the default on this platform
8469        # Common symbols not allowed in MH_DYLIB files
8470       case $cc_basename in
8471         xlc*)
8472         lt_prog_compiler_pic='-qnocommon'
8473         lt_prog_compiler_wl='-Wl,'
8474         ;;
8475       esac
8476       ;;
8477
8478    mingw* | pw32* | os2*)
8479      # This hack is so that the source file can tell whether it is being
8480      # built for inclusion in a dll (and should export symbols for example).
8481      lt_prog_compiler_pic='-DDLL_EXPORT'
8482      ;;
8483
8484    hpux9* | hpux10* | hpux11*)
8485      lt_prog_compiler_wl='-Wl,'
8486      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8487      # not for PA HP-UX.
8488      case $host_cpu in
8489      hppa*64*|ia64*)
8490	# +Z the default
8491	;;
8492      *)
8493	lt_prog_compiler_pic='+Z'
8494	;;
8495      esac
8496      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8497      lt_prog_compiler_static='${wl}-a ${wl}archive'
8498      ;;
8499
8500    irix5* | irix6* | nonstopux*)
8501      lt_prog_compiler_wl='-Wl,'
8502      # PIC (with -KPIC) is the default.
8503      lt_prog_compiler_static='-non_shared'
8504      ;;
8505
8506    newsos6)
8507      lt_prog_compiler_pic='-KPIC'
8508      lt_prog_compiler_static='-Bstatic'
8509      ;;
8510
8511    linux*)
8512      case $cc_basename in
8513      icc* | ecc*)
8514	lt_prog_compiler_wl='-Wl,'
8515	lt_prog_compiler_pic='-KPIC'
8516	lt_prog_compiler_static='-static'
8517        ;;
8518      pgcc* | pgf77* | pgf90* | pgf95*)
8519        # Portland Group compilers (*not* the Pentium gcc compiler,
8520	# which looks to be a dead project)
8521	lt_prog_compiler_wl='-Wl,'
8522	lt_prog_compiler_pic='-fpic'
8523	lt_prog_compiler_static='-Bstatic'
8524        ;;
8525      ccc*)
8526        lt_prog_compiler_wl='-Wl,'
8527        # All Alpha code is PIC.
8528        lt_prog_compiler_static='-non_shared'
8529        ;;
8530      esac
8531      ;;
8532
8533    osf3* | osf4* | osf5*)
8534      lt_prog_compiler_wl='-Wl,'
8535      # All OSF/1 code is PIC.
8536      lt_prog_compiler_static='-non_shared'
8537      ;;
8538
8539    solaris*)
8540      lt_prog_compiler_pic='-KPIC'
8541      lt_prog_compiler_static='-Bstatic'
8542      case $cc_basename in
8543      f77* | f90* | f95*)
8544	lt_prog_compiler_wl='-Qoption ld ';;
8545      *)
8546	lt_prog_compiler_wl='-Wl,';;
8547      esac
8548      ;;
8549
8550    sunos4*)
8551      lt_prog_compiler_wl='-Qoption ld '
8552      lt_prog_compiler_pic='-PIC'
8553      lt_prog_compiler_static='-Bstatic'
8554      ;;
8555
8556    sysv4 | sysv4.2uw2* | sysv4.3*)
8557      lt_prog_compiler_wl='-Wl,'
8558      lt_prog_compiler_pic='-KPIC'
8559      lt_prog_compiler_static='-Bstatic'
8560      ;;
8561
8562    sysv4*MP*)
8563      if test -d /usr/nec ;then
8564	lt_prog_compiler_pic='-Kconform_pic'
8565	lt_prog_compiler_static='-Bstatic'
8566      fi
8567      ;;
8568
8569    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8570      lt_prog_compiler_wl='-Wl,'
8571      lt_prog_compiler_pic='-KPIC'
8572      lt_prog_compiler_static='-Bstatic'
8573      ;;
8574
8575    unicos*)
8576      lt_prog_compiler_wl='-Wl,'
8577      lt_prog_compiler_can_build_shared=no
8578      ;;
8579
8580    uts4*)
8581      lt_prog_compiler_pic='-pic'
8582      lt_prog_compiler_static='-Bstatic'
8583      ;;
8584
8585    *)
8586      lt_prog_compiler_can_build_shared=no
8587      ;;
8588    esac
8589  fi
8590
8591echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8592echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8593
8594#
8595# Check to make sure the PIC flag actually works.
8596#
8597if test -n "$lt_prog_compiler_pic"; then
8598
8599echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8600echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8601if test "${lt_prog_compiler_pic_works+set}" = set; then
8602  echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604  lt_prog_compiler_pic_works=no
8605  ac_outfile=conftest.$ac_objext
8606   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8607   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8608   # Insert the option either (1) after the last *FLAGS variable, or
8609   # (2) before a word containing "conftest.", or (3) at the end.
8610   # Note that $ac_compile itself does not contain backslashes and begins
8611   # with a dollar sign (not a hyphen), so the echo should work correctly.
8612   # The option is referenced via a variable to avoid confusing sed.
8613   lt_compile=`echo "$ac_compile" | $SED \
8614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616   -e 's:$: $lt_compiler_flag:'`
8617   (eval echo "\"\$as_me:8617: $lt_compile\"" >&5)
8618   (eval "$lt_compile" 2>conftest.err)
8619   ac_status=$?
8620   cat conftest.err >&5
8621   echo "$as_me:8621: \$? = $ac_status" >&5
8622   if (exit $ac_status) && test -s "$ac_outfile"; then
8623     # The compiler can only warn and ignore the option if not recognized
8624     # So say no if there are warnings other than the usual output.
8625     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8626     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8627     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8628       lt_prog_compiler_pic_works=yes
8629     fi
8630   fi
8631   $rm conftest*
8632
8633fi
8634echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8635echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8636
8637if test x"$lt_prog_compiler_pic_works" = xyes; then
8638    case $lt_prog_compiler_pic in
8639     "" | " "*) ;;
8640     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8641     esac
8642else
8643    lt_prog_compiler_pic=
8644     lt_prog_compiler_can_build_shared=no
8645fi
8646
8647fi
8648case $host_os in
8649  # For platforms which do not support PIC, -DPIC is meaningless:
8650  *djgpp*)
8651    lt_prog_compiler_pic=
8652    ;;
8653  *)
8654    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8655    ;;
8656esac
8657
8658#
8659# Check to make sure the static flag actually works.
8660#
8661wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8662echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8663echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8664if test "${lt_prog_compiler_static_works+set}" = set; then
8665  echo $ECHO_N "(cached) $ECHO_C" >&6
8666else
8667  lt_prog_compiler_static_works=no
8668   save_LDFLAGS="$LDFLAGS"
8669   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8670   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8671   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8672     # The linker can only warn and ignore the option if not recognized
8673     # So say no if there are warnings
8674     if test -s conftest.err; then
8675       # Append any errors to the config.log.
8676       cat conftest.err 1>&5
8677       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8678       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8679       if diff conftest.exp conftest.er2 >/dev/null; then
8680         lt_prog_compiler_static_works=yes
8681       fi
8682     else
8683       lt_prog_compiler_static_works=yes
8684     fi
8685   fi
8686   $rm conftest*
8687   LDFLAGS="$save_LDFLAGS"
8688
8689fi
8690echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8691echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8692
8693if test x"$lt_prog_compiler_static_works" = xyes; then
8694    :
8695else
8696    lt_prog_compiler_static=
8697fi
8698
8699
8700echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8701echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8702if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8703  echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705  lt_cv_prog_compiler_c_o=no
8706   $rm -r conftest 2>/dev/null
8707   mkdir conftest
8708   cd conftest
8709   mkdir out
8710   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8711
8712   lt_compiler_flag="-o out/conftest2.$ac_objext"
8713   # Insert the option either (1) after the last *FLAGS variable, or
8714   # (2) before a word containing "conftest.", or (3) at the end.
8715   # Note that $ac_compile itself does not contain backslashes and begins
8716   # with a dollar sign (not a hyphen), so the echo should work correctly.
8717   lt_compile=`echo "$ac_compile" | $SED \
8718   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720   -e 's:$: $lt_compiler_flag:'`
8721   (eval echo "\"\$as_me:8721: $lt_compile\"" >&5)
8722   (eval "$lt_compile" 2>out/conftest.err)
8723   ac_status=$?
8724   cat out/conftest.err >&5
8725   echo "$as_me:8725: \$? = $ac_status" >&5
8726   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8727   then
8728     # The compiler can only warn and ignore the option if not recognized
8729     # So say no if there are warnings
8730     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8731     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8732     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8733       lt_cv_prog_compiler_c_o=yes
8734     fi
8735   fi
8736   chmod u+w . 2>&5
8737   $rm conftest*
8738   # SGI C++ compiler will create directory out/ii_files/ for
8739   # template instantiation
8740   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8741   $rm out/* && rmdir out
8742   cd ..
8743   rmdir conftest
8744   $rm conftest*
8745
8746fi
8747echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8748echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8749
8750
8751hard_links="nottested"
8752if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8753  # do not overwrite the value of need_locks provided by the user
8754  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8755echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8756  hard_links=yes
8757  $rm conftest*
8758  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8759  touch conftest.a
8760  ln conftest.a conftest.b 2>&5 || hard_links=no
8761  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8762  echo "$as_me:$LINENO: result: $hard_links" >&5
8763echo "${ECHO_T}$hard_links" >&6
8764  if test "$hard_links" = no; then
8765    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8766echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8767    need_locks=warn
8768  fi
8769else
8770  need_locks=no
8771fi
8772
8773echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8774echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8775
8776  runpath_var=
8777  allow_undefined_flag=
8778  enable_shared_with_static_runtimes=no
8779  archive_cmds=
8780  archive_expsym_cmds=
8781  old_archive_From_new_cmds=
8782  old_archive_from_expsyms_cmds=
8783  export_dynamic_flag_spec=
8784  whole_archive_flag_spec=
8785  thread_safe_flag_spec=
8786  hardcode_libdir_flag_spec=
8787  hardcode_libdir_flag_spec_ld=
8788  hardcode_libdir_separator=
8789  hardcode_direct=no
8790  hardcode_minus_L=no
8791  hardcode_shlibpath_var=unsupported
8792  link_all_deplibs=unknown
8793  hardcode_automatic=no
8794  module_cmds=
8795  module_expsym_cmds=
8796  always_export_symbols=no
8797  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8798  # include_expsyms should be a list of space-separated symbols to be *always*
8799  # included in the symbol list
8800  include_expsyms=
8801  # exclude_expsyms can be an extended regexp of symbols to exclude
8802  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8803  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8804  # as well as any symbol that contains `d'.
8805  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8806  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8807  # platforms (ab)use it in PIC code, but their linkers get confused if
8808  # the symbol is explicitly referenced.  Since portable code cannot
8809  # rely on this symbol name, it's probably fine to never include it in
8810  # preloaded symbol tables.
8811  extract_expsyms_cmds=
8812  # Just being paranoid about ensuring that cc_basename is set.
8813  for cc_temp in $compiler""; do
8814  case $cc_temp in
8815    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8816    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8817    \-*) ;;
8818    *) break;;
8819  esac
8820done
8821cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8822
8823  case $host_os in
8824  cygwin* | mingw* | pw32*)
8825    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8826    # When not using gcc, we currently assume that we are using
8827    # Microsoft Visual C++.
8828    if test "$GCC" != yes; then
8829      with_gnu_ld=no
8830    fi
8831    ;;
8832  interix*)
8833    # we just hope/assume this is gcc and not c89 (= MSVC++)
8834    with_gnu_ld=yes
8835    ;;
8836  openbsd*)
8837    with_gnu_ld=no
8838    ;;
8839  esac
8840
8841  ld_shlibs=yes
8842  if test "$with_gnu_ld" = yes; then
8843    # If archive_cmds runs LD, not CC, wlarc should be empty
8844    wlarc='${wl}'
8845
8846    # Set some defaults for GNU ld with shared library support. These
8847    # are reset later if shared libraries are not supported. Putting them
8848    # here allows them to be overridden if necessary.
8849    runpath_var=LD_RUN_PATH
8850    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8851    export_dynamic_flag_spec='${wl}--export-dynamic'
8852    # ancient GNU ld didn't support --whole-archive et. al.
8853    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8854	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8855      else
8856  	whole_archive_flag_spec=
8857    fi
8858    supports_anon_versioning=no
8859    case `$LD -v 2>/dev/null` in
8860      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8861      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8862      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8863      *\ 2.11.*) ;; # other 2.11 versions
8864      *) supports_anon_versioning=yes ;;
8865    esac
8866
8867    # See if GNU ld supports shared libraries.
8868    case $host_os in
8869    aix3* | aix4* | aix5*)
8870      # On AIX/PPC, the GNU linker is very broken
8871      if test "$host_cpu" != ia64; then
8872	ld_shlibs=no
8873	cat <<EOF 1>&2
8874
8875*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8876*** to be unable to reliably create shared libraries on AIX.
8877*** Therefore, libtool is disabling shared libraries support.  If you
8878*** really care for shared libraries, you may want to modify your PATH
8879*** so that a non-GNU linker is found, and then restart.
8880
8881EOF
8882      fi
8883      ;;
8884
8885    amigaos*)
8886      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)'
8887      hardcode_libdir_flag_spec='-L$libdir'
8888      hardcode_minus_L=yes
8889
8890      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8891      # that the semantics of dynamic libraries on AmigaOS, at least up
8892      # to version 4, is to share data among multiple programs linked
8893      # with the same dynamic library.  Since this doesn't match the
8894      # behavior of shared libraries on other platforms, we can't use
8895      # them.
8896      ld_shlibs=no
8897      ;;
8898
8899    beos*)
8900      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8901	allow_undefined_flag=unsupported
8902	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8903	# support --undefined.  This deserves some investigation.  FIXME
8904	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8905      else
8906	ld_shlibs=no
8907      fi
8908      ;;
8909
8910    cygwin* | mingw* | pw32*)
8911      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8912      # as there is no search path for DLLs.
8913      hardcode_libdir_flag_spec='-L$libdir'
8914      allow_undefined_flag=unsupported
8915      always_export_symbols=no
8916      enable_shared_with_static_runtimes=yes
8917      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8918
8919      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8920        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8921	# If the export-symbols file already is a .def file (1st line
8922	# is EXPORTS), use it as is; otherwise, prepend...
8923	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8924	  cp $export_symbols $output_objdir/$soname.def;
8925	else
8926	  echo EXPORTS > $output_objdir/$soname.def;
8927	  cat $export_symbols >> $output_objdir/$soname.def;
8928	fi~
8929	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8930      else
8931	ld_shlibs=no
8932      fi
8933      ;;
8934
8935    interix3*)
8936      hardcode_direct=no
8937      hardcode_shlibpath_var=no
8938      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939      export_dynamic_flag_spec='${wl}-E'
8940      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8941      # Instead, shared libraries are loaded at an image base (0x10000000 by
8942      # default) and relocated if they conflict, which is a slow very memory
8943      # consuming and fragmenting process.  To avoid this, we pick a random,
8944      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8945      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8946      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8947      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'
8948      ;;
8949
8950    linux*)
8951      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8952	tmp_addflag=
8953	case $cc_basename,$host_cpu in
8954	pgcc*)				# Portland Group C compiler
8955	  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'
8956	  tmp_addflag=' $pic_flag'
8957	  ;;
8958	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8959	  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'
8960	  tmp_addflag=' $pic_flag -Mnomain' ;;
8961	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8962	  tmp_addflag=' -i_dynamic' ;;
8963	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8964	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8965	ifc* | ifort*)			# Intel Fortran compiler
8966	  tmp_addflag=' -nofor_main' ;;
8967	esac
8968	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969
8970	if test $supports_anon_versioning = yes; then
8971	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8972  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8973  $echo "local: *; };" >> $output_objdir/$libname.ver~
8974	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8975	fi
8976      else
8977	ld_shlibs=no
8978      fi
8979      ;;
8980
8981    netbsd*)
8982      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8983	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8984	wlarc=
8985      else
8986	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988      fi
8989      ;;
8990
8991    solaris*)
8992      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8993	ld_shlibs=no
8994	cat <<EOF 1>&2
8995
8996*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8997*** create shared libraries on Solaris systems.  Therefore, libtool
8998*** is disabling shared libraries support.  We urge you to upgrade GNU
8999*** binutils to release 2.9.1 or newer.  Another option is to modify
9000*** your PATH or compiler configuration so that the native linker is
9001*** used, and then restart.
9002
9003EOF
9004      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9005	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007      else
9008	ld_shlibs=no
9009      fi
9010      ;;
9011
9012    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9013      case `$LD -v 2>&1` in
9014        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9015	ld_shlibs=no
9016	cat <<_LT_EOF 1>&2
9017
9018*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9019*** reliably create shared libraries on SCO systems.  Therefore, libtool
9020*** is disabling shared libraries support.  We urge you to upgrade GNU
9021*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9022*** your PATH or compiler configuration so that the native linker is
9023*** used, and then restart.
9024
9025_LT_EOF
9026	;;
9027	*)
9028	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9029	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9030	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9031	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9032	  else
9033	    ld_shlibs=no
9034	  fi
9035	;;
9036      esac
9037      ;;
9038
9039    sunos4*)
9040      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9041      wlarc=
9042      hardcode_direct=yes
9043      hardcode_shlibpath_var=no
9044      ;;
9045
9046    *)
9047      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9048	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9050      else
9051	ld_shlibs=no
9052      fi
9053      ;;
9054    esac
9055
9056    if test "$ld_shlibs" = no; then
9057      runpath_var=
9058      hardcode_libdir_flag_spec=
9059      export_dynamic_flag_spec=
9060      whole_archive_flag_spec=
9061    fi
9062  else
9063    # PORTME fill in a description of your system's linker (not GNU ld)
9064    case $host_os in
9065    aix3*)
9066      allow_undefined_flag=unsupported
9067      always_export_symbols=yes
9068      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'
9069      # Note: this linker hardcodes the directories in LIBPATH if there
9070      # are no directories specified by -L.
9071      hardcode_minus_L=yes
9072      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9073	# Neither direct hardcoding nor static linking is supported with a
9074	# broken collect2.
9075	hardcode_direct=unsupported
9076      fi
9077      ;;
9078
9079    aix4* | aix5*)
9080      if test "$host_cpu" = ia64; then
9081	# On IA64, the linker does run time linking by default, so we don't
9082	# have to do anything special.
9083	aix_use_runtimelinking=no
9084	exp_sym_flag='-Bexport'
9085	no_entry_flag=""
9086      else
9087	# If we're using GNU nm, then we don't want the "-C" option.
9088	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9089	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9090	  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'
9091	else
9092	  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'
9093	fi
9094	aix_use_runtimelinking=no
9095
9096	# Test if we are trying to use run time linking or normal
9097	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9098	# need to do runtime linking.
9099	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9100	  for ld_flag in $LDFLAGS; do
9101  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9102  	    aix_use_runtimelinking=yes
9103  	    break
9104  	  fi
9105	  done
9106	  ;;
9107	esac
9108
9109	exp_sym_flag='-bexport'
9110	no_entry_flag='-bnoentry'
9111      fi
9112
9113      # When large executables or shared objects are built, AIX ld can
9114      # have problems creating the table of contents.  If linking a library
9115      # or program results in "error TOC overflow" add -mminimal-toc to
9116      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9117      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9118
9119      archive_cmds=''
9120      hardcode_direct=yes
9121      hardcode_libdir_separator=':'
9122      link_all_deplibs=yes
9123
9124      if test "$GCC" = yes; then
9125	case $host_os in aix4.[012]|aix4.[012].*)
9126	# We only want to do this on AIX 4.2 and lower, the check
9127	# below for broken collect2 doesn't work under 4.3+
9128	  collect2name=`${CC} -print-prog-name=collect2`
9129	  if test -f "$collect2name" && \
9130  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9131	  then
9132  	  # We have reworked collect2
9133  	  hardcode_direct=yes
9134	  else
9135  	  # We have old collect2
9136  	  hardcode_direct=unsupported
9137  	  # It fails to find uninstalled libraries when the uninstalled
9138  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9139  	  # to unsupported forces relinking
9140  	  hardcode_minus_L=yes
9141  	  hardcode_libdir_flag_spec='-L$libdir'
9142  	  hardcode_libdir_separator=
9143	  fi
9144	  ;;
9145	esac
9146	shared_flag='-shared'
9147	if test "$aix_use_runtimelinking" = yes; then
9148	  shared_flag="$shared_flag "'${wl}-G'
9149	fi
9150      else
9151	# not using gcc
9152	if test "$host_cpu" = ia64; then
9153  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9154  	# chokes on -Wl,-G. The following line is correct:
9155	  shared_flag='-G'
9156	else
9157	  if test "$aix_use_runtimelinking" = yes; then
9158	    shared_flag='${wl}-G'
9159	  else
9160	    shared_flag='${wl}-bM:SRE'
9161	  fi
9162	fi
9163      fi
9164
9165      # It seems that -bexpall does not export symbols beginning with
9166      # underscore (_), so it is better to generate a list of symbols to export.
9167      always_export_symbols=yes
9168      if test "$aix_use_runtimelinking" = yes; then
9169	# Warning - without using the other runtime loading flags (-brtl),
9170	# -berok will link without error, but may produce a broken library.
9171	allow_undefined_flag='-berok'
9172       # Determine the default libpath from the value encoded in an empty executable.
9173       cat >conftest.$ac_ext <<_ACEOF
9174/* confdefs.h.  */
9175_ACEOF
9176cat confdefs.h >>conftest.$ac_ext
9177cat >>conftest.$ac_ext <<_ACEOF
9178/* end confdefs.h.  */
9179
9180int
9181main ()
9182{
9183
9184  ;
9185  return 0;
9186}
9187_ACEOF
9188rm -f conftest.$ac_objext conftest$ac_exeext
9189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190  (eval $ac_link) 2>conftest.er1
9191  ac_status=$?
9192  grep -v '^ *+' conftest.er1 >conftest.err
9193  rm -f conftest.er1
9194  cat conftest.err >&5
9195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196  (exit $ac_status); } &&
9197	 { ac_try='test -z "$ac_c_werror_flag"
9198			 || test ! -s conftest.err'
9199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200  (eval $ac_try) 2>&5
9201  ac_status=$?
9202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203  (exit $ac_status); }; } &&
9204	 { ac_try='test -s conftest$ac_exeext'
9205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206  (eval $ac_try) 2>&5
9207  ac_status=$?
9208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209  (exit $ac_status); }; }; then
9210
9211aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9212}'`
9213# Check for a 64-bit object if we didn't find anything.
9214if 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; }
9215}'`; fi
9216else
9217  echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220fi
9221rm -f conftest.err conftest.$ac_objext \
9222      conftest$ac_exeext conftest.$ac_ext
9223if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9224
9225       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9226	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"
9227       else
9228	if test "$host_cpu" = ia64; then
9229	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9230	  allow_undefined_flag="-z nodefs"
9231	  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"
9232	else
9233	 # Determine the default libpath from the value encoded in an empty executable.
9234	 cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h.  */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h.  */
9240
9241int
9242main ()
9243{
9244
9245  ;
9246  return 0;
9247}
9248_ACEOF
9249rm -f conftest.$ac_objext conftest$ac_exeext
9250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251  (eval $ac_link) 2>conftest.er1
9252  ac_status=$?
9253  grep -v '^ *+' conftest.er1 >conftest.err
9254  rm -f conftest.er1
9255  cat conftest.err >&5
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); } &&
9258	 { ac_try='test -z "$ac_c_werror_flag"
9259			 || test ! -s conftest.err'
9260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261  (eval $ac_try) 2>&5
9262  ac_status=$?
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); }; } &&
9265	 { ac_try='test -s conftest$ac_exeext'
9266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267  (eval $ac_try) 2>&5
9268  ac_status=$?
9269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270  (exit $ac_status); }; }; then
9271
9272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9273}'`
9274# Check for a 64-bit object if we didn't find anything.
9275if 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; }
9276}'`; fi
9277else
9278  echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281fi
9282rm -f conftest.err conftest.$ac_objext \
9283      conftest$ac_exeext conftest.$ac_ext
9284if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9285
9286	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9287	  # Warning - without using the other run time loading flags,
9288	  # -berok will link without error, but may produce a broken library.
9289	  no_undefined_flag=' ${wl}-bernotok'
9290	  allow_undefined_flag=' ${wl}-berok'
9291	  # Exported symbols can be pulled into shared objects from archives
9292	  whole_archive_flag_spec='$convenience'
9293	  archive_cmds_need_lc=yes
9294	  # This is similar to how AIX traditionally builds its shared libraries.
9295	  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'
9296	fi
9297      fi
9298      ;;
9299
9300    amigaos*)
9301      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)'
9302      hardcode_libdir_flag_spec='-L$libdir'
9303      hardcode_minus_L=yes
9304      # see comment about different semantics on the GNU ld section
9305      ld_shlibs=no
9306      ;;
9307
9308    bsdi[45]*)
9309      export_dynamic_flag_spec=-rdynamic
9310      ;;
9311
9312    cygwin* | mingw* | pw32*)
9313      # When not using gcc, we currently assume that we are using
9314      # Microsoft Visual C++.
9315      # hardcode_libdir_flag_spec is actually meaningless, as there is
9316      # no search path for DLLs.
9317      hardcode_libdir_flag_spec=' '
9318      allow_undefined_flag=unsupported
9319      # Tell ltmain to make .lib files, not .a files.
9320      libext=lib
9321      # Tell ltmain to make .dll files, not .so files.
9322      shrext_cmds=".dll"
9323      # FIXME: Setting linknames here is a bad hack.
9324      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9325      # The linker will automatically build a .lib file if we build a DLL.
9326      old_archive_From_new_cmds='true'
9327      # FIXME: Should let the user specify the lib program.
9328      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9329      fix_srcfile_path='`cygpath -w "$srcfile"`'
9330      enable_shared_with_static_runtimes=yes
9331      ;;
9332
9333    darwin* | rhapsody*)
9334      case $host_os in
9335        rhapsody* | darwin1.[012])
9336         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9337         ;;
9338       *) # Darwin 1.3 on
9339         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9340           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9341         else
9342           case ${MACOSX_DEPLOYMENT_TARGET} in
9343             10.[012])
9344               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9345               ;;
9346             10.*)
9347               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9348               ;;
9349           esac
9350         fi
9351         ;;
9352      esac
9353      archive_cmds_need_lc=no
9354      hardcode_direct=no
9355      hardcode_automatic=yes
9356      hardcode_shlibpath_var=unsupported
9357      whole_archive_flag_spec=''
9358      link_all_deplibs=yes
9359    if test "$GCC" = yes ; then
9360    	output_verbose_link_cmd='echo'
9361        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9362      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9363      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9364      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}'
9365      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}'
9366    else
9367      case $cc_basename in
9368        xlc*)
9369         output_verbose_link_cmd='echo'
9370         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9371         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9372          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9373         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}'
9374          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}'
9375          ;;
9376       *)
9377         ld_shlibs=no
9378          ;;
9379      esac
9380    fi
9381      ;;
9382
9383    dgux*)
9384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385      hardcode_libdir_flag_spec='-L$libdir'
9386      hardcode_shlibpath_var=no
9387      ;;
9388
9389    freebsd1*)
9390      ld_shlibs=no
9391      ;;
9392
9393    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9394    # support.  Future versions do this automatically, but an explicit c++rt0.o
9395    # does not break anything, and helps significantly (at the cost of a little
9396    # extra space).
9397    freebsd2.2*)
9398      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9399      hardcode_libdir_flag_spec='-R$libdir'
9400      hardcode_direct=yes
9401      hardcode_shlibpath_var=no
9402      ;;
9403
9404    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9405    freebsd2*)
9406      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407      hardcode_direct=yes
9408      hardcode_minus_L=yes
9409      hardcode_shlibpath_var=no
9410      ;;
9411
9412    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9413    freebsd* | kfreebsd*-gnu | dragonfly*)
9414      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9415      hardcode_libdir_flag_spec='-R$libdir'
9416      hardcode_direct=yes
9417      hardcode_shlibpath_var=no
9418      ;;
9419
9420    hpux9*)
9421      if test "$GCC" = yes; then
9422	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'
9423      else
9424	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'
9425      fi
9426      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9427      hardcode_libdir_separator=:
9428      hardcode_direct=yes
9429
9430      # hardcode_minus_L: Not really in the search PATH,
9431      # but as the default location of the library.
9432      hardcode_minus_L=yes
9433      export_dynamic_flag_spec='${wl}-E'
9434      ;;
9435
9436    hpux10*)
9437      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9438	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9439      else
9440	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9441      fi
9442      if test "$with_gnu_ld" = no; then
9443	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9444	hardcode_libdir_separator=:
9445
9446	hardcode_direct=yes
9447	export_dynamic_flag_spec='${wl}-E'
9448
9449	# hardcode_minus_L: Not really in the search PATH,
9450	# but as the default location of the library.
9451	hardcode_minus_L=yes
9452      fi
9453      ;;
9454
9455    hpux11*)
9456      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9457	case $host_cpu in
9458	hppa*64*)
9459	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9460	  ;;
9461	ia64*)
9462	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9463	  ;;
9464	*)
9465	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466	  ;;
9467	esac
9468      else
9469	case $host_cpu in
9470	hppa*64*)
9471	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472	  ;;
9473	ia64*)
9474	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9475	  ;;
9476	*)
9477	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478	  ;;
9479	esac
9480      fi
9481      if test "$with_gnu_ld" = no; then
9482	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483	hardcode_libdir_separator=:
9484
9485	case $host_cpu in
9486	hppa*64*|ia64*)
9487	  hardcode_libdir_flag_spec_ld='+b $libdir'
9488	  hardcode_direct=no
9489	  hardcode_shlibpath_var=no
9490	  ;;
9491	*)
9492	  hardcode_direct=yes
9493	  export_dynamic_flag_spec='${wl}-E'
9494
9495	  # hardcode_minus_L: Not really in the search PATH,
9496	  # but as the default location of the library.
9497	  hardcode_minus_L=yes
9498	  ;;
9499	esac
9500      fi
9501      ;;
9502
9503    irix5* | irix6* | nonstopux*)
9504      if test "$GCC" = yes; then
9505	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'
9506      else
9507	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'
9508	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9509      fi
9510      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511      hardcode_libdir_separator=:
9512      link_all_deplibs=yes
9513      ;;
9514
9515    netbsd*)
9516      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9517	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9518      else
9519	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9520      fi
9521      hardcode_libdir_flag_spec='-R$libdir'
9522      hardcode_direct=yes
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    newsos6)
9527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528      hardcode_direct=yes
9529      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530      hardcode_libdir_separator=:
9531      hardcode_shlibpath_var=no
9532      ;;
9533
9534    openbsd*)
9535      hardcode_direct=yes
9536      hardcode_shlibpath_var=no
9537      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9538	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9540	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9541	export_dynamic_flag_spec='${wl}-E'
9542      else
9543       case $host_os in
9544	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9545	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546	   hardcode_libdir_flag_spec='-R$libdir'
9547	   ;;
9548	 *)
9549	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551	   ;;
9552       esac
9553      fi
9554      ;;
9555
9556    os2*)
9557      hardcode_libdir_flag_spec='-L$libdir'
9558      hardcode_minus_L=yes
9559      allow_undefined_flag=unsupported
9560      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'
9561      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9562      ;;
9563
9564    osf3*)
9565      if test "$GCC" = yes; then
9566	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9567	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'
9568      else
9569	allow_undefined_flag=' -expect_unresolved \*'
9570	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'
9571      fi
9572      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573      hardcode_libdir_separator=:
9574      ;;
9575
9576    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9577      if test "$GCC" = yes; then
9578	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9579	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'
9580	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581      else
9582	allow_undefined_flag=' -expect_unresolved \*'
9583	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'
9584	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9585	$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'
9586
9587	# Both c and cxx compiler support -rpath directly
9588	hardcode_libdir_flag_spec='-rpath $libdir'
9589      fi
9590      hardcode_libdir_separator=:
9591      ;;
9592
9593    solaris*)
9594      no_undefined_flag=' -z text'
9595      if test "$GCC" = yes; then
9596	wlarc='${wl}'
9597	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9599	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9600      else
9601	wlarc=''
9602	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9604  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9605      fi
9606      hardcode_libdir_flag_spec='-R$libdir'
9607      hardcode_shlibpath_var=no
9608      case $host_os in
9609      solaris2.[0-5] | solaris2.[0-5].*) ;;
9610      *)
9611 	# The compiler driver will combine linker options so we
9612 	# cannot just pass the convience library names through
9613 	# without $wl, iff we do not link with $LD.
9614 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9615 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9616 	case $wlarc in
9617 	'')
9618 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9619 	*)
9620 	  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' ;;
9621 	esac ;;
9622      esac
9623      link_all_deplibs=yes
9624      ;;
9625
9626    sunos4*)
9627      if test "x$host_vendor" = xsequent; then
9628	# Use $CC to link under sequent, because it throws in some extra .o
9629	# files that make .init and .fini sections work.
9630	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9631      else
9632	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9633      fi
9634      hardcode_libdir_flag_spec='-L$libdir'
9635      hardcode_direct=yes
9636      hardcode_minus_L=yes
9637      hardcode_shlibpath_var=no
9638      ;;
9639
9640    sysv4)
9641      case $host_vendor in
9642	sni)
9643	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644	  hardcode_direct=yes # is this really true???
9645	;;
9646	siemens)
9647	  ## LD is ld it makes a PLAMLIB
9648	  ## CC just makes a GrossModule.
9649	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9650	  reload_cmds='$CC -r -o $output$reload_objs'
9651	  hardcode_direct=no
9652        ;;
9653	motorola)
9654	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9656	;;
9657      esac
9658      runpath_var='LD_RUN_PATH'
9659      hardcode_shlibpath_var=no
9660      ;;
9661
9662    sysv4.3*)
9663      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664      hardcode_shlibpath_var=no
9665      export_dynamic_flag_spec='-Bexport'
9666      ;;
9667
9668    sysv4*MP*)
9669      if test -d /usr/nec; then
9670	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671	hardcode_shlibpath_var=no
9672	runpath_var=LD_RUN_PATH
9673	hardcode_runpath_var=yes
9674	ld_shlibs=yes
9675      fi
9676      ;;
9677
9678    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9679      no_undefined_flag='${wl}-z,text'
9680      archive_cmds_need_lc=no
9681      hardcode_shlibpath_var=no
9682      runpath_var='LD_RUN_PATH'
9683
9684      if test "$GCC" = yes; then
9685	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687      else
9688	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690      fi
9691      ;;
9692
9693    sysv5* | sco3.2v5* | sco5v6*)
9694      # Note: We can NOT use -z defs as we might desire, because we do not
9695      # link with -lc, and that would cause any symbols used from libc to
9696      # always be unresolved, which means just about no library would
9697      # ever link correctly.  If we're not using GNU ld we use -z text
9698      # though, which does catch some bad symbols but isn't as heavy-handed
9699      # as -z defs.
9700      no_undefined_flag='${wl}-z,text'
9701      allow_undefined_flag='${wl}-z,nodefs'
9702      archive_cmds_need_lc=no
9703      hardcode_shlibpath_var=no
9704      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9705      hardcode_libdir_separator=':'
9706      link_all_deplibs=yes
9707      export_dynamic_flag_spec='${wl}-Bexport'
9708      runpath_var='LD_RUN_PATH'
9709
9710      if test "$GCC" = yes; then
9711	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9712	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9713      else
9714	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716      fi
9717      ;;
9718
9719    uts4*)
9720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721      hardcode_libdir_flag_spec='-L$libdir'
9722      hardcode_shlibpath_var=no
9723      ;;
9724
9725    *)
9726      ld_shlibs=no
9727      ;;
9728    esac
9729  fi
9730
9731echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9732echo "${ECHO_T}$ld_shlibs" >&6
9733test "$ld_shlibs" = no && can_build_shared=no
9734
9735#
9736# Do we need to explicitly link libc?
9737#
9738case "x$archive_cmds_need_lc" in
9739x|xyes)
9740  # Assume -lc should be added
9741  archive_cmds_need_lc=yes
9742
9743  if test "$enable_shared" = yes && test "$GCC" = yes; then
9744    case $archive_cmds in
9745    *'~'*)
9746      # FIXME: we may have to deal with multi-command sequences.
9747      ;;
9748    '$CC '*)
9749      # Test whether the compiler implicitly links with -lc since on some
9750      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9751      # to ld, don't add -lc before -lgcc.
9752      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9753echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9754      $rm conftest*
9755      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9756
9757      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9758  (eval $ac_compile) 2>&5
9759  ac_status=$?
9760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); } 2>conftest.err; then
9762        soname=conftest
9763        lib=conftest
9764        libobjs=conftest.$ac_objext
9765        deplibs=
9766        wl=$lt_prog_compiler_wl
9767	pic_flag=$lt_prog_compiler_pic
9768        compiler_flags=-v
9769        linker_flags=-v
9770        verstring=
9771        output_objdir=.
9772        libname=conftest
9773        lt_save_allow_undefined_flag=$allow_undefined_flag
9774        allow_undefined_flag=
9775        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9776  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9777  ac_status=$?
9778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779  (exit $ac_status); }
9780        then
9781	  archive_cmds_need_lc=no
9782        else
9783	  archive_cmds_need_lc=yes
9784        fi
9785        allow_undefined_flag=$lt_save_allow_undefined_flag
9786      else
9787        cat conftest.err 1>&5
9788      fi
9789      $rm conftest*
9790      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9791echo "${ECHO_T}$archive_cmds_need_lc" >&6
9792      ;;
9793    esac
9794  fi
9795  ;;
9796esac
9797
9798echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9799echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9800library_names_spec=
9801libname_spec='lib$name'
9802soname_spec=
9803shrext_cmds=".so"
9804postinstall_cmds=
9805postuninstall_cmds=
9806finish_cmds=
9807finish_eval=
9808shlibpath_var=
9809shlibpath_overrides_runpath=unknown
9810version_type=none
9811dynamic_linker="$host_os ld.so"
9812sys_lib_dlsearch_path_spec="/lib /usr/lib"
9813if test "$GCC" = yes; then
9814  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9815  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9816    # if the path contains ";" then we assume it to be the separator
9817    # otherwise default to the standard path separator (i.e. ":") - it is
9818    # assumed that no part of a normal pathname contains ";" but that should
9819    # okay in the real world where ";" in dirpaths is itself problematic.
9820    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9821  else
9822    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9823  fi
9824else
9825  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9826fi
9827need_lib_prefix=unknown
9828hardcode_into_libs=no
9829
9830# when you set need_version to no, make sure it does not cause -set_version
9831# flags to be left without arguments
9832need_version=unknown
9833
9834case $host_os in
9835aix3*)
9836  version_type=linux
9837  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9838  shlibpath_var=LIBPATH
9839
9840  # AIX 3 has no versioning support, so we append a major version to the name.
9841  soname_spec='${libname}${release}${shared_ext}$major'
9842  ;;
9843
9844aix4* | aix5*)
9845  version_type=linux
9846  need_lib_prefix=no
9847  need_version=no
9848  hardcode_into_libs=yes
9849  if test "$host_cpu" = ia64; then
9850    # AIX 5 supports IA64
9851    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9852    shlibpath_var=LD_LIBRARY_PATH
9853  else
9854    # With GCC up to 2.95.x, collect2 would create an import file
9855    # for dependence libraries.  The import file would start with
9856    # the line `#! .'.  This would cause the generated library to
9857    # depend on `.', always an invalid library.  This was fixed in
9858    # development snapshots of GCC prior to 3.0.
9859    case $host_os in
9860      aix4 | aix4.[01] | aix4.[01].*)
9861      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9862	   echo ' yes '
9863	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9864	:
9865      else
9866	can_build_shared=no
9867      fi
9868      ;;
9869    esac
9870    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9871    # soname into executable. Probably we can add versioning support to
9872    # collect2, so additional links can be useful in future.
9873    if test "$aix_use_runtimelinking" = yes; then
9874      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9875      # instead of lib<name>.a to let people know that these are not
9876      # typical AIX shared libraries.
9877      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878    else
9879      # We preserve .a as extension for shared libraries through AIX4.2
9880      # and later when we are not doing run time linking.
9881      library_names_spec='${libname}${release}.a $libname.a'
9882      soname_spec='${libname}${release}${shared_ext}$major'
9883    fi
9884    shlibpath_var=LIBPATH
9885  fi
9886  ;;
9887
9888amigaos*)
9889  library_names_spec='$libname.ixlibrary $libname.a'
9890  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9891  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'
9892  ;;
9893
9894beos*)
9895  library_names_spec='${libname}${shared_ext}'
9896  dynamic_linker="$host_os ld.so"
9897  shlibpath_var=LIBRARY_PATH
9898  ;;
9899
9900bsdi[45]*)
9901  version_type=linux
9902  need_version=no
9903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904  soname_spec='${libname}${release}${shared_ext}$major'
9905  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9908  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9909  # the default ld.so.conf also contains /usr/contrib/lib and
9910  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9911  # libtool to hard-code these into programs
9912  ;;
9913
9914cygwin* | mingw* | pw32*)
9915  version_type=windows
9916  shrext_cmds=".dll"
9917  need_version=no
9918  need_lib_prefix=no
9919
9920  case $GCC,$host_os in
9921  yes,cygwin* | yes,mingw* | yes,pw32*)
9922    library_names_spec='$libname.dll.a'
9923    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9924    postinstall_cmds='base_file=`basename \${file}`~
9925      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9926      dldir=$destdir/`dirname \$dlpath`~
9927      test -d \$dldir || mkdir -p \$dldir~
9928      $install_prog $dir/$dlname \$dldir/$dlname~
9929      chmod a+x \$dldir/$dlname'
9930    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9931      dlpath=$dir/\$dldll~
9932       $rm \$dlpath'
9933    shlibpath_overrides_runpath=yes
9934
9935    case $host_os in
9936    cygwin*)
9937      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9938      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9939      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9940      ;;
9941    mingw*)
9942      # MinGW DLLs use traditional 'lib' prefix
9943      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9944      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9945      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9946        # It is most probably a Windows format PATH printed by
9947        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9948        # path with ; separators, and with drive letters. We can handle the
9949        # drive letters (cygwin fileutils understands them), so leave them,
9950        # especially as we might pass files found there to a mingw objdump,
9951        # which wouldn't understand a cygwinified path. Ahh.
9952        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9953      else
9954        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9955      fi
9956      ;;
9957    pw32*)
9958      # pw32 DLLs use 'pw' prefix rather than 'lib'
9959      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9960      ;;
9961    esac
9962    ;;
9963
9964  *)
9965    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9966    ;;
9967  esac
9968  dynamic_linker='Win32 ld.exe'
9969  # FIXME: first we should search . and the directory the executable is in
9970  shlibpath_var=PATH
9971  ;;
9972
9973darwin* | rhapsody*)
9974  dynamic_linker="$host_os dyld"
9975  version_type=darwin
9976  need_lib_prefix=no
9977  need_version=no
9978  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9979  soname_spec='${libname}${release}${major}$shared_ext'
9980  shlibpath_overrides_runpath=yes
9981  shlibpath_var=DYLD_LIBRARY_PATH
9982  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9983  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9984  if test "$GCC" = yes; then
9985    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"`
9986  else
9987    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9988  fi
9989  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9990  ;;
9991
9992dgux*)
9993  version_type=linux
9994  need_lib_prefix=no
9995  need_version=no
9996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9997  soname_spec='${libname}${release}${shared_ext}$major'
9998  shlibpath_var=LD_LIBRARY_PATH
9999  ;;
10000
10001freebsd1*)
10002  dynamic_linker=no
10003  ;;
10004
10005kfreebsd*-gnu)
10006  version_type=linux
10007  need_lib_prefix=no
10008  need_version=no
10009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10010  soname_spec='${libname}${release}${shared_ext}$major'
10011  shlibpath_var=LD_LIBRARY_PATH
10012  shlibpath_overrides_runpath=no
10013  hardcode_into_libs=yes
10014  dynamic_linker='GNU ld.so'
10015  ;;
10016
10017freebsd* | dragonfly*)
10018  # DragonFly does not have aout.  When/if they implement a new
10019  # versioning mechanism, adjust this.
10020  if test -x /usr/bin/objformat; then
10021    objformat=`/usr/bin/objformat`
10022  else
10023    case $host_os in
10024    freebsd[123]*) objformat=aout ;;
10025    *) objformat=elf ;;
10026    esac
10027  fi
10028  version_type=freebsd-$objformat
10029  case $version_type in
10030    freebsd-elf*)
10031      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10032      need_version=no
10033      need_lib_prefix=no
10034      ;;
10035    freebsd-*)
10036      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10037      need_version=yes
10038      ;;
10039  esac
10040  shlibpath_var=LD_LIBRARY_PATH
10041  case $host_os in
10042  freebsd2*)
10043    shlibpath_overrides_runpath=yes
10044    ;;
10045  freebsd3.[01]* | freebsdelf3.[01]*)
10046    shlibpath_overrides_runpath=yes
10047    hardcode_into_libs=yes
10048    ;;
10049  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10050  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10051    shlibpath_overrides_runpath=no
10052    hardcode_into_libs=yes
10053    ;;
10054  freebsd*) # from 4.6 on
10055    shlibpath_overrides_runpath=yes
10056    hardcode_into_libs=yes
10057    ;;
10058  esac
10059  ;;
10060
10061gnu*)
10062  version_type=linux
10063  need_lib_prefix=no
10064  need_version=no
10065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10066  soname_spec='${libname}${release}${shared_ext}$major'
10067  shlibpath_var=LD_LIBRARY_PATH
10068  hardcode_into_libs=yes
10069  ;;
10070
10071hpux9* | hpux10* | hpux11*)
10072  # Give a soname corresponding to the major version so that dld.sl refuses to
10073  # link against other versions.
10074  version_type=sunos
10075  need_lib_prefix=no
10076  need_version=no
10077  case $host_cpu in
10078  ia64*)
10079    shrext_cmds='.so'
10080    hardcode_into_libs=yes
10081    dynamic_linker="$host_os dld.so"
10082    shlibpath_var=LD_LIBRARY_PATH
10083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085    soname_spec='${libname}${release}${shared_ext}$major'
10086    if test "X$HPUX_IA64_MODE" = X32; then
10087      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10088    else
10089      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10090    fi
10091    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10092    ;;
10093   hppa*64*)
10094     shrext_cmds='.sl'
10095     hardcode_into_libs=yes
10096     dynamic_linker="$host_os dld.sl"
10097     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10098     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100     soname_spec='${libname}${release}${shared_ext}$major'
10101     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10103     ;;
10104   *)
10105    shrext_cmds='.sl'
10106    dynamic_linker="$host_os dld.sl"
10107    shlibpath_var=SHLIB_PATH
10108    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10109    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110    soname_spec='${libname}${release}${shared_ext}$major'
10111    ;;
10112  esac
10113  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10114  postinstall_cmds='chmod 555 $lib'
10115  ;;
10116
10117interix3*)
10118  version_type=linux
10119  need_lib_prefix=no
10120  need_version=no
10121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10122  soname_spec='${libname}${release}${shared_ext}$major'
10123  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10124  shlibpath_var=LD_LIBRARY_PATH
10125  shlibpath_overrides_runpath=no
10126  hardcode_into_libs=yes
10127  ;;
10128
10129irix5* | irix6* | nonstopux*)
10130  case $host_os in
10131    nonstopux*) version_type=nonstopux ;;
10132    *)
10133	if test "$lt_cv_prog_gnu_ld" = yes; then
10134		version_type=linux
10135	else
10136		version_type=irix
10137	fi ;;
10138  esac
10139  need_lib_prefix=no
10140  need_version=no
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10143  case $host_os in
10144  irix5* | nonstopux*)
10145    libsuff= shlibsuff=
10146    ;;
10147  *)
10148    case $LD in # libtool.m4 will add one of these switches to LD
10149    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10150      libsuff= shlibsuff= libmagic=32-bit;;
10151    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10152      libsuff=32 shlibsuff=N32 libmagic=N32;;
10153    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10154      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10155    *) libsuff= shlibsuff= libmagic=never-match;;
10156    esac
10157    ;;
10158  esac
10159  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10160  shlibpath_overrides_runpath=no
10161  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10162  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10163  hardcode_into_libs=yes
10164  ;;
10165
10166# No shared lib support for Linux oldld, aout, or coff.
10167linux*oldld* | linux*aout* | linux*coff*)
10168  dynamic_linker=no
10169  ;;
10170
10171# This must be Linux ELF.
10172linux*)
10173  version_type=linux
10174  need_lib_prefix=no
10175  need_version=no
10176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177  soname_spec='${libname}${release}${shared_ext}$major'
10178  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10179  shlibpath_var=LD_LIBRARY_PATH
10180  shlibpath_overrides_runpath=no
10181  # This implies no fast_install, which is unacceptable.
10182  # Some rework will be needed to allow for fast_install
10183  # before this can be enabled.
10184  hardcode_into_libs=yes
10185
10186  # Append ld.so.conf contents to the search path
10187  if test -f /etc/ld.so.conf; then
10188    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' ' '`
10189    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10190  fi
10191
10192  # We used to test for /lib/ld.so.1 and disable shared libraries on
10193  # powerpc, because MkLinux only supported shared libraries with the
10194  # GNU dynamic linker.  Since this was broken with cross compilers,
10195  # most powerpc-linux boxes support dynamic linking these days and
10196  # people can always --disable-shared, the test was removed, and we
10197  # assume the GNU/Linux dynamic linker is in use.
10198  dynamic_linker='GNU/Linux ld.so'
10199  ;;
10200
10201knetbsd*-gnu)
10202  version_type=linux
10203  need_lib_prefix=no
10204  need_version=no
10205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206  soname_spec='${libname}${release}${shared_ext}$major'
10207  shlibpath_var=LD_LIBRARY_PATH
10208  shlibpath_overrides_runpath=no
10209  hardcode_into_libs=yes
10210  dynamic_linker='GNU ld.so'
10211  ;;
10212
10213netbsd*)
10214  version_type=sunos
10215  need_lib_prefix=no
10216  need_version=no
10217  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10219    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10220    dynamic_linker='NetBSD (a.out) ld.so'
10221  else
10222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10223    soname_spec='${libname}${release}${shared_ext}$major'
10224    dynamic_linker='NetBSD ld.elf_so'
10225  fi
10226  shlibpath_var=LD_LIBRARY_PATH
10227  shlibpath_overrides_runpath=yes
10228  hardcode_into_libs=yes
10229  ;;
10230
10231newsos6)
10232  version_type=linux
10233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234  shlibpath_var=LD_LIBRARY_PATH
10235  shlibpath_overrides_runpath=yes
10236  ;;
10237
10238nto-qnx*)
10239  version_type=linux
10240  need_lib_prefix=no
10241  need_version=no
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243  soname_spec='${libname}${release}${shared_ext}$major'
10244  shlibpath_var=LD_LIBRARY_PATH
10245  shlibpath_overrides_runpath=yes
10246  ;;
10247
10248openbsd*)
10249  version_type=sunos
10250  sys_lib_dlsearch_path_spec="/usr/lib"
10251  need_lib_prefix=no
10252  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10253  case $host_os in
10254    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10255    *)                         need_version=no  ;;
10256  esac
10257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259  shlibpath_var=LD_LIBRARY_PATH
10260  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10261    case $host_os in
10262      openbsd2.[89] | openbsd2.[89].*)
10263	shlibpath_overrides_runpath=no
10264	;;
10265      *)
10266	shlibpath_overrides_runpath=yes
10267	;;
10268      esac
10269  else
10270    shlibpath_overrides_runpath=yes
10271  fi
10272  ;;
10273
10274os2*)
10275  libname_spec='$name'
10276  shrext_cmds=".dll"
10277  need_lib_prefix=no
10278  library_names_spec='$libname${shared_ext} $libname.a'
10279  dynamic_linker='OS/2 ld.exe'
10280  shlibpath_var=LIBPATH
10281  ;;
10282
10283osf3* | osf4* | osf5*)
10284  version_type=osf
10285  need_lib_prefix=no
10286  need_version=no
10287  soname_spec='${libname}${release}${shared_ext}$major'
10288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289  shlibpath_var=LD_LIBRARY_PATH
10290  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10291  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10292  ;;
10293
10294solaris*)
10295  version_type=linux
10296  need_lib_prefix=no
10297  need_version=no
10298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299  soname_spec='${libname}${release}${shared_ext}$major'
10300  shlibpath_var=LD_LIBRARY_PATH
10301  shlibpath_overrides_runpath=yes
10302  hardcode_into_libs=yes
10303  # ldd complains unless libraries are executable
10304  postinstall_cmds='chmod +x $lib'
10305  ;;
10306
10307sunos4*)
10308  version_type=sunos
10309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10310  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10311  shlibpath_var=LD_LIBRARY_PATH
10312  shlibpath_overrides_runpath=yes
10313  if test "$with_gnu_ld" = yes; then
10314    need_lib_prefix=no
10315  fi
10316  need_version=yes
10317  ;;
10318
10319sysv4 | sysv4.3*)
10320  version_type=linux
10321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322  soname_spec='${libname}${release}${shared_ext}$major'
10323  shlibpath_var=LD_LIBRARY_PATH
10324  case $host_vendor in
10325    sni)
10326      shlibpath_overrides_runpath=no
10327      need_lib_prefix=no
10328      export_dynamic_flag_spec='${wl}-Blargedynsym'
10329      runpath_var=LD_RUN_PATH
10330      ;;
10331    siemens)
10332      need_lib_prefix=no
10333      ;;
10334    motorola)
10335      need_lib_prefix=no
10336      need_version=no
10337      shlibpath_overrides_runpath=no
10338      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10339      ;;
10340  esac
10341  ;;
10342
10343sysv4*MP*)
10344  if test -d /usr/nec ;then
10345    version_type=linux
10346    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10347    soname_spec='$libname${shared_ext}.$major'
10348    shlibpath_var=LD_LIBRARY_PATH
10349  fi
10350  ;;
10351
10352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10353  version_type=freebsd-elf
10354  need_lib_prefix=no
10355  need_version=no
10356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10357  soname_spec='${libname}${release}${shared_ext}$major'
10358  shlibpath_var=LD_LIBRARY_PATH
10359  hardcode_into_libs=yes
10360  if test "$with_gnu_ld" = yes; then
10361    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10362    shlibpath_overrides_runpath=no
10363  else
10364    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10365    shlibpath_overrides_runpath=yes
10366    case $host_os in
10367      sco3.2v5*)
10368        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10369	;;
10370    esac
10371  fi
10372  sys_lib_dlsearch_path_spec='/usr/lib'
10373  ;;
10374
10375uts4*)
10376  version_type=linux
10377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378  soname_spec='${libname}${release}${shared_ext}$major'
10379  shlibpath_var=LD_LIBRARY_PATH
10380  ;;
10381
10382*)
10383  dynamic_linker=no
10384  ;;
10385esac
10386echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10387echo "${ECHO_T}$dynamic_linker" >&6
10388test "$dynamic_linker" = no && can_build_shared=no
10389
10390variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10391if test "$GCC" = yes; then
10392  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10393fi
10394
10395echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10396echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10397hardcode_action=
10398if test -n "$hardcode_libdir_flag_spec" || \
10399   test -n "$runpath_var" || \
10400   test "X$hardcode_automatic" = "Xyes" ; then
10401
10402  # We can hardcode non-existant directories.
10403  if test "$hardcode_direct" != no &&
10404     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10405     # have to relink, otherwise we might link with an installed library
10406     # when we should be linking with a yet-to-be-installed one
10407     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10408     test "$hardcode_minus_L" != no; then
10409    # Linking always hardcodes the temporary library directory.
10410    hardcode_action=relink
10411  else
10412    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10413    hardcode_action=immediate
10414  fi
10415else
10416  # We cannot hardcode anything, or else we can only hardcode existing
10417  # directories.
10418  hardcode_action=unsupported
10419fi
10420echo "$as_me:$LINENO: result: $hardcode_action" >&5
10421echo "${ECHO_T}$hardcode_action" >&6
10422
10423if test "$hardcode_action" = relink; then
10424  # Fast installation is not supported
10425  enable_fast_install=no
10426elif test "$shlibpath_overrides_runpath" = yes ||
10427     test "$enable_shared" = no; then
10428  # Fast installation is not necessary
10429  enable_fast_install=needless
10430fi
10431
10432striplib=
10433old_striplib=
10434echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10435echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10436if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10437  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10438  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10439  echo "$as_me:$LINENO: result: yes" >&5
10440echo "${ECHO_T}yes" >&6
10441else
10442# FIXME - insert some real tests, host_os isn't really good enough
10443  case $host_os in
10444   darwin*)
10445       if test -n "$STRIP" ; then
10446         striplib="$STRIP -x"
10447         echo "$as_me:$LINENO: result: yes" >&5
10448echo "${ECHO_T}yes" >&6
10449       else
10450  echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
10452fi
10453       ;;
10454   *)
10455  echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
10457    ;;
10458  esac
10459fi
10460
10461if test "x$enable_dlopen" != xyes; then
10462  enable_dlopen=unknown
10463  enable_dlopen_self=unknown
10464  enable_dlopen_self_static=unknown
10465else
10466  lt_cv_dlopen=no
10467  lt_cv_dlopen_libs=
10468
10469  case $host_os in
10470  beos*)
10471    lt_cv_dlopen="load_add_on"
10472    lt_cv_dlopen_libs=
10473    lt_cv_dlopen_self=yes
10474    ;;
10475
10476  mingw* | pw32*)
10477    lt_cv_dlopen="LoadLibrary"
10478    lt_cv_dlopen_libs=
10479   ;;
10480
10481  cygwin*)
10482    lt_cv_dlopen="dlopen"
10483    lt_cv_dlopen_libs=
10484   ;;
10485
10486  darwin*)
10487  # if libdl is installed we need to link against it
10488    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10489echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10490if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493  ac_check_lib_save_LIBS=$LIBS
10494LIBS="-ldl  $LIBS"
10495cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h.  */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h.  */
10501
10502/* Override any gcc2 internal prototype to avoid an error.  */
10503#ifdef __cplusplus
10504extern "C"
10505#endif
10506/* We use char because int might match the return type of a gcc2
10507   builtin and then its argument prototype would still apply.  */
10508char dlopen ();
10509int
10510main ()
10511{
10512dlopen ();
10513  ;
10514  return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext conftest$ac_exeext
10518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10519  (eval $ac_link) 2>conftest.er1
10520  ac_status=$?
10521  grep -v '^ *+' conftest.er1 >conftest.err
10522  rm -f conftest.er1
10523  cat conftest.err >&5
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); } &&
10526	 { ac_try='test -z "$ac_c_werror_flag"
10527			 || test ! -s conftest.err'
10528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529  (eval $ac_try) 2>&5
10530  ac_status=$?
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); }; } &&
10533	 { ac_try='test -s conftest$ac_exeext'
10534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535  (eval $ac_try) 2>&5
10536  ac_status=$?
10537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538  (exit $ac_status); }; }; then
10539  ac_cv_lib_dl_dlopen=yes
10540else
10541  echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544ac_cv_lib_dl_dlopen=no
10545fi
10546rm -f conftest.err conftest.$ac_objext \
10547      conftest$ac_exeext conftest.$ac_ext
10548LIBS=$ac_check_lib_save_LIBS
10549fi
10550echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10551echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10552if test $ac_cv_lib_dl_dlopen = yes; then
10553  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10554else
10555
10556    lt_cv_dlopen="dyld"
10557    lt_cv_dlopen_libs=
10558    lt_cv_dlopen_self=yes
10559
10560fi
10561
10562   ;;
10563
10564  *)
10565    echo "$as_me:$LINENO: checking for shl_load" >&5
10566echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10567if test "${ac_cv_func_shl_load+set}" = set; then
10568  echo $ECHO_N "(cached) $ECHO_C" >&6
10569else
10570  cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h.  */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h.  */
10576/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10577   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10578#define shl_load innocuous_shl_load
10579
10580/* System header to define __stub macros and hopefully few prototypes,
10581    which can conflict with char shl_load (); below.
10582    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10583    <limits.h> exists even on freestanding compilers.  */
10584
10585#ifdef __STDC__
10586# include <limits.h>
10587#else
10588# include <assert.h>
10589#endif
10590
10591#undef shl_load
10592
10593/* Override any gcc2 internal prototype to avoid an error.  */
10594#ifdef __cplusplus
10595extern "C"
10596{
10597#endif
10598/* We use char because int might match the return type of a gcc2
10599   builtin and then its argument prototype would still apply.  */
10600char shl_load ();
10601/* The GNU C library defines this for functions which it implements
10602    to always fail with ENOSYS.  Some functions are actually named
10603    something starting with __ and the normal name is an alias.  */
10604#if defined (__stub_shl_load) || defined (__stub___shl_load)
10605choke me
10606#else
10607char (*f) () = shl_load;
10608#endif
10609#ifdef __cplusplus
10610}
10611#endif
10612
10613int
10614main ()
10615{
10616return f != shl_load;
10617  ;
10618  return 0;
10619}
10620_ACEOF
10621rm -f conftest.$ac_objext conftest$ac_exeext
10622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623  (eval $ac_link) 2>conftest.er1
10624  ac_status=$?
10625  grep -v '^ *+' conftest.er1 >conftest.err
10626  rm -f conftest.er1
10627  cat conftest.err >&5
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); } &&
10630	 { ac_try='test -z "$ac_c_werror_flag"
10631			 || test ! -s conftest.err'
10632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633  (eval $ac_try) 2>&5
10634  ac_status=$?
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); }; } &&
10637	 { ac_try='test -s conftest$ac_exeext'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; }; then
10643  ac_cv_func_shl_load=yes
10644else
10645  echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
10648ac_cv_func_shl_load=no
10649fi
10650rm -f conftest.err conftest.$ac_objext \
10651      conftest$ac_exeext conftest.$ac_ext
10652fi
10653echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10654echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10655if test $ac_cv_func_shl_load = yes; then
10656  lt_cv_dlopen="shl_load"
10657else
10658  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10659echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10660if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10661  echo $ECHO_N "(cached) $ECHO_C" >&6
10662else
10663  ac_check_lib_save_LIBS=$LIBS
10664LIBS="-ldld  $LIBS"
10665cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h.  */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h.  */
10671
10672/* Override any gcc2 internal prototype to avoid an error.  */
10673#ifdef __cplusplus
10674extern "C"
10675#endif
10676/* We use char because int might match the return type of a gcc2
10677   builtin and then its argument prototype would still apply.  */
10678char shl_load ();
10679int
10680main ()
10681{
10682shl_load ();
10683  ;
10684  return 0;
10685}
10686_ACEOF
10687rm -f conftest.$ac_objext conftest$ac_exeext
10688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689  (eval $ac_link) 2>conftest.er1
10690  ac_status=$?
10691  grep -v '^ *+' conftest.er1 >conftest.err
10692  rm -f conftest.er1
10693  cat conftest.err >&5
10694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695  (exit $ac_status); } &&
10696	 { ac_try='test -z "$ac_c_werror_flag"
10697			 || test ! -s conftest.err'
10698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699  (eval $ac_try) 2>&5
10700  ac_status=$?
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); }; } &&
10703	 { ac_try='test -s conftest$ac_exeext'
10704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705  (eval $ac_try) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; }; then
10709  ac_cv_lib_dld_shl_load=yes
10710else
10711  echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714ac_cv_lib_dld_shl_load=no
10715fi
10716rm -f conftest.err conftest.$ac_objext \
10717      conftest$ac_exeext conftest.$ac_ext
10718LIBS=$ac_check_lib_save_LIBS
10719fi
10720echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10721echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10722if test $ac_cv_lib_dld_shl_load = yes; then
10723  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10724else
10725  echo "$as_me:$LINENO: checking for dlopen" >&5
10726echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10727if test "${ac_cv_func_dlopen+set}" = set; then
10728  echo $ECHO_N "(cached) $ECHO_C" >&6
10729else
10730  cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h.  */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h.  */
10736/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10738#define dlopen innocuous_dlopen
10739
10740/* System header to define __stub macros and hopefully few prototypes,
10741    which can conflict with char dlopen (); below.
10742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10743    <limits.h> exists even on freestanding compilers.  */
10744
10745#ifdef __STDC__
10746# include <limits.h>
10747#else
10748# include <assert.h>
10749#endif
10750
10751#undef dlopen
10752
10753/* Override any gcc2 internal prototype to avoid an error.  */
10754#ifdef __cplusplus
10755extern "C"
10756{
10757#endif
10758/* We use char because int might match the return type of a gcc2
10759   builtin and then its argument prototype would still apply.  */
10760char dlopen ();
10761/* The GNU C library defines this for functions which it implements
10762    to always fail with ENOSYS.  Some functions are actually named
10763    something starting with __ and the normal name is an alias.  */
10764#if defined (__stub_dlopen) || defined (__stub___dlopen)
10765choke me
10766#else
10767char (*f) () = dlopen;
10768#endif
10769#ifdef __cplusplus
10770}
10771#endif
10772
10773int
10774main ()
10775{
10776return f != dlopen;
10777  ;
10778  return 0;
10779}
10780_ACEOF
10781rm -f conftest.$ac_objext conftest$ac_exeext
10782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783  (eval $ac_link) 2>conftest.er1
10784  ac_status=$?
10785  grep -v '^ *+' conftest.er1 >conftest.err
10786  rm -f conftest.er1
10787  cat conftest.err >&5
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); } &&
10790	 { ac_try='test -z "$ac_c_werror_flag"
10791			 || test ! -s conftest.err'
10792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793  (eval $ac_try) 2>&5
10794  ac_status=$?
10795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796  (exit $ac_status); }; } &&
10797	 { ac_try='test -s conftest$ac_exeext'
10798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799  (eval $ac_try) 2>&5
10800  ac_status=$?
10801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802  (exit $ac_status); }; }; then
10803  ac_cv_func_dlopen=yes
10804else
10805  echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
10808ac_cv_func_dlopen=no
10809fi
10810rm -f conftest.err conftest.$ac_objext \
10811      conftest$ac_exeext conftest.$ac_ext
10812fi
10813echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10814echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10815if test $ac_cv_func_dlopen = yes; then
10816  lt_cv_dlopen="dlopen"
10817else
10818  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10819echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10820if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10821  echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823  ac_check_lib_save_LIBS=$LIBS
10824LIBS="-ldl  $LIBS"
10825cat >conftest.$ac_ext <<_ACEOF
10826/* confdefs.h.  */
10827_ACEOF
10828cat confdefs.h >>conftest.$ac_ext
10829cat >>conftest.$ac_ext <<_ACEOF
10830/* end confdefs.h.  */
10831
10832/* Override any gcc2 internal prototype to avoid an error.  */
10833#ifdef __cplusplus
10834extern "C"
10835#endif
10836/* We use char because int might match the return type of a gcc2
10837   builtin and then its argument prototype would still apply.  */
10838char dlopen ();
10839int
10840main ()
10841{
10842dlopen ();
10843  ;
10844  return 0;
10845}
10846_ACEOF
10847rm -f conftest.$ac_objext conftest$ac_exeext
10848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849  (eval $ac_link) 2>conftest.er1
10850  ac_status=$?
10851  grep -v '^ *+' conftest.er1 >conftest.err
10852  rm -f conftest.er1
10853  cat conftest.err >&5
10854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855  (exit $ac_status); } &&
10856	 { ac_try='test -z "$ac_c_werror_flag"
10857			 || test ! -s conftest.err'
10858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859  (eval $ac_try) 2>&5
10860  ac_status=$?
10861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862  (exit $ac_status); }; } &&
10863	 { ac_try='test -s conftest$ac_exeext'
10864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865  (eval $ac_try) 2>&5
10866  ac_status=$?
10867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868  (exit $ac_status); }; }; then
10869  ac_cv_lib_dl_dlopen=yes
10870else
10871  echo "$as_me: failed program was:" >&5
10872sed 's/^/| /' conftest.$ac_ext >&5
10873
10874ac_cv_lib_dl_dlopen=no
10875fi
10876rm -f conftest.err conftest.$ac_objext \
10877      conftest$ac_exeext conftest.$ac_ext
10878LIBS=$ac_check_lib_save_LIBS
10879fi
10880echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10881echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10882if test $ac_cv_lib_dl_dlopen = yes; then
10883  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10884else
10885  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10886echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10887if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10888  echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890  ac_check_lib_save_LIBS=$LIBS
10891LIBS="-lsvld  $LIBS"
10892cat >conftest.$ac_ext <<_ACEOF
10893/* confdefs.h.  */
10894_ACEOF
10895cat confdefs.h >>conftest.$ac_ext
10896cat >>conftest.$ac_ext <<_ACEOF
10897/* end confdefs.h.  */
10898
10899/* Override any gcc2 internal prototype to avoid an error.  */
10900#ifdef __cplusplus
10901extern "C"
10902#endif
10903/* We use char because int might match the return type of a gcc2
10904   builtin and then its argument prototype would still apply.  */
10905char dlopen ();
10906int
10907main ()
10908{
10909dlopen ();
10910  ;
10911  return 0;
10912}
10913_ACEOF
10914rm -f conftest.$ac_objext conftest$ac_exeext
10915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916  (eval $ac_link) 2>conftest.er1
10917  ac_status=$?
10918  grep -v '^ *+' conftest.er1 >conftest.err
10919  rm -f conftest.er1
10920  cat conftest.err >&5
10921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922  (exit $ac_status); } &&
10923	 { ac_try='test -z "$ac_c_werror_flag"
10924			 || test ! -s conftest.err'
10925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926  (eval $ac_try) 2>&5
10927  ac_status=$?
10928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929  (exit $ac_status); }; } &&
10930	 { ac_try='test -s conftest$ac_exeext'
10931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932  (eval $ac_try) 2>&5
10933  ac_status=$?
10934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935  (exit $ac_status); }; }; then
10936  ac_cv_lib_svld_dlopen=yes
10937else
10938  echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941ac_cv_lib_svld_dlopen=no
10942fi
10943rm -f conftest.err conftest.$ac_objext \
10944      conftest$ac_exeext conftest.$ac_ext
10945LIBS=$ac_check_lib_save_LIBS
10946fi
10947echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10948echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10949if test $ac_cv_lib_svld_dlopen = yes; then
10950  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10951else
10952  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10953echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10954if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10955  echo $ECHO_N "(cached) $ECHO_C" >&6
10956else
10957  ac_check_lib_save_LIBS=$LIBS
10958LIBS="-ldld  $LIBS"
10959cat >conftest.$ac_ext <<_ACEOF
10960/* confdefs.h.  */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h.  */
10965
10966/* Override any gcc2 internal prototype to avoid an error.  */
10967#ifdef __cplusplus
10968extern "C"
10969#endif
10970/* We use char because int might match the return type of a gcc2
10971   builtin and then its argument prototype would still apply.  */
10972char dld_link ();
10973int
10974main ()
10975{
10976dld_link ();
10977  ;
10978  return 0;
10979}
10980_ACEOF
10981rm -f conftest.$ac_objext conftest$ac_exeext
10982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983  (eval $ac_link) 2>conftest.er1
10984  ac_status=$?
10985  grep -v '^ *+' conftest.er1 >conftest.err
10986  rm -f conftest.er1
10987  cat conftest.err >&5
10988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989  (exit $ac_status); } &&
10990	 { ac_try='test -z "$ac_c_werror_flag"
10991			 || test ! -s conftest.err'
10992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993  (eval $ac_try) 2>&5
10994  ac_status=$?
10995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996  (exit $ac_status); }; } &&
10997	 { ac_try='test -s conftest$ac_exeext'
10998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999  (eval $ac_try) 2>&5
11000  ac_status=$?
11001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002  (exit $ac_status); }; }; then
11003  ac_cv_lib_dld_dld_link=yes
11004else
11005  echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
11007
11008ac_cv_lib_dld_dld_link=no
11009fi
11010rm -f conftest.err conftest.$ac_objext \
11011      conftest$ac_exeext conftest.$ac_ext
11012LIBS=$ac_check_lib_save_LIBS
11013fi
11014echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11015echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11016if test $ac_cv_lib_dld_dld_link = yes; then
11017  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11018fi
11019
11020
11021fi
11022
11023
11024fi
11025
11026
11027fi
11028
11029
11030fi
11031
11032
11033fi
11034
11035    ;;
11036  esac
11037
11038  if test "x$lt_cv_dlopen" != xno; then
11039    enable_dlopen=yes
11040  else
11041    enable_dlopen=no
11042  fi
11043
11044  case $lt_cv_dlopen in
11045  dlopen)
11046    save_CPPFLAGS="$CPPFLAGS"
11047    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11048
11049    save_LDFLAGS="$LDFLAGS"
11050    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11051
11052    save_LIBS="$LIBS"
11053    LIBS="$lt_cv_dlopen_libs $LIBS"
11054
11055    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11056echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11057if test "${lt_cv_dlopen_self+set}" = set; then
11058  echo $ECHO_N "(cached) $ECHO_C" >&6
11059else
11060  	  if test "$cross_compiling" = yes; then :
11061  lt_cv_dlopen_self=cross
11062else
11063  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11064  lt_status=$lt_dlunknown
11065  cat > conftest.$ac_ext <<EOF
11066#line 11066 "configure"
11067#include "confdefs.h"
11068
11069#if HAVE_DLFCN_H
11070#include <dlfcn.h>
11071#endif
11072
11073#include <stdio.h>
11074
11075#ifdef RTLD_GLOBAL
11076#  define LT_DLGLOBAL		RTLD_GLOBAL
11077#else
11078#  ifdef DL_GLOBAL
11079#    define LT_DLGLOBAL		DL_GLOBAL
11080#  else
11081#    define LT_DLGLOBAL		0
11082#  endif
11083#endif
11084
11085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11086   find out it does not work in some platform. */
11087#ifndef LT_DLLAZY_OR_NOW
11088#  ifdef RTLD_LAZY
11089#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11090#  else
11091#    ifdef DL_LAZY
11092#      define LT_DLLAZY_OR_NOW		DL_LAZY
11093#    else
11094#      ifdef RTLD_NOW
11095#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11096#      else
11097#        ifdef DL_NOW
11098#          define LT_DLLAZY_OR_NOW	DL_NOW
11099#        else
11100#          define LT_DLLAZY_OR_NOW	0
11101#        endif
11102#      endif
11103#    endif
11104#  endif
11105#endif
11106
11107#ifdef __cplusplus
11108extern "C" void exit (int);
11109#endif
11110
11111void fnord() { int i=42;}
11112int main ()
11113{
11114  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11115  int status = $lt_dlunknown;
11116
11117  if (self)
11118    {
11119      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11120      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11121      /* dlclose (self); */
11122    }
11123  else
11124    puts (dlerror ());
11125
11126    exit (status);
11127}
11128EOF
11129  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130  (eval $ac_link) 2>&5
11131  ac_status=$?
11132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11134    (./conftest; exit; ) >&5 2>/dev/null
11135    lt_status=$?
11136    case x$lt_status in
11137      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11138      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11139      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11140    esac
11141  else :
11142    # compilation failed
11143    lt_cv_dlopen_self=no
11144  fi
11145fi
11146rm -fr conftest*
11147
11148
11149fi
11150echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11151echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11152
11153    if test "x$lt_cv_dlopen_self" = xyes; then
11154      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11155      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11156echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11157if test "${lt_cv_dlopen_self_static+set}" = set; then
11158  echo $ECHO_N "(cached) $ECHO_C" >&6
11159else
11160  	  if test "$cross_compiling" = yes; then :
11161  lt_cv_dlopen_self_static=cross
11162else
11163  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164  lt_status=$lt_dlunknown
11165  cat > conftest.$ac_ext <<EOF
11166#line 11166 "configure"
11167#include "confdefs.h"
11168
11169#if HAVE_DLFCN_H
11170#include <dlfcn.h>
11171#endif
11172
11173#include <stdio.h>
11174
11175#ifdef RTLD_GLOBAL
11176#  define LT_DLGLOBAL		RTLD_GLOBAL
11177#else
11178#  ifdef DL_GLOBAL
11179#    define LT_DLGLOBAL		DL_GLOBAL
11180#  else
11181#    define LT_DLGLOBAL		0
11182#  endif
11183#endif
11184
11185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186   find out it does not work in some platform. */
11187#ifndef LT_DLLAZY_OR_NOW
11188#  ifdef RTLD_LAZY
11189#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11190#  else
11191#    ifdef DL_LAZY
11192#      define LT_DLLAZY_OR_NOW		DL_LAZY
11193#    else
11194#      ifdef RTLD_NOW
11195#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11196#      else
11197#        ifdef DL_NOW
11198#          define LT_DLLAZY_OR_NOW	DL_NOW
11199#        else
11200#          define LT_DLLAZY_OR_NOW	0
11201#        endif
11202#      endif
11203#    endif
11204#  endif
11205#endif
11206
11207#ifdef __cplusplus
11208extern "C" void exit (int);
11209#endif
11210
11211void fnord() { int i=42;}
11212int main ()
11213{
11214  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215  int status = $lt_dlunknown;
11216
11217  if (self)
11218    {
11219      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11220      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221      /* dlclose (self); */
11222    }
11223  else
11224    puts (dlerror ());
11225
11226    exit (status);
11227}
11228EOF
11229  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230  (eval $ac_link) 2>&5
11231  ac_status=$?
11232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11234    (./conftest; exit; ) >&5 2>/dev/null
11235    lt_status=$?
11236    case x$lt_status in
11237      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11238      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11239      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11240    esac
11241  else :
11242    # compilation failed
11243    lt_cv_dlopen_self_static=no
11244  fi
11245fi
11246rm -fr conftest*
11247
11248
11249fi
11250echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11251echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11252    fi
11253
11254    CPPFLAGS="$save_CPPFLAGS"
11255    LDFLAGS="$save_LDFLAGS"
11256    LIBS="$save_LIBS"
11257    ;;
11258  esac
11259
11260  case $lt_cv_dlopen_self in
11261  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11262  *) enable_dlopen_self=unknown ;;
11263  esac
11264
11265  case $lt_cv_dlopen_self_static in
11266  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11267  *) enable_dlopen_self_static=unknown ;;
11268  esac
11269fi
11270
11271
11272# Report which library types will actually be built
11273echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11274echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11275echo "$as_me:$LINENO: result: $can_build_shared" >&5
11276echo "${ECHO_T}$can_build_shared" >&6
11277
11278echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11279echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11280test "$can_build_shared" = "no" && enable_shared=no
11281
11282# On AIX, shared libraries and static libraries use the same namespace, and
11283# are all built from PIC.
11284case $host_os in
11285aix3*)
11286  test "$enable_shared" = yes && enable_static=no
11287  if test -n "$RANLIB"; then
11288    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11289    postinstall_cmds='$RANLIB $lib'
11290  fi
11291  ;;
11292
11293aix4* | aix5*)
11294  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11295    test "$enable_shared" = yes && enable_static=no
11296  fi
11297    ;;
11298esac
11299echo "$as_me:$LINENO: result: $enable_shared" >&5
11300echo "${ECHO_T}$enable_shared" >&6
11301
11302echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11303echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11304# Make sure either enable_shared or enable_static is yes.
11305test "$enable_shared" = yes || enable_static=yes
11306echo "$as_me:$LINENO: result: $enable_static" >&5
11307echo "${ECHO_T}$enable_static" >&6
11308
11309# The else clause should only fire when bootstrapping the
11310# libtool distribution, otherwise you forgot to ship ltmain.sh
11311# with your package, and you will get complaints that there are
11312# no rules to generate ltmain.sh.
11313if test -f "$ltmain"; then
11314  # See if we are running on zsh, and set the options which allow our commands through
11315  # without removal of \ escapes.
11316  if test -n "${ZSH_VERSION+set}" ; then
11317    setopt NO_GLOB_SUBST
11318  fi
11319  # Now quote all the things that may contain metacharacters while being
11320  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11321  # variables and quote the copies for generation of the libtool script.
11322  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11323    SED SHELL STRIP \
11324    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11325    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11326    deplibs_check_method reload_flag reload_cmds need_locks \
11327    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11328    lt_cv_sys_global_symbol_to_c_name_address \
11329    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11330    old_postinstall_cmds old_postuninstall_cmds \
11331    compiler \
11332    CC \
11333    LD \
11334    lt_prog_compiler_wl \
11335    lt_prog_compiler_pic \
11336    lt_prog_compiler_static \
11337    lt_prog_compiler_no_builtin_flag \
11338    export_dynamic_flag_spec \
11339    thread_safe_flag_spec \
11340    whole_archive_flag_spec \
11341    enable_shared_with_static_runtimes \
11342    old_archive_cmds \
11343    old_archive_from_new_cmds \
11344    predep_objects \
11345    postdep_objects \
11346    predeps \
11347    postdeps \
11348    compiler_lib_search_path \
11349    archive_cmds \
11350    archive_expsym_cmds \
11351    postinstall_cmds \
11352    postuninstall_cmds \
11353    old_archive_from_expsyms_cmds \
11354    allow_undefined_flag \
11355    no_undefined_flag \
11356    export_symbols_cmds \
11357    hardcode_libdir_flag_spec \
11358    hardcode_libdir_flag_spec_ld \
11359    hardcode_libdir_separator \
11360    hardcode_automatic \
11361    module_cmds \
11362    module_expsym_cmds \
11363    lt_cv_prog_compiler_c_o \
11364    exclude_expsyms \
11365    include_expsyms; do
11366
11367    case $var in
11368    old_archive_cmds | \
11369    old_archive_from_new_cmds | \
11370    archive_cmds | \
11371    archive_expsym_cmds | \
11372    module_cmds | \
11373    module_expsym_cmds | \
11374    old_archive_from_expsyms_cmds | \
11375    export_symbols_cmds | \
11376    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11377    postinstall_cmds | postuninstall_cmds | \
11378    old_postinstall_cmds | old_postuninstall_cmds | \
11379    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11380      # Double-quote double-evaled strings.
11381      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11382      ;;
11383    *)
11384      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11385      ;;
11386    esac
11387  done
11388
11389  case $lt_echo in
11390  *'\$0 --fallback-echo"')
11391    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11392    ;;
11393  esac
11394
11395cfgfile="${ofile}T"
11396  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11397  $rm -f "$cfgfile"
11398  { echo "$as_me:$LINENO: creating $ofile" >&5
11399echo "$as_me: creating $ofile" >&6;}
11400
11401  cat <<__EOF__ >> "$cfgfile"
11402#! $SHELL
11403
11404# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11405# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11406# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11407#
11408# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11409# Free Software Foundation, Inc.
11410#
11411# This file is part of GNU Libtool:
11412# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11413#
11414# This program is free software; you can redistribute it and/or modify
11415# it under the terms of the GNU General Public License as published by
11416# the Free Software Foundation; either version 2 of the License, or
11417# (at your option) any later version.
11418#
11419# This program is distributed in the hope that it will be useful, but
11420# WITHOUT ANY WARRANTY; without even the implied warranty of
11421# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11422# General Public License for more details.
11423#
11424# You should have received a copy of the GNU General Public License
11425# along with this program; if not, write to the Free Software
11426# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11427#
11428# As a special exception to the GNU General Public License, if you
11429# distribute this file as part of a program that contains a
11430# configuration script generated by Autoconf, you may include it under
11431# the same distribution terms that you use for the rest of that program.
11432
11433# A sed program that does not truncate output.
11434SED=$lt_SED
11435
11436# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11437Xsed="$SED -e 1s/^X//"
11438
11439# The HP-UX ksh and POSIX shell print the target directory to stdout
11440# if CDPATH is set.
11441(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11442
11443# The names of the tagged configurations supported by this script.
11444available_tags=
11445
11446# ### BEGIN LIBTOOL CONFIG
11447
11448# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11449
11450# Shell to use when invoking shell scripts.
11451SHELL=$lt_SHELL
11452
11453# Whether or not to build shared libraries.
11454build_libtool_libs=$enable_shared
11455
11456# Whether or not to build static libraries.
11457build_old_libs=$enable_static
11458
11459# Whether or not to add -lc for building shared libraries.
11460build_libtool_need_lc=$archive_cmds_need_lc
11461
11462# Whether or not to disallow shared libs when runtime libs are static
11463allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11464
11465# Whether or not to optimize for fast installation.
11466fast_install=$enable_fast_install
11467
11468# The host system.
11469host_alias=$host_alias
11470host=$host
11471host_os=$host_os
11472
11473# The build system.
11474build_alias=$build_alias
11475build=$build
11476build_os=$build_os
11477
11478# An echo program that does not interpret backslashes.
11479echo=$lt_echo
11480
11481# The archiver.
11482AR=$lt_AR
11483AR_FLAGS=$lt_AR_FLAGS
11484
11485# A C compiler.
11486LTCC=$lt_LTCC
11487
11488# LTCC compiler flags.
11489LTCFLAGS=$lt_LTCFLAGS
11490
11491# A language-specific compiler.
11492CC=$lt_compiler
11493
11494# Is the compiler the GNU C compiler?
11495with_gcc=$GCC
11496
11497# An ERE matcher.
11498EGREP=$lt_EGREP
11499
11500# The linker used to build libraries.
11501LD=$lt_LD
11502
11503# Whether we need hard or soft links.
11504LN_S=$lt_LN_S
11505
11506# A BSD-compatible nm program.
11507NM=$lt_NM
11508
11509# A symbol stripping program
11510STRIP=$lt_STRIP
11511
11512# Used to examine libraries when file_magic_cmd begins "file"
11513MAGIC_CMD=$MAGIC_CMD
11514
11515# Used on cygwin: DLL creation program.
11516DLLTOOL="$DLLTOOL"
11517
11518# Used on cygwin: object dumper.
11519OBJDUMP="$OBJDUMP"
11520
11521# Used on cygwin: assembler.
11522AS="$AS"
11523
11524# The name of the directory that contains temporary libtool files.
11525objdir=$objdir
11526
11527# How to create reloadable object files.
11528reload_flag=$lt_reload_flag
11529reload_cmds=$lt_reload_cmds
11530
11531# How to pass a linker flag through the compiler.
11532wl=$lt_lt_prog_compiler_wl
11533
11534# Object file suffix (normally "o").
11535objext="$ac_objext"
11536
11537# Old archive suffix (normally "a").
11538libext="$libext"
11539
11540# Shared library suffix (normally ".so").
11541shrext_cmds='$shrext_cmds'
11542
11543# Executable file suffix (normally "").
11544exeext="$exeext"
11545
11546# Additional compiler flags for building library objects.
11547pic_flag=$lt_lt_prog_compiler_pic
11548pic_mode=$pic_mode
11549
11550# What is the maximum length of a command?
11551max_cmd_len=$lt_cv_sys_max_cmd_len
11552
11553# Does compiler simultaneously support -c and -o options?
11554compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11555
11556# Must we lock files when doing compilation?
11557need_locks=$lt_need_locks
11558
11559# Do we need the lib prefix for modules?
11560need_lib_prefix=$need_lib_prefix
11561
11562# Do we need a version for libraries?
11563need_version=$need_version
11564
11565# Whether dlopen is supported.
11566dlopen_support=$enable_dlopen
11567
11568# Whether dlopen of programs is supported.
11569dlopen_self=$enable_dlopen_self
11570
11571# Whether dlopen of statically linked programs is supported.
11572dlopen_self_static=$enable_dlopen_self_static
11573
11574# Compiler flag to prevent dynamic linking.
11575link_static_flag=$lt_lt_prog_compiler_static
11576
11577# Compiler flag to turn off builtin functions.
11578no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11579
11580# Compiler flag to allow reflexive dlopens.
11581export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11582
11583# Compiler flag to generate shared objects directly from archives.
11584whole_archive_flag_spec=$lt_whole_archive_flag_spec
11585
11586# Compiler flag to generate thread-safe objects.
11587thread_safe_flag_spec=$lt_thread_safe_flag_spec
11588
11589# Library versioning type.
11590version_type=$version_type
11591
11592# Format of library name prefix.
11593libname_spec=$lt_libname_spec
11594
11595# List of archive names.  First name is the real one, the rest are links.
11596# The last name is the one that the linker finds with -lNAME.
11597library_names_spec=$lt_library_names_spec
11598
11599# The coded name of the library, if different from the real name.
11600soname_spec=$lt_soname_spec
11601
11602# Commands used to build and install an old-style archive.
11603RANLIB=$lt_RANLIB
11604old_archive_cmds=$lt_old_archive_cmds
11605old_postinstall_cmds=$lt_old_postinstall_cmds
11606old_postuninstall_cmds=$lt_old_postuninstall_cmds
11607
11608# Create an old-style archive from a shared archive.
11609old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11610
11611# Create a temporary old-style archive to link instead of a shared archive.
11612old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11613
11614# Commands used to build and install a shared archive.
11615archive_cmds=$lt_archive_cmds
11616archive_expsym_cmds=$lt_archive_expsym_cmds
11617postinstall_cmds=$lt_postinstall_cmds
11618postuninstall_cmds=$lt_postuninstall_cmds
11619
11620# Commands used to build a loadable module (assumed same as above if empty)
11621module_cmds=$lt_module_cmds
11622module_expsym_cmds=$lt_module_expsym_cmds
11623
11624# Commands to strip libraries.
11625old_striplib=$lt_old_striplib
11626striplib=$lt_striplib
11627
11628# Dependencies to place before the objects being linked to create a
11629# shared library.
11630predep_objects=$lt_predep_objects
11631
11632# Dependencies to place after the objects being linked to create a
11633# shared library.
11634postdep_objects=$lt_postdep_objects
11635
11636# Dependencies to place before the objects being linked to create a
11637# shared library.
11638predeps=$lt_predeps
11639
11640# Dependencies to place after the objects being linked to create a
11641# shared library.
11642postdeps=$lt_postdeps
11643
11644# The library search path used internally by the compiler when linking
11645# a shared library.
11646compiler_lib_search_path=$lt_compiler_lib_search_path
11647
11648# Method to check whether dependent libraries are shared objects.
11649deplibs_check_method=$lt_deplibs_check_method
11650
11651# Command to use when deplibs_check_method == file_magic.
11652file_magic_cmd=$lt_file_magic_cmd
11653
11654# Flag that allows shared libraries with undefined symbols to be built.
11655allow_undefined_flag=$lt_allow_undefined_flag
11656
11657# Flag that forces no undefined symbols.
11658no_undefined_flag=$lt_no_undefined_flag
11659
11660# Commands used to finish a libtool library installation in a directory.
11661finish_cmds=$lt_finish_cmds
11662
11663# Same as above, but a single script fragment to be evaled but not shown.
11664finish_eval=$lt_finish_eval
11665
11666# Take the output of nm and produce a listing of raw symbols and C names.
11667global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11668
11669# Transform the output of nm in a proper C declaration
11670global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11671
11672# Transform the output of nm in a C name address pair
11673global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11674
11675# This is the shared library runtime path variable.
11676runpath_var=$runpath_var
11677
11678# This is the shared library path variable.
11679shlibpath_var=$shlibpath_var
11680
11681# Is shlibpath searched before the hard-coded library search path?
11682shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11683
11684# How to hardcode a shared library path into an executable.
11685hardcode_action=$hardcode_action
11686
11687# Whether we should hardcode library paths into libraries.
11688hardcode_into_libs=$hardcode_into_libs
11689
11690# Flag to hardcode \$libdir into a binary during linking.
11691# This must work even if \$libdir does not exist.
11692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11693
11694# If ld is used when linking, flag to hardcode \$libdir into
11695# a binary during linking. This must work even if \$libdir does
11696# not exist.
11697hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11698
11699# Whether we need a single -rpath flag with a separated argument.
11700hardcode_libdir_separator=$lt_hardcode_libdir_separator
11701
11702# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11703# resulting binary.
11704hardcode_direct=$hardcode_direct
11705
11706# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11707# resulting binary.
11708hardcode_minus_L=$hardcode_minus_L
11709
11710# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11711# the resulting binary.
11712hardcode_shlibpath_var=$hardcode_shlibpath_var
11713
11714# Set to yes if building a shared library automatically hardcodes DIR into the library
11715# and all subsequent libraries and executables linked against it.
11716hardcode_automatic=$hardcode_automatic
11717
11718# Variables whose values should be saved in libtool wrapper scripts and
11719# restored at relink time.
11720variables_saved_for_relink="$variables_saved_for_relink"
11721
11722# Whether libtool must link a program against all its dependency libraries.
11723link_all_deplibs=$link_all_deplibs
11724
11725# Compile-time system search path for libraries
11726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11727
11728# Run-time system search path for libraries
11729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11730
11731# Fix the shell variable \$srcfile for the compiler.
11732fix_srcfile_path="$fix_srcfile_path"
11733
11734# Set to yes if exported symbols are required.
11735always_export_symbols=$always_export_symbols
11736
11737# The commands to list exported symbols.
11738export_symbols_cmds=$lt_export_symbols_cmds
11739
11740# The commands to extract the exported symbol list from a shared archive.
11741extract_expsyms_cmds=$lt_extract_expsyms_cmds
11742
11743# Symbols that should not be listed in the preloaded symbols.
11744exclude_expsyms=$lt_exclude_expsyms
11745
11746# Symbols that must always be exported.
11747include_expsyms=$lt_include_expsyms
11748
11749# ### END LIBTOOL CONFIG
11750
11751__EOF__
11752
11753
11754  case $host_os in
11755  aix3*)
11756    cat <<\EOF >> "$cfgfile"
11757
11758# AIX sometimes has problems with the GCC collect2 program.  For some
11759# reason, if we set the COLLECT_NAMES environment variable, the problems
11760# vanish in a puff of smoke.
11761if test "X${COLLECT_NAMES+set}" != Xset; then
11762  COLLECT_NAMES=
11763  export COLLECT_NAMES
11764fi
11765EOF
11766    ;;
11767  esac
11768
11769  # We use sed instead of cat because bash on DJGPP gets confused if
11770  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11771  # text mode, it properly converts lines to CR/LF.  This bash problem
11772  # is reportedly fixed, but why not run on old versions too?
11773  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11774
11775  mv -f "$cfgfile" "$ofile" || \
11776    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11777  chmod +x "$ofile"
11778
11779else
11780  # If there is no Makefile yet, we rely on a make rule to execute
11781  # `config.status --recheck' to rerun these tests and create the
11782  # libtool script then.
11783  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11784  if test -f "$ltmain_in"; then
11785    test -f Makefile && make "$ltmain"
11786  fi
11787fi
11788
11789
11790ac_ext=c
11791ac_cpp='$CPP $CPPFLAGS'
11792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795
11796CC="$lt_save_CC"
11797
11798
11799# Check whether --with-tags or --without-tags was given.
11800if test "${with_tags+set}" = set; then
11801  withval="$with_tags"
11802  tagnames="$withval"
11803fi;
11804
11805if test -f "$ltmain" && test -n "$tagnames"; then
11806  if test ! -f "${ofile}"; then
11807    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11808echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11809  fi
11810
11811  if test -z "$LTCC"; then
11812    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11813    if test -z "$LTCC"; then
11814      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11815echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11816    else
11817      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11818echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11819    fi
11820  fi
11821  if test -z "$LTCFLAGS"; then
11822    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11823  fi
11824
11825  # Extract list of available tagged configurations in $ofile.
11826  # Note that this assumes the entire list is on one line.
11827  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11828
11829  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11830  for tagname in $tagnames; do
11831    IFS="$lt_save_ifs"
11832    # Check whether tagname contains only valid characters
11833    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11834    "") ;;
11835    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11836echo "$as_me: error: invalid tag name: $tagname" >&2;}
11837   { (exit 1); exit 1; }; }
11838	;;
11839    esac
11840
11841    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11842    then
11843      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11844echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11845   { (exit 1); exit 1; }; }
11846    fi
11847
11848    # Update the list of available tags.
11849    if test -n "$tagname"; then
11850      echo appending configuration tag \"$tagname\" to $ofile
11851
11852      case $tagname in
11853      CXX)
11854	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11855	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11856	    (test "X$CXX" != "Xg++"))) ; then
11857	  ac_ext=cc
11858ac_cpp='$CXXCPP $CPPFLAGS'
11859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11862
11863
11864
11865
11866archive_cmds_need_lc_CXX=no
11867allow_undefined_flag_CXX=
11868always_export_symbols_CXX=no
11869archive_expsym_cmds_CXX=
11870export_dynamic_flag_spec_CXX=
11871hardcode_direct_CXX=no
11872hardcode_libdir_flag_spec_CXX=
11873hardcode_libdir_flag_spec_ld_CXX=
11874hardcode_libdir_separator_CXX=
11875hardcode_minus_L_CXX=no
11876hardcode_shlibpath_var_CXX=unsupported
11877hardcode_automatic_CXX=no
11878module_cmds_CXX=
11879module_expsym_cmds_CXX=
11880link_all_deplibs_CXX=unknown
11881old_archive_cmds_CXX=$old_archive_cmds
11882no_undefined_flag_CXX=
11883whole_archive_flag_spec_CXX=
11884enable_shared_with_static_runtimes_CXX=no
11885
11886# Dependencies to place before and after the object being linked:
11887predep_objects_CXX=
11888postdep_objects_CXX=
11889predeps_CXX=
11890postdeps_CXX=
11891compiler_lib_search_path_CXX=
11892
11893# Source file extension for C++ test sources.
11894ac_ext=cpp
11895
11896# Object file extension for compiled C++ test sources.
11897objext=o
11898objext_CXX=$objext
11899
11900# Code to be used in simple compile tests
11901lt_simple_compile_test_code="int some_variable = 0;\n"
11902
11903# Code to be used in simple link tests
11904lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11905
11906# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11907
11908# If no C compiler was specified, use CC.
11909LTCC=${LTCC-"$CC"}
11910
11911# If no C compiler flags were specified, use CFLAGS.
11912LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11913
11914# Allow CC to be a program name with arguments.
11915compiler=$CC
11916
11917
11918# save warnings/boilerplate of simple test code
11919ac_outfile=conftest.$ac_objext
11920printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11921eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922_lt_compiler_boilerplate=`cat conftest.err`
11923$rm conftest*
11924
11925ac_outfile=conftest.$ac_objext
11926printf "$lt_simple_link_test_code" >conftest.$ac_ext
11927eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11928_lt_linker_boilerplate=`cat conftest.err`
11929$rm conftest*
11930
11931
11932# Allow CC to be a program name with arguments.
11933lt_save_CC=$CC
11934lt_save_LD=$LD
11935lt_save_GCC=$GCC
11936GCC=$GXX
11937lt_save_with_gnu_ld=$with_gnu_ld
11938lt_save_path_LD=$lt_cv_path_LD
11939if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11940  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11941else
11942  $as_unset lt_cv_prog_gnu_ld
11943fi
11944if test -n "${lt_cv_path_LDCXX+set}"; then
11945  lt_cv_path_LD=$lt_cv_path_LDCXX
11946else
11947  $as_unset lt_cv_path_LD
11948fi
11949test -z "${LDCXX+set}" || LD=$LDCXX
11950CC=${CXX-"c++"}
11951compiler=$CC
11952compiler_CXX=$CC
11953for cc_temp in $compiler""; do
11954  case $cc_temp in
11955    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11956    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11957    \-*) ;;
11958    *) break;;
11959  esac
11960done
11961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11962
11963
11964# We don't want -fno-exception wen compiling C++ code, so set the
11965# no_builtin_flag separately
11966if test "$GXX" = yes; then
11967  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11968else
11969  lt_prog_compiler_no_builtin_flag_CXX=
11970fi
11971
11972if test "$GXX" = yes; then
11973  # Set up default GNU C++ configuration
11974
11975
11976# Check whether --with-gnu-ld or --without-gnu-ld was given.
11977if test "${with_gnu_ld+set}" = set; then
11978  withval="$with_gnu_ld"
11979  test "$withval" = no || with_gnu_ld=yes
11980else
11981  with_gnu_ld=no
11982fi;
11983ac_prog=ld
11984if test "$GCC" = yes; then
11985  # Check if gcc -print-prog-name=ld gives a path.
11986  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11987echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11988  case $host in
11989  *-*-mingw*)
11990    # gcc leaves a trailing carriage return which upsets mingw
11991    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11992  *)
11993    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11994  esac
11995  case $ac_prog in
11996    # Accept absolute paths.
11997    [\\/]* | ?:[\\/]*)
11998      re_direlt='/[^/][^/]*/\.\./'
11999      # Canonicalize the pathname of ld
12000      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12001      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12002	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12003      done
12004      test -z "$LD" && LD="$ac_prog"
12005      ;;
12006  "")
12007    # If it fails, then pretend we aren't using GCC.
12008    ac_prog=ld
12009    ;;
12010  *)
12011    # If it is relative, then search for the first ld in PATH.
12012    with_gnu_ld=unknown
12013    ;;
12014  esac
12015elif test "$with_gnu_ld" = yes; then
12016  echo "$as_me:$LINENO: checking for GNU ld" >&5
12017echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12018else
12019  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12020echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12021fi
12022if test "${lt_cv_path_LD+set}" = set; then
12023  echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025  if test -z "$LD"; then
12026  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12027  for ac_dir in $PATH; do
12028    IFS="$lt_save_ifs"
12029    test -z "$ac_dir" && ac_dir=.
12030    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12031      lt_cv_path_LD="$ac_dir/$ac_prog"
12032      # Check to see if the program is GNU ld.  I'd rather use --version,
12033      # but apparently some variants of GNU ld only accept -v.
12034      # Break only if it was the GNU/non-GNU ld that we prefer.
12035      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12036      *GNU* | *'with BFD'*)
12037	test "$with_gnu_ld" != no && break
12038	;;
12039      *)
12040	test "$with_gnu_ld" != yes && break
12041	;;
12042      esac
12043    fi
12044  done
12045  IFS="$lt_save_ifs"
12046else
12047  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12048fi
12049fi
12050
12051LD="$lt_cv_path_LD"
12052if test -n "$LD"; then
12053  echo "$as_me:$LINENO: result: $LD" >&5
12054echo "${ECHO_T}$LD" >&6
12055else
12056  echo "$as_me:$LINENO: result: no" >&5
12057echo "${ECHO_T}no" >&6
12058fi
12059test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12060echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12061   { (exit 1); exit 1; }; }
12062echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12063echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12064if test "${lt_cv_prog_gnu_ld+set}" = set; then
12065  echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12068case `$LD -v 2>&1 </dev/null` in
12069*GNU* | *'with BFD'*)
12070  lt_cv_prog_gnu_ld=yes
12071  ;;
12072*)
12073  lt_cv_prog_gnu_ld=no
12074  ;;
12075esac
12076fi
12077echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12078echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12079with_gnu_ld=$lt_cv_prog_gnu_ld
12080
12081
12082
12083  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12084  # archiving commands below assume that GNU ld is being used.
12085  if test "$with_gnu_ld" = yes; then
12086    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087    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'
12088
12089    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12090    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12091
12092    # If archive_cmds runs LD, not CC, wlarc should be empty
12093    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12094    #     investigate it a little bit more. (MM)
12095    wlarc='${wl}'
12096
12097    # ancient GNU ld didn't support --whole-archive et. al.
12098    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12099	grep 'no-whole-archive' > /dev/null; then
12100      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12101    else
12102      whole_archive_flag_spec_CXX=
12103    fi
12104  else
12105    with_gnu_ld=no
12106    wlarc=
12107
12108    # A generic and very simple default shared library creation
12109    # command for GNU C++ for the case where it uses the native
12110    # linker, instead of GNU ld.  If possible, this setting should
12111    # overridden to take advantage of the native linker features on
12112    # the platform it is being used on.
12113    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12114  fi
12115
12116  # Commands to make compiler produce verbose output that lists
12117  # what "hidden" libraries, object files and flags are used when
12118  # linking a shared library.
12119  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12120
12121else
12122  GXX=no
12123  with_gnu_ld=no
12124  wlarc=
12125fi
12126
12127# PORTME: fill in a description of your system's C++ link characteristics
12128echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12129echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12130ld_shlibs_CXX=yes
12131case $host_os in
12132  aix3*)
12133    # FIXME: insert proper C++ library support
12134    ld_shlibs_CXX=no
12135    ;;
12136  aix4* | aix5*)
12137    if test "$host_cpu" = ia64; then
12138      # On IA64, the linker does run time linking by default, so we don't
12139      # have to do anything special.
12140      aix_use_runtimelinking=no
12141      exp_sym_flag='-Bexport'
12142      no_entry_flag=""
12143    else
12144      aix_use_runtimelinking=no
12145
12146      # Test if we are trying to use run time linking or normal
12147      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12148      # need to do runtime linking.
12149      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12150	for ld_flag in $LDFLAGS; do
12151	  case $ld_flag in
12152	  *-brtl*)
12153	    aix_use_runtimelinking=yes
12154	    break
12155	    ;;
12156	  esac
12157	done
12158	;;
12159      esac
12160
12161      exp_sym_flag='-bexport'
12162      no_entry_flag='-bnoentry'
12163    fi
12164
12165    # When large executables or shared objects are built, AIX ld can
12166    # have problems creating the table of contents.  If linking a library
12167    # or program results in "error TOC overflow" add -mminimal-toc to
12168    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12169    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12170
12171    archive_cmds_CXX=''
12172    hardcode_direct_CXX=yes
12173    hardcode_libdir_separator_CXX=':'
12174    link_all_deplibs_CXX=yes
12175
12176    if test "$GXX" = yes; then
12177      case $host_os in aix4.[012]|aix4.[012].*)
12178      # We only want to do this on AIX 4.2 and lower, the check
12179      # below for broken collect2 doesn't work under 4.3+
12180	collect2name=`${CC} -print-prog-name=collect2`
12181	if test -f "$collect2name" && \
12182	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12183	then
12184	  # We have reworked collect2
12185	  hardcode_direct_CXX=yes
12186	else
12187	  # We have old collect2
12188	  hardcode_direct_CXX=unsupported
12189	  # It fails to find uninstalled libraries when the uninstalled
12190	  # path is not listed in the libpath.  Setting hardcode_minus_L
12191	  # to unsupported forces relinking
12192	  hardcode_minus_L_CXX=yes
12193	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12194	  hardcode_libdir_separator_CXX=
12195	fi
12196	;;
12197      esac
12198      shared_flag='-shared'
12199      if test "$aix_use_runtimelinking" = yes; then
12200	shared_flag="$shared_flag "'${wl}-G'
12201      fi
12202    else
12203      # not using gcc
12204      if test "$host_cpu" = ia64; then
12205	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12206	# chokes on -Wl,-G. The following line is correct:
12207	shared_flag='-G'
12208      else
12209	if test "$aix_use_runtimelinking" = yes; then
12210	  shared_flag='${wl}-G'
12211	else
12212	  shared_flag='${wl}-bM:SRE'
12213	fi
12214      fi
12215    fi
12216
12217    # It seems that -bexpall does not export symbols beginning with
12218    # underscore (_), so it is better to generate a list of symbols to export.
12219    always_export_symbols_CXX=yes
12220    if test "$aix_use_runtimelinking" = yes; then
12221      # Warning - without using the other runtime loading flags (-brtl),
12222      # -berok will link without error, but may produce a broken library.
12223      allow_undefined_flag_CXX='-berok'
12224      # Determine the default libpath from the value encoded in an empty executable.
12225      cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h.  */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h.  */
12231
12232int
12233main ()
12234{
12235
12236  ;
12237  return 0;
12238}
12239_ACEOF
12240rm -f conftest.$ac_objext conftest$ac_exeext
12241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242  (eval $ac_link) 2>conftest.er1
12243  ac_status=$?
12244  grep -v '^ *+' conftest.er1 >conftest.err
12245  rm -f conftest.er1
12246  cat conftest.err >&5
12247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248  (exit $ac_status); } &&
12249	 { ac_try='test -z "$ac_cxx_werror_flag"
12250			 || test ! -s conftest.err'
12251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252  (eval $ac_try) 2>&5
12253  ac_status=$?
12254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255  (exit $ac_status); }; } &&
12256	 { ac_try='test -s conftest$ac_exeext'
12257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258  (eval $ac_try) 2>&5
12259  ac_status=$?
12260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261  (exit $ac_status); }; }; then
12262
12263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12264}'`
12265# Check for a 64-bit object if we didn't find anything.
12266if 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; }
12267}'`; fi
12268else
12269  echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272fi
12273rm -f conftest.err conftest.$ac_objext \
12274      conftest$ac_exeext conftest.$ac_ext
12275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12276
12277      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12278
12279      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"
12280     else
12281      if test "$host_cpu" = ia64; then
12282	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12283	allow_undefined_flag_CXX="-z nodefs"
12284	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"
12285      else
12286	# Determine the default libpath from the value encoded in an empty executable.
12287	cat >conftest.$ac_ext <<_ACEOF
12288/* confdefs.h.  */
12289_ACEOF
12290cat confdefs.h >>conftest.$ac_ext
12291cat >>conftest.$ac_ext <<_ACEOF
12292/* end confdefs.h.  */
12293
12294int
12295main ()
12296{
12297
12298  ;
12299  return 0;
12300}
12301_ACEOF
12302rm -f conftest.$ac_objext conftest$ac_exeext
12303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12304  (eval $ac_link) 2>conftest.er1
12305  ac_status=$?
12306  grep -v '^ *+' conftest.er1 >conftest.err
12307  rm -f conftest.er1
12308  cat conftest.err >&5
12309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310  (exit $ac_status); } &&
12311	 { ac_try='test -z "$ac_cxx_werror_flag"
12312			 || test ! -s conftest.err'
12313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314  (eval $ac_try) 2>&5
12315  ac_status=$?
12316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317  (exit $ac_status); }; } &&
12318	 { ac_try='test -s conftest$ac_exeext'
12319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320  (eval $ac_try) 2>&5
12321  ac_status=$?
12322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); }; }; then
12324
12325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12326}'`
12327# Check for a 64-bit object if we didn't find anything.
12328if 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; }
12329}'`; fi
12330else
12331  echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
12334fi
12335rm -f conftest.err conftest.$ac_objext \
12336      conftest$ac_exeext conftest.$ac_ext
12337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12338
12339	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12340	# Warning - without using the other run time loading flags,
12341	# -berok will link without error, but may produce a broken library.
12342	no_undefined_flag_CXX=' ${wl}-bernotok'
12343	allow_undefined_flag_CXX=' ${wl}-berok'
12344	# Exported symbols can be pulled into shared objects from archives
12345	whole_archive_flag_spec_CXX='$convenience'
12346	archive_cmds_need_lc_CXX=yes
12347	# This is similar to how AIX traditionally builds its shared libraries.
12348	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'
12349      fi
12350    fi
12351    ;;
12352
12353  beos*)
12354    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12355      allow_undefined_flag_CXX=unsupported
12356      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12357      # support --undefined.  This deserves some investigation.  FIXME
12358      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359    else
12360      ld_shlibs_CXX=no
12361    fi
12362    ;;
12363
12364  chorus*)
12365    case $cc_basename in
12366      *)
12367	# FIXME: insert proper C++ library support
12368	ld_shlibs_CXX=no
12369	;;
12370    esac
12371    ;;
12372
12373  cygwin* | mingw* | pw32*)
12374    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12375    # as there is no search path for DLLs.
12376    hardcode_libdir_flag_spec_CXX='-L$libdir'
12377    allow_undefined_flag_CXX=unsupported
12378    always_export_symbols_CXX=no
12379    enable_shared_with_static_runtimes_CXX=yes
12380
12381    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12382      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'
12383      # If the export-symbols file already is a .def file (1st line
12384      # is EXPORTS), use it as is; otherwise, prepend...
12385      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12386	cp $export_symbols $output_objdir/$soname.def;
12387      else
12388	echo EXPORTS > $output_objdir/$soname.def;
12389	cat $export_symbols >> $output_objdir/$soname.def;
12390      fi~
12391      $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'
12392    else
12393      ld_shlibs_CXX=no
12394    fi
12395  ;;
12396      darwin* | rhapsody*)
12397        case $host_os in
12398        rhapsody* | darwin1.[012])
12399         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12400         ;;
12401       *) # Darwin 1.3 on
12402         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12403           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12404         else
12405           case ${MACOSX_DEPLOYMENT_TARGET} in
12406             10.[012])
12407               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12408               ;;
12409             10.*)
12410               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12411               ;;
12412           esac
12413         fi
12414         ;;
12415        esac
12416      archive_cmds_need_lc_CXX=no
12417      hardcode_direct_CXX=no
12418      hardcode_automatic_CXX=yes
12419      hardcode_shlibpath_var_CXX=unsupported
12420      whole_archive_flag_spec_CXX=''
12421      link_all_deplibs_CXX=yes
12422
12423    if test "$GXX" = yes ; then
12424      lt_int_apple_cc_single_mod=no
12425      output_verbose_link_cmd='echo'
12426      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12427       lt_int_apple_cc_single_mod=yes
12428      fi
12429      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12430       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12431      else
12432          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'
12433        fi
12434        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12435        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12436          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12437            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}'
12438          else
12439            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}'
12440          fi
12441            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}'
12442      else
12443      case $cc_basename in
12444        xlc*)
12445         output_verbose_link_cmd='echo'
12446          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'
12447          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12448          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12449          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}'
12450          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}'
12451          ;;
12452       *)
12453         ld_shlibs_CXX=no
12454          ;;
12455      esac
12456      fi
12457        ;;
12458
12459  dgux*)
12460    case $cc_basename in
12461      ec++*)
12462	# FIXME: insert proper C++ library support
12463	ld_shlibs_CXX=no
12464	;;
12465      ghcx*)
12466	# Green Hills C++ Compiler
12467	# FIXME: insert proper C++ library support
12468	ld_shlibs_CXX=no
12469	;;
12470      *)
12471	# FIXME: insert proper C++ library support
12472	ld_shlibs_CXX=no
12473	;;
12474    esac
12475    ;;
12476  freebsd[12]*)
12477    # C++ shared libraries reported to be fairly broken before switch to ELF
12478    ld_shlibs_CXX=no
12479    ;;
12480  freebsd-elf*)
12481    archive_cmds_need_lc_CXX=no
12482    ;;
12483  freebsd* | kfreebsd*-gnu | dragonfly*)
12484    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12485    # conventions
12486    ld_shlibs_CXX=yes
12487    ;;
12488  gnu*)
12489    ;;
12490  hpux9*)
12491    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12492    hardcode_libdir_separator_CXX=:
12493    export_dynamic_flag_spec_CXX='${wl}-E'
12494    hardcode_direct_CXX=yes
12495    hardcode_minus_L_CXX=yes # Not in the search PATH,
12496				# but as the default
12497				# location of the library.
12498
12499    case $cc_basename in
12500    CC*)
12501      # FIXME: insert proper C++ library support
12502      ld_shlibs_CXX=no
12503      ;;
12504    aCC*)
12505      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'
12506      # Commands to make compiler produce verbose output that lists
12507      # what "hidden" libraries, object files and flags are used when
12508      # linking a shared library.
12509      #
12510      # There doesn't appear to be a way to prevent this compiler from
12511      # explicitly linking system object files so we need to strip them
12512      # from the output so that they don't get included in the library
12513      # dependencies.
12514      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'
12515      ;;
12516    *)
12517      if test "$GXX" = yes; then
12518        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'
12519      else
12520        # FIXME: insert proper C++ library support
12521        ld_shlibs_CXX=no
12522      fi
12523      ;;
12524    esac
12525    ;;
12526  hpux10*|hpux11*)
12527    if test $with_gnu_ld = no; then
12528      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12529      hardcode_libdir_separator_CXX=:
12530
12531      case $host_cpu in
12532      hppa*64*|ia64*)
12533	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12534        ;;
12535      *)
12536	export_dynamic_flag_spec_CXX='${wl}-E'
12537        ;;
12538      esac
12539    fi
12540    case $host_cpu in
12541    hppa*64*|ia64*)
12542      hardcode_direct_CXX=no
12543      hardcode_shlibpath_var_CXX=no
12544      ;;
12545    *)
12546      hardcode_direct_CXX=yes
12547      hardcode_minus_L_CXX=yes # Not in the search PATH,
12548					      # but as the default
12549					      # location of the library.
12550      ;;
12551    esac
12552
12553    case $cc_basename in
12554      CC*)
12555	# FIXME: insert proper C++ library support
12556	ld_shlibs_CXX=no
12557	;;
12558      aCC*)
12559	case $host_cpu in
12560	hppa*64*)
12561	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562	  ;;
12563	ia64*)
12564	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565	  ;;
12566	*)
12567	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12568	  ;;
12569	esac
12570	# Commands to make compiler produce verbose output that lists
12571	# what "hidden" libraries, object files and flags are used when
12572	# linking a shared library.
12573	#
12574	# There doesn't appear to be a way to prevent this compiler from
12575	# explicitly linking system object files so we need to strip them
12576	# from the output so that they don't get included in the library
12577	# dependencies.
12578	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'
12579	;;
12580      *)
12581	if test "$GXX" = yes; then
12582	  if test $with_gnu_ld = no; then
12583	    case $host_cpu in
12584	    hppa*64*)
12585	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12586	      ;;
12587	    ia64*)
12588	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589	      ;;
12590	    *)
12591	      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'
12592	      ;;
12593	    esac
12594	  fi
12595	else
12596	  # FIXME: insert proper C++ library support
12597	  ld_shlibs_CXX=no
12598	fi
12599	;;
12600    esac
12601    ;;
12602  interix3*)
12603    hardcode_direct_CXX=no
12604    hardcode_shlibpath_var_CXX=no
12605    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12606    export_dynamic_flag_spec_CXX='${wl}-E'
12607    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12608    # Instead, shared libraries are loaded at an image base (0x10000000 by
12609    # default) and relocated if they conflict, which is a slow very memory
12610    # consuming and fragmenting process.  To avoid this, we pick a random,
12611    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12612    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12613    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'
12614    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'
12615    ;;
12616  irix5* | irix6*)
12617    case $cc_basename in
12618      CC*)
12619	# SGI C++
12620	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'
12621
12622	# Archives containing C++ object files must be created using
12623	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12624	# necessary to make sure instantiated templates are included
12625	# in the archive.
12626	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12627	;;
12628      *)
12629	if test "$GXX" = yes; then
12630	  if test "$with_gnu_ld" = no; then
12631	    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'
12632	  else
12633	    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'
12634	  fi
12635	fi
12636	link_all_deplibs_CXX=yes
12637	;;
12638    esac
12639    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12640    hardcode_libdir_separator_CXX=:
12641    ;;
12642  linux*)
12643    case $cc_basename in
12644      KCC*)
12645	# Kuck and Associates, Inc. (KAI) C++ Compiler
12646
12647	# KCC will only create a shared library if the output file
12648	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12649	# to its proper name (with version) after linking.
12650	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'
12651	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'
12652	# Commands to make compiler produce verbose output that lists
12653	# what "hidden" libraries, object files and flags are used when
12654	# linking a shared library.
12655	#
12656	# There doesn't appear to be a way to prevent this compiler from
12657	# explicitly linking system object files so we need to strip them
12658	# from the output so that they don't get included in the library
12659	# dependencies.
12660	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'
12661
12662	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12663	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12664
12665	# Archives containing C++ object files must be created using
12666	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12667	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12668	;;
12669      icpc*)
12670	# Intel C++
12671	with_gnu_ld=yes
12672	# version 8.0 and above of icpc choke on multiply defined symbols
12673	# if we add $predep_objects and $postdep_objects, however 7.1 and
12674	# earlier do not add the objects themselves.
12675	case `$CC -V 2>&1` in
12676	*"Version 7."*)
12677  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678  	  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'
12679	  ;;
12680	*)  # Version 8.0 or newer
12681	  tmp_idyn=
12682	  case $host_cpu in
12683	    ia64*) tmp_idyn=' -i_dynamic';;
12684	  esac
12685  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12686	  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'
12687	  ;;
12688	esac
12689	archive_cmds_need_lc_CXX=no
12690	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12691	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12692	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12693	;;
12694      pgCC*)
12695        # Portland Group C++ compiler
12696	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12697  	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'
12698
12699	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12700	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12701	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'
12702        ;;
12703      cxx*)
12704	# Compaq C++
12705	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706	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'
12707
12708	runpath_var=LD_RUN_PATH
12709	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12710	hardcode_libdir_separator_CXX=:
12711
12712	# Commands to make compiler produce verbose output that lists
12713	# what "hidden" libraries, object files and flags are used when
12714	# linking a shared library.
12715	#
12716	# There doesn't appear to be a way to prevent this compiler from
12717	# explicitly linking system object files so we need to strip them
12718	# from the output so that they don't get included in the library
12719	# dependencies.
12720	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'
12721	;;
12722    esac
12723    ;;
12724  lynxos*)
12725    # FIXME: insert proper C++ library support
12726    ld_shlibs_CXX=no
12727    ;;
12728  m88k*)
12729    # FIXME: insert proper C++ library support
12730    ld_shlibs_CXX=no
12731    ;;
12732  mvs*)
12733    case $cc_basename in
12734      cxx*)
12735	# FIXME: insert proper C++ library support
12736	ld_shlibs_CXX=no
12737	;;
12738      *)
12739	# FIXME: insert proper C++ library support
12740	ld_shlibs_CXX=no
12741	;;
12742    esac
12743    ;;
12744  netbsd*)
12745    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12746      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12747      wlarc=
12748      hardcode_libdir_flag_spec_CXX='-R$libdir'
12749      hardcode_direct_CXX=yes
12750      hardcode_shlibpath_var_CXX=no
12751    fi
12752    # Workaround some broken pre-1.5 toolchains
12753    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12754    ;;
12755  openbsd2*)
12756    # C++ shared libraries are fairly broken
12757    ld_shlibs_CXX=no
12758    ;;
12759  openbsd*)
12760    hardcode_direct_CXX=yes
12761    hardcode_shlibpath_var_CXX=no
12762    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12763    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12764    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12765      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12766      export_dynamic_flag_spec_CXX='${wl}-E'
12767      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12768    fi
12769    output_verbose_link_cmd='echo'
12770    ;;
12771  osf3*)
12772    case $cc_basename in
12773      KCC*)
12774	# Kuck and Associates, Inc. (KAI) C++ Compiler
12775
12776	# KCC will only create a shared library if the output file
12777	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12778	# to its proper name (with version) after linking.
12779	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'
12780
12781	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12782	hardcode_libdir_separator_CXX=:
12783
12784	# Archives containing C++ object files must be created using
12785	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12786	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12787
12788	;;
12789      RCC*)
12790	# Rational C++ 2.4.1
12791	# FIXME: insert proper C++ library support
12792	ld_shlibs_CXX=no
12793	;;
12794      cxx*)
12795	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12796	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'
12797
12798	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12799	hardcode_libdir_separator_CXX=:
12800
12801	# Commands to make compiler produce verbose output that lists
12802	# what "hidden" libraries, object files and flags are used when
12803	# linking a shared library.
12804	#
12805	# There doesn't appear to be a way to prevent this compiler from
12806	# explicitly linking system object files so we need to strip them
12807	# from the output so that they don't get included in the library
12808	# dependencies.
12809	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'
12810	;;
12811      *)
12812	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12813	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12814	  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'
12815
12816	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12817	  hardcode_libdir_separator_CXX=:
12818
12819	  # Commands to make compiler produce verbose output that lists
12820	  # what "hidden" libraries, object files and flags are used when
12821	  # linking a shared library.
12822	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12823
12824	else
12825	  # FIXME: insert proper C++ library support
12826	  ld_shlibs_CXX=no
12827	fi
12828	;;
12829    esac
12830    ;;
12831  osf4* | osf5*)
12832    case $cc_basename in
12833      KCC*)
12834	# Kuck and Associates, Inc. (KAI) C++ Compiler
12835
12836	# KCC will only create a shared library if the output file
12837	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12838	# to its proper name (with version) after linking.
12839	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'
12840
12841	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12842	hardcode_libdir_separator_CXX=:
12843
12844	# Archives containing C++ object files must be created using
12845	# the KAI C++ compiler.
12846	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12847	;;
12848      RCC*)
12849	# Rational C++ 2.4.1
12850	# FIXME: insert proper C++ library support
12851	ld_shlibs_CXX=no
12852	;;
12853      cxx*)
12854	allow_undefined_flag_CXX=' -expect_unresolved \*'
12855	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'
12856	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12857	  echo "-hidden">> $lib.exp~
12858	  $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~
12859	  $rm $lib.exp'
12860
12861	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12862	hardcode_libdir_separator_CXX=:
12863
12864	# Commands to make compiler produce verbose output that lists
12865	# what "hidden" libraries, object files and flags are used when
12866	# linking a shared library.
12867	#
12868	# There doesn't appear to be a way to prevent this compiler from
12869	# explicitly linking system object files so we need to strip them
12870	# from the output so that they don't get included in the library
12871	# dependencies.
12872	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'
12873	;;
12874      *)
12875	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12876	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12877	 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'
12878
12879	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12880	  hardcode_libdir_separator_CXX=:
12881
12882	  # Commands to make compiler produce verbose output that lists
12883	  # what "hidden" libraries, object files and flags are used when
12884	  # linking a shared library.
12885	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12886
12887	else
12888	  # FIXME: insert proper C++ library support
12889	  ld_shlibs_CXX=no
12890	fi
12891	;;
12892    esac
12893    ;;
12894  psos*)
12895    # FIXME: insert proper C++ library support
12896    ld_shlibs_CXX=no
12897    ;;
12898  sunos4*)
12899    case $cc_basename in
12900      CC*)
12901	# Sun C++ 4.x
12902	# FIXME: insert proper C++ library support
12903	ld_shlibs_CXX=no
12904	;;
12905      lcc*)
12906	# Lucid
12907	# FIXME: insert proper C++ library support
12908	ld_shlibs_CXX=no
12909	;;
12910      *)
12911	# FIXME: insert proper C++ library support
12912	ld_shlibs_CXX=no
12913	;;
12914    esac
12915    ;;
12916  solaris*)
12917    case $cc_basename in
12918      CC*)
12919	# Sun C++ 4.2, 5.x and Centerline C++
12920        archive_cmds_need_lc_CXX=yes
12921	no_undefined_flag_CXX=' -zdefs'
12922	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12924	$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'
12925
12926	hardcode_libdir_flag_spec_CXX='-R$libdir'
12927	hardcode_shlibpath_var_CXX=no
12928	case $host_os in
12929	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12930	  *)
12931	    # The C++ compiler is used as linker so we must use $wl
12932	    # flag to pass the commands to the underlying system
12933	    # linker. We must also pass each convience library through
12934	    # to the system linker between allextract/defaultextract.
12935	    # The C++ compiler will combine linker options so we
12936	    # cannot just pass the convience library names through
12937	    # without $wl.
12938	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12939	    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'
12940	    ;;
12941	esac
12942	link_all_deplibs_CXX=yes
12943
12944	output_verbose_link_cmd='echo'
12945
12946	# Archives containing C++ object files must be created using
12947	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12948	# necessary to make sure instantiated templates are included
12949	# in the archive.
12950	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12951	;;
12952      gcx*)
12953	# Green Hills C++ Compiler
12954	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12955
12956	# The C++ compiler must be used to create the archive.
12957	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12958	;;
12959      *)
12960	# GNU C++ compiler with Solaris linker
12961	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12962	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12963	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12964	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12965	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12966		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12967
12968	    # Commands to make compiler produce verbose output that lists
12969	    # what "hidden" libraries, object files and flags are used when
12970	    # linking a shared library.
12971	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12972	  else
12973	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12974	    # platform.
12975	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12976	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12977		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12978
12979	    # Commands to make compiler produce verbose output that lists
12980	    # what "hidden" libraries, object files and flags are used when
12981	    # linking a shared library.
12982	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12983	  fi
12984
12985	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12986	fi
12987	;;
12988    esac
12989    ;;
12990  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12991    no_undefined_flag_CXX='${wl}-z,text'
12992    archive_cmds_need_lc_CXX=no
12993    hardcode_shlibpath_var_CXX=no
12994    runpath_var='LD_RUN_PATH'
12995
12996    case $cc_basename in
12997      CC*)
12998	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12999	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13000	;;
13001      *)
13002	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13003	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13004	;;
13005    esac
13006    ;;
13007  sysv5* | sco3.2v5* | sco5v6*)
13008    # Note: We can NOT use -z defs as we might desire, because we do not
13009    # link with -lc, and that would cause any symbols used from libc to
13010    # always be unresolved, which means just about no library would
13011    # ever link correctly.  If we're not using GNU ld we use -z text
13012    # though, which does catch some bad symbols but isn't as heavy-handed
13013    # as -z defs.
13014    # For security reasons, it is highly recommended that you always
13015    # use absolute paths for naming shared libraries, and exclude the
13016    # DT_RUNPATH tag from executables and libraries.  But doing so
13017    # requires that you compile everything twice, which is a pain.
13018    # So that behaviour is only enabled if SCOABSPATH is set to a
13019    # non-empty value in the environment.  Most likely only useful for
13020    # creating official distributions of packages.
13021    # This is a hack until libtool officially supports absolute path
13022    # names for shared libraries.
13023    no_undefined_flag_CXX='${wl}-z,text'
13024    allow_undefined_flag_CXX='${wl}-z,nodefs'
13025    archive_cmds_need_lc_CXX=no
13026    hardcode_shlibpath_var_CXX=no
13027    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13028    hardcode_libdir_separator_CXX=':'
13029    link_all_deplibs_CXX=yes
13030    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13031    runpath_var='LD_RUN_PATH'
13032
13033    case $cc_basename in
13034      CC*)
13035	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13036	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13037	;;
13038      *)
13039	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13040	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13041	;;
13042    esac
13043    ;;
13044  tandem*)
13045    case $cc_basename in
13046      NCC*)
13047	# NonStop-UX NCC 3.20
13048	# FIXME: insert proper C++ library support
13049	ld_shlibs_CXX=no
13050	;;
13051      *)
13052	# FIXME: insert proper C++ library support
13053	ld_shlibs_CXX=no
13054	;;
13055    esac
13056    ;;
13057  vxworks*)
13058    # FIXME: insert proper C++ library support
13059    ld_shlibs_CXX=no
13060    ;;
13061  *)
13062    # FIXME: insert proper C++ library support
13063    ld_shlibs_CXX=no
13064    ;;
13065esac
13066echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13067echo "${ECHO_T}$ld_shlibs_CXX" >&6
13068test "$ld_shlibs_CXX" = no && can_build_shared=no
13069
13070GCC_CXX="$GXX"
13071LD_CXX="$LD"
13072
13073## CAVEAT EMPTOR:
13074## There is no encapsulation within the following macros, do not change
13075## the running order or otherwise move them around unless you know exactly
13076## what you are doing...
13077
13078cat > conftest.$ac_ext <<EOF
13079class Foo
13080{
13081public:
13082  Foo (void) { a = 0; }
13083private:
13084  int a;
13085};
13086EOF
13087
13088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13089  (eval $ac_compile) 2>&5
13090  ac_status=$?
13091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092  (exit $ac_status); }; then
13093  # Parse the compiler output and extract the necessary
13094  # objects, libraries and library flags.
13095
13096  # Sentinel used to keep track of whether or not we are before
13097  # the conftest object file.
13098  pre_test_object_deps_done=no
13099
13100  # The `*' in the case matches for architectures that use `case' in
13101  # $output_verbose_cmd can trigger glob expansion during the loop
13102  # eval without this substitution.
13103  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13104
13105  for p in `eval $output_verbose_link_cmd`; do
13106    case $p in
13107
13108    -L* | -R* | -l*)
13109       # Some compilers place space between "-{L,R}" and the path.
13110       # Remove the space.
13111       if test $p = "-L" \
13112	  || test $p = "-R"; then
13113	 prev=$p
13114	 continue
13115       else
13116	 prev=
13117       fi
13118
13119       if test "$pre_test_object_deps_done" = no; then
13120	 case $p in
13121	 -L* | -R*)
13122	   # Internal compiler library paths should come after those
13123	   # provided the user.  The postdeps already come after the
13124	   # user supplied libs so there is no need to process them.
13125	   if test -z "$compiler_lib_search_path_CXX"; then
13126	     compiler_lib_search_path_CXX="${prev}${p}"
13127	   else
13128	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13129	   fi
13130	   ;;
13131	 # The "-l" case would never come before the object being
13132	 # linked, so don't bother handling this case.
13133	 esac
13134       else
13135	 if test -z "$postdeps_CXX"; then
13136	   postdeps_CXX="${prev}${p}"
13137	 else
13138	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13139	 fi
13140       fi
13141       ;;
13142
13143    *.$objext)
13144       # This assumes that the test object file only shows up
13145       # once in the compiler output.
13146       if test "$p" = "conftest.$objext"; then
13147	 pre_test_object_deps_done=yes
13148	 continue
13149       fi
13150
13151       if test "$pre_test_object_deps_done" = no; then
13152	 if test -z "$predep_objects_CXX"; then
13153	   predep_objects_CXX="$p"
13154	 else
13155	   predep_objects_CXX="$predep_objects_CXX $p"
13156	 fi
13157       else
13158	 if test -z "$postdep_objects_CXX"; then
13159	   postdep_objects_CXX="$p"
13160	 else
13161	   postdep_objects_CXX="$postdep_objects_CXX $p"
13162	 fi
13163       fi
13164       ;;
13165
13166    *) ;; # Ignore the rest.
13167
13168    esac
13169  done
13170
13171  # Clean up.
13172  rm -f a.out a.exe
13173else
13174  echo "libtool.m4: error: problem compiling CXX test program"
13175fi
13176
13177$rm -f confest.$objext
13178
13179# PORTME: override above test on systems where it is broken
13180case $host_os in
13181interix3*)
13182  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13183  # hack all around it, let's just trust "g++" to DTRT.
13184  predep_objects_CXX=
13185  postdep_objects_CXX=
13186  postdeps_CXX=
13187  ;;
13188
13189solaris*)
13190  case $cc_basename in
13191  CC*)
13192    # Adding this requires a known-good setup of shared libraries for
13193    # Sun compiler versions before 5.6, else PIC objects from an old
13194    # archive will be linked into the output, leading to subtle bugs.
13195    postdeps_CXX='-lCstd -lCrun'
13196    ;;
13197  esac
13198  ;;
13199esac
13200
13201
13202case " $postdeps_CXX " in
13203*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13204esac
13205
13206lt_prog_compiler_wl_CXX=
13207lt_prog_compiler_pic_CXX=
13208lt_prog_compiler_static_CXX=
13209
13210echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13211echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13212
13213  # C++ specific cases for pic, static, wl, etc.
13214  if test "$GXX" = yes; then
13215    lt_prog_compiler_wl_CXX='-Wl,'
13216    lt_prog_compiler_static_CXX='-static'
13217
13218    case $host_os in
13219    aix*)
13220      # All AIX code is PIC.
13221      if test "$host_cpu" = ia64; then
13222	# AIX 5 now supports IA64 processor
13223	lt_prog_compiler_static_CXX='-Bstatic'
13224      fi
13225      ;;
13226    amigaos*)
13227      # FIXME: we need at least 68020 code to build shared libraries, but
13228      # adding the `-m68020' flag to GCC prevents building anything better,
13229      # like `-m68040'.
13230      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13231      ;;
13232    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233      # PIC is the default for these OSes.
13234      ;;
13235    mingw* | os2* | pw32*)
13236      # This hack is so that the source file can tell whether it is being
13237      # built for inclusion in a dll (and should export symbols for example).
13238      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13239      ;;
13240    darwin* | rhapsody*)
13241      # PIC is the default on this platform
13242      # Common symbols not allowed in MH_DYLIB files
13243      lt_prog_compiler_pic_CXX='-fno-common'
13244      ;;
13245    *djgpp*)
13246      # DJGPP does not support shared libraries at all
13247      lt_prog_compiler_pic_CXX=
13248      ;;
13249    interix3*)
13250      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13251      # Instead, we relocate shared libraries at runtime.
13252      ;;
13253    sysv4*MP*)
13254      if test -d /usr/nec; then
13255	lt_prog_compiler_pic_CXX=-Kconform_pic
13256      fi
13257      ;;
13258    hpux*)
13259      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13260      # not for PA HP-UX.
13261      case $host_cpu in
13262      hppa*64*|ia64*)
13263	;;
13264      *)
13265	lt_prog_compiler_pic_CXX='-fPIC'
13266	;;
13267      esac
13268      ;;
13269    *)
13270      lt_prog_compiler_pic_CXX='-fPIC'
13271      ;;
13272    esac
13273  else
13274    case $host_os in
13275      aix4* | aix5*)
13276	# All AIX code is PIC.
13277	if test "$host_cpu" = ia64; then
13278	  # AIX 5 now supports IA64 processor
13279	  lt_prog_compiler_static_CXX='-Bstatic'
13280	else
13281	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13282	fi
13283	;;
13284      chorus*)
13285	case $cc_basename in
13286	cxch68*)
13287	  # Green Hills C++ Compiler
13288	  # _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"
13289	  ;;
13290	esac
13291	;;
13292       darwin*)
13293         # PIC is the default on this platform
13294         # Common symbols not allowed in MH_DYLIB files
13295         case $cc_basename in
13296           xlc*)
13297           lt_prog_compiler_pic_CXX='-qnocommon'
13298           lt_prog_compiler_wl_CXX='-Wl,'
13299           ;;
13300         esac
13301       ;;
13302      dgux*)
13303	case $cc_basename in
13304	  ec++*)
13305	    lt_prog_compiler_pic_CXX='-KPIC'
13306	    ;;
13307	  ghcx*)
13308	    # Green Hills C++ Compiler
13309	    lt_prog_compiler_pic_CXX='-pic'
13310	    ;;
13311	  *)
13312	    ;;
13313	esac
13314	;;
13315      freebsd* | kfreebsd*-gnu | dragonfly*)
13316	# FreeBSD uses GNU C++
13317	;;
13318      hpux9* | hpux10* | hpux11*)
13319	case $cc_basename in
13320	  CC*)
13321	    lt_prog_compiler_wl_CXX='-Wl,'
13322	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13323	    if test "$host_cpu" != ia64; then
13324	      lt_prog_compiler_pic_CXX='+Z'
13325	    fi
13326	    ;;
13327	  aCC*)
13328	    lt_prog_compiler_wl_CXX='-Wl,'
13329	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13330	    case $host_cpu in
13331	    hppa*64*|ia64*)
13332	      # +Z the default
13333	      ;;
13334	    *)
13335	      lt_prog_compiler_pic_CXX='+Z'
13336	      ;;
13337	    esac
13338	    ;;
13339	  *)
13340	    ;;
13341	esac
13342	;;
13343      interix*)
13344	# This is c89, which is MS Visual C++ (no shared libs)
13345	# Anyone wants to do a port?
13346	;;
13347      irix5* | irix6* | nonstopux*)
13348	case $cc_basename in
13349	  CC*)
13350	    lt_prog_compiler_wl_CXX='-Wl,'
13351	    lt_prog_compiler_static_CXX='-non_shared'
13352	    # CC pic flag -KPIC is the default.
13353	    ;;
13354	  *)
13355	    ;;
13356	esac
13357	;;
13358      linux*)
13359	case $cc_basename in
13360	  KCC*)
13361	    # KAI C++ Compiler
13362	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13363	    lt_prog_compiler_pic_CXX='-fPIC'
13364	    ;;
13365	  icpc* | ecpc*)
13366	    # Intel C++
13367	    lt_prog_compiler_wl_CXX='-Wl,'
13368	    lt_prog_compiler_pic_CXX='-KPIC'
13369	    lt_prog_compiler_static_CXX='-static'
13370	    ;;
13371	  pgCC*)
13372	    # Portland Group C++ compiler.
13373	    lt_prog_compiler_wl_CXX='-Wl,'
13374	    lt_prog_compiler_pic_CXX='-fpic'
13375	    lt_prog_compiler_static_CXX='-Bstatic'
13376	    ;;
13377	  cxx*)
13378	    # Compaq C++
13379	    # Make sure the PIC flag is empty.  It appears that all Alpha
13380	    # Linux and Compaq Tru64 Unix objects are PIC.
13381	    lt_prog_compiler_pic_CXX=
13382	    lt_prog_compiler_static_CXX='-non_shared'
13383	    ;;
13384	  *)
13385	    ;;
13386	esac
13387	;;
13388      lynxos*)
13389	;;
13390      m88k*)
13391	;;
13392      mvs*)
13393	case $cc_basename in
13394	  cxx*)
13395	    lt_prog_compiler_pic_CXX='-W c,exportall'
13396	    ;;
13397	  *)
13398	    ;;
13399	esac
13400	;;
13401      netbsd*)
13402	;;
13403      osf3* | osf4* | osf5*)
13404	case $cc_basename in
13405	  KCC*)
13406	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13407	    ;;
13408	  RCC*)
13409	    # Rational C++ 2.4.1
13410	    lt_prog_compiler_pic_CXX='-pic'
13411	    ;;
13412	  cxx*)
13413	    # Digital/Compaq C++
13414	    lt_prog_compiler_wl_CXX='-Wl,'
13415	    # Make sure the PIC flag is empty.  It appears that all Alpha
13416	    # Linux and Compaq Tru64 Unix objects are PIC.
13417	    lt_prog_compiler_pic_CXX=
13418	    lt_prog_compiler_static_CXX='-non_shared'
13419	    ;;
13420	  *)
13421	    ;;
13422	esac
13423	;;
13424      psos*)
13425	;;
13426      solaris*)
13427	case $cc_basename in
13428	  CC*)
13429	    # Sun C++ 4.2, 5.x and Centerline C++
13430	    lt_prog_compiler_pic_CXX='-KPIC'
13431	    lt_prog_compiler_static_CXX='-Bstatic'
13432	    lt_prog_compiler_wl_CXX='-Qoption ld '
13433	    ;;
13434	  gcx*)
13435	    # Green Hills C++ Compiler
13436	    lt_prog_compiler_pic_CXX='-PIC'
13437	    ;;
13438	  *)
13439	    ;;
13440	esac
13441	;;
13442      sunos4*)
13443	case $cc_basename in
13444	  CC*)
13445	    # Sun C++ 4.x
13446	    lt_prog_compiler_pic_CXX='-pic'
13447	    lt_prog_compiler_static_CXX='-Bstatic'
13448	    ;;
13449	  lcc*)
13450	    # Lucid
13451	    lt_prog_compiler_pic_CXX='-pic'
13452	    ;;
13453	  *)
13454	    ;;
13455	esac
13456	;;
13457      tandem*)
13458	case $cc_basename in
13459	  NCC*)
13460	    # NonStop-UX NCC 3.20
13461	    lt_prog_compiler_pic_CXX='-KPIC'
13462	    ;;
13463	  *)
13464	    ;;
13465	esac
13466	;;
13467      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13468	case $cc_basename in
13469	  CC*)
13470	    lt_prog_compiler_wl_CXX='-Wl,'
13471	    lt_prog_compiler_pic_CXX='-KPIC'
13472	    lt_prog_compiler_static_CXX='-Bstatic'
13473	    ;;
13474	esac
13475	;;
13476      vxworks*)
13477	;;
13478      *)
13479	lt_prog_compiler_can_build_shared_CXX=no
13480	;;
13481    esac
13482  fi
13483
13484echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13485echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13486
13487#
13488# Check to make sure the PIC flag actually works.
13489#
13490if test -n "$lt_prog_compiler_pic_CXX"; then
13491
13492echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13493echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13494if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13495  echo $ECHO_N "(cached) $ECHO_C" >&6
13496else
13497  lt_prog_compiler_pic_works_CXX=no
13498  ac_outfile=conftest.$ac_objext
13499   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13500   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13501   # Insert the option either (1) after the last *FLAGS variable, or
13502   # (2) before a word containing "conftest.", or (3) at the end.
13503   # Note that $ac_compile itself does not contain backslashes and begins
13504   # with a dollar sign (not a hyphen), so the echo should work correctly.
13505   # The option is referenced via a variable to avoid confusing sed.
13506   lt_compile=`echo "$ac_compile" | $SED \
13507   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13508   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13509   -e 's:$: $lt_compiler_flag:'`
13510   (eval echo "\"\$as_me:13510: $lt_compile\"" >&5)
13511   (eval "$lt_compile" 2>conftest.err)
13512   ac_status=$?
13513   cat conftest.err >&5
13514   echo "$as_me:13514: \$? = $ac_status" >&5
13515   if (exit $ac_status) && test -s "$ac_outfile"; then
13516     # The compiler can only warn and ignore the option if not recognized
13517     # So say no if there are warnings other than the usual output.
13518     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13519     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13520     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13521       lt_prog_compiler_pic_works_CXX=yes
13522     fi
13523   fi
13524   $rm conftest*
13525
13526fi
13527echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13528echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13529
13530if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13531    case $lt_prog_compiler_pic_CXX in
13532     "" | " "*) ;;
13533     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13534     esac
13535else
13536    lt_prog_compiler_pic_CXX=
13537     lt_prog_compiler_can_build_shared_CXX=no
13538fi
13539
13540fi
13541case $host_os in
13542  # For platforms which do not support PIC, -DPIC is meaningless:
13543  *djgpp*)
13544    lt_prog_compiler_pic_CXX=
13545    ;;
13546  *)
13547    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13548    ;;
13549esac
13550
13551#
13552# Check to make sure the static flag actually works.
13553#
13554wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13555echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13556echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13557if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13558  echo $ECHO_N "(cached) $ECHO_C" >&6
13559else
13560  lt_prog_compiler_static_works_CXX=no
13561   save_LDFLAGS="$LDFLAGS"
13562   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13563   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13564   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13565     # The linker can only warn and ignore the option if not recognized
13566     # So say no if there are warnings
13567     if test -s conftest.err; then
13568       # Append any errors to the config.log.
13569       cat conftest.err 1>&5
13570       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13571       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13572       if diff conftest.exp conftest.er2 >/dev/null; then
13573         lt_prog_compiler_static_works_CXX=yes
13574       fi
13575     else
13576       lt_prog_compiler_static_works_CXX=yes
13577     fi
13578   fi
13579   $rm conftest*
13580   LDFLAGS="$save_LDFLAGS"
13581
13582fi
13583echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13584echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13585
13586if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13587    :
13588else
13589    lt_prog_compiler_static_CXX=
13590fi
13591
13592
13593echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13594echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13595if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13596  echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
13598  lt_cv_prog_compiler_c_o_CXX=no
13599   $rm -r conftest 2>/dev/null
13600   mkdir conftest
13601   cd conftest
13602   mkdir out
13603   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13604
13605   lt_compiler_flag="-o out/conftest2.$ac_objext"
13606   # Insert the option either (1) after the last *FLAGS variable, or
13607   # (2) before a word containing "conftest.", or (3) at the end.
13608   # Note that $ac_compile itself does not contain backslashes and begins
13609   # with a dollar sign (not a hyphen), so the echo should work correctly.
13610   lt_compile=`echo "$ac_compile" | $SED \
13611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13613   -e 's:$: $lt_compiler_flag:'`
13614   (eval echo "\"\$as_me:13614: $lt_compile\"" >&5)
13615   (eval "$lt_compile" 2>out/conftest.err)
13616   ac_status=$?
13617   cat out/conftest.err >&5
13618   echo "$as_me:13618: \$? = $ac_status" >&5
13619   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13620   then
13621     # The compiler can only warn and ignore the option if not recognized
13622     # So say no if there are warnings
13623     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13624     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13625     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13626       lt_cv_prog_compiler_c_o_CXX=yes
13627     fi
13628   fi
13629   chmod u+w . 2>&5
13630   $rm conftest*
13631   # SGI C++ compiler will create directory out/ii_files/ for
13632   # template instantiation
13633   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13634   $rm out/* && rmdir out
13635   cd ..
13636   rmdir conftest
13637   $rm conftest*
13638
13639fi
13640echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13641echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13642
13643
13644hard_links="nottested"
13645if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13646  # do not overwrite the value of need_locks provided by the user
13647  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13648echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13649  hard_links=yes
13650  $rm conftest*
13651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13652  touch conftest.a
13653  ln conftest.a conftest.b 2>&5 || hard_links=no
13654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13655  echo "$as_me:$LINENO: result: $hard_links" >&5
13656echo "${ECHO_T}$hard_links" >&6
13657  if test "$hard_links" = no; then
13658    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13659echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13660    need_locks=warn
13661  fi
13662else
13663  need_locks=no
13664fi
13665
13666echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13667echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13668
13669  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13670  case $host_os in
13671  aix4* | aix5*)
13672    # If we're using GNU nm, then we don't want the "-C" option.
13673    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13674    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13675      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'
13676    else
13677      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'
13678    fi
13679    ;;
13680  pw32*)
13681    export_symbols_cmds_CXX="$ltdll_cmds"
13682  ;;
13683  cygwin* | mingw*)
13684    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'
13685  ;;
13686  *)
13687    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13688  ;;
13689  esac
13690
13691echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13692echo "${ECHO_T}$ld_shlibs_CXX" >&6
13693test "$ld_shlibs_CXX" = no && can_build_shared=no
13694
13695#
13696# Do we need to explicitly link libc?
13697#
13698case "x$archive_cmds_need_lc_CXX" in
13699x|xyes)
13700  # Assume -lc should be added
13701  archive_cmds_need_lc_CXX=yes
13702
13703  if test "$enable_shared" = yes && test "$GCC" = yes; then
13704    case $archive_cmds_CXX in
13705    *'~'*)
13706      # FIXME: we may have to deal with multi-command sequences.
13707      ;;
13708    '$CC '*)
13709      # Test whether the compiler implicitly links with -lc since on some
13710      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13711      # to ld, don't add -lc before -lgcc.
13712      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13713echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13714      $rm conftest*
13715      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13716
13717      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718  (eval $ac_compile) 2>&5
13719  ac_status=$?
13720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721  (exit $ac_status); } 2>conftest.err; then
13722        soname=conftest
13723        lib=conftest
13724        libobjs=conftest.$ac_objext
13725        deplibs=
13726        wl=$lt_prog_compiler_wl_CXX
13727	pic_flag=$lt_prog_compiler_pic_CXX
13728        compiler_flags=-v
13729        linker_flags=-v
13730        verstring=
13731        output_objdir=.
13732        libname=conftest
13733        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13734        allow_undefined_flag_CXX=
13735        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13736  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13737  ac_status=$?
13738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739  (exit $ac_status); }
13740        then
13741	  archive_cmds_need_lc_CXX=no
13742        else
13743	  archive_cmds_need_lc_CXX=yes
13744        fi
13745        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13746      else
13747        cat conftest.err 1>&5
13748      fi
13749      $rm conftest*
13750      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13751echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13752      ;;
13753    esac
13754  fi
13755  ;;
13756esac
13757
13758echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13759echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13760library_names_spec=
13761libname_spec='lib$name'
13762soname_spec=
13763shrext_cmds=".so"
13764postinstall_cmds=
13765postuninstall_cmds=
13766finish_cmds=
13767finish_eval=
13768shlibpath_var=
13769shlibpath_overrides_runpath=unknown
13770version_type=none
13771dynamic_linker="$host_os ld.so"
13772sys_lib_dlsearch_path_spec="/lib /usr/lib"
13773if test "$GCC" = yes; then
13774  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13775  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13776    # if the path contains ";" then we assume it to be the separator
13777    # otherwise default to the standard path separator (i.e. ":") - it is
13778    # assumed that no part of a normal pathname contains ";" but that should
13779    # okay in the real world where ";" in dirpaths is itself problematic.
13780    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13781  else
13782    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13783  fi
13784else
13785  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13786fi
13787need_lib_prefix=unknown
13788hardcode_into_libs=no
13789
13790# when you set need_version to no, make sure it does not cause -set_version
13791# flags to be left without arguments
13792need_version=unknown
13793
13794case $host_os in
13795aix3*)
13796  version_type=linux
13797  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13798  shlibpath_var=LIBPATH
13799
13800  # AIX 3 has no versioning support, so we append a major version to the name.
13801  soname_spec='${libname}${release}${shared_ext}$major'
13802  ;;
13803
13804aix4* | aix5*)
13805  version_type=linux
13806  need_lib_prefix=no
13807  need_version=no
13808  hardcode_into_libs=yes
13809  if test "$host_cpu" = ia64; then
13810    # AIX 5 supports IA64
13811    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13812    shlibpath_var=LD_LIBRARY_PATH
13813  else
13814    # With GCC up to 2.95.x, collect2 would create an import file
13815    # for dependence libraries.  The import file would start with
13816    # the line `#! .'.  This would cause the generated library to
13817    # depend on `.', always an invalid library.  This was fixed in
13818    # development snapshots of GCC prior to 3.0.
13819    case $host_os in
13820      aix4 | aix4.[01] | aix4.[01].*)
13821      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13822	   echo ' yes '
13823	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13824	:
13825      else
13826	can_build_shared=no
13827      fi
13828      ;;
13829    esac
13830    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13831    # soname into executable. Probably we can add versioning support to
13832    # collect2, so additional links can be useful in future.
13833    if test "$aix_use_runtimelinking" = yes; then
13834      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13835      # instead of lib<name>.a to let people know that these are not
13836      # typical AIX shared libraries.
13837      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13838    else
13839      # We preserve .a as extension for shared libraries through AIX4.2
13840      # and later when we are not doing run time linking.
13841      library_names_spec='${libname}${release}.a $libname.a'
13842      soname_spec='${libname}${release}${shared_ext}$major'
13843    fi
13844    shlibpath_var=LIBPATH
13845  fi
13846  ;;
13847
13848amigaos*)
13849  library_names_spec='$libname.ixlibrary $libname.a'
13850  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13851  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'
13852  ;;
13853
13854beos*)
13855  library_names_spec='${libname}${shared_ext}'
13856  dynamic_linker="$host_os ld.so"
13857  shlibpath_var=LIBRARY_PATH
13858  ;;
13859
13860bsdi[45]*)
13861  version_type=linux
13862  need_version=no
13863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13864  soname_spec='${libname}${release}${shared_ext}$major'
13865  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13866  shlibpath_var=LD_LIBRARY_PATH
13867  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13868  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13869  # the default ld.so.conf also contains /usr/contrib/lib and
13870  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13871  # libtool to hard-code these into programs
13872  ;;
13873
13874cygwin* | mingw* | pw32*)
13875  version_type=windows
13876  shrext_cmds=".dll"
13877  need_version=no
13878  need_lib_prefix=no
13879
13880  case $GCC,$host_os in
13881  yes,cygwin* | yes,mingw* | yes,pw32*)
13882    library_names_spec='$libname.dll.a'
13883    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13884    postinstall_cmds='base_file=`basename \${file}`~
13885      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13886      dldir=$destdir/`dirname \$dlpath`~
13887      test -d \$dldir || mkdir -p \$dldir~
13888      $install_prog $dir/$dlname \$dldir/$dlname~
13889      chmod a+x \$dldir/$dlname'
13890    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13891      dlpath=$dir/\$dldll~
13892       $rm \$dlpath'
13893    shlibpath_overrides_runpath=yes
13894
13895    case $host_os in
13896    cygwin*)
13897      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13898      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13899      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13900      ;;
13901    mingw*)
13902      # MinGW DLLs use traditional 'lib' prefix
13903      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13904      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13905      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13906        # It is most probably a Windows format PATH printed by
13907        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13908        # path with ; separators, and with drive letters. We can handle the
13909        # drive letters (cygwin fileutils understands them), so leave them,
13910        # especially as we might pass files found there to a mingw objdump,
13911        # which wouldn't understand a cygwinified path. Ahh.
13912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13913      else
13914        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13915      fi
13916      ;;
13917    pw32*)
13918      # pw32 DLLs use 'pw' prefix rather than 'lib'
13919      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13920      ;;
13921    esac
13922    ;;
13923
13924  *)
13925    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13926    ;;
13927  esac
13928  dynamic_linker='Win32 ld.exe'
13929  # FIXME: first we should search . and the directory the executable is in
13930  shlibpath_var=PATH
13931  ;;
13932
13933darwin* | rhapsody*)
13934  dynamic_linker="$host_os dyld"
13935  version_type=darwin
13936  need_lib_prefix=no
13937  need_version=no
13938  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13939  soname_spec='${libname}${release}${major}$shared_ext'
13940  shlibpath_overrides_runpath=yes
13941  shlibpath_var=DYLD_LIBRARY_PATH
13942  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13943  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13944  if test "$GCC" = yes; then
13945    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"`
13946  else
13947    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13948  fi
13949  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13950  ;;
13951
13952dgux*)
13953  version_type=linux
13954  need_lib_prefix=no
13955  need_version=no
13956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13957  soname_spec='${libname}${release}${shared_ext}$major'
13958  shlibpath_var=LD_LIBRARY_PATH
13959  ;;
13960
13961freebsd1*)
13962  dynamic_linker=no
13963  ;;
13964
13965kfreebsd*-gnu)
13966  version_type=linux
13967  need_lib_prefix=no
13968  need_version=no
13969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13970  soname_spec='${libname}${release}${shared_ext}$major'
13971  shlibpath_var=LD_LIBRARY_PATH
13972  shlibpath_overrides_runpath=no
13973  hardcode_into_libs=yes
13974  dynamic_linker='GNU ld.so'
13975  ;;
13976
13977freebsd* | dragonfly*)
13978  # DragonFly does not have aout.  When/if they implement a new
13979  # versioning mechanism, adjust this.
13980  if test -x /usr/bin/objformat; then
13981    objformat=`/usr/bin/objformat`
13982  else
13983    case $host_os in
13984    freebsd[123]*) objformat=aout ;;
13985    *) objformat=elf ;;
13986    esac
13987  fi
13988  version_type=freebsd-$objformat
13989  case $version_type in
13990    freebsd-elf*)
13991      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13992      need_version=no
13993      need_lib_prefix=no
13994      ;;
13995    freebsd-*)
13996      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13997      need_version=yes
13998      ;;
13999  esac
14000  shlibpath_var=LD_LIBRARY_PATH
14001  case $host_os in
14002  freebsd2*)
14003    shlibpath_overrides_runpath=yes
14004    ;;
14005  freebsd3.[01]* | freebsdelf3.[01]*)
14006    shlibpath_overrides_runpath=yes
14007    hardcode_into_libs=yes
14008    ;;
14009  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14010  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14011    shlibpath_overrides_runpath=no
14012    hardcode_into_libs=yes
14013    ;;
14014  freebsd*) # from 4.6 on
14015    shlibpath_overrides_runpath=yes
14016    hardcode_into_libs=yes
14017    ;;
14018  esac
14019  ;;
14020
14021gnu*)
14022  version_type=linux
14023  need_lib_prefix=no
14024  need_version=no
14025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14026  soname_spec='${libname}${release}${shared_ext}$major'
14027  shlibpath_var=LD_LIBRARY_PATH
14028  hardcode_into_libs=yes
14029  ;;
14030
14031hpux9* | hpux10* | hpux11*)
14032  # Give a soname corresponding to the major version so that dld.sl refuses to
14033  # link against other versions.
14034  version_type=sunos
14035  need_lib_prefix=no
14036  need_version=no
14037  case $host_cpu in
14038  ia64*)
14039    shrext_cmds='.so'
14040    hardcode_into_libs=yes
14041    dynamic_linker="$host_os dld.so"
14042    shlibpath_var=LD_LIBRARY_PATH
14043    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14044    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045    soname_spec='${libname}${release}${shared_ext}$major'
14046    if test "X$HPUX_IA64_MODE" = X32; then
14047      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14048    else
14049      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14050    fi
14051    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14052    ;;
14053   hppa*64*)
14054     shrext_cmds='.sl'
14055     hardcode_into_libs=yes
14056     dynamic_linker="$host_os dld.sl"
14057     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060     soname_spec='${libname}${release}${shared_ext}$major'
14061     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14063     ;;
14064   *)
14065    shrext_cmds='.sl'
14066    dynamic_linker="$host_os dld.sl"
14067    shlibpath_var=SHLIB_PATH
14068    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070    soname_spec='${libname}${release}${shared_ext}$major'
14071    ;;
14072  esac
14073  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14074  postinstall_cmds='chmod 555 $lib'
14075  ;;
14076
14077interix3*)
14078  version_type=linux
14079  need_lib_prefix=no
14080  need_version=no
14081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14082  soname_spec='${libname}${release}${shared_ext}$major'
14083  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14084  shlibpath_var=LD_LIBRARY_PATH
14085  shlibpath_overrides_runpath=no
14086  hardcode_into_libs=yes
14087  ;;
14088
14089irix5* | irix6* | nonstopux*)
14090  case $host_os in
14091    nonstopux*) version_type=nonstopux ;;
14092    *)
14093	if test "$lt_cv_prog_gnu_ld" = yes; then
14094		version_type=linux
14095	else
14096		version_type=irix
14097	fi ;;
14098  esac
14099  need_lib_prefix=no
14100  need_version=no
14101  soname_spec='${libname}${release}${shared_ext}$major'
14102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14103  case $host_os in
14104  irix5* | nonstopux*)
14105    libsuff= shlibsuff=
14106    ;;
14107  *)
14108    case $LD in # libtool.m4 will add one of these switches to LD
14109    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14110      libsuff= shlibsuff= libmagic=32-bit;;
14111    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14112      libsuff=32 shlibsuff=N32 libmagic=N32;;
14113    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14114      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14115    *) libsuff= shlibsuff= libmagic=never-match;;
14116    esac
14117    ;;
14118  esac
14119  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14120  shlibpath_overrides_runpath=no
14121  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14122  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14123  hardcode_into_libs=yes
14124  ;;
14125
14126# No shared lib support for Linux oldld, aout, or coff.
14127linux*oldld* | linux*aout* | linux*coff*)
14128  dynamic_linker=no
14129  ;;
14130
14131# This must be Linux ELF.
14132linux*)
14133  version_type=linux
14134  need_lib_prefix=no
14135  need_version=no
14136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137  soname_spec='${libname}${release}${shared_ext}$major'
14138  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14139  shlibpath_var=LD_LIBRARY_PATH
14140  shlibpath_overrides_runpath=no
14141  # This implies no fast_install, which is unacceptable.
14142  # Some rework will be needed to allow for fast_install
14143  # before this can be enabled.
14144  hardcode_into_libs=yes
14145
14146  # Append ld.so.conf contents to the search path
14147  if test -f /etc/ld.so.conf; then
14148    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' ' '`
14149    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14150  fi
14151
14152  # We used to test for /lib/ld.so.1 and disable shared libraries on
14153  # powerpc, because MkLinux only supported shared libraries with the
14154  # GNU dynamic linker.  Since this was broken with cross compilers,
14155  # most powerpc-linux boxes support dynamic linking these days and
14156  # people can always --disable-shared, the test was removed, and we
14157  # assume the GNU/Linux dynamic linker is in use.
14158  dynamic_linker='GNU/Linux ld.so'
14159  ;;
14160
14161knetbsd*-gnu)
14162  version_type=linux
14163  need_lib_prefix=no
14164  need_version=no
14165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14166  soname_spec='${libname}${release}${shared_ext}$major'
14167  shlibpath_var=LD_LIBRARY_PATH
14168  shlibpath_overrides_runpath=no
14169  hardcode_into_libs=yes
14170  dynamic_linker='GNU ld.so'
14171  ;;
14172
14173netbsd*)
14174  version_type=sunos
14175  need_lib_prefix=no
14176  need_version=no
14177  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14179    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14180    dynamic_linker='NetBSD (a.out) ld.so'
14181  else
14182    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14183    soname_spec='${libname}${release}${shared_ext}$major'
14184    dynamic_linker='NetBSD ld.elf_so'
14185  fi
14186  shlibpath_var=LD_LIBRARY_PATH
14187  shlibpath_overrides_runpath=yes
14188  hardcode_into_libs=yes
14189  ;;
14190
14191newsos6)
14192  version_type=linux
14193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194  shlibpath_var=LD_LIBRARY_PATH
14195  shlibpath_overrides_runpath=yes
14196  ;;
14197
14198nto-qnx*)
14199  version_type=linux
14200  need_lib_prefix=no
14201  need_version=no
14202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203  soname_spec='${libname}${release}${shared_ext}$major'
14204  shlibpath_var=LD_LIBRARY_PATH
14205  shlibpath_overrides_runpath=yes
14206  ;;
14207
14208openbsd*)
14209  version_type=sunos
14210  sys_lib_dlsearch_path_spec="/usr/lib"
14211  need_lib_prefix=no
14212  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14213  case $host_os in
14214    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14215    *)                         need_version=no  ;;
14216  esac
14217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14218  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14219  shlibpath_var=LD_LIBRARY_PATH
14220  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14221    case $host_os in
14222      openbsd2.[89] | openbsd2.[89].*)
14223	shlibpath_overrides_runpath=no
14224	;;
14225      *)
14226	shlibpath_overrides_runpath=yes
14227	;;
14228      esac
14229  else
14230    shlibpath_overrides_runpath=yes
14231  fi
14232  ;;
14233
14234os2*)
14235  libname_spec='$name'
14236  shrext_cmds=".dll"
14237  need_lib_prefix=no
14238  library_names_spec='$libname${shared_ext} $libname.a'
14239  dynamic_linker='OS/2 ld.exe'
14240  shlibpath_var=LIBPATH
14241  ;;
14242
14243osf3* | osf4* | osf5*)
14244  version_type=osf
14245  need_lib_prefix=no
14246  need_version=no
14247  soname_spec='${libname}${release}${shared_ext}$major'
14248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249  shlibpath_var=LD_LIBRARY_PATH
14250  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14251  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14252  ;;
14253
14254solaris*)
14255  version_type=linux
14256  need_lib_prefix=no
14257  need_version=no
14258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259  soname_spec='${libname}${release}${shared_ext}$major'
14260  shlibpath_var=LD_LIBRARY_PATH
14261  shlibpath_overrides_runpath=yes
14262  hardcode_into_libs=yes
14263  # ldd complains unless libraries are executable
14264  postinstall_cmds='chmod +x $lib'
14265  ;;
14266
14267sunos4*)
14268  version_type=sunos
14269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14270  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14271  shlibpath_var=LD_LIBRARY_PATH
14272  shlibpath_overrides_runpath=yes
14273  if test "$with_gnu_ld" = yes; then
14274    need_lib_prefix=no
14275  fi
14276  need_version=yes
14277  ;;
14278
14279sysv4 | sysv4.3*)
14280  version_type=linux
14281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14282  soname_spec='${libname}${release}${shared_ext}$major'
14283  shlibpath_var=LD_LIBRARY_PATH
14284  case $host_vendor in
14285    sni)
14286      shlibpath_overrides_runpath=no
14287      need_lib_prefix=no
14288      export_dynamic_flag_spec='${wl}-Blargedynsym'
14289      runpath_var=LD_RUN_PATH
14290      ;;
14291    siemens)
14292      need_lib_prefix=no
14293      ;;
14294    motorola)
14295      need_lib_prefix=no
14296      need_version=no
14297      shlibpath_overrides_runpath=no
14298      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14299      ;;
14300  esac
14301  ;;
14302
14303sysv4*MP*)
14304  if test -d /usr/nec ;then
14305    version_type=linux
14306    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14307    soname_spec='$libname${shared_ext}.$major'
14308    shlibpath_var=LD_LIBRARY_PATH
14309  fi
14310  ;;
14311
14312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14313  version_type=freebsd-elf
14314  need_lib_prefix=no
14315  need_version=no
14316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14317  soname_spec='${libname}${release}${shared_ext}$major'
14318  shlibpath_var=LD_LIBRARY_PATH
14319  hardcode_into_libs=yes
14320  if test "$with_gnu_ld" = yes; then
14321    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14322    shlibpath_overrides_runpath=no
14323  else
14324    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14325    shlibpath_overrides_runpath=yes
14326    case $host_os in
14327      sco3.2v5*)
14328        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14329	;;
14330    esac
14331  fi
14332  sys_lib_dlsearch_path_spec='/usr/lib'
14333  ;;
14334
14335uts4*)
14336  version_type=linux
14337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338  soname_spec='${libname}${release}${shared_ext}$major'
14339  shlibpath_var=LD_LIBRARY_PATH
14340  ;;
14341
14342*)
14343  dynamic_linker=no
14344  ;;
14345esac
14346echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14347echo "${ECHO_T}$dynamic_linker" >&6
14348test "$dynamic_linker" = no && can_build_shared=no
14349
14350variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14351if test "$GCC" = yes; then
14352  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14353fi
14354
14355echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14356echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14357hardcode_action_CXX=
14358if test -n "$hardcode_libdir_flag_spec_CXX" || \
14359   test -n "$runpath_var_CXX" || \
14360   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14361
14362  # We can hardcode non-existant directories.
14363  if test "$hardcode_direct_CXX" != no &&
14364     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14365     # have to relink, otherwise we might link with an installed library
14366     # when we should be linking with a yet-to-be-installed one
14367     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14368     test "$hardcode_minus_L_CXX" != no; then
14369    # Linking always hardcodes the temporary library directory.
14370    hardcode_action_CXX=relink
14371  else
14372    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14373    hardcode_action_CXX=immediate
14374  fi
14375else
14376  # We cannot hardcode anything, or else we can only hardcode existing
14377  # directories.
14378  hardcode_action_CXX=unsupported
14379fi
14380echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14381echo "${ECHO_T}$hardcode_action_CXX" >&6
14382
14383if test "$hardcode_action_CXX" = relink; then
14384  # Fast installation is not supported
14385  enable_fast_install=no
14386elif test "$shlibpath_overrides_runpath" = yes ||
14387     test "$enable_shared" = no; then
14388  # Fast installation is not necessary
14389  enable_fast_install=needless
14390fi
14391
14392
14393# The else clause should only fire when bootstrapping the
14394# libtool distribution, otherwise you forgot to ship ltmain.sh
14395# with your package, and you will get complaints that there are
14396# no rules to generate ltmain.sh.
14397if test -f "$ltmain"; then
14398  # See if we are running on zsh, and set the options which allow our commands through
14399  # without removal of \ escapes.
14400  if test -n "${ZSH_VERSION+set}" ; then
14401    setopt NO_GLOB_SUBST
14402  fi
14403  # Now quote all the things that may contain metacharacters while being
14404  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14405  # variables and quote the copies for generation of the libtool script.
14406  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14407    SED SHELL STRIP \
14408    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14409    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14410    deplibs_check_method reload_flag reload_cmds need_locks \
14411    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14412    lt_cv_sys_global_symbol_to_c_name_address \
14413    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14414    old_postinstall_cmds old_postuninstall_cmds \
14415    compiler_CXX \
14416    CC_CXX \
14417    LD_CXX \
14418    lt_prog_compiler_wl_CXX \
14419    lt_prog_compiler_pic_CXX \
14420    lt_prog_compiler_static_CXX \
14421    lt_prog_compiler_no_builtin_flag_CXX \
14422    export_dynamic_flag_spec_CXX \
14423    thread_safe_flag_spec_CXX \
14424    whole_archive_flag_spec_CXX \
14425    enable_shared_with_static_runtimes_CXX \
14426    old_archive_cmds_CXX \
14427    old_archive_from_new_cmds_CXX \
14428    predep_objects_CXX \
14429    postdep_objects_CXX \
14430    predeps_CXX \
14431    postdeps_CXX \
14432    compiler_lib_search_path_CXX \
14433    archive_cmds_CXX \
14434    archive_expsym_cmds_CXX \
14435    postinstall_cmds_CXX \
14436    postuninstall_cmds_CXX \
14437    old_archive_from_expsyms_cmds_CXX \
14438    allow_undefined_flag_CXX \
14439    no_undefined_flag_CXX \
14440    export_symbols_cmds_CXX \
14441    hardcode_libdir_flag_spec_CXX \
14442    hardcode_libdir_flag_spec_ld_CXX \
14443    hardcode_libdir_separator_CXX \
14444    hardcode_automatic_CXX \
14445    module_cmds_CXX \
14446    module_expsym_cmds_CXX \
14447    lt_cv_prog_compiler_c_o_CXX \
14448    exclude_expsyms_CXX \
14449    include_expsyms_CXX; do
14450
14451    case $var in
14452    old_archive_cmds_CXX | \
14453    old_archive_from_new_cmds_CXX | \
14454    archive_cmds_CXX | \
14455    archive_expsym_cmds_CXX | \
14456    module_cmds_CXX | \
14457    module_expsym_cmds_CXX | \
14458    old_archive_from_expsyms_cmds_CXX | \
14459    export_symbols_cmds_CXX | \
14460    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14461    postinstall_cmds | postuninstall_cmds | \
14462    old_postinstall_cmds | old_postuninstall_cmds | \
14463    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14464      # Double-quote double-evaled strings.
14465      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14466      ;;
14467    *)
14468      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14469      ;;
14470    esac
14471  done
14472
14473  case $lt_echo in
14474  *'\$0 --fallback-echo"')
14475    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14476    ;;
14477  esac
14478
14479cfgfile="$ofile"
14480
14481  cat <<__EOF__ >> "$cfgfile"
14482# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14483
14484# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14485
14486# Shell to use when invoking shell scripts.
14487SHELL=$lt_SHELL
14488
14489# Whether or not to build shared libraries.
14490build_libtool_libs=$enable_shared
14491
14492# Whether or not to build static libraries.
14493build_old_libs=$enable_static
14494
14495# Whether or not to add -lc for building shared libraries.
14496build_libtool_need_lc=$archive_cmds_need_lc_CXX
14497
14498# Whether or not to disallow shared libs when runtime libs are static
14499allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14500
14501# Whether or not to optimize for fast installation.
14502fast_install=$enable_fast_install
14503
14504# The host system.
14505host_alias=$host_alias
14506host=$host
14507host_os=$host_os
14508
14509# The build system.
14510build_alias=$build_alias
14511build=$build
14512build_os=$build_os
14513
14514# An echo program that does not interpret backslashes.
14515echo=$lt_echo
14516
14517# The archiver.
14518AR=$lt_AR
14519AR_FLAGS=$lt_AR_FLAGS
14520
14521# A C compiler.
14522LTCC=$lt_LTCC
14523
14524# LTCC compiler flags.
14525LTCFLAGS=$lt_LTCFLAGS
14526
14527# A language-specific compiler.
14528CC=$lt_compiler_CXX
14529
14530# Is the compiler the GNU C compiler?
14531with_gcc=$GCC_CXX
14532
14533# An ERE matcher.
14534EGREP=$lt_EGREP
14535
14536# The linker used to build libraries.
14537LD=$lt_LD_CXX
14538
14539# Whether we need hard or soft links.
14540LN_S=$lt_LN_S
14541
14542# A BSD-compatible nm program.
14543NM=$lt_NM
14544
14545# A symbol stripping program
14546STRIP=$lt_STRIP
14547
14548# Used to examine libraries when file_magic_cmd begins "file"
14549MAGIC_CMD=$MAGIC_CMD
14550
14551# Used on cygwin: DLL creation program.
14552DLLTOOL="$DLLTOOL"
14553
14554# Used on cygwin: object dumper.
14555OBJDUMP="$OBJDUMP"
14556
14557# Used on cygwin: assembler.
14558AS="$AS"
14559
14560# The name of the directory that contains temporary libtool files.
14561objdir=$objdir
14562
14563# How to create reloadable object files.
14564reload_flag=$lt_reload_flag
14565reload_cmds=$lt_reload_cmds
14566
14567# How to pass a linker flag through the compiler.
14568wl=$lt_lt_prog_compiler_wl_CXX
14569
14570# Object file suffix (normally "o").
14571objext="$ac_objext"
14572
14573# Old archive suffix (normally "a").
14574libext="$libext"
14575
14576# Shared library suffix (normally ".so").
14577shrext_cmds='$shrext_cmds'
14578
14579# Executable file suffix (normally "").
14580exeext="$exeext"
14581
14582# Additional compiler flags for building library objects.
14583pic_flag=$lt_lt_prog_compiler_pic_CXX
14584pic_mode=$pic_mode
14585
14586# What is the maximum length of a command?
14587max_cmd_len=$lt_cv_sys_max_cmd_len
14588
14589# Does compiler simultaneously support -c and -o options?
14590compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14591
14592# Must we lock files when doing compilation?
14593need_locks=$lt_need_locks
14594
14595# Do we need the lib prefix for modules?
14596need_lib_prefix=$need_lib_prefix
14597
14598# Do we need a version for libraries?
14599need_version=$need_version
14600
14601# Whether dlopen is supported.
14602dlopen_support=$enable_dlopen
14603
14604# Whether dlopen of programs is supported.
14605dlopen_self=$enable_dlopen_self
14606
14607# Whether dlopen of statically linked programs is supported.
14608dlopen_self_static=$enable_dlopen_self_static
14609
14610# Compiler flag to prevent dynamic linking.
14611link_static_flag=$lt_lt_prog_compiler_static_CXX
14612
14613# Compiler flag to turn off builtin functions.
14614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14615
14616# Compiler flag to allow reflexive dlopens.
14617export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14618
14619# Compiler flag to generate shared objects directly from archives.
14620whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14621
14622# Compiler flag to generate thread-safe objects.
14623thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14624
14625# Library versioning type.
14626version_type=$version_type
14627
14628# Format of library name prefix.
14629libname_spec=$lt_libname_spec
14630
14631# List of archive names.  First name is the real one, the rest are links.
14632# The last name is the one that the linker finds with -lNAME.
14633library_names_spec=$lt_library_names_spec
14634
14635# The coded name of the library, if different from the real name.
14636soname_spec=$lt_soname_spec
14637
14638# Commands used to build and install an old-style archive.
14639RANLIB=$lt_RANLIB
14640old_archive_cmds=$lt_old_archive_cmds_CXX
14641old_postinstall_cmds=$lt_old_postinstall_cmds
14642old_postuninstall_cmds=$lt_old_postuninstall_cmds
14643
14644# Create an old-style archive from a shared archive.
14645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14646
14647# Create a temporary old-style archive to link instead of a shared archive.
14648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14649
14650# Commands used to build and install a shared archive.
14651archive_cmds=$lt_archive_cmds_CXX
14652archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14653postinstall_cmds=$lt_postinstall_cmds
14654postuninstall_cmds=$lt_postuninstall_cmds
14655
14656# Commands used to build a loadable module (assumed same as above if empty)
14657module_cmds=$lt_module_cmds_CXX
14658module_expsym_cmds=$lt_module_expsym_cmds_CXX
14659
14660# Commands to strip libraries.
14661old_striplib=$lt_old_striplib
14662striplib=$lt_striplib
14663
14664# Dependencies to place before the objects being linked to create a
14665# shared library.
14666predep_objects=$lt_predep_objects_CXX
14667
14668# Dependencies to place after the objects being linked to create a
14669# shared library.
14670postdep_objects=$lt_postdep_objects_CXX
14671
14672# Dependencies to place before the objects being linked to create a
14673# shared library.
14674predeps=$lt_predeps_CXX
14675
14676# Dependencies to place after the objects being linked to create a
14677# shared library.
14678postdeps=$lt_postdeps_CXX
14679
14680# The library search path used internally by the compiler when linking
14681# a shared library.
14682compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14683
14684# Method to check whether dependent libraries are shared objects.
14685deplibs_check_method=$lt_deplibs_check_method
14686
14687# Command to use when deplibs_check_method == file_magic.
14688file_magic_cmd=$lt_file_magic_cmd
14689
14690# Flag that allows shared libraries with undefined symbols to be built.
14691allow_undefined_flag=$lt_allow_undefined_flag_CXX
14692
14693# Flag that forces no undefined symbols.
14694no_undefined_flag=$lt_no_undefined_flag_CXX
14695
14696# Commands used to finish a libtool library installation in a directory.
14697finish_cmds=$lt_finish_cmds
14698
14699# Same as above, but a single script fragment to be evaled but not shown.
14700finish_eval=$lt_finish_eval
14701
14702# Take the output of nm and produce a listing of raw symbols and C names.
14703global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14704
14705# Transform the output of nm in a proper C declaration
14706global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14707
14708# Transform the output of nm in a C name address pair
14709global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14710
14711# This is the shared library runtime path variable.
14712runpath_var=$runpath_var
14713
14714# This is the shared library path variable.
14715shlibpath_var=$shlibpath_var
14716
14717# Is shlibpath searched before the hard-coded library search path?
14718shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14719
14720# How to hardcode a shared library path into an executable.
14721hardcode_action=$hardcode_action_CXX
14722
14723# Whether we should hardcode library paths into libraries.
14724hardcode_into_libs=$hardcode_into_libs
14725
14726# Flag to hardcode \$libdir into a binary during linking.
14727# This must work even if \$libdir does not exist.
14728hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14729
14730# If ld is used when linking, flag to hardcode \$libdir into
14731# a binary during linking. This must work even if \$libdir does
14732# not exist.
14733hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14734
14735# Whether we need a single -rpath flag with a separated argument.
14736hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14737
14738# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14739# resulting binary.
14740hardcode_direct=$hardcode_direct_CXX
14741
14742# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14743# resulting binary.
14744hardcode_minus_L=$hardcode_minus_L_CXX
14745
14746# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14747# the resulting binary.
14748hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14749
14750# Set to yes if building a shared library automatically hardcodes DIR into the library
14751# and all subsequent libraries and executables linked against it.
14752hardcode_automatic=$hardcode_automatic_CXX
14753
14754# Variables whose values should be saved in libtool wrapper scripts and
14755# restored at relink time.
14756variables_saved_for_relink="$variables_saved_for_relink"
14757
14758# Whether libtool must link a program against all its dependency libraries.
14759link_all_deplibs=$link_all_deplibs_CXX
14760
14761# Compile-time system search path for libraries
14762sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14763
14764# Run-time system search path for libraries
14765sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14766
14767# Fix the shell variable \$srcfile for the compiler.
14768fix_srcfile_path="$fix_srcfile_path_CXX"
14769
14770# Set to yes if exported symbols are required.
14771always_export_symbols=$always_export_symbols_CXX
14772
14773# The commands to list exported symbols.
14774export_symbols_cmds=$lt_export_symbols_cmds_CXX
14775
14776# The commands to extract the exported symbol list from a shared archive.
14777extract_expsyms_cmds=$lt_extract_expsyms_cmds
14778
14779# Symbols that should not be listed in the preloaded symbols.
14780exclude_expsyms=$lt_exclude_expsyms_CXX
14781
14782# Symbols that must always be exported.
14783include_expsyms=$lt_include_expsyms_CXX
14784
14785# ### END LIBTOOL TAG CONFIG: $tagname
14786
14787__EOF__
14788
14789
14790else
14791  # If there is no Makefile yet, we rely on a make rule to execute
14792  # `config.status --recheck' to rerun these tests and create the
14793  # libtool script then.
14794  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14795  if test -f "$ltmain_in"; then
14796    test -f Makefile && make "$ltmain"
14797  fi
14798fi
14799
14800
14801ac_ext=c
14802ac_cpp='$CPP $CPPFLAGS'
14803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805ac_compiler_gnu=$ac_cv_c_compiler_gnu
14806
14807CC=$lt_save_CC
14808LDCXX=$LD
14809LD=$lt_save_LD
14810GCC=$lt_save_GCC
14811with_gnu_ldcxx=$with_gnu_ld
14812with_gnu_ld=$lt_save_with_gnu_ld
14813lt_cv_path_LDCXX=$lt_cv_path_LD
14814lt_cv_path_LD=$lt_save_path_LD
14815lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14816lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14817
14818	else
14819	  tagname=""
14820	fi
14821	;;
14822
14823      F77)
14824	if test -n "$F77" && test "X$F77" != "Xno"; then
14825
14826ac_ext=f
14827ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14828ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14829ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14830
14831
14832archive_cmds_need_lc_F77=no
14833allow_undefined_flag_F77=
14834always_export_symbols_F77=no
14835archive_expsym_cmds_F77=
14836export_dynamic_flag_spec_F77=
14837hardcode_direct_F77=no
14838hardcode_libdir_flag_spec_F77=
14839hardcode_libdir_flag_spec_ld_F77=
14840hardcode_libdir_separator_F77=
14841hardcode_minus_L_F77=no
14842hardcode_automatic_F77=no
14843module_cmds_F77=
14844module_expsym_cmds_F77=
14845link_all_deplibs_F77=unknown
14846old_archive_cmds_F77=$old_archive_cmds
14847no_undefined_flag_F77=
14848whole_archive_flag_spec_F77=
14849enable_shared_with_static_runtimes_F77=no
14850
14851# Source file extension for f77 test sources.
14852ac_ext=f
14853
14854# Object file extension for compiled f77 test sources.
14855objext=o
14856objext_F77=$objext
14857
14858# Code to be used in simple compile tests
14859lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14860
14861# Code to be used in simple link tests
14862lt_simple_link_test_code="      program t\n      end\n"
14863
14864# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14865
14866# If no C compiler was specified, use CC.
14867LTCC=${LTCC-"$CC"}
14868
14869# If no C compiler flags were specified, use CFLAGS.
14870LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14871
14872# Allow CC to be a program name with arguments.
14873compiler=$CC
14874
14875
14876# save warnings/boilerplate of simple test code
14877ac_outfile=conftest.$ac_objext
14878printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14879eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14880_lt_compiler_boilerplate=`cat conftest.err`
14881$rm conftest*
14882
14883ac_outfile=conftest.$ac_objext
14884printf "$lt_simple_link_test_code" >conftest.$ac_ext
14885eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14886_lt_linker_boilerplate=`cat conftest.err`
14887$rm conftest*
14888
14889
14890# Allow CC to be a program name with arguments.
14891lt_save_CC="$CC"
14892CC=${F77-"f77"}
14893compiler=$CC
14894compiler_F77=$CC
14895for cc_temp in $compiler""; do
14896  case $cc_temp in
14897    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14898    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14899    \-*) ;;
14900    *) break;;
14901  esac
14902done
14903cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14904
14905
14906echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14907echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14908echo "$as_me:$LINENO: result: $can_build_shared" >&5
14909echo "${ECHO_T}$can_build_shared" >&6
14910
14911echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14912echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14913test "$can_build_shared" = "no" && enable_shared=no
14914
14915# On AIX, shared libraries and static libraries use the same namespace, and
14916# are all built from PIC.
14917case $host_os in
14918aix3*)
14919  test "$enable_shared" = yes && enable_static=no
14920  if test -n "$RANLIB"; then
14921    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14922    postinstall_cmds='$RANLIB $lib'
14923  fi
14924  ;;
14925aix4* | aix5*)
14926  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14927    test "$enable_shared" = yes && enable_static=no
14928  fi
14929  ;;
14930esac
14931echo "$as_me:$LINENO: result: $enable_shared" >&5
14932echo "${ECHO_T}$enable_shared" >&6
14933
14934echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14935echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14936# Make sure either enable_shared or enable_static is yes.
14937test "$enable_shared" = yes || enable_static=yes
14938echo "$as_me:$LINENO: result: $enable_static" >&5
14939echo "${ECHO_T}$enable_static" >&6
14940
14941GCC_F77="$G77"
14942LD_F77="$LD"
14943
14944lt_prog_compiler_wl_F77=
14945lt_prog_compiler_pic_F77=
14946lt_prog_compiler_static_F77=
14947
14948echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14949echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14950
14951  if test "$GCC" = yes; then
14952    lt_prog_compiler_wl_F77='-Wl,'
14953    lt_prog_compiler_static_F77='-static'
14954
14955    case $host_os in
14956      aix*)
14957      # All AIX code is PIC.
14958      if test "$host_cpu" = ia64; then
14959	# AIX 5 now supports IA64 processor
14960	lt_prog_compiler_static_F77='-Bstatic'
14961      fi
14962      ;;
14963
14964    amigaos*)
14965      # FIXME: we need at least 68020 code to build shared libraries, but
14966      # adding the `-m68020' flag to GCC prevents building anything better,
14967      # like `-m68040'.
14968      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14969      ;;
14970
14971    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14972      # PIC is the default for these OSes.
14973      ;;
14974
14975    mingw* | pw32* | os2*)
14976      # This hack is so that the source file can tell whether it is being
14977      # built for inclusion in a dll (and should export symbols for example).
14978      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14979      ;;
14980
14981    darwin* | rhapsody*)
14982      # PIC is the default on this platform
14983      # Common symbols not allowed in MH_DYLIB files
14984      lt_prog_compiler_pic_F77='-fno-common'
14985      ;;
14986
14987    interix3*)
14988      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14989      # Instead, we relocate shared libraries at runtime.
14990      ;;
14991
14992    msdosdjgpp*)
14993      # Just because we use GCC doesn't mean we suddenly get shared libraries
14994      # on systems that don't support them.
14995      lt_prog_compiler_can_build_shared_F77=no
14996      enable_shared=no
14997      ;;
14998
14999    sysv4*MP*)
15000      if test -d /usr/nec; then
15001	lt_prog_compiler_pic_F77=-Kconform_pic
15002      fi
15003      ;;
15004
15005    hpux*)
15006      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15007      # not for PA HP-UX.
15008      case $host_cpu in
15009      hppa*64*|ia64*)
15010	# +Z the default
15011	;;
15012      *)
15013	lt_prog_compiler_pic_F77='-fPIC'
15014	;;
15015      esac
15016      ;;
15017
15018    *)
15019      lt_prog_compiler_pic_F77='-fPIC'
15020      ;;
15021    esac
15022  else
15023    # PORTME Check for flag to pass linker flags through the system compiler.
15024    case $host_os in
15025    aix*)
15026      lt_prog_compiler_wl_F77='-Wl,'
15027      if test "$host_cpu" = ia64; then
15028	# AIX 5 now supports IA64 processor
15029	lt_prog_compiler_static_F77='-Bstatic'
15030      else
15031	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15032      fi
15033      ;;
15034      darwin*)
15035        # PIC is the default on this platform
15036        # Common symbols not allowed in MH_DYLIB files
15037       case $cc_basename in
15038         xlc*)
15039         lt_prog_compiler_pic_F77='-qnocommon'
15040         lt_prog_compiler_wl_F77='-Wl,'
15041         ;;
15042       esac
15043       ;;
15044
15045    mingw* | pw32* | os2*)
15046      # This hack is so that the source file can tell whether it is being
15047      # built for inclusion in a dll (and should export symbols for example).
15048      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15049      ;;
15050
15051    hpux9* | hpux10* | hpux11*)
15052      lt_prog_compiler_wl_F77='-Wl,'
15053      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15054      # not for PA HP-UX.
15055      case $host_cpu in
15056      hppa*64*|ia64*)
15057	# +Z the default
15058	;;
15059      *)
15060	lt_prog_compiler_pic_F77='+Z'
15061	;;
15062      esac
15063      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15064      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15065      ;;
15066
15067    irix5* | irix6* | nonstopux*)
15068      lt_prog_compiler_wl_F77='-Wl,'
15069      # PIC (with -KPIC) is the default.
15070      lt_prog_compiler_static_F77='-non_shared'
15071      ;;
15072
15073    newsos6)
15074      lt_prog_compiler_pic_F77='-KPIC'
15075      lt_prog_compiler_static_F77='-Bstatic'
15076      ;;
15077
15078    linux*)
15079      case $cc_basename in
15080      icc* | ecc*)
15081	lt_prog_compiler_wl_F77='-Wl,'
15082	lt_prog_compiler_pic_F77='-KPIC'
15083	lt_prog_compiler_static_F77='-static'
15084        ;;
15085      pgcc* | pgf77* | pgf90* | pgf95*)
15086        # Portland Group compilers (*not* the Pentium gcc compiler,
15087	# which looks to be a dead project)
15088	lt_prog_compiler_wl_F77='-Wl,'
15089	lt_prog_compiler_pic_F77='-fpic'
15090	lt_prog_compiler_static_F77='-Bstatic'
15091        ;;
15092      ccc*)
15093        lt_prog_compiler_wl_F77='-Wl,'
15094        # All Alpha code is PIC.
15095        lt_prog_compiler_static_F77='-non_shared'
15096        ;;
15097      esac
15098      ;;
15099
15100    osf3* | osf4* | osf5*)
15101      lt_prog_compiler_wl_F77='-Wl,'
15102      # All OSF/1 code is PIC.
15103      lt_prog_compiler_static_F77='-non_shared'
15104      ;;
15105
15106    solaris*)
15107      lt_prog_compiler_pic_F77='-KPIC'
15108      lt_prog_compiler_static_F77='-Bstatic'
15109      case $cc_basename in
15110      f77* | f90* | f95*)
15111	lt_prog_compiler_wl_F77='-Qoption ld ';;
15112      *)
15113	lt_prog_compiler_wl_F77='-Wl,';;
15114      esac
15115      ;;
15116
15117    sunos4*)
15118      lt_prog_compiler_wl_F77='-Qoption ld '
15119      lt_prog_compiler_pic_F77='-PIC'
15120      lt_prog_compiler_static_F77='-Bstatic'
15121      ;;
15122
15123    sysv4 | sysv4.2uw2* | sysv4.3*)
15124      lt_prog_compiler_wl_F77='-Wl,'
15125      lt_prog_compiler_pic_F77='-KPIC'
15126      lt_prog_compiler_static_F77='-Bstatic'
15127      ;;
15128
15129    sysv4*MP*)
15130      if test -d /usr/nec ;then
15131	lt_prog_compiler_pic_F77='-Kconform_pic'
15132	lt_prog_compiler_static_F77='-Bstatic'
15133      fi
15134      ;;
15135
15136    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15137      lt_prog_compiler_wl_F77='-Wl,'
15138      lt_prog_compiler_pic_F77='-KPIC'
15139      lt_prog_compiler_static_F77='-Bstatic'
15140      ;;
15141
15142    unicos*)
15143      lt_prog_compiler_wl_F77='-Wl,'
15144      lt_prog_compiler_can_build_shared_F77=no
15145      ;;
15146
15147    uts4*)
15148      lt_prog_compiler_pic_F77='-pic'
15149      lt_prog_compiler_static_F77='-Bstatic'
15150      ;;
15151
15152    *)
15153      lt_prog_compiler_can_build_shared_F77=no
15154      ;;
15155    esac
15156  fi
15157
15158echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15159echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15160
15161#
15162# Check to make sure the PIC flag actually works.
15163#
15164if test -n "$lt_prog_compiler_pic_F77"; then
15165
15166echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15167echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15168if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15169  echo $ECHO_N "(cached) $ECHO_C" >&6
15170else
15171  lt_prog_compiler_pic_works_F77=no
15172  ac_outfile=conftest.$ac_objext
15173   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15174   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15175   # Insert the option either (1) after the last *FLAGS variable, or
15176   # (2) before a word containing "conftest.", or (3) at the end.
15177   # Note that $ac_compile itself does not contain backslashes and begins
15178   # with a dollar sign (not a hyphen), so the echo should work correctly.
15179   # The option is referenced via a variable to avoid confusing sed.
15180   lt_compile=`echo "$ac_compile" | $SED \
15181   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15182   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15183   -e 's:$: $lt_compiler_flag:'`
15184   (eval echo "\"\$as_me:15184: $lt_compile\"" >&5)
15185   (eval "$lt_compile" 2>conftest.err)
15186   ac_status=$?
15187   cat conftest.err >&5
15188   echo "$as_me:15188: \$? = $ac_status" >&5
15189   if (exit $ac_status) && test -s "$ac_outfile"; then
15190     # The compiler can only warn and ignore the option if not recognized
15191     # So say no if there are warnings other than the usual output.
15192     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15193     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15194     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15195       lt_prog_compiler_pic_works_F77=yes
15196     fi
15197   fi
15198   $rm conftest*
15199
15200fi
15201echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15202echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15203
15204if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15205    case $lt_prog_compiler_pic_F77 in
15206     "" | " "*) ;;
15207     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15208     esac
15209else
15210    lt_prog_compiler_pic_F77=
15211     lt_prog_compiler_can_build_shared_F77=no
15212fi
15213
15214fi
15215case $host_os in
15216  # For platforms which do not support PIC, -DPIC is meaningless:
15217  *djgpp*)
15218    lt_prog_compiler_pic_F77=
15219    ;;
15220  *)
15221    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15222    ;;
15223esac
15224
15225#
15226# Check to make sure the static flag actually works.
15227#
15228wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15229echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15230echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15231if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15232  echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
15234  lt_prog_compiler_static_works_F77=no
15235   save_LDFLAGS="$LDFLAGS"
15236   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15237   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15238   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15239     # The linker can only warn and ignore the option if not recognized
15240     # So say no if there are warnings
15241     if test -s conftest.err; then
15242       # Append any errors to the config.log.
15243       cat conftest.err 1>&5
15244       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15245       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15246       if diff conftest.exp conftest.er2 >/dev/null; then
15247         lt_prog_compiler_static_works_F77=yes
15248       fi
15249     else
15250       lt_prog_compiler_static_works_F77=yes
15251     fi
15252   fi
15253   $rm conftest*
15254   LDFLAGS="$save_LDFLAGS"
15255
15256fi
15257echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15258echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15259
15260if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15261    :
15262else
15263    lt_prog_compiler_static_F77=
15264fi
15265
15266
15267echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15268echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15269if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15270  echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272  lt_cv_prog_compiler_c_o_F77=no
15273   $rm -r conftest 2>/dev/null
15274   mkdir conftest
15275   cd conftest
15276   mkdir out
15277   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15278
15279   lt_compiler_flag="-o out/conftest2.$ac_objext"
15280   # Insert the option either (1) after the last *FLAGS variable, or
15281   # (2) before a word containing "conftest.", or (3) at the end.
15282   # Note that $ac_compile itself does not contain backslashes and begins
15283   # with a dollar sign (not a hyphen), so the echo should work correctly.
15284   lt_compile=`echo "$ac_compile" | $SED \
15285   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15286   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15287   -e 's:$: $lt_compiler_flag:'`
15288   (eval echo "\"\$as_me:15288: $lt_compile\"" >&5)
15289   (eval "$lt_compile" 2>out/conftest.err)
15290   ac_status=$?
15291   cat out/conftest.err >&5
15292   echo "$as_me:15292: \$? = $ac_status" >&5
15293   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15294   then
15295     # The compiler can only warn and ignore the option if not recognized
15296     # So say no if there are warnings
15297     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15298     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15299     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15300       lt_cv_prog_compiler_c_o_F77=yes
15301     fi
15302   fi
15303   chmod u+w . 2>&5
15304   $rm conftest*
15305   # SGI C++ compiler will create directory out/ii_files/ for
15306   # template instantiation
15307   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15308   $rm out/* && rmdir out
15309   cd ..
15310   rmdir conftest
15311   $rm conftest*
15312
15313fi
15314echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15315echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15316
15317
15318hard_links="nottested"
15319if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15320  # do not overwrite the value of need_locks provided by the user
15321  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15322echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15323  hard_links=yes
15324  $rm conftest*
15325  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15326  touch conftest.a
15327  ln conftest.a conftest.b 2>&5 || hard_links=no
15328  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15329  echo "$as_me:$LINENO: result: $hard_links" >&5
15330echo "${ECHO_T}$hard_links" >&6
15331  if test "$hard_links" = no; then
15332    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15333echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15334    need_locks=warn
15335  fi
15336else
15337  need_locks=no
15338fi
15339
15340echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15341echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15342
15343  runpath_var=
15344  allow_undefined_flag_F77=
15345  enable_shared_with_static_runtimes_F77=no
15346  archive_cmds_F77=
15347  archive_expsym_cmds_F77=
15348  old_archive_From_new_cmds_F77=
15349  old_archive_from_expsyms_cmds_F77=
15350  export_dynamic_flag_spec_F77=
15351  whole_archive_flag_spec_F77=
15352  thread_safe_flag_spec_F77=
15353  hardcode_libdir_flag_spec_F77=
15354  hardcode_libdir_flag_spec_ld_F77=
15355  hardcode_libdir_separator_F77=
15356  hardcode_direct_F77=no
15357  hardcode_minus_L_F77=no
15358  hardcode_shlibpath_var_F77=unsupported
15359  link_all_deplibs_F77=unknown
15360  hardcode_automatic_F77=no
15361  module_cmds_F77=
15362  module_expsym_cmds_F77=
15363  always_export_symbols_F77=no
15364  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15365  # include_expsyms should be a list of space-separated symbols to be *always*
15366  # included in the symbol list
15367  include_expsyms_F77=
15368  # exclude_expsyms can be an extended regexp of symbols to exclude
15369  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15370  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15371  # as well as any symbol that contains `d'.
15372  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15373  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15374  # platforms (ab)use it in PIC code, but their linkers get confused if
15375  # the symbol is explicitly referenced.  Since portable code cannot
15376  # rely on this symbol name, it's probably fine to never include it in
15377  # preloaded symbol tables.
15378  extract_expsyms_cmds=
15379  # Just being paranoid about ensuring that cc_basename is set.
15380  for cc_temp in $compiler""; do
15381  case $cc_temp in
15382    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15383    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15384    \-*) ;;
15385    *) break;;
15386  esac
15387done
15388cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15389
15390  case $host_os in
15391  cygwin* | mingw* | pw32*)
15392    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15393    # When not using gcc, we currently assume that we are using
15394    # Microsoft Visual C++.
15395    if test "$GCC" != yes; then
15396      with_gnu_ld=no
15397    fi
15398    ;;
15399  interix*)
15400    # we just hope/assume this is gcc and not c89 (= MSVC++)
15401    with_gnu_ld=yes
15402    ;;
15403  openbsd*)
15404    with_gnu_ld=no
15405    ;;
15406  esac
15407
15408  ld_shlibs_F77=yes
15409  if test "$with_gnu_ld" = yes; then
15410    # If archive_cmds runs LD, not CC, wlarc should be empty
15411    wlarc='${wl}'
15412
15413    # Set some defaults for GNU ld with shared library support. These
15414    # are reset later if shared libraries are not supported. Putting them
15415    # here allows them to be overridden if necessary.
15416    runpath_var=LD_RUN_PATH
15417    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15418    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15419    # ancient GNU ld didn't support --whole-archive et. al.
15420    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15421	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15422      else
15423  	whole_archive_flag_spec_F77=
15424    fi
15425    supports_anon_versioning=no
15426    case `$LD -v 2>/dev/null` in
15427      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15428      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15429      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15430      *\ 2.11.*) ;; # other 2.11 versions
15431      *) supports_anon_versioning=yes ;;
15432    esac
15433
15434    # See if GNU ld supports shared libraries.
15435    case $host_os in
15436    aix3* | aix4* | aix5*)
15437      # On AIX/PPC, the GNU linker is very broken
15438      if test "$host_cpu" != ia64; then
15439	ld_shlibs_F77=no
15440	cat <<EOF 1>&2
15441
15442*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15443*** to be unable to reliably create shared libraries on AIX.
15444*** Therefore, libtool is disabling shared libraries support.  If you
15445*** really care for shared libraries, you may want to modify your PATH
15446*** so that a non-GNU linker is found, and then restart.
15447
15448EOF
15449      fi
15450      ;;
15451
15452    amigaos*)
15453      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)'
15454      hardcode_libdir_flag_spec_F77='-L$libdir'
15455      hardcode_minus_L_F77=yes
15456
15457      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15458      # that the semantics of dynamic libraries on AmigaOS, at least up
15459      # to version 4, is to share data among multiple programs linked
15460      # with the same dynamic library.  Since this doesn't match the
15461      # behavior of shared libraries on other platforms, we can't use
15462      # them.
15463      ld_shlibs_F77=no
15464      ;;
15465
15466    beos*)
15467      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15468	allow_undefined_flag_F77=unsupported
15469	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15470	# support --undefined.  This deserves some investigation.  FIXME
15471	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472      else
15473	ld_shlibs_F77=no
15474      fi
15475      ;;
15476
15477    cygwin* | mingw* | pw32*)
15478      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15479      # as there is no search path for DLLs.
15480      hardcode_libdir_flag_spec_F77='-L$libdir'
15481      allow_undefined_flag_F77=unsupported
15482      always_export_symbols_F77=no
15483      enable_shared_with_static_runtimes_F77=yes
15484      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15485
15486      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15487        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15488	# If the export-symbols file already is a .def file (1st line
15489	# is EXPORTS), use it as is; otherwise, prepend...
15490	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15491	  cp $export_symbols $output_objdir/$soname.def;
15492	else
15493	  echo EXPORTS > $output_objdir/$soname.def;
15494	  cat $export_symbols >> $output_objdir/$soname.def;
15495	fi~
15496	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15497      else
15498	ld_shlibs_F77=no
15499      fi
15500      ;;
15501
15502    interix3*)
15503      hardcode_direct_F77=no
15504      hardcode_shlibpath_var_F77=no
15505      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15506      export_dynamic_flag_spec_F77='${wl}-E'
15507      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15508      # Instead, shared libraries are loaded at an image base (0x10000000 by
15509      # default) and relocated if they conflict, which is a slow very memory
15510      # consuming and fragmenting process.  To avoid this, we pick a random,
15511      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15512      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15513      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'
15514      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'
15515      ;;
15516
15517    linux*)
15518      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15519	tmp_addflag=
15520	case $cc_basename,$host_cpu in
15521	pgcc*)				# Portland Group C compiler
15522	  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'
15523	  tmp_addflag=' $pic_flag'
15524	  ;;
15525	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15526	  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'
15527	  tmp_addflag=' $pic_flag -Mnomain' ;;
15528	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15529	  tmp_addflag=' -i_dynamic' ;;
15530	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15531	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15532	ifc* | ifort*)			# Intel Fortran compiler
15533	  tmp_addflag=' -nofor_main' ;;
15534	esac
15535	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15536
15537	if test $supports_anon_versioning = yes; then
15538	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15539  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15540  $echo "local: *; };" >> $output_objdir/$libname.ver~
15541	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15542	fi
15543      else
15544	ld_shlibs_F77=no
15545      fi
15546      ;;
15547
15548    netbsd*)
15549      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15550	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15551	wlarc=
15552      else
15553	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15554	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15555      fi
15556      ;;
15557
15558    solaris*)
15559      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15560	ld_shlibs_F77=no
15561	cat <<EOF 1>&2
15562
15563*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15564*** create shared libraries on Solaris systems.  Therefore, libtool
15565*** is disabling shared libraries support.  We urge you to upgrade GNU
15566*** binutils to release 2.9.1 or newer.  Another option is to modify
15567*** your PATH or compiler configuration so that the native linker is
15568*** used, and then restart.
15569
15570EOF
15571      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15574      else
15575	ld_shlibs_F77=no
15576      fi
15577      ;;
15578
15579    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15580      case `$LD -v 2>&1` in
15581        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15582	ld_shlibs_F77=no
15583	cat <<_LT_EOF 1>&2
15584
15585*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15586*** reliably create shared libraries on SCO systems.  Therefore, libtool
15587*** is disabling shared libraries support.  We urge you to upgrade GNU
15588*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15589*** your PATH or compiler configuration so that the native linker is
15590*** used, and then restart.
15591
15592_LT_EOF
15593	;;
15594	*)
15595	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15596	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15597	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15598	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15599	  else
15600	    ld_shlibs_F77=no
15601	  fi
15602	;;
15603      esac
15604      ;;
15605
15606    sunos4*)
15607      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15608      wlarc=
15609      hardcode_direct_F77=yes
15610      hardcode_shlibpath_var_F77=no
15611      ;;
15612
15613    *)
15614      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15615	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15617      else
15618	ld_shlibs_F77=no
15619      fi
15620      ;;
15621    esac
15622
15623    if test "$ld_shlibs_F77" = no; then
15624      runpath_var=
15625      hardcode_libdir_flag_spec_F77=
15626      export_dynamic_flag_spec_F77=
15627      whole_archive_flag_spec_F77=
15628    fi
15629  else
15630    # PORTME fill in a description of your system's linker (not GNU ld)
15631    case $host_os in
15632    aix3*)
15633      allow_undefined_flag_F77=unsupported
15634      always_export_symbols_F77=yes
15635      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'
15636      # Note: this linker hardcodes the directories in LIBPATH if there
15637      # are no directories specified by -L.
15638      hardcode_minus_L_F77=yes
15639      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15640	# Neither direct hardcoding nor static linking is supported with a
15641	# broken collect2.
15642	hardcode_direct_F77=unsupported
15643      fi
15644      ;;
15645
15646    aix4* | aix5*)
15647      if test "$host_cpu" = ia64; then
15648	# On IA64, the linker does run time linking by default, so we don't
15649	# have to do anything special.
15650	aix_use_runtimelinking=no
15651	exp_sym_flag='-Bexport'
15652	no_entry_flag=""
15653      else
15654	# If we're using GNU nm, then we don't want the "-C" option.
15655	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15656	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15657	  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'
15658	else
15659	  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'
15660	fi
15661	aix_use_runtimelinking=no
15662
15663	# Test if we are trying to use run time linking or normal
15664	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15665	# need to do runtime linking.
15666	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15667	  for ld_flag in $LDFLAGS; do
15668  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15669  	    aix_use_runtimelinking=yes
15670  	    break
15671  	  fi
15672	  done
15673	  ;;
15674	esac
15675
15676	exp_sym_flag='-bexport'
15677	no_entry_flag='-bnoentry'
15678      fi
15679
15680      # When large executables or shared objects are built, AIX ld can
15681      # have problems creating the table of contents.  If linking a library
15682      # or program results in "error TOC overflow" add -mminimal-toc to
15683      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15684      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15685
15686      archive_cmds_F77=''
15687      hardcode_direct_F77=yes
15688      hardcode_libdir_separator_F77=':'
15689      link_all_deplibs_F77=yes
15690
15691      if test "$GCC" = yes; then
15692	case $host_os in aix4.[012]|aix4.[012].*)
15693	# We only want to do this on AIX 4.2 and lower, the check
15694	# below for broken collect2 doesn't work under 4.3+
15695	  collect2name=`${CC} -print-prog-name=collect2`
15696	  if test -f "$collect2name" && \
15697  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15698	  then
15699  	  # We have reworked collect2
15700  	  hardcode_direct_F77=yes
15701	  else
15702  	  # We have old collect2
15703  	  hardcode_direct_F77=unsupported
15704  	  # It fails to find uninstalled libraries when the uninstalled
15705  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15706  	  # to unsupported forces relinking
15707  	  hardcode_minus_L_F77=yes
15708  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15709  	  hardcode_libdir_separator_F77=
15710	  fi
15711	  ;;
15712	esac
15713	shared_flag='-shared'
15714	if test "$aix_use_runtimelinking" = yes; then
15715	  shared_flag="$shared_flag "'${wl}-G'
15716	fi
15717      else
15718	# not using gcc
15719	if test "$host_cpu" = ia64; then
15720  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15721  	# chokes on -Wl,-G. The following line is correct:
15722	  shared_flag='-G'
15723	else
15724	  if test "$aix_use_runtimelinking" = yes; then
15725	    shared_flag='${wl}-G'
15726	  else
15727	    shared_flag='${wl}-bM:SRE'
15728	  fi
15729	fi
15730      fi
15731
15732      # It seems that -bexpall does not export symbols beginning with
15733      # underscore (_), so it is better to generate a list of symbols to export.
15734      always_export_symbols_F77=yes
15735      if test "$aix_use_runtimelinking" = yes; then
15736	# Warning - without using the other runtime loading flags (-brtl),
15737	# -berok will link without error, but may produce a broken library.
15738	allow_undefined_flag_F77='-berok'
15739       # Determine the default libpath from the value encoded in an empty executable.
15740       cat >conftest.$ac_ext <<_ACEOF
15741      program main
15742
15743      end
15744_ACEOF
15745rm -f conftest.$ac_objext conftest$ac_exeext
15746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747  (eval $ac_link) 2>conftest.er1
15748  ac_status=$?
15749  grep -v '^ *+' conftest.er1 >conftest.err
15750  rm -f conftest.er1
15751  cat conftest.err >&5
15752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753  (exit $ac_status); } &&
15754	 { ac_try='test -z "$ac_f77_werror_flag"
15755			 || test ! -s conftest.err'
15756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757  (eval $ac_try) 2>&5
15758  ac_status=$?
15759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760  (exit $ac_status); }; } &&
15761	 { ac_try='test -s conftest$ac_exeext'
15762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763  (eval $ac_try) 2>&5
15764  ac_status=$?
15765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766  (exit $ac_status); }; }; then
15767
15768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15769}'`
15770# Check for a 64-bit object if we didn't find anything.
15771if 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; }
15772}'`; fi
15773else
15774  echo "$as_me: failed program was:" >&5
15775sed 's/^/| /' conftest.$ac_ext >&5
15776
15777fi
15778rm -f conftest.err conftest.$ac_objext \
15779      conftest$ac_exeext conftest.$ac_ext
15780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15781
15782       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15783	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"
15784       else
15785	if test "$host_cpu" = ia64; then
15786	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15787	  allow_undefined_flag_F77="-z nodefs"
15788	  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"
15789	else
15790	 # Determine the default libpath from the value encoded in an empty executable.
15791	 cat >conftest.$ac_ext <<_ACEOF
15792      program main
15793
15794      end
15795_ACEOF
15796rm -f conftest.$ac_objext conftest$ac_exeext
15797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798  (eval $ac_link) 2>conftest.er1
15799  ac_status=$?
15800  grep -v '^ *+' conftest.er1 >conftest.err
15801  rm -f conftest.er1
15802  cat conftest.err >&5
15803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804  (exit $ac_status); } &&
15805	 { ac_try='test -z "$ac_f77_werror_flag"
15806			 || test ! -s conftest.err'
15807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808  (eval $ac_try) 2>&5
15809  ac_status=$?
15810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811  (exit $ac_status); }; } &&
15812	 { ac_try='test -s conftest$ac_exeext'
15813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814  (eval $ac_try) 2>&5
15815  ac_status=$?
15816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817  (exit $ac_status); }; }; then
15818
15819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15820}'`
15821# Check for a 64-bit object if we didn't find anything.
15822if 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; }
15823}'`; fi
15824else
15825  echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
15828fi
15829rm -f conftest.err conftest.$ac_objext \
15830      conftest$ac_exeext conftest.$ac_ext
15831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15832
15833	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15834	  # Warning - without using the other run time loading flags,
15835	  # -berok will link without error, but may produce a broken library.
15836	  no_undefined_flag_F77=' ${wl}-bernotok'
15837	  allow_undefined_flag_F77=' ${wl}-berok'
15838	  # Exported symbols can be pulled into shared objects from archives
15839	  whole_archive_flag_spec_F77='$convenience'
15840	  archive_cmds_need_lc_F77=yes
15841	  # This is similar to how AIX traditionally builds its shared libraries.
15842	  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'
15843	fi
15844      fi
15845      ;;
15846
15847    amigaos*)
15848      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)'
15849      hardcode_libdir_flag_spec_F77='-L$libdir'
15850      hardcode_minus_L_F77=yes
15851      # see comment about different semantics on the GNU ld section
15852      ld_shlibs_F77=no
15853      ;;
15854
15855    bsdi[45]*)
15856      export_dynamic_flag_spec_F77=-rdynamic
15857      ;;
15858
15859    cygwin* | mingw* | pw32*)
15860      # When not using gcc, we currently assume that we are using
15861      # Microsoft Visual C++.
15862      # hardcode_libdir_flag_spec is actually meaningless, as there is
15863      # no search path for DLLs.
15864      hardcode_libdir_flag_spec_F77=' '
15865      allow_undefined_flag_F77=unsupported
15866      # Tell ltmain to make .lib files, not .a files.
15867      libext=lib
15868      # Tell ltmain to make .dll files, not .so files.
15869      shrext_cmds=".dll"
15870      # FIXME: Setting linknames here is a bad hack.
15871      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15872      # The linker will automatically build a .lib file if we build a DLL.
15873      old_archive_From_new_cmds_F77='true'
15874      # FIXME: Should let the user specify the lib program.
15875      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15876      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15877      enable_shared_with_static_runtimes_F77=yes
15878      ;;
15879
15880    darwin* | rhapsody*)
15881      case $host_os in
15882        rhapsody* | darwin1.[012])
15883         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15884         ;;
15885       *) # Darwin 1.3 on
15886         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15887           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15888         else
15889           case ${MACOSX_DEPLOYMENT_TARGET} in
15890             10.[012])
15891               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15892               ;;
15893             10.*)
15894               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15895               ;;
15896           esac
15897         fi
15898         ;;
15899      esac
15900      archive_cmds_need_lc_F77=no
15901      hardcode_direct_F77=no
15902      hardcode_automatic_F77=yes
15903      hardcode_shlibpath_var_F77=unsupported
15904      whole_archive_flag_spec_F77=''
15905      link_all_deplibs_F77=yes
15906    if test "$GCC" = yes ; then
15907    	output_verbose_link_cmd='echo'
15908        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15909      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15910      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15911      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}'
15912      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}'
15913    else
15914      case $cc_basename in
15915        xlc*)
15916         output_verbose_link_cmd='echo'
15917         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15918         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15919          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15920         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}'
15921          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}'
15922          ;;
15923       *)
15924         ld_shlibs_F77=no
15925          ;;
15926      esac
15927    fi
15928      ;;
15929
15930    dgux*)
15931      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932      hardcode_libdir_flag_spec_F77='-L$libdir'
15933      hardcode_shlibpath_var_F77=no
15934      ;;
15935
15936    freebsd1*)
15937      ld_shlibs_F77=no
15938      ;;
15939
15940    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15941    # support.  Future versions do this automatically, but an explicit c++rt0.o
15942    # does not break anything, and helps significantly (at the cost of a little
15943    # extra space).
15944    freebsd2.2*)
15945      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15946      hardcode_libdir_flag_spec_F77='-R$libdir'
15947      hardcode_direct_F77=yes
15948      hardcode_shlibpath_var_F77=no
15949      ;;
15950
15951    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15952    freebsd2*)
15953      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15954      hardcode_direct_F77=yes
15955      hardcode_minus_L_F77=yes
15956      hardcode_shlibpath_var_F77=no
15957      ;;
15958
15959    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15960    freebsd* | kfreebsd*-gnu | dragonfly*)
15961      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15962      hardcode_libdir_flag_spec_F77='-R$libdir'
15963      hardcode_direct_F77=yes
15964      hardcode_shlibpath_var_F77=no
15965      ;;
15966
15967    hpux9*)
15968      if test "$GCC" = yes; then
15969	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'
15970      else
15971	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'
15972      fi
15973      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15974      hardcode_libdir_separator_F77=:
15975      hardcode_direct_F77=yes
15976
15977      # hardcode_minus_L: Not really in the search PATH,
15978      # but as the default location of the library.
15979      hardcode_minus_L_F77=yes
15980      export_dynamic_flag_spec_F77='${wl}-E'
15981      ;;
15982
15983    hpux10*)
15984      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15985	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15986      else
15987	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15988      fi
15989      if test "$with_gnu_ld" = no; then
15990	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15991	hardcode_libdir_separator_F77=:
15992
15993	hardcode_direct_F77=yes
15994	export_dynamic_flag_spec_F77='${wl}-E'
15995
15996	# hardcode_minus_L: Not really in the search PATH,
15997	# but as the default location of the library.
15998	hardcode_minus_L_F77=yes
15999      fi
16000      ;;
16001
16002    hpux11*)
16003      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16004	case $host_cpu in
16005	hppa*64*)
16006	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16007	  ;;
16008	ia64*)
16009	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16010	  ;;
16011	*)
16012	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16013	  ;;
16014	esac
16015      else
16016	case $host_cpu in
16017	hppa*64*)
16018	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16019	  ;;
16020	ia64*)
16021	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16022	  ;;
16023	*)
16024	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16025	  ;;
16026	esac
16027      fi
16028      if test "$with_gnu_ld" = no; then
16029	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16030	hardcode_libdir_separator_F77=:
16031
16032	case $host_cpu in
16033	hppa*64*|ia64*)
16034	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16035	  hardcode_direct_F77=no
16036	  hardcode_shlibpath_var_F77=no
16037	  ;;
16038	*)
16039	  hardcode_direct_F77=yes
16040	  export_dynamic_flag_spec_F77='${wl}-E'
16041
16042	  # hardcode_minus_L: Not really in the search PATH,
16043	  # but as the default location of the library.
16044	  hardcode_minus_L_F77=yes
16045	  ;;
16046	esac
16047      fi
16048      ;;
16049
16050    irix5* | irix6* | nonstopux*)
16051      if test "$GCC" = yes; then
16052	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'
16053      else
16054	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'
16055	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16056      fi
16057      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16058      hardcode_libdir_separator_F77=:
16059      link_all_deplibs_F77=yes
16060      ;;
16061
16062    netbsd*)
16063      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16064	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16065      else
16066	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16067      fi
16068      hardcode_libdir_flag_spec_F77='-R$libdir'
16069      hardcode_direct_F77=yes
16070      hardcode_shlibpath_var_F77=no
16071      ;;
16072
16073    newsos6)
16074      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16075      hardcode_direct_F77=yes
16076      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16077      hardcode_libdir_separator_F77=:
16078      hardcode_shlibpath_var_F77=no
16079      ;;
16080
16081    openbsd*)
16082      hardcode_direct_F77=yes
16083      hardcode_shlibpath_var_F77=no
16084      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16085	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16086	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16087	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16088	export_dynamic_flag_spec_F77='${wl}-E'
16089      else
16090       case $host_os in
16091	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16092	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16093	   hardcode_libdir_flag_spec_F77='-R$libdir'
16094	   ;;
16095	 *)
16096	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16097	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16098	   ;;
16099       esac
16100      fi
16101      ;;
16102
16103    os2*)
16104      hardcode_libdir_flag_spec_F77='-L$libdir'
16105      hardcode_minus_L_F77=yes
16106      allow_undefined_flag_F77=unsupported
16107      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'
16108      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16109      ;;
16110
16111    osf3*)
16112      if test "$GCC" = yes; then
16113	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16114	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'
16115      else
16116	allow_undefined_flag_F77=' -expect_unresolved \*'
16117	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'
16118      fi
16119      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16120      hardcode_libdir_separator_F77=:
16121      ;;
16122
16123    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16124      if test "$GCC" = yes; then
16125	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16126	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'
16127	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16128      else
16129	allow_undefined_flag_F77=' -expect_unresolved \*'
16130	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'
16131	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~
16132	$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'
16133
16134	# Both c and cxx compiler support -rpath directly
16135	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16136      fi
16137      hardcode_libdir_separator_F77=:
16138      ;;
16139
16140    solaris*)
16141      no_undefined_flag_F77=' -z text'
16142      if test "$GCC" = yes; then
16143	wlarc='${wl}'
16144	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16145	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16146	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16147      else
16148	wlarc=''
16149	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16152      fi
16153      hardcode_libdir_flag_spec_F77='-R$libdir'
16154      hardcode_shlibpath_var_F77=no
16155      case $host_os in
16156      solaris2.[0-5] | solaris2.[0-5].*) ;;
16157      *)
16158 	# The compiler driver will combine linker options so we
16159 	# cannot just pass the convience library names through
16160 	# without $wl, iff we do not link with $LD.
16161 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16162 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16163 	case $wlarc in
16164 	'')
16165 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16166 	*)
16167 	  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' ;;
16168 	esac ;;
16169      esac
16170      link_all_deplibs_F77=yes
16171      ;;
16172
16173    sunos4*)
16174      if test "x$host_vendor" = xsequent; then
16175	# Use $CC to link under sequent, because it throws in some extra .o
16176	# files that make .init and .fini sections work.
16177	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16178      else
16179	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16180      fi
16181      hardcode_libdir_flag_spec_F77='-L$libdir'
16182      hardcode_direct_F77=yes
16183      hardcode_minus_L_F77=yes
16184      hardcode_shlibpath_var_F77=no
16185      ;;
16186
16187    sysv4)
16188      case $host_vendor in
16189	sni)
16190	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191	  hardcode_direct_F77=yes # is this really true???
16192	;;
16193	siemens)
16194	  ## LD is ld it makes a PLAMLIB
16195	  ## CC just makes a GrossModule.
16196	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16197	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16198	  hardcode_direct_F77=no
16199        ;;
16200	motorola)
16201	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16203	;;
16204      esac
16205      runpath_var='LD_RUN_PATH'
16206      hardcode_shlibpath_var_F77=no
16207      ;;
16208
16209    sysv4.3*)
16210      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16211      hardcode_shlibpath_var_F77=no
16212      export_dynamic_flag_spec_F77='-Bexport'
16213      ;;
16214
16215    sysv4*MP*)
16216      if test -d /usr/nec; then
16217	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218	hardcode_shlibpath_var_F77=no
16219	runpath_var=LD_RUN_PATH
16220	hardcode_runpath_var=yes
16221	ld_shlibs_F77=yes
16222      fi
16223      ;;
16224
16225    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16226      no_undefined_flag_F77='${wl}-z,text'
16227      archive_cmds_need_lc_F77=no
16228      hardcode_shlibpath_var_F77=no
16229      runpath_var='LD_RUN_PATH'
16230
16231      if test "$GCC" = yes; then
16232	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16233	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16234      else
16235	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16236	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16237      fi
16238      ;;
16239
16240    sysv5* | sco3.2v5* | sco5v6*)
16241      # Note: We can NOT use -z defs as we might desire, because we do not
16242      # link with -lc, and that would cause any symbols used from libc to
16243      # always be unresolved, which means just about no library would
16244      # ever link correctly.  If we're not using GNU ld we use -z text
16245      # though, which does catch some bad symbols but isn't as heavy-handed
16246      # as -z defs.
16247      no_undefined_flag_F77='${wl}-z,text'
16248      allow_undefined_flag_F77='${wl}-z,nodefs'
16249      archive_cmds_need_lc_F77=no
16250      hardcode_shlibpath_var_F77=no
16251      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16252      hardcode_libdir_separator_F77=':'
16253      link_all_deplibs_F77=yes
16254      export_dynamic_flag_spec_F77='${wl}-Bexport'
16255      runpath_var='LD_RUN_PATH'
16256
16257      if test "$GCC" = yes; then
16258	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16260      else
16261	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16262	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16263      fi
16264      ;;
16265
16266    uts4*)
16267      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268      hardcode_libdir_flag_spec_F77='-L$libdir'
16269      hardcode_shlibpath_var_F77=no
16270      ;;
16271
16272    *)
16273      ld_shlibs_F77=no
16274      ;;
16275    esac
16276  fi
16277
16278echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16279echo "${ECHO_T}$ld_shlibs_F77" >&6
16280test "$ld_shlibs_F77" = no && can_build_shared=no
16281
16282#
16283# Do we need to explicitly link libc?
16284#
16285case "x$archive_cmds_need_lc_F77" in
16286x|xyes)
16287  # Assume -lc should be added
16288  archive_cmds_need_lc_F77=yes
16289
16290  if test "$enable_shared" = yes && test "$GCC" = yes; then
16291    case $archive_cmds_F77 in
16292    *'~'*)
16293      # FIXME: we may have to deal with multi-command sequences.
16294      ;;
16295    '$CC '*)
16296      # Test whether the compiler implicitly links with -lc since on some
16297      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16298      # to ld, don't add -lc before -lgcc.
16299      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16300echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16301      $rm conftest*
16302      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16303
16304      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305  (eval $ac_compile) 2>&5
16306  ac_status=$?
16307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308  (exit $ac_status); } 2>conftest.err; then
16309        soname=conftest
16310        lib=conftest
16311        libobjs=conftest.$ac_objext
16312        deplibs=
16313        wl=$lt_prog_compiler_wl_F77
16314	pic_flag=$lt_prog_compiler_pic_F77
16315        compiler_flags=-v
16316        linker_flags=-v
16317        verstring=
16318        output_objdir=.
16319        libname=conftest
16320        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16321        allow_undefined_flag_F77=
16322        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16323  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16324  ac_status=$?
16325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326  (exit $ac_status); }
16327        then
16328	  archive_cmds_need_lc_F77=no
16329        else
16330	  archive_cmds_need_lc_F77=yes
16331        fi
16332        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16333      else
16334        cat conftest.err 1>&5
16335      fi
16336      $rm conftest*
16337      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16338echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16339      ;;
16340    esac
16341  fi
16342  ;;
16343esac
16344
16345echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16346echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16347library_names_spec=
16348libname_spec='lib$name'
16349soname_spec=
16350shrext_cmds=".so"
16351postinstall_cmds=
16352postuninstall_cmds=
16353finish_cmds=
16354finish_eval=
16355shlibpath_var=
16356shlibpath_overrides_runpath=unknown
16357version_type=none
16358dynamic_linker="$host_os ld.so"
16359sys_lib_dlsearch_path_spec="/lib /usr/lib"
16360if test "$GCC" = yes; then
16361  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16362  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16363    # if the path contains ";" then we assume it to be the separator
16364    # otherwise default to the standard path separator (i.e. ":") - it is
16365    # assumed that no part of a normal pathname contains ";" but that should
16366    # okay in the real world where ";" in dirpaths is itself problematic.
16367    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16368  else
16369    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16370  fi
16371else
16372  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16373fi
16374need_lib_prefix=unknown
16375hardcode_into_libs=no
16376
16377# when you set need_version to no, make sure it does not cause -set_version
16378# flags to be left without arguments
16379need_version=unknown
16380
16381case $host_os in
16382aix3*)
16383  version_type=linux
16384  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16385  shlibpath_var=LIBPATH
16386
16387  # AIX 3 has no versioning support, so we append a major version to the name.
16388  soname_spec='${libname}${release}${shared_ext}$major'
16389  ;;
16390
16391aix4* | aix5*)
16392  version_type=linux
16393  need_lib_prefix=no
16394  need_version=no
16395  hardcode_into_libs=yes
16396  if test "$host_cpu" = ia64; then
16397    # AIX 5 supports IA64
16398    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16399    shlibpath_var=LD_LIBRARY_PATH
16400  else
16401    # With GCC up to 2.95.x, collect2 would create an import file
16402    # for dependence libraries.  The import file would start with
16403    # the line `#! .'.  This would cause the generated library to
16404    # depend on `.', always an invalid library.  This was fixed in
16405    # development snapshots of GCC prior to 3.0.
16406    case $host_os in
16407      aix4 | aix4.[01] | aix4.[01].*)
16408      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16409	   echo ' yes '
16410	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16411	:
16412      else
16413	can_build_shared=no
16414      fi
16415      ;;
16416    esac
16417    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16418    # soname into executable. Probably we can add versioning support to
16419    # collect2, so additional links can be useful in future.
16420    if test "$aix_use_runtimelinking" = yes; then
16421      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16422      # instead of lib<name>.a to let people know that these are not
16423      # typical AIX shared libraries.
16424      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425    else
16426      # We preserve .a as extension for shared libraries through AIX4.2
16427      # and later when we are not doing run time linking.
16428      library_names_spec='${libname}${release}.a $libname.a'
16429      soname_spec='${libname}${release}${shared_ext}$major'
16430    fi
16431    shlibpath_var=LIBPATH
16432  fi
16433  ;;
16434
16435amigaos*)
16436  library_names_spec='$libname.ixlibrary $libname.a'
16437  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16438  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'
16439  ;;
16440
16441beos*)
16442  library_names_spec='${libname}${shared_ext}'
16443  dynamic_linker="$host_os ld.so"
16444  shlibpath_var=LIBRARY_PATH
16445  ;;
16446
16447bsdi[45]*)
16448  version_type=linux
16449  need_version=no
16450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451  soname_spec='${libname}${release}${shared_ext}$major'
16452  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16453  shlibpath_var=LD_LIBRARY_PATH
16454  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16455  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16456  # the default ld.so.conf also contains /usr/contrib/lib and
16457  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16458  # libtool to hard-code these into programs
16459  ;;
16460
16461cygwin* | mingw* | pw32*)
16462  version_type=windows
16463  shrext_cmds=".dll"
16464  need_version=no
16465  need_lib_prefix=no
16466
16467  case $GCC,$host_os in
16468  yes,cygwin* | yes,mingw* | yes,pw32*)
16469    library_names_spec='$libname.dll.a'
16470    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16471    postinstall_cmds='base_file=`basename \${file}`~
16472      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16473      dldir=$destdir/`dirname \$dlpath`~
16474      test -d \$dldir || mkdir -p \$dldir~
16475      $install_prog $dir/$dlname \$dldir/$dlname~
16476      chmod a+x \$dldir/$dlname'
16477    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16478      dlpath=$dir/\$dldll~
16479       $rm \$dlpath'
16480    shlibpath_overrides_runpath=yes
16481
16482    case $host_os in
16483    cygwin*)
16484      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16485      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16486      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16487      ;;
16488    mingw*)
16489      # MinGW DLLs use traditional 'lib' prefix
16490      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16491      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16492      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16493        # It is most probably a Windows format PATH printed by
16494        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16495        # path with ; separators, and with drive letters. We can handle the
16496        # drive letters (cygwin fileutils understands them), so leave them,
16497        # especially as we might pass files found there to a mingw objdump,
16498        # which wouldn't understand a cygwinified path. Ahh.
16499        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16500      else
16501        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16502      fi
16503      ;;
16504    pw32*)
16505      # pw32 DLLs use 'pw' prefix rather than 'lib'
16506      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16507      ;;
16508    esac
16509    ;;
16510
16511  *)
16512    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16513    ;;
16514  esac
16515  dynamic_linker='Win32 ld.exe'
16516  # FIXME: first we should search . and the directory the executable is in
16517  shlibpath_var=PATH
16518  ;;
16519
16520darwin* | rhapsody*)
16521  dynamic_linker="$host_os dyld"
16522  version_type=darwin
16523  need_lib_prefix=no
16524  need_version=no
16525  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16526  soname_spec='${libname}${release}${major}$shared_ext'
16527  shlibpath_overrides_runpath=yes
16528  shlibpath_var=DYLD_LIBRARY_PATH
16529  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16530  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16531  if test "$GCC" = yes; then
16532    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"`
16533  else
16534    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16535  fi
16536  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16537  ;;
16538
16539dgux*)
16540  version_type=linux
16541  need_lib_prefix=no
16542  need_version=no
16543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16544  soname_spec='${libname}${release}${shared_ext}$major'
16545  shlibpath_var=LD_LIBRARY_PATH
16546  ;;
16547
16548freebsd1*)
16549  dynamic_linker=no
16550  ;;
16551
16552kfreebsd*-gnu)
16553  version_type=linux
16554  need_lib_prefix=no
16555  need_version=no
16556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16557  soname_spec='${libname}${release}${shared_ext}$major'
16558  shlibpath_var=LD_LIBRARY_PATH
16559  shlibpath_overrides_runpath=no
16560  hardcode_into_libs=yes
16561  dynamic_linker='GNU ld.so'
16562  ;;
16563
16564freebsd* | dragonfly*)
16565  # DragonFly does not have aout.  When/if they implement a new
16566  # versioning mechanism, adjust this.
16567  if test -x /usr/bin/objformat; then
16568    objformat=`/usr/bin/objformat`
16569  else
16570    case $host_os in
16571    freebsd[123]*) objformat=aout ;;
16572    *) objformat=elf ;;
16573    esac
16574  fi
16575  version_type=freebsd-$objformat
16576  case $version_type in
16577    freebsd-elf*)
16578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16579      need_version=no
16580      need_lib_prefix=no
16581      ;;
16582    freebsd-*)
16583      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16584      need_version=yes
16585      ;;
16586  esac
16587  shlibpath_var=LD_LIBRARY_PATH
16588  case $host_os in
16589  freebsd2*)
16590    shlibpath_overrides_runpath=yes
16591    ;;
16592  freebsd3.[01]* | freebsdelf3.[01]*)
16593    shlibpath_overrides_runpath=yes
16594    hardcode_into_libs=yes
16595    ;;
16596  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16597  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16598    shlibpath_overrides_runpath=no
16599    hardcode_into_libs=yes
16600    ;;
16601  freebsd*) # from 4.6 on
16602    shlibpath_overrides_runpath=yes
16603    hardcode_into_libs=yes
16604    ;;
16605  esac
16606  ;;
16607
16608gnu*)
16609  version_type=linux
16610  need_lib_prefix=no
16611  need_version=no
16612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16613  soname_spec='${libname}${release}${shared_ext}$major'
16614  shlibpath_var=LD_LIBRARY_PATH
16615  hardcode_into_libs=yes
16616  ;;
16617
16618hpux9* | hpux10* | hpux11*)
16619  # Give a soname corresponding to the major version so that dld.sl refuses to
16620  # link against other versions.
16621  version_type=sunos
16622  need_lib_prefix=no
16623  need_version=no
16624  case $host_cpu in
16625  ia64*)
16626    shrext_cmds='.so'
16627    hardcode_into_libs=yes
16628    dynamic_linker="$host_os dld.so"
16629    shlibpath_var=LD_LIBRARY_PATH
16630    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632    soname_spec='${libname}${release}${shared_ext}$major'
16633    if test "X$HPUX_IA64_MODE" = X32; then
16634      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16635    else
16636      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16637    fi
16638    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16639    ;;
16640   hppa*64*)
16641     shrext_cmds='.sl'
16642     hardcode_into_libs=yes
16643     dynamic_linker="$host_os dld.sl"
16644     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16645     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647     soname_spec='${libname}${release}${shared_ext}$major'
16648     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16649     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16650     ;;
16651   *)
16652    shrext_cmds='.sl'
16653    dynamic_linker="$host_os dld.sl"
16654    shlibpath_var=SHLIB_PATH
16655    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657    soname_spec='${libname}${release}${shared_ext}$major'
16658    ;;
16659  esac
16660  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16661  postinstall_cmds='chmod 555 $lib'
16662  ;;
16663
16664interix3*)
16665  version_type=linux
16666  need_lib_prefix=no
16667  need_version=no
16668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16669  soname_spec='${libname}${release}${shared_ext}$major'
16670  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16671  shlibpath_var=LD_LIBRARY_PATH
16672  shlibpath_overrides_runpath=no
16673  hardcode_into_libs=yes
16674  ;;
16675
16676irix5* | irix6* | nonstopux*)
16677  case $host_os in
16678    nonstopux*) version_type=nonstopux ;;
16679    *)
16680	if test "$lt_cv_prog_gnu_ld" = yes; then
16681		version_type=linux
16682	else
16683		version_type=irix
16684	fi ;;
16685  esac
16686  need_lib_prefix=no
16687  need_version=no
16688  soname_spec='${libname}${release}${shared_ext}$major'
16689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16690  case $host_os in
16691  irix5* | nonstopux*)
16692    libsuff= shlibsuff=
16693    ;;
16694  *)
16695    case $LD in # libtool.m4 will add one of these switches to LD
16696    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16697      libsuff= shlibsuff= libmagic=32-bit;;
16698    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16699      libsuff=32 shlibsuff=N32 libmagic=N32;;
16700    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16701      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16702    *) libsuff= shlibsuff= libmagic=never-match;;
16703    esac
16704    ;;
16705  esac
16706  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16707  shlibpath_overrides_runpath=no
16708  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16709  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16710  hardcode_into_libs=yes
16711  ;;
16712
16713# No shared lib support for Linux oldld, aout, or coff.
16714linux*oldld* | linux*aout* | linux*coff*)
16715  dynamic_linker=no
16716  ;;
16717
16718# This must be Linux ELF.
16719linux*)
16720  version_type=linux
16721  need_lib_prefix=no
16722  need_version=no
16723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724  soname_spec='${libname}${release}${shared_ext}$major'
16725  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16726  shlibpath_var=LD_LIBRARY_PATH
16727  shlibpath_overrides_runpath=no
16728  # This implies no fast_install, which is unacceptable.
16729  # Some rework will be needed to allow for fast_install
16730  # before this can be enabled.
16731  hardcode_into_libs=yes
16732
16733  # Append ld.so.conf contents to the search path
16734  if test -f /etc/ld.so.conf; then
16735    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' ' '`
16736    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16737  fi
16738
16739  # We used to test for /lib/ld.so.1 and disable shared libraries on
16740  # powerpc, because MkLinux only supported shared libraries with the
16741  # GNU dynamic linker.  Since this was broken with cross compilers,
16742  # most powerpc-linux boxes support dynamic linking these days and
16743  # people can always --disable-shared, the test was removed, and we
16744  # assume the GNU/Linux dynamic linker is in use.
16745  dynamic_linker='GNU/Linux ld.so'
16746  ;;
16747
16748knetbsd*-gnu)
16749  version_type=linux
16750  need_lib_prefix=no
16751  need_version=no
16752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16753  soname_spec='${libname}${release}${shared_ext}$major'
16754  shlibpath_var=LD_LIBRARY_PATH
16755  shlibpath_overrides_runpath=no
16756  hardcode_into_libs=yes
16757  dynamic_linker='GNU ld.so'
16758  ;;
16759
16760netbsd*)
16761  version_type=sunos
16762  need_lib_prefix=no
16763  need_version=no
16764  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16766    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16767    dynamic_linker='NetBSD (a.out) ld.so'
16768  else
16769    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16770    soname_spec='${libname}${release}${shared_ext}$major'
16771    dynamic_linker='NetBSD ld.elf_so'
16772  fi
16773  shlibpath_var=LD_LIBRARY_PATH
16774  shlibpath_overrides_runpath=yes
16775  hardcode_into_libs=yes
16776  ;;
16777
16778newsos6)
16779  version_type=linux
16780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781  shlibpath_var=LD_LIBRARY_PATH
16782  shlibpath_overrides_runpath=yes
16783  ;;
16784
16785nto-qnx*)
16786  version_type=linux
16787  need_lib_prefix=no
16788  need_version=no
16789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790  soname_spec='${libname}${release}${shared_ext}$major'
16791  shlibpath_var=LD_LIBRARY_PATH
16792  shlibpath_overrides_runpath=yes
16793  ;;
16794
16795openbsd*)
16796  version_type=sunos
16797  sys_lib_dlsearch_path_spec="/usr/lib"
16798  need_lib_prefix=no
16799  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16800  case $host_os in
16801    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16802    *)                         need_version=no  ;;
16803  esac
16804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16805  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16806  shlibpath_var=LD_LIBRARY_PATH
16807  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16808    case $host_os in
16809      openbsd2.[89] | openbsd2.[89].*)
16810	shlibpath_overrides_runpath=no
16811	;;
16812      *)
16813	shlibpath_overrides_runpath=yes
16814	;;
16815      esac
16816  else
16817    shlibpath_overrides_runpath=yes
16818  fi
16819  ;;
16820
16821os2*)
16822  libname_spec='$name'
16823  shrext_cmds=".dll"
16824  need_lib_prefix=no
16825  library_names_spec='$libname${shared_ext} $libname.a'
16826  dynamic_linker='OS/2 ld.exe'
16827  shlibpath_var=LIBPATH
16828  ;;
16829
16830osf3* | osf4* | osf5*)
16831  version_type=osf
16832  need_lib_prefix=no
16833  need_version=no
16834  soname_spec='${libname}${release}${shared_ext}$major'
16835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836  shlibpath_var=LD_LIBRARY_PATH
16837  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16838  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16839  ;;
16840
16841solaris*)
16842  version_type=linux
16843  need_lib_prefix=no
16844  need_version=no
16845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16846  soname_spec='${libname}${release}${shared_ext}$major'
16847  shlibpath_var=LD_LIBRARY_PATH
16848  shlibpath_overrides_runpath=yes
16849  hardcode_into_libs=yes
16850  # ldd complains unless libraries are executable
16851  postinstall_cmds='chmod +x $lib'
16852  ;;
16853
16854sunos4*)
16855  version_type=sunos
16856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16857  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16858  shlibpath_var=LD_LIBRARY_PATH
16859  shlibpath_overrides_runpath=yes
16860  if test "$with_gnu_ld" = yes; then
16861    need_lib_prefix=no
16862  fi
16863  need_version=yes
16864  ;;
16865
16866sysv4 | sysv4.3*)
16867  version_type=linux
16868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869  soname_spec='${libname}${release}${shared_ext}$major'
16870  shlibpath_var=LD_LIBRARY_PATH
16871  case $host_vendor in
16872    sni)
16873      shlibpath_overrides_runpath=no
16874      need_lib_prefix=no
16875      export_dynamic_flag_spec='${wl}-Blargedynsym'
16876      runpath_var=LD_RUN_PATH
16877      ;;
16878    siemens)
16879      need_lib_prefix=no
16880      ;;
16881    motorola)
16882      need_lib_prefix=no
16883      need_version=no
16884      shlibpath_overrides_runpath=no
16885      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16886      ;;
16887  esac
16888  ;;
16889
16890sysv4*MP*)
16891  if test -d /usr/nec ;then
16892    version_type=linux
16893    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16894    soname_spec='$libname${shared_ext}.$major'
16895    shlibpath_var=LD_LIBRARY_PATH
16896  fi
16897  ;;
16898
16899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16900  version_type=freebsd-elf
16901  need_lib_prefix=no
16902  need_version=no
16903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16904  soname_spec='${libname}${release}${shared_ext}$major'
16905  shlibpath_var=LD_LIBRARY_PATH
16906  hardcode_into_libs=yes
16907  if test "$with_gnu_ld" = yes; then
16908    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16909    shlibpath_overrides_runpath=no
16910  else
16911    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16912    shlibpath_overrides_runpath=yes
16913    case $host_os in
16914      sco3.2v5*)
16915        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16916	;;
16917    esac
16918  fi
16919  sys_lib_dlsearch_path_spec='/usr/lib'
16920  ;;
16921
16922uts4*)
16923  version_type=linux
16924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925  soname_spec='${libname}${release}${shared_ext}$major'
16926  shlibpath_var=LD_LIBRARY_PATH
16927  ;;
16928
16929*)
16930  dynamic_linker=no
16931  ;;
16932esac
16933echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16934echo "${ECHO_T}$dynamic_linker" >&6
16935test "$dynamic_linker" = no && can_build_shared=no
16936
16937variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16938if test "$GCC" = yes; then
16939  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16940fi
16941
16942echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16943echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16944hardcode_action_F77=
16945if test -n "$hardcode_libdir_flag_spec_F77" || \
16946   test -n "$runpath_var_F77" || \
16947   test "X$hardcode_automatic_F77" = "Xyes" ; then
16948
16949  # We can hardcode non-existant directories.
16950  if test "$hardcode_direct_F77" != no &&
16951     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16952     # have to relink, otherwise we might link with an installed library
16953     # when we should be linking with a yet-to-be-installed one
16954     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16955     test "$hardcode_minus_L_F77" != no; then
16956    # Linking always hardcodes the temporary library directory.
16957    hardcode_action_F77=relink
16958  else
16959    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16960    hardcode_action_F77=immediate
16961  fi
16962else
16963  # We cannot hardcode anything, or else we can only hardcode existing
16964  # directories.
16965  hardcode_action_F77=unsupported
16966fi
16967echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16968echo "${ECHO_T}$hardcode_action_F77" >&6
16969
16970if test "$hardcode_action_F77" = relink; then
16971  # Fast installation is not supported
16972  enable_fast_install=no
16973elif test "$shlibpath_overrides_runpath" = yes ||
16974     test "$enable_shared" = no; then
16975  # Fast installation is not necessary
16976  enable_fast_install=needless
16977fi
16978
16979
16980# The else clause should only fire when bootstrapping the
16981# libtool distribution, otherwise you forgot to ship ltmain.sh
16982# with your package, and you will get complaints that there are
16983# no rules to generate ltmain.sh.
16984if test -f "$ltmain"; then
16985  # See if we are running on zsh, and set the options which allow our commands through
16986  # without removal of \ escapes.
16987  if test -n "${ZSH_VERSION+set}" ; then
16988    setopt NO_GLOB_SUBST
16989  fi
16990  # Now quote all the things that may contain metacharacters while being
16991  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16992  # variables and quote the copies for generation of the libtool script.
16993  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16994    SED SHELL STRIP \
16995    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16996    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16997    deplibs_check_method reload_flag reload_cmds need_locks \
16998    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16999    lt_cv_sys_global_symbol_to_c_name_address \
17000    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17001    old_postinstall_cmds old_postuninstall_cmds \
17002    compiler_F77 \
17003    CC_F77 \
17004    LD_F77 \
17005    lt_prog_compiler_wl_F77 \
17006    lt_prog_compiler_pic_F77 \
17007    lt_prog_compiler_static_F77 \
17008    lt_prog_compiler_no_builtin_flag_F77 \
17009    export_dynamic_flag_spec_F77 \
17010    thread_safe_flag_spec_F77 \
17011    whole_archive_flag_spec_F77 \
17012    enable_shared_with_static_runtimes_F77 \
17013    old_archive_cmds_F77 \
17014    old_archive_from_new_cmds_F77 \
17015    predep_objects_F77 \
17016    postdep_objects_F77 \
17017    predeps_F77 \
17018    postdeps_F77 \
17019    compiler_lib_search_path_F77 \
17020    archive_cmds_F77 \
17021    archive_expsym_cmds_F77 \
17022    postinstall_cmds_F77 \
17023    postuninstall_cmds_F77 \
17024    old_archive_from_expsyms_cmds_F77 \
17025    allow_undefined_flag_F77 \
17026    no_undefined_flag_F77 \
17027    export_symbols_cmds_F77 \
17028    hardcode_libdir_flag_spec_F77 \
17029    hardcode_libdir_flag_spec_ld_F77 \
17030    hardcode_libdir_separator_F77 \
17031    hardcode_automatic_F77 \
17032    module_cmds_F77 \
17033    module_expsym_cmds_F77 \
17034    lt_cv_prog_compiler_c_o_F77 \
17035    exclude_expsyms_F77 \
17036    include_expsyms_F77; do
17037
17038    case $var in
17039    old_archive_cmds_F77 | \
17040    old_archive_from_new_cmds_F77 | \
17041    archive_cmds_F77 | \
17042    archive_expsym_cmds_F77 | \
17043    module_cmds_F77 | \
17044    module_expsym_cmds_F77 | \
17045    old_archive_from_expsyms_cmds_F77 | \
17046    export_symbols_cmds_F77 | \
17047    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17048    postinstall_cmds | postuninstall_cmds | \
17049    old_postinstall_cmds | old_postuninstall_cmds | \
17050    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17051      # Double-quote double-evaled strings.
17052      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17053      ;;
17054    *)
17055      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17056      ;;
17057    esac
17058  done
17059
17060  case $lt_echo in
17061  *'\$0 --fallback-echo"')
17062    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17063    ;;
17064  esac
17065
17066cfgfile="$ofile"
17067
17068  cat <<__EOF__ >> "$cfgfile"
17069# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17070
17071# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17072
17073# Shell to use when invoking shell scripts.
17074SHELL=$lt_SHELL
17075
17076# Whether or not to build shared libraries.
17077build_libtool_libs=$enable_shared
17078
17079# Whether or not to build static libraries.
17080build_old_libs=$enable_static
17081
17082# Whether or not to add -lc for building shared libraries.
17083build_libtool_need_lc=$archive_cmds_need_lc_F77
17084
17085# Whether or not to disallow shared libs when runtime libs are static
17086allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17087
17088# Whether or not to optimize for fast installation.
17089fast_install=$enable_fast_install
17090
17091# The host system.
17092host_alias=$host_alias
17093host=$host
17094host_os=$host_os
17095
17096# The build system.
17097build_alias=$build_alias
17098build=$build
17099build_os=$build_os
17100
17101# An echo program that does not interpret backslashes.
17102echo=$lt_echo
17103
17104# The archiver.
17105AR=$lt_AR
17106AR_FLAGS=$lt_AR_FLAGS
17107
17108# A C compiler.
17109LTCC=$lt_LTCC
17110
17111# LTCC compiler flags.
17112LTCFLAGS=$lt_LTCFLAGS
17113
17114# A language-specific compiler.
17115CC=$lt_compiler_F77
17116
17117# Is the compiler the GNU C compiler?
17118with_gcc=$GCC_F77
17119
17120# An ERE matcher.
17121EGREP=$lt_EGREP
17122
17123# The linker used to build libraries.
17124LD=$lt_LD_F77
17125
17126# Whether we need hard or soft links.
17127LN_S=$lt_LN_S
17128
17129# A BSD-compatible nm program.
17130NM=$lt_NM
17131
17132# A symbol stripping program
17133STRIP=$lt_STRIP
17134
17135# Used to examine libraries when file_magic_cmd begins "file"
17136MAGIC_CMD=$MAGIC_CMD
17137
17138# Used on cygwin: DLL creation program.
17139DLLTOOL="$DLLTOOL"
17140
17141# Used on cygwin: object dumper.
17142OBJDUMP="$OBJDUMP"
17143
17144# Used on cygwin: assembler.
17145AS="$AS"
17146
17147# The name of the directory that contains temporary libtool files.
17148objdir=$objdir
17149
17150# How to create reloadable object files.
17151reload_flag=$lt_reload_flag
17152reload_cmds=$lt_reload_cmds
17153
17154# How to pass a linker flag through the compiler.
17155wl=$lt_lt_prog_compiler_wl_F77
17156
17157# Object file suffix (normally "o").
17158objext="$ac_objext"
17159
17160# Old archive suffix (normally "a").
17161libext="$libext"
17162
17163# Shared library suffix (normally ".so").
17164shrext_cmds='$shrext_cmds'
17165
17166# Executable file suffix (normally "").
17167exeext="$exeext"
17168
17169# Additional compiler flags for building library objects.
17170pic_flag=$lt_lt_prog_compiler_pic_F77
17171pic_mode=$pic_mode
17172
17173# What is the maximum length of a command?
17174max_cmd_len=$lt_cv_sys_max_cmd_len
17175
17176# Does compiler simultaneously support -c and -o options?
17177compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17178
17179# Must we lock files when doing compilation?
17180need_locks=$lt_need_locks
17181
17182# Do we need the lib prefix for modules?
17183need_lib_prefix=$need_lib_prefix
17184
17185# Do we need a version for libraries?
17186need_version=$need_version
17187
17188# Whether dlopen is supported.
17189dlopen_support=$enable_dlopen
17190
17191# Whether dlopen of programs is supported.
17192dlopen_self=$enable_dlopen_self
17193
17194# Whether dlopen of statically linked programs is supported.
17195dlopen_self_static=$enable_dlopen_self_static
17196
17197# Compiler flag to prevent dynamic linking.
17198link_static_flag=$lt_lt_prog_compiler_static_F77
17199
17200# Compiler flag to turn off builtin functions.
17201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17202
17203# Compiler flag to allow reflexive dlopens.
17204export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17205
17206# Compiler flag to generate shared objects directly from archives.
17207whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17208
17209# Compiler flag to generate thread-safe objects.
17210thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17211
17212# Library versioning type.
17213version_type=$version_type
17214
17215# Format of library name prefix.
17216libname_spec=$lt_libname_spec
17217
17218# List of archive names.  First name is the real one, the rest are links.
17219# The last name is the one that the linker finds with -lNAME.
17220library_names_spec=$lt_library_names_spec
17221
17222# The coded name of the library, if different from the real name.
17223soname_spec=$lt_soname_spec
17224
17225# Commands used to build and install an old-style archive.
17226RANLIB=$lt_RANLIB
17227old_archive_cmds=$lt_old_archive_cmds_F77
17228old_postinstall_cmds=$lt_old_postinstall_cmds
17229old_postuninstall_cmds=$lt_old_postuninstall_cmds
17230
17231# Create an old-style archive from a shared archive.
17232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17233
17234# Create a temporary old-style archive to link instead of a shared archive.
17235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17236
17237# Commands used to build and install a shared archive.
17238archive_cmds=$lt_archive_cmds_F77
17239archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17240postinstall_cmds=$lt_postinstall_cmds
17241postuninstall_cmds=$lt_postuninstall_cmds
17242
17243# Commands used to build a loadable module (assumed same as above if empty)
17244module_cmds=$lt_module_cmds_F77
17245module_expsym_cmds=$lt_module_expsym_cmds_F77
17246
17247# Commands to strip libraries.
17248old_striplib=$lt_old_striplib
17249striplib=$lt_striplib
17250
17251# Dependencies to place before the objects being linked to create a
17252# shared library.
17253predep_objects=$lt_predep_objects_F77
17254
17255# Dependencies to place after the objects being linked to create a
17256# shared library.
17257postdep_objects=$lt_postdep_objects_F77
17258
17259# Dependencies to place before the objects being linked to create a
17260# shared library.
17261predeps=$lt_predeps_F77
17262
17263# Dependencies to place after the objects being linked to create a
17264# shared library.
17265postdeps=$lt_postdeps_F77
17266
17267# The library search path used internally by the compiler when linking
17268# a shared library.
17269compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17270
17271# Method to check whether dependent libraries are shared objects.
17272deplibs_check_method=$lt_deplibs_check_method
17273
17274# Command to use when deplibs_check_method == file_magic.
17275file_magic_cmd=$lt_file_magic_cmd
17276
17277# Flag that allows shared libraries with undefined symbols to be built.
17278allow_undefined_flag=$lt_allow_undefined_flag_F77
17279
17280# Flag that forces no undefined symbols.
17281no_undefined_flag=$lt_no_undefined_flag_F77
17282
17283# Commands used to finish a libtool library installation in a directory.
17284finish_cmds=$lt_finish_cmds
17285
17286# Same as above, but a single script fragment to be evaled but not shown.
17287finish_eval=$lt_finish_eval
17288
17289# Take the output of nm and produce a listing of raw symbols and C names.
17290global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17291
17292# Transform the output of nm in a proper C declaration
17293global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17294
17295# Transform the output of nm in a C name address pair
17296global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17297
17298# This is the shared library runtime path variable.
17299runpath_var=$runpath_var
17300
17301# This is the shared library path variable.
17302shlibpath_var=$shlibpath_var
17303
17304# Is shlibpath searched before the hard-coded library search path?
17305shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17306
17307# How to hardcode a shared library path into an executable.
17308hardcode_action=$hardcode_action_F77
17309
17310# Whether we should hardcode library paths into libraries.
17311hardcode_into_libs=$hardcode_into_libs
17312
17313# Flag to hardcode \$libdir into a binary during linking.
17314# This must work even if \$libdir does not exist.
17315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17316
17317# If ld is used when linking, flag to hardcode \$libdir into
17318# a binary during linking. This must work even if \$libdir does
17319# not exist.
17320hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17321
17322# Whether we need a single -rpath flag with a separated argument.
17323hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17324
17325# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17326# resulting binary.
17327hardcode_direct=$hardcode_direct_F77
17328
17329# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17330# resulting binary.
17331hardcode_minus_L=$hardcode_minus_L_F77
17332
17333# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17334# the resulting binary.
17335hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17336
17337# Set to yes if building a shared library automatically hardcodes DIR into the library
17338# and all subsequent libraries and executables linked against it.
17339hardcode_automatic=$hardcode_automatic_F77
17340
17341# Variables whose values should be saved in libtool wrapper scripts and
17342# restored at relink time.
17343variables_saved_for_relink="$variables_saved_for_relink"
17344
17345# Whether libtool must link a program against all its dependency libraries.
17346link_all_deplibs=$link_all_deplibs_F77
17347
17348# Compile-time system search path for libraries
17349sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17350
17351# Run-time system search path for libraries
17352sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17353
17354# Fix the shell variable \$srcfile for the compiler.
17355fix_srcfile_path="$fix_srcfile_path_F77"
17356
17357# Set to yes if exported symbols are required.
17358always_export_symbols=$always_export_symbols_F77
17359
17360# The commands to list exported symbols.
17361export_symbols_cmds=$lt_export_symbols_cmds_F77
17362
17363# The commands to extract the exported symbol list from a shared archive.
17364extract_expsyms_cmds=$lt_extract_expsyms_cmds
17365
17366# Symbols that should not be listed in the preloaded symbols.
17367exclude_expsyms=$lt_exclude_expsyms_F77
17368
17369# Symbols that must always be exported.
17370include_expsyms=$lt_include_expsyms_F77
17371
17372# ### END LIBTOOL TAG CONFIG: $tagname
17373
17374__EOF__
17375
17376
17377else
17378  # If there is no Makefile yet, we rely on a make rule to execute
17379  # `config.status --recheck' to rerun these tests and create the
17380  # libtool script then.
17381  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17382  if test -f "$ltmain_in"; then
17383    test -f Makefile && make "$ltmain"
17384  fi
17385fi
17386
17387
17388ac_ext=c
17389ac_cpp='$CPP $CPPFLAGS'
17390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392ac_compiler_gnu=$ac_cv_c_compiler_gnu
17393
17394CC="$lt_save_CC"
17395
17396	else
17397	  tagname=""
17398	fi
17399	;;
17400
17401      GCJ)
17402	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17403
17404
17405
17406# Source file extension for Java test sources.
17407ac_ext=java
17408
17409# Object file extension for compiled Java test sources.
17410objext=o
17411objext_GCJ=$objext
17412
17413# Code to be used in simple compile tests
17414lt_simple_compile_test_code="class foo {}\n"
17415
17416# Code to be used in simple link tests
17417lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17418
17419# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17420
17421# If no C compiler was specified, use CC.
17422LTCC=${LTCC-"$CC"}
17423
17424# If no C compiler flags were specified, use CFLAGS.
17425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17426
17427# Allow CC to be a program name with arguments.
17428compiler=$CC
17429
17430
17431# save warnings/boilerplate of simple test code
17432ac_outfile=conftest.$ac_objext
17433printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17434eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17435_lt_compiler_boilerplate=`cat conftest.err`
17436$rm conftest*
17437
17438ac_outfile=conftest.$ac_objext
17439printf "$lt_simple_link_test_code" >conftest.$ac_ext
17440eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17441_lt_linker_boilerplate=`cat conftest.err`
17442$rm conftest*
17443
17444
17445# Allow CC to be a program name with arguments.
17446lt_save_CC="$CC"
17447CC=${GCJ-"gcj"}
17448compiler=$CC
17449compiler_GCJ=$CC
17450for cc_temp in $compiler""; do
17451  case $cc_temp in
17452    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17453    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17454    \-*) ;;
17455    *) break;;
17456  esac
17457done
17458cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17459
17460
17461# GCJ did not exist at the time GCC didn't implicitly link libc in.
17462archive_cmds_need_lc_GCJ=no
17463
17464old_archive_cmds_GCJ=$old_archive_cmds
17465
17466## CAVEAT EMPTOR:
17467## There is no encapsulation within the following macros, do not change
17468## the running order or otherwise move them around unless you know exactly
17469## what you are doing...
17470
17471lt_prog_compiler_no_builtin_flag_GCJ=
17472
17473if test "$GCC" = yes; then
17474  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17475
17476
17477echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17478echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17479if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17480  echo $ECHO_N "(cached) $ECHO_C" >&6
17481else
17482  lt_cv_prog_compiler_rtti_exceptions=no
17483  ac_outfile=conftest.$ac_objext
17484   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17485   lt_compiler_flag="-fno-rtti -fno-exceptions"
17486   # Insert the option either (1) after the last *FLAGS variable, or
17487   # (2) before a word containing "conftest.", or (3) at the end.
17488   # Note that $ac_compile itself does not contain backslashes and begins
17489   # with a dollar sign (not a hyphen), so the echo should work correctly.
17490   # The option is referenced via a variable to avoid confusing sed.
17491   lt_compile=`echo "$ac_compile" | $SED \
17492   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17493   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17494   -e 's:$: $lt_compiler_flag:'`
17495   (eval echo "\"\$as_me:17495: $lt_compile\"" >&5)
17496   (eval "$lt_compile" 2>conftest.err)
17497   ac_status=$?
17498   cat conftest.err >&5
17499   echo "$as_me:17499: \$? = $ac_status" >&5
17500   if (exit $ac_status) && test -s "$ac_outfile"; then
17501     # The compiler can only warn and ignore the option if not recognized
17502     # So say no if there are warnings other than the usual output.
17503     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17504     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17505     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17506       lt_cv_prog_compiler_rtti_exceptions=yes
17507     fi
17508   fi
17509   $rm conftest*
17510
17511fi
17512echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17513echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17514
17515if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17516    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17517else
17518    :
17519fi
17520
17521fi
17522
17523lt_prog_compiler_wl_GCJ=
17524lt_prog_compiler_pic_GCJ=
17525lt_prog_compiler_static_GCJ=
17526
17527echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17528echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17529
17530  if test "$GCC" = yes; then
17531    lt_prog_compiler_wl_GCJ='-Wl,'
17532    lt_prog_compiler_static_GCJ='-static'
17533
17534    case $host_os in
17535      aix*)
17536      # All AIX code is PIC.
17537      if test "$host_cpu" = ia64; then
17538	# AIX 5 now supports IA64 processor
17539	lt_prog_compiler_static_GCJ='-Bstatic'
17540      fi
17541      ;;
17542
17543    amigaos*)
17544      # FIXME: we need at least 68020 code to build shared libraries, but
17545      # adding the `-m68020' flag to GCC prevents building anything better,
17546      # like `-m68040'.
17547      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17548      ;;
17549
17550    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17551      # PIC is the default for these OSes.
17552      ;;
17553
17554    mingw* | pw32* | os2*)
17555      # This hack is so that the source file can tell whether it is being
17556      # built for inclusion in a dll (and should export symbols for example).
17557      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17558      ;;
17559
17560    darwin* | rhapsody*)
17561      # PIC is the default on this platform
17562      # Common symbols not allowed in MH_DYLIB files
17563      lt_prog_compiler_pic_GCJ='-fno-common'
17564      ;;
17565
17566    interix3*)
17567      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17568      # Instead, we relocate shared libraries at runtime.
17569      ;;
17570
17571    msdosdjgpp*)
17572      # Just because we use GCC doesn't mean we suddenly get shared libraries
17573      # on systems that don't support them.
17574      lt_prog_compiler_can_build_shared_GCJ=no
17575      enable_shared=no
17576      ;;
17577
17578    sysv4*MP*)
17579      if test -d /usr/nec; then
17580	lt_prog_compiler_pic_GCJ=-Kconform_pic
17581      fi
17582      ;;
17583
17584    hpux*)
17585      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17586      # not for PA HP-UX.
17587      case $host_cpu in
17588      hppa*64*|ia64*)
17589	# +Z the default
17590	;;
17591      *)
17592	lt_prog_compiler_pic_GCJ='-fPIC'
17593	;;
17594      esac
17595      ;;
17596
17597    *)
17598      lt_prog_compiler_pic_GCJ='-fPIC'
17599      ;;
17600    esac
17601  else
17602    # PORTME Check for flag to pass linker flags through the system compiler.
17603    case $host_os in
17604    aix*)
17605      lt_prog_compiler_wl_GCJ='-Wl,'
17606      if test "$host_cpu" = ia64; then
17607	# AIX 5 now supports IA64 processor
17608	lt_prog_compiler_static_GCJ='-Bstatic'
17609      else
17610	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17611      fi
17612      ;;
17613      darwin*)
17614        # PIC is the default on this platform
17615        # Common symbols not allowed in MH_DYLIB files
17616       case $cc_basename in
17617         xlc*)
17618         lt_prog_compiler_pic_GCJ='-qnocommon'
17619         lt_prog_compiler_wl_GCJ='-Wl,'
17620         ;;
17621       esac
17622       ;;
17623
17624    mingw* | pw32* | os2*)
17625      # This hack is so that the source file can tell whether it is being
17626      # built for inclusion in a dll (and should export symbols for example).
17627      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17628      ;;
17629
17630    hpux9* | hpux10* | hpux11*)
17631      lt_prog_compiler_wl_GCJ='-Wl,'
17632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17633      # not for PA HP-UX.
17634      case $host_cpu in
17635      hppa*64*|ia64*)
17636	# +Z the default
17637	;;
17638      *)
17639	lt_prog_compiler_pic_GCJ='+Z'
17640	;;
17641      esac
17642      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17643      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17644      ;;
17645
17646    irix5* | irix6* | nonstopux*)
17647      lt_prog_compiler_wl_GCJ='-Wl,'
17648      # PIC (with -KPIC) is the default.
17649      lt_prog_compiler_static_GCJ='-non_shared'
17650      ;;
17651
17652    newsos6)
17653      lt_prog_compiler_pic_GCJ='-KPIC'
17654      lt_prog_compiler_static_GCJ='-Bstatic'
17655      ;;
17656
17657    linux*)
17658      case $cc_basename in
17659      icc* | ecc*)
17660	lt_prog_compiler_wl_GCJ='-Wl,'
17661	lt_prog_compiler_pic_GCJ='-KPIC'
17662	lt_prog_compiler_static_GCJ='-static'
17663        ;;
17664      pgcc* | pgf77* | pgf90* | pgf95*)
17665        # Portland Group compilers (*not* the Pentium gcc compiler,
17666	# which looks to be a dead project)
17667	lt_prog_compiler_wl_GCJ='-Wl,'
17668	lt_prog_compiler_pic_GCJ='-fpic'
17669	lt_prog_compiler_static_GCJ='-Bstatic'
17670        ;;
17671      ccc*)
17672        lt_prog_compiler_wl_GCJ='-Wl,'
17673        # All Alpha code is PIC.
17674        lt_prog_compiler_static_GCJ='-non_shared'
17675        ;;
17676      esac
17677      ;;
17678
17679    osf3* | osf4* | osf5*)
17680      lt_prog_compiler_wl_GCJ='-Wl,'
17681      # All OSF/1 code is PIC.
17682      lt_prog_compiler_static_GCJ='-non_shared'
17683      ;;
17684
17685    solaris*)
17686      lt_prog_compiler_pic_GCJ='-KPIC'
17687      lt_prog_compiler_static_GCJ='-Bstatic'
17688      case $cc_basename in
17689      f77* | f90* | f95*)
17690	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17691      *)
17692	lt_prog_compiler_wl_GCJ='-Wl,';;
17693      esac
17694      ;;
17695
17696    sunos4*)
17697      lt_prog_compiler_wl_GCJ='-Qoption ld '
17698      lt_prog_compiler_pic_GCJ='-PIC'
17699      lt_prog_compiler_static_GCJ='-Bstatic'
17700      ;;
17701
17702    sysv4 | sysv4.2uw2* | sysv4.3*)
17703      lt_prog_compiler_wl_GCJ='-Wl,'
17704      lt_prog_compiler_pic_GCJ='-KPIC'
17705      lt_prog_compiler_static_GCJ='-Bstatic'
17706      ;;
17707
17708    sysv4*MP*)
17709      if test -d /usr/nec ;then
17710	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17711	lt_prog_compiler_static_GCJ='-Bstatic'
17712      fi
17713      ;;
17714
17715    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17716      lt_prog_compiler_wl_GCJ='-Wl,'
17717      lt_prog_compiler_pic_GCJ='-KPIC'
17718      lt_prog_compiler_static_GCJ='-Bstatic'
17719      ;;
17720
17721    unicos*)
17722      lt_prog_compiler_wl_GCJ='-Wl,'
17723      lt_prog_compiler_can_build_shared_GCJ=no
17724      ;;
17725
17726    uts4*)
17727      lt_prog_compiler_pic_GCJ='-pic'
17728      lt_prog_compiler_static_GCJ='-Bstatic'
17729      ;;
17730
17731    *)
17732      lt_prog_compiler_can_build_shared_GCJ=no
17733      ;;
17734    esac
17735  fi
17736
17737echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17738echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17739
17740#
17741# Check to make sure the PIC flag actually works.
17742#
17743if test -n "$lt_prog_compiler_pic_GCJ"; then
17744
17745echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17746echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17747if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17748  echo $ECHO_N "(cached) $ECHO_C" >&6
17749else
17750  lt_prog_compiler_pic_works_GCJ=no
17751  ac_outfile=conftest.$ac_objext
17752   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17753   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17754   # Insert the option either (1) after the last *FLAGS variable, or
17755   # (2) before a word containing "conftest.", or (3) at the end.
17756   # Note that $ac_compile itself does not contain backslashes and begins
17757   # with a dollar sign (not a hyphen), so the echo should work correctly.
17758   # The option is referenced via a variable to avoid confusing sed.
17759   lt_compile=`echo "$ac_compile" | $SED \
17760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17762   -e 's:$: $lt_compiler_flag:'`
17763   (eval echo "\"\$as_me:17763: $lt_compile\"" >&5)
17764   (eval "$lt_compile" 2>conftest.err)
17765   ac_status=$?
17766   cat conftest.err >&5
17767   echo "$as_me:17767: \$? = $ac_status" >&5
17768   if (exit $ac_status) && test -s "$ac_outfile"; then
17769     # The compiler can only warn and ignore the option if not recognized
17770     # So say no if there are warnings other than the usual output.
17771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17772     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17774       lt_prog_compiler_pic_works_GCJ=yes
17775     fi
17776   fi
17777   $rm conftest*
17778
17779fi
17780echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17781echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17782
17783if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17784    case $lt_prog_compiler_pic_GCJ in
17785     "" | " "*) ;;
17786     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17787     esac
17788else
17789    lt_prog_compiler_pic_GCJ=
17790     lt_prog_compiler_can_build_shared_GCJ=no
17791fi
17792
17793fi
17794case $host_os in
17795  # For platforms which do not support PIC, -DPIC is meaningless:
17796  *djgpp*)
17797    lt_prog_compiler_pic_GCJ=
17798    ;;
17799  *)
17800    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17801    ;;
17802esac
17803
17804#
17805# Check to make sure the static flag actually works.
17806#
17807wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17808echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17809echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17810if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17811  echo $ECHO_N "(cached) $ECHO_C" >&6
17812else
17813  lt_prog_compiler_static_works_GCJ=no
17814   save_LDFLAGS="$LDFLAGS"
17815   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17816   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17817   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17818     # The linker can only warn and ignore the option if not recognized
17819     # So say no if there are warnings
17820     if test -s conftest.err; then
17821       # Append any errors to the config.log.
17822       cat conftest.err 1>&5
17823       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17824       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17825       if diff conftest.exp conftest.er2 >/dev/null; then
17826         lt_prog_compiler_static_works_GCJ=yes
17827       fi
17828     else
17829       lt_prog_compiler_static_works_GCJ=yes
17830     fi
17831   fi
17832   $rm conftest*
17833   LDFLAGS="$save_LDFLAGS"
17834
17835fi
17836echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17837echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17838
17839if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17840    :
17841else
17842    lt_prog_compiler_static_GCJ=
17843fi
17844
17845
17846echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17848if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17849  echo $ECHO_N "(cached) $ECHO_C" >&6
17850else
17851  lt_cv_prog_compiler_c_o_GCJ=no
17852   $rm -r conftest 2>/dev/null
17853   mkdir conftest
17854   cd conftest
17855   mkdir out
17856   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17857
17858   lt_compiler_flag="-o out/conftest2.$ac_objext"
17859   # Insert the option either (1) after the last *FLAGS variable, or
17860   # (2) before a word containing "conftest.", or (3) at the end.
17861   # Note that $ac_compile itself does not contain backslashes and begins
17862   # with a dollar sign (not a hyphen), so the echo should work correctly.
17863   lt_compile=`echo "$ac_compile" | $SED \
17864   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17865   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17866   -e 's:$: $lt_compiler_flag:'`
17867   (eval echo "\"\$as_me:17867: $lt_compile\"" >&5)
17868   (eval "$lt_compile" 2>out/conftest.err)
17869   ac_status=$?
17870   cat out/conftest.err >&5
17871   echo "$as_me:17871: \$? = $ac_status" >&5
17872   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17873   then
17874     # The compiler can only warn and ignore the option if not recognized
17875     # So say no if there are warnings
17876     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17877     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17878     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17879       lt_cv_prog_compiler_c_o_GCJ=yes
17880     fi
17881   fi
17882   chmod u+w . 2>&5
17883   $rm conftest*
17884   # SGI C++ compiler will create directory out/ii_files/ for
17885   # template instantiation
17886   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17887   $rm out/* && rmdir out
17888   cd ..
17889   rmdir conftest
17890   $rm conftest*
17891
17892fi
17893echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17894echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17895
17896
17897hard_links="nottested"
17898if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17899  # do not overwrite the value of need_locks provided by the user
17900  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17901echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17902  hard_links=yes
17903  $rm conftest*
17904  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17905  touch conftest.a
17906  ln conftest.a conftest.b 2>&5 || hard_links=no
17907  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17908  echo "$as_me:$LINENO: result: $hard_links" >&5
17909echo "${ECHO_T}$hard_links" >&6
17910  if test "$hard_links" = no; then
17911    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17912echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17913    need_locks=warn
17914  fi
17915else
17916  need_locks=no
17917fi
17918
17919echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17920echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17921
17922  runpath_var=
17923  allow_undefined_flag_GCJ=
17924  enable_shared_with_static_runtimes_GCJ=no
17925  archive_cmds_GCJ=
17926  archive_expsym_cmds_GCJ=
17927  old_archive_From_new_cmds_GCJ=
17928  old_archive_from_expsyms_cmds_GCJ=
17929  export_dynamic_flag_spec_GCJ=
17930  whole_archive_flag_spec_GCJ=
17931  thread_safe_flag_spec_GCJ=
17932  hardcode_libdir_flag_spec_GCJ=
17933  hardcode_libdir_flag_spec_ld_GCJ=
17934  hardcode_libdir_separator_GCJ=
17935  hardcode_direct_GCJ=no
17936  hardcode_minus_L_GCJ=no
17937  hardcode_shlibpath_var_GCJ=unsupported
17938  link_all_deplibs_GCJ=unknown
17939  hardcode_automatic_GCJ=no
17940  module_cmds_GCJ=
17941  module_expsym_cmds_GCJ=
17942  always_export_symbols_GCJ=no
17943  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17944  # include_expsyms should be a list of space-separated symbols to be *always*
17945  # included in the symbol list
17946  include_expsyms_GCJ=
17947  # exclude_expsyms can be an extended regexp of symbols to exclude
17948  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17949  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17950  # as well as any symbol that contains `d'.
17951  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17952  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17953  # platforms (ab)use it in PIC code, but their linkers get confused if
17954  # the symbol is explicitly referenced.  Since portable code cannot
17955  # rely on this symbol name, it's probably fine to never include it in
17956  # preloaded symbol tables.
17957  extract_expsyms_cmds=
17958  # Just being paranoid about ensuring that cc_basename is set.
17959  for cc_temp in $compiler""; do
17960  case $cc_temp in
17961    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17962    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17963    \-*) ;;
17964    *) break;;
17965  esac
17966done
17967cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17968
17969  case $host_os in
17970  cygwin* | mingw* | pw32*)
17971    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17972    # When not using gcc, we currently assume that we are using
17973    # Microsoft Visual C++.
17974    if test "$GCC" != yes; then
17975      with_gnu_ld=no
17976    fi
17977    ;;
17978  interix*)
17979    # we just hope/assume this is gcc and not c89 (= MSVC++)
17980    with_gnu_ld=yes
17981    ;;
17982  openbsd*)
17983    with_gnu_ld=no
17984    ;;
17985  esac
17986
17987  ld_shlibs_GCJ=yes
17988  if test "$with_gnu_ld" = yes; then
17989    # If archive_cmds runs LD, not CC, wlarc should be empty
17990    wlarc='${wl}'
17991
17992    # Set some defaults for GNU ld with shared library support. These
17993    # are reset later if shared libraries are not supported. Putting them
17994    # here allows them to be overridden if necessary.
17995    runpath_var=LD_RUN_PATH
17996    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17997    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17998    # ancient GNU ld didn't support --whole-archive et. al.
17999    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18000	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18001      else
18002  	whole_archive_flag_spec_GCJ=
18003    fi
18004    supports_anon_versioning=no
18005    case `$LD -v 2>/dev/null` in
18006      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18007      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18008      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18009      *\ 2.11.*) ;; # other 2.11 versions
18010      *) supports_anon_versioning=yes ;;
18011    esac
18012
18013    # See if GNU ld supports shared libraries.
18014    case $host_os in
18015    aix3* | aix4* | aix5*)
18016      # On AIX/PPC, the GNU linker is very broken
18017      if test "$host_cpu" != ia64; then
18018	ld_shlibs_GCJ=no
18019	cat <<EOF 1>&2
18020
18021*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18022*** to be unable to reliably create shared libraries on AIX.
18023*** Therefore, libtool is disabling shared libraries support.  If you
18024*** really care for shared libraries, you may want to modify your PATH
18025*** so that a non-GNU linker is found, and then restart.
18026
18027EOF
18028      fi
18029      ;;
18030
18031    amigaos*)
18032      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)'
18033      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18034      hardcode_minus_L_GCJ=yes
18035
18036      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18037      # that the semantics of dynamic libraries on AmigaOS, at least up
18038      # to version 4, is to share data among multiple programs linked
18039      # with the same dynamic library.  Since this doesn't match the
18040      # behavior of shared libraries on other platforms, we can't use
18041      # them.
18042      ld_shlibs_GCJ=no
18043      ;;
18044
18045    beos*)
18046      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18047	allow_undefined_flag_GCJ=unsupported
18048	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18049	# support --undefined.  This deserves some investigation.  FIXME
18050	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18051      else
18052	ld_shlibs_GCJ=no
18053      fi
18054      ;;
18055
18056    cygwin* | mingw* | pw32*)
18057      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18058      # as there is no search path for DLLs.
18059      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060      allow_undefined_flag_GCJ=unsupported
18061      always_export_symbols_GCJ=no
18062      enable_shared_with_static_runtimes_GCJ=yes
18063      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18064
18065      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18066        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18067	# If the export-symbols file already is a .def file (1st line
18068	# is EXPORTS), use it as is; otherwise, prepend...
18069	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18070	  cp $export_symbols $output_objdir/$soname.def;
18071	else
18072	  echo EXPORTS > $output_objdir/$soname.def;
18073	  cat $export_symbols >> $output_objdir/$soname.def;
18074	fi~
18075	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18076      else
18077	ld_shlibs_GCJ=no
18078      fi
18079      ;;
18080
18081    interix3*)
18082      hardcode_direct_GCJ=no
18083      hardcode_shlibpath_var_GCJ=no
18084      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18085      export_dynamic_flag_spec_GCJ='${wl}-E'
18086      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18087      # Instead, shared libraries are loaded at an image base (0x10000000 by
18088      # default) and relocated if they conflict, which is a slow very memory
18089      # consuming and fragmenting process.  To avoid this, we pick a random,
18090      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18091      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18092      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'
18093      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'
18094      ;;
18095
18096    linux*)
18097      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18098	tmp_addflag=
18099	case $cc_basename,$host_cpu in
18100	pgcc*)				# Portland Group C compiler
18101	  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'
18102	  tmp_addflag=' $pic_flag'
18103	  ;;
18104	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18105	  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'
18106	  tmp_addflag=' $pic_flag -Mnomain' ;;
18107	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18108	  tmp_addflag=' -i_dynamic' ;;
18109	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18110	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18111	ifc* | ifort*)			# Intel Fortran compiler
18112	  tmp_addflag=' -nofor_main' ;;
18113	esac
18114	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18115
18116	if test $supports_anon_versioning = yes; then
18117	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18118  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18119  $echo "local: *; };" >> $output_objdir/$libname.ver~
18120	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18121	fi
18122      else
18123	ld_shlibs_GCJ=no
18124      fi
18125      ;;
18126
18127    netbsd*)
18128      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18129	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18130	wlarc=
18131      else
18132	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18133	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18134      fi
18135      ;;
18136
18137    solaris*)
18138      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18139	ld_shlibs_GCJ=no
18140	cat <<EOF 1>&2
18141
18142*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18143*** create shared libraries on Solaris systems.  Therefore, libtool
18144*** is disabling shared libraries support.  We urge you to upgrade GNU
18145*** binutils to release 2.9.1 or newer.  Another option is to modify
18146*** your PATH or compiler configuration so that the native linker is
18147*** used, and then restart.
18148
18149EOF
18150      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18151	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18152	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18153      else
18154	ld_shlibs_GCJ=no
18155      fi
18156      ;;
18157
18158    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18159      case `$LD -v 2>&1` in
18160        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18161	ld_shlibs_GCJ=no
18162	cat <<_LT_EOF 1>&2
18163
18164*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18165*** reliably create shared libraries on SCO systems.  Therefore, libtool
18166*** is disabling shared libraries support.  We urge you to upgrade GNU
18167*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18168*** your PATH or compiler configuration so that the native linker is
18169*** used, and then restart.
18170
18171_LT_EOF
18172	;;
18173	*)
18174	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18175	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18176	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18177	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18178	  else
18179	    ld_shlibs_GCJ=no
18180	  fi
18181	;;
18182      esac
18183      ;;
18184
18185    sunos4*)
18186      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18187      wlarc=
18188      hardcode_direct_GCJ=yes
18189      hardcode_shlibpath_var_GCJ=no
18190      ;;
18191
18192    *)
18193      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18194	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18195	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18196      else
18197	ld_shlibs_GCJ=no
18198      fi
18199      ;;
18200    esac
18201
18202    if test "$ld_shlibs_GCJ" = no; then
18203      runpath_var=
18204      hardcode_libdir_flag_spec_GCJ=
18205      export_dynamic_flag_spec_GCJ=
18206      whole_archive_flag_spec_GCJ=
18207    fi
18208  else
18209    # PORTME fill in a description of your system's linker (not GNU ld)
18210    case $host_os in
18211    aix3*)
18212      allow_undefined_flag_GCJ=unsupported
18213      always_export_symbols_GCJ=yes
18214      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'
18215      # Note: this linker hardcodes the directories in LIBPATH if there
18216      # are no directories specified by -L.
18217      hardcode_minus_L_GCJ=yes
18218      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18219	# Neither direct hardcoding nor static linking is supported with a
18220	# broken collect2.
18221	hardcode_direct_GCJ=unsupported
18222      fi
18223      ;;
18224
18225    aix4* | aix5*)
18226      if test "$host_cpu" = ia64; then
18227	# On IA64, the linker does run time linking by default, so we don't
18228	# have to do anything special.
18229	aix_use_runtimelinking=no
18230	exp_sym_flag='-Bexport'
18231	no_entry_flag=""
18232      else
18233	# If we're using GNU nm, then we don't want the "-C" option.
18234	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18235	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18236	  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'
18237	else
18238	  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'
18239	fi
18240	aix_use_runtimelinking=no
18241
18242	# Test if we are trying to use run time linking or normal
18243	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18244	# need to do runtime linking.
18245	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18246	  for ld_flag in $LDFLAGS; do
18247  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18248  	    aix_use_runtimelinking=yes
18249  	    break
18250  	  fi
18251	  done
18252	  ;;
18253	esac
18254
18255	exp_sym_flag='-bexport'
18256	no_entry_flag='-bnoentry'
18257      fi
18258
18259      # When large executables or shared objects are built, AIX ld can
18260      # have problems creating the table of contents.  If linking a library
18261      # or program results in "error TOC overflow" add -mminimal-toc to
18262      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18263      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18264
18265      archive_cmds_GCJ=''
18266      hardcode_direct_GCJ=yes
18267      hardcode_libdir_separator_GCJ=':'
18268      link_all_deplibs_GCJ=yes
18269
18270      if test "$GCC" = yes; then
18271	case $host_os in aix4.[012]|aix4.[012].*)
18272	# We only want to do this on AIX 4.2 and lower, the check
18273	# below for broken collect2 doesn't work under 4.3+
18274	  collect2name=`${CC} -print-prog-name=collect2`
18275	  if test -f "$collect2name" && \
18276  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18277	  then
18278  	  # We have reworked collect2
18279  	  hardcode_direct_GCJ=yes
18280	  else
18281  	  # We have old collect2
18282  	  hardcode_direct_GCJ=unsupported
18283  	  # It fails to find uninstalled libraries when the uninstalled
18284  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18285  	  # to unsupported forces relinking
18286  	  hardcode_minus_L_GCJ=yes
18287  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18288  	  hardcode_libdir_separator_GCJ=
18289	  fi
18290	  ;;
18291	esac
18292	shared_flag='-shared'
18293	if test "$aix_use_runtimelinking" = yes; then
18294	  shared_flag="$shared_flag "'${wl}-G'
18295	fi
18296      else
18297	# not using gcc
18298	if test "$host_cpu" = ia64; then
18299  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18300  	# chokes on -Wl,-G. The following line is correct:
18301	  shared_flag='-G'
18302	else
18303	  if test "$aix_use_runtimelinking" = yes; then
18304	    shared_flag='${wl}-G'
18305	  else
18306	    shared_flag='${wl}-bM:SRE'
18307	  fi
18308	fi
18309      fi
18310
18311      # It seems that -bexpall does not export symbols beginning with
18312      # underscore (_), so it is better to generate a list of symbols to export.
18313      always_export_symbols_GCJ=yes
18314      if test "$aix_use_runtimelinking" = yes; then
18315	# Warning - without using the other runtime loading flags (-brtl),
18316	# -berok will link without error, but may produce a broken library.
18317	allow_undefined_flag_GCJ='-berok'
18318       # Determine the default libpath from the value encoded in an empty executable.
18319       cat >conftest.$ac_ext <<_ACEOF
18320/* confdefs.h.  */
18321_ACEOF
18322cat confdefs.h >>conftest.$ac_ext
18323cat >>conftest.$ac_ext <<_ACEOF
18324/* end confdefs.h.  */
18325
18326int
18327main ()
18328{
18329
18330  ;
18331  return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext conftest$ac_exeext
18335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336  (eval $ac_link) 2>conftest.er1
18337  ac_status=$?
18338  grep -v '^ *+' conftest.er1 >conftest.err
18339  rm -f conftest.er1
18340  cat conftest.err >&5
18341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); } &&
18343	 { ac_try='test -z "$ac_c_werror_flag"
18344			 || test ! -s conftest.err'
18345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346  (eval $ac_try) 2>&5
18347  ac_status=$?
18348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349  (exit $ac_status); }; } &&
18350	 { ac_try='test -s conftest$ac_exeext'
18351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352  (eval $ac_try) 2>&5
18353  ac_status=$?
18354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); }; }; then
18356
18357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18358}'`
18359# Check for a 64-bit object if we didn't find anything.
18360if 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; }
18361}'`; fi
18362else
18363  echo "$as_me: failed program was:" >&5
18364sed 's/^/| /' conftest.$ac_ext >&5
18365
18366fi
18367rm -f conftest.err conftest.$ac_objext \
18368      conftest$ac_exeext conftest.$ac_ext
18369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18370
18371       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18372	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"
18373       else
18374	if test "$host_cpu" = ia64; then
18375	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18376	  allow_undefined_flag_GCJ="-z nodefs"
18377	  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"
18378	else
18379	 # Determine the default libpath from the value encoded in an empty executable.
18380	 cat >conftest.$ac_ext <<_ACEOF
18381/* confdefs.h.  */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h.  */
18386
18387int
18388main ()
18389{
18390
18391  ;
18392  return 0;
18393}
18394_ACEOF
18395rm -f conftest.$ac_objext conftest$ac_exeext
18396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18397  (eval $ac_link) 2>conftest.er1
18398  ac_status=$?
18399  grep -v '^ *+' conftest.er1 >conftest.err
18400  rm -f conftest.er1
18401  cat conftest.err >&5
18402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403  (exit $ac_status); } &&
18404	 { ac_try='test -z "$ac_c_werror_flag"
18405			 || test ! -s conftest.err'
18406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407  (eval $ac_try) 2>&5
18408  ac_status=$?
18409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410  (exit $ac_status); }; } &&
18411	 { ac_try='test -s conftest$ac_exeext'
18412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413  (eval $ac_try) 2>&5
18414  ac_status=$?
18415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416  (exit $ac_status); }; }; then
18417
18418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18419}'`
18420# Check for a 64-bit object if we didn't find anything.
18421if 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; }
18422}'`; fi
18423else
18424  echo "$as_me: failed program was:" >&5
18425sed 's/^/| /' conftest.$ac_ext >&5
18426
18427fi
18428rm -f conftest.err conftest.$ac_objext \
18429      conftest$ac_exeext conftest.$ac_ext
18430if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18431
18432	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18433	  # Warning - without using the other run time loading flags,
18434	  # -berok will link without error, but may produce a broken library.
18435	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18436	  allow_undefined_flag_GCJ=' ${wl}-berok'
18437	  # Exported symbols can be pulled into shared objects from archives
18438	  whole_archive_flag_spec_GCJ='$convenience'
18439	  archive_cmds_need_lc_GCJ=yes
18440	  # This is similar to how AIX traditionally builds its shared libraries.
18441	  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'
18442	fi
18443      fi
18444      ;;
18445
18446    amigaos*)
18447      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)'
18448      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18449      hardcode_minus_L_GCJ=yes
18450      # see comment about different semantics on the GNU ld section
18451      ld_shlibs_GCJ=no
18452      ;;
18453
18454    bsdi[45]*)
18455      export_dynamic_flag_spec_GCJ=-rdynamic
18456      ;;
18457
18458    cygwin* | mingw* | pw32*)
18459      # When not using gcc, we currently assume that we are using
18460      # Microsoft Visual C++.
18461      # hardcode_libdir_flag_spec is actually meaningless, as there is
18462      # no search path for DLLs.
18463      hardcode_libdir_flag_spec_GCJ=' '
18464      allow_undefined_flag_GCJ=unsupported
18465      # Tell ltmain to make .lib files, not .a files.
18466      libext=lib
18467      # Tell ltmain to make .dll files, not .so files.
18468      shrext_cmds=".dll"
18469      # FIXME: Setting linknames here is a bad hack.
18470      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18471      # The linker will automatically build a .lib file if we build a DLL.
18472      old_archive_From_new_cmds_GCJ='true'
18473      # FIXME: Should let the user specify the lib program.
18474      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18475      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18476      enable_shared_with_static_runtimes_GCJ=yes
18477      ;;
18478
18479    darwin* | rhapsody*)
18480      case $host_os in
18481        rhapsody* | darwin1.[012])
18482         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18483         ;;
18484       *) # Darwin 1.3 on
18485         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18486           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18487         else
18488           case ${MACOSX_DEPLOYMENT_TARGET} in
18489             10.[012])
18490               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18491               ;;
18492             10.*)
18493               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18494               ;;
18495           esac
18496         fi
18497         ;;
18498      esac
18499      archive_cmds_need_lc_GCJ=no
18500      hardcode_direct_GCJ=no
18501      hardcode_automatic_GCJ=yes
18502      hardcode_shlibpath_var_GCJ=unsupported
18503      whole_archive_flag_spec_GCJ=''
18504      link_all_deplibs_GCJ=yes
18505    if test "$GCC" = yes ; then
18506    	output_verbose_link_cmd='echo'
18507        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18508      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18509      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18510      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}'
18511      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}'
18512    else
18513      case $cc_basename in
18514        xlc*)
18515         output_verbose_link_cmd='echo'
18516         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18517         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18518          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18519         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}'
18520          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}'
18521          ;;
18522       *)
18523         ld_shlibs_GCJ=no
18524          ;;
18525      esac
18526    fi
18527      ;;
18528
18529    dgux*)
18530      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18531      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18532      hardcode_shlibpath_var_GCJ=no
18533      ;;
18534
18535    freebsd1*)
18536      ld_shlibs_GCJ=no
18537      ;;
18538
18539    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18540    # support.  Future versions do this automatically, but an explicit c++rt0.o
18541    # does not break anything, and helps significantly (at the cost of a little
18542    # extra space).
18543    freebsd2.2*)
18544      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18545      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18546      hardcode_direct_GCJ=yes
18547      hardcode_shlibpath_var_GCJ=no
18548      ;;
18549
18550    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18551    freebsd2*)
18552      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18553      hardcode_direct_GCJ=yes
18554      hardcode_minus_L_GCJ=yes
18555      hardcode_shlibpath_var_GCJ=no
18556      ;;
18557
18558    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18559    freebsd* | kfreebsd*-gnu | dragonfly*)
18560      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18561      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18562      hardcode_direct_GCJ=yes
18563      hardcode_shlibpath_var_GCJ=no
18564      ;;
18565
18566    hpux9*)
18567      if test "$GCC" = yes; then
18568	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'
18569      else
18570	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'
18571      fi
18572      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18573      hardcode_libdir_separator_GCJ=:
18574      hardcode_direct_GCJ=yes
18575
18576      # hardcode_minus_L: Not really in the search PATH,
18577      # but as the default location of the library.
18578      hardcode_minus_L_GCJ=yes
18579      export_dynamic_flag_spec_GCJ='${wl}-E'
18580      ;;
18581
18582    hpux10*)
18583      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18584	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18585      else
18586	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18587      fi
18588      if test "$with_gnu_ld" = no; then
18589	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18590	hardcode_libdir_separator_GCJ=:
18591
18592	hardcode_direct_GCJ=yes
18593	export_dynamic_flag_spec_GCJ='${wl}-E'
18594
18595	# hardcode_minus_L: Not really in the search PATH,
18596	# but as the default location of the library.
18597	hardcode_minus_L_GCJ=yes
18598      fi
18599      ;;
18600
18601    hpux11*)
18602      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18603	case $host_cpu in
18604	hppa*64*)
18605	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18606	  ;;
18607	ia64*)
18608	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18609	  ;;
18610	*)
18611	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18612	  ;;
18613	esac
18614      else
18615	case $host_cpu in
18616	hppa*64*)
18617	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18618	  ;;
18619	ia64*)
18620	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18621	  ;;
18622	*)
18623	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18624	  ;;
18625	esac
18626      fi
18627      if test "$with_gnu_ld" = no; then
18628	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18629	hardcode_libdir_separator_GCJ=:
18630
18631	case $host_cpu in
18632	hppa*64*|ia64*)
18633	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18634	  hardcode_direct_GCJ=no
18635	  hardcode_shlibpath_var_GCJ=no
18636	  ;;
18637	*)
18638	  hardcode_direct_GCJ=yes
18639	  export_dynamic_flag_spec_GCJ='${wl}-E'
18640
18641	  # hardcode_minus_L: Not really in the search PATH,
18642	  # but as the default location of the library.
18643	  hardcode_minus_L_GCJ=yes
18644	  ;;
18645	esac
18646      fi
18647      ;;
18648
18649    irix5* | irix6* | nonstopux*)
18650      if test "$GCC" = yes; then
18651	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'
18652      else
18653	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'
18654	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18655      fi
18656      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18657      hardcode_libdir_separator_GCJ=:
18658      link_all_deplibs_GCJ=yes
18659      ;;
18660
18661    netbsd*)
18662      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18663	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18664      else
18665	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18666      fi
18667      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18668      hardcode_direct_GCJ=yes
18669      hardcode_shlibpath_var_GCJ=no
18670      ;;
18671
18672    newsos6)
18673      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18674      hardcode_direct_GCJ=yes
18675      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18676      hardcode_libdir_separator_GCJ=:
18677      hardcode_shlibpath_var_GCJ=no
18678      ;;
18679
18680    openbsd*)
18681      hardcode_direct_GCJ=yes
18682      hardcode_shlibpath_var_GCJ=no
18683      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18684	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18685	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18686	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18687	export_dynamic_flag_spec_GCJ='${wl}-E'
18688      else
18689       case $host_os in
18690	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18691	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18692	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18693	   ;;
18694	 *)
18695	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18696	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18697	   ;;
18698       esac
18699      fi
18700      ;;
18701
18702    os2*)
18703      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18704      hardcode_minus_L_GCJ=yes
18705      allow_undefined_flag_GCJ=unsupported
18706      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'
18707      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18708      ;;
18709
18710    osf3*)
18711      if test "$GCC" = yes; then
18712	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18713	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'
18714      else
18715	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18716	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'
18717      fi
18718      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18719      hardcode_libdir_separator_GCJ=:
18720      ;;
18721
18722    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18723      if test "$GCC" = yes; then
18724	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18725	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'
18726	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18727      else
18728	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18729	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'
18730	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~
18731	$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'
18732
18733	# Both c and cxx compiler support -rpath directly
18734	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18735      fi
18736      hardcode_libdir_separator_GCJ=:
18737      ;;
18738
18739    solaris*)
18740      no_undefined_flag_GCJ=' -z text'
18741      if test "$GCC" = yes; then
18742	wlarc='${wl}'
18743	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18744	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18745	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18746      else
18747	wlarc=''
18748	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18749	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18750  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18751      fi
18752      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18753      hardcode_shlibpath_var_GCJ=no
18754      case $host_os in
18755      solaris2.[0-5] | solaris2.[0-5].*) ;;
18756      *)
18757 	# The compiler driver will combine linker options so we
18758 	# cannot just pass the convience library names through
18759 	# without $wl, iff we do not link with $LD.
18760 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18761 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18762 	case $wlarc in
18763 	'')
18764 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18765 	*)
18766 	  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' ;;
18767 	esac ;;
18768      esac
18769      link_all_deplibs_GCJ=yes
18770      ;;
18771
18772    sunos4*)
18773      if test "x$host_vendor" = xsequent; then
18774	# Use $CC to link under sequent, because it throws in some extra .o
18775	# files that make .init and .fini sections work.
18776	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18777      else
18778	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18779      fi
18780      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18781      hardcode_direct_GCJ=yes
18782      hardcode_minus_L_GCJ=yes
18783      hardcode_shlibpath_var_GCJ=no
18784      ;;
18785
18786    sysv4)
18787      case $host_vendor in
18788	sni)
18789	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18790	  hardcode_direct_GCJ=yes # is this really true???
18791	;;
18792	siemens)
18793	  ## LD is ld it makes a PLAMLIB
18794	  ## CC just makes a GrossModule.
18795	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18796	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18797	  hardcode_direct_GCJ=no
18798        ;;
18799	motorola)
18800	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18801	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18802	;;
18803      esac
18804      runpath_var='LD_RUN_PATH'
18805      hardcode_shlibpath_var_GCJ=no
18806      ;;
18807
18808    sysv4.3*)
18809      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18810      hardcode_shlibpath_var_GCJ=no
18811      export_dynamic_flag_spec_GCJ='-Bexport'
18812      ;;
18813
18814    sysv4*MP*)
18815      if test -d /usr/nec; then
18816	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18817	hardcode_shlibpath_var_GCJ=no
18818	runpath_var=LD_RUN_PATH
18819	hardcode_runpath_var=yes
18820	ld_shlibs_GCJ=yes
18821      fi
18822      ;;
18823
18824    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18825      no_undefined_flag_GCJ='${wl}-z,text'
18826      archive_cmds_need_lc_GCJ=no
18827      hardcode_shlibpath_var_GCJ=no
18828      runpath_var='LD_RUN_PATH'
18829
18830      if test "$GCC" = yes; then
18831	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18832	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18833      else
18834	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18835	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18836      fi
18837      ;;
18838
18839    sysv5* | sco3.2v5* | sco5v6*)
18840      # Note: We can NOT use -z defs as we might desire, because we do not
18841      # link with -lc, and that would cause any symbols used from libc to
18842      # always be unresolved, which means just about no library would
18843      # ever link correctly.  If we're not using GNU ld we use -z text
18844      # though, which does catch some bad symbols but isn't as heavy-handed
18845      # as -z defs.
18846      no_undefined_flag_GCJ='${wl}-z,text'
18847      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18848      archive_cmds_need_lc_GCJ=no
18849      hardcode_shlibpath_var_GCJ=no
18850      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18851      hardcode_libdir_separator_GCJ=':'
18852      link_all_deplibs_GCJ=yes
18853      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18854      runpath_var='LD_RUN_PATH'
18855
18856      if test "$GCC" = yes; then
18857	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18858	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18859      else
18860	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18861	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18862      fi
18863      ;;
18864
18865    uts4*)
18866      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18867      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18868      hardcode_shlibpath_var_GCJ=no
18869      ;;
18870
18871    *)
18872      ld_shlibs_GCJ=no
18873      ;;
18874    esac
18875  fi
18876
18877echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18878echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18879test "$ld_shlibs_GCJ" = no && can_build_shared=no
18880
18881#
18882# Do we need to explicitly link libc?
18883#
18884case "x$archive_cmds_need_lc_GCJ" in
18885x|xyes)
18886  # Assume -lc should be added
18887  archive_cmds_need_lc_GCJ=yes
18888
18889  if test "$enable_shared" = yes && test "$GCC" = yes; then
18890    case $archive_cmds_GCJ in
18891    *'~'*)
18892      # FIXME: we may have to deal with multi-command sequences.
18893      ;;
18894    '$CC '*)
18895      # Test whether the compiler implicitly links with -lc since on some
18896      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18897      # to ld, don't add -lc before -lgcc.
18898      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18899echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18900      $rm conftest*
18901      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18902
18903      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18904  (eval $ac_compile) 2>&5
18905  ac_status=$?
18906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907  (exit $ac_status); } 2>conftest.err; then
18908        soname=conftest
18909        lib=conftest
18910        libobjs=conftest.$ac_objext
18911        deplibs=
18912        wl=$lt_prog_compiler_wl_GCJ
18913	pic_flag=$lt_prog_compiler_pic_GCJ
18914        compiler_flags=-v
18915        linker_flags=-v
18916        verstring=
18917        output_objdir=.
18918        libname=conftest
18919        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18920        allow_undefined_flag_GCJ=
18921        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18922  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18923  ac_status=$?
18924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925  (exit $ac_status); }
18926        then
18927	  archive_cmds_need_lc_GCJ=no
18928        else
18929	  archive_cmds_need_lc_GCJ=yes
18930        fi
18931        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18932      else
18933        cat conftest.err 1>&5
18934      fi
18935      $rm conftest*
18936      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18937echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18938      ;;
18939    esac
18940  fi
18941  ;;
18942esac
18943
18944echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18945echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18946library_names_spec=
18947libname_spec='lib$name'
18948soname_spec=
18949shrext_cmds=".so"
18950postinstall_cmds=
18951postuninstall_cmds=
18952finish_cmds=
18953finish_eval=
18954shlibpath_var=
18955shlibpath_overrides_runpath=unknown
18956version_type=none
18957dynamic_linker="$host_os ld.so"
18958sys_lib_dlsearch_path_spec="/lib /usr/lib"
18959if test "$GCC" = yes; then
18960  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18961  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18962    # if the path contains ";" then we assume it to be the separator
18963    # otherwise default to the standard path separator (i.e. ":") - it is
18964    # assumed that no part of a normal pathname contains ";" but that should
18965    # okay in the real world where ";" in dirpaths is itself problematic.
18966    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18967  else
18968    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18969  fi
18970else
18971  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18972fi
18973need_lib_prefix=unknown
18974hardcode_into_libs=no
18975
18976# when you set need_version to no, make sure it does not cause -set_version
18977# flags to be left without arguments
18978need_version=unknown
18979
18980case $host_os in
18981aix3*)
18982  version_type=linux
18983  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18984  shlibpath_var=LIBPATH
18985
18986  # AIX 3 has no versioning support, so we append a major version to the name.
18987  soname_spec='${libname}${release}${shared_ext}$major'
18988  ;;
18989
18990aix4* | aix5*)
18991  version_type=linux
18992  need_lib_prefix=no
18993  need_version=no
18994  hardcode_into_libs=yes
18995  if test "$host_cpu" = ia64; then
18996    # AIX 5 supports IA64
18997    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18998    shlibpath_var=LD_LIBRARY_PATH
18999  else
19000    # With GCC up to 2.95.x, collect2 would create an import file
19001    # for dependence libraries.  The import file would start with
19002    # the line `#! .'.  This would cause the generated library to
19003    # depend on `.', always an invalid library.  This was fixed in
19004    # development snapshots of GCC prior to 3.0.
19005    case $host_os in
19006      aix4 | aix4.[01] | aix4.[01].*)
19007      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19008	   echo ' yes '
19009	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19010	:
19011      else
19012	can_build_shared=no
19013      fi
19014      ;;
19015    esac
19016    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19017    # soname into executable. Probably we can add versioning support to
19018    # collect2, so additional links can be useful in future.
19019    if test "$aix_use_runtimelinking" = yes; then
19020      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19021      # instead of lib<name>.a to let people know that these are not
19022      # typical AIX shared libraries.
19023      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024    else
19025      # We preserve .a as extension for shared libraries through AIX4.2
19026      # and later when we are not doing run time linking.
19027      library_names_spec='${libname}${release}.a $libname.a'
19028      soname_spec='${libname}${release}${shared_ext}$major'
19029    fi
19030    shlibpath_var=LIBPATH
19031  fi
19032  ;;
19033
19034amigaos*)
19035  library_names_spec='$libname.ixlibrary $libname.a'
19036  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19037  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'
19038  ;;
19039
19040beos*)
19041  library_names_spec='${libname}${shared_ext}'
19042  dynamic_linker="$host_os ld.so"
19043  shlibpath_var=LIBRARY_PATH
19044  ;;
19045
19046bsdi[45]*)
19047  version_type=linux
19048  need_version=no
19049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19050  soname_spec='${libname}${release}${shared_ext}$major'
19051  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19052  shlibpath_var=LD_LIBRARY_PATH
19053  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19054  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19055  # the default ld.so.conf also contains /usr/contrib/lib and
19056  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19057  # libtool to hard-code these into programs
19058  ;;
19059
19060cygwin* | mingw* | pw32*)
19061  version_type=windows
19062  shrext_cmds=".dll"
19063  need_version=no
19064  need_lib_prefix=no
19065
19066  case $GCC,$host_os in
19067  yes,cygwin* | yes,mingw* | yes,pw32*)
19068    library_names_spec='$libname.dll.a'
19069    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19070    postinstall_cmds='base_file=`basename \${file}`~
19071      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19072      dldir=$destdir/`dirname \$dlpath`~
19073      test -d \$dldir || mkdir -p \$dldir~
19074      $install_prog $dir/$dlname \$dldir/$dlname~
19075      chmod a+x \$dldir/$dlname'
19076    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19077      dlpath=$dir/\$dldll~
19078       $rm \$dlpath'
19079    shlibpath_overrides_runpath=yes
19080
19081    case $host_os in
19082    cygwin*)
19083      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19084      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19085      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19086      ;;
19087    mingw*)
19088      # MinGW DLLs use traditional 'lib' prefix
19089      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19090      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19091      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19092        # It is most probably a Windows format PATH printed by
19093        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19094        # path with ; separators, and with drive letters. We can handle the
19095        # drive letters (cygwin fileutils understands them), so leave them,
19096        # especially as we might pass files found there to a mingw objdump,
19097        # which wouldn't understand a cygwinified path. Ahh.
19098        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19099      else
19100        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19101      fi
19102      ;;
19103    pw32*)
19104      # pw32 DLLs use 'pw' prefix rather than 'lib'
19105      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19106      ;;
19107    esac
19108    ;;
19109
19110  *)
19111    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19112    ;;
19113  esac
19114  dynamic_linker='Win32 ld.exe'
19115  # FIXME: first we should search . and the directory the executable is in
19116  shlibpath_var=PATH
19117  ;;
19118
19119darwin* | rhapsody*)
19120  dynamic_linker="$host_os dyld"
19121  version_type=darwin
19122  need_lib_prefix=no
19123  need_version=no
19124  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19125  soname_spec='${libname}${release}${major}$shared_ext'
19126  shlibpath_overrides_runpath=yes
19127  shlibpath_var=DYLD_LIBRARY_PATH
19128  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19129  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19130  if test "$GCC" = yes; then
19131    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"`
19132  else
19133    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19134  fi
19135  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19136  ;;
19137
19138dgux*)
19139  version_type=linux
19140  need_lib_prefix=no
19141  need_version=no
19142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19143  soname_spec='${libname}${release}${shared_ext}$major'
19144  shlibpath_var=LD_LIBRARY_PATH
19145  ;;
19146
19147freebsd1*)
19148  dynamic_linker=no
19149  ;;
19150
19151kfreebsd*-gnu)
19152  version_type=linux
19153  need_lib_prefix=no
19154  need_version=no
19155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19156  soname_spec='${libname}${release}${shared_ext}$major'
19157  shlibpath_var=LD_LIBRARY_PATH
19158  shlibpath_overrides_runpath=no
19159  hardcode_into_libs=yes
19160  dynamic_linker='GNU ld.so'
19161  ;;
19162
19163freebsd* | dragonfly*)
19164  # DragonFly does not have aout.  When/if they implement a new
19165  # versioning mechanism, adjust this.
19166  if test -x /usr/bin/objformat; then
19167    objformat=`/usr/bin/objformat`
19168  else
19169    case $host_os in
19170    freebsd[123]*) objformat=aout ;;
19171    *) objformat=elf ;;
19172    esac
19173  fi
19174  version_type=freebsd-$objformat
19175  case $version_type in
19176    freebsd-elf*)
19177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19178      need_version=no
19179      need_lib_prefix=no
19180      ;;
19181    freebsd-*)
19182      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19183      need_version=yes
19184      ;;
19185  esac
19186  shlibpath_var=LD_LIBRARY_PATH
19187  case $host_os in
19188  freebsd2*)
19189    shlibpath_overrides_runpath=yes
19190    ;;
19191  freebsd3.[01]* | freebsdelf3.[01]*)
19192    shlibpath_overrides_runpath=yes
19193    hardcode_into_libs=yes
19194    ;;
19195  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19196  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19197    shlibpath_overrides_runpath=no
19198    hardcode_into_libs=yes
19199    ;;
19200  freebsd*) # from 4.6 on
19201    shlibpath_overrides_runpath=yes
19202    hardcode_into_libs=yes
19203    ;;
19204  esac
19205  ;;
19206
19207gnu*)
19208  version_type=linux
19209  need_lib_prefix=no
19210  need_version=no
19211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19212  soname_spec='${libname}${release}${shared_ext}$major'
19213  shlibpath_var=LD_LIBRARY_PATH
19214  hardcode_into_libs=yes
19215  ;;
19216
19217hpux9* | hpux10* | hpux11*)
19218  # Give a soname corresponding to the major version so that dld.sl refuses to
19219  # link against other versions.
19220  version_type=sunos
19221  need_lib_prefix=no
19222  need_version=no
19223  case $host_cpu in
19224  ia64*)
19225    shrext_cmds='.so'
19226    hardcode_into_libs=yes
19227    dynamic_linker="$host_os dld.so"
19228    shlibpath_var=LD_LIBRARY_PATH
19229    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231    soname_spec='${libname}${release}${shared_ext}$major'
19232    if test "X$HPUX_IA64_MODE" = X32; then
19233      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19234    else
19235      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19236    fi
19237    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19238    ;;
19239   hppa*64*)
19240     shrext_cmds='.sl'
19241     hardcode_into_libs=yes
19242     dynamic_linker="$host_os dld.sl"
19243     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19244     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19246     soname_spec='${libname}${release}${shared_ext}$major'
19247     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19248     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19249     ;;
19250   *)
19251    shrext_cmds='.sl'
19252    dynamic_linker="$host_os dld.sl"
19253    shlibpath_var=SHLIB_PATH
19254    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19255    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19256    soname_spec='${libname}${release}${shared_ext}$major'
19257    ;;
19258  esac
19259  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19260  postinstall_cmds='chmod 555 $lib'
19261  ;;
19262
19263interix3*)
19264  version_type=linux
19265  need_lib_prefix=no
19266  need_version=no
19267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19268  soname_spec='${libname}${release}${shared_ext}$major'
19269  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19270  shlibpath_var=LD_LIBRARY_PATH
19271  shlibpath_overrides_runpath=no
19272  hardcode_into_libs=yes
19273  ;;
19274
19275irix5* | irix6* | nonstopux*)
19276  case $host_os in
19277    nonstopux*) version_type=nonstopux ;;
19278    *)
19279	if test "$lt_cv_prog_gnu_ld" = yes; then
19280		version_type=linux
19281	else
19282		version_type=irix
19283	fi ;;
19284  esac
19285  need_lib_prefix=no
19286  need_version=no
19287  soname_spec='${libname}${release}${shared_ext}$major'
19288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19289  case $host_os in
19290  irix5* | nonstopux*)
19291    libsuff= shlibsuff=
19292    ;;
19293  *)
19294    case $LD in # libtool.m4 will add one of these switches to LD
19295    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19296      libsuff= shlibsuff= libmagic=32-bit;;
19297    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19298      libsuff=32 shlibsuff=N32 libmagic=N32;;
19299    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19300      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19301    *) libsuff= shlibsuff= libmagic=never-match;;
19302    esac
19303    ;;
19304  esac
19305  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19306  shlibpath_overrides_runpath=no
19307  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19308  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19309  hardcode_into_libs=yes
19310  ;;
19311
19312# No shared lib support for Linux oldld, aout, or coff.
19313linux*oldld* | linux*aout* | linux*coff*)
19314  dynamic_linker=no
19315  ;;
19316
19317# This must be Linux ELF.
19318linux*)
19319  version_type=linux
19320  need_lib_prefix=no
19321  need_version=no
19322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323  soname_spec='${libname}${release}${shared_ext}$major'
19324  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19325  shlibpath_var=LD_LIBRARY_PATH
19326  shlibpath_overrides_runpath=no
19327  # This implies no fast_install, which is unacceptable.
19328  # Some rework will be needed to allow for fast_install
19329  # before this can be enabled.
19330  hardcode_into_libs=yes
19331
19332  # Append ld.so.conf contents to the search path
19333  if test -f /etc/ld.so.conf; then
19334    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' ' '`
19335    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19336  fi
19337
19338  # We used to test for /lib/ld.so.1 and disable shared libraries on
19339  # powerpc, because MkLinux only supported shared libraries with the
19340  # GNU dynamic linker.  Since this was broken with cross compilers,
19341  # most powerpc-linux boxes support dynamic linking these days and
19342  # people can always --disable-shared, the test was removed, and we
19343  # assume the GNU/Linux dynamic linker is in use.
19344  dynamic_linker='GNU/Linux ld.so'
19345  ;;
19346
19347knetbsd*-gnu)
19348  version_type=linux
19349  need_lib_prefix=no
19350  need_version=no
19351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19352  soname_spec='${libname}${release}${shared_ext}$major'
19353  shlibpath_var=LD_LIBRARY_PATH
19354  shlibpath_overrides_runpath=no
19355  hardcode_into_libs=yes
19356  dynamic_linker='GNU ld.so'
19357  ;;
19358
19359netbsd*)
19360  version_type=sunos
19361  need_lib_prefix=no
19362  need_version=no
19363  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19364    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19365    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19366    dynamic_linker='NetBSD (a.out) ld.so'
19367  else
19368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19369    soname_spec='${libname}${release}${shared_ext}$major'
19370    dynamic_linker='NetBSD ld.elf_so'
19371  fi
19372  shlibpath_var=LD_LIBRARY_PATH
19373  shlibpath_overrides_runpath=yes
19374  hardcode_into_libs=yes
19375  ;;
19376
19377newsos6)
19378  version_type=linux
19379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380  shlibpath_var=LD_LIBRARY_PATH
19381  shlibpath_overrides_runpath=yes
19382  ;;
19383
19384nto-qnx*)
19385  version_type=linux
19386  need_lib_prefix=no
19387  need_version=no
19388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19389  soname_spec='${libname}${release}${shared_ext}$major'
19390  shlibpath_var=LD_LIBRARY_PATH
19391  shlibpath_overrides_runpath=yes
19392  ;;
19393
19394openbsd*)
19395  version_type=sunos
19396  sys_lib_dlsearch_path_spec="/usr/lib"
19397  need_lib_prefix=no
19398  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19399  case $host_os in
19400    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19401    *)                         need_version=no  ;;
19402  esac
19403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19404  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19405  shlibpath_var=LD_LIBRARY_PATH
19406  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19407    case $host_os in
19408      openbsd2.[89] | openbsd2.[89].*)
19409	shlibpath_overrides_runpath=no
19410	;;
19411      *)
19412	shlibpath_overrides_runpath=yes
19413	;;
19414      esac
19415  else
19416    shlibpath_overrides_runpath=yes
19417  fi
19418  ;;
19419
19420os2*)
19421  libname_spec='$name'
19422  shrext_cmds=".dll"
19423  need_lib_prefix=no
19424  library_names_spec='$libname${shared_ext} $libname.a'
19425  dynamic_linker='OS/2 ld.exe'
19426  shlibpath_var=LIBPATH
19427  ;;
19428
19429osf3* | osf4* | osf5*)
19430  version_type=osf
19431  need_lib_prefix=no
19432  need_version=no
19433  soname_spec='${libname}${release}${shared_ext}$major'
19434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19435  shlibpath_var=LD_LIBRARY_PATH
19436  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19437  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19438  ;;
19439
19440solaris*)
19441  version_type=linux
19442  need_lib_prefix=no
19443  need_version=no
19444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445  soname_spec='${libname}${release}${shared_ext}$major'
19446  shlibpath_var=LD_LIBRARY_PATH
19447  shlibpath_overrides_runpath=yes
19448  hardcode_into_libs=yes
19449  # ldd complains unless libraries are executable
19450  postinstall_cmds='chmod +x $lib'
19451  ;;
19452
19453sunos4*)
19454  version_type=sunos
19455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19456  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19457  shlibpath_var=LD_LIBRARY_PATH
19458  shlibpath_overrides_runpath=yes
19459  if test "$with_gnu_ld" = yes; then
19460    need_lib_prefix=no
19461  fi
19462  need_version=yes
19463  ;;
19464
19465sysv4 | sysv4.3*)
19466  version_type=linux
19467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19468  soname_spec='${libname}${release}${shared_ext}$major'
19469  shlibpath_var=LD_LIBRARY_PATH
19470  case $host_vendor in
19471    sni)
19472      shlibpath_overrides_runpath=no
19473      need_lib_prefix=no
19474      export_dynamic_flag_spec='${wl}-Blargedynsym'
19475      runpath_var=LD_RUN_PATH
19476      ;;
19477    siemens)
19478      need_lib_prefix=no
19479      ;;
19480    motorola)
19481      need_lib_prefix=no
19482      need_version=no
19483      shlibpath_overrides_runpath=no
19484      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19485      ;;
19486  esac
19487  ;;
19488
19489sysv4*MP*)
19490  if test -d /usr/nec ;then
19491    version_type=linux
19492    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19493    soname_spec='$libname${shared_ext}.$major'
19494    shlibpath_var=LD_LIBRARY_PATH
19495  fi
19496  ;;
19497
19498sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19499  version_type=freebsd-elf
19500  need_lib_prefix=no
19501  need_version=no
19502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19503  soname_spec='${libname}${release}${shared_ext}$major'
19504  shlibpath_var=LD_LIBRARY_PATH
19505  hardcode_into_libs=yes
19506  if test "$with_gnu_ld" = yes; then
19507    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19508    shlibpath_overrides_runpath=no
19509  else
19510    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19511    shlibpath_overrides_runpath=yes
19512    case $host_os in
19513      sco3.2v5*)
19514        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19515	;;
19516    esac
19517  fi
19518  sys_lib_dlsearch_path_spec='/usr/lib'
19519  ;;
19520
19521uts4*)
19522  version_type=linux
19523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19524  soname_spec='${libname}${release}${shared_ext}$major'
19525  shlibpath_var=LD_LIBRARY_PATH
19526  ;;
19527
19528*)
19529  dynamic_linker=no
19530  ;;
19531esac
19532echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19533echo "${ECHO_T}$dynamic_linker" >&6
19534test "$dynamic_linker" = no && can_build_shared=no
19535
19536variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19537if test "$GCC" = yes; then
19538  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19539fi
19540
19541echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19542echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19543hardcode_action_GCJ=
19544if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19545   test -n "$runpath_var_GCJ" || \
19546   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19547
19548  # We can hardcode non-existant directories.
19549  if test "$hardcode_direct_GCJ" != no &&
19550     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19551     # have to relink, otherwise we might link with an installed library
19552     # when we should be linking with a yet-to-be-installed one
19553     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19554     test "$hardcode_minus_L_GCJ" != no; then
19555    # Linking always hardcodes the temporary library directory.
19556    hardcode_action_GCJ=relink
19557  else
19558    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19559    hardcode_action_GCJ=immediate
19560  fi
19561else
19562  # We cannot hardcode anything, or else we can only hardcode existing
19563  # directories.
19564  hardcode_action_GCJ=unsupported
19565fi
19566echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19567echo "${ECHO_T}$hardcode_action_GCJ" >&6
19568
19569if test "$hardcode_action_GCJ" = relink; then
19570  # Fast installation is not supported
19571  enable_fast_install=no
19572elif test "$shlibpath_overrides_runpath" = yes ||
19573     test "$enable_shared" = no; then
19574  # Fast installation is not necessary
19575  enable_fast_install=needless
19576fi
19577
19578
19579# The else clause should only fire when bootstrapping the
19580# libtool distribution, otherwise you forgot to ship ltmain.sh
19581# with your package, and you will get complaints that there are
19582# no rules to generate ltmain.sh.
19583if test -f "$ltmain"; then
19584  # See if we are running on zsh, and set the options which allow our commands through
19585  # without removal of \ escapes.
19586  if test -n "${ZSH_VERSION+set}" ; then
19587    setopt NO_GLOB_SUBST
19588  fi
19589  # Now quote all the things that may contain metacharacters while being
19590  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19591  # variables and quote the copies for generation of the libtool script.
19592  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19593    SED SHELL STRIP \
19594    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19595    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19596    deplibs_check_method reload_flag reload_cmds need_locks \
19597    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19598    lt_cv_sys_global_symbol_to_c_name_address \
19599    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19600    old_postinstall_cmds old_postuninstall_cmds \
19601    compiler_GCJ \
19602    CC_GCJ \
19603    LD_GCJ \
19604    lt_prog_compiler_wl_GCJ \
19605    lt_prog_compiler_pic_GCJ \
19606    lt_prog_compiler_static_GCJ \
19607    lt_prog_compiler_no_builtin_flag_GCJ \
19608    export_dynamic_flag_spec_GCJ \
19609    thread_safe_flag_spec_GCJ \
19610    whole_archive_flag_spec_GCJ \
19611    enable_shared_with_static_runtimes_GCJ \
19612    old_archive_cmds_GCJ \
19613    old_archive_from_new_cmds_GCJ \
19614    predep_objects_GCJ \
19615    postdep_objects_GCJ \
19616    predeps_GCJ \
19617    postdeps_GCJ \
19618    compiler_lib_search_path_GCJ \
19619    archive_cmds_GCJ \
19620    archive_expsym_cmds_GCJ \
19621    postinstall_cmds_GCJ \
19622    postuninstall_cmds_GCJ \
19623    old_archive_from_expsyms_cmds_GCJ \
19624    allow_undefined_flag_GCJ \
19625    no_undefined_flag_GCJ \
19626    export_symbols_cmds_GCJ \
19627    hardcode_libdir_flag_spec_GCJ \
19628    hardcode_libdir_flag_spec_ld_GCJ \
19629    hardcode_libdir_separator_GCJ \
19630    hardcode_automatic_GCJ \
19631    module_cmds_GCJ \
19632    module_expsym_cmds_GCJ \
19633    lt_cv_prog_compiler_c_o_GCJ \
19634    exclude_expsyms_GCJ \
19635    include_expsyms_GCJ; do
19636
19637    case $var in
19638    old_archive_cmds_GCJ | \
19639    old_archive_from_new_cmds_GCJ | \
19640    archive_cmds_GCJ | \
19641    archive_expsym_cmds_GCJ | \
19642    module_cmds_GCJ | \
19643    module_expsym_cmds_GCJ | \
19644    old_archive_from_expsyms_cmds_GCJ | \
19645    export_symbols_cmds_GCJ | \
19646    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19647    postinstall_cmds | postuninstall_cmds | \
19648    old_postinstall_cmds | old_postuninstall_cmds | \
19649    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19650      # Double-quote double-evaled strings.
19651      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19652      ;;
19653    *)
19654      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19655      ;;
19656    esac
19657  done
19658
19659  case $lt_echo in
19660  *'\$0 --fallback-echo"')
19661    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19662    ;;
19663  esac
19664
19665cfgfile="$ofile"
19666
19667  cat <<__EOF__ >> "$cfgfile"
19668# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19669
19670# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19671
19672# Shell to use when invoking shell scripts.
19673SHELL=$lt_SHELL
19674
19675# Whether or not to build shared libraries.
19676build_libtool_libs=$enable_shared
19677
19678# Whether or not to build static libraries.
19679build_old_libs=$enable_static
19680
19681# Whether or not to add -lc for building shared libraries.
19682build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19683
19684# Whether or not to disallow shared libs when runtime libs are static
19685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19686
19687# Whether or not to optimize for fast installation.
19688fast_install=$enable_fast_install
19689
19690# The host system.
19691host_alias=$host_alias
19692host=$host
19693host_os=$host_os
19694
19695# The build system.
19696build_alias=$build_alias
19697build=$build
19698build_os=$build_os
19699
19700# An echo program that does not interpret backslashes.
19701echo=$lt_echo
19702
19703# The archiver.
19704AR=$lt_AR
19705AR_FLAGS=$lt_AR_FLAGS
19706
19707# A C compiler.
19708LTCC=$lt_LTCC
19709
19710# LTCC compiler flags.
19711LTCFLAGS=$lt_LTCFLAGS
19712
19713# A language-specific compiler.
19714CC=$lt_compiler_GCJ
19715
19716# Is the compiler the GNU C compiler?
19717with_gcc=$GCC_GCJ
19718
19719# An ERE matcher.
19720EGREP=$lt_EGREP
19721
19722# The linker used to build libraries.
19723LD=$lt_LD_GCJ
19724
19725# Whether we need hard or soft links.
19726LN_S=$lt_LN_S
19727
19728# A BSD-compatible nm program.
19729NM=$lt_NM
19730
19731# A symbol stripping program
19732STRIP=$lt_STRIP
19733
19734# Used to examine libraries when file_magic_cmd begins "file"
19735MAGIC_CMD=$MAGIC_CMD
19736
19737# Used on cygwin: DLL creation program.
19738DLLTOOL="$DLLTOOL"
19739
19740# Used on cygwin: object dumper.
19741OBJDUMP="$OBJDUMP"
19742
19743# Used on cygwin: assembler.
19744AS="$AS"
19745
19746# The name of the directory that contains temporary libtool files.
19747objdir=$objdir
19748
19749# How to create reloadable object files.
19750reload_flag=$lt_reload_flag
19751reload_cmds=$lt_reload_cmds
19752
19753# How to pass a linker flag through the compiler.
19754wl=$lt_lt_prog_compiler_wl_GCJ
19755
19756# Object file suffix (normally "o").
19757objext="$ac_objext"
19758
19759# Old archive suffix (normally "a").
19760libext="$libext"
19761
19762# Shared library suffix (normally ".so").
19763shrext_cmds='$shrext_cmds'
19764
19765# Executable file suffix (normally "").
19766exeext="$exeext"
19767
19768# Additional compiler flags for building library objects.
19769pic_flag=$lt_lt_prog_compiler_pic_GCJ
19770pic_mode=$pic_mode
19771
19772# What is the maximum length of a command?
19773max_cmd_len=$lt_cv_sys_max_cmd_len
19774
19775# Does compiler simultaneously support -c and -o options?
19776compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19777
19778# Must we lock files when doing compilation?
19779need_locks=$lt_need_locks
19780
19781# Do we need the lib prefix for modules?
19782need_lib_prefix=$need_lib_prefix
19783
19784# Do we need a version for libraries?
19785need_version=$need_version
19786
19787# Whether dlopen is supported.
19788dlopen_support=$enable_dlopen
19789
19790# Whether dlopen of programs is supported.
19791dlopen_self=$enable_dlopen_self
19792
19793# Whether dlopen of statically linked programs is supported.
19794dlopen_self_static=$enable_dlopen_self_static
19795
19796# Compiler flag to prevent dynamic linking.
19797link_static_flag=$lt_lt_prog_compiler_static_GCJ
19798
19799# Compiler flag to turn off builtin functions.
19800no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19801
19802# Compiler flag to allow reflexive dlopens.
19803export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19804
19805# Compiler flag to generate shared objects directly from archives.
19806whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19807
19808# Compiler flag to generate thread-safe objects.
19809thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19810
19811# Library versioning type.
19812version_type=$version_type
19813
19814# Format of library name prefix.
19815libname_spec=$lt_libname_spec
19816
19817# List of archive names.  First name is the real one, the rest are links.
19818# The last name is the one that the linker finds with -lNAME.
19819library_names_spec=$lt_library_names_spec
19820
19821# The coded name of the library, if different from the real name.
19822soname_spec=$lt_soname_spec
19823
19824# Commands used to build and install an old-style archive.
19825RANLIB=$lt_RANLIB
19826old_archive_cmds=$lt_old_archive_cmds_GCJ
19827old_postinstall_cmds=$lt_old_postinstall_cmds
19828old_postuninstall_cmds=$lt_old_postuninstall_cmds
19829
19830# Create an old-style archive from a shared archive.
19831old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19832
19833# Create a temporary old-style archive to link instead of a shared archive.
19834old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19835
19836# Commands used to build and install a shared archive.
19837archive_cmds=$lt_archive_cmds_GCJ
19838archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19839postinstall_cmds=$lt_postinstall_cmds
19840postuninstall_cmds=$lt_postuninstall_cmds
19841
19842# Commands used to build a loadable module (assumed same as above if empty)
19843module_cmds=$lt_module_cmds_GCJ
19844module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19845
19846# Commands to strip libraries.
19847old_striplib=$lt_old_striplib
19848striplib=$lt_striplib
19849
19850# Dependencies to place before the objects being linked to create a
19851# shared library.
19852predep_objects=$lt_predep_objects_GCJ
19853
19854# Dependencies to place after the objects being linked to create a
19855# shared library.
19856postdep_objects=$lt_postdep_objects_GCJ
19857
19858# Dependencies to place before the objects being linked to create a
19859# shared library.
19860predeps=$lt_predeps_GCJ
19861
19862# Dependencies to place after the objects being linked to create a
19863# shared library.
19864postdeps=$lt_postdeps_GCJ
19865
19866# The library search path used internally by the compiler when linking
19867# a shared library.
19868compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19869
19870# Method to check whether dependent libraries are shared objects.
19871deplibs_check_method=$lt_deplibs_check_method
19872
19873# Command to use when deplibs_check_method == file_magic.
19874file_magic_cmd=$lt_file_magic_cmd
19875
19876# Flag that allows shared libraries with undefined symbols to be built.
19877allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19878
19879# Flag that forces no undefined symbols.
19880no_undefined_flag=$lt_no_undefined_flag_GCJ
19881
19882# Commands used to finish a libtool library installation in a directory.
19883finish_cmds=$lt_finish_cmds
19884
19885# Same as above, but a single script fragment to be evaled but not shown.
19886finish_eval=$lt_finish_eval
19887
19888# Take the output of nm and produce a listing of raw symbols and C names.
19889global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19890
19891# Transform the output of nm in a proper C declaration
19892global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19893
19894# Transform the output of nm in a C name address pair
19895global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19896
19897# This is the shared library runtime path variable.
19898runpath_var=$runpath_var
19899
19900# This is the shared library path variable.
19901shlibpath_var=$shlibpath_var
19902
19903# Is shlibpath searched before the hard-coded library search path?
19904shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19905
19906# How to hardcode a shared library path into an executable.
19907hardcode_action=$hardcode_action_GCJ
19908
19909# Whether we should hardcode library paths into libraries.
19910hardcode_into_libs=$hardcode_into_libs
19911
19912# Flag to hardcode \$libdir into a binary during linking.
19913# This must work even if \$libdir does not exist.
19914hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19915
19916# If ld is used when linking, flag to hardcode \$libdir into
19917# a binary during linking. This must work even if \$libdir does
19918# not exist.
19919hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19920
19921# Whether we need a single -rpath flag with a separated argument.
19922hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19923
19924# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19925# resulting binary.
19926hardcode_direct=$hardcode_direct_GCJ
19927
19928# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19929# resulting binary.
19930hardcode_minus_L=$hardcode_minus_L_GCJ
19931
19932# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19933# the resulting binary.
19934hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19935
19936# Set to yes if building a shared library automatically hardcodes DIR into the library
19937# and all subsequent libraries and executables linked against it.
19938hardcode_automatic=$hardcode_automatic_GCJ
19939
19940# Variables whose values should be saved in libtool wrapper scripts and
19941# restored at relink time.
19942variables_saved_for_relink="$variables_saved_for_relink"
19943
19944# Whether libtool must link a program against all its dependency libraries.
19945link_all_deplibs=$link_all_deplibs_GCJ
19946
19947# Compile-time system search path for libraries
19948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19949
19950# Run-time system search path for libraries
19951sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19952
19953# Fix the shell variable \$srcfile for the compiler.
19954fix_srcfile_path="$fix_srcfile_path_GCJ"
19955
19956# Set to yes if exported symbols are required.
19957always_export_symbols=$always_export_symbols_GCJ
19958
19959# The commands to list exported symbols.
19960export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19961
19962# The commands to extract the exported symbol list from a shared archive.
19963extract_expsyms_cmds=$lt_extract_expsyms_cmds
19964
19965# Symbols that should not be listed in the preloaded symbols.
19966exclude_expsyms=$lt_exclude_expsyms_GCJ
19967
19968# Symbols that must always be exported.
19969include_expsyms=$lt_include_expsyms_GCJ
19970
19971# ### END LIBTOOL TAG CONFIG: $tagname
19972
19973__EOF__
19974
19975
19976else
19977  # If there is no Makefile yet, we rely on a make rule to execute
19978  # `config.status --recheck' to rerun these tests and create the
19979  # libtool script then.
19980  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19981  if test -f "$ltmain_in"; then
19982    test -f Makefile && make "$ltmain"
19983  fi
19984fi
19985
19986
19987ac_ext=c
19988ac_cpp='$CPP $CPPFLAGS'
19989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19991ac_compiler_gnu=$ac_cv_c_compiler_gnu
19992
19993CC="$lt_save_CC"
19994
19995	else
19996	  tagname=""
19997	fi
19998	;;
19999
20000      RC)
20001
20002
20003
20004# Source file extension for RC test sources.
20005ac_ext=rc
20006
20007# Object file extension for compiled RC test sources.
20008objext=o
20009objext_RC=$objext
20010
20011# Code to be used in simple compile tests
20012lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20013
20014# Code to be used in simple link tests
20015lt_simple_link_test_code="$lt_simple_compile_test_code"
20016
20017# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20018
20019# If no C compiler was specified, use CC.
20020LTCC=${LTCC-"$CC"}
20021
20022# If no C compiler flags were specified, use CFLAGS.
20023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20024
20025# Allow CC to be a program name with arguments.
20026compiler=$CC
20027
20028
20029# save warnings/boilerplate of simple test code
20030ac_outfile=conftest.$ac_objext
20031printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20033_lt_compiler_boilerplate=`cat conftest.err`
20034$rm conftest*
20035
20036ac_outfile=conftest.$ac_objext
20037printf "$lt_simple_link_test_code" >conftest.$ac_ext
20038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20039_lt_linker_boilerplate=`cat conftest.err`
20040$rm conftest*
20041
20042
20043# Allow CC to be a program name with arguments.
20044lt_save_CC="$CC"
20045CC=${RC-"windres"}
20046compiler=$CC
20047compiler_RC=$CC
20048for cc_temp in $compiler""; do
20049  case $cc_temp in
20050    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20051    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20052    \-*) ;;
20053    *) break;;
20054  esac
20055done
20056cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20057
20058lt_cv_prog_compiler_c_o_RC=yes
20059
20060# The else clause should only fire when bootstrapping the
20061# libtool distribution, otherwise you forgot to ship ltmain.sh
20062# with your package, and you will get complaints that there are
20063# no rules to generate ltmain.sh.
20064if test -f "$ltmain"; then
20065  # See if we are running on zsh, and set the options which allow our commands through
20066  # without removal of \ escapes.
20067  if test -n "${ZSH_VERSION+set}" ; then
20068    setopt NO_GLOB_SUBST
20069  fi
20070  # Now quote all the things that may contain metacharacters while being
20071  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20072  # variables and quote the copies for generation of the libtool script.
20073  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20074    SED SHELL STRIP \
20075    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20076    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20077    deplibs_check_method reload_flag reload_cmds need_locks \
20078    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20079    lt_cv_sys_global_symbol_to_c_name_address \
20080    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20081    old_postinstall_cmds old_postuninstall_cmds \
20082    compiler_RC \
20083    CC_RC \
20084    LD_RC \
20085    lt_prog_compiler_wl_RC \
20086    lt_prog_compiler_pic_RC \
20087    lt_prog_compiler_static_RC \
20088    lt_prog_compiler_no_builtin_flag_RC \
20089    export_dynamic_flag_spec_RC \
20090    thread_safe_flag_spec_RC \
20091    whole_archive_flag_spec_RC \
20092    enable_shared_with_static_runtimes_RC \
20093    old_archive_cmds_RC \
20094    old_archive_from_new_cmds_RC \
20095    predep_objects_RC \
20096    postdep_objects_RC \
20097    predeps_RC \
20098    postdeps_RC \
20099    compiler_lib_search_path_RC \
20100    archive_cmds_RC \
20101    archive_expsym_cmds_RC \
20102    postinstall_cmds_RC \
20103    postuninstall_cmds_RC \
20104    old_archive_from_expsyms_cmds_RC \
20105    allow_undefined_flag_RC \
20106    no_undefined_flag_RC \
20107    export_symbols_cmds_RC \
20108    hardcode_libdir_flag_spec_RC \
20109    hardcode_libdir_flag_spec_ld_RC \
20110    hardcode_libdir_separator_RC \
20111    hardcode_automatic_RC \
20112    module_cmds_RC \
20113    module_expsym_cmds_RC \
20114    lt_cv_prog_compiler_c_o_RC \
20115    exclude_expsyms_RC \
20116    include_expsyms_RC; do
20117
20118    case $var in
20119    old_archive_cmds_RC | \
20120    old_archive_from_new_cmds_RC | \
20121    archive_cmds_RC | \
20122    archive_expsym_cmds_RC | \
20123    module_cmds_RC | \
20124    module_expsym_cmds_RC | \
20125    old_archive_from_expsyms_cmds_RC | \
20126    export_symbols_cmds_RC | \
20127    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20128    postinstall_cmds | postuninstall_cmds | \
20129    old_postinstall_cmds | old_postuninstall_cmds | \
20130    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20131      # Double-quote double-evaled strings.
20132      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20133      ;;
20134    *)
20135      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20136      ;;
20137    esac
20138  done
20139
20140  case $lt_echo in
20141  *'\$0 --fallback-echo"')
20142    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20143    ;;
20144  esac
20145
20146cfgfile="$ofile"
20147
20148  cat <<__EOF__ >> "$cfgfile"
20149# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20150
20151# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20152
20153# Shell to use when invoking shell scripts.
20154SHELL=$lt_SHELL
20155
20156# Whether or not to build shared libraries.
20157build_libtool_libs=$enable_shared
20158
20159# Whether or not to build static libraries.
20160build_old_libs=$enable_static
20161
20162# Whether or not to add -lc for building shared libraries.
20163build_libtool_need_lc=$archive_cmds_need_lc_RC
20164
20165# Whether or not to disallow shared libs when runtime libs are static
20166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20167
20168# Whether or not to optimize for fast installation.
20169fast_install=$enable_fast_install
20170
20171# The host system.
20172host_alias=$host_alias
20173host=$host
20174host_os=$host_os
20175
20176# The build system.
20177build_alias=$build_alias
20178build=$build
20179build_os=$build_os
20180
20181# An echo program that does not interpret backslashes.
20182echo=$lt_echo
20183
20184# The archiver.
20185AR=$lt_AR
20186AR_FLAGS=$lt_AR_FLAGS
20187
20188# A C compiler.
20189LTCC=$lt_LTCC
20190
20191# LTCC compiler flags.
20192LTCFLAGS=$lt_LTCFLAGS
20193
20194# A language-specific compiler.
20195CC=$lt_compiler_RC
20196
20197# Is the compiler the GNU C compiler?
20198with_gcc=$GCC_RC
20199
20200# An ERE matcher.
20201EGREP=$lt_EGREP
20202
20203# The linker used to build libraries.
20204LD=$lt_LD_RC
20205
20206# Whether we need hard or soft links.
20207LN_S=$lt_LN_S
20208
20209# A BSD-compatible nm program.
20210NM=$lt_NM
20211
20212# A symbol stripping program
20213STRIP=$lt_STRIP
20214
20215# Used to examine libraries when file_magic_cmd begins "file"
20216MAGIC_CMD=$MAGIC_CMD
20217
20218# Used on cygwin: DLL creation program.
20219DLLTOOL="$DLLTOOL"
20220
20221# Used on cygwin: object dumper.
20222OBJDUMP="$OBJDUMP"
20223
20224# Used on cygwin: assembler.
20225AS="$AS"
20226
20227# The name of the directory that contains temporary libtool files.
20228objdir=$objdir
20229
20230# How to create reloadable object files.
20231reload_flag=$lt_reload_flag
20232reload_cmds=$lt_reload_cmds
20233
20234# How to pass a linker flag through the compiler.
20235wl=$lt_lt_prog_compiler_wl_RC
20236
20237# Object file suffix (normally "o").
20238objext="$ac_objext"
20239
20240# Old archive suffix (normally "a").
20241libext="$libext"
20242
20243# Shared library suffix (normally ".so").
20244shrext_cmds='$shrext_cmds'
20245
20246# Executable file suffix (normally "").
20247exeext="$exeext"
20248
20249# Additional compiler flags for building library objects.
20250pic_flag=$lt_lt_prog_compiler_pic_RC
20251pic_mode=$pic_mode
20252
20253# What is the maximum length of a command?
20254max_cmd_len=$lt_cv_sys_max_cmd_len
20255
20256# Does compiler simultaneously support -c and -o options?
20257compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20258
20259# Must we lock files when doing compilation?
20260need_locks=$lt_need_locks
20261
20262# Do we need the lib prefix for modules?
20263need_lib_prefix=$need_lib_prefix
20264
20265# Do we need a version for libraries?
20266need_version=$need_version
20267
20268# Whether dlopen is supported.
20269dlopen_support=$enable_dlopen
20270
20271# Whether dlopen of programs is supported.
20272dlopen_self=$enable_dlopen_self
20273
20274# Whether dlopen of statically linked programs is supported.
20275dlopen_self_static=$enable_dlopen_self_static
20276
20277# Compiler flag to prevent dynamic linking.
20278link_static_flag=$lt_lt_prog_compiler_static_RC
20279
20280# Compiler flag to turn off builtin functions.
20281no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20282
20283# Compiler flag to allow reflexive dlopens.
20284export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20285
20286# Compiler flag to generate shared objects directly from archives.
20287whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20288
20289# Compiler flag to generate thread-safe objects.
20290thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20291
20292# Library versioning type.
20293version_type=$version_type
20294
20295# Format of library name prefix.
20296libname_spec=$lt_libname_spec
20297
20298# List of archive names.  First name is the real one, the rest are links.
20299# The last name is the one that the linker finds with -lNAME.
20300library_names_spec=$lt_library_names_spec
20301
20302# The coded name of the library, if different from the real name.
20303soname_spec=$lt_soname_spec
20304
20305# Commands used to build and install an old-style archive.
20306RANLIB=$lt_RANLIB
20307old_archive_cmds=$lt_old_archive_cmds_RC
20308old_postinstall_cmds=$lt_old_postinstall_cmds
20309old_postuninstall_cmds=$lt_old_postuninstall_cmds
20310
20311# Create an old-style archive from a shared archive.
20312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20313
20314# Create a temporary old-style archive to link instead of a shared archive.
20315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20316
20317# Commands used to build and install a shared archive.
20318archive_cmds=$lt_archive_cmds_RC
20319archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20320postinstall_cmds=$lt_postinstall_cmds
20321postuninstall_cmds=$lt_postuninstall_cmds
20322
20323# Commands used to build a loadable module (assumed same as above if empty)
20324module_cmds=$lt_module_cmds_RC
20325module_expsym_cmds=$lt_module_expsym_cmds_RC
20326
20327# Commands to strip libraries.
20328old_striplib=$lt_old_striplib
20329striplib=$lt_striplib
20330
20331# Dependencies to place before the objects being linked to create a
20332# shared library.
20333predep_objects=$lt_predep_objects_RC
20334
20335# Dependencies to place after the objects being linked to create a
20336# shared library.
20337postdep_objects=$lt_postdep_objects_RC
20338
20339# Dependencies to place before the objects being linked to create a
20340# shared library.
20341predeps=$lt_predeps_RC
20342
20343# Dependencies to place after the objects being linked to create a
20344# shared library.
20345postdeps=$lt_postdeps_RC
20346
20347# The library search path used internally by the compiler when linking
20348# a shared library.
20349compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20350
20351# Method to check whether dependent libraries are shared objects.
20352deplibs_check_method=$lt_deplibs_check_method
20353
20354# Command to use when deplibs_check_method == file_magic.
20355file_magic_cmd=$lt_file_magic_cmd
20356
20357# Flag that allows shared libraries with undefined symbols to be built.
20358allow_undefined_flag=$lt_allow_undefined_flag_RC
20359
20360# Flag that forces no undefined symbols.
20361no_undefined_flag=$lt_no_undefined_flag_RC
20362
20363# Commands used to finish a libtool library installation in a directory.
20364finish_cmds=$lt_finish_cmds
20365
20366# Same as above, but a single script fragment to be evaled but not shown.
20367finish_eval=$lt_finish_eval
20368
20369# Take the output of nm and produce a listing of raw symbols and C names.
20370global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20371
20372# Transform the output of nm in a proper C declaration
20373global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20374
20375# Transform the output of nm in a C name address pair
20376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20377
20378# This is the shared library runtime path variable.
20379runpath_var=$runpath_var
20380
20381# This is the shared library path variable.
20382shlibpath_var=$shlibpath_var
20383
20384# Is shlibpath searched before the hard-coded library search path?
20385shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20386
20387# How to hardcode a shared library path into an executable.
20388hardcode_action=$hardcode_action_RC
20389
20390# Whether we should hardcode library paths into libraries.
20391hardcode_into_libs=$hardcode_into_libs
20392
20393# Flag to hardcode \$libdir into a binary during linking.
20394# This must work even if \$libdir does not exist.
20395hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20396
20397# If ld is used when linking, flag to hardcode \$libdir into
20398# a binary during linking. This must work even if \$libdir does
20399# not exist.
20400hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20401
20402# Whether we need a single -rpath flag with a separated argument.
20403hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20404
20405# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20406# resulting binary.
20407hardcode_direct=$hardcode_direct_RC
20408
20409# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20410# resulting binary.
20411hardcode_minus_L=$hardcode_minus_L_RC
20412
20413# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20414# the resulting binary.
20415hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20416
20417# Set to yes if building a shared library automatically hardcodes DIR into the library
20418# and all subsequent libraries and executables linked against it.
20419hardcode_automatic=$hardcode_automatic_RC
20420
20421# Variables whose values should be saved in libtool wrapper scripts and
20422# restored at relink time.
20423variables_saved_for_relink="$variables_saved_for_relink"
20424
20425# Whether libtool must link a program against all its dependency libraries.
20426link_all_deplibs=$link_all_deplibs_RC
20427
20428# Compile-time system search path for libraries
20429sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20430
20431# Run-time system search path for libraries
20432sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20433
20434# Fix the shell variable \$srcfile for the compiler.
20435fix_srcfile_path="$fix_srcfile_path_RC"
20436
20437# Set to yes if exported symbols are required.
20438always_export_symbols=$always_export_symbols_RC
20439
20440# The commands to list exported symbols.
20441export_symbols_cmds=$lt_export_symbols_cmds_RC
20442
20443# The commands to extract the exported symbol list from a shared archive.
20444extract_expsyms_cmds=$lt_extract_expsyms_cmds
20445
20446# Symbols that should not be listed in the preloaded symbols.
20447exclude_expsyms=$lt_exclude_expsyms_RC
20448
20449# Symbols that must always be exported.
20450include_expsyms=$lt_include_expsyms_RC
20451
20452# ### END LIBTOOL TAG CONFIG: $tagname
20453
20454__EOF__
20455
20456
20457else
20458  # If there is no Makefile yet, we rely on a make rule to execute
20459  # `config.status --recheck' to rerun these tests and create the
20460  # libtool script then.
20461  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20462  if test -f "$ltmain_in"; then
20463    test -f Makefile && make "$ltmain"
20464  fi
20465fi
20466
20467
20468ac_ext=c
20469ac_cpp='$CPP $CPPFLAGS'
20470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20472ac_compiler_gnu=$ac_cv_c_compiler_gnu
20473
20474CC="$lt_save_CC"
20475
20476	;;
20477
20478      *)
20479	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20480echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20481   { (exit 1); exit 1; }; }
20482	;;
20483      esac
20484
20485      # Append the new tag name to the list of available tags.
20486      if test -n "$tagname" ; then
20487      available_tags="$available_tags $tagname"
20488    fi
20489    fi
20490  done
20491  IFS="$lt_save_ifs"
20492
20493  # Now substitute the updated list of available tags.
20494  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20495    mv "${ofile}T" "$ofile"
20496    chmod +x "$ofile"
20497  else
20498    rm -f "${ofile}T"
20499    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20500echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20501   { (exit 1); exit 1; }; }
20502  fi
20503fi
20504
20505
20506
20507# This can be used to rebuild libtool when needed
20508LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20509
20510# Always use our own libtool.
20511LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20512
20513# Prevent multiple expansion
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20526 # AC_REQUIRE([AC_COIN_DLFCN_H])
20527
20528# NEW: If libtool exists in the directory higher up, we use that one
20529#      instead of creating a new one
20530
20531# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20532# out in front of this macro body. You'll notice that LIBTOOL is already
20533# defined here.  We'll have to count on this macro not being called if libtool
20534# already exists, or at least move the libtool fixes outside the conditional.
20535# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20536# This test is therefore removed.  -- lh, 061214 --
20537# if test "x$LIBTOOL" = x; then
20538
20539# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20550
20551
20552
20553  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20554echo "$as_me: Build is \"$build\"." >&6;}
20555  mydos2unix='| dos2unix'
20556  case $build in
20557    *-mingw*)
20558      CYGPATH_W=echo
20559      ;;
20560  esac
20561
20562  case $build in
20563    # Here we need to check if -m32 is specified.  If so, we need to correct
20564    # sys_lib_search_path_spec
20565    *-cygwin* | *-mingw*)
20566       case "$CXX" in
20567    clang* )
20568      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20569      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20570echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20571      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20572	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20573	  -e 's|libext="lib"|libext="a"|' \
20574      libtool > conftest.bla
20575      ;;
20576    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20577      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20578echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20579      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20580	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20581	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20582	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20583	  -e 's%lib /OUT:%lib -OUT:%' \
20584	  -e "s%cygpath -w%$CYGPATH_W%" \
20585	  -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%' \
20586	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20587	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20588	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20589	  -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"%' \
20590      libtool > conftest.bla
20591      ;;
20592    *)
20593      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20594echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20595      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20596	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20597	  -e 's|libext="lib"|libext="a"|' \
20598      libtool > conftest.bla
20599      ;;
20600  esac
20601  mv conftest.bla libtool
20602  chmod 755 libtool
20603
20604      ;;
20605    *x86_64-*)
20606      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20607        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20608echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20609        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20610        mv conftest.bla libtool
20611        chmod 755 libtool
20612      fi
20613      ;;
20614
20615    *-solaris*)
20616       if test "$GCC" = yes && \
20617     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20618    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20619    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20620      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20621echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20622      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20623      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20624      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20625	# AC_MSG_NOTICE(Compensating for broken gcc)
20626	for lib in $fixlibtmp ; do
20627	  if test -d "${lib}${hdwisa}" ; then
20628	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20629	  fi
20630	done
20631	syslibpath64="${syslibpath64} ${fixlibtmp}"
20632      else
20633	syslibpath64="$fixlibtmp"
20634      fi
20635      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20636      mv conftest.bla libtool
20637      chmod 755 libtool
20638    fi
20639    # AC_MSG_NOTICE(Result is )
20640    # $EGREP 'sys_lib_search_path_spec=' libtool
20641  fi
20642      ;;
20643    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20644    *-darwin*)
20645      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20646echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20647      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"/' \
20648        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20649      libtool > conftest.bla
20650
20651      mv conftest.bla libtool
20652      chmod 755 libtool
20653      ;;
20654  esac
20655# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20656# the macro. -- lh, 061214 --
20657# fi
20658
20659# AC_MSG_NOTICE([End libtool initialisation.])
20660
20661# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20662  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20663  # of the shared objects
20664  RPATH_FLAGS=
20665
20666if test $enable_shared = yes; then
20667  case $build in
20668    *-linux-*)
20669      if test "$GXX" = "yes"; then
20670        RPATH_FLAGS=
20671        for dir in $abs_lib_dir; do
20672          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20673        done
20674      fi ;;
20675    *-darwin*)
20676        RPATH_FLAGS=nothing ;;
20677    *-ibm-*)
20678      case "$CXX" in
20679      xlC* | */xlC* | mpxlC* | */mpxlC*)
20680        RPATH_FLAGS=nothing ;;
20681      esac ;;
20682    *-hp-*)
20683        RPATH_FLAGS=nothing ;;
20684    *-mingw32)
20685        RPATH_FLAGS=nothing ;;
20686    *-*-solaris*)
20687        RPATH_FLAGS=
20688        for dir in $abs_lib_dir; do
20689          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20690        done
20691  esac
20692
20693  if test "$RPATH_FLAGS" = ""; then
20694    { 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
20695echo "$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;}
20696  fi
20697  if test "$RPATH_FLAGS" = "nothing"; then
20698    RPATH_FLAGS=
20699  fi
20700fi
20701
20702
20703
20704
20705else
20706
20707  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20708echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20709  # get all missing information from the config.log file
20710
20711  # output variables and defines
20712  as_save_IFS=$IFS
20713  IFS='
20714'
20715  for oneline in `cat $coin_config_dir/config.status`; do
20716    case "$oneline" in
20717         # First some automake conditionals
20718      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20719      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20720      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20721      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20722        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20723#        echo "$command"
20724        eval "$command"
20725        ;;
20726      s,@DEFS@* )
20727        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20728#        echo "$command"
20729        eval "$command"
20730        ;;
20731    esac
20732  done
20733  IFS=$as_save_IFS
20734
20735  # And some defines (assuming here that the packages base dir
20736  # doesn't have a config.h file
20737  for word in $defsline; do
20738#    echo word $word
20739    case $word in
20740      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20741        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20742#        echo dd $i
20743        echo $i >>confdefs.h
20744        ;;
20745    esac
20746  done
20747fi
20748
20749# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20750
20751# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20752if test "${enable_dependency_linking+set}" = set; then
20753  enableval="$enable_dependency_linking"
20754  dependency_linking="$enableval"
20755else
20756  dependency_linking=auto
20757fi;
20758
20759if test "$dependency_linking" = auto; then
20760  # On Cygwin and AIX, building DLLs doesn't work
20761  dependency_linking=no
20762  if test x"$coin_disable_shared" = xno; then
20763    case $build in
20764      *-cygwin* | *-mingw*)
20765        case "$CC" in
20766          clang* )
20767            dependency_linking=yes
20768            ;;
20769          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20770            dependency_linking=no
20771            ;;
20772          *gcc*)
20773            dependency_linking=yes
20774            ;;
20775          *)
20776            dependency_linking=yes
20777            ;;
20778        esac
20779        ;;
20780      *)
20781        dependency_linking=yes
20782        ;;
20783    esac
20784  fi
20785fi
20786
20787if test "$dependency_linking" = yes ;
20788then
20789  LT_LDFLAGS="-no-undefined"
20790else
20791  LT_LDFLAGS=
20792fi
20793
20794
20795
20796if test "$dependency_linking" = yes; then
20797  DEPENDENCY_LINKING_TRUE=
20798  DEPENDENCY_LINKING_FALSE='#'
20799else
20800  DEPENDENCY_LINKING_TRUE='#'
20801  DEPENDENCY_LINKING_FALSE=
20802fi
20803
20804
20805# Check if we want to set the library version
20806echo "$as_me:$LINENO: checking if library version is set" >&5
20807echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20808if test x"$coin_libversion" != x; then
20809  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20810  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20811echo "${ECHO_T}$coin_libversion" >&6
20812else
20813  echo "$as_me:$LINENO: result: no" >&5
20814echo "${ECHO_T}no" >&6
20815fi
20816
20817
20818
20819#END
20820}
20821# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20822
20823
20824#############################################################################
20825#                  Check which subprojects are there                        #
20826#############################################################################
20827
20828
20829echo "$as_me:$LINENO: checking whether source of project ASL is available and should be compiled" >&5
20830echo $ECHO_N "checking whether source of project ASL is available and should be compiled... $ECHO_C" >&6
20831
20832coin_has_asl=notGiven
20833coin_reason=
20834
20835# check if user wants to skip project in any case
20836
20837if test x"$COIN_SKIP_PROJECTS" != x; then
20838  for dir in $COIN_SKIP_PROJECTS; do
20839    if test $dir = "ASL"; then
20840      coin_has_asl="no"
20841      coin_reason="ASL has been specified in COIN_SKIP_PROJECTS"
20842    fi
20843
20844    if test $dir = "ThirdParty/ASL"; then
20845      coin_has_asl="no"
20846      coin_reason="ThirdParty/ASL has been specified in COIN_SKIP_PROJECTS"
20847    fi
20848  done
20849fi
20850
20851if test "$coin_has_asl" != no; then
20852
20853# Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
20854if test "${with_asl+set}" = set; then
20855  withval="$with_asl"
20856  if test "$withval" = no ; then
20857       coin_has_asl="no"
20858       coin_reason="--without-asl has been specified"
20859     fi
20860
20861fi;
20862fi
20863
20864if test "$coin_has_asl" != no; then
20865
20866# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
20867if test "${with_asl_lib+set}" = set; then
20868  withval="$with_asl_lib"
20869  if test "$withval" = no ; then
20870       coin_has_asl="no"
20871       coin_reason="--without-asl-lib has been specified"
20872     else
20873       coin_has_asl="no"
20874       coin_reason="--with-asl-lib has been specified"
20875     fi
20876fi;
20877fi
20878
20879if test "$coin_has_asl" != no; then
20880
20881# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
20882if test "${with_asl_incdir+set}" = set; then
20883  withval="$with_asl_incdir"
20884  if test "$withval" = no ; then
20885       coin_has_asl="no"
20886       coin_reason="--without-asl-incdir has been specified"
20887     else
20888       coin_has_asl="no"
20889       coin_reason="--with-asl-incdir has been specified"
20890     fi
20891fi;
20892fi
20893
20894if test "$coin_has_asl" != no; then
20895
20896# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
20897if test "${with_asl_datadir+set}" = set; then
20898  withval="$with_asl_datadir"
20899  if test "$withval" = no ; then
20900       coin_has_asl="no"
20901       coin_reason="--without-asl-datadir has been specified"
20902     else
20903       coin_has_asl="no"
20904       coin_reason="--with-asl-datadir has been specified"
20905     fi
20906fi;
20907fi
20908
20909
20910
20911
20912
20913# check if project is available in present directory
20914if test "$coin_has_asl" = notGiven; then
20915  coin_has_asl=no
20916  if test -d $srcdir/ThirdParty/ASL; then
20917    coin_reason="source in ThirdParty/ASL"
20918    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20919    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20920    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20921    for i in $srcdir/ThirdParty/ASL/solvers/asl.h; do
20922         if test -r $i; then
20923           coin_has_asl="yes"
20924         else
20925           coin_has_asl="no"
20926           coin_reason="source file $i not available"
20927           break
20928         fi
20929       done
20930
20931  fi
20932fi
20933
20934if test -z "$coin_reason" ; then
20935  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
20936echo "${ECHO_T}$coin_has_asl" >&6
20937else
20938  echo "$as_me:$LINENO: result: $coin_has_asl, $coin_reason" >&5
20939echo "${ECHO_T}$coin_has_asl, $coin_reason" >&6
20940fi
20941
20942if test "$coin_has_asl" = yes ; then
20943  if test -r $srcdir/ThirdParty/ASL/configure; then
20944    coin_subdirs="$coin_subdirs ThirdParty/ASL"
20945
20946
20947subdirs="$subdirs ThirdParty/ASL"
20948
20949  fi
20950fi
20951
20952
20953echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
20954echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
20955
20956coin_has_blas=notGiven
20957coin_reason=
20958
20959# check if user wants to skip project in any case
20960
20961if test x"$COIN_SKIP_PROJECTS" != x; then
20962  for dir in $COIN_SKIP_PROJECTS; do
20963    if test $dir = "Blas"; then
20964      coin_has_blas="no"
20965      coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
20966    fi
20967
20968    if test $dir = "ThirdParty/Blas"; then
20969      coin_has_blas="no"
20970      coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
20971    fi
20972  done
20973fi
20974
20975if test "$coin_has_blas" != no; then
20976
20977# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
20978if test "${with_blas+set}" = set; then
20979  withval="$with_blas"
20980  if test "$withval" = no ; then
20981       coin_has_blas="no"
20982       coin_reason="--without-blas has been specified"
20983     fi
20984
20985fi;
20986fi
20987
20988if test "$coin_has_blas" != no; then
20989
20990# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
20991if test "${with_blas_lib+set}" = set; then
20992  withval="$with_blas_lib"
20993  if test "$withval" = no ; then
20994       coin_has_blas="no"
20995       coin_reason="--without-blas-lib has been specified"
20996     else
20997       coin_has_blas="no"
20998       coin_reason="--with-blas-lib has been specified"
20999     fi
21000fi;
21001fi
21002
21003if test "$coin_has_blas" != no; then
21004
21005# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
21006if test "${with_blas_incdir+set}" = set; then
21007  withval="$with_blas_incdir"
21008  if test "$withval" = no ; then
21009       coin_has_blas="no"
21010       coin_reason="--without-blas-incdir has been specified"
21011     else
21012       coin_has_blas="no"
21013       coin_reason="--with-blas-incdir has been specified"
21014     fi
21015fi;
21016fi
21017
21018if test "$coin_has_blas" != no; then
21019
21020# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
21021if test "${with_blas_datadir+set}" = set; then
21022  withval="$with_blas_datadir"
21023  if test "$withval" = no ; then
21024       coin_has_blas="no"
21025       coin_reason="--without-blas-datadir has been specified"
21026     else
21027       coin_has_blas="no"
21028       coin_reason="--with-blas-datadir has been specified"
21029     fi
21030fi;
21031fi
21032
21033
21034  if test $coin_has_blas != no; then
21035    #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
21036
21037# Check whether --with-blas or --without-blas was given.
21038if test "${with_blas+set}" = set; then
21039  withval="$with_blas"
21040  if test x"$withval" = "xno" ; then
21041           coin_has_blas="no"
21042           coin_reason="--without-blas has been specified"
21043         elif test x"$withval" != "xBUILD" ; then
21044           coin_has_blas="no"
21045           coin_reason="--with-blas has been specified"
21046         fi
21047fi;
21048  fi
21049
21050
21051
21052
21053# check if project is available in present directory
21054if test "$coin_has_blas" = notGiven; then
21055  coin_has_blas=no
21056  if test -d $srcdir/ThirdParty/Blas; then
21057    coin_reason="source in ThirdParty/Blas"
21058    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21059    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21060    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21061    for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21062         if test -r $i; then
21063           coin_has_blas="yes"
21064         else
21065           coin_has_blas="no"
21066           coin_reason="source file $i not available"
21067           break
21068         fi
21069       done
21070
21071  fi
21072fi
21073
21074if test -z "$coin_reason" ; then
21075  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21076echo "${ECHO_T}$coin_has_blas" >&6
21077else
21078  echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21079echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21080fi
21081
21082if test "$coin_has_blas" = yes ; then
21083  if test -r $srcdir/ThirdParty/Blas/configure; then
21084    coin_subdirs="$coin_subdirs ThirdParty/Blas"
21085
21086
21087subdirs="$subdirs ThirdParty/Blas"
21088
21089  fi
21090fi
21091
21092
21093echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21094echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21095
21096coin_has_lapack=notGiven
21097coin_reason=
21098
21099# check if user wants to skip project in any case
21100
21101if test x"$COIN_SKIP_PROJECTS" != x; then
21102  for dir in $COIN_SKIP_PROJECTS; do
21103    if test $dir = "Lapack"; then
21104      coin_has_lapack="no"
21105      coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21106    fi
21107
21108    if test $dir = "ThirdParty/Lapack"; then
21109      coin_has_lapack="no"
21110      coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21111    fi
21112  done
21113fi
21114
21115if test "$coin_has_lapack" != no; then
21116
21117# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21118if test "${with_lapack+set}" = set; then
21119  withval="$with_lapack"
21120  if test "$withval" = no ; then
21121       coin_has_lapack="no"
21122       coin_reason="--without-lapack has been specified"
21123     fi
21124
21125fi;
21126fi
21127
21128if test "$coin_has_lapack" != no; then
21129
21130# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21131if test "${with_lapack_lib+set}" = set; then
21132  withval="$with_lapack_lib"
21133  if test "$withval" = no ; then
21134       coin_has_lapack="no"
21135       coin_reason="--without-lapack-lib has been specified"
21136     else
21137       coin_has_lapack="no"
21138       coin_reason="--with-lapack-lib has been specified"
21139     fi
21140fi;
21141fi
21142
21143if test "$coin_has_lapack" != no; then
21144
21145# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21146if test "${with_lapack_incdir+set}" = set; then
21147  withval="$with_lapack_incdir"
21148  if test "$withval" = no ; then
21149       coin_has_lapack="no"
21150       coin_reason="--without-lapack-incdir has been specified"
21151     else
21152       coin_has_lapack="no"
21153       coin_reason="--with-lapack-incdir has been specified"
21154     fi
21155fi;
21156fi
21157
21158if test "$coin_has_lapack" != no; then
21159
21160# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21161if test "${with_lapack_datadir+set}" = set; then
21162  withval="$with_lapack_datadir"
21163  if test "$withval" = no ; then
21164       coin_has_lapack="no"
21165       coin_reason="--without-lapack-datadir has been specified"
21166     else
21167       coin_has_lapack="no"
21168       coin_reason="--with-lapack-datadir has been specified"
21169     fi
21170fi;
21171fi
21172
21173
21174
21175
21176  if test $coin_has_lapack != no; then
21177    #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21178
21179# Check whether --with-lapack or --without-lapack was given.
21180if test "${with_lapack+set}" = set; then
21181  withval="$with_lapack"
21182  if test x"$withval" = "xno" ; then
21183           coin_has_lapack="no"
21184           coin_reason="--without-lapack has been specified"
21185         elif test x"$withval" != "xBUILD" ; then
21186           coin_has_lapack="no"
21187           coin_reason="--with-lapack has been specified"
21188         fi
21189fi;
21190  fi
21191
21192
21193# check if project is available in present directory
21194if test "$coin_has_lapack" = notGiven; then
21195  coin_has_lapack=no
21196  if test -d $srcdir/ThirdParty/Lapack; then
21197    coin_reason="source in ThirdParty/Lapack"
21198    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21199    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21200    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21201    for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21202         if test -r $i; then
21203           coin_has_lapack="yes"
21204         else
21205           coin_has_lapack="no"
21206           coin_reason="source file $i not available"
21207           break
21208         fi
21209       done
21210
21211  fi
21212fi
21213
21214if test -z "$coin_reason" ; then
21215  echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21216echo "${ECHO_T}$coin_has_lapack" >&6
21217else
21218  echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21219echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21220fi
21221
21222if test "$coin_has_lapack" = yes ; then
21223  if test -r $srcdir/ThirdParty/Lapack/configure; then
21224    coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21225
21226
21227subdirs="$subdirs ThirdParty/Lapack"
21228
21229  fi
21230fi
21231
21232
21233echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5
21234echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6
21235
21236coin_has_metis=notGiven
21237coin_reason=
21238
21239# check if user wants to skip project in any case
21240
21241if test x"$COIN_SKIP_PROJECTS" != x; then
21242  for dir in $COIN_SKIP_PROJECTS; do
21243    if test $dir = "Metis"; then
21244      coin_has_metis="no"
21245      coin_reason="Metis has been specified in COIN_SKIP_PROJECTS"
21246    fi
21247
21248    if test $dir = "ThirdParty/Metis"; then
21249      coin_has_metis="no"
21250      coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS"
21251    fi
21252  done
21253fi
21254
21255if test "$coin_has_metis" != no; then
21256
21257# Check whether --with-m4_tolower(Metis) or --without-m4_tolower(Metis) was given.
21258if test "${with_metis+set}" = set; then
21259  withval="$with_metis"
21260  if test "$withval" = no ; then
21261       coin_has_metis="no"
21262       coin_reason="--without-metis has been specified"
21263     fi
21264
21265fi;
21266fi
21267
21268if test "$coin_has_metis" != no; then
21269
21270# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given.
21271if test "${with_metis_lib+set}" = set; then
21272  withval="$with_metis_lib"
21273  if test "$withval" = no ; then
21274       coin_has_metis="no"
21275       coin_reason="--without-metis-lib has been specified"
21276     else
21277       coin_has_metis="no"
21278       coin_reason="--with-metis-lib has been specified"
21279     fi
21280fi;
21281fi
21282
21283if test "$coin_has_metis" != no; then
21284
21285# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given.
21286if test "${with_metis_incdir+set}" = set; then
21287  withval="$with_metis_incdir"
21288  if test "$withval" = no ; then
21289       coin_has_metis="no"
21290       coin_reason="--without-metis-incdir has been specified"
21291     else
21292       coin_has_metis="no"
21293       coin_reason="--with-metis-incdir has been specified"
21294     fi
21295fi;
21296fi
21297
21298if test "$coin_has_metis" != no; then
21299
21300# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given.
21301if test "${with_metis_datadir+set}" = set; then
21302  withval="$with_metis_datadir"
21303  if test "$withval" = no ; then
21304       coin_has_metis="no"
21305       coin_reason="--without-metis-datadir has been specified"
21306     else
21307       coin_has_metis="no"
21308       coin_reason="--with-metis-datadir has been specified"
21309     fi
21310fi;
21311fi
21312
21313
21314
21315
21316
21317# check if project is available in present directory
21318if test "$coin_has_metis" = notGiven; then
21319  coin_has_metis=no
21320  if test -d $srcdir/ThirdParty/Metis; then
21321    coin_reason="source in ThirdParty/Metis"
21322    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21323    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21324    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21325    for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do
21326         if test -r $i; then
21327           coin_has_metis="yes"
21328         else
21329           coin_has_metis="no"
21330           coin_reason="source file $i not available"
21331           break
21332         fi
21333       done
21334
21335  fi
21336fi
21337
21338if test -z "$coin_reason" ; then
21339  echo "$as_me:$LINENO: result: $coin_has_metis" >&5
21340echo "${ECHO_T}$coin_has_metis" >&6
21341else
21342  echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5
21343echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6
21344fi
21345
21346if test "$coin_has_metis" = yes ; then
21347  if test -r $srcdir/ThirdParty/Metis/configure; then
21348    coin_subdirs="$coin_subdirs ThirdParty/Metis"
21349
21350
21351subdirs="$subdirs ThirdParty/Metis"
21352
21353  fi
21354fi
21355
21356
21357echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5
21358echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6
21359
21360coin_has_mumps=notGiven
21361coin_reason=
21362
21363# check if user wants to skip project in any case
21364
21365if test x"$COIN_SKIP_PROJECTS" != x; then
21366  for dir in $COIN_SKIP_PROJECTS; do
21367    if test $dir = "Mumps"; then
21368      coin_has_mumps="no"
21369      coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS"
21370    fi
21371
21372    if test $dir = "ThirdParty/Mumps"; then
21373      coin_has_mumps="no"
21374      coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS"
21375    fi
21376  done
21377fi
21378
21379if test "$coin_has_mumps" != no; then
21380
21381# Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given.
21382if test "${with_mumps+set}" = set; then
21383  withval="$with_mumps"
21384  if test "$withval" = no ; then
21385       coin_has_mumps="no"
21386       coin_reason="--without-mumps has been specified"
21387     fi
21388
21389fi;
21390fi
21391
21392if test "$coin_has_mumps" != no; then
21393
21394# Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given.
21395if test "${with_mumps_lib+set}" = set; then
21396  withval="$with_mumps_lib"
21397  if test "$withval" = no ; then
21398       coin_has_mumps="no"
21399       coin_reason="--without-mumps-lib has been specified"
21400     else
21401       coin_has_mumps="no"
21402       coin_reason="--with-mumps-lib has been specified"
21403     fi
21404fi;
21405fi
21406
21407if test "$coin_has_mumps" != no; then
21408
21409# Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given.
21410if test "${with_mumps_incdir+set}" = set; then
21411  withval="$with_mumps_incdir"
21412  if test "$withval" = no ; then
21413       coin_has_mumps="no"
21414       coin_reason="--without-mumps-incdir has been specified"
21415     else
21416       coin_has_mumps="no"
21417       coin_reason="--with-mumps-incdir has been specified"
21418     fi
21419fi;
21420fi
21421
21422if test "$coin_has_mumps" != no; then
21423
21424# Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given.
21425if test "${with_mumps_datadir+set}" = set; then
21426  withval="$with_mumps_datadir"
21427  if test "$withval" = no ; then
21428       coin_has_mumps="no"
21429       coin_reason="--without-mumps-datadir has been specified"
21430     else
21431       coin_has_mumps="no"
21432       coin_reason="--with-mumps-datadir has been specified"
21433     fi
21434fi;
21435fi
21436
21437
21438
21439
21440
21441# check if project is available in present directory
21442if test "$coin_has_mumps" = notGiven; then
21443  coin_has_mumps=no
21444  if test -d $srcdir/ThirdParty/Mumps; then
21445    coin_reason="source in ThirdParty/Mumps"
21446    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21447    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21448    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21449    for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do
21450         if test -r $i; then
21451           coin_has_mumps="yes"
21452         else
21453           coin_has_mumps="no"
21454           coin_reason="source file $i not available"
21455           break
21456         fi
21457       done
21458
21459  fi
21460fi
21461
21462if test -z "$coin_reason" ; then
21463  echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
21464echo "${ECHO_T}$coin_has_mumps" >&6
21465else
21466  echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5
21467echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6
21468fi
21469
21470if test "$coin_has_mumps" = yes ; then
21471  if test -r $srcdir/ThirdParty/Mumps/configure; then
21472    coin_subdirs="$coin_subdirs ThirdParty/Mumps"
21473
21474
21475subdirs="$subdirs ThirdParty/Mumps"
21476
21477  fi
21478fi
21479
21480
21481echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
21482echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
21483
21484coin_has_glpk=notGiven
21485coin_reason=
21486
21487# check if user wants to skip project in any case
21488
21489if test x"$COIN_SKIP_PROJECTS" != x; then
21490  for dir in $COIN_SKIP_PROJECTS; do
21491    if test $dir = "Glpk"; then
21492      coin_has_glpk="no"
21493      coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
21494    fi
21495
21496    if test $dir = "ThirdParty/Glpk"; then
21497      coin_has_glpk="no"
21498      coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
21499    fi
21500  done
21501fi
21502
21503if test "$coin_has_glpk" != no; then
21504
21505# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
21506if test "${with_glpk+set}" = set; then
21507  withval="$with_glpk"
21508  if test "$withval" = no ; then
21509       coin_has_glpk="no"
21510       coin_reason="--without-glpk has been specified"
21511     fi
21512
21513fi;
21514fi
21515
21516if test "$coin_has_glpk" != no; then
21517
21518# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
21519if test "${with_glpk_lib+set}" = set; then
21520  withval="$with_glpk_lib"
21521  if test "$withval" = no ; then
21522       coin_has_glpk="no"
21523       coin_reason="--without-glpk-lib has been specified"
21524     else
21525       coin_has_glpk="no"
21526       coin_reason="--with-glpk-lib has been specified"
21527     fi
21528fi;
21529fi
21530
21531if test "$coin_has_glpk" != no; then
21532
21533# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
21534if test "${with_glpk_incdir+set}" = set; then
21535  withval="$with_glpk_incdir"
21536  if test "$withval" = no ; then
21537       coin_has_glpk="no"
21538       coin_reason="--without-glpk-incdir has been specified"
21539     else
21540       coin_has_glpk="no"
21541       coin_reason="--with-glpk-incdir has been specified"
21542     fi
21543fi;
21544fi
21545
21546if test "$coin_has_glpk" != no; then
21547
21548# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
21549if test "${with_glpk_datadir+set}" = set; then
21550  withval="$with_glpk_datadir"
21551  if test "$withval" = no ; then
21552       coin_has_glpk="no"
21553       coin_reason="--without-glpk-datadir has been specified"
21554     else
21555       coin_has_glpk="no"
21556       coin_reason="--with-glpk-datadir has been specified"
21557     fi
21558fi;
21559fi
21560
21561
21562
21563
21564
21565# check if project is available in present directory
21566if test "$coin_has_glpk" = notGiven; then
21567  coin_has_glpk=no
21568  if test -d $srcdir/ThirdParty/Glpk; then
21569    coin_reason="source in ThirdParty/Glpk"
21570    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21571    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21572    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21573    for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do
21574         if test -r $i; then
21575           coin_has_glpk="yes"
21576         else
21577           coin_has_glpk="no"
21578           coin_reason="source file $i not available"
21579           break
21580         fi
21581       done
21582
21583  fi
21584fi
21585
21586if test -z "$coin_reason" ; then
21587  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
21588echo "${ECHO_T}$coin_has_glpk" >&6
21589else
21590  echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
21591echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
21592fi
21593
21594if test "$coin_has_glpk" = yes ; then
21595  if test -r $srcdir/ThirdParty/Glpk/configure; then
21596    coin_subdirs="$coin_subdirs ThirdParty/Glpk"
21597
21598
21599subdirs="$subdirs ThirdParty/Glpk"
21600
21601  fi
21602fi
21603
21604
21605echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21606echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21607
21608coin_has_sample=notGiven
21609coin_reason=
21610
21611# check if user wants to skip project in any case
21612
21613if test x"$COIN_SKIP_PROJECTS" != x; then
21614  for dir in $COIN_SKIP_PROJECTS; do
21615    if test $dir = "Sample"; then
21616      coin_has_sample="no"
21617      coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21618    fi
21619
21620    if test $dir = "Data/Sample"; then
21621      coin_has_sample="no"
21622      coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21623    fi
21624  done
21625fi
21626
21627if test "$coin_has_sample" != no; then
21628
21629# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21630if test "${with_sample+set}" = set; then
21631  withval="$with_sample"
21632  if test "$withval" = no ; then
21633       coin_has_sample="no"
21634       coin_reason="--without-sample has been specified"
21635     fi
21636
21637fi;
21638fi
21639
21640if test "$coin_has_sample" != no; then
21641
21642# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21643if test "${with_sample_lib+set}" = set; then
21644  withval="$with_sample_lib"
21645  if test "$withval" = no ; then
21646       coin_has_sample="no"
21647       coin_reason="--without-sample-lib has been specified"
21648     else
21649       coin_has_sample="no"
21650       coin_reason="--with-sample-lib has been specified"
21651     fi
21652fi;
21653fi
21654
21655if test "$coin_has_sample" != no; then
21656
21657# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21658if test "${with_sample_incdir+set}" = set; then
21659  withval="$with_sample_incdir"
21660  if test "$withval" = no ; then
21661       coin_has_sample="no"
21662       coin_reason="--without-sample-incdir has been specified"
21663     else
21664       coin_has_sample="no"
21665       coin_reason="--with-sample-incdir has been specified"
21666     fi
21667fi;
21668fi
21669
21670if test "$coin_has_sample" != no; then
21671
21672# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21673if test "${with_sample_datadir+set}" = set; then
21674  withval="$with_sample_datadir"
21675  if test "$withval" = no ; then
21676       coin_has_sample="no"
21677       coin_reason="--without-sample-datadir has been specified"
21678     else
21679       coin_has_sample="no"
21680       coin_reason="--with-sample-datadir has been specified"
21681     fi
21682fi;
21683fi
21684
21685
21686
21687
21688
21689# check if project is available in present directory
21690if test "$coin_has_sample" = notGiven; then
21691  coin_has_sample=no
21692  if test -d $srcdir/Data/Sample; then
21693    coin_reason="source in Data/Sample"
21694    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21695    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21696    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21697     coin_has_sample="yes"
21698
21699  fi
21700fi
21701
21702if test -z "$coin_reason" ; then
21703  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21704echo "${ECHO_T}$coin_has_sample" >&6
21705else
21706  echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21707echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21708fi
21709
21710if test "$coin_has_sample" = yes ; then
21711  if test -r $srcdir/Data/Sample/configure; then
21712    coin_subdirs="$coin_subdirs Data/Sample"
21713
21714
21715subdirs="$subdirs Data/Sample"
21716
21717  fi
21718fi
21719
21720
21721echo "$as_me:$LINENO: checking whether source of project Netlib is available and should be compiled" >&5
21722echo $ECHO_N "checking whether source of project Netlib is available and should be compiled... $ECHO_C" >&6
21723
21724coin_has_netlib=notGiven
21725coin_reason=
21726
21727# check if user wants to skip project in any case
21728
21729if test x"$COIN_SKIP_PROJECTS" != x; then
21730  for dir in $COIN_SKIP_PROJECTS; do
21731    if test $dir = "Netlib"; then
21732      coin_has_netlib="no"
21733      coin_reason="Netlib has been specified in COIN_SKIP_PROJECTS"
21734    fi
21735
21736    if test $dir = "Data/Netlib"; then
21737      coin_has_netlib="no"
21738      coin_reason="Data/Netlib has been specified in COIN_SKIP_PROJECTS"
21739    fi
21740  done
21741fi
21742
21743if test "$coin_has_netlib" != no; then
21744
21745# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
21746if test "${with_netlib+set}" = set; then
21747  withval="$with_netlib"
21748  if test "$withval" = no ; then
21749       coin_has_netlib="no"
21750       coin_reason="--without-netlib has been specified"
21751     fi
21752
21753fi;
21754fi
21755
21756if test "$coin_has_netlib" != no; then
21757
21758# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
21759if test "${with_netlib_lib+set}" = set; then
21760  withval="$with_netlib_lib"
21761  if test "$withval" = no ; then
21762       coin_has_netlib="no"
21763       coin_reason="--without-netlib-lib has been specified"
21764     else
21765       coin_has_netlib="no"
21766       coin_reason="--with-netlib-lib has been specified"
21767     fi
21768fi;
21769fi
21770
21771if test "$coin_has_netlib" != no; then
21772
21773# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
21774if test "${with_netlib_incdir+set}" = set; then
21775  withval="$with_netlib_incdir"
21776  if test "$withval" = no ; then
21777       coin_has_netlib="no"
21778       coin_reason="--without-netlib-incdir has been specified"
21779     else
21780       coin_has_netlib="no"
21781       coin_reason="--with-netlib-incdir has been specified"
21782     fi
21783fi;
21784fi
21785
21786if test "$coin_has_netlib" != no; then
21787
21788# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
21789if test "${with_netlib_datadir+set}" = set; then
21790  withval="$with_netlib_datadir"
21791  if test "$withval" = no ; then
21792       coin_has_netlib="no"
21793       coin_reason="--without-netlib-datadir has been specified"
21794     else
21795       coin_has_netlib="no"
21796       coin_reason="--with-netlib-datadir has been specified"
21797     fi
21798fi;
21799fi
21800
21801
21802
21803
21804
21805# check if project is available in present directory
21806if test "$coin_has_netlib" = notGiven; then
21807  coin_has_netlib=no
21808  if test -d $srcdir/Data/Netlib; then
21809    coin_reason="source in Data/Netlib"
21810    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21811    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21812    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21813     coin_has_netlib="yes"
21814
21815  fi
21816fi
21817
21818if test -z "$coin_reason" ; then
21819  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
21820echo "${ECHO_T}$coin_has_netlib" >&6
21821else
21822  echo "$as_me:$LINENO: result: $coin_has_netlib, $coin_reason" >&5
21823echo "${ECHO_T}$coin_has_netlib, $coin_reason" >&6
21824fi
21825
21826if test "$coin_has_netlib" = yes ; then
21827  if test -r $srcdir/Data/Netlib/configure; then
21828    coin_subdirs="$coin_subdirs Data/Netlib"
21829
21830
21831subdirs="$subdirs Data/Netlib"
21832
21833  fi
21834fi
21835
21836
21837echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
21838echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
21839
21840coin_has_coinutils=notGiven
21841coin_reason=
21842
21843# check if user wants to skip project in any case
21844
21845if test x"$COIN_SKIP_PROJECTS" != x; then
21846  for dir in $COIN_SKIP_PROJECTS; do
21847    if test $dir = "CoinUtils"; then
21848      coin_has_coinutils="no"
21849      coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
21850    fi
21851
21852  done
21853fi
21854
21855if test "$coin_has_coinutils" != no; then
21856
21857# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
21858if test "${with_coinutils+set}" = set; then
21859  withval="$with_coinutils"
21860  if test "$withval" = no ; then
21861       coin_has_coinutils="no"
21862       coin_reason="--without-coinutils has been specified"
21863     fi
21864
21865fi;
21866fi
21867
21868if test "$coin_has_coinutils" != no; then
21869
21870# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
21871if test "${with_coinutils_lib+set}" = set; then
21872  withval="$with_coinutils_lib"
21873  if test "$withval" = no ; then
21874       coin_has_coinutils="no"
21875       coin_reason="--without-coinutils-lib has been specified"
21876     else
21877       coin_has_coinutils="no"
21878       coin_reason="--with-coinutils-lib has been specified"
21879     fi
21880fi;
21881fi
21882
21883if test "$coin_has_coinutils" != no; then
21884
21885# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
21886if test "${with_coinutils_incdir+set}" = set; then
21887  withval="$with_coinutils_incdir"
21888  if test "$withval" = no ; then
21889       coin_has_coinutils="no"
21890       coin_reason="--without-coinutils-incdir has been specified"
21891     else
21892       coin_has_coinutils="no"
21893       coin_reason="--with-coinutils-incdir has been specified"
21894     fi
21895fi;
21896fi
21897
21898if test "$coin_has_coinutils" != no; then
21899
21900# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
21901if test "${with_coinutils_datadir+set}" = set; then
21902  withval="$with_coinutils_datadir"
21903  if test "$withval" = no ; then
21904       coin_has_coinutils="no"
21905       coin_reason="--without-coinutils-datadir has been specified"
21906     else
21907       coin_has_coinutils="no"
21908       coin_reason="--with-coinutils-datadir has been specified"
21909     fi
21910fi;
21911fi
21912
21913
21914
21915
21916
21917# check if project is available in present directory
21918if test "$coin_has_coinutils" = notGiven; then
21919  coin_has_coinutils=no
21920  if test -d $srcdir/CoinUtils; then
21921    coin_reason="source in CoinUtils"
21922    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21923    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21924    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21925     coin_has_coinutils="yes"
21926
21927  fi
21928fi
21929
21930if test -z "$coin_reason" ; then
21931  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21932echo "${ECHO_T}$coin_has_coinutils" >&6
21933else
21934  echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
21935echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
21936fi
21937
21938if test "$coin_has_coinutils" = yes ; then
21939  if test -r $srcdir/CoinUtils/configure; then
21940    coin_subdirs="$coin_subdirs CoinUtils"
21941
21942
21943subdirs="$subdirs CoinUtils"
21944
21945  fi
21946fi
21947
21948
21949echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21950echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21951
21952coin_has_osi=notGiven
21953coin_reason=
21954
21955# check if user wants to skip project in any case
21956
21957if test x"$COIN_SKIP_PROJECTS" != x; then
21958  for dir in $COIN_SKIP_PROJECTS; do
21959    if test $dir = "Osi"; then
21960      coin_has_osi="no"
21961      coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21962    fi
21963
21964  done
21965fi
21966
21967if test "$coin_has_osi" != no; then
21968
21969# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21970if test "${with_osi+set}" = set; then
21971  withval="$with_osi"
21972  if test "$withval" = no ; then
21973       coin_has_osi="no"
21974       coin_reason="--without-osi has been specified"
21975     fi
21976
21977fi;
21978fi
21979
21980if test "$coin_has_osi" != no; then
21981
21982# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21983if test "${with_osi_lib+set}" = set; then
21984  withval="$with_osi_lib"
21985  if test "$withval" = no ; then
21986       coin_has_osi="no"
21987       coin_reason="--without-osi-lib has been specified"
21988     else
21989       coin_has_osi="no"
21990       coin_reason="--with-osi-lib has been specified"
21991     fi
21992fi;
21993fi
21994
21995if test "$coin_has_osi" != no; then
21996
21997# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21998if test "${with_osi_incdir+set}" = set; then
21999  withval="$with_osi_incdir"
22000  if test "$withval" = no ; then
22001       coin_has_osi="no"
22002       coin_reason="--without-osi-incdir has been specified"
22003     else
22004       coin_has_osi="no"
22005       coin_reason="--with-osi-incdir has been specified"
22006     fi
22007fi;
22008fi
22009
22010if test "$coin_has_osi" != no; then
22011
22012# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
22013if test "${with_osi_datadir+set}" = set; then
22014  withval="$with_osi_datadir"
22015  if test "$withval" = no ; then
22016       coin_has_osi="no"
22017       coin_reason="--without-osi-datadir has been specified"
22018     else
22019       coin_has_osi="no"
22020       coin_reason="--with-osi-datadir has been specified"
22021     fi
22022fi;
22023fi
22024
22025
22026
22027
22028
22029# check if project is available in present directory
22030if test "$coin_has_osi" = notGiven; then
22031  coin_has_osi=no
22032  if test -d $srcdir/Osi; then
22033    coin_reason="source in Osi"
22034    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22035    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22036    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22037     coin_has_osi="yes"
22038
22039  fi
22040fi
22041
22042if test -z "$coin_reason" ; then
22043  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
22044echo "${ECHO_T}$coin_has_osi" >&6
22045else
22046  echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
22047echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
22048fi
22049
22050if test "$coin_has_osi" = yes ; then
22051  if test -r $srcdir/Osi/configure; then
22052    coin_subdirs="$coin_subdirs Osi"
22053
22054
22055subdirs="$subdirs Osi"
22056
22057  fi
22058fi
22059
22060
22061echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
22062echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
22063
22064coin_has_clp=notGiven
22065coin_reason=
22066
22067# check if user wants to skip project in any case
22068
22069if test x"$COIN_SKIP_PROJECTS" != x; then
22070  for dir in $COIN_SKIP_PROJECTS; do
22071    if test $dir = "Clp"; then
22072      coin_has_clp="no"
22073      coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
22074    fi
22075
22076  done
22077fi
22078
22079if test "$coin_has_clp" != no; then
22080
22081# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
22082if test "${with_clp+set}" = set; then
22083  withval="$with_clp"
22084  if test "$withval" = no ; then
22085       coin_has_clp="no"
22086       coin_reason="--without-clp has been specified"
22087     fi
22088
22089fi;
22090fi
22091
22092if test "$coin_has_clp" != no; then
22093
22094# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
22095if test "${with_clp_lib+set}" = set; then
22096  withval="$with_clp_lib"
22097  if test "$withval" = no ; then
22098       coin_has_clp="no"
22099       coin_reason="--without-clp-lib has been specified"
22100     else
22101       coin_has_clp="no"
22102       coin_reason="--with-clp-lib has been specified"
22103     fi
22104fi;
22105fi
22106
22107if test "$coin_has_clp" != no; then
22108
22109# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
22110if test "${with_clp_incdir+set}" = set; then
22111  withval="$with_clp_incdir"
22112  if test "$withval" = no ; then
22113       coin_has_clp="no"
22114       coin_reason="--without-clp-incdir has been specified"
22115     else
22116       coin_has_clp="no"
22117       coin_reason="--with-clp-incdir has been specified"
22118     fi
22119fi;
22120fi
22121
22122if test "$coin_has_clp" != no; then
22123
22124# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
22125if test "${with_clp_datadir+set}" = set; then
22126  withval="$with_clp_datadir"
22127  if test "$withval" = no ; then
22128       coin_has_clp="no"
22129       coin_reason="--without-clp-datadir has been specified"
22130     else
22131       coin_has_clp="no"
22132       coin_reason="--with-clp-datadir has been specified"
22133     fi
22134fi;
22135fi
22136
22137
22138
22139
22140
22141# check if project is available in present directory
22142if test "$coin_has_clp" = notGiven; then
22143  coin_has_clp=no
22144  if test -d $srcdir/Clp; then
22145    coin_reason="source in Clp"
22146    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22147    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22148    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22149     coin_has_clp="yes"
22150
22151  fi
22152fi
22153
22154if test -z "$coin_reason" ; then
22155  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
22156echo "${ECHO_T}$coin_has_clp" >&6
22157else
22158  echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
22159echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
22160fi
22161
22162if test "$coin_has_clp" = yes ; then
22163  if test -r $srcdir/Clp/configure; then
22164    coin_subdirs="$coin_subdirs Clp"
22165
22166
22167subdirs="$subdirs Clp"
22168
22169  fi
22170fi
22171
22172
22173#############################################################################
22174#                  Check for doxygen                                        #
22175#############################################################################
22176
22177
22178
22179{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
22180echo "$as_me: configuring doxygen documentation options" >&6;}
22181
22182# Check to see if doxygen is available.
22183
22184# Extract the first word of "doxygen", so it can be a program name with args.
22185set dummy doxygen; ac_word=$2
22186echo "$as_me:$LINENO: checking for $ac_word" >&5
22187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22188if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
22189  echo $ECHO_N "(cached) $ECHO_C" >&6
22190else
22191  if test -n "$coin_have_doxygen"; then
22192  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
22193else
22194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195for as_dir in $PATH
22196do
22197  IFS=$as_save_IFS
22198  test -z "$as_dir" && as_dir=.
22199  for ac_exec_ext in '' $ac_executable_extensions; do
22200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22201    ac_cv_prog_coin_have_doxygen="yes"
22202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22203    break 2
22204  fi
22205done
22206done
22207
22208  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
22209fi
22210fi
22211coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
22212if test -n "$coin_have_doxygen"; then
22213  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
22214echo "${ECHO_T}$coin_have_doxygen" >&6
22215else
22216  echo "$as_me:$LINENO: result: no" >&5
22217echo "${ECHO_T}no" >&6
22218fi
22219
22220# Extract the first word of "latex", so it can be a program name with args.
22221set dummy latex; ac_word=$2
22222echo "$as_me:$LINENO: checking for $ac_word" >&5
22223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22224if test "${ac_cv_prog_coin_have_latex+set}" = set; then
22225  echo $ECHO_N "(cached) $ECHO_C" >&6
22226else
22227  if test -n "$coin_have_latex"; then
22228  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
22229else
22230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22231for as_dir in $PATH
22232do
22233  IFS=$as_save_IFS
22234  test -z "$as_dir" && as_dir=.
22235  for ac_exec_ext in '' $ac_executable_extensions; do
22236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22237    ac_cv_prog_coin_have_latex="yes"
22238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22239    break 2
22240  fi
22241done
22242done
22243
22244  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
22245fi
22246fi
22247coin_have_latex=$ac_cv_prog_coin_have_latex
22248if test -n "$coin_have_latex"; then
22249  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
22250echo "${ECHO_T}$coin_have_latex" >&6
22251else
22252  echo "$as_me:$LINENO: result: no" >&5
22253echo "${ECHO_T}no" >&6
22254fi
22255
22256
22257# Look for the dot tool from the graphviz package, unless the user has
22258# disabled it.
22259
22260
22261# Check whether --with-dot or --without-dot was given.
22262if test "${with_dot+set}" = set; then
22263  withval="$with_dot"
22264
22265else
22266  withval=yes
22267fi;
22268if test x"$withval" = xno ; then
22269  coin_doxy_usedot=NO
22270  echo "$as_me:$LINENO: checking for dot " >&5
22271echo $ECHO_N "checking for dot ... $ECHO_C" >&6
22272  echo "$as_me:$LINENO: result: disabled" >&5
22273echo "${ECHO_T}disabled" >&6
22274else
22275  # Extract the first word of "dot", so it can be a program name with args.
22276set dummy dot; ac_word=$2
22277echo "$as_me:$LINENO: checking for $ac_word" >&5
22278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22279if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
22280  echo $ECHO_N "(cached) $ECHO_C" >&6
22281else
22282  if test -n "$coin_doxy_usedot"; then
22283  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
22284else
22285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22286for as_dir in $PATH
22287do
22288  IFS=$as_save_IFS
22289  test -z "$as_dir" && as_dir=.
22290  for ac_exec_ext in '' $ac_executable_extensions; do
22291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22292    ac_cv_prog_coin_doxy_usedot="YES"
22293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22294    break 2
22295  fi
22296done
22297done
22298
22299  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
22300fi
22301fi
22302coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
22303if test -n "$coin_doxy_usedot"; then
22304  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
22305echo "${ECHO_T}$coin_doxy_usedot" >&6
22306else
22307  echo "$as_me:$LINENO: result: no" >&5
22308echo "${ECHO_T}no" >&6
22309fi
22310
22311fi
22312
22313# Generate a tag file name and a log file name
22314
22315coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
22316
22317coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
22318
22319
22320
22321if test $coin_have_doxygen = yes; then
22322  COIN_HAS_DOXYGEN_TRUE=
22323  COIN_HAS_DOXYGEN_FALSE='#'
22324else
22325  COIN_HAS_DOXYGEN_TRUE='#'
22326  COIN_HAS_DOXYGEN_FALSE=
22327fi
22328
22329
22330
22331if test $coin_have_latex = yes; then
22332  COIN_HAS_LATEX_TRUE=
22333  COIN_HAS_LATEX_FALSE='#'
22334else
22335  COIN_HAS_LATEX_TRUE='#'
22336  COIN_HAS_LATEX_FALSE=
22337fi
22338
22339
22340# Process the list of project names and massage them into possible doxygen
22341# doc'n directories. Prefer 1) classic external, source processed using
22342# a project-specific doxygen.conf, we use the tag file; 2) classic
22343# external, source processed using package doxygen.conf; 3) installed
22344# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
22345# configured, which we can't know unless this is the package base configure,
22346# since coin_subdirs is only set there. Hence it's sufficient to check for
22347# membership. If we use a tag file from a classic external, exclude the
22348# source from doxygen processing when doxygen runs in the base directory.
22349
22350coin_doxy_tagfiles=
22351coin_doxy_excludes=
22352tmp="CoinUtils Osi"
22353for proj in $tmp ; do
22354  lc_proj=`echo $proj | tr [A-Z] [a-z]`
22355  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
22356echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
22357  doxytag=${lc_proj}_doxy.tag
22358  doxyfound=no
22359  # proj will be configured, hence doxydoc present in build tree
22360  doxysrcdir="${srcdir}/../${proj}"
22361  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
22362  if test -d "$doxysrcdir" ; then
22363    # with a doxydoc directory?
22364    doxydir="$doxysrcdir/doxydoc"
22365    # AC_MSG_NOTICE([Considering $doxydir (base)])
22366    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22367    if test -d "$doxydir" ; then
22368      # use tag file; don't process source
22369      doxydir="../${proj}/doxydoc"
22370      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
22371      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22372echo "${ECHO_T}$doxydir (tag)" >&6
22373      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
22374    else
22375      # will process the source -- nothing further to be done here
22376      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
22377echo "${ECHO_T}$doxysrcdir (src)" >&6
22378    fi
22379    doxyfound=yes
22380  fi
22381  # Not built, fall back to installed tag file
22382  if test $doxyfound = no ; then
22383    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
22384    # AC_MSG_NOTICE([Considering $doxydir (install)])
22385    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22386    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
22387    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22388echo "${ECHO_T}$doxydir (tag)" >&6
22389  fi
22390done
22391
22392
22393
22394
22395
22396##############################################################################
22397#                   Finishing up by writing all the output                   #
22398##############################################################################
22399
22400# Here list all the files that configure should create (except for the
22401# configuration header file)
22402          ac_config_files="$ac_config_files Makefile"
22403
22404          ac_config_files="$ac_config_files doxydoc/doxygen.conf"
22405
22406
22407# Finally, we let configure write all the output...
22408
22409
22410
22411
22412echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22413echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22414coin_link_input_cmd="$LN_S"
22415case "$CC" in
22416  clang* ) ;;
22417  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22418    coin_link_input_cmd=cp ;;
22419esac
22420echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22421echo "${ECHO_T}$coin_link_input_cmd" >&6
22422
22423
22424
22425if test x$coin_skip_ac_output != xyes; then
22426
22427  # library extension
22428
22429  case "$CC" in
22430    clang* )
22431         LIBEXT=a ;;
22432    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22433         LIBEXT=lib ;;
22434      *) LIBEXT=a ;;
22435  esac
22436
22437  # Define VPATH_DISTCLEANFILES to be everything that needs to be
22438  # cleaned for distclean in a vpath configuration
22439
22440  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22441
22442  # Take out subdirectories if their configuration concluded that they
22443  # don't need to be compiled
22444  if test x"$coin_ac_skip_subdirs" != x; then
22445    new_subdirs=
22446    for i in $subdirs; do
22447      skipme=no
22448      for j in $coin_ac_skip_subdirs; do
22449        if test $i = $j; then
22450          skipme=yes;
22451        fi
22452      done
22453      if test $skipme = no; then
22454        new_subdirs="$new_subdirs $i"
22455      fi
22456    done
22457    subdirs="$new_subdirs"
22458  fi
22459
22460  # need to come before AC_OUTPUT
22461  if test x$coin_projectdir != xyes; then
22462    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22463    echo $coin_subdirs > coin_subdirs.txt
22464  else
22465    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22466    ABSBUILDDIR="`pwd`"
22467
22468  fi
22469
22470  cat >confcache <<\_ACEOF
22471# This file is a shell script that caches the results of configure
22472# tests run on this system so they can be shared between configure
22473# scripts and configure runs, see configure's option --config-cache.
22474# It is not useful on other systems.  If it contains results you don't
22475# want to keep, you may remove or edit it.
22476#
22477# config.status only pays attention to the cache file if you give it
22478# the --recheck option to rerun configure.
22479#
22480# `ac_cv_env_foo' variables (set or unset) will be overridden when
22481# loading this file, other *unset* `ac_cv_foo' will be assigned the
22482# following values.
22483
22484_ACEOF
22485
22486# The following way of writing the cache mishandles newlines in values,
22487# but we know of no workaround that is simple, portable, and efficient.
22488# So, don't put newlines in cache variables' values.
22489# Ultrix sh set writes to stderr and can't be redirected directly,
22490# and sets the high bit in the cache file unless we assign to the vars.
22491{
22492  (set) 2>&1 |
22493    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22494    *ac_space=\ *)
22495      # `set' does not quote correctly, so add quotes (double-quote
22496      # substitution turns \\\\ into \\, and sed turns \\ into \).
22497      sed -n \
22498	"s/'/'\\\\''/g;
22499	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22500      ;;
22501    *)
22502      # `set' quotes correctly as required by POSIX, so do not add quotes.
22503      sed -n \
22504	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22505      ;;
22506    esac;
22507} |
22508  sed '
22509     t clear
22510     : clear
22511     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22512     t end
22513     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22514     : end' >>confcache
22515if diff $cache_file confcache >/dev/null 2>&1; then :; else
22516  if test -w $cache_file; then
22517    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22518    cat confcache >$cache_file
22519  else
22520    echo "not updating unwritable cache $cache_file"
22521  fi
22522fi
22523rm -f confcache
22524
22525test "x$prefix" = xNONE && prefix=$ac_default_prefix
22526# Let make expand exec_prefix.
22527test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22528
22529# VPATH may cause trouble with some makes, so we remove $(srcdir),
22530# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22531# trailing colons and then remove the whole line if VPATH becomes empty
22532# (actually we leave an empty line to preserve line numbers).
22533if test "x$srcdir" = x.; then
22534  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22535s/:*\$(srcdir):*/:/;
22536s/:*\${srcdir}:*/:/;
22537s/:*@srcdir@:*/:/;
22538s/^\([^=]*=[	 ]*\):*/\1/;
22539s/:*$//;
22540s/^[^=]*=[	 ]*$//;
22541}'
22542fi
22543
22544# Transform confdefs.h into DEFS.
22545# Protect against shell expansion while executing Makefile rules.
22546# Protect against Makefile macro expansion.
22547#
22548# If the first sed substitution is executed (which looks for macros that
22549# take arguments), then we branch to the quote section.  Otherwise,
22550# look for a macro that doesn't take arguments.
22551cat >confdef2opt.sed <<\_ACEOF
22552t clear
22553: clear
22554s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
22555t quote
22556s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
22557t quote
22558d
22559: quote
22560s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
22561s,\[,\\&,g
22562s,\],\\&,g
22563s,\$,$$,g
22564p
22565_ACEOF
22566# We use echo to avoid assuming a particular line-breaking character.
22567# The extra dot is to prevent the shell from consuming trailing
22568# line-breaks from the sub-command output.  A line-break within
22569# single-quotes doesn't work because, if this script is created in a
22570# platform that uses two characters for line-breaks (e.g., DOS), tr
22571# would break.
22572ac_LF_and_DOT=`echo; echo .`
22573DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22574rm -f confdef2opt.sed
22575
22576
22577ac_libobjs=
22578ac_ltlibobjs=
22579for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22580  # 1. Remove the extension, and $U if already installed.
22581  ac_i=`echo "$ac_i" |
22582	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22583  # 2. Add them.
22584  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22585  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22586done
22587LIBOBJS=$ac_libobjs
22588
22589LTLIBOBJS=$ac_ltlibobjs
22590
22591
22592if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22593  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22594Usually this means the macro was only invoked conditionally." >&5
22595echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22596Usually this means the macro was only invoked conditionally." >&2;}
22597   { (exit 1); exit 1; }; }
22598fi
22599if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22600  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22601Usually this means the macro was only invoked conditionally." >&5
22602echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22603Usually this means the macro was only invoked conditionally." >&2;}
22604   { (exit 1); exit 1; }; }
22605fi
22606if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22607  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22608Usually this means the macro was only invoked conditionally." >&5
22609echo "$as_me: error: conditional \"AMDEP\" was never defined.
22610Usually this means the macro was only invoked conditionally." >&2;}
22611   { (exit 1); exit 1; }; }
22612fi
22613if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22614  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22615Usually this means the macro was only invoked conditionally." >&5
22616echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22617Usually this means the macro was only invoked conditionally." >&2;}
22618   { (exit 1); exit 1; }; }
22619fi
22620if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22621  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22622Usually this means the macro was only invoked conditionally." >&5
22623echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22624Usually this means the macro was only invoked conditionally." >&2;}
22625   { (exit 1); exit 1; }; }
22626fi
22627if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22628  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22629Usually this means the macro was only invoked conditionally." >&5
22630echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22631Usually this means the macro was only invoked conditionally." >&2;}
22632   { (exit 1); exit 1; }; }
22633fi
22634if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22635  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22636Usually this means the macro was only invoked conditionally." >&5
22637echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22638Usually this means the macro was only invoked conditionally." >&2;}
22639   { (exit 1); exit 1; }; }
22640fi
22641if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22642  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22643Usually this means the macro was only invoked conditionally." >&5
22644echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22645Usually this means the macro was only invoked conditionally." >&2;}
22646   { (exit 1); exit 1; }; }
22647fi
22648if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
22649  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22650Usually this means the macro was only invoked conditionally." >&5
22651echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22652Usually this means the macro was only invoked conditionally." >&2;}
22653   { (exit 1); exit 1; }; }
22654fi
22655if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
22656  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
22657Usually this means the macro was only invoked conditionally." >&5
22658echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
22659Usually this means the macro was only invoked conditionally." >&2;}
22660   { (exit 1); exit 1; }; }
22661fi
22662
22663: ${CONFIG_STATUS=./config.status}
22664ac_clean_files_save=$ac_clean_files
22665ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22666{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22667echo "$as_me: creating $CONFIG_STATUS" >&6;}
22668cat >$CONFIG_STATUS <<_ACEOF
22669#! $SHELL
22670# Generated by $as_me.
22671# Run this file to recreate the current configuration.
22672# Compiler output produced by configure, useful for debugging
22673# configure, is in config.log if it exists.
22674
22675debug=false
22676ac_cs_recheck=false
22677ac_cs_silent=false
22678SHELL=\${CONFIG_SHELL-$SHELL}
22679_ACEOF
22680
22681cat >>$CONFIG_STATUS <<\_ACEOF
22682## --------------------- ##
22683## M4sh Initialization.  ##
22684## --------------------- ##
22685
22686# Be Bourne compatible
22687if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22688  emulate sh
22689  NULLCMD=:
22690  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22691  # is contrary to our usage.  Disable this feature.
22692  alias -g '${1+"$@"}'='"$@"'
22693elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22694  set -o posix
22695fi
22696DUALCASE=1; export DUALCASE # for MKS sh
22697
22698# Support unset when possible.
22699if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22700  as_unset=unset
22701else
22702  as_unset=false
22703fi
22704
22705
22706# Work around bugs in pre-3.0 UWIN ksh.
22707$as_unset ENV MAIL MAILPATH
22708PS1='$ '
22709PS2='> '
22710PS4='+ '
22711
22712# NLS nuisances.
22713for as_var in \
22714  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22715  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22716  LC_TELEPHONE LC_TIME
22717do
22718  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22719    eval $as_var=C; export $as_var
22720  else
22721    $as_unset $as_var
22722  fi
22723done
22724
22725# Required to use basename.
22726if expr a : '\(a\)' >/dev/null 2>&1; then
22727  as_expr=expr
22728else
22729  as_expr=false
22730fi
22731
22732if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22733  as_basename=basename
22734else
22735  as_basename=false
22736fi
22737
22738
22739# Name of the executable.
22740as_me=`$as_basename "$0" ||
22741$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22742	 X"$0" : 'X\(//\)$' \| \
22743	 X"$0" : 'X\(/\)$' \| \
22744	 .     : '\(.\)' 2>/dev/null ||
22745echo X/"$0" |
22746    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22747  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22748  	  /^X\/\(\/\).*/{ s//\1/; q; }
22749  	  s/.*/./; q'`
22750
22751
22752# PATH needs CR, and LINENO needs CR and PATH.
22753# Avoid depending upon Character Ranges.
22754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22757as_cr_digits='0123456789'
22758as_cr_alnum=$as_cr_Letters$as_cr_digits
22759
22760# The user is always right.
22761if test "${PATH_SEPARATOR+set}" != set; then
22762  echo "#! /bin/sh" >conf$$.sh
22763  echo  "exit 0"   >>conf$$.sh
22764  chmod +x conf$$.sh
22765  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22766    PATH_SEPARATOR=';'
22767  else
22768    PATH_SEPARATOR=:
22769  fi
22770  rm -f conf$$.sh
22771fi
22772
22773
22774  as_lineno_1=$LINENO
22775  as_lineno_2=$LINENO
22776  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22777  test "x$as_lineno_1" != "x$as_lineno_2" &&
22778  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22779  # Find who we are.  Look in the path if we contain no path at all
22780  # relative or not.
22781  case $0 in
22782    *[\\/]* ) as_myself=$0 ;;
22783    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22784for as_dir in $PATH
22785do
22786  IFS=$as_save_IFS
22787  test -z "$as_dir" && as_dir=.
22788  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22789done
22790
22791       ;;
22792  esac
22793  # We did not find ourselves, most probably we were run as `sh COMMAND'
22794  # in which case we are not to be found in the path.
22795  if test "x$as_myself" = x; then
22796    as_myself=$0
22797  fi
22798  if test ! -f "$as_myself"; then
22799    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22800echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22801   { (exit 1); exit 1; }; }
22802  fi
22803  case $CONFIG_SHELL in
22804  '')
22805    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22806for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22807do
22808  IFS=$as_save_IFS
22809  test -z "$as_dir" && as_dir=.
22810  for as_base in sh bash ksh sh5; do
22811	 case $as_dir in
22812	 /*)
22813	   if ("$as_dir/$as_base" -c '
22814  as_lineno_1=$LINENO
22815  as_lineno_2=$LINENO
22816  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22817  test "x$as_lineno_1" != "x$as_lineno_2" &&
22818  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22819	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22820	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22821	     CONFIG_SHELL=$as_dir/$as_base
22822	     export CONFIG_SHELL
22823	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22824	   fi;;
22825	 esac
22826       done
22827done
22828;;
22829  esac
22830
22831  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22832  # uniformly replaced by the line number.  The first 'sed' inserts a
22833  # line-number line before each line; the second 'sed' does the real
22834  # work.  The second script uses 'N' to pair each line-number line
22835  # with the numbered line, and appends trailing '-' during
22836  # substitution so that $LINENO is not a special case at line end.
22837  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22838  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22839  sed '=' <$as_myself |
22840    sed '
22841      N
22842      s,$,-,
22843      : loop
22844      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22845      t loop
22846      s,-$,,
22847      s,^['$as_cr_digits']*\n,,
22848    ' >$as_me.lineno &&
22849  chmod +x $as_me.lineno ||
22850    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22851echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22852   { (exit 1); exit 1; }; }
22853
22854  # Don't try to exec as it changes $[0], causing all sort of problems
22855  # (the dirname of $[0] is not the place where we might find the
22856  # original and so on.  Autoconf is especially sensible to this).
22857  . ./$as_me.lineno
22858  # Exit status is that of the last command.
22859  exit
22860}
22861
22862
22863case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22864  *c*,-n*) ECHO_N= ECHO_C='
22865' ECHO_T='	' ;;
22866  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22867  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22868esac
22869
22870if expr a : '\(a\)' >/dev/null 2>&1; then
22871  as_expr=expr
22872else
22873  as_expr=false
22874fi
22875
22876rm -f conf$$ conf$$.exe conf$$.file
22877echo >conf$$.file
22878if ln -s conf$$.file conf$$ 2>/dev/null; then
22879  # We could just check for DJGPP; but this test a) works b) is more generic
22880  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22881  if test -f conf$$.exe; then
22882    # Don't use ln at all; we don't have any links
22883    as_ln_s='cp -p'
22884  else
22885    as_ln_s='ln -s'
22886  fi
22887elif ln conf$$.file conf$$ 2>/dev/null; then
22888  as_ln_s=ln
22889else
22890  as_ln_s='cp -p'
22891fi
22892rm -f conf$$ conf$$.exe conf$$.file
22893
22894if mkdir -p . 2>/dev/null; then
22895  as_mkdir_p=:
22896else
22897  test -d ./-p && rmdir ./-p
22898  as_mkdir_p=false
22899fi
22900
22901as_executable_p="test -f"
22902
22903# Sed expression to map a string onto a valid CPP name.
22904as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22905
22906# Sed expression to map a string onto a valid variable name.
22907as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22908
22909
22910# IFS
22911# We need space, tab and new line, in precisely that order.
22912as_nl='
22913'
22914IFS=" 	$as_nl"
22915
22916# CDPATH.
22917$as_unset CDPATH
22918
22919exec 6>&1
22920
22921# Open the log real soon, to keep \$[0] and so on meaningful, and to
22922# report actual input values of CONFIG_FILES etc. instead of their
22923# values after options handling.  Logging --version etc. is OK.
22924exec 5>>config.log
22925{
22926  echo
22927  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22928## Running $as_me. ##
22929_ASBOX
22930} >&5
22931cat >&5 <<_CSEOF
22932
22933This file was extended by Clp $as_me 1.17.3, which was
22934generated by GNU Autoconf 2.59.  Invocation command line was
22935
22936  CONFIG_FILES    = $CONFIG_FILES
22937  CONFIG_HEADERS  = $CONFIG_HEADERS
22938  CONFIG_LINKS    = $CONFIG_LINKS
22939  CONFIG_COMMANDS = $CONFIG_COMMANDS
22940  $ $0 $@
22941
22942_CSEOF
22943echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22944echo >&5
22945_ACEOF
22946
22947# Files that config.status was made for.
22948if test -n "$ac_config_files"; then
22949  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22950fi
22951
22952if test -n "$ac_config_headers"; then
22953  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22954fi
22955
22956if test -n "$ac_config_links"; then
22957  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22958fi
22959
22960if test -n "$ac_config_commands"; then
22961  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22962fi
22963
22964cat >>$CONFIG_STATUS <<\_ACEOF
22965
22966ac_cs_usage="\
22967\`$as_me' instantiates files from templates according to the
22968current configuration.
22969
22970Usage: $0 [OPTIONS] [FILE]...
22971
22972  -h, --help       print this help, then exit
22973  -V, --version    print version number, then exit
22974  -q, --quiet      do not print progress messages
22975  -d, --debug      don't remove temporary files
22976      --recheck    update $as_me by reconfiguring in the same conditions
22977  --file=FILE[:TEMPLATE]
22978		   instantiate the configuration file FILE
22979
22980Configuration files:
22981$config_files
22982
22983Configuration commands:
22984$config_commands
22985
22986Report bugs to <bug-autoconf@gnu.org>."
22987_ACEOF
22988
22989cat >>$CONFIG_STATUS <<_ACEOF
22990ac_cs_version="\\
22991Clp config.status 1.17.3
22992configured by $0, generated by GNU Autoconf 2.59,
22993  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22994
22995Copyright (C) 2003 Free Software Foundation, Inc.
22996This config.status script is free software; the Free Software Foundation
22997gives unlimited permission to copy, distribute and modify it."
22998srcdir=$srcdir
22999INSTALL="$INSTALL"
23000_ACEOF
23001
23002cat >>$CONFIG_STATUS <<\_ACEOF
23003# If no file are specified by the user, then we need to provide default
23004# value.  By we need to know if files were specified by the user.
23005ac_need_defaults=:
23006while test $# != 0
23007do
23008  case $1 in
23009  --*=*)
23010    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23011    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23012    ac_shift=:
23013    ;;
23014  -*)
23015    ac_option=$1
23016    ac_optarg=$2
23017    ac_shift=shift
23018    ;;
23019  *) # This is not an option, so the user has probably given explicit
23020     # arguments.
23021     ac_option=$1
23022     ac_need_defaults=false;;
23023  esac
23024
23025  case $ac_option in
23026  # Handling of the options.
23027_ACEOF
23028cat >>$CONFIG_STATUS <<\_ACEOF
23029  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23030    ac_cs_recheck=: ;;
23031  --version | --vers* | -V )
23032    echo "$ac_cs_version"; exit 0 ;;
23033  --he | --h)
23034    # Conflict between --help and --header
23035    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23036Try \`$0 --help' for more information." >&5
23037echo "$as_me: error: ambiguous option: $1
23038Try \`$0 --help' for more information." >&2;}
23039   { (exit 1); exit 1; }; };;
23040  --help | --hel | -h )
23041    echo "$ac_cs_usage"; exit 0 ;;
23042  --debug | --d* | -d )
23043    debug=: ;;
23044  --file | --fil | --fi | --f )
23045    $ac_shift
23046    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23047    ac_need_defaults=false;;
23048  --header | --heade | --head | --hea )
23049    $ac_shift
23050    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23051    ac_need_defaults=false;;
23052  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23053  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23054    ac_cs_silent=: ;;
23055
23056  # This is an error.
23057  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23058Try \`$0 --help' for more information." >&5
23059echo "$as_me: error: unrecognized option: $1
23060Try \`$0 --help' for more information." >&2;}
23061   { (exit 1); exit 1; }; } ;;
23062
23063  *) ac_config_targets="$ac_config_targets $1" ;;
23064
23065  esac
23066  shift
23067done
23068
23069ac_configure_extra_args=
23070
23071if $ac_cs_silent; then
23072  exec 6>/dev/null
23073  ac_configure_extra_args="$ac_configure_extra_args --silent"
23074fi
23075
23076_ACEOF
23077cat >>$CONFIG_STATUS <<_ACEOF
23078if \$ac_cs_recheck; then
23079  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23080  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23081fi
23082
23083_ACEOF
23084
23085cat >>$CONFIG_STATUS <<_ACEOF
23086#
23087# INIT-COMMANDS section.
23088#
23089
23090AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23091
23092_ACEOF
23093
23094
23095
23096cat >>$CONFIG_STATUS <<\_ACEOF
23097for ac_config_target in $ac_config_targets
23098do
23099  case "$ac_config_target" in
23100  # Handling of arguments.
23101  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23102  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
23103  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23104  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23105echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23106   { (exit 1); exit 1; }; };;
23107  esac
23108done
23109
23110# If the user did not use the arguments to specify the items to instantiate,
23111# then the envvar interface is used.  Set only those that are not.
23112# We use the long form for the default assignment because of an extremely
23113# bizarre bug on SunOS 4.1.3.
23114if $ac_need_defaults; then
23115  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23116  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23117fi
23118
23119# Have a temporary directory for convenience.  Make it in the build tree
23120# simply because there is no reason to put it here, and in addition,
23121# creating and moving files from /tmp can sometimes cause problems.
23122# Create a temporary directory, and hook for its removal unless debugging.
23123$debug ||
23124{
23125  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23126  trap '{ (exit 1); exit 1; }' 1 2 13 15
23127}
23128
23129# Create a (secure) tmp directory for tmp files.
23130
23131{
23132  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23133  test -n "$tmp" && test -d "$tmp"
23134}  ||
23135{
23136  tmp=./confstat$$-$RANDOM
23137  (umask 077 && mkdir $tmp)
23138} ||
23139{
23140   echo "$me: cannot create a temporary directory in ." >&2
23141   { (exit 1); exit 1; }
23142}
23143
23144_ACEOF
23145
23146cat >>$CONFIG_STATUS <<_ACEOF
23147
23148#
23149# CONFIG_FILES section.
23150#
23151
23152# No need to generate the scripts if there are no CONFIG_FILES.
23153# This happens for instance when ./config.status config.h
23154if test -n "\$CONFIG_FILES"; then
23155  # Protect against being on the right side of a sed subst in config.status.
23156  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23157   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23158s,@SHELL@,$SHELL,;t t
23159s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23160s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23161s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23162s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23163s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23164s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23165s,@exec_prefix@,$exec_prefix,;t t
23166s,@prefix@,$prefix,;t t
23167s,@program_transform_name@,$program_transform_name,;t t
23168s,@bindir@,$bindir,;t t
23169s,@sbindir@,$sbindir,;t t
23170s,@libexecdir@,$libexecdir,;t t
23171s,@datadir@,$datadir,;t t
23172s,@sysconfdir@,$sysconfdir,;t t
23173s,@sharedstatedir@,$sharedstatedir,;t t
23174s,@localstatedir@,$localstatedir,;t t
23175s,@libdir@,$libdir,;t t
23176s,@includedir@,$includedir,;t t
23177s,@oldincludedir@,$oldincludedir,;t t
23178s,@infodir@,$infodir,;t t
23179s,@mandir@,$mandir,;t t
23180s,@build_alias@,$build_alias,;t t
23181s,@host_alias@,$host_alias,;t t
23182s,@target_alias@,$target_alias,;t t
23183s,@DEFS@,$DEFS,;t t
23184s,@ECHO_C@,$ECHO_C,;t t
23185s,@ECHO_N@,$ECHO_N,;t t
23186s,@ECHO_T@,$ECHO_T,;t t
23187s,@LIBS@,$LIBS,;t t
23188s,@build@,$build,;t t
23189s,@build_cpu@,$build_cpu,;t t
23190s,@build_vendor@,$build_vendor,;t t
23191s,@build_os@,$build_os,;t t
23192s,@CDEFS@,$CDEFS,;t t
23193s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23194s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23195s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23196s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23197s,@CC@,$CC,;t t
23198s,@CFLAGS@,$CFLAGS,;t t
23199s,@LDFLAGS@,$LDFLAGS,;t t
23200s,@CPPFLAGS@,$CPPFLAGS,;t t
23201s,@ac_ct_CC@,$ac_ct_CC,;t t
23202s,@EXEEXT@,$EXEEXT,;t t
23203s,@OBJEXT@,$OBJEXT,;t t
23204s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23205s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23206s,@MPICC@,$MPICC,;t t
23207s,@CXXDEFS@,$CXXDEFS,;t t
23208s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23209s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23210s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23211s,@CXX@,$CXX,;t t
23212s,@CXXFLAGS@,$CXXFLAGS,;t t
23213s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23214s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23215s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23216s,@MPICXX@,$MPICXX,;t t
23217s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
23218s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
23219s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
23220s,@F77@,$F77,;t t
23221s,@ac_ct_F77@,$ac_ct_F77,;t t
23222s,@FFLAGS@,$FFLAGS,;t t
23223s,@MPIF77@,$MPIF77,;t t
23224s,@EGREP@,$EGREP,;t t
23225s,@LN_S@,$LN_S,;t t
23226s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23227s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23228s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23229s,@CYGPATH_W@,$CYGPATH_W,;t t
23230s,@PACKAGE@,$PACKAGE,;t t
23231s,@VERSION@,$VERSION,;t t
23232s,@ACLOCAL@,$ACLOCAL,;t t
23233s,@AUTOCONF@,$AUTOCONF,;t t
23234s,@AUTOMAKE@,$AUTOMAKE,;t t
23235s,@AUTOHEADER@,$AUTOHEADER,;t t
23236s,@MAKEINFO@,$MAKEINFO,;t t
23237s,@install_sh@,$install_sh,;t t
23238s,@STRIP@,$STRIP,;t t
23239s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23240s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23241s,@mkdir_p@,$mkdir_p,;t t
23242s,@AWK@,$AWK,;t t
23243s,@SET_MAKE@,$SET_MAKE,;t t
23244s,@am__leading_dot@,$am__leading_dot,;t t
23245s,@AMTAR@,$AMTAR,;t t
23246s,@am__tar@,$am__tar,;t t
23247s,@am__untar@,$am__untar,;t t
23248s,@DEPDIR@,$DEPDIR,;t t
23249s,@am__include@,$am__include,;t t
23250s,@am__quote@,$am__quote,;t t
23251s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23252s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23253s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23254s,@CCDEPMODE@,$CCDEPMODE,;t t
23255s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23256s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23257s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23258s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23259s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23260s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23261s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23262s,@MAINT@,$MAINT,;t t
23263s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23264s,@have_autoconf@,$have_autoconf,;t t
23265s,@have_automake@,$have_automake,;t t
23266s,@have_svn@,$have_svn,;t t
23267s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23268s,@AUX_DIR@,$AUX_DIR,;t t
23269s,@abs_source_dir@,$abs_source_dir,;t t
23270s,@abs_lib_dir@,$abs_lib_dir,;t t
23271s,@abs_include_dir@,$abs_include_dir,;t t
23272s,@abs_bin_dir@,$abs_bin_dir,;t t
23273s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23274s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23275s,@host@,$host,;t t
23276s,@host_cpu@,$host_cpu,;t t
23277s,@host_vendor@,$host_vendor,;t t
23278s,@host_os@,$host_os,;t t
23279s,@ECHO@,$ECHO,;t t
23280s,@AR@,$AR,;t t
23281s,@ac_ct_AR@,$ac_ct_AR,;t t
23282s,@RANLIB@,$RANLIB,;t t
23283s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23284s,@CPP@,$CPP,;t t
23285s,@CXXCPP@,$CXXCPP,;t t
23286s,@LIBTOOL@,$LIBTOOL,;t t
23287s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23288s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23289s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23290s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
23291s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
23292s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23293s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
23294s,@subdirs@,$subdirs,;t t
23295s,@coin_have_doxygen@,$coin_have_doxygen,;t t
23296s,@coin_have_latex@,$coin_have_latex,;t t
23297s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
23298s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
23299s,@coin_doxy_logname@,$coin_doxy_logname,;t t
23300s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
23301s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
23302s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
23303s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
23304s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
23305s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
23306s,@LIBEXT@,$LIBEXT,;t t
23307s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23308s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23309s,@LIBOBJS@,$LIBOBJS,;t t
23310s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23311CEOF
23312
23313_ACEOF
23314
23315  cat >>$CONFIG_STATUS <<\_ACEOF
23316  # Split the substitutions into bite-sized pieces for seds with
23317  # small command number limits, like on Digital OSF/1 and HP-UX.
23318  ac_max_sed_lines=48
23319  ac_sed_frag=1 # Number of current file.
23320  ac_beg=1 # First line for current file.
23321  ac_end=$ac_max_sed_lines # Line after last line for current file.
23322  ac_more_lines=:
23323  ac_sed_cmds=
23324  while $ac_more_lines; do
23325    if test $ac_beg -gt 1; then
23326      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23327    else
23328      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23329    fi
23330    if test ! -s $tmp/subs.frag; then
23331      ac_more_lines=false
23332    else
23333      # The purpose of the label and of the branching condition is to
23334      # speed up the sed processing (if there are no `@' at all, there
23335      # is no need to browse any of the substitutions).
23336      # These are the two extra sed commands mentioned above.
23337      (echo ':t
23338  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23339      if test -z "$ac_sed_cmds"; then
23340	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23341      else
23342	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23343      fi
23344      ac_sed_frag=`expr $ac_sed_frag + 1`
23345      ac_beg=$ac_end
23346      ac_end=`expr $ac_end + $ac_max_sed_lines`
23347    fi
23348  done
23349  if test -z "$ac_sed_cmds"; then
23350    ac_sed_cmds=cat
23351  fi
23352fi # test -n "$CONFIG_FILES"
23353
23354_ACEOF
23355cat >>$CONFIG_STATUS <<\_ACEOF
23356for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23357  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23358  case $ac_file in
23359  - | *:- | *:-:* ) # input from stdin
23360	cat >$tmp/stdin
23361	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23362	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23363  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23364	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23365  * )   ac_file_in=$ac_file.in ;;
23366  esac
23367
23368  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23369  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23370$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23371	 X"$ac_file" : 'X\(//\)[^/]' \| \
23372	 X"$ac_file" : 'X\(//\)$' \| \
23373	 X"$ac_file" : 'X\(/\)' \| \
23374	 .     : '\(.\)' 2>/dev/null ||
23375echo X"$ac_file" |
23376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23377  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23378  	  /^X\(\/\/\)$/{ s//\1/; q; }
23379  	  /^X\(\/\).*/{ s//\1/; q; }
23380  	  s/.*/./; q'`
23381  { if $as_mkdir_p; then
23382    mkdir -p "$ac_dir"
23383  else
23384    as_dir="$ac_dir"
23385    as_dirs=
23386    while test ! -d "$as_dir"; do
23387      as_dirs="$as_dir $as_dirs"
23388      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23390	 X"$as_dir" : 'X\(//\)[^/]' \| \
23391	 X"$as_dir" : 'X\(//\)$' \| \
23392	 X"$as_dir" : 'X\(/\)' \| \
23393	 .     : '\(.\)' 2>/dev/null ||
23394echo X"$as_dir" |
23395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23396  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23397  	  /^X\(\/\/\)$/{ s//\1/; q; }
23398  	  /^X\(\/\).*/{ s//\1/; q; }
23399  	  s/.*/./; q'`
23400    done
23401    test ! -n "$as_dirs" || mkdir $as_dirs
23402  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23403echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23404   { (exit 1); exit 1; }; }; }
23405
23406  ac_builddir=.
23407
23408if test "$ac_dir" != .; then
23409  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23410  # A "../" for each directory in $ac_dir_suffix.
23411  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23412else
23413  ac_dir_suffix= ac_top_builddir=
23414fi
23415
23416case $srcdir in
23417  .)  # No --srcdir option.  We are building in place.
23418    ac_srcdir=.
23419    if test -z "$ac_top_builddir"; then
23420       ac_top_srcdir=.
23421    else
23422       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23423    fi ;;
23424  [\\/]* | ?:[\\/]* )  # Absolute path.
23425    ac_srcdir=$srcdir$ac_dir_suffix;
23426    ac_top_srcdir=$srcdir ;;
23427  *) # Relative path.
23428    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23429    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23430esac
23431
23432# Do not use `cd foo && pwd` to compute absolute paths, because
23433# the directories may not exist.
23434case `pwd` in
23435.) ac_abs_builddir="$ac_dir";;
23436*)
23437  case "$ac_dir" in
23438  .) ac_abs_builddir=`pwd`;;
23439  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23440  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23441  esac;;
23442esac
23443case $ac_abs_builddir in
23444.) ac_abs_top_builddir=${ac_top_builddir}.;;
23445*)
23446  case ${ac_top_builddir}. in
23447  .) ac_abs_top_builddir=$ac_abs_builddir;;
23448  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23449  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23450  esac;;
23451esac
23452case $ac_abs_builddir in
23453.) ac_abs_srcdir=$ac_srcdir;;
23454*)
23455  case $ac_srcdir in
23456  .) ac_abs_srcdir=$ac_abs_builddir;;
23457  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23458  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23459  esac;;
23460esac
23461case $ac_abs_builddir in
23462.) ac_abs_top_srcdir=$ac_top_srcdir;;
23463*)
23464  case $ac_top_srcdir in
23465  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23466  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23467  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23468  esac;;
23469esac
23470
23471
23472  case $INSTALL in
23473  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23474  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23475  esac
23476
23477  if test x"$ac_file" != x-; then
23478    { echo "$as_me:$LINENO: creating $ac_file" >&5
23479echo "$as_me: creating $ac_file" >&6;}
23480    rm -f "$ac_file"
23481  fi
23482  # Let's still pretend it is `configure' which instantiates (i.e., don't
23483  # use $as_me), people would be surprised to read:
23484  #    /* config.h.  Generated by config.status.  */
23485  if test x"$ac_file" = x-; then
23486    configure_input=
23487  else
23488    configure_input="$ac_file.  "
23489  fi
23490  configure_input=$configure_input"Generated from `echo $ac_file_in |
23491				     sed 's,.*/,,'` by configure."
23492
23493  # First look for the input files in the build tree, otherwise in the
23494  # src tree.
23495  ac_file_inputs=`IFS=:
23496    for f in $ac_file_in; do
23497      case $f in
23498      -) echo $tmp/stdin ;;
23499      [\\/$]*)
23500	 # Absolute (can't be DOS-style, as IFS=:)
23501	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23502echo "$as_me: error: cannot find input file: $f" >&2;}
23503   { (exit 1); exit 1; }; }
23504	 echo "$f";;
23505      *) # Relative
23506	 if test -f "$f"; then
23507	   # Build tree
23508	   echo "$f"
23509	 elif test -f "$srcdir/$f"; then
23510	   # Source tree
23511	   echo "$srcdir/$f"
23512	 else
23513	   # /dev/null tree
23514	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23515echo "$as_me: error: cannot find input file: $f" >&2;}
23516   { (exit 1); exit 1; }; }
23517	 fi;;
23518      esac
23519    done` || { (exit 1); exit 1; }
23520_ACEOF
23521cat >>$CONFIG_STATUS <<_ACEOF
23522  sed "$ac_vpsub
23523$extrasub
23524_ACEOF
23525cat >>$CONFIG_STATUS <<\_ACEOF
23526:t
23527/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23528s,@configure_input@,$configure_input,;t t
23529s,@srcdir@,$ac_srcdir,;t t
23530s,@abs_srcdir@,$ac_abs_srcdir,;t t
23531s,@top_srcdir@,$ac_top_srcdir,;t t
23532s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23533s,@builddir@,$ac_builddir,;t t
23534s,@abs_builddir@,$ac_abs_builddir,;t t
23535s,@top_builddir@,$ac_top_builddir,;t t
23536s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23537s,@INSTALL@,$ac_INSTALL,;t t
23538" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23539  rm -f $tmp/stdin
23540  if test x"$ac_file" != x-; then
23541    mv $tmp/out $ac_file
23542  else
23543    cat $tmp/out
23544    rm -f $tmp/out
23545  fi
23546
23547done
23548_ACEOF
23549cat >>$CONFIG_STATUS <<\_ACEOF
23550
23551#
23552# CONFIG_COMMANDS section.
23553#
23554for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23555  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23556  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23557  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23558$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23559	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23560	 X"$ac_dest" : 'X\(//\)$' \| \
23561	 X"$ac_dest" : 'X\(/\)' \| \
23562	 .     : '\(.\)' 2>/dev/null ||
23563echo X"$ac_dest" |
23564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23565  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23566  	  /^X\(\/\/\)$/{ s//\1/; q; }
23567  	  /^X\(\/\).*/{ s//\1/; q; }
23568  	  s/.*/./; q'`
23569  { if $as_mkdir_p; then
23570    mkdir -p "$ac_dir"
23571  else
23572    as_dir="$ac_dir"
23573    as_dirs=
23574    while test ! -d "$as_dir"; do
23575      as_dirs="$as_dir $as_dirs"
23576      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23578	 X"$as_dir" : 'X\(//\)[^/]' \| \
23579	 X"$as_dir" : 'X\(//\)$' \| \
23580	 X"$as_dir" : 'X\(/\)' \| \
23581	 .     : '\(.\)' 2>/dev/null ||
23582echo X"$as_dir" |
23583    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23584  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23585  	  /^X\(\/\/\)$/{ s//\1/; q; }
23586  	  /^X\(\/\).*/{ s//\1/; q; }
23587  	  s/.*/./; q'`
23588    done
23589    test ! -n "$as_dirs" || mkdir $as_dirs
23590  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23591echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23592   { (exit 1); exit 1; }; }; }
23593
23594  ac_builddir=.
23595
23596if test "$ac_dir" != .; then
23597  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23598  # A "../" for each directory in $ac_dir_suffix.
23599  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23600else
23601  ac_dir_suffix= ac_top_builddir=
23602fi
23603
23604case $srcdir in
23605  .)  # No --srcdir option.  We are building in place.
23606    ac_srcdir=.
23607    if test -z "$ac_top_builddir"; then
23608       ac_top_srcdir=.
23609    else
23610       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23611    fi ;;
23612  [\\/]* | ?:[\\/]* )  # Absolute path.
23613    ac_srcdir=$srcdir$ac_dir_suffix;
23614    ac_top_srcdir=$srcdir ;;
23615  *) # Relative path.
23616    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23617    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23618esac
23619
23620# Do not use `cd foo && pwd` to compute absolute paths, because
23621# the directories may not exist.
23622case `pwd` in
23623.) ac_abs_builddir="$ac_dir";;
23624*)
23625  case "$ac_dir" in
23626  .) ac_abs_builddir=`pwd`;;
23627  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23628  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23629  esac;;
23630esac
23631case $ac_abs_builddir in
23632.) ac_abs_top_builddir=${ac_top_builddir}.;;
23633*)
23634  case ${ac_top_builddir}. in
23635  .) ac_abs_top_builddir=$ac_abs_builddir;;
23636  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23637  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23638  esac;;
23639esac
23640case $ac_abs_builddir in
23641.) ac_abs_srcdir=$ac_srcdir;;
23642*)
23643  case $ac_srcdir in
23644  .) ac_abs_srcdir=$ac_abs_builddir;;
23645  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23646  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23647  esac;;
23648esac
23649case $ac_abs_builddir in
23650.) ac_abs_top_srcdir=$ac_top_srcdir;;
23651*)
23652  case $ac_top_srcdir in
23653  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23654  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23655  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23656  esac;;
23657esac
23658
23659
23660  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23661echo "$as_me: executing $ac_dest commands" >&6;}
23662  case $ac_dest in
23663    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23664  # Strip MF so we end up with the name of the file.
23665  mf=`echo "$mf" | sed -e 's/:.*$//'`
23666  # Check whether this is an Automake generated Makefile or not.
23667  # We used to match only the files named `Makefile.in', but
23668  # some people rename them; so instead we look at the file content.
23669  # Grep'ing the first line is not enough: some people post-process
23670  # each Makefile.in and add a new line on top of each file to say so.
23671  # So let's grep whole file.
23672  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23673    dirpart=`(dirname "$mf") 2>/dev/null ||
23674$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23675	 X"$mf" : 'X\(//\)[^/]' \| \
23676	 X"$mf" : 'X\(//\)$' \| \
23677	 X"$mf" : 'X\(/\)' \| \
23678	 .     : '\(.\)' 2>/dev/null ||
23679echo X"$mf" |
23680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23681  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23682  	  /^X\(\/\/\)$/{ s//\1/; q; }
23683  	  /^X\(\/\).*/{ s//\1/; q; }
23684  	  s/.*/./; q'`
23685  else
23686    continue
23687  fi
23688  # Extract the definition of DEPDIR, am__include, and am__quote
23689  # from the Makefile without running `make'.
23690  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23691  test -z "$DEPDIR" && continue
23692  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23693  test -z "am__include" && continue
23694  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23695  # When using ansi2knr, U may be empty or an underscore; expand it
23696  U=`sed -n 's/^U = //p' < "$mf"`
23697  # Find all dependency output files, they are included files with
23698  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23699  # simplest approach to changing $(DEPDIR) to its actual value in the
23700  # expansion.
23701  for file in `sed -n "
23702    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23703       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23704    # Make sure the directory exists.
23705    test -f "$dirpart/$file" && continue
23706    fdir=`(dirname "$file") 2>/dev/null ||
23707$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23708	 X"$file" : 'X\(//\)[^/]' \| \
23709	 X"$file" : 'X\(//\)$' \| \
23710	 X"$file" : 'X\(/\)' \| \
23711	 .     : '\(.\)' 2>/dev/null ||
23712echo X"$file" |
23713    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23714  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23715  	  /^X\(\/\/\)$/{ s//\1/; q; }
23716  	  /^X\(\/\).*/{ s//\1/; q; }
23717  	  s/.*/./; q'`
23718    { if $as_mkdir_p; then
23719    mkdir -p $dirpart/$fdir
23720  else
23721    as_dir=$dirpart/$fdir
23722    as_dirs=
23723    while test ! -d "$as_dir"; do
23724      as_dirs="$as_dir $as_dirs"
23725      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23727	 X"$as_dir" : 'X\(//\)[^/]' \| \
23728	 X"$as_dir" : 'X\(//\)$' \| \
23729	 X"$as_dir" : 'X\(/\)' \| \
23730	 .     : '\(.\)' 2>/dev/null ||
23731echo X"$as_dir" |
23732    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23733  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23734  	  /^X\(\/\/\)$/{ s//\1/; q; }
23735  	  /^X\(\/\).*/{ s//\1/; q; }
23736  	  s/.*/./; q'`
23737    done
23738    test ! -n "$as_dirs" || mkdir $as_dirs
23739  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23740echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23741   { (exit 1); exit 1; }; }; }
23742
23743    # echo "creating $dirpart/$file"
23744    echo '# dummy' > "$dirpart/$file"
23745  done
23746done
23747 ;;
23748  esac
23749done
23750_ACEOF
23751
23752cat >>$CONFIG_STATUS <<\_ACEOF
23753
23754{ (exit 0); exit 0; }
23755_ACEOF
23756chmod +x $CONFIG_STATUS
23757ac_clean_files=$ac_clean_files_save
23758
23759
23760# configure is writing to config.log, and then calls config.status.
23761# config.status does its own redirection, appending to config.log.
23762# Unfortunately, on DOS this fails, as config.log is still kept open
23763# by configure, so config.status won't be able to write to it; its
23764# output is simply discarded.  So we exec the FD to /dev/null,
23765# effectively closing config.log, so it can be properly (re)opened and
23766# appended to by config.status.  When coming back to configure, we
23767# need to make the FD available again.
23768if test "$no_create" != yes; then
23769  ac_cs_success=:
23770  ac_config_status_args=
23771  test "$silent" = yes &&
23772    ac_config_status_args="$ac_config_status_args --quiet"
23773  exec 5>/dev/null
23774  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23775  exec 5>>config.log
23776  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23777  # would make configure fail if this is the last instruction.
23778  $ac_cs_success || { (exit 1); exit 1; }
23779fi
23780
23781#
23782# CONFIG_SUBDIRS section.
23783#
23784if test "$no_recursion" != yes; then
23785
23786  # Remove --cache-file and --srcdir arguments so they do not pile up.
23787  ac_sub_configure_args=
23788  ac_prev=
23789  for ac_arg in $ac_configure_args; do
23790    if test -n "$ac_prev"; then
23791      ac_prev=
23792      continue
23793    fi
23794    case $ac_arg in
23795    -cache-file | --cache-file | --cache-fil | --cache-fi \
23796    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23797      ac_prev=cache_file ;;
23798    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23799    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23800    | --c=*)
23801      ;;
23802    --config-cache | -C)
23803      ;;
23804    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23805      ac_prev=srcdir ;;
23806    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23807      ;;
23808    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23809      ac_prev=prefix ;;
23810    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23811      ;;
23812    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23813    esac
23814  done
23815
23816  # Always prepend --prefix to ensure using the same prefix
23817  # in subdir configurations.
23818  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23819
23820  ac_popdir=`pwd`
23821  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23822
23823    # Do not complain, so a configure script can configure whichever
23824    # parts of a large source tree are present.
23825    test -d $srcdir/$ac_dir || continue
23826
23827    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23828echo "$as_me: configuring in $ac_dir" >&6;}
23829    { if $as_mkdir_p; then
23830    mkdir -p "$ac_dir"
23831  else
23832    as_dir="$ac_dir"
23833    as_dirs=
23834    while test ! -d "$as_dir"; do
23835      as_dirs="$as_dir $as_dirs"
23836      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23838	 X"$as_dir" : 'X\(//\)[^/]' \| \
23839	 X"$as_dir" : 'X\(//\)$' \| \
23840	 X"$as_dir" : 'X\(/\)' \| \
23841	 .     : '\(.\)' 2>/dev/null ||
23842echo X"$as_dir" |
23843    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23844  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23845  	  /^X\(\/\/\)$/{ s//\1/; q; }
23846  	  /^X\(\/\).*/{ s//\1/; q; }
23847  	  s/.*/./; q'`
23848    done
23849    test ! -n "$as_dirs" || mkdir $as_dirs
23850  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23851echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23852   { (exit 1); exit 1; }; }; }
23853
23854    ac_builddir=.
23855
23856if test "$ac_dir" != .; then
23857  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23858  # A "../" for each directory in $ac_dir_suffix.
23859  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23860else
23861  ac_dir_suffix= ac_top_builddir=
23862fi
23863
23864case $srcdir in
23865  .)  # No --srcdir option.  We are building in place.
23866    ac_srcdir=.
23867    if test -z "$ac_top_builddir"; then
23868       ac_top_srcdir=.
23869    else
23870       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23871    fi ;;
23872  [\\/]* | ?:[\\/]* )  # Absolute path.
23873    ac_srcdir=$srcdir$ac_dir_suffix;
23874    ac_top_srcdir=$srcdir ;;
23875  *) # Relative path.
23876    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23877    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23878esac
23879
23880# Do not use `cd foo && pwd` to compute absolute paths, because
23881# the directories may not exist.
23882case `pwd` in
23883.) ac_abs_builddir="$ac_dir";;
23884*)
23885  case "$ac_dir" in
23886  .) ac_abs_builddir=`pwd`;;
23887  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23888  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23889  esac;;
23890esac
23891case $ac_abs_builddir in
23892.) ac_abs_top_builddir=${ac_top_builddir}.;;
23893*)
23894  case ${ac_top_builddir}. in
23895  .) ac_abs_top_builddir=$ac_abs_builddir;;
23896  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23897  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23898  esac;;
23899esac
23900case $ac_abs_builddir in
23901.) ac_abs_srcdir=$ac_srcdir;;
23902*)
23903  case $ac_srcdir in
23904  .) ac_abs_srcdir=$ac_abs_builddir;;
23905  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23906  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23907  esac;;
23908esac
23909case $ac_abs_builddir in
23910.) ac_abs_top_srcdir=$ac_top_srcdir;;
23911*)
23912  case $ac_top_srcdir in
23913  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23914  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23915  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23916  esac;;
23917esac
23918
23919
23920    cd $ac_dir
23921
23922    # Check for guested configure; otherwise get Cygnus style configure.
23923    if test -f $ac_srcdir/configure.gnu; then
23924      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23925    elif test -f $ac_srcdir/configure; then
23926      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23927    elif test -f $ac_srcdir/configure.in; then
23928      ac_sub_configure=$ac_configure
23929    else
23930      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23931echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23932      ac_sub_configure=
23933    fi
23934
23935    # The recursion is here.
23936    if test -n "$ac_sub_configure"; then
23937      # Make the cache file name correct relative to the subdirectory.
23938      case $cache_file in
23939      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23940      *) # Relative path.
23941	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23942      esac
23943
23944      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23945echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23946      # The eval makes quoting arguments work.
23947      eval $ac_sub_configure $ac_sub_configure_args \
23948	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23949	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23950echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23951   { (exit 1); exit 1; }; }
23952    fi
23953
23954    cd $ac_popdir
23955  done
23956fi
23957
23958
23959  if test x"$coin_vpath_link_files" = x; then : ; else
23960    lnkcmd="$coin_link_input_cmd"
23961    if test "$lnkcmd" = cp; then
23962      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23963echo "$as_me: Copying data files for VPATH configuration" >&6;}
23964    else
23965      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23966echo "$as_me: Creating VPATH links for data files" >&6;}
23967    fi
23968    for file in $coin_vpath_link_files; do
23969      dir=`(dirname "./$file") 2>/dev/null ||
23970$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23971	 X"./$file" : 'X\(//\)[^/]' \| \
23972	 X"./$file" : 'X\(//\)$' \| \
23973	 X"./$file" : 'X\(/\)' \| \
23974	 .     : '\(.\)' 2>/dev/null ||
23975echo X"./$file" |
23976    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23977  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23978  	  /^X\(\/\/\)$/{ s//\1/; q; }
23979  	  /^X\(\/\).*/{ s//\1/; q; }
23980  	  s/.*/./; q'`
23981      if test -d $dir; then : ; else
23982        { if $as_mkdir_p; then
23983    mkdir -p $dir
23984  else
23985    as_dir=$dir
23986    as_dirs=
23987    while test ! -d "$as_dir"; do
23988      as_dirs="$as_dir $as_dirs"
23989      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23990$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23991	 X"$as_dir" : 'X\(//\)[^/]' \| \
23992	 X"$as_dir" : 'X\(//\)$' \| \
23993	 X"$as_dir" : 'X\(/\)' \| \
23994	 .     : '\(.\)' 2>/dev/null ||
23995echo X"$as_dir" |
23996    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23997  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23998  	  /^X\(\/\/\)$/{ s//\1/; q; }
23999  	  /^X\(\/\).*/{ s//\1/; q; }
24000  	  s/.*/./; q'`
24001    done
24002    test ! -n "$as_dirs" || mkdir $as_dirs
24003  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
24004echo "$as_me: error: cannot create directory $dir" >&2;}
24005   { (exit 1); exit 1; }; }; }
24006
24007      fi
24008      rm -f $file
24009      $lnkcmd $abs_source_dir/$file $file
24010    done
24011  fi
24012
24013  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
24014echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
24015  if test x$coin_projectdir = xyes; then
24016    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
24017echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
24018  else
24019    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
24020echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
24021  fi
24022else
24023  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
24024echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
24025fi
24026
24027
24028