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 Crème 0.0trunk.
5#
6# Report bugs to <http://projects.coin-or.org/Creme/newticket>.
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 2011 Pietro Belotti.
14# All Rights Reserved.
15# This file is part of the open source package Creme 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='Crème'
432PACKAGE_TARNAME='cr--me'
433PACKAGE_VERSION='0.0trunk'
434PACKAGE_STRING='Crème 0.0trunk'
435PACKAGE_BUGREPORT='http://projects.coin-or.org/Creme/newticket'
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 Creme"
477ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler 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 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 CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
478ac_subst_files=''
479
480# Initialize some variables set by options.
481ac_init_help=
482ac_init_version=false
483# The variables have the same names as the options, with
484# dashes changed to underlines.
485cache_file=/dev/null
486exec_prefix=NONE
487no_create=
488no_recursion=
489prefix=NONE
490program_prefix=NONE
491program_suffix=NONE
492program_transform_name=s,x,x,
493silent=
494site=
495srcdir=
496verbose=
497x_includes=NONE
498x_libraries=NONE
499
500# Installation directory options.
501# These are left unexpanded so users can "make install exec_prefix=/foo"
502# and all the variables that are supposed to be based on exec_prefix
503# by default will actually change.
504# Use braces instead of parens because sh, perl, etc. also accept them.
505bindir='${exec_prefix}/bin'
506sbindir='${exec_prefix}/sbin'
507libexecdir='${exec_prefix}/libexec'
508datadir='${prefix}/share'
509sysconfdir='${prefix}/etc'
510sharedstatedir='${prefix}/com'
511localstatedir='${prefix}/var'
512libdir='${exec_prefix}/lib'
513includedir='${prefix}/include'
514oldincludedir='/usr/include'
515infodir='${prefix}/info'
516mandir='${prefix}/man'
517
518ac_prev=
519for ac_option
520do
521  # If the previous option needs an argument, assign it.
522  if test -n "$ac_prev"; then
523    eval "$ac_prev=\$ac_option"
524    ac_prev=
525    continue
526  fi
527
528  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530  # Accept the important Cygnus configure options, so we can diagnose typos.
531
532  case $ac_option in
533
534  -bindir | --bindir | --bindi | --bind | --bin | --bi)
535    ac_prev=bindir ;;
536  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537    bindir=$ac_optarg ;;
538
539  -build | --build | --buil | --bui | --bu)
540    ac_prev=build_alias ;;
541  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542    build_alias=$ac_optarg ;;
543
544  -cache-file | --cache-file | --cache-fil | --cache-fi \
545  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546    ac_prev=cache_file ;;
547  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549    cache_file=$ac_optarg ;;
550
551  --config-cache | -C)
552    cache_file=config.cache ;;
553
554  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555    ac_prev=datadir ;;
556  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557  | --da=*)
558    datadir=$ac_optarg ;;
559
560  -disable-* | --disable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    eval "enable_$ac_feature=no" ;;
568
569  -enable-* | --enable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    case $ac_option in
577      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578      *) ac_optarg=yes ;;
579    esac
580    eval "enable_$ac_feature='$ac_optarg'" ;;
581
582  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584  | --exec | --exe | --ex)
585    ac_prev=exec_prefix ;;
586  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588  | --exec=* | --exe=* | --ex=*)
589    exec_prefix=$ac_optarg ;;
590
591  -gas | --gas | --ga | --g)
592    # Obsolete; use --with-gas.
593    with_gas=yes ;;
594
595  -help | --help | --hel | --he | -h)
596    ac_init_help=long ;;
597  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598    ac_init_help=recursive ;;
599  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600    ac_init_help=short ;;
601
602  -host | --host | --hos | --ho)
603    ac_prev=host_alias ;;
604  -host=* | --host=* | --hos=* | --ho=*)
605    host_alias=$ac_optarg ;;
606
607  -includedir | --includedir | --includedi | --included | --include \
608  | --includ | --inclu | --incl | --inc)
609    ac_prev=includedir ;;
610  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611  | --includ=* | --inclu=* | --incl=* | --inc=*)
612    includedir=$ac_optarg ;;
613
614  -infodir | --infodir | --infodi | --infod | --info | --inf)
615    ac_prev=infodir ;;
616  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617    infodir=$ac_optarg ;;
618
619  -libdir | --libdir | --libdi | --libd)
620    ac_prev=libdir ;;
621  -libdir=* | --libdir=* | --libdi=* | --libd=*)
622    libdir=$ac_optarg ;;
623
624  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625  | --libexe | --libex | --libe)
626    ac_prev=libexecdir ;;
627  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628  | --libexe=* | --libex=* | --libe=*)
629    libexecdir=$ac_optarg ;;
630
631  -localstatedir | --localstatedir | --localstatedi | --localstated \
632  | --localstate | --localstat | --localsta | --localst \
633  | --locals | --local | --loca | --loc | --lo)
634    ac_prev=localstatedir ;;
635  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638    localstatedir=$ac_optarg ;;
639
640  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641    ac_prev=mandir ;;
642  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643    mandir=$ac_optarg ;;
644
645  -nfp | --nfp | --nf)
646    # Obsolete; use --without-fp.
647    with_fp=no ;;
648
649  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650  | --no-cr | --no-c | -n)
651    no_create=yes ;;
652
653  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655    no_recursion=yes ;;
656
657  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659  | --oldin | --oldi | --old | --ol | --o)
660    ac_prev=oldincludedir ;;
661  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664    oldincludedir=$ac_optarg ;;
665
666  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667    ac_prev=prefix ;;
668  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669    prefix=$ac_optarg ;;
670
671  -program-prefix | --program-prefix | --program-prefi | --program-pref \
672  | --program-pre | --program-pr | --program-p)
673    ac_prev=program_prefix ;;
674  -program-prefix=* | --program-prefix=* | --program-prefi=* \
675  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676    program_prefix=$ac_optarg ;;
677
678  -program-suffix | --program-suffix | --program-suffi | --program-suff \
679  | --program-suf | --program-su | --program-s)
680    ac_prev=program_suffix ;;
681  -program-suffix=* | --program-suffix=* | --program-suffi=* \
682  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683    program_suffix=$ac_optarg ;;
684
685  -program-transform-name | --program-transform-name \
686  | --program-transform-nam | --program-transform-na \
687  | --program-transform-n | --program-transform- \
688  | --program-transform | --program-transfor \
689  | --program-transfo | --program-transf \
690  | --program-trans | --program-tran \
691  | --progr-tra | --program-tr | --program-t)
692    ac_prev=program_transform_name ;;
693  -program-transform-name=* | --program-transform-name=* \
694  | --program-transform-nam=* | --program-transform-na=* \
695  | --program-transform-n=* | --program-transform-=* \
696  | --program-transform=* | --program-transfor=* \
697  | --program-transfo=* | --program-transf=* \
698  | --program-trans=* | --program-tran=* \
699  | --progr-tra=* | --program-tr=* | --program-t=*)
700    program_transform_name=$ac_optarg ;;
701
702  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703  | -silent | --silent | --silen | --sile | --sil)
704    silent=yes ;;
705
706  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707    ac_prev=sbindir ;;
708  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709  | --sbi=* | --sb=*)
710    sbindir=$ac_optarg ;;
711
712  -sharedstatedir | --sharedstatedir | --sharedstatedi \
713  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714  | --sharedst | --shareds | --shared | --share | --shar \
715  | --sha | --sh)
716    ac_prev=sharedstatedir ;;
717  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720  | --sha=* | --sh=*)
721    sharedstatedir=$ac_optarg ;;
722
723  -site | --site | --sit)
724    ac_prev=site ;;
725  -site=* | --site=* | --sit=*)
726    site=$ac_optarg ;;
727
728  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729    ac_prev=srcdir ;;
730  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731    srcdir=$ac_optarg ;;
732
733  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734  | --syscon | --sysco | --sysc | --sys | --sy)
735    ac_prev=sysconfdir ;;
736  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738    sysconfdir=$ac_optarg ;;
739
740  -target | --target | --targe | --targ | --tar | --ta | --t)
741    ac_prev=target_alias ;;
742  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743    target_alias=$ac_optarg ;;
744
745  -v | -verbose | --verbose | --verbos | --verbo | --verb)
746    verbose=yes ;;
747
748  -version | --version | --versio | --versi | --vers | -V)
749    ac_init_version=: ;;
750
751  -with-* | --with-*)
752    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753    # Reject names that are not valid shell variable names.
754    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755      { echo "$as_me: error: invalid package name: $ac_package" >&2
756   { (exit 1); exit 1; }; }
757    ac_package=`echo $ac_package| sed 's/-/_/g'`
758    case $ac_option in
759      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760      *) ac_optarg=yes ;;
761    esac
762    eval "with_$ac_package='$ac_optarg'" ;;
763
764  -without-* | --without-*)
765    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768      { echo "$as_me: error: invalid package name: $ac_package" >&2
769   { (exit 1); exit 1; }; }
770    ac_package=`echo $ac_package | sed 's/-/_/g'`
771    eval "with_$ac_package=no" ;;
772
773  --x)
774    # Obsolete; use --with-x.
775    with_x=yes ;;
776
777  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778  | --x-incl | --x-inc | --x-in | --x-i)
779    ac_prev=x_includes ;;
780  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782    x_includes=$ac_optarg ;;
783
784  -x-libraries | --x-libraries | --x-librarie | --x-librari \
785  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786    ac_prev=x_libraries ;;
787  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789    x_libraries=$ac_optarg ;;
790
791  -*) { echo "$as_me: error: unrecognized option: $ac_option
792Try \`$0 --help' for more information." >&2
793   { (exit 1); exit 1; }; }
794    ;;
795
796  *=*)
797    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798    # Reject names that are not valid shell variable names.
799    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801   { (exit 1); exit 1; }; }
802    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803    eval "$ac_envvar='$ac_optarg'"
804    export $ac_envvar ;;
805
806  *)
807    # FIXME: should be removed in autoconf 3.0.
808    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812    ;;
813
814  esac
815done
816
817if test -n "$ac_prev"; then
818  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819  { echo "$as_me: error: missing argument to $ac_option" >&2
820   { (exit 1); exit 1; }; }
821fi
822
823# Be sure to have absolute paths.
824for ac_var in exec_prefix prefix
825do
826  eval ac_val=$`echo $ac_var`
827  case $ac_val in
828    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830   { (exit 1); exit 1; }; };;
831  esac
832done
833
834# Be sure to have absolute paths.
835for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836	      localstatedir libdir includedir oldincludedir infodir mandir
837do
838  eval ac_val=$`echo $ac_var`
839  case $ac_val in
840    [\\/$]* | ?:[\\/]* ) ;;
841    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842   { (exit 1); exit 1; }; };;
843  esac
844done
845
846# There might be people who depend on the old broken behavior: `$host'
847# used to hold the argument of --host etc.
848# FIXME: To remove some day.
849build=$build_alias
850host=$host_alias
851target=$target_alias
852
853# FIXME: To remove some day.
854if test "x$host_alias" != x; then
855  if test "x$build_alias" = x; then
856    cross_compiling=maybe
857    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858    If a cross compiler is detected then cross compile mode will be used." >&2
859  elif test "x$build_alias" != "x$host_alias"; then
860    cross_compiling=yes
861  fi
862fi
863
864ac_tool_prefix=
865test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867test "$silent" = yes && exec 6>/dev/null
868
869
870# Find the source files, if location was not specified.
871if test -z "$srcdir"; then
872  ac_srcdir_defaulted=yes
873  # Try the directory containing this script, then its parent.
874  ac_confdir=`(dirname "$0") 2>/dev/null ||
875$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876	 X"$0" : 'X\(//\)[^/]' \| \
877	 X"$0" : 'X\(//\)$' \| \
878	 X"$0" : 'X\(/\)' \| \
879	 .     : '\(.\)' 2>/dev/null ||
880echo X"$0" |
881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883  	  /^X\(\/\/\)$/{ s//\1/; q; }
884  	  /^X\(\/\).*/{ s//\1/; q; }
885  	  s/.*/./; q'`
886  srcdir=$ac_confdir
887  if test ! -r $srcdir/$ac_unique_file; then
888    srcdir=..
889  fi
890else
891  ac_srcdir_defaulted=no
892fi
893if test ! -r $srcdir/$ac_unique_file; then
894  if test "$ac_srcdir_defaulted" = yes; then
895    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896   { (exit 1); exit 1; }; }
897  else
898    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899   { (exit 1); exit 1; }; }
900  fi
901fi
902(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904   { (exit 1); exit 1; }; }
905srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906ac_env_build_alias_set=${build_alias+set}
907ac_env_build_alias_value=$build_alias
908ac_cv_env_build_alias_set=${build_alias+set}
909ac_cv_env_build_alias_value=$build_alias
910ac_env_host_alias_set=${host_alias+set}
911ac_env_host_alias_value=$host_alias
912ac_cv_env_host_alias_set=${host_alias+set}
913ac_cv_env_host_alias_value=$host_alias
914ac_env_target_alias_set=${target_alias+set}
915ac_env_target_alias_value=$target_alias
916ac_cv_env_target_alias_set=${target_alias+set}
917ac_cv_env_target_alias_value=$target_alias
918ac_env_CC_set=${CC+set}
919ac_env_CC_value=$CC
920ac_cv_env_CC_set=${CC+set}
921ac_cv_env_CC_value=$CC
922ac_env_CFLAGS_set=${CFLAGS+set}
923ac_env_CFLAGS_value=$CFLAGS
924ac_cv_env_CFLAGS_set=${CFLAGS+set}
925ac_cv_env_CFLAGS_value=$CFLAGS
926ac_env_LDFLAGS_set=${LDFLAGS+set}
927ac_env_LDFLAGS_value=$LDFLAGS
928ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929ac_cv_env_LDFLAGS_value=$LDFLAGS
930ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931ac_env_CPPFLAGS_value=$CPPFLAGS
932ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
938ac_env_CDEFS_set=${CDEFS+set}
939ac_env_CDEFS_value=$CDEFS
940ac_cv_env_CDEFS_set=${CDEFS+set}
941ac_cv_env_CDEFS_value=$CDEFS
942ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
943ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
944ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
945ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
946ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
947ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
948ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
949ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
950ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
951ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
952ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
953ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
954ac_env_MPICC_set=${MPICC+set}
955ac_env_MPICC_value=$MPICC
956ac_cv_env_MPICC_set=${MPICC+set}
957ac_cv_env_MPICC_value=$MPICC
958ac_env_CXXDEFS_set=${CXXDEFS+set}
959ac_env_CXXDEFS_value=$CXXDEFS
960ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
961ac_cv_env_CXXDEFS_value=$CXXDEFS
962ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
963ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
964ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
965ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
966ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
967ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
968ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
969ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
970ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
971ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
972ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
973ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
974ac_env_CXX_set=${CXX+set}
975ac_env_CXX_value=$CXX
976ac_cv_env_CXX_set=${CXX+set}
977ac_cv_env_CXX_value=$CXX
978ac_env_CXXFLAGS_set=${CXXFLAGS+set}
979ac_env_CXXFLAGS_value=$CXXFLAGS
980ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
981ac_cv_env_CXXFLAGS_value=$CXXFLAGS
982ac_env_MPICXX_set=${MPICXX+set}
983ac_env_MPICXX_value=$MPICXX
984ac_cv_env_MPICXX_set=${MPICXX+set}
985ac_cv_env_MPICXX_value=$MPICXX
986ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
987ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
988ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
989ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
990ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
991ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
992ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
993ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
994ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
995ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
996ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
997ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
998ac_env_F77_set=${F77+set}
999ac_env_F77_value=$F77
1000ac_cv_env_F77_set=${F77+set}
1001ac_cv_env_F77_value=$F77
1002ac_env_FFLAGS_set=${FFLAGS+set}
1003ac_env_FFLAGS_value=$FFLAGS
1004ac_cv_env_FFLAGS_set=${FFLAGS+set}
1005ac_cv_env_FFLAGS_value=$FFLAGS
1006ac_env_MPIF77_set=${MPIF77+set}
1007ac_env_MPIF77_value=$MPIF77
1008ac_cv_env_MPIF77_set=${MPIF77+set}
1009ac_cv_env_MPIF77_value=$MPIF77
1010ac_env_CXXCPP_set=${CXXCPP+set}
1011ac_env_CXXCPP_value=$CXXCPP
1012ac_cv_env_CXXCPP_set=${CXXCPP+set}
1013ac_cv_env_CXXCPP_value=$CXXCPP
1014ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1015ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1016ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1017ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1018ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1019ac_env_PKG_CONFIG_value=$PKG_CONFIG
1020ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1021ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1022
1023#
1024# Report the --help message.
1025#
1026if test "$ac_init_help" = "long"; then
1027  # Omit some internal or obsolete options to make the list less imposing.
1028  # This message is too long to be a string in the A/UX 3.1 sh.
1029  cat <<_ACEOF
1030\`configure' configures Crème 0.0trunk to adapt to many kinds of systems.
1031
1032Usage: $0 [OPTION]... [VAR=VALUE]...
1033
1034To assign environment variables (e.g., CC, CFLAGS...), specify them as
1035VAR=VALUE.  See below for descriptions of some of the useful variables.
1036
1037Defaults for the options are specified in brackets.
1038
1039Configuration:
1040  -h, --help              display this help and exit
1041      --help=short        display options specific to this package
1042      --help=recursive    display the short help of all the included packages
1043  -V, --version           display version information and exit
1044  -q, --quiet, --silent   do not print \`checking...' messages
1045      --cache-file=FILE   cache test results in FILE [disabled]
1046  -C, --config-cache      alias for \`--cache-file=config.cache'
1047  -n, --no-create         do not create output files
1048      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1049
1050_ACEOF
1051
1052  cat <<_ACEOF
1053Installation directories:
1054  --prefix=PREFIX         install architecture-independent files in PREFIX
1055			  [$ac_default_prefix]
1056  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1057			  [PREFIX]
1058
1059By default, \`make install' will install all the files in
1060\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1061an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1062for instance \`--prefix=\$HOME'.
1063
1064For better control, use the options below.
1065
1066Fine tuning of the installation directories:
1067  --bindir=DIR           user executables [EPREFIX/bin]
1068  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1069  --libexecdir=DIR       program executables [EPREFIX/libexec]
1070  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1071  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1072  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1073  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1074  --libdir=DIR           object code libraries [EPREFIX/lib]
1075  --includedir=DIR       C header files [PREFIX/include]
1076  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1077  --infodir=DIR          info documentation [PREFIX/info]
1078  --mandir=DIR           man documentation [PREFIX/man]
1079_ACEOF
1080
1081  cat <<\_ACEOF
1082
1083Program names:
1084  --program-prefix=PREFIX            prepend PREFIX to installed program names
1085  --program-suffix=SUFFIX            append SUFFIX to installed program names
1086  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1087
1088System types:
1089  --build=BUILD     configure for building on BUILD [guessed]
1090  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1091_ACEOF
1092fi
1093
1094if test -n "$ac_init_help"; then
1095  case $ac_init_help in
1096     short | recursive ) echo "Configuration of Crème 0.0trunk:";;
1097   esac
1098  cat <<\_ACEOF
1099
1100Optional Features:
1101  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1102  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1103  --disable-bzlib         do not compile with compression library bzlib
1104  --enable-debug          compile all projects with debug options tests
1105                          (implies --disable-shared)
1106  --enable-doscompile     Under Cygwin, compile so that executables run under
1107                          DOS. Set to mingw to use gcc/g++/ld with
1108                          -mno-cygwin. Set to msvc to use cl/link (or
1109                          icl/link). Default when mentioned: mingw. Default
1110                          when not mentioned: disabled.
1111  --enable-static[=PKGS]
1112                          build static libraries [default=no]
1113  --disable-dependency-tracking  speeds up one-time build
1114  --enable-dependency-tracking   do not reject slow dependency extractors
1115  --enable-maintainer-mode  enable make rules and dependencies not useful
1116			  (and sometimes confusing) to the casual installer
1117  --enable-shared[=PKGS]
1118                          build shared libraries [default=yes]
1119  --enable-fast-install[=PKGS]
1120                          optimize for fast installation [default=yes]
1121  --disable-libtool-lock  avoid locking (might break parallel builds)
1122  --disable-pkg-config    disable use of pkg-config (if available)
1123
1124Optional Packages:
1125  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1126  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1127  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1128  --with-pic              try to use only PIC/non-PIC objects [default=use
1129                          both]
1130  --with-tags[=TAGS]
1131                          include additional configurations [automatic]
1132
1133  --with-creme-lib linker flags for using project Creme
1134  --with-creme-incdir directory with header files for using project Creme
1135  --with-creme-datadir directory with data files for using project Creme
1136  --with-coin-instdir     prefix of installation directory for precompiled
1137                          COIN packages
1138
1139Some influential environment variables:
1140  CC          C compiler command
1141  CFLAGS      C compiler flags
1142  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1143              nonstandard directory <lib dir>
1144  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1145              headers in a nonstandard directory <include dir>
1146  CPP         C preprocessor
1147  CDEFS       Additional -D flags to be used when compiling C code.
1148  ADD_CFLAGS  Additional C compiler options
1149  DBG_CFLAGS  Debug C compiler options
1150  OPT_CFLAGS  Optimize C compiler options
1151  MPICC       C MPI Compiler
1152  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1153  ADD_CXXFLAGS
1154              Additional C++ compiler options
1155  DBG_CXXFLAGS
1156              Debug C++ compiler options
1157  OPT_CXXFLAGS
1158              Optimize C++ compiler options
1159  CXX         C++ compiler command
1160  CXXFLAGS    C++ compiler flags
1161  MPICXX      C++ MPI Compiler
1162  ADD_FFLAGS  Additional Fortran compiler options
1163  DBG_FFLAGS  Debug Fortran compiler options
1164  OPT_FFLAGS  Optimize Fortran compiler options
1165  F77         Fortran 77 compiler command
1166  FFLAGS      Fortran 77 compiler flags
1167  MPIF77      Fortran MPI Compiler
1168  CXXCPP      C++ preprocessor
1169  COIN_SKIP_PROJECTS
1170              Set to the subdirectories of projects that should be skipped in
1171              the configuration
1172  PKG_CONFIG  path to pkg-config utility
1173
1174Use these variables to override the choices made by `configure' or to help
1175it to find libraries and programs with nonstandard names/locations.
1176
1177Report bugs to <http://projects.coin-or.org/Creme/newticket>.
1178_ACEOF
1179fi
1180
1181if test "$ac_init_help" = "recursive"; then
1182  # If there are subdirs, report their specific --help.
1183  ac_popdir=`pwd`
1184  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1185    test -d $ac_dir || continue
1186    ac_builddir=.
1187
1188if test "$ac_dir" != .; then
1189  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1190  # A "../" for each directory in $ac_dir_suffix.
1191  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1192else
1193  ac_dir_suffix= ac_top_builddir=
1194fi
1195
1196case $srcdir in
1197  .)  # No --srcdir option.  We are building in place.
1198    ac_srcdir=.
1199    if test -z "$ac_top_builddir"; then
1200       ac_top_srcdir=.
1201    else
1202       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1203    fi ;;
1204  [\\/]* | ?:[\\/]* )  # Absolute path.
1205    ac_srcdir=$srcdir$ac_dir_suffix;
1206    ac_top_srcdir=$srcdir ;;
1207  *) # Relative path.
1208    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1209    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1210esac
1211
1212# Do not use `cd foo && pwd` to compute absolute paths, because
1213# the directories may not exist.
1214case `pwd` in
1215.) ac_abs_builddir="$ac_dir";;
1216*)
1217  case "$ac_dir" in
1218  .) ac_abs_builddir=`pwd`;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1220  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1221  esac;;
1222esac
1223case $ac_abs_builddir in
1224.) ac_abs_top_builddir=${ac_top_builddir}.;;
1225*)
1226  case ${ac_top_builddir}. in
1227  .) ac_abs_top_builddir=$ac_abs_builddir;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1229  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_srcdir=$ac_srcdir;;
1234*)
1235  case $ac_srcdir in
1236  .) ac_abs_srcdir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1238  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1239  esac;;
1240esac
1241case $ac_abs_builddir in
1242.) ac_abs_top_srcdir=$ac_top_srcdir;;
1243*)
1244  case $ac_top_srcdir in
1245  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1247  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1248  esac;;
1249esac
1250
1251    cd $ac_dir
1252    # Check for guested configure; otherwise get Cygnus style configure.
1253    if test -f $ac_srcdir/configure.gnu; then
1254      echo
1255      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1256    elif test -f $ac_srcdir/configure; then
1257      echo
1258      $SHELL $ac_srcdir/configure  --help=recursive
1259    elif test -f $ac_srcdir/configure.ac ||
1260	   test -f $ac_srcdir/configure.in; then
1261      echo
1262      $ac_configure --help
1263    else
1264      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1265    fi
1266    cd $ac_popdir
1267  done
1268fi
1269
1270test -n "$ac_init_help" && exit 0
1271if $ac_init_version; then
1272  cat <<\_ACEOF
1273Crème configure 0.0trunk
1274generated by GNU Autoconf 2.59
1275
1276Copyright (C) 2003 Free Software Foundation, Inc.
1277This configure script is free software; the Free Software Foundation
1278gives unlimited permission to copy, distribute and modify it.
1279
1280
1281Copyright 2011 Pietro Belotti.
1282All Rights Reserved.
1283This file is part of the open source package Creme which is distributed
1284under the Eclipse Public License.
1285_ACEOF
1286  exit 0
1287fi
1288exec 5>config.log
1289cat >&5 <<_ACEOF
1290This file contains any messages produced by compilers while
1291running configure, to aid debugging if configure makes a mistake.
1292
1293It was created by Crème $as_me 0.0trunk, which was
1294generated by GNU Autoconf 2.59.  Invocation command line was
1295
1296  $ $0 $@
1297
1298_ACEOF
1299{
1300cat <<_ASUNAME
1301## --------- ##
1302## Platform. ##
1303## --------- ##
1304
1305hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1306uname -m = `(uname -m) 2>/dev/null || echo unknown`
1307uname -r = `(uname -r) 2>/dev/null || echo unknown`
1308uname -s = `(uname -s) 2>/dev/null || echo unknown`
1309uname -v = `(uname -v) 2>/dev/null || echo unknown`
1310
1311/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1312/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1313
1314/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1315/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1316/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1317hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1318/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1319/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1320/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1321
1322_ASUNAME
1323
1324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325for as_dir in $PATH
1326do
1327  IFS=$as_save_IFS
1328  test -z "$as_dir" && as_dir=.
1329  echo "PATH: $as_dir"
1330done
1331
1332} >&5
1333
1334cat >&5 <<_ACEOF
1335
1336
1337## ----------- ##
1338## Core tests. ##
1339## ----------- ##
1340
1341_ACEOF
1342
1343
1344# Keep a trace of the command line.
1345# Strip out --no-create and --no-recursion so they do not pile up.
1346# Strip out --silent because we don't want to record it for future runs.
1347# Also quote any args containing shell meta-characters.
1348# Make two passes to allow for proper duplicate-argument suppression.
1349ac_configure_args=
1350ac_configure_args0=
1351ac_configure_args1=
1352ac_sep=
1353ac_must_keep_next=false
1354for ac_pass in 1 2
1355do
1356  for ac_arg
1357  do
1358    case $ac_arg in
1359    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1360    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1361    | -silent | --silent | --silen | --sile | --sil)
1362      continue ;;
1363    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1364      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1365    esac
1366    case $ac_pass in
1367    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1368    2)
1369      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1370      if test $ac_must_keep_next = true; then
1371	ac_must_keep_next=false # Got value, back to normal.
1372      else
1373	case $ac_arg in
1374	  *=* | --config-cache | -C | -disable-* | --disable-* \
1375	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1376	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1377	  | -with-* | --with-* | -without-* | --without-* | --x)
1378	    case "$ac_configure_args0 " in
1379	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1380	    esac
1381	    ;;
1382	  -* ) ac_must_keep_next=true ;;
1383	esac
1384      fi
1385      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1386      # Get rid of the leading space.
1387      ac_sep=" "
1388      ;;
1389    esac
1390  done
1391done
1392$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1393$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1394
1395# When interrupted or exit'd, cleanup temporary files, and complete
1396# config.log.  We remove comments because anyway the quotes in there
1397# would cause problems or look ugly.
1398# WARNING: Be sure not to use single quotes in there, as some shells,
1399# such as our DU 5.0 friend, will then `close' the trap.
1400trap 'exit_status=$?
1401  # Save into config.log some information that might help in debugging.
1402  {
1403    echo
1404
1405    cat <<\_ASBOX
1406## ---------------- ##
1407## Cache variables. ##
1408## ---------------- ##
1409_ASBOX
1410    echo
1411    # The following way of writing the cache mishandles newlines in values,
1412{
1413  (set) 2>&1 |
1414    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1415    *ac_space=\ *)
1416      sed -n \
1417	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1418	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1419      ;;
1420    *)
1421      sed -n \
1422	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1423      ;;
1424    esac;
1425}
1426    echo
1427
1428    cat <<\_ASBOX
1429## ----------------- ##
1430## Output variables. ##
1431## ----------------- ##
1432_ASBOX
1433    echo
1434    for ac_var in $ac_subst_vars
1435    do
1436      eval ac_val=$`echo $ac_var`
1437      echo "$ac_var='"'"'$ac_val'"'"'"
1438    done | sort
1439    echo
1440
1441    if test -n "$ac_subst_files"; then
1442      cat <<\_ASBOX
1443## ------------- ##
1444## Output files. ##
1445## ------------- ##
1446_ASBOX
1447      echo
1448      for ac_var in $ac_subst_files
1449      do
1450	eval ac_val=$`echo $ac_var`
1451	echo "$ac_var='"'"'$ac_val'"'"'"
1452      done | sort
1453      echo
1454    fi
1455
1456    if test -s confdefs.h; then
1457      cat <<\_ASBOX
1458## ----------- ##
1459## confdefs.h. ##
1460## ----------- ##
1461_ASBOX
1462      echo
1463      sed "/^$/d" confdefs.h | sort
1464      echo
1465    fi
1466    test "$ac_signal" != 0 &&
1467      echo "$as_me: caught signal $ac_signal"
1468    echo "$as_me: exit $exit_status"
1469  } >&5
1470  rm -f core *.core &&
1471  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1472    exit $exit_status
1473     ' 0
1474for ac_signal in 1 2 13 15; do
1475  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1476done
1477ac_signal=0
1478
1479# confdefs.h avoids OS command line length limits that DEFS can exceed.
1480rm -rf conftest* confdefs.h
1481# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1482echo >confdefs.h
1483
1484# Predefined preprocessor variables.
1485
1486cat >>confdefs.h <<_ACEOF
1487#define PACKAGE_NAME "$PACKAGE_NAME"
1488_ACEOF
1489
1490
1491cat >>confdefs.h <<_ACEOF
1492#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1493_ACEOF
1494
1495
1496cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_VERSION "$PACKAGE_VERSION"
1498_ACEOF
1499
1500
1501cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_STRING "$PACKAGE_STRING"
1503_ACEOF
1504
1505
1506cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1508_ACEOF
1509
1510
1511# Let the site file select an alternate cache file if it wants to.
1512# Prefer explicitly selected file to automatically selected ones.
1513if test -z "$CONFIG_SITE"; then
1514  if test "x$prefix" != xNONE; then
1515    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1516  else
1517    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1518  fi
1519fi
1520for ac_site_file in $CONFIG_SITE; do
1521  if test -r "$ac_site_file"; then
1522    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1523echo "$as_me: loading site script $ac_site_file" >&6;}
1524    sed 's/^/| /' "$ac_site_file" >&5
1525    . "$ac_site_file"
1526  fi
1527done
1528
1529if test -r "$cache_file"; then
1530  # Some versions of bash will fail to source /dev/null (special
1531  # files actually), so we avoid doing that.
1532  if test -f "$cache_file"; then
1533    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1534echo "$as_me: loading cache $cache_file" >&6;}
1535    case $cache_file in
1536      [\\/]* | ?:[\\/]* ) . $cache_file;;
1537      *)                      . ./$cache_file;;
1538    esac
1539  fi
1540else
1541  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1542echo "$as_me: creating cache $cache_file" >&6;}
1543  >$cache_file
1544fi
1545
1546# Check that the precious variables saved in the cache have kept the same
1547# value.
1548ac_cache_corrupted=false
1549for ac_var in `(set) 2>&1 |
1550	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1551  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1552  eval ac_new_set=\$ac_env_${ac_var}_set
1553  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1554  eval ac_new_val="\$ac_env_${ac_var}_value"
1555  case $ac_old_set,$ac_new_set in
1556    set,)
1557      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1558echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1559      ac_cache_corrupted=: ;;
1560    ,set)
1561      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1562echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1563      ac_cache_corrupted=: ;;
1564    ,);;
1565    *)
1566      if test "x$ac_old_val" != "x$ac_new_val"; then
1567	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1568echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1569	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1570echo "$as_me:   former value:  $ac_old_val" >&2;}
1571	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1572echo "$as_me:   current value: $ac_new_val" >&2;}
1573	ac_cache_corrupted=:
1574      fi;;
1575  esac
1576  # Pass precious variables to config.status.
1577  if test "$ac_new_set" = set; then
1578    case $ac_new_val in
1579    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1580      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1581    *) ac_arg=$ac_var=$ac_new_val ;;
1582    esac
1583    case " $ac_configure_args " in
1584      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1585      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1586    esac
1587  fi
1588done
1589if $ac_cache_corrupted; then
1590  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1591echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1592  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1593echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1594   { (exit 1); exit 1; }; }
1595fi
1596
1597ac_ext=c
1598ac_cpp='$CPP $CPPFLAGS'
1599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634# List one file in the package so that the configure script can test
1635# whether the package is actually there
1636
1637
1638# Where should everything be installed by default?  Here, we want it
1639# to be installed directly in 'bin', 'lib', 'include' subdirectories
1640# of the directory where configure is run.  The default would be
1641# /usr/local.
1642
1643
1644ac_ext=c
1645ac_cpp='$CPP $CPPFLAGS'
1646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649if test -n "$ac_tool_prefix"; then
1650  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652echo "$as_me:$LINENO: checking for $ac_word" >&5
1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654if test "${ac_cv_prog_CC+set}" = set; then
1655  echo $ECHO_N "(cached) $ECHO_C" >&6
1656else
1657  if test -n "$CC"; then
1658  ac_cv_prog_CC="$CC" # Let the user override the test.
1659else
1660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661for as_dir in $PATH
1662do
1663  IFS=$as_save_IFS
1664  test -z "$as_dir" && as_dir=.
1665  for ac_exec_ext in '' $ac_executable_extensions; do
1666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669    break 2
1670  fi
1671done
1672done
1673
1674fi
1675fi
1676CC=$ac_cv_prog_CC
1677if test -n "$CC"; then
1678  echo "$as_me:$LINENO: result: $CC" >&5
1679echo "${ECHO_T}$CC" >&6
1680else
1681  echo "$as_me:$LINENO: result: no" >&5
1682echo "${ECHO_T}no" >&6
1683fi
1684
1685fi
1686if test -z "$ac_cv_prog_CC"; then
1687  ac_ct_CC=$CC
1688  # Extract the first word of "gcc", so it can be a program name with args.
1689set dummy gcc; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693  echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695  if test -n "$ac_ct_CC"; then
1696  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701  IFS=$as_save_IFS
1702  test -z "$as_dir" && as_dir=.
1703  for ac_exec_ext in '' $ac_executable_extensions; do
1704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705    ac_cv_prog_ac_ct_CC="gcc"
1706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707    break 2
1708  fi
1709done
1710done
1711
1712fi
1713fi
1714ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715if test -n "$ac_ct_CC"; then
1716  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717echo "${ECHO_T}$ac_ct_CC" >&6
1718else
1719  echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723  CC=$ac_ct_CC
1724else
1725  CC="$ac_cv_prog_CC"
1726fi
1727
1728if test -z "$CC"; then
1729  if test -n "$ac_tool_prefix"; then
1730  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1731set dummy ${ac_tool_prefix}cc; ac_word=$2
1732echo "$as_me:$LINENO: checking for $ac_word" >&5
1733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_CC+set}" = set; then
1735  echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737  if test -n "$CC"; then
1738  ac_cv_prog_CC="$CC" # Let the user override the test.
1739else
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743  IFS=$as_save_IFS
1744  test -z "$as_dir" && as_dir=.
1745  for ac_exec_ext in '' $ac_executable_extensions; do
1746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747    ac_cv_prog_CC="${ac_tool_prefix}cc"
1748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749    break 2
1750  fi
1751done
1752done
1753
1754fi
1755fi
1756CC=$ac_cv_prog_CC
1757if test -n "$CC"; then
1758  echo "$as_me:$LINENO: result: $CC" >&5
1759echo "${ECHO_T}$CC" >&6
1760else
1761  echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
1763fi
1764
1765fi
1766if test -z "$ac_cv_prog_CC"; then
1767  ac_ct_CC=$CC
1768  # Extract the first word of "cc", so it can be a program name with args.
1769set dummy cc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$ac_ct_CC"; then
1776  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_ac_ct_CC="cc"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795if test -n "$ac_ct_CC"; then
1796  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797echo "${ECHO_T}$ac_ct_CC" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803  CC=$ac_ct_CC
1804else
1805  CC="$ac_cv_prog_CC"
1806fi
1807
1808fi
1809if test -z "$CC"; then
1810  # Extract the first word of "cc", so it can be a program name with args.
1811set dummy cc; ac_word=$2
1812echo "$as_me:$LINENO: checking for $ac_word" >&5
1813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814if test "${ac_cv_prog_CC+set}" = set; then
1815  echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817  if test -n "$CC"; then
1818  ac_cv_prog_CC="$CC" # Let the user override the test.
1819else
1820  ac_prog_rejected=no
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824  IFS=$as_save_IFS
1825  test -z "$as_dir" && as_dir=.
1826  for ac_exec_ext in '' $ac_executable_extensions; do
1827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829       ac_prog_rejected=yes
1830       continue
1831     fi
1832    ac_cv_prog_CC="cc"
1833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834    break 2
1835  fi
1836done
1837done
1838
1839if test $ac_prog_rejected = yes; then
1840  # We found a bogon in the path, so make sure we never use it.
1841  set dummy $ac_cv_prog_CC
1842  shift
1843  if test $# != 0; then
1844    # We chose a different compiler from the bogus one.
1845    # However, it has the same basename, so the bogon will be chosen
1846    # first if we set CC to just the basename; use the full file name.
1847    shift
1848    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1849  fi
1850fi
1851fi
1852fi
1853CC=$ac_cv_prog_CC
1854if test -n "$CC"; then
1855  echo "$as_me:$LINENO: result: $CC" >&5
1856echo "${ECHO_T}$CC" >&6
1857else
1858  echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860fi
1861
1862fi
1863if test -z "$CC"; then
1864  if test -n "$ac_tool_prefix"; then
1865  for ac_prog in cl
1866  do
1867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_CC+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  if test -n "$CC"; then
1875  ac_cv_prog_CC="$CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882  for ac_exec_ext in '' $ac_executable_extensions; do
1883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886    break 2
1887  fi
1888done
1889done
1890
1891fi
1892fi
1893CC=$ac_cv_prog_CC
1894if test -n "$CC"; then
1895  echo "$as_me:$LINENO: result: $CC" >&5
1896echo "${ECHO_T}$CC" >&6
1897else
1898  echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902    test -n "$CC" && break
1903  done
1904fi
1905if test -z "$CC"; then
1906  ac_ct_CC=$CC
1907  for ac_prog in cl
1908do
1909  # Extract the first word of "$ac_prog", so it can be a program name with args.
1910set dummy $ac_prog; ac_word=$2
1911echo "$as_me:$LINENO: checking for $ac_word" >&5
1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914  echo $ECHO_N "(cached) $ECHO_C" >&6
1915else
1916  if test -n "$ac_ct_CC"; then
1917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918else
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922  IFS=$as_save_IFS
1923  test -z "$as_dir" && as_dir=.
1924  for ac_exec_ext in '' $ac_executable_extensions; do
1925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926    ac_cv_prog_ac_ct_CC="$ac_prog"
1927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928    break 2
1929  fi
1930done
1931done
1932
1933fi
1934fi
1935ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936if test -n "$ac_ct_CC"; then
1937  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938echo "${ECHO_T}$ac_ct_CC" >&6
1939else
1940  echo "$as_me:$LINENO: result: no" >&5
1941echo "${ECHO_T}no" >&6
1942fi
1943
1944  test -n "$ac_ct_CC" && break
1945done
1946
1947  CC=$ac_ct_CC
1948fi
1949
1950fi
1951
1952
1953test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: no acceptable C compiler found in \$PATH
1956See \`config.log' for more details." >&2;}
1957   { (exit 1); exit 1; }; }
1958
1959# Provide some information about the compiler.
1960echo "$as_me:$LINENO:" \
1961     "checking for C compiler version" >&5
1962ac_compiler=`set X $ac_compile; echo $2`
1963{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964  (eval $ac_compiler --version </dev/null >&5) 2>&5
1965  ac_status=$?
1966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967  (exit $ac_status); }
1968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969  (eval $ac_compiler -v </dev/null >&5) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); }
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974  (eval $ac_compiler -V </dev/null >&5) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); }
1978
1979cat >conftest.$ac_ext <<_ACEOF
1980/* confdefs.h.  */
1981_ACEOF
1982cat confdefs.h >>conftest.$ac_ext
1983cat >>conftest.$ac_ext <<_ACEOF
1984/* end confdefs.h.  */
1985
1986int
1987main ()
1988{
1989
1990  ;
1991  return 0;
1992}
1993_ACEOF
1994ac_clean_files_save=$ac_clean_files
1995ac_clean_files="$ac_clean_files a.out a.exe b.out"
1996# Try to create an executable without -o first, disregard a.out.
1997# It will help us diagnose broken compilers, and finding out an intuition
1998# of exeext.
1999echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2000echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2001ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2002if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2003  (eval $ac_link_default) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }; then
2007  # Find the output, starting from the most likely.  This scheme is
2008# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2009# resort.
2010
2011# Be careful to initialize this variable, since it used to be cached.
2012# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2013ac_cv_exeext=
2014# b.out is created by i960 compilers.
2015for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2016do
2017  test -f "$ac_file" || continue
2018  case $ac_file in
2019    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2020	;;
2021    conftest.$ac_ext )
2022	# This is the source file.
2023	;;
2024    [ab].out )
2025	# We found the default executable, but exeext='' is most
2026	# certainly right.
2027	break;;
2028    *.* )
2029	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2030	# FIXME: I believe we export ac_cv_exeext for Libtool,
2031	# but it would be cool to find out if it's true.  Does anybody
2032	# maintain Libtool? --akim.
2033	export ac_cv_exeext
2034	break;;
2035    * )
2036	break;;
2037  esac
2038done
2039else
2040  echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
2043{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: C compiler cannot create executables
2046See \`config.log' for more details." >&2;}
2047   { (exit 77); exit 77; }; }
2048fi
2049
2050ac_exeext=$ac_cv_exeext
2051echo "$as_me:$LINENO: result: $ac_file" >&5
2052echo "${ECHO_T}$ac_file" >&6
2053
2054# Check the compiler produces executables we can run.  If not, either
2055# the compiler is broken, or we cross compile.
2056echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2057echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2058# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2059# If not cross compiling, check that we can run a simple program.
2060if test "$cross_compiling" != yes; then
2061  if { ac_try='./$ac_file'
2062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063  (eval $ac_try) 2>&5
2064  ac_status=$?
2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066  (exit $ac_status); }; }; then
2067    cross_compiling=no
2068  else
2069    if test "$cross_compiling" = maybe; then
2070	cross_compiling=yes
2071    else
2072	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: cannot run C compiled programs.
2076If you meant to cross compile, use \`--host'.
2077See \`config.log' for more details." >&2;}
2078   { (exit 1); exit 1; }; }
2079    fi
2080  fi
2081fi
2082echo "$as_me:$LINENO: result: yes" >&5
2083echo "${ECHO_T}yes" >&6
2084
2085rm -f a.out a.exe conftest$ac_cv_exeext b.out
2086ac_clean_files=$ac_clean_files_save
2087# Check the compiler produces executables we can run.  If not, either
2088# the compiler is broken, or we cross compile.
2089echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2090echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2091echo "$as_me:$LINENO: result: $cross_compiling" >&5
2092echo "${ECHO_T}$cross_compiling" >&6
2093
2094echo "$as_me:$LINENO: checking for suffix of executables" >&5
2095echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2097  (eval $ac_link) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }; then
2101  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2102# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2103# work properly (i.e., refer to `conftest.exe'), while it won't with
2104# `rm'.
2105for ac_file in conftest.exe conftest conftest.*; do
2106  test -f "$ac_file" || continue
2107  case $ac_file in
2108    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2109    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110	  export ac_cv_exeext
2111	  break;;
2112    * ) break;;
2113  esac
2114done
2115else
2116  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2117See \`config.log' for more details." >&5
2118echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2119See \`config.log' for more details." >&2;}
2120   { (exit 1); exit 1; }; }
2121fi
2122
2123rm -f conftest$ac_cv_exeext
2124echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2125echo "${ECHO_T}$ac_cv_exeext" >&6
2126
2127rm -f conftest.$ac_ext
2128EXEEXT=$ac_cv_exeext
2129ac_exeext=$EXEEXT
2130echo "$as_me:$LINENO: checking for suffix of object files" >&5
2131echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2132if test "${ac_cv_objext+set}" = set; then
2133  echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135  cat >conftest.$ac_ext <<_ACEOF
2136/* confdefs.h.  */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h.  */
2141
2142int
2143main ()
2144{
2145
2146  ;
2147  return 0;
2148}
2149_ACEOF
2150rm -f conftest.o conftest.obj
2151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152  (eval $ac_compile) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }; then
2156  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2157  case $ac_file in
2158    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2159    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2160       break;;
2161  esac
2162done
2163else
2164  echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2168See \`config.log' for more details." >&5
2169echo "$as_me: error: cannot compute suffix of object files: cannot compile
2170See \`config.log' for more details." >&2;}
2171   { (exit 1); exit 1; }; }
2172fi
2173
2174rm -f conftest.$ac_cv_objext conftest.$ac_ext
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2177echo "${ECHO_T}$ac_cv_objext" >&6
2178OBJEXT=$ac_cv_objext
2179ac_objext=$OBJEXT
2180echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2181echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2182if test "${ac_cv_c_compiler_gnu+set}" = set; then
2183  echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185  cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h.  */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h.  */
2191
2192int
2193main ()
2194{
2195#ifndef __GNUC__
2196       choke me
2197#endif
2198
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205  (eval $ac_compile) 2>conftest.er1
2206  ac_status=$?
2207  grep -v '^ *+' conftest.er1 >conftest.err
2208  rm -f conftest.er1
2209  cat conftest.err >&5
2210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211  (exit $ac_status); } &&
2212	 { ac_try='test -z "$ac_c_werror_flag"
2213			 || test ! -s conftest.err'
2214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215  (eval $ac_try) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; } &&
2219	 { ac_try='test -s conftest.$ac_objext'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225  ac_compiler_gnu=yes
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230ac_compiler_gnu=no
2231fi
2232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233ac_cv_c_compiler_gnu=$ac_compiler_gnu
2234
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238GCC=`test $ac_compiler_gnu = yes && echo yes`
2239ac_test_CFLAGS=${CFLAGS+set}
2240ac_save_CFLAGS=$CFLAGS
2241CFLAGS="-g"
2242echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244if test "${ac_cv_prog_cc_g+set}" = set; then
2245  echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247  cat >conftest.$ac_ext <<_ACEOF
2248/* confdefs.h.  */
2249_ACEOF
2250cat confdefs.h >>conftest.$ac_ext
2251cat >>conftest.$ac_ext <<_ACEOF
2252/* end confdefs.h.  */
2253
2254int
2255main ()
2256{
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264  (eval $ac_compile) 2>conftest.er1
2265  ac_status=$?
2266  grep -v '^ *+' conftest.er1 >conftest.err
2267  rm -f conftest.er1
2268  cat conftest.err >&5
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); } &&
2271	 { ac_try='test -z "$ac_c_werror_flag"
2272			 || test ! -s conftest.err'
2273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274  (eval $ac_try) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; } &&
2278	 { ac_try='test -s conftest.$ac_objext'
2279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280  (eval $ac_try) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }; }; then
2284  ac_cv_prog_cc_g=yes
2285else
2286  echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289ac_cv_prog_cc_g=no
2290fi
2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292fi
2293echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2295if test "$ac_test_CFLAGS" = set; then
2296  CFLAGS=$ac_save_CFLAGS
2297elif test $ac_cv_prog_cc_g = yes; then
2298  if test "$GCC" = yes; then
2299    CFLAGS="-g -O2"
2300  else
2301    CFLAGS="-g"
2302  fi
2303else
2304  if test "$GCC" = yes; then
2305    CFLAGS="-O2"
2306  else
2307    CFLAGS=
2308  fi
2309fi
2310echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  ac_cv_prog_cc_stdc=no
2316ac_save_CC=$CC
2317cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h.  */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
2322/* end confdefs.h.  */
2323#include <stdarg.h>
2324#include <stdio.h>
2325#include <sys/types.h>
2326#include <sys/stat.h>
2327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2328struct buf { int x; };
2329FILE * (*rcsopen) (struct buf *, struct stat *, int);
2330static char *e (p, i)
2331     char **p;
2332     int i;
2333{
2334  return p[i];
2335}
2336static char *f (char * (*g) (char **, int), char **p, ...)
2337{
2338  char *s;
2339  va_list v;
2340  va_start (v,p);
2341  s = g (p, va_arg (v,int));
2342  va_end (v);
2343  return s;
2344}
2345
2346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2347   function prototypes and stuff, but not '\xHH' hex character constants.
2348   These don't provoke an error unfortunately, instead are silently treated
2349   as 'x'.  The following induces an error, until -std1 is added to get
2350   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2351   array size at least.  It's necessary to write '\x00'==0 to get something
2352   that's true only with -std1.  */
2353int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2354
2355int test (int i, double x);
2356struct s1 {int (*f) (int a);};
2357struct s2 {int (*f) (double a);};
2358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359int argc;
2360char **argv;
2361int
2362main ()
2363{
2364return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369# Don't try gcc -ansi; that turns off useful extensions and
2370# breaks some systems' header files.
2371# AIX			-qlanglvl=ansi
2372# Ultrix and OSF/1	-std1
2373# HP-UX 10.20 and later	-Ae
2374# HP-UX older versions	-Aa -D_HPUX_SOURCE
2375# SVR4			-Xc -D__EXTENSIONS__
2376for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2377do
2378  CC="$ac_save_CC $ac_arg"
2379  rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381  (eval $ac_compile) 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388	 { ac_try='test -z "$ac_c_werror_flag"
2389			 || test ! -s conftest.err'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; } &&
2395	 { ac_try='test -s conftest.$ac_objext'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; }; then
2401  ac_cv_prog_cc_stdc=$ac_arg
2402break
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407fi
2408rm -f conftest.err conftest.$ac_objext
2409done
2410rm -f conftest.$ac_ext conftest.$ac_objext
2411CC=$ac_save_CC
2412
2413fi
2414
2415case "x$ac_cv_prog_cc_stdc" in
2416  x|xno)
2417    echo "$as_me:$LINENO: result: none needed" >&5
2418echo "${ECHO_T}none needed" >&6 ;;
2419  *)
2420    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2421echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2422    CC="$CC $ac_cv_prog_cc_stdc" ;;
2423esac
2424
2425# Some people use a C++ compiler to compile C.  Since we use `exit',
2426# in C++ we need to declare it.  In case someone uses the same compiler
2427# for both compiling C and C++ we need to have the C++ compiler decide
2428# the declaration of exit, since it's the most demanding environment.
2429cat >conftest.$ac_ext <<_ACEOF
2430#ifndef __cplusplus
2431  choke me
2432#endif
2433_ACEOF
2434rm -f conftest.$ac_objext
2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436  (eval $ac_compile) 2>conftest.er1
2437  ac_status=$?
2438  grep -v '^ *+' conftest.er1 >conftest.err
2439  rm -f conftest.er1
2440  cat conftest.err >&5
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); } &&
2443	 { ac_try='test -z "$ac_c_werror_flag"
2444			 || test ! -s conftest.err'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; } &&
2450	 { ac_try='test -s conftest.$ac_objext'
2451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452  (eval $ac_try) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }; }; then
2456  for ac_declaration in \
2457   '' \
2458   'extern "C" void std::exit (int) throw (); using std::exit;' \
2459   'extern "C" void std::exit (int); using std::exit;' \
2460   'extern "C" void exit (int) throw ();' \
2461   'extern "C" void exit (int);' \
2462   'void exit (int);'
2463do
2464  cat >conftest.$ac_ext <<_ACEOF
2465/* confdefs.h.  */
2466_ACEOF
2467cat confdefs.h >>conftest.$ac_ext
2468cat >>conftest.$ac_ext <<_ACEOF
2469/* end confdefs.h.  */
2470$ac_declaration
2471#include <stdlib.h>
2472int
2473main ()
2474{
2475exit (42);
2476  ;
2477  return 0;
2478}
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482  (eval $ac_compile) 2>conftest.er1
2483  ac_status=$?
2484  grep -v '^ *+' conftest.er1 >conftest.err
2485  rm -f conftest.er1
2486  cat conftest.err >&5
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); } &&
2489	 { ac_try='test -z "$ac_c_werror_flag"
2490			 || test ! -s conftest.err'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; } &&
2496	 { ac_try='test -s conftest.$ac_objext'
2497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498  (eval $ac_try) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }; }; then
2502  :
2503else
2504  echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507continue
2508fi
2509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510  cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h.  */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h.  */
2516$ac_declaration
2517int
2518main ()
2519{
2520exit (42);
2521  ;
2522  return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527  (eval $ac_compile) 2>conftest.er1
2528  ac_status=$?
2529  grep -v '^ *+' conftest.er1 >conftest.err
2530  rm -f conftest.er1
2531  cat conftest.err >&5
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); } &&
2534	 { ac_try='test -z "$ac_c_werror_flag"
2535			 || test ! -s conftest.err'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; } &&
2541	 { ac_try='test -s conftest.$ac_objext'
2542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543  (eval $ac_try) 2>&5
2544  ac_status=$?
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); }; }; then
2547  break
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552fi
2553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554done
2555rm -f conftest*
2556if test -n "$ac_declaration"; then
2557  echo '#ifdef __cplusplus' >>confdefs.h
2558  echo $ac_declaration      >>confdefs.h
2559  echo '#endif'             >>confdefs.h
2560fi
2561
2562else
2563  echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573
2574
2575ac_ext=c
2576ac_cpp='$CPP $CPPFLAGS'
2577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2581echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2582# On Suns, sometimes $CPP names a directory.
2583if test -n "$CPP" && test -d "$CPP"; then
2584  CPP=
2585fi
2586if test -z "$CPP"; then
2587  if test "${ac_cv_prog_CPP+set}" = set; then
2588  echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590      # Double quotes because CPP needs to be expanded
2591    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2592    do
2593      ac_preproc_ok=false
2594for ac_c_preproc_warn_flag in '' yes
2595do
2596  # Use a header file that comes with gcc, so configuring glibc
2597  # with a fresh cross-compiler works.
2598  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2599  # <limits.h> exists even on freestanding compilers.
2600  # On the NeXT, cc -E runs the code through the compiler's parser,
2601  # not just through cpp. "Syntax error" is here to catch this case.
2602  cat >conftest.$ac_ext <<_ACEOF
2603/* confdefs.h.  */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h.  */
2608#ifdef __STDC__
2609# include <limits.h>
2610#else
2611# include <assert.h>
2612#endif
2613		     Syntax error
2614_ACEOF
2615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617  ac_status=$?
2618  grep -v '^ *+' conftest.er1 >conftest.err
2619  rm -f conftest.er1
2620  cat conftest.err >&5
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); } >/dev/null; then
2623  if test -s conftest.err; then
2624    ac_cpp_err=$ac_c_preproc_warn_flag
2625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2626  else
2627    ac_cpp_err=
2628  fi
2629else
2630  ac_cpp_err=yes
2631fi
2632if test -z "$ac_cpp_err"; then
2633  :
2634else
2635  echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638  # Broken: fails on valid input.
2639continue
2640fi
2641rm -f conftest.err conftest.$ac_ext
2642
2643  # OK, works on sane cases.  Now check whether non-existent headers
2644  # can be detected and how.
2645  cat >conftest.$ac_ext <<_ACEOF
2646/* confdefs.h.  */
2647_ACEOF
2648cat confdefs.h >>conftest.$ac_ext
2649cat >>conftest.$ac_ext <<_ACEOF
2650/* end confdefs.h.  */
2651#include <ac_nonexistent.h>
2652_ACEOF
2653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2654  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2655  ac_status=$?
2656  grep -v '^ *+' conftest.er1 >conftest.err
2657  rm -f conftest.er1
2658  cat conftest.err >&5
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); } >/dev/null; then
2661  if test -s conftest.err; then
2662    ac_cpp_err=$ac_c_preproc_warn_flag
2663    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2664  else
2665    ac_cpp_err=
2666  fi
2667else
2668  ac_cpp_err=yes
2669fi
2670if test -z "$ac_cpp_err"; then
2671  # Broken: success on invalid input.
2672continue
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677  # Passes both tests.
2678ac_preproc_ok=:
2679break
2680fi
2681rm -f conftest.err conftest.$ac_ext
2682
2683done
2684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2685rm -f conftest.err conftest.$ac_ext
2686if $ac_preproc_ok; then
2687  break
2688fi
2689
2690    done
2691    ac_cv_prog_CPP=$CPP
2692
2693fi
2694  CPP=$ac_cv_prog_CPP
2695else
2696  ac_cv_prog_CPP=$CPP
2697fi
2698echo "$as_me:$LINENO: result: $CPP" >&5
2699echo "${ECHO_T}$CPP" >&6
2700ac_preproc_ok=false
2701for ac_c_preproc_warn_flag in '' yes
2702do
2703  # Use a header file that comes with gcc, so configuring glibc
2704  # with a fresh cross-compiler works.
2705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2706  # <limits.h> exists even on freestanding compilers.
2707  # On the NeXT, cc -E runs the code through the compiler's parser,
2708  # not just through cpp. "Syntax error" is here to catch this case.
2709  cat >conftest.$ac_ext <<_ACEOF
2710/* confdefs.h.  */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h.  */
2715#ifdef __STDC__
2716# include <limits.h>
2717#else
2718# include <assert.h>
2719#endif
2720		     Syntax error
2721_ACEOF
2722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2723  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724  ac_status=$?
2725  grep -v '^ *+' conftest.er1 >conftest.err
2726  rm -f conftest.er1
2727  cat conftest.err >&5
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); } >/dev/null; then
2730  if test -s conftest.err; then
2731    ac_cpp_err=$ac_c_preproc_warn_flag
2732    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2733  else
2734    ac_cpp_err=
2735  fi
2736else
2737  ac_cpp_err=yes
2738fi
2739if test -z "$ac_cpp_err"; then
2740  :
2741else
2742  echo "$as_me: failed program was:" >&5
2743sed 's/^/| /' conftest.$ac_ext >&5
2744
2745  # Broken: fails on valid input.
2746continue
2747fi
2748rm -f conftest.err conftest.$ac_ext
2749
2750  # OK, works on sane cases.  Now check whether non-existent headers
2751  # can be detected and how.
2752  cat >conftest.$ac_ext <<_ACEOF
2753/* confdefs.h.  */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h.  */
2758#include <ac_nonexistent.h>
2759_ACEOF
2760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2762  ac_status=$?
2763  grep -v '^ *+' conftest.er1 >conftest.err
2764  rm -f conftest.er1
2765  cat conftest.err >&5
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); } >/dev/null; then
2768  if test -s conftest.err; then
2769    ac_cpp_err=$ac_c_preproc_warn_flag
2770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2771  else
2772    ac_cpp_err=
2773  fi
2774else
2775  ac_cpp_err=yes
2776fi
2777if test -z "$ac_cpp_err"; then
2778  # Broken: success on invalid input.
2779continue
2780else
2781  echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784  # Passes both tests.
2785ac_preproc_ok=:
2786break
2787fi
2788rm -f conftest.err conftest.$ac_ext
2789
2790done
2791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2792rm -f conftest.err conftest.$ac_ext
2793if $ac_preproc_ok; then
2794  :
2795else
2796  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2797See \`config.log' for more details." >&5
2798echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2799See \`config.log' for more details." >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802
2803ac_ext=c
2804ac_cpp='$CPP $CPPFLAGS'
2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809
2810echo "$as_me:$LINENO: checking for egrep" >&5
2811echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2812if test "${ac_cv_prog_egrep+set}" = set; then
2813  echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2816    then ac_cv_prog_egrep='grep -E'
2817    else ac_cv_prog_egrep='egrep'
2818    fi
2819fi
2820echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2821echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2822 EGREP=$ac_cv_prog_egrep
2823
2824
2825echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2827if test "${ac_cv_header_stdc+set}" = set; then
2828  echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830  cat >conftest.$ac_ext <<_ACEOF
2831/* confdefs.h.  */
2832_ACEOF
2833cat confdefs.h >>conftest.$ac_ext
2834cat >>conftest.$ac_ext <<_ACEOF
2835/* end confdefs.h.  */
2836#include <stdlib.h>
2837#include <stdarg.h>
2838#include <string.h>
2839#include <float.h>
2840
2841int
2842main ()
2843{
2844
2845  ;
2846  return 0;
2847}
2848_ACEOF
2849rm -f conftest.$ac_objext
2850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2851  (eval $ac_compile) 2>conftest.er1
2852  ac_status=$?
2853  grep -v '^ *+' conftest.er1 >conftest.err
2854  rm -f conftest.er1
2855  cat conftest.err >&5
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); } &&
2858	 { ac_try='test -z "$ac_c_werror_flag"
2859			 || test ! -s conftest.err'
2860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861  (eval $ac_try) 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); }; } &&
2865	 { ac_try='test -s conftest.$ac_objext'
2866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867  (eval $ac_try) 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; }; then
2871  ac_cv_header_stdc=yes
2872else
2873  echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876ac_cv_header_stdc=no
2877fi
2878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879
2880if test $ac_cv_header_stdc = yes; then
2881  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2882  cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h.  */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h.  */
2888#include <string.h>
2889
2890_ACEOF
2891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2892  $EGREP "memchr" >/dev/null 2>&1; then
2893  :
2894else
2895  ac_cv_header_stdc=no
2896fi
2897rm -f conftest*
2898
2899fi
2900
2901if test $ac_cv_header_stdc = yes; then
2902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2903  cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909#include <stdlib.h>
2910
2911_ACEOF
2912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913  $EGREP "free" >/dev/null 2>&1; then
2914  :
2915else
2916  ac_cv_header_stdc=no
2917fi
2918rm -f conftest*
2919
2920fi
2921
2922if test $ac_cv_header_stdc = yes; then
2923  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2924  if test "$cross_compiling" = yes; then
2925  :
2926else
2927  cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h.  */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h.  */
2933#include <ctype.h>
2934#if ((' ' & 0x0FF) == 0x020)
2935# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2936# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2937#else
2938# define ISLOWER(c) \
2939		   (('a' <= (c) && (c) <= 'i') \
2940		     || ('j' <= (c) && (c) <= 'r') \
2941		     || ('s' <= (c) && (c) <= 'z'))
2942# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2943#endif
2944
2945#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2946int
2947main ()
2948{
2949  int i;
2950  for (i = 0; i < 256; i++)
2951    if (XOR (islower (i), ISLOWER (i))
2952	|| toupper (i) != TOUPPER (i))
2953      exit(2);
2954  exit (0);
2955}
2956_ACEOF
2957rm -f conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959  (eval $ac_link) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964  (eval $ac_try) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; }; then
2968  :
2969else
2970  echo "$as_me: program exited with status $ac_status" >&5
2971echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974( exit $ac_status )
2975ac_cv_header_stdc=no
2976fi
2977rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2978fi
2979fi
2980fi
2981echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2982echo "${ECHO_T}$ac_cv_header_stdc" >&6
2983if test $ac_cv_header_stdc = yes; then
2984
2985cat >>confdefs.h <<\_ACEOF
2986#define STDC_HEADERS 1
2987_ACEOF
2988
2989fi
2990
2991# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3002		  inttypes.h stdint.h unistd.h
3003do
3004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3005echo "$as_me:$LINENO: checking for $ac_header" >&5
3006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3007if eval "test \"\${$as_ac_Header+set}\" = set"; then
3008  echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010  cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h.  */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h.  */
3016$ac_includes_default
3017
3018#include <$ac_header>
3019_ACEOF
3020rm -f conftest.$ac_objext
3021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3022  (eval $ac_compile) 2>conftest.er1
3023  ac_status=$?
3024  grep -v '^ *+' conftest.er1 >conftest.err
3025  rm -f conftest.er1
3026  cat conftest.err >&5
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); } &&
3029	 { ac_try='test -z "$ac_c_werror_flag"
3030			 || test ! -s conftest.err'
3031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032  (eval $ac_try) 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; } &&
3036	 { ac_try='test -s conftest.$ac_objext'
3037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038  (eval $ac_try) 2>&5
3039  ac_status=$?
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); }; }; then
3042  eval "$as_ac_Header=yes"
3043else
3044  echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047eval "$as_ac_Header=no"
3048fi
3049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050fi
3051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3053if test `eval echo '${'$as_ac_Header'}'` = yes; then
3054  cat >>confdefs.h <<_ACEOF
3055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3056_ACEOF
3057
3058fi
3059
3060done
3061
3062
3063
3064
3065
3066
3067
3068
3069# Check whether --enable-bzlib or --disable-bzlib was given.
3070if test "${enable_bzlib+set}" = set; then
3071  enableval="$enable_bzlib"
3072  coin_enable_bzlib=$enableval
3073else
3074  coin_enable_bzlib=yes
3075fi;
3076
3077coin_has_bzlib=no
3078if test $coin_enable_bzlib = yes; then
3079  #if test x"" = x; then
3080#  hdr="#include <bzlib.h>"
3081#else
3082#  hdr=""
3083#fi
3084#AC_CHECK_HEADERS([bzlib.h],[coin_has_bzlib=yes],[],[$hdr])
3085
3086for ac_header in bzlib.h
3087do
3088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3089if eval "test \"\${$as_ac_Header+set}\" = set"; then
3090  echo "$as_me:$LINENO: checking for $ac_header" >&5
3091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3092if eval "test \"\${$as_ac_Header+set}\" = set"; then
3093  echo $ECHO_N "(cached) $ECHO_C" >&6
3094fi
3095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3097else
3098  # Is the header compilable?
3099echo "$as_me:$LINENO: checking $ac_header usability" >&5
3100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3101cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h.  */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h.  */
3107$ac_includes_default
3108#include <$ac_header>
3109_ACEOF
3110rm -f conftest.$ac_objext
3111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112  (eval $ac_compile) 2>conftest.er1
3113  ac_status=$?
3114  grep -v '^ *+' conftest.er1 >conftest.err
3115  rm -f conftest.er1
3116  cat conftest.err >&5
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); } &&
3119	 { ac_try='test -z "$ac_c_werror_flag"
3120			 || test ! -s conftest.err'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; } &&
3126	 { ac_try='test -s conftest.$ac_objext'
3127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; }; then
3132  ac_header_compiler=yes
3133else
3134  echo "$as_me: failed program was:" >&5
3135sed 's/^/| /' conftest.$ac_ext >&5
3136
3137ac_header_compiler=no
3138fi
3139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3141echo "${ECHO_T}$ac_header_compiler" >&6
3142
3143# Is the header present?
3144echo "$as_me:$LINENO: checking $ac_header presence" >&5
3145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3146cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h.  */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
3151/* end confdefs.h.  */
3152#include <$ac_header>
3153_ACEOF
3154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156  ac_status=$?
3157  grep -v '^ *+' conftest.er1 >conftest.err
3158  rm -f conftest.er1
3159  cat conftest.err >&5
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); } >/dev/null; then
3162  if test -s conftest.err; then
3163    ac_cpp_err=$ac_c_preproc_warn_flag
3164    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165  else
3166    ac_cpp_err=
3167  fi
3168else
3169  ac_cpp_err=yes
3170fi
3171if test -z "$ac_cpp_err"; then
3172  ac_header_preproc=yes
3173else
3174  echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177  ac_header_preproc=no
3178fi
3179rm -f conftest.err conftest.$ac_ext
3180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3181echo "${ECHO_T}$ac_header_preproc" >&6
3182
3183# So?  What about this header?
3184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3185  yes:no: )
3186    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3188    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3190    ac_header_preproc=yes
3191    ;;
3192  no:yes:* )
3193    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3195    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3196echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3197    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3199    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3200echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3201    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3203    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3205    (
3206      cat <<\_ASBOX
3207## ---------------------------------------------------------- ##
3208## Report this to http://projects.coin-or.org/Creme/newticket ##
3209## ---------------------------------------------------------- ##
3210_ASBOX
3211    ) |
3212      sed "s/^/$as_me: WARNING:     /" >&2
3213    ;;
3214esac
3215echo "$as_me:$LINENO: checking for $ac_header" >&5
3216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3217if eval "test \"\${$as_ac_Header+set}\" = set"; then
3218  echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220  eval "$as_ac_Header=\$ac_header_preproc"
3221fi
3222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3224
3225fi
3226if test `eval echo '${'$as_ac_Header'}'` = yes; then
3227  cat >>confdefs.h <<_ACEOF
3228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3229_ACEOF
3230 coin_has_bzlib=yes
3231fi
3232
3233done
3234
3235
3236
3237  if test $coin_has_bzlib = yes; then
3238    echo "$as_me:$LINENO: checking for BZ2_bzReadOpen in -lbz2" >&5
3239echo $ECHO_N "checking for BZ2_bzReadOpen in -lbz2... $ECHO_C" >&6
3240if test "${ac_cv_lib_bz2_BZ2_bzReadOpen+set}" = set; then
3241  echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243  ac_check_lib_save_LIBS=$LIBS
3244LIBS="-lbz2  $LIBS"
3245cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h.  */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h.  */
3251
3252/* Override any gcc2 internal prototype to avoid an error.  */
3253#ifdef __cplusplus
3254extern "C"
3255#endif
3256/* We use char because int might match the return type of a gcc2
3257   builtin and then its argument prototype would still apply.  */
3258char BZ2_bzReadOpen ();
3259int
3260main ()
3261{
3262BZ2_bzReadOpen ();
3263  ;
3264  return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269  (eval $ac_link) 2>conftest.er1
3270  ac_status=$?
3271  grep -v '^ *+' conftest.er1 >conftest.err
3272  rm -f conftest.er1
3273  cat conftest.err >&5
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); } &&
3276	 { ac_try='test -z "$ac_c_werror_flag"
3277			 || test ! -s conftest.err'
3278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279  (eval $ac_try) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; } &&
3283	 { ac_try='test -s conftest$ac_exeext'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; }; then
3289  ac_cv_lib_bz2_BZ2_bzReadOpen=yes
3290else
3291  echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294ac_cv_lib_bz2_BZ2_bzReadOpen=no
3295fi
3296rm -f conftest.err conftest.$ac_objext \
3297      conftest$ac_exeext conftest.$ac_ext
3298LIBS=$ac_check_lib_save_LIBS
3299fi
3300echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzReadOpen" >&5
3301echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzReadOpen" >&6
3302if test $ac_cv_lib_bz2_BZ2_bzReadOpen = yes; then
3303  :
3304else
3305  coin_has_bzlib=no
3306fi
3307
3308  fi
3309
3310  if test $coin_has_bzlib = yes; then
3311
3312
3313cat >>confdefs.h <<\_ACEOF
3314#define COIN_HAS_BZLIB 1
3315_ACEOF
3316
3317  fi
3318fi
3319
3320
3321#############################################################################
3322#              Create the libtool script for the subdirectories             #
3323#############################################################################
3324
3325ac_aux_dir=
3326for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3327  if test -f $ac_dir/install-sh; then
3328    ac_aux_dir=$ac_dir
3329    ac_install_sh="$ac_aux_dir/install-sh -c"
3330    break
3331  elif test -f $ac_dir/install.sh; then
3332    ac_aux_dir=$ac_dir
3333    ac_install_sh="$ac_aux_dir/install.sh -c"
3334    break
3335  elif test -f $ac_dir/shtool; then
3336    ac_aux_dir=$ac_dir
3337    ac_install_sh="$ac_aux_dir/shtool install -c"
3338    break
3339  fi
3340done
3341if test -z "$ac_aux_dir"; then
3342  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3343echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3344   { (exit 1); exit 1; }; }
3345fi
3346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3349
3350# Make sure we can run config.sub.
3351$ac_config_sub sun4 >/dev/null 2>&1 ||
3352  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3353echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3354   { (exit 1); exit 1; }; }
3355
3356echo "$as_me:$LINENO: checking build system type" >&5
3357echo $ECHO_N "checking build system type... $ECHO_C" >&6
3358if test "${ac_cv_build+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  ac_cv_build_alias=$build_alias
3362test -z "$ac_cv_build_alias" &&
3363  ac_cv_build_alias=`$ac_config_guess`
3364test -z "$ac_cv_build_alias" &&
3365  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3366echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3367   { (exit 1); exit 1; }; }
3368ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3369  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3370echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3371   { (exit 1); exit 1; }; }
3372
3373fi
3374echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3375echo "${ECHO_T}$ac_cv_build" >&6
3376build=$ac_cv_build
3377build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3378build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3379build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3380
3381
3382
3383# Check if user wants to produce debugging code
3384
3385echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
3386echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
3387
3388# Check whether --enable-debug or --disable-debug was given.
3389if test "${enable_debug+set}" = set; then
3390  enableval="$enable_debug"
3391  case "${enableval}" in
3392   yes) coin_debug_compile=true
3393        if test "${enable_shared+set}" = set; then :; else
3394          enable_shared=no
3395        fi
3396        ;;
3397   no)  coin_debug_compile=false
3398        ;;
3399   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
3400echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
3401   { (exit 1); exit 1; }; }
3402        ;;
3403esac
3404else
3405  coin_debug_compile=false
3406fi;
3407
3408 # m4_ifvaln([],
3409
3410if test $coin_debug_compile = true; then
3411  echo "$as_me:$LINENO: result: yes" >&5
3412echo "${ECHO_T}yes" >&6
3413else
3414  echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6
3416fi
3417
3418 # m4_ifvaln([],
3419
3420
3421
3422# Get the name of the C compiler and appropriate compiler options
3423case $build in
3424  *-mingw*)
3425    if test "${LD+set}" = set; then :; else
3426      LD=link
3427    fi
3428    ;;
3429 esac
3430 case $enable_doscompile in
3431   msvc)
3432     if test "x${LD+set}" = xset; then :; else
3433       LD=link
3434     fi
3435     ;;
3436 esac
3437
3438
3439 # Check whether --enable-doscompile or --disable-doscompile was given.
3440if test "${enable_doscompile+set}" = set; then
3441  enableval="$enable_doscompile"
3442  if test "$enable_doscompile" != no; then
3443     case $build in
3444       *-cygwin* | *-mingw*) ;;
3445       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
3446echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
3447   { (exit 1); exit 1; }; } ;;
3448     esac
3449   fi
3450else
3451  enable_doscompile=no
3452fi;
3453 case "$enable_doscompile" in
3454   mingw)
3455     case $build in
3456       *-mingw*) enable_doscompile=no ;;
3457     esac
3458     ;;
3459   msvc|no) ;;
3460   yes) enable_doscompile=mingw ;;
3461   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
3462		    Try configure --help=recursive." >&5
3463echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
3464		    Try configure --help=recursive." >&2;}
3465   { (exit 1); exit 1; }; }
3466      ;;
3467  esac
3468  if test "$enable_doscompile" != no ; then
3469    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
3470echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
3471  fi
3472
3473
3474
3475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481
3482# For consistency, we set the C compiler to the same value of the C++
3483# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
3484if test x"$CXX" != x; then
3485  case "$CXX" in
3486    clang* ) ;;
3487    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3488      if test x"$CC" = x; then
3489        CC="$CXX"
3490        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
3491echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
3492      fi
3493      ;;
3494  esac
3495fi
3496
3497
3498
3499
3500
3501
3502coin_has_cc=yes
3503
3504save_cflags="$CFLAGS"
3505
3506# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
3507# Depending on the user's PATH, when Studio/Workshop cc is not present we may
3508# find /usr/ucb/cc, which is almost certainly not a good choice for the C
3509# compiler. In this case, put cc after gcc.
3510
3511case $build in
3512  *-cygwin* | *-mingw*)
3513  	     if test "$enable_doscompile" = msvc ; then
3514	       comps="icl cl"
3515	     else
3516	       comps="gcc cl"
3517	     fi ;;
3518  *-*-solaris*)
3519	     # Extract the first word of "cc", so it can be a program name with args.
3520set dummy cc; ac_word=$2
3521echo "$as_me:$LINENO: checking for $ac_word" >&5
3522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
3524  echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526  if test -n "$sol_cc_compiler"; then
3527  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
3528else
3529  ac_prog_rejected=no
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535  for ac_exec_ext in '' $ac_executable_extensions; do
3536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3538       ac_prog_rejected=yes
3539       continue
3540     fi
3541    ac_cv_prog_sol_cc_compiler="cc"
3542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543    break 2
3544  fi
3545done
3546done
3547
3548if test $ac_prog_rejected = yes; then
3549  # We found a bogon in the path, so make sure we never use it.
3550  set dummy $ac_cv_prog_sol_cc_compiler
3551  shift
3552  if test $# != 0; then
3553    # We chose a different compiler from the bogus one.
3554    # However, it has the same basename, so the bogon will be chosen
3555    # first if we set sol_cc_compiler to just the basename; use the full file name.
3556    shift
3557    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
3558  fi
3559fi
3560fi
3561fi
3562sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
3563if test -n "$sol_cc_compiler"; then
3564  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
3565echo "${ECHO_T}$sol_cc_compiler" >&6
3566else
3567  echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
3570
3571	     if test "$sol_cc_compiler" = "cc" ; then
3572	       comps="cc xlc gcc pgcc icc"
3573	     else
3574	       comps="xlc gcc pgcc icc cc"
3575	     fi
3576	     ;;
3577  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
3578  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
3579  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
3580esac
3581
3582# We delete the cached value, since the test might not have been
3583# performed with our choice of compilers earlier
3584$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
3585# AC_MSG_NOTICE([C compiler candidates: $comps])
3586ac_ext=c
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591if test -n "$ac_tool_prefix"; then
3592  for ac_prog in $comps
3593  do
3594    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3596echo "$as_me:$LINENO: checking for $ac_word" >&5
3597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3598if test "${ac_cv_prog_CC+set}" = set; then
3599  echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601  if test -n "$CC"; then
3602  ac_cv_prog_CC="$CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607  IFS=$as_save_IFS
3608  test -z "$as_dir" && as_dir=.
3609  for ac_exec_ext in '' $ac_executable_extensions; do
3610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613    break 2
3614  fi
3615done
3616done
3617
3618fi
3619fi
3620CC=$ac_cv_prog_CC
3621if test -n "$CC"; then
3622  echo "$as_me:$LINENO: result: $CC" >&5
3623echo "${ECHO_T}$CC" >&6
3624else
3625  echo "$as_me:$LINENO: result: no" >&5
3626echo "${ECHO_T}no" >&6
3627fi
3628
3629    test -n "$CC" && break
3630  done
3631fi
3632if test -z "$CC"; then
3633  ac_ct_CC=$CC
3634  for ac_prog in $comps
3635do
3636  # Extract the first word of "$ac_prog", so it can be a program name with args.
3637set dummy $ac_prog; ac_word=$2
3638echo "$as_me:$LINENO: checking for $ac_word" >&5
3639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3641  echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643  if test -n "$ac_ct_CC"; then
3644  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  test -z "$as_dir" && as_dir=.
3651  for ac_exec_ext in '' $ac_executable_extensions; do
3652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_ac_ct_CC="$ac_prog"
3654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658done
3659
3660fi
3661fi
3662ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663if test -n "$ac_ct_CC"; then
3664  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3665echo "${ECHO_T}$ac_ct_CC" >&6
3666else
3667  echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669fi
3670
3671  test -n "$ac_ct_CC" && break
3672done
3673
3674  CC=$ac_ct_CC
3675fi
3676
3677
3678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3679See \`config.log' for more details." >&5
3680echo "$as_me: error: no acceptable C compiler found in \$PATH
3681See \`config.log' for more details." >&2;}
3682   { (exit 1); exit 1; }; }
3683
3684# Provide some information about the compiler.
3685echo "$as_me:$LINENO:" \
3686     "checking for C compiler version" >&5
3687ac_compiler=`set X $ac_compile; echo $2`
3688{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3689  (eval $ac_compiler --version </dev/null >&5) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }
3693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3694  (eval $ac_compiler -v </dev/null >&5) 2>&5
3695  ac_status=$?
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); }
3698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3699  (eval $ac_compiler -V </dev/null >&5) 2>&5
3700  ac_status=$?
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); }
3703
3704echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3705echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3706if test "${ac_cv_c_compiler_gnu+set}" = set; then
3707  echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709  cat >conftest.$ac_ext <<_ACEOF
3710/* confdefs.h.  */
3711_ACEOF
3712cat confdefs.h >>conftest.$ac_ext
3713cat >>conftest.$ac_ext <<_ACEOF
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719#ifndef __GNUC__
3720       choke me
3721#endif
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727rm -f conftest.$ac_objext
3728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729  (eval $ac_compile) 2>conftest.er1
3730  ac_status=$?
3731  grep -v '^ *+' conftest.er1 >conftest.err
3732  rm -f conftest.er1
3733  cat conftest.err >&5
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } &&
3736	 { ac_try='test -z "$ac_c_werror_flag"
3737			 || test ! -s conftest.err'
3738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739  (eval $ac_try) 2>&5
3740  ac_status=$?
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); }; } &&
3743	 { ac_try='test -s conftest.$ac_objext'
3744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745  (eval $ac_try) 2>&5
3746  ac_status=$?
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); }; }; then
3749  ac_compiler_gnu=yes
3750else
3751  echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754ac_compiler_gnu=no
3755fi
3756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759fi
3760echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3761echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3762GCC=`test $ac_compiler_gnu = yes && echo yes`
3763ac_test_CFLAGS=${CFLAGS+set}
3764ac_save_CFLAGS=$CFLAGS
3765CFLAGS="-g"
3766echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3767echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3768if test "${ac_cv_prog_cc_g+set}" = set; then
3769  echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771  cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h.  */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h.  */
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795	 { ac_try='test -z "$ac_c_werror_flag"
3796			 || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802	 { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_prog_cc_g=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_prog_cc_g=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816fi
3817echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3818echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3819if test "$ac_test_CFLAGS" = set; then
3820  CFLAGS=$ac_save_CFLAGS
3821elif test $ac_cv_prog_cc_g = yes; then
3822  if test "$GCC" = yes; then
3823    CFLAGS="-g -O2"
3824  else
3825    CFLAGS="-g"
3826  fi
3827else
3828  if test "$GCC" = yes; then
3829    CFLAGS="-O2"
3830  else
3831    CFLAGS=
3832  fi
3833fi
3834echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3835echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3836if test "${ac_cv_prog_cc_stdc+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  ac_cv_prog_cc_stdc=no
3840ac_save_CC=$CC
3841cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h.  */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h.  */
3847#include <stdarg.h>
3848#include <stdio.h>
3849#include <sys/types.h>
3850#include <sys/stat.h>
3851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3852struct buf { int x; };
3853FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854static char *e (p, i)
3855     char **p;
3856     int i;
3857{
3858  return p[i];
3859}
3860static char *f (char * (*g) (char **, int), char **p, ...)
3861{
3862  char *s;
3863  va_list v;
3864  va_start (v,p);
3865  s = g (p, va_arg (v,int));
3866  va_end (v);
3867  return s;
3868}
3869
3870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3871   function prototypes and stuff, but not '\xHH' hex character constants.
3872   These don't provoke an error unfortunately, instead are silently treated
3873   as 'x'.  The following induces an error, until -std1 is added to get
3874   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3875   array size at least.  It's necessary to write '\x00'==0 to get something
3876   that's true only with -std1.  */
3877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878
3879int test (int i, double x);
3880struct s1 {int (*f) (int a);};
3881struct s2 {int (*f) (double a);};
3882int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883int argc;
3884char **argv;
3885int
3886main ()
3887{
3888return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893# Don't try gcc -ansi; that turns off useful extensions and
3894# breaks some systems' header files.
3895# AIX			-qlanglvl=ansi
3896# Ultrix and OSF/1	-std1
3897# HP-UX 10.20 and later	-Ae
3898# HP-UX older versions	-Aa -D_HPUX_SOURCE
3899# SVR4			-Xc -D__EXTENSIONS__
3900for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901do
3902  CC="$ac_save_CC $ac_arg"
3903  rm -f conftest.$ac_objext
3904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905  (eval $ac_compile) 2>conftest.er1
3906  ac_status=$?
3907  grep -v '^ *+' conftest.er1 >conftest.err
3908  rm -f conftest.er1
3909  cat conftest.err >&5
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); } &&
3912	 { ac_try='test -z "$ac_c_werror_flag"
3913			 || test ! -s conftest.err'
3914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915  (eval $ac_try) 2>&5
3916  ac_status=$?
3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918  (exit $ac_status); }; } &&
3919	 { ac_try='test -s conftest.$ac_objext'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; }; then
3925  ac_cv_prog_cc_stdc=$ac_arg
3926break
3927else
3928  echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931fi
3932rm -f conftest.err conftest.$ac_objext
3933done
3934rm -f conftest.$ac_ext conftest.$ac_objext
3935CC=$ac_save_CC
3936
3937fi
3938
3939case "x$ac_cv_prog_cc_stdc" in
3940  x|xno)
3941    echo "$as_me:$LINENO: result: none needed" >&5
3942echo "${ECHO_T}none needed" >&6 ;;
3943  *)
3944    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3945echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3946    CC="$CC $ac_cv_prog_cc_stdc" ;;
3947esac
3948
3949# Some people use a C++ compiler to compile C.  Since we use `exit',
3950# in C++ we need to declare it.  In case someone uses the same compiler
3951# for both compiling C and C++ we need to have the C++ compiler decide
3952# the declaration of exit, since it's the most demanding environment.
3953cat >conftest.$ac_ext <<_ACEOF
3954#ifndef __cplusplus
3955  choke me
3956#endif
3957_ACEOF
3958rm -f conftest.$ac_objext
3959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960  (eval $ac_compile) 2>conftest.er1
3961  ac_status=$?
3962  grep -v '^ *+' conftest.er1 >conftest.err
3963  rm -f conftest.er1
3964  cat conftest.err >&5
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); } &&
3967	 { ac_try='test -z "$ac_c_werror_flag"
3968			 || test ! -s conftest.err'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; } &&
3974	 { ac_try='test -s conftest.$ac_objext'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; }; then
3980  for ac_declaration in \
3981   '' \
3982   'extern "C" void std::exit (int) throw (); using std::exit;' \
3983   'extern "C" void std::exit (int); using std::exit;' \
3984   'extern "C" void exit (int) throw ();' \
3985   'extern "C" void exit (int);' \
3986   'void exit (int);'
3987do
3988  cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h.  */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h.  */
3994$ac_declaration
3995#include <stdlib.h>
3996int
3997main ()
3998{
3999exit (42);
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006  (eval $ac_compile) 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } &&
4013	 { ac_try='test -z "$ac_c_werror_flag"
4014			 || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020	 { ac_try='test -s conftest.$ac_objext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  :
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031continue
4032fi
4033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034  cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h.  */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h.  */
4040$ac_declaration
4041int
4042main ()
4043{
4044exit (42);
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051  (eval $ac_compile) 2>conftest.er1
4052  ac_status=$?
4053  grep -v '^ *+' conftest.er1 >conftest.err
4054  rm -f conftest.er1
4055  cat conftest.err >&5
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); } &&
4058	 { ac_try='test -z "$ac_c_werror_flag"
4059			 || test ! -s conftest.err'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; } &&
4065	 { ac_try='test -s conftest.$ac_objext'
4066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067  (eval $ac_try) 2>&5
4068  ac_status=$?
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); }; }; then
4071  break
4072else
4073  echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076fi
4077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078done
4079rm -f conftest*
4080if test -n "$ac_declaration"; then
4081  echo '#ifdef __cplusplus' >>confdefs.h
4082  echo $ac_declaration      >>confdefs.h
4083  echo '#endif'             >>confdefs.h
4084fi
4085
4086else
4087  echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090fi
4091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092ac_ext=c
4093ac_cpp='$CPP $CPPFLAGS'
4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098if test -z "$CC" ; then
4099  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
4100echo "$as_me: error: Failed to find a C compiler!" >&2;}
4101   { (exit 1); exit 1; }; }
4102fi
4103# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4104case "$CC" in
4105  clang* ) ;;
4106  cl* | */cl* | CL* | */CL* )
4107    if test "$ac_cv_prog_cc_g" = yes ; then
4108      ac_cv_prog_cc_g=no
4109      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
4110echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4111    fi ;;
4112esac
4113CFLAGS="$save_cflags"
4114
4115# add automake conditional so we can recognize cl compiler in makefile
4116coin_cc_is_cl=false
4117case "$CC" in
4118  clang* ) ;;
4119  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4120    coin_cc_is_cl=true
4121    ;;
4122esac
4123
4124
4125if test $coin_cc_is_cl = true; then
4126  COIN_CC_IS_CL_TRUE=
4127  COIN_CC_IS_CL_FALSE='#'
4128else
4129  COIN_CC_IS_CL_TRUE='#'
4130  COIN_CC_IS_CL_FALSE=
4131fi
4132
4133
4134# Check if a project specific CFLAGS variable has been set
4135if test x$COIN_PRJCT != x; then
4136  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4137  if test x$coin_tmp = xset; then
4138    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4139  fi
4140fi
4141
4142if test x"$CFLAGS" = x; then
4143
4144  coin_add_cflags=
4145  coin_opt_cflags=
4146  coin_dbg_cflags=
4147  coin_warn_cflags=
4148
4149  if test "$GCC" = "yes"; then
4150    case "$CC" in
4151      icc* | */icc*)
4152        ;;
4153      *)
4154        coin_opt_cflags="-O3"
4155        coin_add_cflags="-pipe"
4156        coin_dbg_cflags="-g -O0"
4157        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
4158        case $build in
4159          *-darwin*)
4160            ;;
4161          *)
4162            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4163            ;;
4164        esac
4165	case $enable_doscompile in
4166	  mingw)
4167	    CFLAGS="-mno-cygwin"
4168	    cat >conftest.$ac_ext <<_ACEOF
4169/* confdefs.h.  */
4170_ACEOF
4171cat confdefs.h >>conftest.$ac_ext
4172cat >>conftest.$ac_ext <<_ACEOF
4173/* end confdefs.h.  */
4174
4175int
4176main ()
4177{
4178int i=0; i++;
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext conftest$ac_exeext
4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185  (eval $ac_link) 2>conftest.er1
4186  ac_status=$?
4187  grep -v '^ *+' conftest.er1 >conftest.err
4188  rm -f conftest.er1
4189  cat conftest.err >&5
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); } &&
4192	 { ac_try='test -z "$ac_c_werror_flag"
4193			 || test ! -s conftest.err'
4194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195  (eval $ac_try) 2>&5
4196  ac_status=$?
4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198  (exit $ac_status); }; } &&
4199	 { ac_try='test -s conftest$ac_exeext'
4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201  (eval $ac_try) 2>&5
4202  ac_status=$?
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; }; then
4205  coin_add_cflags="-mno-cygwin $coin_add_cflags"
4206else
4207  echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210fi
4211rm -f conftest.err conftest.$ac_objext \
4212      conftest$ac_exeext conftest.$ac_ext
4213	    CFLAGS=
4214	  ;;
4215	esac
4216    esac
4217  fi
4218  if test -z "$coin_opt_cflags"; then
4219    case $build in
4220      *-cygwin* | *-mingw*)
4221        case "$CC" in
4222          clang* ) ;;
4223          cl* | */cl* | CL* | */CL*)
4224            coin_opt_cflags='-MT -O2'
4225            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4226            coin_dbg_cflags='-MTd'
4227            ;;
4228          icl* | */icl* | ICL* | */ICL*)
4229            coin_opt_cflags='-MT -Ox'
4230            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4231            coin_dbg_cflags='-MTd -debug'
4232            ;;
4233        esac
4234        ;;
4235      *-linux-*)
4236        case "$CC" in
4237          icc* | */icc*)
4238            coin_opt_cflags="-O3 -ip -mp1"
4239            coin_add_cflags=""
4240            coin_dbg_cflags="-g"
4241            # Check if -i_dynamic is necessary (for new glibc library)
4242            CFLAGS=
4243            cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h.  */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h.  */
4249
4250int
4251main ()
4252{
4253int i=0; i++;
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258rm -f conftest.$ac_objext conftest$ac_exeext
4259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4260  (eval $ac_link) 2>conftest.er1
4261  ac_status=$?
4262  grep -v '^ *+' conftest.er1 >conftest.err
4263  rm -f conftest.er1
4264  cat conftest.err >&5
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); } &&
4267	 { ac_try='test -z "$ac_c_werror_flag"
4268			 || test ! -s conftest.err'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; } &&
4274	 { ac_try='test -s conftest$ac_exeext'
4275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276  (eval $ac_try) 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); }; }; then
4280  :
4281else
4282  echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285coin_add_cflags="-i_dynamic $coin_add_cflags"
4286fi
4287rm -f conftest.err conftest.$ac_objext \
4288      conftest$ac_exeext conftest.$ac_ext
4289            ;;
4290          pgcc* | */pgcc*)
4291            coin_opt_cflags="-fast"
4292            coin_add_cflags="-Kieee -pc 64"
4293            coin_dbg_cflags="-g"
4294            ;;
4295        esac
4296        ;;
4297      *-ibm-*)
4298        case "$CC" in
4299          xlc* | */xlc* | mpxlc* | */mpxlc*)
4300            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4301            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4302            coin_dbg_cflags="-g"
4303          ;;
4304        esac
4305        ;;
4306      *-hp-*)
4307        coin_opt_cflags="-O"
4308        coin_add_cflags="-Ae"
4309        coin_dbg_cflags="-g"
4310        ;;
4311      *-*-solaris*)
4312        coin_opt_cflags="-xO4"
4313        coin_dbg_cflags="-g"
4314        ;;
4315      *-sgi-*)
4316        coin_opt_cflags="-O -OPT:Olimit=0"
4317        coin_dbg_cflags="-g"
4318        ;;
4319    esac
4320  fi
4321
4322  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
4323    coin_dbg_cflags="-g"
4324  fi
4325
4326  if test -z "$coin_opt_cflags"; then
4327    # Try if -O option works if nothing else is set
4328    CFLAGS="-O"
4329    cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h.  */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h.  */
4335
4336int
4337main ()
4338{
4339int i=0; i++;
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346  (eval $ac_link) 2>conftest.er1
4347  ac_status=$?
4348  grep -v '^ *+' conftest.er1 >conftest.err
4349  rm -f conftest.er1
4350  cat conftest.err >&5
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); } &&
4353	 { ac_try='test -z "$ac_c_werror_flag"
4354			 || test ! -s conftest.err'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; } &&
4360	 { ac_try='test -s conftest$ac_exeext'
4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362  (eval $ac_try) 2>&5
4363  ac_status=$?
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); }; }; then
4366  coin_opt_cflags="-O"
4367else
4368  echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371fi
4372rm -f conftest.err conftest.$ac_objext \
4373      conftest$ac_exeext conftest.$ac_ext
4374  fi
4375
4376  # if PM doesn't want the warning messages, take them out
4377  if test x"$coin_skip_warn_cflags" = xyes; then
4378    coin_warn_cflags=
4379  fi
4380
4381  if test x${DBG_CFLAGS+set} != xset; then
4382    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
4383  fi
4384  if test x${OPT_CFLAGS+set} != xset; then
4385    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
4386  fi
4387
4388  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
4389  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
4390
4391  if test "$coin_debug_compile" = "true"; then
4392    CFLAGS="$DBG_CFLAGS"
4393  else
4394    CFLAGS="$OPT_CFLAGS"
4395  fi
4396else
4397  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
4398  if test x${DBG_CFLAGS+set} != xset; then
4399    DBG_CFLAGS="$CFLAGS"
4400  fi
4401  if test x${OPT_CFLAGS+set} != xset; then
4402    OPT_CFLAGS="$CFLAGS"
4403  fi
4404fi
4405
4406# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4407
4408case "$CFLAGS" in
4409  *-mno-cygwin*)
4410    if test x${CPPFLAGS+set} != xset ; then
4411      CPPFLAGS="-mno-cygwin"
4412    else
4413      case "$CPPFLAGS" in
4414        *-mno-cygwin*)
4415	  ;;
4416	*)
4417	  CPPFLAGS="$CPPFLAGS -mno-cygwin"
4418	  ;;
4419      esac
4420    fi ;;
4421esac
4422
4423# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4424if test x$COIN_PRJCT != x; then
4425  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
4426fi
4427
4428# Try if CFLAGS works
4429save_CFLAGS="$CFLAGS"
4430cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h.  */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h.  */
4436
4437int
4438main ()
4439{
4440int i=0; i++;
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445rm -f conftest.$ac_objext conftest$ac_exeext
4446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447  (eval $ac_link) 2>conftest.er1
4448  ac_status=$?
4449  grep -v '^ *+' conftest.er1 >conftest.err
4450  rm -f conftest.er1
4451  cat conftest.err >&5
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); } &&
4454	 { ac_try='test -z "$ac_c_werror_flag"
4455			 || test ! -s conftest.err'
4456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457  (eval $ac_try) 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; } &&
4461	 { ac_try='test -s conftest$ac_exeext'
4462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463  (eval $ac_try) 2>&5
4464  ac_status=$?
4465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466  (exit $ac_status); }; }; then
4467  :
4468else
4469  echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472CFLAGS=
4473fi
4474rm -f conftest.err conftest.$ac_objext \
4475      conftest$ac_exeext conftest.$ac_ext
4476if test -z "$CFLAGS"; then
4477  { 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
4478echo "$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;}
4479  CFLAGS='-O'
4480  cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h.  */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h.  */
4486
4487int
4488main ()
4489{
4490int i=0; i++;
4491  ;
4492  return 0;
4493}
4494_ACEOF
4495rm -f conftest.$ac_objext conftest$ac_exeext
4496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4497  (eval $ac_link) 2>conftest.er1
4498  ac_status=$?
4499  grep -v '^ *+' conftest.er1 >conftest.err
4500  rm -f conftest.er1
4501  cat conftest.err >&5
4502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503  (exit $ac_status); } &&
4504	 { ac_try='test -z "$ac_c_werror_flag"
4505			 || test ! -s conftest.err'
4506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507  (eval $ac_try) 2>&5
4508  ac_status=$?
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); }; } &&
4511	 { ac_try='test -s conftest$ac_exeext'
4512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513  (eval $ac_try) 2>&5
4514  ac_status=$?
4515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); }; }; then
4517  :
4518else
4519  echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
4522CFLAGS=
4523fi
4524rm -f conftest.err conftest.$ac_objext \
4525      conftest$ac_exeext conftest.$ac_ext
4526  if test -z "$CFLAGS"; then
4527    { 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
4528echo "$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;}
4529  fi
4530fi
4531
4532{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
4533echo "$as_me: C compiler options are: $CFLAGS" >&6;}
4534
4535
4536if test x"$MPICC" = x; then :; else
4537  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
4538echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
4539  CC="$MPICC"
4540fi
4541
4542# Correct the LD variable if we are using the MS or Intel-windows compiler
4543case "$CC" in
4544  clang* ) ;;
4545  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4546    case $build in
4547  *-mingw*)
4548    if test "${LD+set}" = set; then :; else
4549      LD=link
4550    fi
4551    ;;
4552 esac
4553 case $enable_doscompile in
4554   msvc)
4555     if test "x${LD+set}" = xset; then :; else
4556       LD=link
4557     fi
4558     ;;
4559 esac
4560
4561    ;;
4562esac
4563
4564ac_ext=c
4565ac_cpp='$CPP $CPPFLAGS'
4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
4570
4571
4572# Get the name of the C++ compiler and appropriate compiler options
4573
4574 #Let's try if that overcomes configuration problem with VC++ 6.0
4575
4576ac_ext=cc
4577ac_cpp='$CXXCPP $CPPFLAGS'
4578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4581
4582
4583
4584
4585
4586
4587
4588coin_has_cxx=yes
4589
4590save_cxxflags="$CXXFLAGS"
4591# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
4592case $build in
4593  *-cygwin* | *-mingw*)
4594  	     if test "$enable_doscompile" = msvc ; then
4595	       comps="icl cl"
4596	     else
4597	       comps="g++ cl"
4598	     fi ;;
4599  *-*-solaris*)
4600  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
4601  *-darwin*) comps="g++ c++ CC" ;;
4602  *-linux-gnu*)
4603             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
4604          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
4605esac
4606
4607# We delete the cached value, since the test might not have been
4608# performed with our choice of compilers earlier
4609$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
4610# AC_MSG_NOTICE([C++ compiler candidates: $comps])
4611ac_ext=cc
4612ac_cpp='$CXXCPP $CPPFLAGS'
4613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616if test -n "$ac_tool_prefix"; then
4617  for ac_prog in $CCC $comps
4618  do
4619    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623if test "${ac_cv_prog_CXX+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  if test -n "$CXX"; then
4627  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for ac_exec_ext in '' $ac_executable_extensions; do
4635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638    break 2
4639  fi
4640done
4641done
4642
4643fi
4644fi
4645CXX=$ac_cv_prog_CXX
4646if test -n "$CXX"; then
4647  echo "$as_me:$LINENO: result: $CXX" >&5
4648echo "${ECHO_T}$CXX" >&6
4649else
4650  echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
4653
4654    test -n "$CXX" && break
4655  done
4656fi
4657if test -z "$CXX"; then
4658  ac_ct_CXX=$CXX
4659  for ac_prog in $CCC $comps
4660do
4661  # Extract the first word of "$ac_prog", so it can be a program name with args.
4662set dummy $ac_prog; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  if test -n "$ac_ct_CXX"; then
4669  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674  IFS=$as_save_IFS
4675  test -z "$as_dir" && as_dir=.
4676  for ac_exec_ext in '' $ac_executable_extensions; do
4677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678    ac_cv_prog_ac_ct_CXX="$ac_prog"
4679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683done
4684
4685fi
4686fi
4687ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4688if test -n "$ac_ct_CXX"; then
4689  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4690echo "${ECHO_T}$ac_ct_CXX" >&6
4691else
4692  echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
4694fi
4695
4696  test -n "$ac_ct_CXX" && break
4697done
4698test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4699
4700  CXX=$ac_ct_CXX
4701fi
4702
4703
4704# Provide some information about the compiler.
4705echo "$as_me:$LINENO:" \
4706     "checking for C++ compiler version" >&5
4707ac_compiler=`set X $ac_compile; echo $2`
4708{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4709  (eval $ac_compiler --version </dev/null >&5) 2>&5
4710  ac_status=$?
4711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712  (exit $ac_status); }
4713{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4714  (eval $ac_compiler -v </dev/null >&5) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }
4718{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4719  (eval $ac_compiler -V </dev/null >&5) 2>&5
4720  ac_status=$?
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }
4723
4724echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4725echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4726if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h.  */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h.  */
4735
4736int
4737main ()
4738{
4739#ifndef __GNUC__
4740       choke me
4741#endif
4742
4743  ;
4744  return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749  (eval $ac_compile) 2>conftest.er1
4750  ac_status=$?
4751  grep -v '^ *+' conftest.er1 >conftest.err
4752  rm -f conftest.er1
4753  cat conftest.err >&5
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); } &&
4756	 { ac_try='test -z "$ac_cxx_werror_flag"
4757			 || test ! -s conftest.err'
4758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759  (eval $ac_try) 2>&5
4760  ac_status=$?
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); }; } &&
4763	 { ac_try='test -s conftest.$ac_objext'
4764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765  (eval $ac_try) 2>&5
4766  ac_status=$?
4767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768  (exit $ac_status); }; }; then
4769  ac_compiler_gnu=yes
4770else
4771  echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774ac_compiler_gnu=no
4775fi
4776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4778
4779fi
4780echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4781echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4782GXX=`test $ac_compiler_gnu = yes && echo yes`
4783ac_test_CXXFLAGS=${CXXFLAGS+set}
4784ac_save_CXXFLAGS=$CXXFLAGS
4785CXXFLAGS="-g"
4786echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4787echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4788if test "${ac_cv_prog_cxx_g+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797
4798int
4799main ()
4800{
4801
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806rm -f conftest.$ac_objext
4807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808  (eval $ac_compile) 2>conftest.er1
4809  ac_status=$?
4810  grep -v '^ *+' conftest.er1 >conftest.err
4811  rm -f conftest.er1
4812  cat conftest.err >&5
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } &&
4815	 { ac_try='test -z "$ac_cxx_werror_flag"
4816			 || test ! -s conftest.err'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; } &&
4822	 { ac_try='test -s conftest.$ac_objext'
4823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824  (eval $ac_try) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; }; then
4828  ac_cv_prog_cxx_g=yes
4829else
4830  echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833ac_cv_prog_cxx_g=no
4834fi
4835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836fi
4837echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4838echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4839if test "$ac_test_CXXFLAGS" = set; then
4840  CXXFLAGS=$ac_save_CXXFLAGS
4841elif test $ac_cv_prog_cxx_g = yes; then
4842  if test "$GXX" = yes; then
4843    CXXFLAGS="-g -O2"
4844  else
4845    CXXFLAGS="-g"
4846  fi
4847else
4848  if test "$GXX" = yes; then
4849    CXXFLAGS="-O2"
4850  else
4851    CXXFLAGS=
4852  fi
4853fi
4854for ac_declaration in \
4855   '' \
4856   'extern "C" void std::exit (int) throw (); using std::exit;' \
4857   'extern "C" void std::exit (int); using std::exit;' \
4858   'extern "C" void exit (int) throw ();' \
4859   'extern "C" void exit (int);' \
4860   'void exit (int);'
4861do
4862  cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868$ac_declaration
4869#include <stdlib.h>
4870int
4871main ()
4872{
4873exit (42);
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext
4879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880  (eval $ac_compile) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } &&
4887	 { ac_try='test -z "$ac_cxx_werror_flag"
4888			 || test ! -s conftest.err'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; } &&
4894	 { ac_try='test -s conftest.$ac_objext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
4900  :
4901else
4902  echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905continue
4906fi
4907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4908  cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h.  */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h.  */
4914$ac_declaration
4915int
4916main ()
4917{
4918exit (42);
4919  ;
4920  return 0;
4921}
4922_ACEOF
4923rm -f conftest.$ac_objext
4924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925  (eval $ac_compile) 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } &&
4932	 { ac_try='test -z "$ac_cxx_werror_flag"
4933			 || test ! -s conftest.err'
4934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935  (eval $ac_try) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }; } &&
4939	 { ac_try='test -s conftest.$ac_objext'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; }; then
4945  break
4946else
4947  echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950fi
4951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952done
4953rm -f conftest*
4954if test -n "$ac_declaration"; then
4955  echo '#ifdef __cplusplus' >>confdefs.h
4956  echo $ac_declaration      >>confdefs.h
4957  echo '#endif'             >>confdefs.h
4958fi
4959
4960ac_ext=cc
4961ac_cpp='$CXXCPP $CPPFLAGS'
4962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
4966
4967#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
4968#thus, we test here whether $CXX is actually working
4969ac_ext=cc
4970ac_cpp='$CXXCPP $CPPFLAGS'
4971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4974
4975echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
4976echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
4977cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h.  */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h.  */
4983
4984int
4985main ()
4986{
4987int i=0;
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext
4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994  (eval $ac_compile) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } &&
5001	 { ac_try='test -z "$ac_cxx_werror_flag"
5002			 || test ! -s conftest.err'
5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004  (eval $ac_try) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; } &&
5008	 { ac_try='test -s conftest.$ac_objext'
5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010  (eval $ac_try) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }; }; then
5014  echo "$as_me:$LINENO: result: yes" >&5
5015echo "${ECHO_T}yes" >&6
5016else
5017  echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
5023echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
5024   { (exit 1); exit 1; }; }
5025
5026fi
5027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028ac_ext=cc
5029ac_cpp='$CXXCPP $CPPFLAGS'
5030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5033
5034
5035coin_cxx_is_cl=false
5036# It seems that we need to cleanup something here for the Windows
5037case "$CXX" in
5038  clang* ) ;;
5039  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5040    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
5041    mv confdefs.hh confdefs.h
5042    coin_cxx_is_cl=true
5043    ;;
5044esac
5045
5046# add automake conditional so we can recognize cl compiler in makefile
5047
5048
5049if test $coin_cxx_is_cl = true; then
5050  COIN_CXX_IS_CL_TRUE=
5051  COIN_CXX_IS_CL_FALSE='#'
5052else
5053  COIN_CXX_IS_CL_TRUE='#'
5054  COIN_CXX_IS_CL_FALSE=
5055fi
5056
5057
5058# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
5059case "$CXX" in
5060  clang* ) ;;
5061  cl* | */cl* | CL* | */CL* )
5062    if test "$ac_cv_prog_cxx_g" = yes ; then
5063      ac_cv_prog_cxx_g=no
5064      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
5065echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
5066    fi ;;
5067esac
5068CXXFLAGS="$save_cxxflags"
5069
5070# Check if a project specific CXXFLAGS variable has been set
5071if test x$COIN_PRJCT != x; then
5072  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
5073  if test x$coin_tmp = xset; then
5074    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
5075  fi
5076fi
5077
5078if test x"$CXXFLAGS" = x; then
5079
5080# ToDo decide whether we want -DNDEBUG for optimization
5081  coin_add_cxxflags=
5082  coin_opt_cxxflags=
5083  coin_dbg_cxxflags=
5084  coin_warn_cxxflags=
5085
5086  if test "$GXX" = "yes"; then
5087    case "$CXX" in
5088      icpc* | */icpc*)
5089        ;;
5090      *)
5091# ToDo decide about unroll-loops
5092        coin_opt_cxxflags="-O3"
5093        coin_add_cxxflags="-pipe"
5094        coin_dbg_cxxflags="-g -O0"
5095        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
5096        case $build in
5097          *-darwin*)
5098            ;;
5099          *)
5100            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
5101            ;;
5102        esac
5103
5104        case $enable_doscompile in
5105          mingw)
5106            CXXFLAGS="-mno-cygwin"
5107            cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h.  */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h.  */
5113
5114int
5115main ()
5116{
5117int i=0; i++;
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122rm -f conftest.$ac_objext conftest$ac_exeext
5123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124  (eval $ac_link) 2>conftest.er1
5125  ac_status=$?
5126  grep -v '^ *+' conftest.er1 >conftest.err
5127  rm -f conftest.er1
5128  cat conftest.err >&5
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); } &&
5131	 { ac_try='test -z "$ac_cxx_werror_flag"
5132			 || test ! -s conftest.err'
5133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134  (eval $ac_try) 2>&5
5135  ac_status=$?
5136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); }; } &&
5138	 { ac_try='test -s conftest$ac_exeext'
5139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140  (eval $ac_try) 2>&5
5141  ac_status=$?
5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); }; }; then
5144  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
5145else
5146  echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149fi
5150rm -f conftest.err conftest.$ac_objext \
5151      conftest$ac_exeext conftest.$ac_ext
5152            CXXFLAGS=
5153          ;;
5154        esac
5155    esac
5156  fi
5157
5158# Note that we do not need to cover GCC in the following tests.
5159
5160  if test -z "$coin_opt_cxxflags"; then
5161    case $build in
5162      *-cygwin* | *-mingw*)
5163        case "$CXX" in
5164          clang* ) ;;
5165          cl* | */cl* | CL* | */CL*)
5166	    # The MT and MTd options are mutually exclusive
5167            coin_opt_cxxflags='-MT -O2'
5168            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
5169            coin_dbg_cxxflags='-MTd'
5170            ;;
5171          icl* | */icl* | ICL* | */ICL*)
5172	    # The MT and MTd options are mutually exclusive
5173            coin_opt_cxxflags='-MT -Ox'
5174            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
5175            coin_dbg_cxxflags='-MTd -debug'
5176            ;;
5177        esac
5178        ;;
5179      *-linux-*)
5180        case "$CXX" in
5181          icpc* | */icpc*)
5182            coin_opt_cxxflags="-O3 -ip -mp1"
5183            coin_add_cxxflags=""
5184            coin_dbg_cxxflags="-g"
5185            # Check if -i_dynamic is necessary (for new glibc library)
5186            CXXFLAGS=
5187            cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193
5194int
5195main ()
5196{
5197int i=0; i++;
5198  ;
5199  return 0;
5200}
5201_ACEOF
5202rm -f conftest.$ac_objext conftest$ac_exeext
5203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5204  (eval $ac_link) 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } &&
5211	 { ac_try='test -z "$ac_cxx_werror_flag"
5212			 || test ! -s conftest.err'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; } &&
5218	 { ac_try='test -s conftest$ac_exeext'
5219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220  (eval $ac_try) 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }; }; then
5224  :
5225else
5226  echo "$as_me: failed program was:" >&5
5227sed 's/^/| /' conftest.$ac_ext >&5
5228
5229coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
5230fi
5231rm -f conftest.err conftest.$ac_objext \
5232      conftest$ac_exeext conftest.$ac_ext
5233            ;;
5234          pgCC* | */pgCC*)
5235            coin_opt_cxxflags="-fast"
5236            coin_add_cxxflags="-Kieee -pc 64"
5237            coin_dbg_cxxflags="-g"
5238            ;;
5239        esac
5240        ;;
5241      *-ibm-*)
5242        case "$CXX" in
5243          xlC* | */xlC* | mpxlC* | */mpxlC*)
5244            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
5245            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
5246            coin_dbg_cxxflags="-g"
5247            ;;
5248        esac
5249        ;;
5250      *-hp-*)
5251        case "$CXX" in
5252          aCC* | */aCC* )
5253            coin_opt_cxxflags="-O"
5254            coin_add_cxxflags="-AA"
5255            coin_dbg_cxxflags="-g"
5256            ;;
5257        esac
5258        ;;
5259      *-*-solaris*)
5260          coin_opt_cxxflags="-O4"
5261          coin_dbg_cxxflags="-g"
5262        ;;
5263    esac
5264  fi
5265
5266# Generic flag settings. If these don't work, add a case above.
5267
5268  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
5269    coin_dbg_cxxflags="-g"
5270  fi
5271
5272  if test -z "$coin_opt_cxxflags"; then
5273    # Try if -O option works if nothing else is set
5274    CXXFLAGS=-O
5275    cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281
5282int
5283main ()
5284{
5285int i=0; i++;
5286  ;
5287  return 0;
5288}
5289_ACEOF
5290rm -f conftest.$ac_objext conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292  (eval $ac_link) 2>conftest.er1
5293  ac_status=$?
5294  grep -v '^ *+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); } &&
5299	 { ac_try='test -z "$ac_cxx_werror_flag"
5300			 || test ! -s conftest.err'
5301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302  (eval $ac_try) 2>&5
5303  ac_status=$?
5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); }; } &&
5306	 { ac_try='test -s conftest$ac_exeext'
5307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308  (eval $ac_try) 2>&5
5309  ac_status=$?
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); }; }; then
5312  coin_opt_cxxflags="-O"
5313else
5314  echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317fi
5318rm -f conftest.err conftest.$ac_objext \
5319      conftest$ac_exeext conftest.$ac_ext
5320  fi
5321
5322  # if PM doesn't want the warning messages, take them out
5323  if test x"$coin_skip_warn_cxxflags" = xyes; then
5324    coin_warn_cxxflags=
5325  fi
5326
5327# Do final setup of flags based on values determined above.
5328
5329  if test x${DBG_CXXFLAGS+set} != xset; then
5330    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
5331  fi
5332  if test x${OPT_CXXFLAGS+set} != xset; then
5333    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
5334  fi
5335
5336  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5337  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5338
5339  if test "$coin_debug_compile" = "true"; then
5340    CXXFLAGS="$DBG_CXXFLAGS"
5341  else
5342    CXXFLAGS="$OPT_CXXFLAGS"
5343  fi
5344
5345# Handle the case where CXXFLAGS was set externally.
5346else
5347  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
5348  if test x${DBG_CXXFLAGS+set} != xset; then
5349    DBG_CXXFLAGS="$CXXFLAGS"
5350  fi
5351  if test x${OPT_CXXFLAGS+set} != xset; then
5352    OPT_CXXFLAGS="$CXXFLAGS"
5353  fi
5354fi
5355
5356# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
5357
5358case "$CXXFLAGS" in
5359  *-mno-cygwin*)
5360    if test x${CPPFLAGS+set} != xset ; then
5361      CPPFLAGS="-mno-cygwin"
5362    else
5363      case "$CPPFLAGS" in
5364        *-mno-cygwin*)
5365	  ;;
5366	*)
5367	  CPPFLAGS="$CPPFLAGS -mno-cygwin"
5368	  ;;
5369      esac
5370    fi ;;
5371esac
5372
5373# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
5374if test x$COIN_PRJCT != x; then
5375  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
5376fi
5377
5378# Try if CXXFLAGS works
5379save_CXXFLAGS="$CXXFLAGS"
5380cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h.  */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h.  */
5386
5387int
5388main ()
5389{
5390int i=0; i++;
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397  (eval $ac_link) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404	 { ac_try='test -z "$ac_cxx_werror_flag"
5405			 || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411	 { ac_try='test -s conftest$ac_exeext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  :
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422CXXFLAGS=
5423fi
5424rm -f conftest.err conftest.$ac_objext \
5425      conftest$ac_exeext conftest.$ac_ext
5426if test -z "$CXXFLAGS"; then
5427  { 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
5428echo "$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;}
5429  CXXFLAGS='-O'
5430  cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h.  */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h.  */
5436
5437int
5438main ()
5439{
5440int i=0; i++;
5441  ;
5442  return 0;
5443}
5444_ACEOF
5445rm -f conftest.$ac_objext conftest$ac_exeext
5446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5447  (eval $ac_link) 2>conftest.er1
5448  ac_status=$?
5449  grep -v '^ *+' conftest.er1 >conftest.err
5450  rm -f conftest.er1
5451  cat conftest.err >&5
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } &&
5454	 { ac_try='test -z "$ac_cxx_werror_flag"
5455			 || test ! -s conftest.err'
5456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457  (eval $ac_try) 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }; } &&
5461	 { ac_try='test -s conftest$ac_exeext'
5462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463  (eval $ac_try) 2>&5
5464  ac_status=$?
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); }; }; then
5467  :
5468else
5469  echo "$as_me: failed program was:" >&5
5470sed 's/^/| /' conftest.$ac_ext >&5
5471
5472CXXFLAGS=
5473fi
5474rm -f conftest.err conftest.$ac_objext \
5475      conftest$ac_exeext conftest.$ac_ext
5476  if test -z "$CXXFLAGS"; then
5477    { 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
5478echo "$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;}
5479  fi
5480fi
5481
5482{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
5483echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
5484
5485
5486if test x"$MPICXX" = x; then :; else
5487  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
5488echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
5489  CXX="$MPICXX"
5490fi
5491
5492# correct the LD variable in a mingw build with MS or intel compiler
5493case "$CXX" in
5494  clang* ) ;;
5495  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5496    case $build in
5497  *-mingw*)
5498    if test "${LD+set}" = set; then :; else
5499      LD=link
5500    fi
5501    ;;
5502 esac
5503 case $enable_doscompile in
5504   msvc)
5505     if test "x${LD+set}" = xset; then :; else
5506       LD=link
5507     fi
5508     ;;
5509 esac
5510
5511    ;;
5512esac
5513
5514ac_ext=c
5515ac_cpp='$CPP $CPPFLAGS'
5516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519
5520
5521
5522# Get the name of the Fortran compiler and appropriate compiler options
5523case $build in
5524  *-cygwin* | *-mingw*)
5525     if test "$enable_doscompile" = msvc ; then
5526       coin_f77_comps="ifort fl32 compile_f2c"
5527     else
5528       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
5529     fi ;;
5530  *-*-solaris*)
5531     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
5532  *-linux-gnu*)
5533     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
5534  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
5535 esac
5536
5537
5538
5539
5540
5541
5542ac_ext=f
5543ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5544ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5546
5547
5548
5549
5550
5551
5552coin_has_f77=yes
5553
5554save_fflags="$FFLAGS"
5555
5556# We delete the cached value, since the test might not have been
5557# performed with our choice of compilers earlier
5558$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
5559
5560# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
5561# coin_f77_comps to see if there's a program that matches one of the names.
5562# If there's no such program, F77 = unavailable. If we match the name,
5563# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
5564# compiler.
5565# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
5566
5567
5568{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
5569echo "$as_me: Trying to determine Fortran compiler name" >&6;}
5570if test -n "$ac_tool_prefix"; then
5571  for ac_prog in $coin_f77_comps
5572  do
5573    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5575echo "$as_me:$LINENO: checking for $ac_word" >&5
5576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5577if test "${ac_cv_prog_F77+set}" = set; then
5578  echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580  if test -n "$F77"; then
5581  ac_cv_prog_F77="$F77" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586  IFS=$as_save_IFS
5587  test -z "$as_dir" && as_dir=.
5588  for ac_exec_ext in '' $ac_executable_extensions; do
5589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592    break 2
5593  fi
5594done
5595done
5596
5597fi
5598fi
5599F77=$ac_cv_prog_F77
5600if test -n "$F77"; then
5601  echo "$as_me:$LINENO: result: $F77" >&5
5602echo "${ECHO_T}$F77" >&6
5603else
5604  echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606fi
5607
5608    test -n "$F77" && break
5609  done
5610fi
5611if test -z "$F77"; then
5612  ac_ct_F77=$F77
5613  for ac_prog in $coin_f77_comps
5614do
5615  # Extract the first word of "$ac_prog", so it can be a program name with args.
5616set dummy $ac_prog; ac_word=$2
5617echo "$as_me:$LINENO: checking for $ac_word" >&5
5618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5619if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  if test -n "$ac_ct_F77"; then
5623  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630  for ac_exec_ext in '' $ac_executable_extensions; do
5631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632    ac_cv_prog_ac_ct_F77="$ac_prog"
5633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637done
5638
5639fi
5640fi
5641ac_ct_F77=$ac_cv_prog_ac_ct_F77
5642if test -n "$ac_ct_F77"; then
5643  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5644echo "${ECHO_T}$ac_ct_F77" >&6
5645else
5646  echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6
5648fi
5649
5650  test -n "$ac_ct_F77" && break
5651done
5652test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
5653
5654  F77=$ac_ct_F77
5655fi
5656
5657
5658if test "$F77" != "unavailable" ; then
5659  ac_ext=f
5660ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5661ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5663if test -n "$ac_tool_prefix"; then
5664  for ac_prog in $coin_f77_comps
5665  do
5666    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5668echo "$as_me:$LINENO: checking for $ac_word" >&5
5669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670if test "${ac_cv_prog_F77+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673  if test -n "$F77"; then
5674  ac_cv_prog_F77="$F77" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681  for ac_exec_ext in '' $ac_executable_extensions; do
5682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688done
5689
5690fi
5691fi
5692F77=$ac_cv_prog_F77
5693if test -n "$F77"; then
5694  echo "$as_me:$LINENO: result: $F77" >&5
5695echo "${ECHO_T}$F77" >&6
5696else
5697  echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699fi
5700
5701    test -n "$F77" && break
5702  done
5703fi
5704if test -z "$F77"; then
5705  ac_ct_F77=$F77
5706  for ac_prog in $coin_f77_comps
5707do
5708  # Extract the first word of "$ac_prog", so it can be a program name with args.
5709set dummy $ac_prog; ac_word=$2
5710echo "$as_me:$LINENO: checking for $ac_word" >&5
5711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5712if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5713  echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715  if test -n "$ac_ct_F77"; then
5716  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721  IFS=$as_save_IFS
5722  test -z "$as_dir" && as_dir=.
5723  for ac_exec_ext in '' $ac_executable_extensions; do
5724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725    ac_cv_prog_ac_ct_F77="$ac_prog"
5726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727    break 2
5728  fi
5729done
5730done
5731
5732fi
5733fi
5734ac_ct_F77=$ac_cv_prog_ac_ct_F77
5735if test -n "$ac_ct_F77"; then
5736  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5737echo "${ECHO_T}$ac_ct_F77" >&6
5738else
5739  echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6
5741fi
5742
5743  test -n "$ac_ct_F77" && break
5744done
5745
5746  F77=$ac_ct_F77
5747fi
5748
5749
5750# Provide some information about the compiler.
5751echo "$as_me:5751:" \
5752     "checking for Fortran 77 compiler version" >&5
5753ac_compiler=`set X $ac_compile; echo $2`
5754{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5755  (eval $ac_compiler --version </dev/null >&5) 2>&5
5756  ac_status=$?
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); }
5759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5760  (eval $ac_compiler -v </dev/null >&5) 2>&5
5761  ac_status=$?
5762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); }
5764{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5765  (eval $ac_compiler -V </dev/null >&5) 2>&5
5766  ac_status=$?
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); }
5769rm -f a.out
5770
5771# If we don't use `.F' as extension, the preprocessor is not run on the
5772# input file.  (Note that this only needs to work for GNU compilers.)
5773ac_save_ext=$ac_ext
5774ac_ext=F
5775echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5776echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5777if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5778  echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780  cat >conftest.$ac_ext <<_ACEOF
5781      program main
5782#ifndef __GNUC__
5783       choke me
5784#endif
5785
5786      end
5787_ACEOF
5788rm -f conftest.$ac_objext
5789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790  (eval $ac_compile) 2>conftest.er1
5791  ac_status=$?
5792  grep -v '^ *+' conftest.er1 >conftest.err
5793  rm -f conftest.er1
5794  cat conftest.err >&5
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); } &&
5797	 { ac_try='test -z "$ac_f77_werror_flag"
5798			 || test ! -s conftest.err'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; } &&
5804	 { ac_try='test -s conftest.$ac_objext'
5805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806  (eval $ac_try) 2>&5
5807  ac_status=$?
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); }; }; then
5810  ac_compiler_gnu=yes
5811else
5812  echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815ac_compiler_gnu=no
5816fi
5817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5818ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5819
5820fi
5821echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5822echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5823ac_ext=$ac_save_ext
5824ac_test_FFLAGS=${FFLAGS+set}
5825ac_save_FFLAGS=$FFLAGS
5826FFLAGS=
5827echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5828echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5829if test "${ac_cv_prog_f77_g+set}" = set; then
5830  echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832  FFLAGS=-g
5833cat >conftest.$ac_ext <<_ACEOF
5834      program main
5835
5836      end
5837_ACEOF
5838rm -f conftest.$ac_objext
5839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840  (eval $ac_compile) 2>conftest.er1
5841  ac_status=$?
5842  grep -v '^ *+' conftest.er1 >conftest.err
5843  rm -f conftest.er1
5844  cat conftest.err >&5
5845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846  (exit $ac_status); } &&
5847	 { ac_try='test -z "$ac_f77_werror_flag"
5848			 || test ! -s conftest.err'
5849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850  (eval $ac_try) 2>&5
5851  ac_status=$?
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); }; } &&
5854	 { ac_try='test -s conftest.$ac_objext'
5855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856  (eval $ac_try) 2>&5
5857  ac_status=$?
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); }; }; then
5860  ac_cv_prog_f77_g=yes
5861else
5862  echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865ac_cv_prog_f77_g=no
5866fi
5867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868
5869fi
5870echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5871echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5872if test "$ac_test_FFLAGS" = set; then
5873  FFLAGS=$ac_save_FFLAGS
5874elif test $ac_cv_prog_f77_g = yes; then
5875  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5876    FFLAGS="-g -O2"
5877  else
5878    FFLAGS="-g"
5879  fi
5880else
5881  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5882    FFLAGS="-O2"
5883  else
5884    FFLAGS=
5885  fi
5886fi
5887
5888G77=`test $ac_compiler_gnu = yes && echo yes`
5889ac_ext=f
5890ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5891ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5893
5894else
5895  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
5896echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
5897fi
5898
5899FFLAGS="$save_fflags"
5900
5901# Check if a project specific FFLAGS variable has been set
5902if test x$COIN_PRJCT != x; then
5903  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
5904  if test x$coin_tmp = xset; then
5905    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
5906  fi
5907fi
5908
5909if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
5910
5911  coin_add_fflags=
5912  coin_opt_fflags=
5913  coin_dbg_fflags=
5914  coin_warn_fflags=
5915
5916  if test "$G77" = "yes"; then
5917    coin_opt_fflags="-O3"
5918    coin_add_fflags="-pipe"
5919    coin_dbg_fflags="-g -O0"
5920    case $enable_doscompile in
5921      mingw)
5922	FFLAGS="-mno-cygwin"
5923	cat >conftest.$ac_ext <<_ACEOF
5924      program main
5925      write(*,*) 'Hello world'
5926      end
5927_ACEOF
5928rm -f conftest.$ac_objext conftest$ac_exeext
5929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930  (eval $ac_link) 2>conftest.er1
5931  ac_status=$?
5932  grep -v '^ *+' conftest.er1 >conftest.err
5933  rm -f conftest.er1
5934  cat conftest.err >&5
5935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936  (exit $ac_status); } &&
5937	 { ac_try='test -z "$ac_f77_werror_flag"
5938			 || test ! -s conftest.err'
5939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940  (eval $ac_try) 2>&5
5941  ac_status=$?
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); }; } &&
5944	 { ac_try='test -s conftest$ac_exeext'
5945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946  (eval $ac_try) 2>&5
5947  ac_status=$?
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); }; }; then
5950  coin_add_fflags="-mno-cygwin $coin_add_fflags"
5951else
5952  echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955fi
5956rm -f conftest.err conftest.$ac_objext \
5957      conftest$ac_exeext conftest.$ac_ext
5958	FFLAGS=
5959      ;;
5960    esac
5961  else
5962    case $build in
5963      *-cygwin* | *-mingw*)
5964        case $F77 in
5965          ifort* | */ifort* | IFORT* | */IFORT* )
5966            coin_opt_fflags='-MT -O3'
5967            coin_add_fflags='-fpp -nologo'
5968            coin_dbg_fflags='-MTd -debug'
5969          ;;
5970          compile_f2c*)
5971            coin_opt_fflags='-MT -O2'
5972            coin_add_fflags='-nologo -wd4996'
5973            coin_dbg_fflags='-MTd'
5974          ;;
5975        esac
5976        ;;
5977      *-linux-*)
5978        case $F77 in
5979          ifc* | */ifc* | ifort* | */ifort*)
5980            coin_opt_fflags="-O3 -ip"
5981            coin_add_fflags="-cm -w90 -w95"
5982            coin_dbg_fflags="-g -CA -CB -CS"
5983            # Check if -i_dynamic is necessary (for new glibc library)
5984            FFLAGS=
5985            cat >conftest.$ac_ext <<_ACEOF
5986      program main
5987      write(*,*) 'Hello world'
5988      end
5989_ACEOF
5990rm -f conftest.$ac_objext conftest$ac_exeext
5991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992  (eval $ac_link) 2>conftest.er1
5993  ac_status=$?
5994  grep -v '^ *+' conftest.er1 >conftest.err
5995  rm -f conftest.er1
5996  cat conftest.err >&5
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); } &&
5999	 { ac_try='test -z "$ac_f77_werror_flag"
6000			 || test ! -s conftest.err'
6001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002  (eval $ac_try) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; } &&
6006	 { ac_try='test -s conftest$ac_exeext'
6007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008  (eval $ac_try) 2>&5
6009  ac_status=$?
6010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011  (exit $ac_status); }; }; then
6012  :
6013else
6014  echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017coin_add_fflags="-i_dynamic $coin_add_fflags"
6018fi
6019rm -f conftest.err conftest.$ac_objext \
6020      conftest$ac_exeext conftest.$ac_ext
6021            ;;
6022          pgf77* | */pgf77* | pgf90* | */pgf90*)
6023            coin_opt_fflags="-fast"
6024            coin_add_fflags="-Kieee -pc 64"
6025            coin_dbg_fflags="-g"
6026          ;;
6027        esac
6028        ;;
6029      *-ibm-*)
6030        case "$F77" in
6031          xlf* | */xlf* | mpxlf* | */mpxlf* )
6032            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
6033            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
6034            coin_dbg_fflags="-g -C"
6035            ;;
6036        esac
6037        ;;
6038      *-hp-*)
6039        coin_opt_fflags="+O3"
6040        coin_add_fflags="+U77"
6041        coin_dbg_fflags="-C -g"
6042        ;;
6043      *-*-solaris*)
6044        coin_opt_fflags="-O4"
6045        coin_dbg_fflags="-g"
6046        ;;
6047      *-sgi-*)
6048        coin_opt_fflags="-O5 -OPT:Olimit=0"
6049        coin_dbg_fflags="-g"
6050        ;;
6051    esac
6052  fi
6053
6054  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
6055    coin_dbg_fflags="-g"
6056  fi
6057
6058  if test -z "$coin_opt_fflags"; then
6059    # Try if -O option works if nothing else is set
6060    FFLAGS=-O
6061    cat >conftest.$ac_ext <<_ACEOF
6062      program main
6063      integer i
6064      end
6065_ACEOF
6066rm -f conftest.$ac_objext conftest$ac_exeext
6067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068  (eval $ac_link) 2>conftest.er1
6069  ac_status=$?
6070  grep -v '^ *+' conftest.er1 >conftest.err
6071  rm -f conftest.er1
6072  cat conftest.err >&5
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); } &&
6075	 { ac_try='test -z "$ac_f77_werror_flag"
6076			 || test ! -s conftest.err'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; } &&
6082	 { ac_try='test -s conftest$ac_exeext'
6083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084  (eval $ac_try) 2>&5
6085  ac_status=$?
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); }; }; then
6088  coin_opt_fflags="-O"
6089else
6090  echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093fi
6094rm -f conftest.err conftest.$ac_objext \
6095      conftest$ac_exeext conftest.$ac_ext
6096  fi
6097
6098  # if PM doesn't want the warning messages, take them out
6099  if test x"$coin_skip_warn_fflags" = xyes; then
6100    coin_warn_fflags=
6101  fi
6102
6103  if test x${DBG_FFLAGS+set} != xset; then
6104    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
6105  fi
6106  if test x${OPT_FFLAGS+set} != xset; then
6107    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
6108  fi
6109
6110  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
6111  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
6112
6113  if test "$coin_debug_compile" = "true"; then
6114    FFLAGS="$DBG_FFLAGS"
6115  else
6116    FFLAGS="$OPT_FFLAGS"
6117  fi
6118else
6119  FFLAGS="$FFLAGS $ADD_FFLAGS"
6120  if test x${DBG_FFLAGS+set} != xset; then
6121    DBG_FFLAGS="$FFLAGS"
6122  fi
6123  if test x${OPT_FFLAGS+set} != xset; then
6124    OPT_FFLAGS="$FFLAGS"
6125  fi
6126fi
6127
6128# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
6129case "$FFLAGS" in
6130  *-mno-cygwin*)
6131    if test x${CPPFLAGS+set} != xset ; then
6132      CPPFLAGS="-mno-cygwin"
6133    else
6134      case "$CPPFLAGS" in
6135        *-mno-cygwin*)
6136	  ;;
6137	*)
6138	  CPPFLAGS="$CPPFLAGS -mno-cygwin"
6139	  ;;
6140      esac
6141    fi ;;
6142esac
6143
6144# Try if FFLAGS works
6145if test "$F77" != "unavailable" ; then
6146  cat >conftest.$ac_ext <<_ACEOF
6147      program main
6148      integer i
6149      end
6150_ACEOF
6151rm -f conftest.$ac_objext conftest$ac_exeext
6152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153  (eval $ac_link) 2>conftest.er1
6154  ac_status=$?
6155  grep -v '^ *+' conftest.er1 >conftest.err
6156  rm -f conftest.er1
6157  cat conftest.err >&5
6158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159  (exit $ac_status); } &&
6160	 { ac_try='test -z "$ac_f77_werror_flag"
6161			 || test ! -s conftest.err'
6162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163  (eval $ac_try) 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); }; } &&
6167	 { ac_try='test -s conftest$ac_exeext'
6168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169  (eval $ac_try) 2>&5
6170  ac_status=$?
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); }; }; then
6173  :
6174else
6175  echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
6178FFLAGS=
6179fi
6180rm -f conftest.err conftest.$ac_objext \
6181      conftest$ac_exeext conftest.$ac_ext
6182  if test -z "$FFLAGS"; then
6183    { 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
6184echo "$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;}
6185    FFLAGS='-O'
6186    cat >conftest.$ac_ext <<_ACEOF
6187      program main
6188      integer i
6189      end
6190_ACEOF
6191rm -f conftest.$ac_objext conftest$ac_exeext
6192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193  (eval $ac_link) 2>conftest.er1
6194  ac_status=$?
6195  grep -v '^ *+' conftest.er1 >conftest.err
6196  rm -f conftest.er1
6197  cat conftest.err >&5
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); } &&
6200	 { ac_try='test -z "$ac_f77_werror_flag"
6201			 || test ! -s conftest.err'
6202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203  (eval $ac_try) 2>&5
6204  ac_status=$?
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); }; } &&
6207	 { ac_try='test -s conftest$ac_exeext'
6208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209  (eval $ac_try) 2>&5
6210  ac_status=$?
6211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212  (exit $ac_status); }; }; then
6213  :
6214else
6215  echo "$as_me: failed program was:" >&5
6216sed 's/^/| /' conftest.$ac_ext >&5
6217
6218FFLAGS=
6219fi
6220rm -f conftest.err conftest.$ac_objext \
6221      conftest$ac_exeext conftest.$ac_ext
6222    if test -z "$FFLAGS"; then
6223      { 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
6224echo "$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;}
6225    fi
6226  fi
6227fi
6228
6229{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
6230echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
6231
6232
6233if test x"$MPIF77" = x; then :; else
6234  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
6235echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
6236  F77="$MPIF77"
6237fi
6238
6239# correct the LD variable if we use the intel fortran compiler in windows
6240case "$F77" in
6241  ifort* | */ifort* | IFORT* | */IFORT*)
6242    case $build in
6243  *-mingw*)
6244    if test "${LD+set}" = set; then :; else
6245      LD=link
6246    fi
6247    ;;
6248 esac
6249 case $enable_doscompile in
6250   msvc)
6251     if test "x${LD+set}" = xset; then :; else
6252       LD=link
6253     fi
6254     ;;
6255 esac
6256
6257    ;;
6258esac
6259
6260ac_ext=c
6261ac_cpp='$CPP $CPPFLAGS'
6262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
6266
6267
6268# Initialize automake and libtool
6269# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
6270{
6271
6272
6273
6274# START
6275
6276# Test if force_shared has been set
6277if test "x" = xforce_shared; then
6278  if test x$enable_shared = xno; then
6279    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
6280echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
6281   { (exit 1); exit 1; }; }
6282  fi
6283  enable_shared=yes;
6284else
6285  # On Cygwin and AIX, building DLLs doesn't work
6286  case $build in
6287    *-cygwin*)
6288      coin_disable_shared=yes
6289      platform=Cygwin
6290    ;;
6291    *-aix*)
6292      coin_disable_shared=yes
6293      platform=AIX
6294    ;;
6295    *-mingw*)
6296      coin_disable_shared=yes
6297      platform="Msys"
6298#      case "$CXX" in
6299#        cl*)
6300#          coin_disable_shared=yes
6301#          platform="Msys with cl"
6302#      ;;
6303#      esac
6304    ;;
6305  esac
6306fi
6307if test x"$coin_disable_shared" = xyes; then
6308  if test x"$enable_shared" = xyes; then
6309    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
6310echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
6311  fi
6312  enable_shared=no
6313fi
6314# By default, we only want the shared objects to be compiled
6315# Check whether --enable-static or --disable-static was given.
6316if test "${enable_static+set}" = set; then
6317  enableval="$enable_static"
6318  p=${PACKAGE-default}
6319    case $enableval in
6320    yes) enable_static=yes ;;
6321    no) enable_static=no ;;
6322    *)
6323     enable_static=no
6324      # Look at the argument we got.  We use all the common list separators.
6325      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6326      for pkg in $enableval; do
6327	IFS="$lt_save_ifs"
6328	if test "X$pkg" = "X$p"; then
6329	  enable_static=yes
6330	fi
6331      done
6332      IFS="$lt_save_ifs"
6333      ;;
6334    esac
6335else
6336  enable_static=no
6337fi;
6338
6339
6340
6341
6342# Initialize automake
6343echo "$as_me:$LINENO: checking whether ln -s works" >&5
6344echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6345LN_S=$as_ln_s
6346if test "$LN_S" = "ln -s"; then
6347  echo "$as_me:$LINENO: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
6349else
6350  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6351echo "${ECHO_T}no, using $LN_S" >&6
6352fi
6353
6354am__api_version="1.9"
6355# Find a good install program.  We prefer a C program (faster),
6356# so one script is as good as another.  But avoid the broken or
6357# incompatible versions:
6358# SysV /etc/install, /usr/sbin/install
6359# SunOS /usr/etc/install
6360# IRIX /sbin/install
6361# AIX /bin/install
6362# AmigaOS /C/install, which installs bootblocks on floppy discs
6363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6364# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6366# OS/2's system install, which has a completely different semantic
6367# ./install, which can be erroneously created by make from ./install.sh.
6368echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6369echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6370if test -z "$INSTALL"; then
6371if test "${ac_cv_path_install+set}" = set; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379  # Account for people who put trailing slashes in PATH elements.
6380case $as_dir/ in
6381  ./ | .// | /cC/* | \
6382  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6383  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6384  /usr/ucb/* ) ;;
6385  *)
6386    # OSF1 and SCO ODT 3.0 have their own names for install.
6387    # Don't use installbsd from OSF since it installs stuff as root
6388    # by default.
6389    for ac_prog in ginstall scoinst install; do
6390      for ac_exec_ext in '' $ac_executable_extensions; do
6391	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6392	  if test $ac_prog = install &&
6393	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6394	    # AIX install.  It has an incompatible calling convention.
6395	    :
6396	  elif test $ac_prog = install &&
6397	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6398	    # program-specific install script used by HP pwplus--don't use.
6399	    :
6400	  else
6401	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6402	    break 3
6403	  fi
6404	fi
6405      done
6406    done
6407    ;;
6408esac
6409done
6410
6411
6412fi
6413  if test "${ac_cv_path_install+set}" = set; then
6414    INSTALL=$ac_cv_path_install
6415  else
6416    # As a last resort, use the slow shell script.  We don't cache a
6417    # path for INSTALL within a source directory, because that will
6418    # break other packages using the cache if that directory is
6419    # removed, or if the path is relative.
6420    INSTALL=$ac_install_sh
6421  fi
6422fi
6423echo "$as_me:$LINENO: result: $INSTALL" >&5
6424echo "${ECHO_T}$INSTALL" >&6
6425
6426# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6427# It thinks the first close brace ends the variable substitution.
6428test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6429
6430test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6431
6432test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6433
6434echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6435echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6436# Just in case
6437sleep 1
6438echo timestamp > conftest.file
6439# Do `set' in a subshell so we don't clobber the current shell's
6440# arguments.  Must try -L first in case configure is actually a
6441# symlink; some systems play weird games with the mod time of symlinks
6442# (eg FreeBSD returns the mod time of the symlink's containing
6443# directory).
6444if (
6445   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6446   if test "$*" = "X"; then
6447      # -L didn't work.
6448      set X `ls -t $srcdir/configure conftest.file`
6449   fi
6450   rm -f conftest.file
6451   if test "$*" != "X $srcdir/configure conftest.file" \
6452      && test "$*" != "X conftest.file $srcdir/configure"; then
6453
6454      # If neither matched, then we have a broken ls.  This can happen
6455      # if, for instance, CONFIG_SHELL is bash and it inherits a
6456      # broken ls alias from the environment.  This has actually
6457      # happened.  Such a system could not be considered "sane".
6458      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
6459alias in your environment" >&5
6460echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
6461alias in your environment" >&2;}
6462   { (exit 1); exit 1; }; }
6463   fi
6464
6465   test "$2" = conftest.file
6466   )
6467then
6468   # Ok.
6469   :
6470else
6471   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6472Check your system clock" >&5
6473echo "$as_me: error: newly created file is older than distributed files!
6474Check your system clock" >&2;}
6475   { (exit 1); exit 1; }; }
6476fi
6477echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
6479test "$program_prefix" != NONE &&
6480  program_transform_name="s,^,$program_prefix,;$program_transform_name"
6481# Use a double $ so make ignores it.
6482test "$program_suffix" != NONE &&
6483  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6484# Double any \ or $.  echo might interpret backslashes.
6485# By default was `s,x,x', remove it if useless.
6486cat <<\_ACEOF >conftest.sed
6487s/[\\$]/&&/g;s/;s,x,x,$//
6488_ACEOF
6489program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6490rm conftest.sed
6491
6492# expand $ac_aux_dir to an absolute path
6493am_aux_dir=`cd $ac_aux_dir && pwd`
6494
6495test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6496# Use eval to expand $SHELL
6497if eval "$MISSING --run true"; then
6498  am_missing_run="$MISSING --run "
6499else
6500  am_missing_run=
6501  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6502echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6503fi
6504
6505if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6506  # We used to keeping the `.' as first argument, in order to
6507  # allow $(mkdir_p) to be used without argument.  As in
6508  #   $(mkdir_p) $(somedir)
6509  # where $(somedir) is conditionally defined.  However this is wrong
6510  # for two reasons:
6511  #  1. if the package is installed by a user who cannot write `.'
6512  #     make install will fail,
6513  #  2. the above comment should most certainly read
6514  #     $(mkdir_p) $(DESTDIR)$(somedir)
6515  #     so it does not work when $(somedir) is undefined and
6516  #     $(DESTDIR) is not.
6517  #  To support the latter case, we have to write
6518  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6519  #  so the `.' trick is pointless.
6520  mkdir_p='mkdir -p --'
6521else
6522  # On NextStep and OpenStep, the `mkdir' command does not
6523  # recognize any option.  It will interpret all options as
6524  # directories to create, and then abort because `.' already
6525  # exists.
6526  for d in ./-p ./--version;
6527  do
6528    test -d $d && rmdir $d
6529  done
6530  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6531  if test -f "$ac_aux_dir/mkinstalldirs"; then
6532    mkdir_p='$(mkinstalldirs)'
6533  else
6534    mkdir_p='$(install_sh) -d'
6535  fi
6536fi
6537
6538for ac_prog in gawk mawk nawk awk
6539do
6540  # Extract the first word of "$ac_prog", so it can be a program name with args.
6541set dummy $ac_prog; ac_word=$2
6542echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6544if test "${ac_cv_prog_AWK+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  if test -n "$AWK"; then
6548  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  test -z "$as_dir" && as_dir=.
6555  for ac_exec_ext in '' $ac_executable_extensions; do
6556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557    ac_cv_prog_AWK="$ac_prog"
6558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559    break 2
6560  fi
6561done
6562done
6563
6564fi
6565fi
6566AWK=$ac_cv_prog_AWK
6567if test -n "$AWK"; then
6568  echo "$as_me:$LINENO: result: $AWK" >&5
6569echo "${ECHO_T}$AWK" >&6
6570else
6571  echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6
6573fi
6574
6575  test -n "$AWK" && break
6576done
6577
6578echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6579echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6580set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6581if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6582  echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584  cat >conftest.make <<\_ACEOF
6585all:
6586	@echo 'ac_maketemp="$(MAKE)"'
6587_ACEOF
6588# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6589eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6590if test -n "$ac_maketemp"; then
6591  eval ac_cv_prog_make_${ac_make}_set=yes
6592else
6593  eval ac_cv_prog_make_${ac_make}_set=no
6594fi
6595rm -f conftest.make
6596fi
6597if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6598  echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
6600  SET_MAKE=
6601else
6602  echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
6604  SET_MAKE="MAKE=${MAKE-make}"
6605fi
6606
6607rm -rf .tst 2>/dev/null
6608mkdir .tst 2>/dev/null
6609if test -d .tst; then
6610  am__leading_dot=.
6611else
6612  am__leading_dot=_
6613fi
6614rmdir .tst 2>/dev/null
6615
6616DEPDIR="${am__leading_dot}deps"
6617
6618          ac_config_commands="$ac_config_commands depfiles"
6619
6620
6621am_make=${MAKE-make}
6622cat > confinc << 'END'
6623am__doit:
6624	@echo done
6625.PHONY: am__doit
6626END
6627# If we don't find an include directive, just comment out the code.
6628echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6629echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6630am__include="#"
6631am__quote=
6632_am_result=none
6633# First try GNU make style include.
6634echo "include confinc" > confmf
6635# We grep out `Entering directory' and `Leaving directory'
6636# messages which can occur if `w' ends up in MAKEFLAGS.
6637# In particular we don't look at `^make:' because GNU make might
6638# be invoked under some other name (usually "gmake"), in which
6639# case it prints its new name instead of `make'.
6640if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6641   am__include=include
6642   am__quote=
6643   _am_result=GNU
6644fi
6645# Now try BSD make style include.
6646if test "$am__include" = "#"; then
6647   echo '.include "confinc"' > confmf
6648   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6649      am__include=.include
6650      am__quote="\""
6651      _am_result=BSD
6652   fi
6653fi
6654
6655
6656echo "$as_me:$LINENO: result: $_am_result" >&5
6657echo "${ECHO_T}$_am_result" >&6
6658rm -f confinc confmf
6659
6660# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6661if test "${enable_dependency_tracking+set}" = set; then
6662  enableval="$enable_dependency_tracking"
6663
6664fi;
6665if test "x$enable_dependency_tracking" != xno; then
6666  am_depcomp="$ac_aux_dir/depcomp"
6667  AMDEPBACKSLASH='\'
6668fi
6669
6670
6671if test "x$enable_dependency_tracking" != xno; then
6672  AMDEP_TRUE=
6673  AMDEP_FALSE='#'
6674else
6675  AMDEP_TRUE='#'
6676  AMDEP_FALSE=
6677fi
6678
6679
6680
6681
6682
6683
6684# AC_MSG_NOTICE([Beginning automake initialisation.])
6685# Stuff for automake
6686# test to see if srcdir already configured
6687if test "`cd $srcdir && pwd`" != "`pwd`" &&
6688   test -f $srcdir/config.status; then
6689  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6690echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6691   { (exit 1); exit 1; }; }
6692fi
6693
6694# test whether we have cygpath
6695if test -z "$CYGPATH_W"; then
6696  if (cygpath --version) >/dev/null 2>/dev/null; then
6697    CYGPATH_W='cygpath -w'
6698  else
6699    CYGPATH_W=echo
6700  fi
6701fi
6702
6703
6704# Define the identity of the package.
6705 PACKAGE='cr--me'
6706 VERSION='0.0trunk'
6707
6708
6709cat >>confdefs.h <<_ACEOF
6710#define PACKAGE "$PACKAGE"
6711_ACEOF
6712
6713
6714cat >>confdefs.h <<_ACEOF
6715#define VERSION "$VERSION"
6716_ACEOF
6717
6718# Some tools Automake needs.
6719
6720ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6721
6722
6723AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6724
6725
6726AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6727
6728
6729AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6730
6731
6732MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6733
6734install_sh=${install_sh-"$am_aux_dir/install-sh"}
6735
6736# Installed binaries are usually stripped using `strip' when the user
6737# run `make install-strip'.  However `strip' might not be the right
6738# tool to use in cross-compilation environments, therefore Automake
6739# will honor the `STRIP' environment variable to overrule this program.
6740if test "$cross_compiling" != no; then
6741  if test -n "$ac_tool_prefix"; then
6742  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6743set dummy ${ac_tool_prefix}strip; ac_word=$2
6744echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746if test "${ac_cv_prog_STRIP+set}" = set; then
6747  echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749  if test -n "$STRIP"; then
6750  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755  IFS=$as_save_IFS
6756  test -z "$as_dir" && as_dir=.
6757  for ac_exec_ext in '' $ac_executable_extensions; do
6758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761    break 2
6762  fi
6763done
6764done
6765
6766fi
6767fi
6768STRIP=$ac_cv_prog_STRIP
6769if test -n "$STRIP"; then
6770  echo "$as_me:$LINENO: result: $STRIP" >&5
6771echo "${ECHO_T}$STRIP" >&6
6772else
6773  echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6
6775fi
6776
6777fi
6778if test -z "$ac_cv_prog_STRIP"; then
6779  ac_ct_STRIP=$STRIP
6780  # Extract the first word of "strip", so it can be a program name with args.
6781set dummy strip; ac_word=$2
6782echo "$as_me:$LINENO: checking for $ac_word" >&5
6783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6784if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6785  echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787  if test -n "$ac_ct_STRIP"; then
6788  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793  IFS=$as_save_IFS
6794  test -z "$as_dir" && as_dir=.
6795  for ac_exec_ext in '' $ac_executable_extensions; do
6796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797    ac_cv_prog_ac_ct_STRIP="strip"
6798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802done
6803
6804  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6805fi
6806fi
6807ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6808if test -n "$ac_ct_STRIP"; then
6809  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6810echo "${ECHO_T}$ac_ct_STRIP" >&6
6811else
6812  echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814fi
6815
6816  STRIP=$ac_ct_STRIP
6817else
6818  STRIP="$ac_cv_prog_STRIP"
6819fi
6820
6821fi
6822INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6823
6824# We need awk for the "check" target.  The system "awk" is bad on
6825# some platforms.
6826# Always define AMTAR for backward compatibility.
6827
6828AMTAR=${AMTAR-"${am_missing_run}tar"}
6829
6830am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6831
6832
6833
6834
6835depcc="$CC"   am_compiler_list=
6836
6837echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6838echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6839if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6840  echo $ECHO_N "(cached) $ECHO_C" >&6
6841else
6842  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6843  # We make a subdir and do the tests there.  Otherwise we can end up
6844  # making bogus files that we don't know about and never remove.  For
6845  # instance it was reported that on HP-UX the gcc test will end up
6846  # making a dummy file named `D' -- because `-MD' means `put the output
6847  # in D'.
6848  mkdir conftest.dir
6849  # Copy depcomp to subdir because otherwise we won't find it if we're
6850  # using a relative directory.
6851  cp "$am_depcomp" conftest.dir
6852  cd conftest.dir
6853  # We will build objects and dependencies in a subdirectory because
6854  # it helps to detect inapplicable dependency modes.  For instance
6855  # both Tru64's cc and ICC support -MD to output dependencies as a
6856  # side effect of compilation, but ICC will put the dependencies in
6857  # the current directory while Tru64 will put them in the object
6858  # directory.
6859  mkdir sub
6860
6861  am_cv_CC_dependencies_compiler_type=none
6862  if test "$am_compiler_list" = ""; then
6863     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6864  fi
6865  for depmode in $am_compiler_list; do
6866    # Setup a source with many dependencies, because some compilers
6867    # like to wrap large dependency lists on column 80 (with \), and
6868    # we should not choose a depcomp mode which is confused by this.
6869    #
6870    # We need to recreate these files for each test, as the compiler may
6871    # overwrite some of them when testing with obscure command lines.
6872    # This happens at least with the AIX C compiler.
6873    : > sub/conftest.c
6874    for i in 1 2 3 4 5 6; do
6875      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6876      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6877      # Solaris 8's {/usr,}/bin/sh.
6878      touch sub/conftst$i.h
6879    done
6880    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6881
6882    case $depmode in
6883    nosideeffect)
6884      # after this tag, mechanisms are not by side-effect, so they'll
6885      # only be used when explicitly requested
6886      if test "x$enable_dependency_tracking" = xyes; then
6887	continue
6888      else
6889	break
6890      fi
6891      ;;
6892    none) break ;;
6893    esac
6894    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6895    # mode.  It turns out that the SunPro C++ compiler does not properly
6896    # handle `-M -o', and we need to detect this.
6897    if depmode=$depmode \
6898       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6899       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6900       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6901         >/dev/null 2>conftest.err &&
6902       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6903       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6904       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6905      # icc doesn't choke on unknown options, it will just issue warnings
6906      # or remarks (even with -Werror).  So we grep stderr for any message
6907      # that says an option was ignored or not supported.
6908      # When given -MP, icc 7.0 and 7.1 complain thusly:
6909      #   icc: Command line warning: ignoring option '-M'; no argument required
6910      # The diagnosis changed in icc 8.0:
6911      #   icc: Command line remark: option '-MP' not supported
6912      if (grep 'ignoring option' conftest.err ||
6913          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6914        am_cv_CC_dependencies_compiler_type=$depmode
6915        break
6916      fi
6917    fi
6918  done
6919
6920  cd ..
6921  rm -rf conftest.dir
6922else
6923  am_cv_CC_dependencies_compiler_type=none
6924fi
6925
6926fi
6927echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6928echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6929CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6930
6931
6932
6933if
6934  test "x$enable_dependency_tracking" != xno \
6935  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6936  am__fastdepCC_TRUE=
6937  am__fastdepCC_FALSE='#'
6938else
6939  am__fastdepCC_TRUE='#'
6940  am__fastdepCC_FALSE=
6941fi
6942
6943
6944depcc="$CXX"  am_compiler_list=
6945
6946echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6947echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6948if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6949  echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6952  # We make a subdir and do the tests there.  Otherwise we can end up
6953  # making bogus files that we don't know about and never remove.  For
6954  # instance it was reported that on HP-UX the gcc test will end up
6955  # making a dummy file named `D' -- because `-MD' means `put the output
6956  # in D'.
6957  mkdir conftest.dir
6958  # Copy depcomp to subdir because otherwise we won't find it if we're
6959  # using a relative directory.
6960  cp "$am_depcomp" conftest.dir
6961  cd conftest.dir
6962  # We will build objects and dependencies in a subdirectory because
6963  # it helps to detect inapplicable dependency modes.  For instance
6964  # both Tru64's cc and ICC support -MD to output dependencies as a
6965  # side effect of compilation, but ICC will put the dependencies in
6966  # the current directory while Tru64 will put them in the object
6967  # directory.
6968  mkdir sub
6969
6970  am_cv_CXX_dependencies_compiler_type=none
6971  if test "$am_compiler_list" = ""; then
6972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6973  fi
6974  for depmode in $am_compiler_list; do
6975    # Setup a source with many dependencies, because some compilers
6976    # like to wrap large dependency lists on column 80 (with \), and
6977    # we should not choose a depcomp mode which is confused by this.
6978    #
6979    # We need to recreate these files for each test, as the compiler may
6980    # overwrite some of them when testing with obscure command lines.
6981    # This happens at least with the AIX C compiler.
6982    : > sub/conftest.c
6983    for i in 1 2 3 4 5 6; do
6984      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6985      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6986      # Solaris 8's {/usr,}/bin/sh.
6987      touch sub/conftst$i.h
6988    done
6989    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6990
6991    case $depmode in
6992    nosideeffect)
6993      # after this tag, mechanisms are not by side-effect, so they'll
6994      # only be used when explicitly requested
6995      if test "x$enable_dependency_tracking" = xyes; then
6996	continue
6997      else
6998	break
6999      fi
7000      ;;
7001    none) break ;;
7002    esac
7003    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7004    # mode.  It turns out that the SunPro C++ compiler does not properly
7005    # handle `-M -o', and we need to detect this.
7006    if depmode=$depmode \
7007       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7008       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7009       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7010         >/dev/null 2>conftest.err &&
7011       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7012       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7013       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7014      # icc doesn't choke on unknown options, it will just issue warnings
7015      # or remarks (even with -Werror).  So we grep stderr for any message
7016      # that says an option was ignored or not supported.
7017      # When given -MP, icc 7.0 and 7.1 complain thusly:
7018      #   icc: Command line warning: ignoring option '-M'; no argument required
7019      # The diagnosis changed in icc 8.0:
7020      #   icc: Command line remark: option '-MP' not supported
7021      if (grep 'ignoring option' conftest.err ||
7022          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7023        am_cv_CXX_dependencies_compiler_type=$depmode
7024        break
7025      fi
7026    fi
7027  done
7028
7029  cd ..
7030  rm -rf conftest.dir
7031else
7032  am_cv_CXX_dependencies_compiler_type=none
7033fi
7034
7035fi
7036echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7037echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7038CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7039
7040
7041
7042if
7043  test "x$enable_dependency_tracking" != xno \
7044  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7045  am__fastdepCXX_TRUE=
7046  am__fastdepCXX_FALSE='#'
7047else
7048  am__fastdepCXX_TRUE='#'
7049  am__fastdepCXX_FALSE=
7050fi
7051
7052
7053
7054echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7055echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7056    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7057if test "${enable_maintainer_mode+set}" = set; then
7058  enableval="$enable_maintainer_mode"
7059  USE_MAINTAINER_MODE=$enableval
7060else
7061  USE_MAINTAINER_MODE=no
7062fi;
7063  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7064echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7065
7066
7067if test $USE_MAINTAINER_MODE = yes; then
7068  MAINTAINER_MODE_TRUE=
7069  MAINTAINER_MODE_FALSE='#'
7070else
7071  MAINTAINER_MODE_TRUE='#'
7072  MAINTAINER_MODE_FALSE=
7073fi
7074
7075  MAINT=$MAINTAINER_MODE_TRUE
7076
7077
7078
7079coin_have_externals=no
7080if test "$enable_maintainer_mode" = yes; then
7081
7082  # If maintainer mode is chosen, we make sure that the correct versions
7083  # of the tools are used, and that we know where libtool.m4 is (to
7084  # recreate acinclude.m4)
7085
7086
7087  LIBTOOLM4=
7088  # Normally, $HOME
7089  AUTOTOOLS_DFLT=$HOME
7090
7091  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
7092echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
7093if test "${ac_cv_use_correct_autotools+set}" = set; then
7094  echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096  ac_cv_use_correct_autotools=check
7097fi
7098echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
7099echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
7100
7101  if test $ac_cv_use_correct_autotools = check; then
7102    ac_cv_use_correct_autotools=yes
7103    # Check if we have autoconf
7104    # Extract the first word of "autoconf", so it can be a program name with args.
7105set dummy autoconf; ac_word=$2
7106echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108if test "${ac_cv_prog_have_autoconf+set}" = set; then
7109  echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111  if test -n "$have_autoconf"; then
7112  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119  for ac_exec_ext in '' $ac_executable_extensions; do
7120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121    ac_cv_prog_have_autoconf="yes"
7122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126done
7127
7128  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
7129fi
7130fi
7131have_autoconf=$ac_cv_prog_have_autoconf
7132if test -n "$have_autoconf"; then
7133  echo "$as_me:$LINENO: result: $have_autoconf" >&5
7134echo "${ECHO_T}$have_autoconf" >&6
7135else
7136  echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
7138fi
7139
7140    if test $have_autoconf = no; then
7141      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
7142echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
7143   { (exit 1); exit 1; }; }
7144    fi
7145
7146    # Check whether autoconf is the correct version
7147    correct_version='2.59'
7148    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
7149    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
7150echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
7151    autoconf --version > confauto.out 2>&1
7152    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
7153      echo "$as_me:$LINENO: result: yes" >&5
7154echo "${ECHO_T}yes" >&6
7155    else
7156      rm -f confauto.out
7157      echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6
7159      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
7160echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
7161   { (exit 1); exit 1; }; }
7162    fi
7163    rm -f confauto.out
7164
7165    # Check if the executable autoconf is picked up from the correct location
7166    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
7167echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
7168    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
7169    autoconf_dir=`cd $autoconf_dir; pwd`
7170    if test x$AUTOTOOLS_DIR = x; then
7171      want_dir=$AUTOTOOLS_DFLT/bin
7172    else
7173      want_dir=$AUTOTOOLS_DIR/bin
7174    fi
7175    if test $autoconf_dir = `cd $want_dir; pwd`; then
7176      echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178    else
7179      rm -f confauto.out
7180      echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6
7182      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
7183echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
7184   { (exit 1); exit 1; }; }
7185    fi
7186
7187    # Check if we have automake
7188    # Extract the first word of "automake", so it can be a program name with args.
7189set dummy automake; ac_word=$2
7190echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192if test "${ac_cv_prog_have_automake+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  if test -n "$have_automake"; then
7196  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203  for ac_exec_ext in '' $ac_executable_extensions; do
7204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205    ac_cv_prog_have_automake="yes"
7206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207    break 2
7208  fi
7209done
7210done
7211
7212  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
7213fi
7214fi
7215have_automake=$ac_cv_prog_have_automake
7216if test -n "$have_automake"; then
7217  echo "$as_me:$LINENO: result: $have_automake" >&5
7218echo "${ECHO_T}$have_automake" >&6
7219else
7220  echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222fi
7223
7224    if test $have_automake = no; then
7225      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
7226echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
7227   { (exit 1); exit 1; }; }
7228    fi
7229
7230    # Check whether automake is the correct version
7231    correct_version='1.9.6'
7232    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
7233    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
7234echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
7235    automake --version > confauto.out 2>&1
7236    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
7237      echo "$as_me:$LINENO: result: yes" >&5
7238echo "${ECHO_T}yes" >&6
7239    else
7240      rm -f confauto.out
7241      echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
7243      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
7244echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
7245   { (exit 1); exit 1; }; }
7246    fi
7247    rm -f confauto.out
7248
7249    # Check if the executable automake is picked up from the correct location
7250    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
7251echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
7252    automake_dir=`which automake | sed -e 's=/automake=='`
7253    automake_dir=`cd $automake_dir; pwd`
7254    if test x$AUTOTOOLS_DIR = x; then
7255      want_dir=$AUTOTOOLS_DFLT/bin
7256    else
7257      want_dir=$AUTOTOOLS_DIR/bin
7258    fi
7259    if test $automake_dir = `cd $want_dir; pwd`; then
7260      echo "$as_me:$LINENO: result: yes" >&5
7261echo "${ECHO_T}yes" >&6
7262    else
7263      rm -f confauto.out
7264      echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
7266      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
7267echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
7268   { (exit 1); exit 1; }; }
7269    fi
7270
7271    # Check if this is the correct version of libtool (with escaped dots)
7272    if test x$AUTOTOOLS_DIR = x; then
7273      want_dir=$AUTOTOOLS_DFLT/share
7274    else
7275      want_dir=$AUTOTOOLS_DIR/share
7276    fi
7277    correct_version='1.5.22'
7278    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
7279    if test -r $want_dir/libtool/ltmain.sh; then
7280  have_ltmain=yes
7281  :
7282else
7283  have_ltmain=no
7284  :
7285fi
7286
7287    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
7288echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
7289    if test $have_ltmain = yes; then
7290    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
7291        echo "$as_me:$LINENO: result: yes" >&5
7292echo "${ECHO_T}yes" >&6
7293      else
7294        echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
7297echo "$as_me: error: You don't have the correct version of libtool." >&2;}
7298   { (exit 1); exit 1; }; }
7299      fi
7300    else
7301      echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
7304echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
7305   { (exit 1); exit 1; }; }
7306    fi
7307  fi
7308
7309  # Check if we can find the libtool file
7310  if test x$AUTOTOOLS_DIR = x; then
7311    want_dir=$AUTOTOOLS_DFLT/share
7312  else
7313    want_dir=$AUTOTOOLS_DIR/share
7314  fi
7315  if test -r $want_dir/aclocal/libtool.m4; then
7316  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
7317  :
7318else
7319  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
7320echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
7321   { (exit 1); exit 1; }; }
7322  :
7323fi
7324
7325
7326  # Check if we have an Dependencies file
7327  if test -r $srcdir/Dependencies; then
7328    coin_have_externals=yes
7329  fi
7330  # Check if subversion is installed and understands https
7331  # Extract the first word of "svn", so it can be a program name with args.
7332set dummy svn; ac_word=$2
7333echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335if test "${ac_cv_prog_have_svn+set}" = set; then
7336  echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338  if test -n "$have_svn"; then
7339  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346  for ac_exec_ext in '' $ac_executable_extensions; do
7347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348    ac_cv_prog_have_svn="yes"
7349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353done
7354
7355  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
7356fi
7357fi
7358have_svn=$ac_cv_prog_have_svn
7359if test -n "$have_svn"; then
7360  echo "$as_me:$LINENO: result: $have_svn" >&5
7361echo "${ECHO_T}$have_svn" >&6
7362else
7363  echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6
7365fi
7366
7367  if test x$have_svn = xyes; then
7368    echo "$as_me:$LINENO: checking whether svn understands https" >&5
7369echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
7370if test "${ac_cv_svn_understands_https+set}" = set; then
7371  echo $ECHO_N "(cached) $ECHO_C" >&6
7372else
7373  svn --version > confauto.out 2>&1
7374                    if $EGREP https confauto.out >/dev/null 2>&1; then
7375                      ac_cv_svn_understands_https=yes
7376                    else
7377                      ac_cv_svn_understands_https=no
7378                      have_svn=no
7379                      ac_cv_prog_have_svn=no
7380                    fi
7381                    rm -f confauto.out
7382fi
7383echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
7384echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
7385  fi
7386
7387  # Find the location of the BuildTools directory
7388  BUILDTOOLSDIR=
7389  if test -r $srcdir/BuildTools/coin.m4; then
7390    BUILDTOOLSDIR=$srcdir/BuildTools
7391  else
7392    if test -r $srcdir/../BuildTools/coin.m4; then
7393      BUILDTOOLSDIR=$srcdir/../BuildTools
7394    else
7395      if test -r $srcdir/../../BuildTools/coin.m4; then
7396        BUILDTOOLSDIR=$srcdir/../../BuildTools
7397      else
7398        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
7399echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
7400   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
7401      fi
7402    fi
7403  fi
7404
7405
7406  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
7407  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
7408    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
7409  fi
7410
7411  # The following variable is set to the name of the directory where
7412  # the autotool scripts are located
7413
7414  AUX_DIR=$ac_aux_dir
7415fi
7416
7417# helpful variable for the base directory of this package
7418abs_source_dir=`cd $srcdir; pwd`
7419
7420
7421# Stuff for example Makefiles
7422if test x$prefix = xNONE; then
7423  full_prefix=$ac_default_prefix
7424else
7425  full_prefix=$prefix
7426fi
7427full_prefix=`cd $full_prefix ; pwd`
7428
7429abs_lib_dir=$full_prefix/lib
7430
7431abs_include_dir=$full_prefix/include
7432
7433abs_bin_dir=$full_prefix/bin
7434
7435
7436
7437if test $coin_have_externals = yes && test x$have_svn = xyes; then
7438  HAVE_EXTERNALS_TRUE=
7439  HAVE_EXTERNALS_FALSE='#'
7440else
7441  HAVE_EXTERNALS_TRUE='#'
7442  HAVE_EXTERNALS_FALSE=
7443fi
7444
7445
7446# AC_MSG_NOTICE([End automake initialisation.])
7447
7448
7449
7450LIBTOOL=
7451if test -r ../libtool; then
7452  coin_config_dir=..
7453  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
7454fi
7455if test "x$LIBTOOL" = x; then
7456  if test -r ../../libtool; then
7457    coin_config_dir=../..
7458    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
7459  fi
7460fi
7461
7462if test "x$LIBTOOL" = x; then
7463# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
7464  # Stuff for libtool
7465  # Check whether --enable-shared or --disable-shared was given.
7466if test "${enable_shared+set}" = set; then
7467  enableval="$enable_shared"
7468  p=${PACKAGE-default}
7469    case $enableval in
7470    yes) enable_shared=yes ;;
7471    no) enable_shared=no ;;
7472    *)
7473      enable_shared=no
7474      # Look at the argument we got.  We use all the common list separators.
7475      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7476      for pkg in $enableval; do
7477	IFS="$lt_save_ifs"
7478	if test "X$pkg" = "X$p"; then
7479	  enable_shared=yes
7480	fi
7481      done
7482      IFS="$lt_save_ifs"
7483      ;;
7484    esac
7485else
7486  enable_shared=yes
7487fi;
7488
7489# Check whether --enable-fast-install or --disable-fast-install was given.
7490if test "${enable_fast_install+set}" = set; then
7491  enableval="$enable_fast_install"
7492  p=${PACKAGE-default}
7493    case $enableval in
7494    yes) enable_fast_install=yes ;;
7495    no) enable_fast_install=no ;;
7496    *)
7497      enable_fast_install=no
7498      # Look at the argument we got.  We use all the common list separators.
7499      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7500      for pkg in $enableval; do
7501	IFS="$lt_save_ifs"
7502	if test "X$pkg" = "X$p"; then
7503	  enable_fast_install=yes
7504	fi
7505      done
7506      IFS="$lt_save_ifs"
7507      ;;
7508    esac
7509else
7510  enable_fast_install=yes
7511fi;
7512
7513echo "$as_me:$LINENO: checking host system type" >&5
7514echo $ECHO_N "checking host system type... $ECHO_C" >&6
7515if test "${ac_cv_host+set}" = set; then
7516  echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518  ac_cv_host_alias=$host_alias
7519test -z "$ac_cv_host_alias" &&
7520  ac_cv_host_alias=$ac_cv_build_alias
7521ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7522  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7523echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7524   { (exit 1); exit 1; }; }
7525
7526fi
7527echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7528echo "${ECHO_T}$ac_cv_host" >&6
7529host=$ac_cv_host
7530host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7531host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7532host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7533
7534
7535echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7536echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7537if test "${lt_cv_path_SED+set}" = set; then
7538  echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540  # Loop through the user's path and test for sed and gsed.
7541# Then use that list of sed's as ones to test for truncation.
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547  for lt_ac_prog in sed gsed; do
7548    for ac_exec_ext in '' $ac_executable_extensions; do
7549      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7550        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7551      fi
7552    done
7553  done
7554done
7555lt_ac_max=0
7556lt_ac_count=0
7557# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7558# along with /bin/sed that truncates output.
7559for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7560  test ! -f $lt_ac_sed && continue
7561  cat /dev/null > conftest.in
7562  lt_ac_count=0
7563  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7564  # Check for GNU sed and select it if it is found.
7565  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7566    lt_cv_path_SED=$lt_ac_sed
7567    break
7568  fi
7569  while true; do
7570    cat conftest.in conftest.in >conftest.tmp
7571    mv conftest.tmp conftest.in
7572    cp conftest.in conftest.nl
7573    echo >>conftest.nl
7574    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7575    cmp -s conftest.out conftest.nl || break
7576    # 10000 chars as input seems more than enough
7577    test $lt_ac_count -gt 10 && break
7578    lt_ac_count=`expr $lt_ac_count + 1`
7579    if test $lt_ac_count -gt $lt_ac_max; then
7580      lt_ac_max=$lt_ac_count
7581      lt_cv_path_SED=$lt_ac_sed
7582    fi
7583  done
7584done
7585
7586fi
7587
7588SED=$lt_cv_path_SED
7589echo "$as_me:$LINENO: result: $SED" >&5
7590echo "${ECHO_T}$SED" >&6
7591
7592
7593# Check whether --with-gnu-ld or --without-gnu-ld was given.
7594if test "${with_gnu_ld+set}" = set; then
7595  withval="$with_gnu_ld"
7596  test "$withval" = no || with_gnu_ld=yes
7597else
7598  with_gnu_ld=no
7599fi;
7600ac_prog=ld
7601if test "$GCC" = yes; then
7602  # Check if gcc -print-prog-name=ld gives a path.
7603  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7604echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7605  case $host in
7606  *-*-mingw*)
7607    # gcc leaves a trailing carriage return which upsets mingw
7608    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7609  *)
7610    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7611  esac
7612  case $ac_prog in
7613    # Accept absolute paths.
7614    [\\/]* | ?:[\\/]*)
7615      re_direlt='/[^/][^/]*/\.\./'
7616      # Canonicalize the pathname of ld
7617      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7618      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7619	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7620      done
7621      test -z "$LD" && LD="$ac_prog"
7622      ;;
7623  "")
7624    # If it fails, then pretend we aren't using GCC.
7625    ac_prog=ld
7626    ;;
7627  *)
7628    # If it is relative, then search for the first ld in PATH.
7629    with_gnu_ld=unknown
7630    ;;
7631  esac
7632elif test "$with_gnu_ld" = yes; then
7633  echo "$as_me:$LINENO: checking for GNU ld" >&5
7634echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7635else
7636  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7637echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7638fi
7639if test "${lt_cv_path_LD+set}" = set; then
7640  echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642  if test -z "$LD"; then
7643  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644  for ac_dir in $PATH; do
7645    IFS="$lt_save_ifs"
7646    test -z "$ac_dir" && ac_dir=.
7647    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7648      lt_cv_path_LD="$ac_dir/$ac_prog"
7649      # Check to see if the program is GNU ld.  I'd rather use --version,
7650      # but apparently some variants of GNU ld only accept -v.
7651      # Break only if it was the GNU/non-GNU ld that we prefer.
7652      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7653      *GNU* | *'with BFD'*)
7654	test "$with_gnu_ld" != no && break
7655	;;
7656      *)
7657	test "$with_gnu_ld" != yes && break
7658	;;
7659      esac
7660    fi
7661  done
7662  IFS="$lt_save_ifs"
7663else
7664  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7665fi
7666fi
7667
7668LD="$lt_cv_path_LD"
7669if test -n "$LD"; then
7670  echo "$as_me:$LINENO: result: $LD" >&5
7671echo "${ECHO_T}$LD" >&6
7672else
7673  echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675fi
7676test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7677echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7678   { (exit 1); exit 1; }; }
7679echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7680echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7681if test "${lt_cv_prog_gnu_ld+set}" = set; then
7682  echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7685case `$LD -v 2>&1 </dev/null` in
7686*GNU* | *'with BFD'*)
7687  lt_cv_prog_gnu_ld=yes
7688  ;;
7689*)
7690  lt_cv_prog_gnu_ld=no
7691  ;;
7692esac
7693fi
7694echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7695echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7696with_gnu_ld=$lt_cv_prog_gnu_ld
7697
7698
7699echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7700echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7701if test "${lt_cv_ld_reload_flag+set}" = set; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  lt_cv_ld_reload_flag='-r'
7705fi
7706echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7707echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7708reload_flag=$lt_cv_ld_reload_flag
7709case $reload_flag in
7710"" | " "*) ;;
7711*) reload_flag=" $reload_flag" ;;
7712esac
7713reload_cmds='$LD$reload_flag -o $output$reload_objs'
7714case $host_os in
7715  darwin*)
7716    if test "$GCC" = yes; then
7717      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7718    else
7719      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7720    fi
7721    ;;
7722esac
7723
7724echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7725echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7726if test "${lt_cv_path_NM+set}" = set; then
7727  echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729  if test -n "$NM"; then
7730  # Let the user override the test.
7731  lt_cv_path_NM="$NM"
7732else
7733  lt_nm_to_check="${ac_tool_prefix}nm"
7734  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7735    lt_nm_to_check="$lt_nm_to_check nm"
7736  fi
7737  for lt_tmp_nm in $lt_nm_to_check; do
7738    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7739    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7740      IFS="$lt_save_ifs"
7741      test -z "$ac_dir" && ac_dir=.
7742      tmp_nm="$ac_dir/$lt_tmp_nm"
7743      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7744	# Check to see if the nm accepts a BSD-compat flag.
7745	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7746	#   nm: unknown option "B" ignored
7747	# Tru64's nm complains that /dev/null is an invalid object file
7748	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7749	*/dev/null* | *'Invalid file or object type'*)
7750	  lt_cv_path_NM="$tmp_nm -B"
7751	  break
7752	  ;;
7753	*)
7754	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7755	  */dev/null*)
7756	    lt_cv_path_NM="$tmp_nm -p"
7757	    break
7758	    ;;
7759	  *)
7760	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7761	    continue # so that we can try to find one that supports BSD flags
7762	    ;;
7763	  esac
7764	  ;;
7765	esac
7766      fi
7767    done
7768    IFS="$lt_save_ifs"
7769  done
7770  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7771fi
7772fi
7773echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7774echo "${ECHO_T}$lt_cv_path_NM" >&6
7775NM="$lt_cv_path_NM"
7776
7777echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7778echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7779if test "${lt_cv_deplibs_check_method+set}" = set; then
7780  echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782  lt_cv_file_magic_cmd='$MAGIC_CMD'
7783lt_cv_file_magic_test_file=
7784lt_cv_deplibs_check_method='unknown'
7785# Need to set the preceding variable on all platforms that support
7786# interlibrary dependencies.
7787# 'none' -- dependencies not supported.
7788# `unknown' -- same as none, but documents that we really don't know.
7789# 'pass_all' -- all dependencies passed with no checks.
7790# 'test_compile' -- check by making test program.
7791# 'file_magic [[regex]]' -- check by looking for files in library path
7792# which responds to the $file_magic_cmd with a given extended regex.
7793# If you have `file' or equivalent on your system and you're not sure
7794# whether `pass_all' will *always* work, you probably want this one.
7795
7796case $host_os in
7797aix4* | aix5*)
7798  lt_cv_deplibs_check_method=pass_all
7799  ;;
7800
7801beos*)
7802  lt_cv_deplibs_check_method=pass_all
7803  ;;
7804
7805bsdi[45]*)
7806  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7807  lt_cv_file_magic_cmd='/usr/bin/file -L'
7808  lt_cv_file_magic_test_file=/shlib/libc.so
7809  ;;
7810
7811cygwin*)
7812  # func_win32_libid is a shell function defined in ltmain.sh
7813  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7814  lt_cv_file_magic_cmd='func_win32_libid'
7815  ;;
7816
7817mingw* | pw32*)
7818  # Base MSYS/MinGW do not provide the 'file' command needed by
7819  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7820  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7821  lt_cv_file_magic_cmd='$OBJDUMP -f'
7822  ;;
7823
7824darwin* | rhapsody*)
7825  lt_cv_deplibs_check_method=pass_all
7826  ;;
7827
7828freebsd* | kfreebsd*-gnu | dragonfly*)
7829  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7830    case $host_cpu in
7831    i*86 )
7832      # Not sure whether the presence of OpenBSD here was a mistake.
7833      # Let's accept both of them until this is cleared up.
7834      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7835      lt_cv_file_magic_cmd=/usr/bin/file
7836      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7837      ;;
7838    esac
7839  else
7840    lt_cv_deplibs_check_method=pass_all
7841  fi
7842  ;;
7843
7844gnu*)
7845  lt_cv_deplibs_check_method=pass_all
7846  ;;
7847
7848hpux10.20* | hpux11*)
7849  lt_cv_file_magic_cmd=/usr/bin/file
7850  case $host_cpu in
7851  ia64*)
7852    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7853    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7854    ;;
7855  hppa*64*)
7856    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]'
7857    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7858    ;;
7859  *)
7860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7861    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7862    ;;
7863  esac
7864  ;;
7865
7866interix3*)
7867  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7868  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7869  ;;
7870
7871irix5* | irix6* | nonstopux*)
7872  case $LD in
7873  *-32|*"-32 ") libmagic=32-bit;;
7874  *-n32|*"-n32 ") libmagic=N32;;
7875  *-64|*"-64 ") libmagic=64-bit;;
7876  *) libmagic=never-match;;
7877  esac
7878  lt_cv_deplibs_check_method=pass_all
7879  ;;
7880
7881# This must be Linux ELF.
7882linux*)
7883  lt_cv_deplibs_check_method=pass_all
7884  ;;
7885
7886netbsd*)
7887  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7888    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7889  else
7890    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7891  fi
7892  ;;
7893
7894newos6*)
7895  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7896  lt_cv_file_magic_cmd=/usr/bin/file
7897  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7898  ;;
7899
7900nto-qnx*)
7901  lt_cv_deplibs_check_method=unknown
7902  ;;
7903
7904openbsd*)
7905  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7906    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7907  else
7908    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7909  fi
7910  ;;
7911
7912osf3* | osf4* | osf5*)
7913  lt_cv_deplibs_check_method=pass_all
7914  ;;
7915
7916solaris*)
7917  lt_cv_deplibs_check_method=pass_all
7918  ;;
7919
7920sysv4 | sysv4.3*)
7921  case $host_vendor in
7922  motorola)
7923    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]'
7924    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7925    ;;
7926  ncr)
7927    lt_cv_deplibs_check_method=pass_all
7928    ;;
7929  sequent)
7930    lt_cv_file_magic_cmd='/bin/file'
7931    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7932    ;;
7933  sni)
7934    lt_cv_file_magic_cmd='/bin/file'
7935    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7936    lt_cv_file_magic_test_file=/lib/libc.so
7937    ;;
7938  siemens)
7939    lt_cv_deplibs_check_method=pass_all
7940    ;;
7941  pc)
7942    lt_cv_deplibs_check_method=pass_all
7943    ;;
7944  esac
7945  ;;
7946
7947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7948  lt_cv_deplibs_check_method=pass_all
7949  ;;
7950esac
7951
7952fi
7953echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7954echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7955file_magic_cmd=$lt_cv_file_magic_cmd
7956deplibs_check_method=$lt_cv_deplibs_check_method
7957test -z "$deplibs_check_method" && deplibs_check_method=unknown
7958
7959
7960
7961
7962# If no C compiler was specified, use CC.
7963LTCC=${LTCC-"$CC"}
7964
7965# If no C compiler flags were specified, use CFLAGS.
7966LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7967
7968# Allow CC to be a program name with arguments.
7969compiler=$CC
7970
7971# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7972if test "${enable_libtool_lock+set}" = set; then
7973  enableval="$enable_libtool_lock"
7974
7975fi;
7976test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7977
7978# Some flags need to be propagated to the compiler or linker for good
7979# libtool support.
7980case $host in
7981ia64-*-hpux*)
7982  # Find out which ABI we are using.
7983  echo 'int i;' > conftest.$ac_ext
7984  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985  (eval $ac_compile) 2>&5
7986  ac_status=$?
7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); }; then
7989    case `/usr/bin/file conftest.$ac_objext` in
7990    *ELF-32*)
7991      HPUX_IA64_MODE="32"
7992      ;;
7993    *ELF-64*)
7994      HPUX_IA64_MODE="64"
7995      ;;
7996    esac
7997  fi
7998  rm -rf conftest*
7999  ;;
8000*-*-irix6*)
8001  # Find out which ABI we are using.
8002  echo '#line 8002 "configure"' > conftest.$ac_ext
8003  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004  (eval $ac_compile) 2>&5
8005  ac_status=$?
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); }; then
8008   if test "$lt_cv_prog_gnu_ld" = yes; then
8009    case `/usr/bin/file conftest.$ac_objext` in
8010    *32-bit*)
8011      LD="${LD-ld} -melf32bsmip"
8012      ;;
8013    *N32*)
8014      LD="${LD-ld} -melf32bmipn32"
8015      ;;
8016    *64-bit*)
8017      LD="${LD-ld} -melf64bmip"
8018      ;;
8019    esac
8020   else
8021    case `/usr/bin/file conftest.$ac_objext` in
8022    *32-bit*)
8023      LD="${LD-ld} -32"
8024      ;;
8025    *N32*)
8026      LD="${LD-ld} -n32"
8027      ;;
8028    *64-bit*)
8029      LD="${LD-ld} -64"
8030      ;;
8031    esac
8032   fi
8033  fi
8034  rm -rf conftest*
8035  ;;
8036
8037x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8038  # Find out which ABI we are using.
8039  echo 'int i;' > conftest.$ac_ext
8040  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041  (eval $ac_compile) 2>&5
8042  ac_status=$?
8043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044  (exit $ac_status); }; then
8045    case `/usr/bin/file conftest.o` in
8046    *32-bit*)
8047      case $host in
8048        x86_64-*linux*)
8049          LD="${LD-ld} -m elf_i386"
8050          ;;
8051        ppc64-*linux*|powerpc64-*linux*)
8052          LD="${LD-ld} -m elf32ppclinux"
8053          ;;
8054        s390x-*linux*)
8055          LD="${LD-ld} -m elf_s390"
8056          ;;
8057        sparc64-*linux*)
8058          LD="${LD-ld} -m elf32_sparc"
8059          ;;
8060      esac
8061      ;;
8062    *64-bit*)
8063      case $host in
8064        x86_64-*linux*)
8065          LD="${LD-ld} -m elf_x86_64"
8066          ;;
8067        ppc*-*linux*|powerpc*-*linux*)
8068          LD="${LD-ld} -m elf64ppc"
8069          ;;
8070        s390*-*linux*)
8071          LD="${LD-ld} -m elf64_s390"
8072          ;;
8073        sparc*-*linux*)
8074          LD="${LD-ld} -m elf64_sparc"
8075          ;;
8076      esac
8077      ;;
8078    esac
8079  fi
8080  rm -rf conftest*
8081  ;;
8082
8083*-*-sco3.2v5*)
8084  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8085  SAVE_CFLAGS="$CFLAGS"
8086  CFLAGS="$CFLAGS -belf"
8087  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8088echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8089if test "${lt_cv_cc_needs_belf+set}" = set; then
8090  echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092  ac_ext=c
8093ac_cpp='$CPP $CPPFLAGS'
8094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098     cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h.  */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h.  */
8104
8105int
8106main ()
8107{
8108
8109  ;
8110  return 0;
8111}
8112_ACEOF
8113rm -f conftest.$ac_objext conftest$ac_exeext
8114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115  (eval $ac_link) 2>conftest.er1
8116  ac_status=$?
8117  grep -v '^ *+' conftest.er1 >conftest.err
8118  rm -f conftest.er1
8119  cat conftest.err >&5
8120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121  (exit $ac_status); } &&
8122	 { ac_try='test -z "$ac_c_werror_flag"
8123			 || test ! -s conftest.err'
8124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125  (eval $ac_try) 2>&5
8126  ac_status=$?
8127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128  (exit $ac_status); }; } &&
8129	 { ac_try='test -s conftest$ac_exeext'
8130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131  (eval $ac_try) 2>&5
8132  ac_status=$?
8133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); }; }; then
8135  lt_cv_cc_needs_belf=yes
8136else
8137  echo "$as_me: failed program was:" >&5
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
8140lt_cv_cc_needs_belf=no
8141fi
8142rm -f conftest.err conftest.$ac_objext \
8143      conftest$ac_exeext conftest.$ac_ext
8144     ac_ext=c
8145ac_cpp='$CPP $CPPFLAGS'
8146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150fi
8151echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8152echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8153  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8154    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8155    CFLAGS="$SAVE_CFLAGS"
8156  fi
8157  ;;
8158sparc*-*solaris*)
8159  # Find out which ABI we are using.
8160  echo 'int i;' > conftest.$ac_ext
8161  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162  (eval $ac_compile) 2>&5
8163  ac_status=$?
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); }; then
8166    case `/usr/bin/file conftest.o` in
8167    *64-bit*)
8168      case $lt_cv_prog_gnu_ld in
8169      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8170      *)    LD="${LD-ld} -64" ;;
8171      esac
8172      ;;
8173    esac
8174  fi
8175  rm -rf conftest*
8176  ;;
8177
8178
8179esac
8180
8181need_locks="$enable_libtool_lock"
8182
8183
8184
8185for ac_header in dlfcn.h
8186do
8187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8188if eval "test \"\${$as_ac_Header+set}\" = set"; then
8189  echo "$as_me:$LINENO: checking for $ac_header" >&5
8190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8191if eval "test \"\${$as_ac_Header+set}\" = set"; then
8192  echo $ECHO_N "(cached) $ECHO_C" >&6
8193fi
8194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8196else
8197  # Is the header compilable?
8198echo "$as_me:$LINENO: checking $ac_header usability" >&5
8199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8200cat >conftest.$ac_ext <<_ACEOF
8201/* confdefs.h.  */
8202_ACEOF
8203cat confdefs.h >>conftest.$ac_ext
8204cat >>conftest.$ac_ext <<_ACEOF
8205/* end confdefs.h.  */
8206$ac_includes_default
8207#include <$ac_header>
8208_ACEOF
8209rm -f conftest.$ac_objext
8210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211  (eval $ac_compile) 2>conftest.er1
8212  ac_status=$?
8213  grep -v '^ *+' conftest.er1 >conftest.err
8214  rm -f conftest.er1
8215  cat conftest.err >&5
8216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217  (exit $ac_status); } &&
8218	 { ac_try='test -z "$ac_c_werror_flag"
8219			 || test ! -s conftest.err'
8220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221  (eval $ac_try) 2>&5
8222  ac_status=$?
8223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224  (exit $ac_status); }; } &&
8225	 { ac_try='test -s conftest.$ac_objext'
8226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227  (eval $ac_try) 2>&5
8228  ac_status=$?
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); }; }; then
8231  ac_header_compiler=yes
8232else
8233  echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236ac_header_compiler=no
8237fi
8238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8240echo "${ECHO_T}$ac_header_compiler" >&6
8241
8242# Is the header present?
8243echo "$as_me:$LINENO: checking $ac_header presence" >&5
8244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8245cat >conftest.$ac_ext <<_ACEOF
8246/* confdefs.h.  */
8247_ACEOF
8248cat confdefs.h >>conftest.$ac_ext
8249cat >>conftest.$ac_ext <<_ACEOF
8250/* end confdefs.h.  */
8251#include <$ac_header>
8252_ACEOF
8253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8255  ac_status=$?
8256  grep -v '^ *+' conftest.er1 >conftest.err
8257  rm -f conftest.er1
8258  cat conftest.err >&5
8259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260  (exit $ac_status); } >/dev/null; then
8261  if test -s conftest.err; then
8262    ac_cpp_err=$ac_c_preproc_warn_flag
8263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8264  else
8265    ac_cpp_err=
8266  fi
8267else
8268  ac_cpp_err=yes
8269fi
8270if test -z "$ac_cpp_err"; then
8271  ac_header_preproc=yes
8272else
8273  echo "$as_me: failed program was:" >&5
8274sed 's/^/| /' conftest.$ac_ext >&5
8275
8276  ac_header_preproc=no
8277fi
8278rm -f conftest.err conftest.$ac_ext
8279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8280echo "${ECHO_T}$ac_header_preproc" >&6
8281
8282# So?  What about this header?
8283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8284  yes:no: )
8285    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8289    ac_header_preproc=yes
8290    ;;
8291  no:yes:* )
8292    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8294    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8295echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8296    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8298    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8299echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8300    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8302    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8304    (
8305      cat <<\_ASBOX
8306## ---------------------------------------------------------- ##
8307## Report this to http://projects.coin-or.org/Creme/newticket ##
8308## ---------------------------------------------------------- ##
8309_ASBOX
8310    ) |
8311      sed "s/^/$as_me: WARNING:     /" >&2
8312    ;;
8313esac
8314echo "$as_me:$LINENO: checking for $ac_header" >&5
8315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8316if eval "test \"\${$as_ac_Header+set}\" = set"; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  eval "$as_ac_Header=\$ac_header_preproc"
8320fi
8321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8323
8324fi
8325if test `eval echo '${'$as_ac_Header'}'` = yes; then
8326  cat >>confdefs.h <<_ACEOF
8327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8328_ACEOF
8329
8330fi
8331
8332done
8333
8334
8335
8336if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8337    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8338    (test "X$CXX" != "Xg++"))) ; then
8339  ac_ext=cc
8340ac_cpp='$CXXCPP $CPPFLAGS'
8341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8344echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8345echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8346if test -z "$CXXCPP"; then
8347  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8348  echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350      # Double quotes because CXXCPP needs to be expanded
8351    for CXXCPP in "$CXX -E" "/lib/cpp"
8352    do
8353      ac_preproc_ok=false
8354for ac_cxx_preproc_warn_flag in '' yes
8355do
8356  # Use a header file that comes with gcc, so configuring glibc
8357  # with a fresh cross-compiler works.
8358  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8359  # <limits.h> exists even on freestanding compilers.
8360  # On the NeXT, cc -E runs the code through the compiler's parser,
8361  # not just through cpp. "Syntax error" is here to catch this case.
8362  cat >conftest.$ac_ext <<_ACEOF
8363/* confdefs.h.  */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h.  */
8368#ifdef __STDC__
8369# include <limits.h>
8370#else
8371# include <assert.h>
8372#endif
8373		     Syntax error
8374_ACEOF
8375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8377  ac_status=$?
8378  grep -v '^ *+' conftest.er1 >conftest.err
8379  rm -f conftest.er1
8380  cat conftest.err >&5
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); } >/dev/null; then
8383  if test -s conftest.err; then
8384    ac_cpp_err=$ac_cxx_preproc_warn_flag
8385    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8386  else
8387    ac_cpp_err=
8388  fi
8389else
8390  ac_cpp_err=yes
8391fi
8392if test -z "$ac_cpp_err"; then
8393  :
8394else
8395  echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398  # Broken: fails on valid input.
8399continue
8400fi
8401rm -f conftest.err conftest.$ac_ext
8402
8403  # OK, works on sane cases.  Now check whether non-existent headers
8404  # can be detected and how.
8405  cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h.  */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h.  */
8411#include <ac_nonexistent.h>
8412_ACEOF
8413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8414  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8415  ac_status=$?
8416  grep -v '^ *+' conftest.er1 >conftest.err
8417  rm -f conftest.er1
8418  cat conftest.err >&5
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); } >/dev/null; then
8421  if test -s conftest.err; then
8422    ac_cpp_err=$ac_cxx_preproc_warn_flag
8423    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8424  else
8425    ac_cpp_err=
8426  fi
8427else
8428  ac_cpp_err=yes
8429fi
8430if test -z "$ac_cpp_err"; then
8431  # Broken: success on invalid input.
8432continue
8433else
8434  echo "$as_me: failed program was:" >&5
8435sed 's/^/| /' conftest.$ac_ext >&5
8436
8437  # Passes both tests.
8438ac_preproc_ok=:
8439break
8440fi
8441rm -f conftest.err conftest.$ac_ext
8442
8443done
8444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8445rm -f conftest.err conftest.$ac_ext
8446if $ac_preproc_ok; then
8447  break
8448fi
8449
8450    done
8451    ac_cv_prog_CXXCPP=$CXXCPP
8452
8453fi
8454  CXXCPP=$ac_cv_prog_CXXCPP
8455else
8456  ac_cv_prog_CXXCPP=$CXXCPP
8457fi
8458echo "$as_me:$LINENO: result: $CXXCPP" >&5
8459echo "${ECHO_T}$CXXCPP" >&6
8460ac_preproc_ok=false
8461for ac_cxx_preproc_warn_flag in '' yes
8462do
8463  # Use a header file that comes with gcc, so configuring glibc
8464  # with a fresh cross-compiler works.
8465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8466  # <limits.h> exists even on freestanding compilers.
8467  # On the NeXT, cc -E runs the code through the compiler's parser,
8468  # not just through cpp. "Syntax error" is here to catch this case.
8469  cat >conftest.$ac_ext <<_ACEOF
8470/* confdefs.h.  */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h.  */
8475#ifdef __STDC__
8476# include <limits.h>
8477#else
8478# include <assert.h>
8479#endif
8480		     Syntax error
8481_ACEOF
8482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8484  ac_status=$?
8485  grep -v '^ *+' conftest.er1 >conftest.err
8486  rm -f conftest.er1
8487  cat conftest.err >&5
8488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489  (exit $ac_status); } >/dev/null; then
8490  if test -s conftest.err; then
8491    ac_cpp_err=$ac_cxx_preproc_warn_flag
8492    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8493  else
8494    ac_cpp_err=
8495  fi
8496else
8497  ac_cpp_err=yes
8498fi
8499if test -z "$ac_cpp_err"; then
8500  :
8501else
8502  echo "$as_me: failed program was:" >&5
8503sed 's/^/| /' conftest.$ac_ext >&5
8504
8505  # Broken: fails on valid input.
8506continue
8507fi
8508rm -f conftest.err conftest.$ac_ext
8509
8510  # OK, works on sane cases.  Now check whether non-existent headers
8511  # can be detected and how.
8512  cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h.  */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h.  */
8518#include <ac_nonexistent.h>
8519_ACEOF
8520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522  ac_status=$?
8523  grep -v '^ *+' conftest.er1 >conftest.err
8524  rm -f conftest.er1
8525  cat conftest.err >&5
8526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527  (exit $ac_status); } >/dev/null; then
8528  if test -s conftest.err; then
8529    ac_cpp_err=$ac_cxx_preproc_warn_flag
8530    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8531  else
8532    ac_cpp_err=
8533  fi
8534else
8535  ac_cpp_err=yes
8536fi
8537if test -z "$ac_cpp_err"; then
8538  # Broken: success on invalid input.
8539continue
8540else
8541  echo "$as_me: failed program was:" >&5
8542sed 's/^/| /' conftest.$ac_ext >&5
8543
8544  # Passes both tests.
8545ac_preproc_ok=:
8546break
8547fi
8548rm -f conftest.err conftest.$ac_ext
8549
8550done
8551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8552rm -f conftest.err conftest.$ac_ext
8553if $ac_preproc_ok; then
8554  :
8555else
8556  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8557See \`config.log' for more details." >&5
8558echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8559See \`config.log' for more details." >&2;}
8560   { (exit 1); exit 1; }; }
8561fi
8562
8563ac_ext=cc
8564ac_cpp='$CXXCPP $CPPFLAGS'
8565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8568
8569fi
8570
8571
8572# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8573
8574# find the maximum length of command line arguments
8575echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8576echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8577if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8578  echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580    i=0
8581  teststring="ABCD"
8582
8583  case $build_os in
8584  msdosdjgpp*)
8585    # On DJGPP, this test can blow up pretty badly due to problems in libc
8586    # (any single argument exceeding 2000 bytes causes a buffer overrun
8587    # during glob expansion).  Even if it were fixed, the result of this
8588    # check would be larger than it should be.
8589    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8590    ;;
8591
8592  gnu*)
8593    # Under GNU Hurd, this test is not required because there is
8594    # no limit to the length of command line arguments.
8595    # Libtool will interpret -1 as no limit whatsoever
8596    lt_cv_sys_max_cmd_len=-1;
8597    ;;
8598
8599  cygwin* | mingw*)
8600    # On Win9x/ME, this test blows up -- it succeeds, but takes
8601    # about 5 minutes as the teststring grows exponentially.
8602    # Worse, since 9x/ME are not pre-emptively multitasking,
8603    # you end up with a "frozen" computer, even though with patience
8604    # the test eventually succeeds (with a max line length of 256k).
8605    # Instead, let's just punt: use the minimum linelength reported by
8606    # all of the supported platforms: 8192 (on NT/2K/XP).
8607    lt_cv_sys_max_cmd_len=8192;
8608    ;;
8609
8610  amigaos*)
8611    # On AmigaOS with pdksh, this test takes hours, literally.
8612    # So we just punt and use a minimum line length of 8192.
8613    lt_cv_sys_max_cmd_len=8192;
8614    ;;
8615
8616  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8617    # This has been around since 386BSD, at least.  Likely further.
8618    if test -x /sbin/sysctl; then
8619      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8620    elif test -x /usr/sbin/sysctl; then
8621      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8622    else
8623      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8624    fi
8625    # And add a safety zone
8626    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8627    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8628    ;;
8629
8630  interix*)
8631    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8632    lt_cv_sys_max_cmd_len=196608
8633    ;;
8634
8635  osf*)
8636    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8637    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8638    # nice to cause kernel panics so lets avoid the loop below.
8639    # First set a reasonable default.
8640    lt_cv_sys_max_cmd_len=16384
8641    #
8642    if test -x /sbin/sysconfig; then
8643      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8644        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8645      esac
8646    fi
8647    ;;
8648  sco3.2v5*)
8649    lt_cv_sys_max_cmd_len=102400
8650    ;;
8651  sysv5* | sco5v6* | sysv4.2uw2*)
8652    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8653    if test -n "$kargmax"; then
8654      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8655    else
8656      lt_cv_sys_max_cmd_len=32768
8657    fi
8658    ;;
8659  *)
8660    # If test is not a shell built-in, we'll probably end up computing a
8661    # maximum length that is only half of the actual maximum length, but
8662    # we can't tell.
8663    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8664    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8665	       = "XX$teststring") >/dev/null 2>&1 &&
8666	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8667	    lt_cv_sys_max_cmd_len=$new_result &&
8668	    test $i != 17 # 1/2 MB should be enough
8669    do
8670      i=`expr $i + 1`
8671      teststring=$teststring$teststring
8672    done
8673    teststring=
8674    # Add a significant safety factor because C++ compilers can tack on massive
8675    # amounts of additional arguments before passing them to the linker.
8676    # It appears as though 1/2 is a usable value.
8677    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8678    ;;
8679  esac
8680
8681fi
8682
8683if test -n $lt_cv_sys_max_cmd_len ; then
8684  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8685echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8686else
8687  echo "$as_me:$LINENO: result: none" >&5
8688echo "${ECHO_T}none" >&6
8689fi
8690
8691
8692
8693
8694# Check for command to grab the raw symbol name followed by C symbol from nm.
8695echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8696echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8697if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8698  echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700
8701# These are sane defaults that work on at least a few old systems.
8702# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8703
8704# Character class describing NM global symbol codes.
8705symcode='[BCDEGRST]'
8706
8707# Regexp to match symbols that can be accessed directly from C.
8708sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8709
8710# Transform an extracted symbol line into a proper C declaration
8711lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8712
8713# Transform an extracted symbol line into symbol name and symbol address
8714lt_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'"
8715
8716# Define system-specific variables.
8717case $host_os in
8718aix*)
8719  symcode='[BCDT]'
8720  ;;
8721cygwin* | mingw* | pw32*)
8722  symcode='[ABCDGISTW]'
8723  ;;
8724hpux*) # Its linker distinguishes data from code symbols
8725  if test "$host_cpu" = ia64; then
8726    symcode='[ABCDEGRST]'
8727  fi
8728  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8729  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'"
8730  ;;
8731linux*)
8732  if test "$host_cpu" = ia64; then
8733    symcode='[ABCDGIRSTW]'
8734    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8735    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'"
8736  fi
8737  ;;
8738irix* | nonstopux*)
8739  symcode='[BCDEGRST]'
8740  ;;
8741osf*)
8742  symcode='[BCDEGQRST]'
8743  ;;
8744solaris*)
8745  symcode='[BDRT]'
8746  ;;
8747sco3.2v5*)
8748  symcode='[DT]'
8749  ;;
8750sysv4.2uw2*)
8751  symcode='[DT]'
8752  ;;
8753sysv5* | sco5v6* | unixware* | OpenUNIX*)
8754  symcode='[ABDT]'
8755  ;;
8756sysv4)
8757  symcode='[DFNSTU]'
8758  ;;
8759esac
8760
8761# Handle CRLF in mingw tool chain
8762opt_cr=
8763case $build_os in
8764mingw*)
8765  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8766  ;;
8767esac
8768
8769# If we're using GNU nm, then use its standard symbol codes.
8770case `$NM -V 2>&1` in
8771*GNU* | *'with BFD'*)
8772  symcode='[ABCDGIRSTW]' ;;
8773esac
8774
8775# Try without a prefix undercore, then with it.
8776for ac_symprfx in "" "_"; do
8777
8778  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8779  symxfrm="\\1 $ac_symprfx\\2 \\2"
8780
8781  # Write the raw and C identifiers.
8782  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8783
8784  # Check to see that the pipe works correctly.
8785  pipe_works=no
8786
8787  rm -f conftest*
8788  cat > conftest.$ac_ext <<EOF
8789#ifdef __cplusplus
8790extern "C" {
8791#endif
8792char nm_test_var;
8793void nm_test_func(){}
8794#ifdef __cplusplus
8795}
8796#endif
8797int main(){nm_test_var='a';nm_test_func();return(0);}
8798EOF
8799
8800  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801  (eval $ac_compile) 2>&5
8802  ac_status=$?
8803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804  (exit $ac_status); }; then
8805    # Now try to grab the symbols.
8806    nlist=conftest.nm
8807    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8808  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8809  ac_status=$?
8810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811  (exit $ac_status); } && test -s "$nlist"; then
8812      # Try sorting and uniquifying the output.
8813      if sort "$nlist" | uniq > "$nlist"T; then
8814	mv -f "$nlist"T "$nlist"
8815      else
8816	rm -f "$nlist"T
8817      fi
8818
8819      # Make sure that we snagged all the symbols we need.
8820      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8821	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8822	  cat <<EOF > conftest.$ac_ext
8823#ifdef __cplusplus
8824extern "C" {
8825#endif
8826
8827EOF
8828	  # Now generate the symbol file.
8829	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8830
8831	  cat <<EOF >> conftest.$ac_ext
8832#if defined (__STDC__) && __STDC__
8833# define lt_ptr_t void *
8834#else
8835# define lt_ptr_t char *
8836# define const
8837#endif
8838
8839/* The mapping between symbol names and symbols. */
8840const struct {
8841  const char *name;
8842  lt_ptr_t address;
8843}
8844lt_preloaded_symbols[] =
8845{
8846EOF
8847	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8848	  cat <<\EOF >> conftest.$ac_ext
8849  {0, (lt_ptr_t) 0}
8850};
8851
8852#ifdef __cplusplus
8853}
8854#endif
8855EOF
8856	  # Now try linking the two files.
8857	  mv conftest.$ac_objext conftstm.$ac_objext
8858	  lt_save_LIBS="$LIBS"
8859	  lt_save_CFLAGS="$CFLAGS"
8860	  LIBS="conftstm.$ac_objext"
8861	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8862	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863  (eval $ac_link) 2>&5
8864  ac_status=$?
8865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8867	    pipe_works=yes
8868	  fi
8869	  LIBS="$lt_save_LIBS"
8870	  CFLAGS="$lt_save_CFLAGS"
8871	else
8872	  echo "cannot find nm_test_func in $nlist" >&5
8873	fi
8874      else
8875	echo "cannot find nm_test_var in $nlist" >&5
8876      fi
8877    else
8878      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8879    fi
8880  else
8881    echo "$progname: failed program was:" >&5
8882    cat conftest.$ac_ext >&5
8883  fi
8884  rm -f conftest* conftst*
8885
8886  # Do not use the global_symbol_pipe unless it works.
8887  if test "$pipe_works" = yes; then
8888    break
8889  else
8890    lt_cv_sys_global_symbol_pipe=
8891  fi
8892done
8893
8894fi
8895
8896if test -z "$lt_cv_sys_global_symbol_pipe"; then
8897  lt_cv_sys_global_symbol_to_cdecl=
8898fi
8899if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8900  echo "$as_me:$LINENO: result: failed" >&5
8901echo "${ECHO_T}failed" >&6
8902else
8903  echo "$as_me:$LINENO: result: ok" >&5
8904echo "${ECHO_T}ok" >&6
8905fi
8906
8907echo "$as_me:$LINENO: checking for objdir" >&5
8908echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8909if test "${lt_cv_objdir+set}" = set; then
8910  echo $ECHO_N "(cached) $ECHO_C" >&6
8911else
8912  rm -f .libs 2>/dev/null
8913mkdir .libs 2>/dev/null
8914if test -d .libs; then
8915  lt_cv_objdir=.libs
8916else
8917  # MS-DOS does not allow filenames that begin with a dot.
8918  lt_cv_objdir=_libs
8919fi
8920rmdir .libs 2>/dev/null
8921fi
8922echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8923echo "${ECHO_T}$lt_cv_objdir" >&6
8924objdir=$lt_cv_objdir
8925
8926
8927
8928
8929
8930case $host_os in
8931aix3*)
8932  # AIX sometimes has problems with the GCC collect2 program.  For some
8933  # reason, if we set the COLLECT_NAMES environment variable, the problems
8934  # vanish in a puff of smoke.
8935  if test "X${COLLECT_NAMES+set}" != Xset; then
8936    COLLECT_NAMES=
8937    export COLLECT_NAMES
8938  fi
8939  ;;
8940esac
8941
8942# Sed substitution that helps us do robust quoting.  It backslashifies
8943# metacharacters that are still active within double-quoted strings.
8944Xsed='sed -e 1s/^X//'
8945sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8946
8947# Same as above, but do not quote variable references.
8948double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8949
8950# Sed substitution to delay expansion of an escaped shell variable in a
8951# double_quote_subst'ed string.
8952delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8953
8954# Sed substitution to avoid accidental globbing in evaled expressions
8955no_glob_subst='s/\*/\\\*/g'
8956
8957# Constants:
8958rm="rm -f"
8959
8960# Global variables:
8961default_ofile=libtool
8962can_build_shared=yes
8963
8964# All known linkers require a `.a' archive for static linking (except MSVC,
8965# which needs '.lib').
8966libext=a
8967ltmain="$ac_aux_dir/ltmain.sh"
8968ofile="$default_ofile"
8969with_gnu_ld="$lt_cv_prog_gnu_ld"
8970
8971if test -n "$ac_tool_prefix"; then
8972  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8973set dummy ${ac_tool_prefix}ar; ac_word=$2
8974echo "$as_me:$LINENO: checking for $ac_word" >&5
8975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8976if test "${ac_cv_prog_AR+set}" = set; then
8977  echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979  if test -n "$AR"; then
8980  ac_cv_prog_AR="$AR" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985  IFS=$as_save_IFS
8986  test -z "$as_dir" && as_dir=.
8987  for ac_exec_ext in '' $ac_executable_extensions; do
8988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989    ac_cv_prog_AR="${ac_tool_prefix}ar"
8990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991    break 2
8992  fi
8993done
8994done
8995
8996fi
8997fi
8998AR=$ac_cv_prog_AR
8999if test -n "$AR"; then
9000  echo "$as_me:$LINENO: result: $AR" >&5
9001echo "${ECHO_T}$AR" >&6
9002else
9003  echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
9005fi
9006
9007fi
9008if test -z "$ac_cv_prog_AR"; then
9009  ac_ct_AR=$AR
9010  # Extract the first word of "ar", so it can be a program name with args.
9011set dummy ar; ac_word=$2
9012echo "$as_me:$LINENO: checking for $ac_word" >&5
9013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9015  echo $ECHO_N "(cached) $ECHO_C" >&6
9016else
9017  if test -n "$ac_ct_AR"; then
9018  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9019else
9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023  IFS=$as_save_IFS
9024  test -z "$as_dir" && as_dir=.
9025  for ac_exec_ext in '' $ac_executable_extensions; do
9026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027    ac_cv_prog_ac_ct_AR="ar"
9028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9029    break 2
9030  fi
9031done
9032done
9033
9034  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9035fi
9036fi
9037ac_ct_AR=$ac_cv_prog_ac_ct_AR
9038if test -n "$ac_ct_AR"; then
9039  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9040echo "${ECHO_T}$ac_ct_AR" >&6
9041else
9042  echo "$as_me:$LINENO: result: no" >&5
9043echo "${ECHO_T}no" >&6
9044fi
9045
9046  AR=$ac_ct_AR
9047else
9048  AR="$ac_cv_prog_AR"
9049fi
9050
9051if test -n "$ac_tool_prefix"; then
9052  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9053set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9054echo "$as_me:$LINENO: checking for $ac_word" >&5
9055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9056if test "${ac_cv_prog_RANLIB+set}" = set; then
9057  echo $ECHO_N "(cached) $ECHO_C" >&6
9058else
9059  if test -n "$RANLIB"; then
9060  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9061else
9062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063for as_dir in $PATH
9064do
9065  IFS=$as_save_IFS
9066  test -z "$as_dir" && as_dir=.
9067  for ac_exec_ext in '' $ac_executable_extensions; do
9068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9071    break 2
9072  fi
9073done
9074done
9075
9076fi
9077fi
9078RANLIB=$ac_cv_prog_RANLIB
9079if test -n "$RANLIB"; then
9080  echo "$as_me:$LINENO: result: $RANLIB" >&5
9081echo "${ECHO_T}$RANLIB" >&6
9082else
9083  echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
9085fi
9086
9087fi
9088if test -z "$ac_cv_prog_RANLIB"; then
9089  ac_ct_RANLIB=$RANLIB
9090  # Extract the first word of "ranlib", so it can be a program name with args.
9091set dummy ranlib; ac_word=$2
9092echo "$as_me:$LINENO: checking for $ac_word" >&5
9093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9094if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9095  echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097  if test -n "$ac_ct_RANLIB"; then
9098  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9099else
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103  IFS=$as_save_IFS
9104  test -z "$as_dir" && as_dir=.
9105  for ac_exec_ext in '' $ac_executable_extensions; do
9106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9107    ac_cv_prog_ac_ct_RANLIB="ranlib"
9108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9109    break 2
9110  fi
9111done
9112done
9113
9114  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9115fi
9116fi
9117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9118if test -n "$ac_ct_RANLIB"; then
9119  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9120echo "${ECHO_T}$ac_ct_RANLIB" >&6
9121else
9122  echo "$as_me:$LINENO: result: no" >&5
9123echo "${ECHO_T}no" >&6
9124fi
9125
9126  RANLIB=$ac_ct_RANLIB
9127else
9128  RANLIB="$ac_cv_prog_RANLIB"
9129fi
9130
9131if test -n "$ac_tool_prefix"; then
9132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9133set dummy ${ac_tool_prefix}strip; ac_word=$2
9134echo "$as_me:$LINENO: checking for $ac_word" >&5
9135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9136if test "${ac_cv_prog_STRIP+set}" = set; then
9137  echo $ECHO_N "(cached) $ECHO_C" >&6
9138else
9139  if test -n "$STRIP"; then
9140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9141else
9142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143for as_dir in $PATH
9144do
9145  IFS=$as_save_IFS
9146  test -z "$as_dir" && as_dir=.
9147  for ac_exec_ext in '' $ac_executable_extensions; do
9148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9151    break 2
9152  fi
9153done
9154done
9155
9156fi
9157fi
9158STRIP=$ac_cv_prog_STRIP
9159if test -n "$STRIP"; then
9160  echo "$as_me:$LINENO: result: $STRIP" >&5
9161echo "${ECHO_T}$STRIP" >&6
9162else
9163  echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
9165fi
9166
9167fi
9168if test -z "$ac_cv_prog_STRIP"; then
9169  ac_ct_STRIP=$STRIP
9170  # Extract the first word of "strip", so it can be a program name with args.
9171set dummy strip; ac_word=$2
9172echo "$as_me:$LINENO: checking for $ac_word" >&5
9173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9174if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9175  echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177  if test -n "$ac_ct_STRIP"; then
9178  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9179else
9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181for as_dir in $PATH
9182do
9183  IFS=$as_save_IFS
9184  test -z "$as_dir" && as_dir=.
9185  for ac_exec_ext in '' $ac_executable_extensions; do
9186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187    ac_cv_prog_ac_ct_STRIP="strip"
9188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9189    break 2
9190  fi
9191done
9192done
9193
9194  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9195fi
9196fi
9197ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9198if test -n "$ac_ct_STRIP"; then
9199  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9200echo "${ECHO_T}$ac_ct_STRIP" >&6
9201else
9202  echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204fi
9205
9206  STRIP=$ac_ct_STRIP
9207else
9208  STRIP="$ac_cv_prog_STRIP"
9209fi
9210
9211
9212old_CC="$CC"
9213old_CFLAGS="$CFLAGS"
9214
9215# Set sane defaults for various variables
9216test -z "$AR" && AR=ar
9217test -z "$AR_FLAGS" && AR_FLAGS=cru
9218test -z "$AS" && AS=as
9219test -z "$CC" && CC=cc
9220test -z "$LTCC" && LTCC=$CC
9221test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9222test -z "$DLLTOOL" && DLLTOOL=dlltool
9223test -z "$LD" && LD=ld
9224test -z "$LN_S" && LN_S="ln -s"
9225test -z "$MAGIC_CMD" && MAGIC_CMD=file
9226test -z "$NM" && NM=nm
9227test -z "$SED" && SED=sed
9228test -z "$OBJDUMP" && OBJDUMP=objdump
9229test -z "$RANLIB" && RANLIB=:
9230test -z "$STRIP" && STRIP=:
9231test -z "$ac_objext" && ac_objext=o
9232
9233# Determine commands to create old-style static archives.
9234old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9235old_postinstall_cmds='chmod 644 $oldlib'
9236old_postuninstall_cmds=
9237
9238if test -n "$RANLIB"; then
9239  case $host_os in
9240  openbsd*)
9241    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9242    ;;
9243  *)
9244    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9245    ;;
9246  esac
9247  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9248fi
9249
9250for cc_temp in $compiler""; do
9251  case $cc_temp in
9252    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9253    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9254    \-*) ;;
9255    *) break;;
9256  esac
9257done
9258cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9259
9260
9261# Only perform the check for file, if the check method requires it
9262case $deplibs_check_method in
9263file_magic*)
9264  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9265    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9266echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9267if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9268  echo $ECHO_N "(cached) $ECHO_C" >&6
9269else
9270  case $MAGIC_CMD in
9271[\\/*] |  ?:[\\/]*)
9272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9273  ;;
9274*)
9275  lt_save_MAGIC_CMD="$MAGIC_CMD"
9276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9278  for ac_dir in $ac_dummy; do
9279    IFS="$lt_save_ifs"
9280    test -z "$ac_dir" && ac_dir=.
9281    if test -f $ac_dir/${ac_tool_prefix}file; then
9282      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9283      if test -n "$file_magic_test_file"; then
9284	case $deplibs_check_method in
9285	"file_magic "*)
9286	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9287	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9288	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9289	    $EGREP "$file_magic_regex" > /dev/null; then
9290	    :
9291	  else
9292	    cat <<EOF 1>&2
9293
9294*** Warning: the command libtool uses to detect shared libraries,
9295*** $file_magic_cmd, produces output that libtool cannot recognize.
9296*** The result is that libtool may fail to recognize shared libraries
9297*** as such.  This will affect the creation of libtool libraries that
9298*** depend on shared libraries, but programs linked with such libtool
9299*** libraries will work regardless of this problem.  Nevertheless, you
9300*** may want to report the problem to your system manager and/or to
9301*** bug-libtool@gnu.org
9302
9303EOF
9304	  fi ;;
9305	esac
9306      fi
9307      break
9308    fi
9309  done
9310  IFS="$lt_save_ifs"
9311  MAGIC_CMD="$lt_save_MAGIC_CMD"
9312  ;;
9313esac
9314fi
9315
9316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9317if test -n "$MAGIC_CMD"; then
9318  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9319echo "${ECHO_T}$MAGIC_CMD" >&6
9320else
9321  echo "$as_me:$LINENO: result: no" >&5
9322echo "${ECHO_T}no" >&6
9323fi
9324
9325if test -z "$lt_cv_path_MAGIC_CMD"; then
9326  if test -n "$ac_tool_prefix"; then
9327    echo "$as_me:$LINENO: checking for file" >&5
9328echo $ECHO_N "checking for file... $ECHO_C" >&6
9329if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9330  echo $ECHO_N "(cached) $ECHO_C" >&6
9331else
9332  case $MAGIC_CMD in
9333[\\/*] |  ?:[\\/]*)
9334  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9335  ;;
9336*)
9337  lt_save_MAGIC_CMD="$MAGIC_CMD"
9338  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9339  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9340  for ac_dir in $ac_dummy; do
9341    IFS="$lt_save_ifs"
9342    test -z "$ac_dir" && ac_dir=.
9343    if test -f $ac_dir/file; then
9344      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9345      if test -n "$file_magic_test_file"; then
9346	case $deplibs_check_method in
9347	"file_magic "*)
9348	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9349	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9350	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9351	    $EGREP "$file_magic_regex" > /dev/null; then
9352	    :
9353	  else
9354	    cat <<EOF 1>&2
9355
9356*** Warning: the command libtool uses to detect shared libraries,
9357*** $file_magic_cmd, produces output that libtool cannot recognize.
9358*** The result is that libtool may fail to recognize shared libraries
9359*** as such.  This will affect the creation of libtool libraries that
9360*** depend on shared libraries, but programs linked with such libtool
9361*** libraries will work regardless of this problem.  Nevertheless, you
9362*** may want to report the problem to your system manager and/or to
9363*** bug-libtool@gnu.org
9364
9365EOF
9366	  fi ;;
9367	esac
9368      fi
9369      break
9370    fi
9371  done
9372  IFS="$lt_save_ifs"
9373  MAGIC_CMD="$lt_save_MAGIC_CMD"
9374  ;;
9375esac
9376fi
9377
9378MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9379if test -n "$MAGIC_CMD"; then
9380  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9381echo "${ECHO_T}$MAGIC_CMD" >&6
9382else
9383  echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
9385fi
9386
9387  else
9388    MAGIC_CMD=:
9389  fi
9390fi
9391
9392  fi
9393  ;;
9394esac
9395
9396enable_dlopen=no
9397enable_win32_dll=no
9398
9399# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9400if test "${enable_libtool_lock+set}" = set; then
9401  enableval="$enable_libtool_lock"
9402
9403fi;
9404test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9405
9406
9407# Check whether --with-pic or --without-pic was given.
9408if test "${with_pic+set}" = set; then
9409  withval="$with_pic"
9410  pic_mode="$withval"
9411else
9412  pic_mode=default
9413fi;
9414test -z "$pic_mode" && pic_mode=default
9415
9416# Use C for the default configuration in the libtool script
9417tagname=
9418lt_save_CC="$CC"
9419ac_ext=c
9420ac_cpp='$CPP $CPPFLAGS'
9421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9423ac_compiler_gnu=$ac_cv_c_compiler_gnu
9424
9425
9426# Source file extension for C test sources.
9427ac_ext=c
9428
9429# Object file extension for compiled C test sources.
9430objext=o
9431objext=$objext
9432
9433# Code to be used in simple compile tests
9434lt_simple_compile_test_code="int some_variable = 0;\n"
9435
9436# Code to be used in simple link tests
9437lt_simple_link_test_code='int main(){return(0);}\n'
9438
9439
9440# If no C compiler was specified, use CC.
9441LTCC=${LTCC-"$CC"}
9442
9443# If no C compiler flags were specified, use CFLAGS.
9444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9445
9446# Allow CC to be a program name with arguments.
9447compiler=$CC
9448
9449
9450# save warnings/boilerplate of simple test code
9451ac_outfile=conftest.$ac_objext
9452printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9453eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9454_lt_compiler_boilerplate=`cat conftest.err`
9455$rm conftest*
9456
9457ac_outfile=conftest.$ac_objext
9458printf "$lt_simple_link_test_code" >conftest.$ac_ext
9459eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9460_lt_linker_boilerplate=`cat conftest.err`
9461$rm conftest*
9462
9463
9464## CAVEAT EMPTOR:
9465## There is no encapsulation within the following macros, do not change
9466## the running order or otherwise move them around unless you know exactly
9467## what you are doing...
9468
9469lt_prog_compiler_no_builtin_flag=
9470
9471if test "$GCC" = yes; then
9472  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9473
9474
9475echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9476echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9477if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  lt_cv_prog_compiler_rtti_exceptions=no
9481  ac_outfile=conftest.$ac_objext
9482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9483   lt_compiler_flag="-fno-rtti -fno-exceptions"
9484   # Insert the option either (1) after the last *FLAGS variable, or
9485   # (2) before a word containing "conftest.", or (3) at the end.
9486   # Note that $ac_compile itself does not contain backslashes and begins
9487   # with a dollar sign (not a hyphen), so the echo should work correctly.
9488   # The option is referenced via a variable to avoid confusing sed.
9489   lt_compile=`echo "$ac_compile" | $SED \
9490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9492   -e 's:$: $lt_compiler_flag:'`
9493   (eval echo "\"\$as_me:9493: $lt_compile\"" >&5)
9494   (eval "$lt_compile" 2>conftest.err)
9495   ac_status=$?
9496   cat conftest.err >&5
9497   echo "$as_me:9497: \$? = $ac_status" >&5
9498   if (exit $ac_status) && test -s "$ac_outfile"; then
9499     # The compiler can only warn and ignore the option if not recognized
9500     # So say no if there are warnings other than the usual output.
9501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9502     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9503     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9504       lt_cv_prog_compiler_rtti_exceptions=yes
9505     fi
9506   fi
9507   $rm conftest*
9508
9509fi
9510echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9511echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9512
9513if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9514    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9515else
9516    :
9517fi
9518
9519fi
9520
9521lt_prog_compiler_wl=
9522lt_prog_compiler_pic=
9523lt_prog_compiler_static=
9524
9525echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9526echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9527
9528  if test "$GCC" = yes; then
9529    lt_prog_compiler_wl='-Wl,'
9530    lt_prog_compiler_static='-static'
9531
9532    case $host_os in
9533      aix*)
9534      # All AIX code is PIC.
9535      if test "$host_cpu" = ia64; then
9536	# AIX 5 now supports IA64 processor
9537	lt_prog_compiler_static='-Bstatic'
9538      fi
9539      ;;
9540
9541    amigaos*)
9542      # FIXME: we need at least 68020 code to build shared libraries, but
9543      # adding the `-m68020' flag to GCC prevents building anything better,
9544      # like `-m68040'.
9545      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9546      ;;
9547
9548    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9549      # PIC is the default for these OSes.
9550      ;;
9551
9552    mingw* | pw32* | os2*)
9553      # This hack is so that the source file can tell whether it is being
9554      # built for inclusion in a dll (and should export symbols for example).
9555      lt_prog_compiler_pic='-DDLL_EXPORT'
9556      ;;
9557
9558    darwin* | rhapsody*)
9559      # PIC is the default on this platform
9560      # Common symbols not allowed in MH_DYLIB files
9561      lt_prog_compiler_pic='-fno-common'
9562      ;;
9563
9564    interix3*)
9565      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9566      # Instead, we relocate shared libraries at runtime.
9567      ;;
9568
9569    msdosdjgpp*)
9570      # Just because we use GCC doesn't mean we suddenly get shared libraries
9571      # on systems that don't support them.
9572      lt_prog_compiler_can_build_shared=no
9573      enable_shared=no
9574      ;;
9575
9576    sysv4*MP*)
9577      if test -d /usr/nec; then
9578	lt_prog_compiler_pic=-Kconform_pic
9579      fi
9580      ;;
9581
9582    hpux*)
9583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9584      # not for PA HP-UX.
9585      case $host_cpu in
9586      hppa*64*|ia64*)
9587	# +Z the default
9588	;;
9589      *)
9590	lt_prog_compiler_pic='-fPIC'
9591	;;
9592      esac
9593      ;;
9594
9595    *)
9596      lt_prog_compiler_pic='-fPIC'
9597      ;;
9598    esac
9599  else
9600    # PORTME Check for flag to pass linker flags through the system compiler.
9601    case $host_os in
9602    aix*)
9603      lt_prog_compiler_wl='-Wl,'
9604      if test "$host_cpu" = ia64; then
9605	# AIX 5 now supports IA64 processor
9606	lt_prog_compiler_static='-Bstatic'
9607      else
9608	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9609      fi
9610      ;;
9611      darwin*)
9612        # PIC is the default on this platform
9613        # Common symbols not allowed in MH_DYLIB files
9614       case $cc_basename in
9615         xlc*)
9616         lt_prog_compiler_pic='-qnocommon'
9617         lt_prog_compiler_wl='-Wl,'
9618         ;;
9619       esac
9620       ;;
9621
9622    mingw* | pw32* | os2*)
9623      # This hack is so that the source file can tell whether it is being
9624      # built for inclusion in a dll (and should export symbols for example).
9625      lt_prog_compiler_pic='-DDLL_EXPORT'
9626      ;;
9627
9628    hpux9* | hpux10* | hpux11*)
9629      lt_prog_compiler_wl='-Wl,'
9630      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9631      # not for PA HP-UX.
9632      case $host_cpu in
9633      hppa*64*|ia64*)
9634	# +Z the default
9635	;;
9636      *)
9637	lt_prog_compiler_pic='+Z'
9638	;;
9639      esac
9640      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9641      lt_prog_compiler_static='${wl}-a ${wl}archive'
9642      ;;
9643
9644    irix5* | irix6* | nonstopux*)
9645      lt_prog_compiler_wl='-Wl,'
9646      # PIC (with -KPIC) is the default.
9647      lt_prog_compiler_static='-non_shared'
9648      ;;
9649
9650    newsos6)
9651      lt_prog_compiler_pic='-KPIC'
9652      lt_prog_compiler_static='-Bstatic'
9653      ;;
9654
9655    linux*)
9656      case $cc_basename in
9657      icc* | ecc*)
9658	lt_prog_compiler_wl='-Wl,'
9659	lt_prog_compiler_pic='-KPIC'
9660	lt_prog_compiler_static='-static'
9661        ;;
9662      pgcc* | pgf77* | pgf90* | pgf95*)
9663        # Portland Group compilers (*not* the Pentium gcc compiler,
9664	# which looks to be a dead project)
9665	lt_prog_compiler_wl='-Wl,'
9666	lt_prog_compiler_pic='-fpic'
9667	lt_prog_compiler_static='-Bstatic'
9668        ;;
9669      ccc*)
9670        lt_prog_compiler_wl='-Wl,'
9671        # All Alpha code is PIC.
9672        lt_prog_compiler_static='-non_shared'
9673        ;;
9674      esac
9675      ;;
9676
9677    osf3* | osf4* | osf5*)
9678      lt_prog_compiler_wl='-Wl,'
9679      # All OSF/1 code is PIC.
9680      lt_prog_compiler_static='-non_shared'
9681      ;;
9682
9683    solaris*)
9684      lt_prog_compiler_pic='-KPIC'
9685      lt_prog_compiler_static='-Bstatic'
9686      case $cc_basename in
9687      f77* | f90* | f95*)
9688	lt_prog_compiler_wl='-Qoption ld ';;
9689      *)
9690	lt_prog_compiler_wl='-Wl,';;
9691      esac
9692      ;;
9693
9694    sunos4*)
9695      lt_prog_compiler_wl='-Qoption ld '
9696      lt_prog_compiler_pic='-PIC'
9697      lt_prog_compiler_static='-Bstatic'
9698      ;;
9699
9700    sysv4 | sysv4.2uw2* | sysv4.3*)
9701      lt_prog_compiler_wl='-Wl,'
9702      lt_prog_compiler_pic='-KPIC'
9703      lt_prog_compiler_static='-Bstatic'
9704      ;;
9705
9706    sysv4*MP*)
9707      if test -d /usr/nec ;then
9708	lt_prog_compiler_pic='-Kconform_pic'
9709	lt_prog_compiler_static='-Bstatic'
9710      fi
9711      ;;
9712
9713    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9714      lt_prog_compiler_wl='-Wl,'
9715      lt_prog_compiler_pic='-KPIC'
9716      lt_prog_compiler_static='-Bstatic'
9717      ;;
9718
9719    unicos*)
9720      lt_prog_compiler_wl='-Wl,'
9721      lt_prog_compiler_can_build_shared=no
9722      ;;
9723
9724    uts4*)
9725      lt_prog_compiler_pic='-pic'
9726      lt_prog_compiler_static='-Bstatic'
9727      ;;
9728
9729    *)
9730      lt_prog_compiler_can_build_shared=no
9731      ;;
9732    esac
9733  fi
9734
9735echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9736echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9737
9738#
9739# Check to make sure the PIC flag actually works.
9740#
9741if test -n "$lt_prog_compiler_pic"; then
9742
9743echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9744echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9745if test "${lt_prog_compiler_pic_works+set}" = set; then
9746  echo $ECHO_N "(cached) $ECHO_C" >&6
9747else
9748  lt_prog_compiler_pic_works=no
9749  ac_outfile=conftest.$ac_objext
9750   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9751   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9752   # Insert the option either (1) after the last *FLAGS variable, or
9753   # (2) before a word containing "conftest.", or (3) at the end.
9754   # Note that $ac_compile itself does not contain backslashes and begins
9755   # with a dollar sign (not a hyphen), so the echo should work correctly.
9756   # The option is referenced via a variable to avoid confusing sed.
9757   lt_compile=`echo "$ac_compile" | $SED \
9758   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9759   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9760   -e 's:$: $lt_compiler_flag:'`
9761   (eval echo "\"\$as_me:9761: $lt_compile\"" >&5)
9762   (eval "$lt_compile" 2>conftest.err)
9763   ac_status=$?
9764   cat conftest.err >&5
9765   echo "$as_me:9765: \$? = $ac_status" >&5
9766   if (exit $ac_status) && test -s "$ac_outfile"; then
9767     # The compiler can only warn and ignore the option if not recognized
9768     # So say no if there are warnings other than the usual output.
9769     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9770     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9771     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9772       lt_prog_compiler_pic_works=yes
9773     fi
9774   fi
9775   $rm conftest*
9776
9777fi
9778echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9779echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9780
9781if test x"$lt_prog_compiler_pic_works" = xyes; then
9782    case $lt_prog_compiler_pic in
9783     "" | " "*) ;;
9784     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9785     esac
9786else
9787    lt_prog_compiler_pic=
9788     lt_prog_compiler_can_build_shared=no
9789fi
9790
9791fi
9792case $host_os in
9793  # For platforms which do not support PIC, -DPIC is meaningless:
9794  *djgpp*)
9795    lt_prog_compiler_pic=
9796    ;;
9797  *)
9798    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9799    ;;
9800esac
9801
9802#
9803# Check to make sure the static flag actually works.
9804#
9805wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9806echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9808if test "${lt_prog_compiler_static_works+set}" = set; then
9809  echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811  lt_prog_compiler_static_works=no
9812   save_LDFLAGS="$LDFLAGS"
9813   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9814   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9815   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9816     # The linker can only warn and ignore the option if not recognized
9817     # So say no if there are warnings
9818     if test -s conftest.err; then
9819       # Append any errors to the config.log.
9820       cat conftest.err 1>&5
9821       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9822       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9823       if diff conftest.exp conftest.er2 >/dev/null; then
9824         lt_prog_compiler_static_works=yes
9825       fi
9826     else
9827       lt_prog_compiler_static_works=yes
9828     fi
9829   fi
9830   $rm conftest*
9831   LDFLAGS="$save_LDFLAGS"
9832
9833fi
9834echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9835echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9836
9837if test x"$lt_prog_compiler_static_works" = xyes; then
9838    :
9839else
9840    lt_prog_compiler_static=
9841fi
9842
9843
9844echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9846if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9847  echo $ECHO_N "(cached) $ECHO_C" >&6
9848else
9849  lt_cv_prog_compiler_c_o=no
9850   $rm -r conftest 2>/dev/null
9851   mkdir conftest
9852   cd conftest
9853   mkdir out
9854   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9855
9856   lt_compiler_flag="-o out/conftest2.$ac_objext"
9857   # Insert the option either (1) after the last *FLAGS variable, or
9858   # (2) before a word containing "conftest.", or (3) at the end.
9859   # Note that $ac_compile itself does not contain backslashes and begins
9860   # with a dollar sign (not a hyphen), so the echo should work correctly.
9861   lt_compile=`echo "$ac_compile" | $SED \
9862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9864   -e 's:$: $lt_compiler_flag:'`
9865   (eval echo "\"\$as_me:9865: $lt_compile\"" >&5)
9866   (eval "$lt_compile" 2>out/conftest.err)
9867   ac_status=$?
9868   cat out/conftest.err >&5
9869   echo "$as_me:9869: \$? = $ac_status" >&5
9870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9871   then
9872     # The compiler can only warn and ignore the option if not recognized
9873     # So say no if there are warnings
9874     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9877       lt_cv_prog_compiler_c_o=yes
9878     fi
9879   fi
9880   chmod u+w . 2>&5
9881   $rm conftest*
9882   # SGI C++ compiler will create directory out/ii_files/ for
9883   # template instantiation
9884   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9885   $rm out/* && rmdir out
9886   cd ..
9887   rmdir conftest
9888   $rm conftest*
9889
9890fi
9891echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9892echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9893
9894
9895hard_links="nottested"
9896if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9897  # do not overwrite the value of need_locks provided by the user
9898  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9899echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9900  hard_links=yes
9901  $rm conftest*
9902  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9903  touch conftest.a
9904  ln conftest.a conftest.b 2>&5 || hard_links=no
9905  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9906  echo "$as_me:$LINENO: result: $hard_links" >&5
9907echo "${ECHO_T}$hard_links" >&6
9908  if test "$hard_links" = no; then
9909    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9910echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9911    need_locks=warn
9912  fi
9913else
9914  need_locks=no
9915fi
9916
9917echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9918echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9919
9920  runpath_var=
9921  allow_undefined_flag=
9922  enable_shared_with_static_runtimes=no
9923  archive_cmds=
9924  archive_expsym_cmds=
9925  old_archive_From_new_cmds=
9926  old_archive_from_expsyms_cmds=
9927  export_dynamic_flag_spec=
9928  whole_archive_flag_spec=
9929  thread_safe_flag_spec=
9930  hardcode_libdir_flag_spec=
9931  hardcode_libdir_flag_spec_ld=
9932  hardcode_libdir_separator=
9933  hardcode_direct=no
9934  hardcode_minus_L=no
9935  hardcode_shlibpath_var=unsupported
9936  link_all_deplibs=unknown
9937  hardcode_automatic=no
9938  module_cmds=
9939  module_expsym_cmds=
9940  always_export_symbols=no
9941  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9942  # include_expsyms should be a list of space-separated symbols to be *always*
9943  # included in the symbol list
9944  include_expsyms=
9945  # exclude_expsyms can be an extended regexp of symbols to exclude
9946  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9947  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9948  # as well as any symbol that contains `d'.
9949  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9950  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9951  # platforms (ab)use it in PIC code, but their linkers get confused if
9952  # the symbol is explicitly referenced.  Since portable code cannot
9953  # rely on this symbol name, it's probably fine to never include it in
9954  # preloaded symbol tables.
9955  extract_expsyms_cmds=
9956  # Just being paranoid about ensuring that cc_basename is set.
9957  for cc_temp in $compiler""; do
9958  case $cc_temp in
9959    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9960    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9961    \-*) ;;
9962    *) break;;
9963  esac
9964done
9965cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9966
9967  case $host_os in
9968  cygwin* | mingw* | pw32*)
9969    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9970    # When not using gcc, we currently assume that we are using
9971    # Microsoft Visual C++.
9972    if test "$GCC" != yes; then
9973      with_gnu_ld=no
9974    fi
9975    ;;
9976  interix*)
9977    # we just hope/assume this is gcc and not c89 (= MSVC++)
9978    with_gnu_ld=yes
9979    ;;
9980  openbsd*)
9981    with_gnu_ld=no
9982    ;;
9983  esac
9984
9985  ld_shlibs=yes
9986  if test "$with_gnu_ld" = yes; then
9987    # If archive_cmds runs LD, not CC, wlarc should be empty
9988    wlarc='${wl}'
9989
9990    # Set some defaults for GNU ld with shared library support. These
9991    # are reset later if shared libraries are not supported. Putting them
9992    # here allows them to be overridden if necessary.
9993    runpath_var=LD_RUN_PATH
9994    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9995    export_dynamic_flag_spec='${wl}--export-dynamic'
9996    # ancient GNU ld didn't support --whole-archive et. al.
9997    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9998	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9999      else
10000  	whole_archive_flag_spec=
10001    fi
10002    supports_anon_versioning=no
10003    case `$LD -v 2>/dev/null` in
10004      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10005      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10006      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10007      *\ 2.11.*) ;; # other 2.11 versions
10008      *) supports_anon_versioning=yes ;;
10009    esac
10010
10011    # See if GNU ld supports shared libraries.
10012    case $host_os in
10013    aix3* | aix4* | aix5*)
10014      # On AIX/PPC, the GNU linker is very broken
10015      if test "$host_cpu" != ia64; then
10016	ld_shlibs=no
10017	cat <<EOF 1>&2
10018
10019*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10020*** to be unable to reliably create shared libraries on AIX.
10021*** Therefore, libtool is disabling shared libraries support.  If you
10022*** really care for shared libraries, you may want to modify your PATH
10023*** so that a non-GNU linker is found, and then restart.
10024
10025EOF
10026      fi
10027      ;;
10028
10029    amigaos*)
10030      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)'
10031      hardcode_libdir_flag_spec='-L$libdir'
10032      hardcode_minus_L=yes
10033
10034      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10035      # that the semantics of dynamic libraries on AmigaOS, at least up
10036      # to version 4, is to share data among multiple programs linked
10037      # with the same dynamic library.  Since this doesn't match the
10038      # behavior of shared libraries on other platforms, we can't use
10039      # them.
10040      ld_shlibs=no
10041      ;;
10042
10043    beos*)
10044      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10045	allow_undefined_flag=unsupported
10046	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10047	# support --undefined.  This deserves some investigation.  FIXME
10048	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10049      else
10050	ld_shlibs=no
10051      fi
10052      ;;
10053
10054    cygwin* | mingw* | pw32*)
10055      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10056      # as there is no search path for DLLs.
10057      hardcode_libdir_flag_spec='-L$libdir'
10058      allow_undefined_flag=unsupported
10059      always_export_symbols=no
10060      enable_shared_with_static_runtimes=yes
10061      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10062
10063      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10064        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065	# If the export-symbols file already is a .def file (1st line
10066	# is EXPORTS), use it as is; otherwise, prepend...
10067	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10068	  cp $export_symbols $output_objdir/$soname.def;
10069	else
10070	  echo EXPORTS > $output_objdir/$soname.def;
10071	  cat $export_symbols >> $output_objdir/$soname.def;
10072	fi~
10073	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10074      else
10075	ld_shlibs=no
10076      fi
10077      ;;
10078
10079    interix3*)
10080      hardcode_direct=no
10081      hardcode_shlibpath_var=no
10082      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10083      export_dynamic_flag_spec='${wl}-E'
10084      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10085      # Instead, shared libraries are loaded at an image base (0x10000000 by
10086      # default) and relocated if they conflict, which is a slow very memory
10087      # consuming and fragmenting process.  To avoid this, we pick a random,
10088      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10089      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10090      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10091      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'
10092      ;;
10093
10094    linux*)
10095      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10096	tmp_addflag=
10097	case $cc_basename,$host_cpu in
10098	pgcc*)				# Portland Group C compiler
10099	  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'
10100	  tmp_addflag=' $pic_flag'
10101	  ;;
10102	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10103	  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'
10104	  tmp_addflag=' $pic_flag -Mnomain' ;;
10105	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
10106	  tmp_addflag=' -i_dynamic' ;;
10107	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10108	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10109	ifc* | ifort*)			# Intel Fortran compiler
10110	  tmp_addflag=' -nofor_main' ;;
10111	esac
10112	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113
10114	if test $supports_anon_versioning = yes; then
10115	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10116  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10117  $echo "local: *; };" >> $output_objdir/$libname.ver~
10118	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10119	fi
10120      else
10121	ld_shlibs=no
10122      fi
10123      ;;
10124
10125    netbsd*)
10126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10127	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10128	wlarc=
10129      else
10130	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10131	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10132      fi
10133      ;;
10134
10135    solaris*)
10136      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10137	ld_shlibs=no
10138	cat <<EOF 1>&2
10139
10140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10141*** create shared libraries on Solaris systems.  Therefore, libtool
10142*** is disabling shared libraries support.  We urge you to upgrade GNU
10143*** binutils to release 2.9.1 or newer.  Another option is to modify
10144*** your PATH or compiler configuration so that the native linker is
10145*** used, and then restart.
10146
10147EOF
10148      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10149	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10150	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10151      else
10152	ld_shlibs=no
10153      fi
10154      ;;
10155
10156    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10157      case `$LD -v 2>&1` in
10158        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10159	ld_shlibs=no
10160	cat <<_LT_EOF 1>&2
10161
10162*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10163*** reliably create shared libraries on SCO systems.  Therefore, libtool
10164*** is disabling shared libraries support.  We urge you to upgrade GNU
10165*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10166*** your PATH or compiler configuration so that the native linker is
10167*** used, and then restart.
10168
10169_LT_EOF
10170	;;
10171	*)
10172	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10173	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10174	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10175	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10176	  else
10177	    ld_shlibs=no
10178	  fi
10179	;;
10180      esac
10181      ;;
10182
10183    sunos4*)
10184      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10185      wlarc=
10186      hardcode_direct=yes
10187      hardcode_shlibpath_var=no
10188      ;;
10189
10190    *)
10191      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10192	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10194      else
10195	ld_shlibs=no
10196      fi
10197      ;;
10198    esac
10199
10200    if test "$ld_shlibs" = no; then
10201      runpath_var=
10202      hardcode_libdir_flag_spec=
10203      export_dynamic_flag_spec=
10204      whole_archive_flag_spec=
10205    fi
10206  else
10207    # PORTME fill in a description of your system's linker (not GNU ld)
10208    case $host_os in
10209    aix3*)
10210      allow_undefined_flag=unsupported
10211      always_export_symbols=yes
10212      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'
10213      # Note: this linker hardcodes the directories in LIBPATH if there
10214      # are no directories specified by -L.
10215      hardcode_minus_L=yes
10216      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10217	# Neither direct hardcoding nor static linking is supported with a
10218	# broken collect2.
10219	hardcode_direct=unsupported
10220      fi
10221      ;;
10222
10223    aix4* | aix5*)
10224      if test "$host_cpu" = ia64; then
10225	# On IA64, the linker does run time linking by default, so we don't
10226	# have to do anything special.
10227	aix_use_runtimelinking=no
10228	exp_sym_flag='-Bexport'
10229	no_entry_flag=""
10230      else
10231	# If we're using GNU nm, then we don't want the "-C" option.
10232	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10233	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10234	  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'
10235	else
10236	  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'
10237	fi
10238	aix_use_runtimelinking=no
10239
10240	# Test if we are trying to use run time linking or normal
10241	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10242	# need to do runtime linking.
10243	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10244	  for ld_flag in $LDFLAGS; do
10245  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10246  	    aix_use_runtimelinking=yes
10247  	    break
10248  	  fi
10249	  done
10250	  ;;
10251	esac
10252
10253	exp_sym_flag='-bexport'
10254	no_entry_flag='-bnoentry'
10255      fi
10256
10257      # When large executables or shared objects are built, AIX ld can
10258      # have problems creating the table of contents.  If linking a library
10259      # or program results in "error TOC overflow" add -mminimal-toc to
10260      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10261      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10262
10263      archive_cmds=''
10264      hardcode_direct=yes
10265      hardcode_libdir_separator=':'
10266      link_all_deplibs=yes
10267
10268      if test "$GCC" = yes; then
10269	case $host_os in aix4.[012]|aix4.[012].*)
10270	# We only want to do this on AIX 4.2 and lower, the check
10271	# below for broken collect2 doesn't work under 4.3+
10272	  collect2name=`${CC} -print-prog-name=collect2`
10273	  if test -f "$collect2name" && \
10274  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10275	  then
10276  	  # We have reworked collect2
10277  	  hardcode_direct=yes
10278	  else
10279  	  # We have old collect2
10280  	  hardcode_direct=unsupported
10281  	  # It fails to find uninstalled libraries when the uninstalled
10282  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10283  	  # to unsupported forces relinking
10284  	  hardcode_minus_L=yes
10285  	  hardcode_libdir_flag_spec='-L$libdir'
10286  	  hardcode_libdir_separator=
10287	  fi
10288	  ;;
10289	esac
10290	shared_flag='-shared'
10291	if test "$aix_use_runtimelinking" = yes; then
10292	  shared_flag="$shared_flag "'${wl}-G'
10293	fi
10294      else
10295	# not using gcc
10296	if test "$host_cpu" = ia64; then
10297  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10298  	# chokes on -Wl,-G. The following line is correct:
10299	  shared_flag='-G'
10300	else
10301	  if test "$aix_use_runtimelinking" = yes; then
10302	    shared_flag='${wl}-G'
10303	  else
10304	    shared_flag='${wl}-bM:SRE'
10305	  fi
10306	fi
10307      fi
10308
10309      # It seems that -bexpall does not export symbols beginning with
10310      # underscore (_), so it is better to generate a list of symbols to export.
10311      always_export_symbols=yes
10312      if test "$aix_use_runtimelinking" = yes; then
10313	# Warning - without using the other runtime loading flags (-brtl),
10314	# -berok will link without error, but may produce a broken library.
10315	allow_undefined_flag='-berok'
10316       # Determine the default libpath from the value encoded in an empty executable.
10317       cat >conftest.$ac_ext <<_ACEOF
10318/* confdefs.h.  */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h.  */
10323
10324int
10325main ()
10326{
10327
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
10333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334  (eval $ac_link) 2>conftest.er1
10335  ac_status=$?
10336  grep -v '^ *+' conftest.er1 >conftest.err
10337  rm -f conftest.er1
10338  cat conftest.err >&5
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); } &&
10341	 { ac_try='test -z "$ac_c_werror_flag"
10342			 || test ! -s conftest.err'
10343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344  (eval $ac_try) 2>&5
10345  ac_status=$?
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); }; } &&
10348	 { ac_try='test -s conftest$ac_exeext'
10349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350  (eval $ac_try) 2>&5
10351  ac_status=$?
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); }; }; then
10354
10355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10356}'`
10357# Check for a 64-bit object if we didn't find anything.
10358if 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; }
10359}'`; fi
10360else
10361  echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
10364fi
10365rm -f conftest.err conftest.$ac_objext \
10366      conftest$ac_exeext conftest.$ac_ext
10367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10368
10369       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10370	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"
10371       else
10372	if test "$host_cpu" = ia64; then
10373	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10374	  allow_undefined_flag="-z nodefs"
10375	  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"
10376	else
10377	 # Determine the default libpath from the value encoded in an empty executable.
10378	 cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h.  */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h.  */
10384
10385int
10386main ()
10387{
10388
10389  ;
10390  return 0;
10391}
10392_ACEOF
10393rm -f conftest.$ac_objext conftest$ac_exeext
10394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395  (eval $ac_link) 2>conftest.er1
10396  ac_status=$?
10397  grep -v '^ *+' conftest.er1 >conftest.err
10398  rm -f conftest.er1
10399  cat conftest.err >&5
10400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); } &&
10402	 { ac_try='test -z "$ac_c_werror_flag"
10403			 || test ! -s conftest.err'
10404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405  (eval $ac_try) 2>&5
10406  ac_status=$?
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); }; } &&
10409	 { ac_try='test -s conftest$ac_exeext'
10410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411  (eval $ac_try) 2>&5
10412  ac_status=$?
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); }; }; then
10415
10416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10417}'`
10418# Check for a 64-bit object if we didn't find anything.
10419if 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; }
10420}'`; fi
10421else
10422  echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
10425fi
10426rm -f conftest.err conftest.$ac_objext \
10427      conftest$ac_exeext conftest.$ac_ext
10428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10429
10430	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10431	  # Warning - without using the other run time loading flags,
10432	  # -berok will link without error, but may produce a broken library.
10433	  no_undefined_flag=' ${wl}-bernotok'
10434	  allow_undefined_flag=' ${wl}-berok'
10435	  # Exported symbols can be pulled into shared objects from archives
10436	  whole_archive_flag_spec='$convenience'
10437	  archive_cmds_need_lc=yes
10438	  # This is similar to how AIX traditionally builds its shared libraries.
10439	  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'
10440	fi
10441      fi
10442      ;;
10443
10444    amigaos*)
10445      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)'
10446      hardcode_libdir_flag_spec='-L$libdir'
10447      hardcode_minus_L=yes
10448      # see comment about different semantics on the GNU ld section
10449      ld_shlibs=no
10450      ;;
10451
10452    bsdi[45]*)
10453      export_dynamic_flag_spec=-rdynamic
10454      ;;
10455
10456    cygwin* | mingw* | pw32*)
10457      # When not using gcc, we currently assume that we are using
10458      # Microsoft Visual C++.
10459      # hardcode_libdir_flag_spec is actually meaningless, as there is
10460      # no search path for DLLs.
10461      hardcode_libdir_flag_spec=' '
10462      allow_undefined_flag=unsupported
10463      # Tell ltmain to make .lib files, not .a files.
10464      libext=lib
10465      # Tell ltmain to make .dll files, not .so files.
10466      shrext_cmds=".dll"
10467      # FIXME: Setting linknames here is a bad hack.
10468      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10469      # The linker will automatically build a .lib file if we build a DLL.
10470      old_archive_From_new_cmds='true'
10471      # FIXME: Should let the user specify the lib program.
10472      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10473      fix_srcfile_path='`cygpath -w "$srcfile"`'
10474      enable_shared_with_static_runtimes=yes
10475      ;;
10476
10477    darwin* | rhapsody*)
10478      case $host_os in
10479        rhapsody* | darwin1.[012])
10480         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10481         ;;
10482       *) # Darwin 1.3 on
10483         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10484           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10485         else
10486           case ${MACOSX_DEPLOYMENT_TARGET} in
10487             10.[012])
10488               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10489               ;;
10490             10.*)
10491               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10492               ;;
10493           esac
10494         fi
10495         ;;
10496      esac
10497      archive_cmds_need_lc=no
10498      hardcode_direct=no
10499      hardcode_automatic=yes
10500      hardcode_shlibpath_var=unsupported
10501      whole_archive_flag_spec=''
10502      link_all_deplibs=yes
10503    if test "$GCC" = yes ; then
10504    	output_verbose_link_cmd='echo'
10505        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10506      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10507      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10508      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}'
10509      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}'
10510    else
10511      case $cc_basename in
10512        xlc*)
10513         output_verbose_link_cmd='echo'
10514         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10515         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10516          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10517         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}'
10518          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}'
10519          ;;
10520       *)
10521         ld_shlibs=no
10522          ;;
10523      esac
10524    fi
10525      ;;
10526
10527    dgux*)
10528      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529      hardcode_libdir_flag_spec='-L$libdir'
10530      hardcode_shlibpath_var=no
10531      ;;
10532
10533    freebsd1*)
10534      ld_shlibs=no
10535      ;;
10536
10537    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10538    # support.  Future versions do this automatically, but an explicit c++rt0.o
10539    # does not break anything, and helps significantly (at the cost of a little
10540    # extra space).
10541    freebsd2.2*)
10542      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10543      hardcode_libdir_flag_spec='-R$libdir'
10544      hardcode_direct=yes
10545      hardcode_shlibpath_var=no
10546      ;;
10547
10548    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10549    freebsd2*)
10550      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10551      hardcode_direct=yes
10552      hardcode_minus_L=yes
10553      hardcode_shlibpath_var=no
10554      ;;
10555
10556    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10557    freebsd* | kfreebsd*-gnu | dragonfly*)
10558      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10559      hardcode_libdir_flag_spec='-R$libdir'
10560      hardcode_direct=yes
10561      hardcode_shlibpath_var=no
10562      ;;
10563
10564    hpux9*)
10565      if test "$GCC" = yes; then
10566	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'
10567      else
10568	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'
10569      fi
10570      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10571      hardcode_libdir_separator=:
10572      hardcode_direct=yes
10573
10574      # hardcode_minus_L: Not really in the search PATH,
10575      # but as the default location of the library.
10576      hardcode_minus_L=yes
10577      export_dynamic_flag_spec='${wl}-E'
10578      ;;
10579
10580    hpux10*)
10581      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10582	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10583      else
10584	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10585      fi
10586      if test "$with_gnu_ld" = no; then
10587	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10588	hardcode_libdir_separator=:
10589
10590	hardcode_direct=yes
10591	export_dynamic_flag_spec='${wl}-E'
10592
10593	# hardcode_minus_L: Not really in the search PATH,
10594	# but as the default location of the library.
10595	hardcode_minus_L=yes
10596      fi
10597      ;;
10598
10599    hpux11*)
10600      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10601	case $host_cpu in
10602	hppa*64*)
10603	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10604	  ;;
10605	ia64*)
10606	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10607	  ;;
10608	*)
10609	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10610	  ;;
10611	esac
10612      else
10613	case $host_cpu in
10614	hppa*64*)
10615	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10616	  ;;
10617	ia64*)
10618	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10619	  ;;
10620	*)
10621	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10622	  ;;
10623	esac
10624      fi
10625      if test "$with_gnu_ld" = no; then
10626	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10627	hardcode_libdir_separator=:
10628
10629	case $host_cpu in
10630	hppa*64*|ia64*)
10631	  hardcode_libdir_flag_spec_ld='+b $libdir'
10632	  hardcode_direct=no
10633	  hardcode_shlibpath_var=no
10634	  ;;
10635	*)
10636	  hardcode_direct=yes
10637	  export_dynamic_flag_spec='${wl}-E'
10638
10639	  # hardcode_minus_L: Not really in the search PATH,
10640	  # but as the default location of the library.
10641	  hardcode_minus_L=yes
10642	  ;;
10643	esac
10644      fi
10645      ;;
10646
10647    irix5* | irix6* | nonstopux*)
10648      if test "$GCC" = yes; then
10649	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'
10650      else
10651	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'
10652	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10653      fi
10654      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10655      hardcode_libdir_separator=:
10656      link_all_deplibs=yes
10657      ;;
10658
10659    netbsd*)
10660      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10661	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10662      else
10663	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10664      fi
10665      hardcode_libdir_flag_spec='-R$libdir'
10666      hardcode_direct=yes
10667      hardcode_shlibpath_var=no
10668      ;;
10669
10670    newsos6)
10671      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672      hardcode_direct=yes
10673      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674      hardcode_libdir_separator=:
10675      hardcode_shlibpath_var=no
10676      ;;
10677
10678    openbsd*)
10679      hardcode_direct=yes
10680      hardcode_shlibpath_var=no
10681      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10682	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10683	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10684	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10685	export_dynamic_flag_spec='${wl}-E'
10686      else
10687       case $host_os in
10688	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10689	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10690	   hardcode_libdir_flag_spec='-R$libdir'
10691	   ;;
10692	 *)
10693	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10694	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10695	   ;;
10696       esac
10697      fi
10698      ;;
10699
10700    os2*)
10701      hardcode_libdir_flag_spec='-L$libdir'
10702      hardcode_minus_L=yes
10703      allow_undefined_flag=unsupported
10704      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'
10705      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10706      ;;
10707
10708    osf3*)
10709      if test "$GCC" = yes; then
10710	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10711	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'
10712      else
10713	allow_undefined_flag=' -expect_unresolved \*'
10714	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'
10715      fi
10716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10717      hardcode_libdir_separator=:
10718      ;;
10719
10720    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10721      if test "$GCC" = yes; then
10722	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10723	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'
10724	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10725      else
10726	allow_undefined_flag=' -expect_unresolved \*'
10727	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'
10728	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10729	$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'
10730
10731	# Both c and cxx compiler support -rpath directly
10732	hardcode_libdir_flag_spec='-rpath $libdir'
10733      fi
10734      hardcode_libdir_separator=:
10735      ;;
10736
10737    solaris*)
10738      no_undefined_flag=' -z text'
10739      if test "$GCC" = yes; then
10740	wlarc='${wl}'
10741	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10742	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10743	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10744      else
10745	wlarc=''
10746	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10748  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10749      fi
10750      hardcode_libdir_flag_spec='-R$libdir'
10751      hardcode_shlibpath_var=no
10752      case $host_os in
10753      solaris2.[0-5] | solaris2.[0-5].*) ;;
10754      *)
10755 	# The compiler driver will combine linker options so we
10756 	# cannot just pass the convience library names through
10757 	# without $wl, iff we do not link with $LD.
10758 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10759 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10760 	case $wlarc in
10761 	'')
10762 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10763 	*)
10764 	  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' ;;
10765 	esac ;;
10766      esac
10767      link_all_deplibs=yes
10768      ;;
10769
10770    sunos4*)
10771      if test "x$host_vendor" = xsequent; then
10772	# Use $CC to link under sequent, because it throws in some extra .o
10773	# files that make .init and .fini sections work.
10774	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10775      else
10776	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10777      fi
10778      hardcode_libdir_flag_spec='-L$libdir'
10779      hardcode_direct=yes
10780      hardcode_minus_L=yes
10781      hardcode_shlibpath_var=no
10782      ;;
10783
10784    sysv4)
10785      case $host_vendor in
10786	sni)
10787	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788	  hardcode_direct=yes # is this really true???
10789	;;
10790	siemens)
10791	  ## LD is ld it makes a PLAMLIB
10792	  ## CC just makes a GrossModule.
10793	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10794	  reload_cmds='$CC -r -o $output$reload_objs'
10795	  hardcode_direct=no
10796        ;;
10797	motorola)
10798	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10799	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10800	;;
10801      esac
10802      runpath_var='LD_RUN_PATH'
10803      hardcode_shlibpath_var=no
10804      ;;
10805
10806    sysv4.3*)
10807      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10808      hardcode_shlibpath_var=no
10809      export_dynamic_flag_spec='-Bexport'
10810      ;;
10811
10812    sysv4*MP*)
10813      if test -d /usr/nec; then
10814	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815	hardcode_shlibpath_var=no
10816	runpath_var=LD_RUN_PATH
10817	hardcode_runpath_var=yes
10818	ld_shlibs=yes
10819      fi
10820      ;;
10821
10822    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10823      no_undefined_flag='${wl}-z,text'
10824      archive_cmds_need_lc=no
10825      hardcode_shlibpath_var=no
10826      runpath_var='LD_RUN_PATH'
10827
10828      if test "$GCC" = yes; then
10829	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10830	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10831      else
10832	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10834      fi
10835      ;;
10836
10837    sysv5* | sco3.2v5* | sco5v6*)
10838      # Note: We can NOT use -z defs as we might desire, because we do not
10839      # link with -lc, and that would cause any symbols used from libc to
10840      # always be unresolved, which means just about no library would
10841      # ever link correctly.  If we're not using GNU ld we use -z text
10842      # though, which does catch some bad symbols but isn't as heavy-handed
10843      # as -z defs.
10844      no_undefined_flag='${wl}-z,text'
10845      allow_undefined_flag='${wl}-z,nodefs'
10846      archive_cmds_need_lc=no
10847      hardcode_shlibpath_var=no
10848      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10849      hardcode_libdir_separator=':'
10850      link_all_deplibs=yes
10851      export_dynamic_flag_spec='${wl}-Bexport'
10852      runpath_var='LD_RUN_PATH'
10853
10854      if test "$GCC" = yes; then
10855	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10856	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10857      else
10858	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10859	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10860      fi
10861      ;;
10862
10863    uts4*)
10864      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865      hardcode_libdir_flag_spec='-L$libdir'
10866      hardcode_shlibpath_var=no
10867      ;;
10868
10869    *)
10870      ld_shlibs=no
10871      ;;
10872    esac
10873  fi
10874
10875echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10876echo "${ECHO_T}$ld_shlibs" >&6
10877test "$ld_shlibs" = no && can_build_shared=no
10878
10879#
10880# Do we need to explicitly link libc?
10881#
10882case "x$archive_cmds_need_lc" in
10883x|xyes)
10884  # Assume -lc should be added
10885  archive_cmds_need_lc=yes
10886
10887  if test "$enable_shared" = yes && test "$GCC" = yes; then
10888    case $archive_cmds in
10889    *'~'*)
10890      # FIXME: we may have to deal with multi-command sequences.
10891      ;;
10892    '$CC '*)
10893      # Test whether the compiler implicitly links with -lc since on some
10894      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10895      # to ld, don't add -lc before -lgcc.
10896      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10897echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10898      $rm conftest*
10899      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10900
10901      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902  (eval $ac_compile) 2>&5
10903  ac_status=$?
10904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905  (exit $ac_status); } 2>conftest.err; then
10906        soname=conftest
10907        lib=conftest
10908        libobjs=conftest.$ac_objext
10909        deplibs=
10910        wl=$lt_prog_compiler_wl
10911	pic_flag=$lt_prog_compiler_pic
10912        compiler_flags=-v
10913        linker_flags=-v
10914        verstring=
10915        output_objdir=.
10916        libname=conftest
10917        lt_save_allow_undefined_flag=$allow_undefined_flag
10918        allow_undefined_flag=
10919        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10920  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10921  ac_status=$?
10922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923  (exit $ac_status); }
10924        then
10925	  archive_cmds_need_lc=no
10926        else
10927	  archive_cmds_need_lc=yes
10928        fi
10929        allow_undefined_flag=$lt_save_allow_undefined_flag
10930      else
10931        cat conftest.err 1>&5
10932      fi
10933      $rm conftest*
10934      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10935echo "${ECHO_T}$archive_cmds_need_lc" >&6
10936      ;;
10937    esac
10938  fi
10939  ;;
10940esac
10941
10942echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10943echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10944library_names_spec=
10945libname_spec='lib$name'
10946soname_spec=
10947shrext_cmds=".so"
10948postinstall_cmds=
10949postuninstall_cmds=
10950finish_cmds=
10951finish_eval=
10952shlibpath_var=
10953shlibpath_overrides_runpath=unknown
10954version_type=none
10955dynamic_linker="$host_os ld.so"
10956sys_lib_dlsearch_path_spec="/lib /usr/lib"
10957if test "$GCC" = yes; then
10958  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10959  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10960    # if the path contains ";" then we assume it to be the separator
10961    # otherwise default to the standard path separator (i.e. ":") - it is
10962    # assumed that no part of a normal pathname contains ";" but that should
10963    # okay in the real world where ";" in dirpaths is itself problematic.
10964    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10965  else
10966    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10967  fi
10968else
10969  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10970fi
10971need_lib_prefix=unknown
10972hardcode_into_libs=no
10973
10974# when you set need_version to no, make sure it does not cause -set_version
10975# flags to be left without arguments
10976need_version=unknown
10977
10978case $host_os in
10979aix3*)
10980  version_type=linux
10981  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10982  shlibpath_var=LIBPATH
10983
10984  # AIX 3 has no versioning support, so we append a major version to the name.
10985  soname_spec='${libname}${release}${shared_ext}$major'
10986  ;;
10987
10988aix4* | aix5*)
10989  version_type=linux
10990  need_lib_prefix=no
10991  need_version=no
10992  hardcode_into_libs=yes
10993  if test "$host_cpu" = ia64; then
10994    # AIX 5 supports IA64
10995    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10996    shlibpath_var=LD_LIBRARY_PATH
10997  else
10998    # With GCC up to 2.95.x, collect2 would create an import file
10999    # for dependence libraries.  The import file would start with
11000    # the line `#! .'.  This would cause the generated library to
11001    # depend on `.', always an invalid library.  This was fixed in
11002    # development snapshots of GCC prior to 3.0.
11003    case $host_os in
11004      aix4 | aix4.[01] | aix4.[01].*)
11005      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11006	   echo ' yes '
11007	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11008	:
11009      else
11010	can_build_shared=no
11011      fi
11012      ;;
11013    esac
11014    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11015    # soname into executable. Probably we can add versioning support to
11016    # collect2, so additional links can be useful in future.
11017    if test "$aix_use_runtimelinking" = yes; then
11018      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11019      # instead of lib<name>.a to let people know that these are not
11020      # typical AIX shared libraries.
11021      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022    else
11023      # We preserve .a as extension for shared libraries through AIX4.2
11024      # and later when we are not doing run time linking.
11025      library_names_spec='${libname}${release}.a $libname.a'
11026      soname_spec='${libname}${release}${shared_ext}$major'
11027    fi
11028    shlibpath_var=LIBPATH
11029  fi
11030  ;;
11031
11032amigaos*)
11033  library_names_spec='$libname.ixlibrary $libname.a'
11034  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11035  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'
11036  ;;
11037
11038beos*)
11039  library_names_spec='${libname}${shared_ext}'
11040  dynamic_linker="$host_os ld.so"
11041  shlibpath_var=LIBRARY_PATH
11042  ;;
11043
11044bsdi[45]*)
11045  version_type=linux
11046  need_version=no
11047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048  soname_spec='${libname}${release}${shared_ext}$major'
11049  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11050  shlibpath_var=LD_LIBRARY_PATH
11051  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11052  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11053  # the default ld.so.conf also contains /usr/contrib/lib and
11054  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11055  # libtool to hard-code these into programs
11056  ;;
11057
11058cygwin* | mingw* | pw32*)
11059  version_type=windows
11060  shrext_cmds=".dll"
11061  need_version=no
11062  need_lib_prefix=no
11063
11064  case $GCC,$host_os in
11065  yes,cygwin* | yes,mingw* | yes,pw32*)
11066    library_names_spec='$libname.dll.a'
11067    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11068    postinstall_cmds='base_file=`basename \${file}`~
11069      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11070      dldir=$destdir/`dirname \$dlpath`~
11071      test -d \$dldir || mkdir -p \$dldir~
11072      $install_prog $dir/$dlname \$dldir/$dlname~
11073      chmod a+x \$dldir/$dlname'
11074    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11075      dlpath=$dir/\$dldll~
11076       $rm \$dlpath'
11077    shlibpath_overrides_runpath=yes
11078
11079    case $host_os in
11080    cygwin*)
11081      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11082      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11083      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11084      ;;
11085    mingw*)
11086      # MinGW DLLs use traditional 'lib' prefix
11087      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11088      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11089      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11090        # It is most probably a Windows format PATH printed by
11091        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11092        # path with ; separators, and with drive letters. We can handle the
11093        # drive letters (cygwin fileutils understands them), so leave them,
11094        # especially as we might pass files found there to a mingw objdump,
11095        # which wouldn't understand a cygwinified path. Ahh.
11096        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11097      else
11098        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11099      fi
11100      ;;
11101    pw32*)
11102      # pw32 DLLs use 'pw' prefix rather than 'lib'
11103      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11104      ;;
11105    esac
11106    ;;
11107
11108  *)
11109    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11110    ;;
11111  esac
11112  dynamic_linker='Win32 ld.exe'
11113  # FIXME: first we should search . and the directory the executable is in
11114  shlibpath_var=PATH
11115  ;;
11116
11117darwin* | rhapsody*)
11118  dynamic_linker="$host_os dyld"
11119  version_type=darwin
11120  need_lib_prefix=no
11121  need_version=no
11122  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11123  soname_spec='${libname}${release}${major}$shared_ext'
11124  shlibpath_overrides_runpath=yes
11125  shlibpath_var=DYLD_LIBRARY_PATH
11126  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11127  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11128  if test "$GCC" = yes; then
11129    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"`
11130  else
11131    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11132  fi
11133  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11134  ;;
11135
11136dgux*)
11137  version_type=linux
11138  need_lib_prefix=no
11139  need_version=no
11140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11141  soname_spec='${libname}${release}${shared_ext}$major'
11142  shlibpath_var=LD_LIBRARY_PATH
11143  ;;
11144
11145freebsd1*)
11146  dynamic_linker=no
11147  ;;
11148
11149kfreebsd*-gnu)
11150  version_type=linux
11151  need_lib_prefix=no
11152  need_version=no
11153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11154  soname_spec='${libname}${release}${shared_ext}$major'
11155  shlibpath_var=LD_LIBRARY_PATH
11156  shlibpath_overrides_runpath=no
11157  hardcode_into_libs=yes
11158  dynamic_linker='GNU ld.so'
11159  ;;
11160
11161freebsd* | dragonfly*)
11162  # DragonFly does not have aout.  When/if they implement a new
11163  # versioning mechanism, adjust this.
11164  if test -x /usr/bin/objformat; then
11165    objformat=`/usr/bin/objformat`
11166  else
11167    case $host_os in
11168    freebsd[123]*) objformat=aout ;;
11169    *) objformat=elf ;;
11170    esac
11171  fi
11172  version_type=freebsd-$objformat
11173  case $version_type in
11174    freebsd-elf*)
11175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176      need_version=no
11177      need_lib_prefix=no
11178      ;;
11179    freebsd-*)
11180      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11181      need_version=yes
11182      ;;
11183  esac
11184  shlibpath_var=LD_LIBRARY_PATH
11185  case $host_os in
11186  freebsd2*)
11187    shlibpath_overrides_runpath=yes
11188    ;;
11189  freebsd3.[01]* | freebsdelf3.[01]*)
11190    shlibpath_overrides_runpath=yes
11191    hardcode_into_libs=yes
11192    ;;
11193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11195    shlibpath_overrides_runpath=no
11196    hardcode_into_libs=yes
11197    ;;
11198  freebsd*) # from 4.6 on
11199    shlibpath_overrides_runpath=yes
11200    hardcode_into_libs=yes
11201    ;;
11202  esac
11203  ;;
11204
11205gnu*)
11206  version_type=linux
11207  need_lib_prefix=no
11208  need_version=no
11209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11210  soname_spec='${libname}${release}${shared_ext}$major'
11211  shlibpath_var=LD_LIBRARY_PATH
11212  hardcode_into_libs=yes
11213  ;;
11214
11215hpux9* | hpux10* | hpux11*)
11216  # Give a soname corresponding to the major version so that dld.sl refuses to
11217  # link against other versions.
11218  version_type=sunos
11219  need_lib_prefix=no
11220  need_version=no
11221  case $host_cpu in
11222  ia64*)
11223    shrext_cmds='.so'
11224    hardcode_into_libs=yes
11225    dynamic_linker="$host_os dld.so"
11226    shlibpath_var=LD_LIBRARY_PATH
11227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229    soname_spec='${libname}${release}${shared_ext}$major'
11230    if test "X$HPUX_IA64_MODE" = X32; then
11231      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11232    else
11233      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11234    fi
11235    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11236    ;;
11237   hppa*64*)
11238     shrext_cmds='.sl'
11239     hardcode_into_libs=yes
11240     dynamic_linker="$host_os dld.sl"
11241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244     soname_spec='${libname}${release}${shared_ext}$major'
11245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11247     ;;
11248   *)
11249    shrext_cmds='.sl'
11250    dynamic_linker="$host_os dld.sl"
11251    shlibpath_var=SHLIB_PATH
11252    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254    soname_spec='${libname}${release}${shared_ext}$major'
11255    ;;
11256  esac
11257  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11258  postinstall_cmds='chmod 555 $lib'
11259  ;;
11260
11261interix3*)
11262  version_type=linux
11263  need_lib_prefix=no
11264  need_version=no
11265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11266  soname_spec='${libname}${release}${shared_ext}$major'
11267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11268  shlibpath_var=LD_LIBRARY_PATH
11269  shlibpath_overrides_runpath=no
11270  hardcode_into_libs=yes
11271  ;;
11272
11273irix5* | irix6* | nonstopux*)
11274  case $host_os in
11275    nonstopux*) version_type=nonstopux ;;
11276    *)
11277	if test "$lt_cv_prog_gnu_ld" = yes; then
11278		version_type=linux
11279	else
11280		version_type=irix
11281	fi ;;
11282  esac
11283  need_lib_prefix=no
11284  need_version=no
11285  soname_spec='${libname}${release}${shared_ext}$major'
11286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11287  case $host_os in
11288  irix5* | nonstopux*)
11289    libsuff= shlibsuff=
11290    ;;
11291  *)
11292    case $LD in # libtool.m4 will add one of these switches to LD
11293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11294      libsuff= shlibsuff= libmagic=32-bit;;
11295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11296      libsuff=32 shlibsuff=N32 libmagic=N32;;
11297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11299    *) libsuff= shlibsuff= libmagic=never-match;;
11300    esac
11301    ;;
11302  esac
11303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11304  shlibpath_overrides_runpath=no
11305  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11306  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11307  hardcode_into_libs=yes
11308  ;;
11309
11310# No shared lib support for Linux oldld, aout, or coff.
11311linux*oldld* | linux*aout* | linux*coff*)
11312  dynamic_linker=no
11313  ;;
11314
11315# This must be Linux ELF.
11316linux*)
11317  version_type=linux
11318  need_lib_prefix=no
11319  need_version=no
11320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321  soname_spec='${libname}${release}${shared_ext}$major'
11322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11323  shlibpath_var=LD_LIBRARY_PATH
11324  shlibpath_overrides_runpath=no
11325  # This implies no fast_install, which is unacceptable.
11326  # Some rework will be needed to allow for fast_install
11327  # before this can be enabled.
11328  hardcode_into_libs=yes
11329
11330  # Append ld.so.conf contents to the search path
11331  if test -f /etc/ld.so.conf; then
11332    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' ' '`
11333    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11334  fi
11335
11336  # We used to test for /lib/ld.so.1 and disable shared libraries on
11337  # powerpc, because MkLinux only supported shared libraries with the
11338  # GNU dynamic linker.  Since this was broken with cross compilers,
11339  # most powerpc-linux boxes support dynamic linking these days and
11340  # people can always --disable-shared, the test was removed, and we
11341  # assume the GNU/Linux dynamic linker is in use.
11342  dynamic_linker='GNU/Linux ld.so'
11343  ;;
11344
11345knetbsd*-gnu)
11346  version_type=linux
11347  need_lib_prefix=no
11348  need_version=no
11349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11350  soname_spec='${libname}${release}${shared_ext}$major'
11351  shlibpath_var=LD_LIBRARY_PATH
11352  shlibpath_overrides_runpath=no
11353  hardcode_into_libs=yes
11354  dynamic_linker='GNU ld.so'
11355  ;;
11356
11357netbsd*)
11358  version_type=sunos
11359  need_lib_prefix=no
11360  need_version=no
11361  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11363    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11364    dynamic_linker='NetBSD (a.out) ld.so'
11365  else
11366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11367    soname_spec='${libname}${release}${shared_ext}$major'
11368    dynamic_linker='NetBSD ld.elf_so'
11369  fi
11370  shlibpath_var=LD_LIBRARY_PATH
11371  shlibpath_overrides_runpath=yes
11372  hardcode_into_libs=yes
11373  ;;
11374
11375newsos6)
11376  version_type=linux
11377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378  shlibpath_var=LD_LIBRARY_PATH
11379  shlibpath_overrides_runpath=yes
11380  ;;
11381
11382nto-qnx*)
11383  version_type=linux
11384  need_lib_prefix=no
11385  need_version=no
11386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387  soname_spec='${libname}${release}${shared_ext}$major'
11388  shlibpath_var=LD_LIBRARY_PATH
11389  shlibpath_overrides_runpath=yes
11390  ;;
11391
11392openbsd*)
11393  version_type=sunos
11394  sys_lib_dlsearch_path_spec="/usr/lib"
11395  need_lib_prefix=no
11396  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11397  case $host_os in
11398    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11399    *)                         need_version=no  ;;
11400  esac
11401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11402  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11403  shlibpath_var=LD_LIBRARY_PATH
11404  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11405    case $host_os in
11406      openbsd2.[89] | openbsd2.[89].*)
11407	shlibpath_overrides_runpath=no
11408	;;
11409      *)
11410	shlibpath_overrides_runpath=yes
11411	;;
11412      esac
11413  else
11414    shlibpath_overrides_runpath=yes
11415  fi
11416  ;;
11417
11418os2*)
11419  libname_spec='$name'
11420  shrext_cmds=".dll"
11421  need_lib_prefix=no
11422  library_names_spec='$libname${shared_ext} $libname.a'
11423  dynamic_linker='OS/2 ld.exe'
11424  shlibpath_var=LIBPATH
11425  ;;
11426
11427osf3* | osf4* | osf5*)
11428  version_type=osf
11429  need_lib_prefix=no
11430  need_version=no
11431  soname_spec='${libname}${release}${shared_ext}$major'
11432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433  shlibpath_var=LD_LIBRARY_PATH
11434  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11435  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11436  ;;
11437
11438solaris*)
11439  version_type=linux
11440  need_lib_prefix=no
11441  need_version=no
11442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443  soname_spec='${libname}${release}${shared_ext}$major'
11444  shlibpath_var=LD_LIBRARY_PATH
11445  shlibpath_overrides_runpath=yes
11446  hardcode_into_libs=yes
11447  # ldd complains unless libraries are executable
11448  postinstall_cmds='chmod +x $lib'
11449  ;;
11450
11451sunos4*)
11452  version_type=sunos
11453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11454  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11455  shlibpath_var=LD_LIBRARY_PATH
11456  shlibpath_overrides_runpath=yes
11457  if test "$with_gnu_ld" = yes; then
11458    need_lib_prefix=no
11459  fi
11460  need_version=yes
11461  ;;
11462
11463sysv4 | sysv4.3*)
11464  version_type=linux
11465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466  soname_spec='${libname}${release}${shared_ext}$major'
11467  shlibpath_var=LD_LIBRARY_PATH
11468  case $host_vendor in
11469    sni)
11470      shlibpath_overrides_runpath=no
11471      need_lib_prefix=no
11472      export_dynamic_flag_spec='${wl}-Blargedynsym'
11473      runpath_var=LD_RUN_PATH
11474      ;;
11475    siemens)
11476      need_lib_prefix=no
11477      ;;
11478    motorola)
11479      need_lib_prefix=no
11480      need_version=no
11481      shlibpath_overrides_runpath=no
11482      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11483      ;;
11484  esac
11485  ;;
11486
11487sysv4*MP*)
11488  if test -d /usr/nec ;then
11489    version_type=linux
11490    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11491    soname_spec='$libname${shared_ext}.$major'
11492    shlibpath_var=LD_LIBRARY_PATH
11493  fi
11494  ;;
11495
11496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11497  version_type=freebsd-elf
11498  need_lib_prefix=no
11499  need_version=no
11500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11501  soname_spec='${libname}${release}${shared_ext}$major'
11502  shlibpath_var=LD_LIBRARY_PATH
11503  hardcode_into_libs=yes
11504  if test "$with_gnu_ld" = yes; then
11505    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11506    shlibpath_overrides_runpath=no
11507  else
11508    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11509    shlibpath_overrides_runpath=yes
11510    case $host_os in
11511      sco3.2v5*)
11512        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11513	;;
11514    esac
11515  fi
11516  sys_lib_dlsearch_path_spec='/usr/lib'
11517  ;;
11518
11519uts4*)
11520  version_type=linux
11521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522  soname_spec='${libname}${release}${shared_ext}$major'
11523  shlibpath_var=LD_LIBRARY_PATH
11524  ;;
11525
11526*)
11527  dynamic_linker=no
11528  ;;
11529esac
11530echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11531echo "${ECHO_T}$dynamic_linker" >&6
11532test "$dynamic_linker" = no && can_build_shared=no
11533
11534variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11535if test "$GCC" = yes; then
11536  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11537fi
11538
11539echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11541hardcode_action=
11542if test -n "$hardcode_libdir_flag_spec" || \
11543   test -n "$runpath_var" || \
11544   test "X$hardcode_automatic" = "Xyes" ; then
11545
11546  # We can hardcode non-existant directories.
11547  if test "$hardcode_direct" != no &&
11548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11549     # have to relink, otherwise we might link with an installed library
11550     # when we should be linking with a yet-to-be-installed one
11551     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11552     test "$hardcode_minus_L" != no; then
11553    # Linking always hardcodes the temporary library directory.
11554    hardcode_action=relink
11555  else
11556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11557    hardcode_action=immediate
11558  fi
11559else
11560  # We cannot hardcode anything, or else we can only hardcode existing
11561  # directories.
11562  hardcode_action=unsupported
11563fi
11564echo "$as_me:$LINENO: result: $hardcode_action" >&5
11565echo "${ECHO_T}$hardcode_action" >&6
11566
11567if test "$hardcode_action" = relink; then
11568  # Fast installation is not supported
11569  enable_fast_install=no
11570elif test "$shlibpath_overrides_runpath" = yes ||
11571     test "$enable_shared" = no; then
11572  # Fast installation is not necessary
11573  enable_fast_install=needless
11574fi
11575
11576striplib=
11577old_striplib=
11578echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11579echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11580if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11581  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11582  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11583  echo "$as_me:$LINENO: result: yes" >&5
11584echo "${ECHO_T}yes" >&6
11585else
11586# FIXME - insert some real tests, host_os isn't really good enough
11587  case $host_os in
11588   darwin*)
11589       if test -n "$STRIP" ; then
11590         striplib="$STRIP -x"
11591         echo "$as_me:$LINENO: result: yes" >&5
11592echo "${ECHO_T}yes" >&6
11593       else
11594  echo "$as_me:$LINENO: result: no" >&5
11595echo "${ECHO_T}no" >&6
11596fi
11597       ;;
11598   *)
11599  echo "$as_me:$LINENO: result: no" >&5
11600echo "${ECHO_T}no" >&6
11601    ;;
11602  esac
11603fi
11604
11605if test "x$enable_dlopen" != xyes; then
11606  enable_dlopen=unknown
11607  enable_dlopen_self=unknown
11608  enable_dlopen_self_static=unknown
11609else
11610  lt_cv_dlopen=no
11611  lt_cv_dlopen_libs=
11612
11613  case $host_os in
11614  beos*)
11615    lt_cv_dlopen="load_add_on"
11616    lt_cv_dlopen_libs=
11617    lt_cv_dlopen_self=yes
11618    ;;
11619
11620  mingw* | pw32*)
11621    lt_cv_dlopen="LoadLibrary"
11622    lt_cv_dlopen_libs=
11623   ;;
11624
11625  cygwin*)
11626    lt_cv_dlopen="dlopen"
11627    lt_cv_dlopen_libs=
11628   ;;
11629
11630  darwin*)
11631  # if libdl is installed we need to link against it
11632    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11633echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11635  echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637  ac_check_lib_save_LIBS=$LIBS
11638LIBS="-ldl  $LIBS"
11639cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h.  */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h.  */
11645
11646/* Override any gcc2 internal prototype to avoid an error.  */
11647#ifdef __cplusplus
11648extern "C"
11649#endif
11650/* We use char because int might match the return type of a gcc2
11651   builtin and then its argument prototype would still apply.  */
11652char dlopen ();
11653int
11654main ()
11655{
11656dlopen ();
11657  ;
11658  return 0;
11659}
11660_ACEOF
11661rm -f conftest.$ac_objext conftest$ac_exeext
11662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663  (eval $ac_link) 2>conftest.er1
11664  ac_status=$?
11665  grep -v '^ *+' conftest.er1 >conftest.err
11666  rm -f conftest.er1
11667  cat conftest.err >&5
11668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669  (exit $ac_status); } &&
11670	 { ac_try='test -z "$ac_c_werror_flag"
11671			 || test ! -s conftest.err'
11672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673  (eval $ac_try) 2>&5
11674  ac_status=$?
11675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676  (exit $ac_status); }; } &&
11677	 { ac_try='test -s conftest$ac_exeext'
11678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679  (eval $ac_try) 2>&5
11680  ac_status=$?
11681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682  (exit $ac_status); }; }; then
11683  ac_cv_lib_dl_dlopen=yes
11684else
11685  echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688ac_cv_lib_dl_dlopen=no
11689fi
11690rm -f conftest.err conftest.$ac_objext \
11691      conftest$ac_exeext conftest.$ac_ext
11692LIBS=$ac_check_lib_save_LIBS
11693fi
11694echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11695echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11696if test $ac_cv_lib_dl_dlopen = yes; then
11697  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11698else
11699
11700    lt_cv_dlopen="dyld"
11701    lt_cv_dlopen_libs=
11702    lt_cv_dlopen_self=yes
11703
11704fi
11705
11706   ;;
11707
11708  *)
11709    echo "$as_me:$LINENO: checking for shl_load" >&5
11710echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11711if test "${ac_cv_func_shl_load+set}" = set; then
11712  echo $ECHO_N "(cached) $ECHO_C" >&6
11713else
11714  cat >conftest.$ac_ext <<_ACEOF
11715/* confdefs.h.  */
11716_ACEOF
11717cat confdefs.h >>conftest.$ac_ext
11718cat >>conftest.$ac_ext <<_ACEOF
11719/* end confdefs.h.  */
11720/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11722#define shl_load innocuous_shl_load
11723
11724/* System header to define __stub macros and hopefully few prototypes,
11725    which can conflict with char shl_load (); below.
11726    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11727    <limits.h> exists even on freestanding compilers.  */
11728
11729#ifdef __STDC__
11730# include <limits.h>
11731#else
11732# include <assert.h>
11733#endif
11734
11735#undef shl_load
11736
11737/* Override any gcc2 internal prototype to avoid an error.  */
11738#ifdef __cplusplus
11739extern "C"
11740{
11741#endif
11742/* We use char because int might match the return type of a gcc2
11743   builtin and then its argument prototype would still apply.  */
11744char shl_load ();
11745/* The GNU C library defines this for functions which it implements
11746    to always fail with ENOSYS.  Some functions are actually named
11747    something starting with __ and the normal name is an alias.  */
11748#if defined (__stub_shl_load) || defined (__stub___shl_load)
11749choke me
11750#else
11751char (*f) () = shl_load;
11752#endif
11753#ifdef __cplusplus
11754}
11755#endif
11756
11757int
11758main ()
11759{
11760return f != shl_load;
11761  ;
11762  return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext conftest$ac_exeext
11766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767  (eval $ac_link) 2>conftest.er1
11768  ac_status=$?
11769  grep -v '^ *+' conftest.er1 >conftest.err
11770  rm -f conftest.er1
11771  cat conftest.err >&5
11772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773  (exit $ac_status); } &&
11774	 { ac_try='test -z "$ac_c_werror_flag"
11775			 || test ! -s conftest.err'
11776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777  (eval $ac_try) 2>&5
11778  ac_status=$?
11779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780  (exit $ac_status); }; } &&
11781	 { ac_try='test -s conftest$ac_exeext'
11782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783  (eval $ac_try) 2>&5
11784  ac_status=$?
11785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786  (exit $ac_status); }; }; then
11787  ac_cv_func_shl_load=yes
11788else
11789  echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_cv_func_shl_load=no
11793fi
11794rm -f conftest.err conftest.$ac_objext \
11795      conftest$ac_exeext conftest.$ac_ext
11796fi
11797echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11798echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11799if test $ac_cv_func_shl_load = yes; then
11800  lt_cv_dlopen="shl_load"
11801else
11802  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11803echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11804if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11805  echo $ECHO_N "(cached) $ECHO_C" >&6
11806else
11807  ac_check_lib_save_LIBS=$LIBS
11808LIBS="-ldld  $LIBS"
11809cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h.  */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h.  */
11815
11816/* Override any gcc2 internal prototype to avoid an error.  */
11817#ifdef __cplusplus
11818extern "C"
11819#endif
11820/* We use char because int might match the return type of a gcc2
11821   builtin and then its argument prototype would still apply.  */
11822char shl_load ();
11823int
11824main ()
11825{
11826shl_load ();
11827  ;
11828  return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext conftest$ac_exeext
11832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833  (eval $ac_link) 2>conftest.er1
11834  ac_status=$?
11835  grep -v '^ *+' conftest.er1 >conftest.err
11836  rm -f conftest.er1
11837  cat conftest.err >&5
11838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839  (exit $ac_status); } &&
11840	 { ac_try='test -z "$ac_c_werror_flag"
11841			 || test ! -s conftest.err'
11842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843  (eval $ac_try) 2>&5
11844  ac_status=$?
11845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); }; } &&
11847	 { ac_try='test -s conftest$ac_exeext'
11848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849  (eval $ac_try) 2>&5
11850  ac_status=$?
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); }; }; then
11853  ac_cv_lib_dld_shl_load=yes
11854else
11855  echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
11858ac_cv_lib_dld_shl_load=no
11859fi
11860rm -f conftest.err conftest.$ac_objext \
11861      conftest$ac_exeext conftest.$ac_ext
11862LIBS=$ac_check_lib_save_LIBS
11863fi
11864echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11865echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11866if test $ac_cv_lib_dld_shl_load = yes; then
11867  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11868else
11869  echo "$as_me:$LINENO: checking for dlopen" >&5
11870echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11871if test "${ac_cv_func_dlopen+set}" = set; then
11872  echo $ECHO_N "(cached) $ECHO_C" >&6
11873else
11874  cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h.  */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h.  */
11880/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11882#define dlopen innocuous_dlopen
11883
11884/* System header to define __stub macros and hopefully few prototypes,
11885    which can conflict with char dlopen (); below.
11886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887    <limits.h> exists even on freestanding compilers.  */
11888
11889#ifdef __STDC__
11890# include <limits.h>
11891#else
11892# include <assert.h>
11893#endif
11894
11895#undef dlopen
11896
11897/* Override any gcc2 internal prototype to avoid an error.  */
11898#ifdef __cplusplus
11899extern "C"
11900{
11901#endif
11902/* We use char because int might match the return type of a gcc2
11903   builtin and then its argument prototype would still apply.  */
11904char dlopen ();
11905/* The GNU C library defines this for functions which it implements
11906    to always fail with ENOSYS.  Some functions are actually named
11907    something starting with __ and the normal name is an alias.  */
11908#if defined (__stub_dlopen) || defined (__stub___dlopen)
11909choke me
11910#else
11911char (*f) () = dlopen;
11912#endif
11913#ifdef __cplusplus
11914}
11915#endif
11916
11917int
11918main ()
11919{
11920return f != dlopen;
11921  ;
11922  return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext conftest$ac_exeext
11926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11927  (eval $ac_link) 2>conftest.er1
11928  ac_status=$?
11929  grep -v '^ *+' conftest.er1 >conftest.err
11930  rm -f conftest.er1
11931  cat conftest.err >&5
11932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933  (exit $ac_status); } &&
11934	 { ac_try='test -z "$ac_c_werror_flag"
11935			 || test ! -s conftest.err'
11936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937  (eval $ac_try) 2>&5
11938  ac_status=$?
11939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940  (exit $ac_status); }; } &&
11941	 { ac_try='test -s conftest$ac_exeext'
11942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943  (eval $ac_try) 2>&5
11944  ac_status=$?
11945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946  (exit $ac_status); }; }; then
11947  ac_cv_func_dlopen=yes
11948else
11949  echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952ac_cv_func_dlopen=no
11953fi
11954rm -f conftest.err conftest.$ac_objext \
11955      conftest$ac_exeext conftest.$ac_ext
11956fi
11957echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11958echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11959if test $ac_cv_func_dlopen = yes; then
11960  lt_cv_dlopen="dlopen"
11961else
11962  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11965  echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967  ac_check_lib_save_LIBS=$LIBS
11968LIBS="-ldl  $LIBS"
11969cat >conftest.$ac_ext <<_ACEOF
11970/* confdefs.h.  */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h.  */
11975
11976/* Override any gcc2 internal prototype to avoid an error.  */
11977#ifdef __cplusplus
11978extern "C"
11979#endif
11980/* We use char because int might match the return type of a gcc2
11981   builtin and then its argument prototype would still apply.  */
11982char dlopen ();
11983int
11984main ()
11985{
11986dlopen ();
11987  ;
11988  return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
11992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993  (eval $ac_link) 2>conftest.er1
11994  ac_status=$?
11995  grep -v '^ *+' conftest.er1 >conftest.err
11996  rm -f conftest.er1
11997  cat conftest.err >&5
11998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999  (exit $ac_status); } &&
12000	 { ac_try='test -z "$ac_c_werror_flag"
12001			 || test ! -s conftest.err'
12002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003  (eval $ac_try) 2>&5
12004  ac_status=$?
12005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006  (exit $ac_status); }; } &&
12007	 { ac_try='test -s conftest$ac_exeext'
12008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009  (eval $ac_try) 2>&5
12010  ac_status=$?
12011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012  (exit $ac_status); }; }; then
12013  ac_cv_lib_dl_dlopen=yes
12014else
12015  echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018ac_cv_lib_dl_dlopen=no
12019fi
12020rm -f conftest.err conftest.$ac_objext \
12021      conftest$ac_exeext conftest.$ac_ext
12022LIBS=$ac_check_lib_save_LIBS
12023fi
12024echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12025echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12026if test $ac_cv_lib_dl_dlopen = yes; then
12027  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12028else
12029  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12030echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12031if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12032  echo $ECHO_N "(cached) $ECHO_C" >&6
12033else
12034  ac_check_lib_save_LIBS=$LIBS
12035LIBS="-lsvld  $LIBS"
12036cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h.  */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h.  */
12042
12043/* Override any gcc2 internal prototype to avoid an error.  */
12044#ifdef __cplusplus
12045extern "C"
12046#endif
12047/* We use char because int might match the return type of a gcc2
12048   builtin and then its argument prototype would still apply.  */
12049char dlopen ();
12050int
12051main ()
12052{
12053dlopen ();
12054  ;
12055  return 0;
12056}
12057_ACEOF
12058rm -f conftest.$ac_objext conftest$ac_exeext
12059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060  (eval $ac_link) 2>conftest.er1
12061  ac_status=$?
12062  grep -v '^ *+' conftest.er1 >conftest.err
12063  rm -f conftest.er1
12064  cat conftest.err >&5
12065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066  (exit $ac_status); } &&
12067	 { ac_try='test -z "$ac_c_werror_flag"
12068			 || test ! -s conftest.err'
12069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070  (eval $ac_try) 2>&5
12071  ac_status=$?
12072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073  (exit $ac_status); }; } &&
12074	 { ac_try='test -s conftest$ac_exeext'
12075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076  (eval $ac_try) 2>&5
12077  ac_status=$?
12078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079  (exit $ac_status); }; }; then
12080  ac_cv_lib_svld_dlopen=yes
12081else
12082  echo "$as_me: failed program was:" >&5
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
12085ac_cv_lib_svld_dlopen=no
12086fi
12087rm -f conftest.err conftest.$ac_objext \
12088      conftest$ac_exeext conftest.$ac_ext
12089LIBS=$ac_check_lib_save_LIBS
12090fi
12091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12093if test $ac_cv_lib_svld_dlopen = yes; then
12094  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12095else
12096  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12097echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12098if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12099  echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101  ac_check_lib_save_LIBS=$LIBS
12102LIBS="-ldld  $LIBS"
12103cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h.  */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h.  */
12109
12110/* Override any gcc2 internal prototype to avoid an error.  */
12111#ifdef __cplusplus
12112extern "C"
12113#endif
12114/* We use char because int might match the return type of a gcc2
12115   builtin and then its argument prototype would still apply.  */
12116char dld_link ();
12117int
12118main ()
12119{
12120dld_link ();
12121  ;
12122  return 0;
12123}
12124_ACEOF
12125rm -f conftest.$ac_objext conftest$ac_exeext
12126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127  (eval $ac_link) 2>conftest.er1
12128  ac_status=$?
12129  grep -v '^ *+' conftest.er1 >conftest.err
12130  rm -f conftest.er1
12131  cat conftest.err >&5
12132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133  (exit $ac_status); } &&
12134	 { ac_try='test -z "$ac_c_werror_flag"
12135			 || test ! -s conftest.err'
12136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137  (eval $ac_try) 2>&5
12138  ac_status=$?
12139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140  (exit $ac_status); }; } &&
12141	 { ac_try='test -s conftest$ac_exeext'
12142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143  (eval $ac_try) 2>&5
12144  ac_status=$?
12145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146  (exit $ac_status); }; }; then
12147  ac_cv_lib_dld_dld_link=yes
12148else
12149  echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152ac_cv_lib_dld_dld_link=no
12153fi
12154rm -f conftest.err conftest.$ac_objext \
12155      conftest$ac_exeext conftest.$ac_ext
12156LIBS=$ac_check_lib_save_LIBS
12157fi
12158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12159echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12160if test $ac_cv_lib_dld_dld_link = yes; then
12161  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12162fi
12163
12164
12165fi
12166
12167
12168fi
12169
12170
12171fi
12172
12173
12174fi
12175
12176
12177fi
12178
12179    ;;
12180  esac
12181
12182  if test "x$lt_cv_dlopen" != xno; then
12183    enable_dlopen=yes
12184  else
12185    enable_dlopen=no
12186  fi
12187
12188  case $lt_cv_dlopen in
12189  dlopen)
12190    save_CPPFLAGS="$CPPFLAGS"
12191    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12192
12193    save_LDFLAGS="$LDFLAGS"
12194    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12195
12196    save_LIBS="$LIBS"
12197    LIBS="$lt_cv_dlopen_libs $LIBS"
12198
12199    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12200echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12201if test "${lt_cv_dlopen_self+set}" = set; then
12202  echo $ECHO_N "(cached) $ECHO_C" >&6
12203else
12204  	  if test "$cross_compiling" = yes; then :
12205  lt_cv_dlopen_self=cross
12206else
12207  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12208  lt_status=$lt_dlunknown
12209  cat > conftest.$ac_ext <<EOF
12210#line 12210 "configure"
12211#include "confdefs.h"
12212
12213#if HAVE_DLFCN_H
12214#include <dlfcn.h>
12215#endif
12216
12217#include <stdio.h>
12218
12219#ifdef RTLD_GLOBAL
12220#  define LT_DLGLOBAL		RTLD_GLOBAL
12221#else
12222#  ifdef DL_GLOBAL
12223#    define LT_DLGLOBAL		DL_GLOBAL
12224#  else
12225#    define LT_DLGLOBAL		0
12226#  endif
12227#endif
12228
12229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12230   find out it does not work in some platform. */
12231#ifndef LT_DLLAZY_OR_NOW
12232#  ifdef RTLD_LAZY
12233#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12234#  else
12235#    ifdef DL_LAZY
12236#      define LT_DLLAZY_OR_NOW		DL_LAZY
12237#    else
12238#      ifdef RTLD_NOW
12239#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12240#      else
12241#        ifdef DL_NOW
12242#          define LT_DLLAZY_OR_NOW	DL_NOW
12243#        else
12244#          define LT_DLLAZY_OR_NOW	0
12245#        endif
12246#      endif
12247#    endif
12248#  endif
12249#endif
12250
12251#ifdef __cplusplus
12252extern "C" void exit (int);
12253#endif
12254
12255void fnord() { int i=42;}
12256int main ()
12257{
12258  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12259  int status = $lt_dlunknown;
12260
12261  if (self)
12262    {
12263      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12264      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12265      /* dlclose (self); */
12266    }
12267  else
12268    puts (dlerror ());
12269
12270    exit (status);
12271}
12272EOF
12273  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274  (eval $ac_link) 2>&5
12275  ac_status=$?
12276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12278    (./conftest; exit; ) >&5 2>/dev/null
12279    lt_status=$?
12280    case x$lt_status in
12281      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12282      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12283      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12284    esac
12285  else :
12286    # compilation failed
12287    lt_cv_dlopen_self=no
12288  fi
12289fi
12290rm -fr conftest*
12291
12292
12293fi
12294echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12295echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12296
12297    if test "x$lt_cv_dlopen_self" = xyes; then
12298      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12299      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12300echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12301if test "${lt_cv_dlopen_self_static+set}" = set; then
12302  echo $ECHO_N "(cached) $ECHO_C" >&6
12303else
12304  	  if test "$cross_compiling" = yes; then :
12305  lt_cv_dlopen_self_static=cross
12306else
12307  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12308  lt_status=$lt_dlunknown
12309  cat > conftest.$ac_ext <<EOF
12310#line 12310 "configure"
12311#include "confdefs.h"
12312
12313#if HAVE_DLFCN_H
12314#include <dlfcn.h>
12315#endif
12316
12317#include <stdio.h>
12318
12319#ifdef RTLD_GLOBAL
12320#  define LT_DLGLOBAL		RTLD_GLOBAL
12321#else
12322#  ifdef DL_GLOBAL
12323#    define LT_DLGLOBAL		DL_GLOBAL
12324#  else
12325#    define LT_DLGLOBAL		0
12326#  endif
12327#endif
12328
12329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12330   find out it does not work in some platform. */
12331#ifndef LT_DLLAZY_OR_NOW
12332#  ifdef RTLD_LAZY
12333#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12334#  else
12335#    ifdef DL_LAZY
12336#      define LT_DLLAZY_OR_NOW		DL_LAZY
12337#    else
12338#      ifdef RTLD_NOW
12339#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12340#      else
12341#        ifdef DL_NOW
12342#          define LT_DLLAZY_OR_NOW	DL_NOW
12343#        else
12344#          define LT_DLLAZY_OR_NOW	0
12345#        endif
12346#      endif
12347#    endif
12348#  endif
12349#endif
12350
12351#ifdef __cplusplus
12352extern "C" void exit (int);
12353#endif
12354
12355void fnord() { int i=42;}
12356int main ()
12357{
12358  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12359  int status = $lt_dlunknown;
12360
12361  if (self)
12362    {
12363      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12364      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365      /* dlclose (self); */
12366    }
12367  else
12368    puts (dlerror ());
12369
12370    exit (status);
12371}
12372EOF
12373  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374  (eval $ac_link) 2>&5
12375  ac_status=$?
12376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12378    (./conftest; exit; ) >&5 2>/dev/null
12379    lt_status=$?
12380    case x$lt_status in
12381      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12382      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12383      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12384    esac
12385  else :
12386    # compilation failed
12387    lt_cv_dlopen_self_static=no
12388  fi
12389fi
12390rm -fr conftest*
12391
12392
12393fi
12394echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12395echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12396    fi
12397
12398    CPPFLAGS="$save_CPPFLAGS"
12399    LDFLAGS="$save_LDFLAGS"
12400    LIBS="$save_LIBS"
12401    ;;
12402  esac
12403
12404  case $lt_cv_dlopen_self in
12405  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12406  *) enable_dlopen_self=unknown ;;
12407  esac
12408
12409  case $lt_cv_dlopen_self_static in
12410  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12411  *) enable_dlopen_self_static=unknown ;;
12412  esac
12413fi
12414
12415
12416# Report which library types will actually be built
12417echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12418echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12419echo "$as_me:$LINENO: result: $can_build_shared" >&5
12420echo "${ECHO_T}$can_build_shared" >&6
12421
12422echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12423echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12424test "$can_build_shared" = "no" && enable_shared=no
12425
12426# On AIX, shared libraries and static libraries use the same namespace, and
12427# are all built from PIC.
12428case $host_os in
12429aix3*)
12430  test "$enable_shared" = yes && enable_static=no
12431  if test -n "$RANLIB"; then
12432    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12433    postinstall_cmds='$RANLIB $lib'
12434  fi
12435  ;;
12436
12437aix4* | aix5*)
12438  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12439    test "$enable_shared" = yes && enable_static=no
12440  fi
12441    ;;
12442esac
12443echo "$as_me:$LINENO: result: $enable_shared" >&5
12444echo "${ECHO_T}$enable_shared" >&6
12445
12446echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12447echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12448# Make sure either enable_shared or enable_static is yes.
12449test "$enable_shared" = yes || enable_static=yes
12450echo "$as_me:$LINENO: result: $enable_static" >&5
12451echo "${ECHO_T}$enable_static" >&6
12452
12453# The else clause should only fire when bootstrapping the
12454# libtool distribution, otherwise you forgot to ship ltmain.sh
12455# with your package, and you will get complaints that there are
12456# no rules to generate ltmain.sh.
12457if test -f "$ltmain"; then
12458  # See if we are running on zsh, and set the options which allow our commands through
12459  # without removal of \ escapes.
12460  if test -n "${ZSH_VERSION+set}" ; then
12461    setopt NO_GLOB_SUBST
12462  fi
12463  # Now quote all the things that may contain metacharacters while being
12464  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12465  # variables and quote the copies for generation of the libtool script.
12466  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12467    SED SHELL STRIP \
12468    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12469    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12470    deplibs_check_method reload_flag reload_cmds need_locks \
12471    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12472    lt_cv_sys_global_symbol_to_c_name_address \
12473    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12474    old_postinstall_cmds old_postuninstall_cmds \
12475    compiler \
12476    CC \
12477    LD \
12478    lt_prog_compiler_wl \
12479    lt_prog_compiler_pic \
12480    lt_prog_compiler_static \
12481    lt_prog_compiler_no_builtin_flag \
12482    export_dynamic_flag_spec \
12483    thread_safe_flag_spec \
12484    whole_archive_flag_spec \
12485    enable_shared_with_static_runtimes \
12486    old_archive_cmds \
12487    old_archive_from_new_cmds \
12488    predep_objects \
12489    postdep_objects \
12490    predeps \
12491    postdeps \
12492    compiler_lib_search_path \
12493    archive_cmds \
12494    archive_expsym_cmds \
12495    postinstall_cmds \
12496    postuninstall_cmds \
12497    old_archive_from_expsyms_cmds \
12498    allow_undefined_flag \
12499    no_undefined_flag \
12500    export_symbols_cmds \
12501    hardcode_libdir_flag_spec \
12502    hardcode_libdir_flag_spec_ld \
12503    hardcode_libdir_separator \
12504    hardcode_automatic \
12505    module_cmds \
12506    module_expsym_cmds \
12507    lt_cv_prog_compiler_c_o \
12508    exclude_expsyms \
12509    include_expsyms; do
12510
12511    case $var in
12512    old_archive_cmds | \
12513    old_archive_from_new_cmds | \
12514    archive_cmds | \
12515    archive_expsym_cmds | \
12516    module_cmds | \
12517    module_expsym_cmds | \
12518    old_archive_from_expsyms_cmds | \
12519    export_symbols_cmds | \
12520    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12521    postinstall_cmds | postuninstall_cmds | \
12522    old_postinstall_cmds | old_postuninstall_cmds | \
12523    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12524      # Double-quote double-evaled strings.
12525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12526      ;;
12527    *)
12528      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12529      ;;
12530    esac
12531  done
12532
12533  case $lt_echo in
12534  *'\$0 --fallback-echo"')
12535    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12536    ;;
12537  esac
12538
12539cfgfile="${ofile}T"
12540  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12541  $rm -f "$cfgfile"
12542  { echo "$as_me:$LINENO: creating $ofile" >&5
12543echo "$as_me: creating $ofile" >&6;}
12544
12545  cat <<__EOF__ >> "$cfgfile"
12546#! $SHELL
12547
12548# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12549# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12550# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12551#
12552# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12553# Free Software Foundation, Inc.
12554#
12555# This file is part of GNU Libtool:
12556# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12557#
12558# This program is free software; you can redistribute it and/or modify
12559# it under the terms of the GNU General Public License as published by
12560# the Free Software Foundation; either version 2 of the License, or
12561# (at your option) any later version.
12562#
12563# This program is distributed in the hope that it will be useful, but
12564# WITHOUT ANY WARRANTY; without even the implied warranty of
12565# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12566# General Public License for more details.
12567#
12568# You should have received a copy of the GNU General Public License
12569# along with this program; if not, write to the Free Software
12570# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12571#
12572# As a special exception to the GNU General Public License, if you
12573# distribute this file as part of a program that contains a
12574# configuration script generated by Autoconf, you may include it under
12575# the same distribution terms that you use for the rest of that program.
12576
12577# A sed program that does not truncate output.
12578SED=$lt_SED
12579
12580# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12581Xsed="$SED -e 1s/^X//"
12582
12583# The HP-UX ksh and POSIX shell print the target directory to stdout
12584# if CDPATH is set.
12585(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12586
12587# The names of the tagged configurations supported by this script.
12588available_tags=
12589
12590# ### BEGIN LIBTOOL CONFIG
12591
12592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12593
12594# Shell to use when invoking shell scripts.
12595SHELL=$lt_SHELL
12596
12597# Whether or not to build shared libraries.
12598build_libtool_libs=$enable_shared
12599
12600# Whether or not to build static libraries.
12601build_old_libs=$enable_static
12602
12603# Whether or not to add -lc for building shared libraries.
12604build_libtool_need_lc=$archive_cmds_need_lc
12605
12606# Whether or not to disallow shared libs when runtime libs are static
12607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12608
12609# Whether or not to optimize for fast installation.
12610fast_install=$enable_fast_install
12611
12612# The host system.
12613host_alias=$host_alias
12614host=$host
12615host_os=$host_os
12616
12617# The build system.
12618build_alias=$build_alias
12619build=$build
12620build_os=$build_os
12621
12622# An echo program that does not interpret backslashes.
12623echo=$lt_echo
12624
12625# The archiver.
12626AR=$lt_AR
12627AR_FLAGS=$lt_AR_FLAGS
12628
12629# A C compiler.
12630LTCC=$lt_LTCC
12631
12632# LTCC compiler flags.
12633LTCFLAGS=$lt_LTCFLAGS
12634
12635# A language-specific compiler.
12636CC=$lt_compiler
12637
12638# Is the compiler the GNU C compiler?
12639with_gcc=$GCC
12640
12641# An ERE matcher.
12642EGREP=$lt_EGREP
12643
12644# The linker used to build libraries.
12645LD=$lt_LD
12646
12647# Whether we need hard or soft links.
12648LN_S=$lt_LN_S
12649
12650# A BSD-compatible nm program.
12651NM=$lt_NM
12652
12653# A symbol stripping program
12654STRIP=$lt_STRIP
12655
12656# Used to examine libraries when file_magic_cmd begins "file"
12657MAGIC_CMD=$MAGIC_CMD
12658
12659# Used on cygwin: DLL creation program.
12660DLLTOOL="$DLLTOOL"
12661
12662# Used on cygwin: object dumper.
12663OBJDUMP="$OBJDUMP"
12664
12665# Used on cygwin: assembler.
12666AS="$AS"
12667
12668# The name of the directory that contains temporary libtool files.
12669objdir=$objdir
12670
12671# How to create reloadable object files.
12672reload_flag=$lt_reload_flag
12673reload_cmds=$lt_reload_cmds
12674
12675# How to pass a linker flag through the compiler.
12676wl=$lt_lt_prog_compiler_wl
12677
12678# Object file suffix (normally "o").
12679objext="$ac_objext"
12680
12681# Old archive suffix (normally "a").
12682libext="$libext"
12683
12684# Shared library suffix (normally ".so").
12685shrext_cmds='$shrext_cmds'
12686
12687# Executable file suffix (normally "").
12688exeext="$exeext"
12689
12690# Additional compiler flags for building library objects.
12691pic_flag=$lt_lt_prog_compiler_pic
12692pic_mode=$pic_mode
12693
12694# What is the maximum length of a command?
12695max_cmd_len=$lt_cv_sys_max_cmd_len
12696
12697# Does compiler simultaneously support -c and -o options?
12698compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12699
12700# Must we lock files when doing compilation?
12701need_locks=$lt_need_locks
12702
12703# Do we need the lib prefix for modules?
12704need_lib_prefix=$need_lib_prefix
12705
12706# Do we need a version for libraries?
12707need_version=$need_version
12708
12709# Whether dlopen is supported.
12710dlopen_support=$enable_dlopen
12711
12712# Whether dlopen of programs is supported.
12713dlopen_self=$enable_dlopen_self
12714
12715# Whether dlopen of statically linked programs is supported.
12716dlopen_self_static=$enable_dlopen_self_static
12717
12718# Compiler flag to prevent dynamic linking.
12719link_static_flag=$lt_lt_prog_compiler_static
12720
12721# Compiler flag to turn off builtin functions.
12722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12723
12724# Compiler flag to allow reflexive dlopens.
12725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12726
12727# Compiler flag to generate shared objects directly from archives.
12728whole_archive_flag_spec=$lt_whole_archive_flag_spec
12729
12730# Compiler flag to generate thread-safe objects.
12731thread_safe_flag_spec=$lt_thread_safe_flag_spec
12732
12733# Library versioning type.
12734version_type=$version_type
12735
12736# Format of library name prefix.
12737libname_spec=$lt_libname_spec
12738
12739# List of archive names.  First name is the real one, the rest are links.
12740# The last name is the one that the linker finds with -lNAME.
12741library_names_spec=$lt_library_names_spec
12742
12743# The coded name of the library, if different from the real name.
12744soname_spec=$lt_soname_spec
12745
12746# Commands used to build and install an old-style archive.
12747RANLIB=$lt_RANLIB
12748old_archive_cmds=$lt_old_archive_cmds
12749old_postinstall_cmds=$lt_old_postinstall_cmds
12750old_postuninstall_cmds=$lt_old_postuninstall_cmds
12751
12752# Create an old-style archive from a shared archive.
12753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12754
12755# Create a temporary old-style archive to link instead of a shared archive.
12756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12757
12758# Commands used to build and install a shared archive.
12759archive_cmds=$lt_archive_cmds
12760archive_expsym_cmds=$lt_archive_expsym_cmds
12761postinstall_cmds=$lt_postinstall_cmds
12762postuninstall_cmds=$lt_postuninstall_cmds
12763
12764# Commands used to build a loadable module (assumed same as above if empty)
12765module_cmds=$lt_module_cmds
12766module_expsym_cmds=$lt_module_expsym_cmds
12767
12768# Commands to strip libraries.
12769old_striplib=$lt_old_striplib
12770striplib=$lt_striplib
12771
12772# Dependencies to place before the objects being linked to create a
12773# shared library.
12774predep_objects=$lt_predep_objects
12775
12776# Dependencies to place after the objects being linked to create a
12777# shared library.
12778postdep_objects=$lt_postdep_objects
12779
12780# Dependencies to place before the objects being linked to create a
12781# shared library.
12782predeps=$lt_predeps
12783
12784# Dependencies to place after the objects being linked to create a
12785# shared library.
12786postdeps=$lt_postdeps
12787
12788# The library search path used internally by the compiler when linking
12789# a shared library.
12790compiler_lib_search_path=$lt_compiler_lib_search_path
12791
12792# Method to check whether dependent libraries are shared objects.
12793deplibs_check_method=$lt_deplibs_check_method
12794
12795# Command to use when deplibs_check_method == file_magic.
12796file_magic_cmd=$lt_file_magic_cmd
12797
12798# Flag that allows shared libraries with undefined symbols to be built.
12799allow_undefined_flag=$lt_allow_undefined_flag
12800
12801# Flag that forces no undefined symbols.
12802no_undefined_flag=$lt_no_undefined_flag
12803
12804# Commands used to finish a libtool library installation in a directory.
12805finish_cmds=$lt_finish_cmds
12806
12807# Same as above, but a single script fragment to be evaled but not shown.
12808finish_eval=$lt_finish_eval
12809
12810# Take the output of nm and produce a listing of raw symbols and C names.
12811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12812
12813# Transform the output of nm in a proper C declaration
12814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12815
12816# Transform the output of nm in a C name address pair
12817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12818
12819# This is the shared library runtime path variable.
12820runpath_var=$runpath_var
12821
12822# This is the shared library path variable.
12823shlibpath_var=$shlibpath_var
12824
12825# Is shlibpath searched before the hard-coded library search path?
12826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12827
12828# How to hardcode a shared library path into an executable.
12829hardcode_action=$hardcode_action
12830
12831# Whether we should hardcode library paths into libraries.
12832hardcode_into_libs=$hardcode_into_libs
12833
12834# Flag to hardcode \$libdir into a binary during linking.
12835# This must work even if \$libdir does not exist.
12836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12837
12838# If ld is used when linking, flag to hardcode \$libdir into
12839# a binary during linking. This must work even if \$libdir does
12840# not exist.
12841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12842
12843# Whether we need a single -rpath flag with a separated argument.
12844hardcode_libdir_separator=$lt_hardcode_libdir_separator
12845
12846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12847# resulting binary.
12848hardcode_direct=$hardcode_direct
12849
12850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12851# resulting binary.
12852hardcode_minus_L=$hardcode_minus_L
12853
12854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12855# the resulting binary.
12856hardcode_shlibpath_var=$hardcode_shlibpath_var
12857
12858# Set to yes if building a shared library automatically hardcodes DIR into the library
12859# and all subsequent libraries and executables linked against it.
12860hardcode_automatic=$hardcode_automatic
12861
12862# Variables whose values should be saved in libtool wrapper scripts and
12863# restored at relink time.
12864variables_saved_for_relink="$variables_saved_for_relink"
12865
12866# Whether libtool must link a program against all its dependency libraries.
12867link_all_deplibs=$link_all_deplibs
12868
12869# Compile-time system search path for libraries
12870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12871
12872# Run-time system search path for libraries
12873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12874
12875# Fix the shell variable \$srcfile for the compiler.
12876fix_srcfile_path="$fix_srcfile_path"
12877
12878# Set to yes if exported symbols are required.
12879always_export_symbols=$always_export_symbols
12880
12881# The commands to list exported symbols.
12882export_symbols_cmds=$lt_export_symbols_cmds
12883
12884# The commands to extract the exported symbol list from a shared archive.
12885extract_expsyms_cmds=$lt_extract_expsyms_cmds
12886
12887# Symbols that should not be listed in the preloaded symbols.
12888exclude_expsyms=$lt_exclude_expsyms
12889
12890# Symbols that must always be exported.
12891include_expsyms=$lt_include_expsyms
12892
12893# ### END LIBTOOL CONFIG
12894
12895__EOF__
12896
12897
12898  case $host_os in
12899  aix3*)
12900    cat <<\EOF >> "$cfgfile"
12901
12902# AIX sometimes has problems with the GCC collect2 program.  For some
12903# reason, if we set the COLLECT_NAMES environment variable, the problems
12904# vanish in a puff of smoke.
12905if test "X${COLLECT_NAMES+set}" != Xset; then
12906  COLLECT_NAMES=
12907  export COLLECT_NAMES
12908fi
12909EOF
12910    ;;
12911  esac
12912
12913  # We use sed instead of cat because bash on DJGPP gets confused if
12914  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12915  # text mode, it properly converts lines to CR/LF.  This bash problem
12916  # is reportedly fixed, but why not run on old versions too?
12917  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12918
12919  mv -f "$cfgfile" "$ofile" || \
12920    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12921  chmod +x "$ofile"
12922
12923else
12924  # If there is no Makefile yet, we rely on a make rule to execute
12925  # `config.status --recheck' to rerun these tests and create the
12926  # libtool script then.
12927  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12928  if test -f "$ltmain_in"; then
12929    test -f Makefile && make "$ltmain"
12930  fi
12931fi
12932
12933
12934ac_ext=c
12935ac_cpp='$CPP $CPPFLAGS'
12936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12938ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939
12940CC="$lt_save_CC"
12941
12942
12943# Check whether --with-tags or --without-tags was given.
12944if test "${with_tags+set}" = set; then
12945  withval="$with_tags"
12946  tagnames="$withval"
12947fi;
12948
12949if test -f "$ltmain" && test -n "$tagnames"; then
12950  if test ! -f "${ofile}"; then
12951    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12952echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12953  fi
12954
12955  if test -z "$LTCC"; then
12956    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12957    if test -z "$LTCC"; then
12958      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12959echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12960    else
12961      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12962echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12963    fi
12964  fi
12965  if test -z "$LTCFLAGS"; then
12966    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12967  fi
12968
12969  # Extract list of available tagged configurations in $ofile.
12970  # Note that this assumes the entire list is on one line.
12971  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12972
12973  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12974  for tagname in $tagnames; do
12975    IFS="$lt_save_ifs"
12976    # Check whether tagname contains only valid characters
12977    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12978    "") ;;
12979    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12980echo "$as_me: error: invalid tag name: $tagname" >&2;}
12981   { (exit 1); exit 1; }; }
12982	;;
12983    esac
12984
12985    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12986    then
12987      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12988echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12989   { (exit 1); exit 1; }; }
12990    fi
12991
12992    # Update the list of available tags.
12993    if test -n "$tagname"; then
12994      echo appending configuration tag \"$tagname\" to $ofile
12995
12996      case $tagname in
12997      CXX)
12998	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12999	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13000	    (test "X$CXX" != "Xg++"))) ; then
13001	  ac_ext=cc
13002ac_cpp='$CXXCPP $CPPFLAGS'
13003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13006
13007
13008
13009
13010archive_cmds_need_lc_CXX=no
13011allow_undefined_flag_CXX=
13012always_export_symbols_CXX=no
13013archive_expsym_cmds_CXX=
13014export_dynamic_flag_spec_CXX=
13015hardcode_direct_CXX=no
13016hardcode_libdir_flag_spec_CXX=
13017hardcode_libdir_flag_spec_ld_CXX=
13018hardcode_libdir_separator_CXX=
13019hardcode_minus_L_CXX=no
13020hardcode_shlibpath_var_CXX=unsupported
13021hardcode_automatic_CXX=no
13022module_cmds_CXX=
13023module_expsym_cmds_CXX=
13024link_all_deplibs_CXX=unknown
13025old_archive_cmds_CXX=$old_archive_cmds
13026no_undefined_flag_CXX=
13027whole_archive_flag_spec_CXX=
13028enable_shared_with_static_runtimes_CXX=no
13029
13030# Dependencies to place before and after the object being linked:
13031predep_objects_CXX=
13032postdep_objects_CXX=
13033predeps_CXX=
13034postdeps_CXX=
13035compiler_lib_search_path_CXX=
13036
13037# Source file extension for C++ test sources.
13038ac_ext=cpp
13039
13040# Object file extension for compiled C++ test sources.
13041objext=o
13042objext_CXX=$objext
13043
13044# Code to be used in simple compile tests
13045lt_simple_compile_test_code="int some_variable = 0;\n"
13046
13047# Code to be used in simple link tests
13048lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
13049
13050# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13051
13052# If no C compiler was specified, use CC.
13053LTCC=${LTCC-"$CC"}
13054
13055# If no C compiler flags were specified, use CFLAGS.
13056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13057
13058# Allow CC to be a program name with arguments.
13059compiler=$CC
13060
13061
13062# save warnings/boilerplate of simple test code
13063ac_outfile=conftest.$ac_objext
13064printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066_lt_compiler_boilerplate=`cat conftest.err`
13067$rm conftest*
13068
13069ac_outfile=conftest.$ac_objext
13070printf "$lt_simple_link_test_code" >conftest.$ac_ext
13071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13072_lt_linker_boilerplate=`cat conftest.err`
13073$rm conftest*
13074
13075
13076# Allow CC to be a program name with arguments.
13077lt_save_CC=$CC
13078lt_save_LD=$LD
13079lt_save_GCC=$GCC
13080GCC=$GXX
13081lt_save_with_gnu_ld=$with_gnu_ld
13082lt_save_path_LD=$lt_cv_path_LD
13083if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13084  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13085else
13086  $as_unset lt_cv_prog_gnu_ld
13087fi
13088if test -n "${lt_cv_path_LDCXX+set}"; then
13089  lt_cv_path_LD=$lt_cv_path_LDCXX
13090else
13091  $as_unset lt_cv_path_LD
13092fi
13093test -z "${LDCXX+set}" || LD=$LDCXX
13094CC=${CXX-"c++"}
13095compiler=$CC
13096compiler_CXX=$CC
13097for cc_temp in $compiler""; do
13098  case $cc_temp in
13099    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13100    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13101    \-*) ;;
13102    *) break;;
13103  esac
13104done
13105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13106
13107
13108# We don't want -fno-exception wen compiling C++ code, so set the
13109# no_builtin_flag separately
13110if test "$GXX" = yes; then
13111  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13112else
13113  lt_prog_compiler_no_builtin_flag_CXX=
13114fi
13115
13116if test "$GXX" = yes; then
13117  # Set up default GNU C++ configuration
13118
13119
13120# Check whether --with-gnu-ld or --without-gnu-ld was given.
13121if test "${with_gnu_ld+set}" = set; then
13122  withval="$with_gnu_ld"
13123  test "$withval" = no || with_gnu_ld=yes
13124else
13125  with_gnu_ld=no
13126fi;
13127ac_prog=ld
13128if test "$GCC" = yes; then
13129  # Check if gcc -print-prog-name=ld gives a path.
13130  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13132  case $host in
13133  *-*-mingw*)
13134    # gcc leaves a trailing carriage return which upsets mingw
13135    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13136  *)
13137    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13138  esac
13139  case $ac_prog in
13140    # Accept absolute paths.
13141    [\\/]* | ?:[\\/]*)
13142      re_direlt='/[^/][^/]*/\.\./'
13143      # Canonicalize the pathname of ld
13144      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13145      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13146	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13147      done
13148      test -z "$LD" && LD="$ac_prog"
13149      ;;
13150  "")
13151    # If it fails, then pretend we aren't using GCC.
13152    ac_prog=ld
13153    ;;
13154  *)
13155    # If it is relative, then search for the first ld in PATH.
13156    with_gnu_ld=unknown
13157    ;;
13158  esac
13159elif test "$with_gnu_ld" = yes; then
13160  echo "$as_me:$LINENO: checking for GNU ld" >&5
13161echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13162else
13163  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13165fi
13166if test "${lt_cv_path_LD+set}" = set; then
13167  echo $ECHO_N "(cached) $ECHO_C" >&6
13168else
13169  if test -z "$LD"; then
13170  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171  for ac_dir in $PATH; do
13172    IFS="$lt_save_ifs"
13173    test -z "$ac_dir" && ac_dir=.
13174    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175      lt_cv_path_LD="$ac_dir/$ac_prog"
13176      # Check to see if the program is GNU ld.  I'd rather use --version,
13177      # but apparently some variants of GNU ld only accept -v.
13178      # Break only if it was the GNU/non-GNU ld that we prefer.
13179      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180      *GNU* | *'with BFD'*)
13181	test "$with_gnu_ld" != no && break
13182	;;
13183      *)
13184	test "$with_gnu_ld" != yes && break
13185	;;
13186      esac
13187    fi
13188  done
13189  IFS="$lt_save_ifs"
13190else
13191  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13192fi
13193fi
13194
13195LD="$lt_cv_path_LD"
13196if test -n "$LD"; then
13197  echo "$as_me:$LINENO: result: $LD" >&5
13198echo "${ECHO_T}$LD" >&6
13199else
13200  echo "$as_me:$LINENO: result: no" >&5
13201echo "${ECHO_T}no" >&6
13202fi
13203test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205   { (exit 1); exit 1; }; }
13206echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13208if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209  echo $ECHO_N "(cached) $ECHO_C" >&6
13210else
13211  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212case `$LD -v 2>&1 </dev/null` in
13213*GNU* | *'with BFD'*)
13214  lt_cv_prog_gnu_ld=yes
13215  ;;
13216*)
13217  lt_cv_prog_gnu_ld=no
13218  ;;
13219esac
13220fi
13221echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13223with_gnu_ld=$lt_cv_prog_gnu_ld
13224
13225
13226
13227  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13228  # archiving commands below assume that GNU ld is being used.
13229  if test "$with_gnu_ld" = yes; then
13230    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231    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'
13232
13233    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13234    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235
13236    # If archive_cmds runs LD, not CC, wlarc should be empty
13237    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13238    #     investigate it a little bit more. (MM)
13239    wlarc='${wl}'
13240
13241    # ancient GNU ld didn't support --whole-archive et. al.
13242    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13243	grep 'no-whole-archive' > /dev/null; then
13244      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13245    else
13246      whole_archive_flag_spec_CXX=
13247    fi
13248  else
13249    with_gnu_ld=no
13250    wlarc=
13251
13252    # A generic and very simple default shared library creation
13253    # command for GNU C++ for the case where it uses the native
13254    # linker, instead of GNU ld.  If possible, this setting should
13255    # overridden to take advantage of the native linker features on
13256    # the platform it is being used on.
13257    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13258  fi
13259
13260  # Commands to make compiler produce verbose output that lists
13261  # what "hidden" libraries, object files and flags are used when
13262  # linking a shared library.
13263  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13264
13265else
13266  GXX=no
13267  with_gnu_ld=no
13268  wlarc=
13269fi
13270
13271# PORTME: fill in a description of your system's C++ link characteristics
13272echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13273echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13274ld_shlibs_CXX=yes
13275case $host_os in
13276  aix3*)
13277    # FIXME: insert proper C++ library support
13278    ld_shlibs_CXX=no
13279    ;;
13280  aix4* | aix5*)
13281    if test "$host_cpu" = ia64; then
13282      # On IA64, the linker does run time linking by default, so we don't
13283      # have to do anything special.
13284      aix_use_runtimelinking=no
13285      exp_sym_flag='-Bexport'
13286      no_entry_flag=""
13287    else
13288      aix_use_runtimelinking=no
13289
13290      # Test if we are trying to use run time linking or normal
13291      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13292      # need to do runtime linking.
13293      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13294	for ld_flag in $LDFLAGS; do
13295	  case $ld_flag in
13296	  *-brtl*)
13297	    aix_use_runtimelinking=yes
13298	    break
13299	    ;;
13300	  esac
13301	done
13302	;;
13303      esac
13304
13305      exp_sym_flag='-bexport'
13306      no_entry_flag='-bnoentry'
13307    fi
13308
13309    # When large executables or shared objects are built, AIX ld can
13310    # have problems creating the table of contents.  If linking a library
13311    # or program results in "error TOC overflow" add -mminimal-toc to
13312    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13313    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13314
13315    archive_cmds_CXX=''
13316    hardcode_direct_CXX=yes
13317    hardcode_libdir_separator_CXX=':'
13318    link_all_deplibs_CXX=yes
13319
13320    if test "$GXX" = yes; then
13321      case $host_os in aix4.[012]|aix4.[012].*)
13322      # We only want to do this on AIX 4.2 and lower, the check
13323      # below for broken collect2 doesn't work under 4.3+
13324	collect2name=`${CC} -print-prog-name=collect2`
13325	if test -f "$collect2name" && \
13326	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13327	then
13328	  # We have reworked collect2
13329	  hardcode_direct_CXX=yes
13330	else
13331	  # We have old collect2
13332	  hardcode_direct_CXX=unsupported
13333	  # It fails to find uninstalled libraries when the uninstalled
13334	  # path is not listed in the libpath.  Setting hardcode_minus_L
13335	  # to unsupported forces relinking
13336	  hardcode_minus_L_CXX=yes
13337	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13338	  hardcode_libdir_separator_CXX=
13339	fi
13340	;;
13341      esac
13342      shared_flag='-shared'
13343      if test "$aix_use_runtimelinking" = yes; then
13344	shared_flag="$shared_flag "'${wl}-G'
13345      fi
13346    else
13347      # not using gcc
13348      if test "$host_cpu" = ia64; then
13349	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13350	# chokes on -Wl,-G. The following line is correct:
13351	shared_flag='-G'
13352      else
13353	if test "$aix_use_runtimelinking" = yes; then
13354	  shared_flag='${wl}-G'
13355	else
13356	  shared_flag='${wl}-bM:SRE'
13357	fi
13358      fi
13359    fi
13360
13361    # It seems that -bexpall does not export symbols beginning with
13362    # underscore (_), so it is better to generate a list of symbols to export.
13363    always_export_symbols_CXX=yes
13364    if test "$aix_use_runtimelinking" = yes; then
13365      # Warning - without using the other runtime loading flags (-brtl),
13366      # -berok will link without error, but may produce a broken library.
13367      allow_undefined_flag_CXX='-berok'
13368      # Determine the default libpath from the value encoded in an empty executable.
13369      cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h.  */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h.  */
13375
13376int
13377main ()
13378{
13379
13380  ;
13381  return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext conftest$ac_exeext
13385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386  (eval $ac_link) 2>conftest.er1
13387  ac_status=$?
13388  grep -v '^ *+' conftest.er1 >conftest.err
13389  rm -f conftest.er1
13390  cat conftest.err >&5
13391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392  (exit $ac_status); } &&
13393	 { ac_try='test -z "$ac_cxx_werror_flag"
13394			 || test ! -s conftest.err'
13395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396  (eval $ac_try) 2>&5
13397  ac_status=$?
13398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399  (exit $ac_status); }; } &&
13400	 { ac_try='test -s conftest$ac_exeext'
13401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402  (eval $ac_try) 2>&5
13403  ac_status=$?
13404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405  (exit $ac_status); }; }; then
13406
13407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13408}'`
13409# Check for a 64-bit object if we didn't find anything.
13410if 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; }
13411}'`; fi
13412else
13413  echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416fi
13417rm -f conftest.err conftest.$ac_objext \
13418      conftest$ac_exeext conftest.$ac_ext
13419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13420
13421      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13422
13423      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"
13424     else
13425      if test "$host_cpu" = ia64; then
13426	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13427	allow_undefined_flag_CXX="-z nodefs"
13428	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"
13429      else
13430	# Determine the default libpath from the value encoded in an empty executable.
13431	cat >conftest.$ac_ext <<_ACEOF
13432/* confdefs.h.  */
13433_ACEOF
13434cat confdefs.h >>conftest.$ac_ext
13435cat >>conftest.$ac_ext <<_ACEOF
13436/* end confdefs.h.  */
13437
13438int
13439main ()
13440{
13441
13442  ;
13443  return 0;
13444}
13445_ACEOF
13446rm -f conftest.$ac_objext conftest$ac_exeext
13447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448  (eval $ac_link) 2>conftest.er1
13449  ac_status=$?
13450  grep -v '^ *+' conftest.er1 >conftest.err
13451  rm -f conftest.er1
13452  cat conftest.err >&5
13453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454  (exit $ac_status); } &&
13455	 { ac_try='test -z "$ac_cxx_werror_flag"
13456			 || test ! -s conftest.err'
13457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458  (eval $ac_try) 2>&5
13459  ac_status=$?
13460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461  (exit $ac_status); }; } &&
13462	 { ac_try='test -s conftest$ac_exeext'
13463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464  (eval $ac_try) 2>&5
13465  ac_status=$?
13466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467  (exit $ac_status); }; }; then
13468
13469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13470}'`
13471# Check for a 64-bit object if we didn't find anything.
13472if 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; }
13473}'`; fi
13474else
13475  echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
13477
13478fi
13479rm -f conftest.err conftest.$ac_objext \
13480      conftest$ac_exeext conftest.$ac_ext
13481if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13482
13483	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13484	# Warning - without using the other run time loading flags,
13485	# -berok will link without error, but may produce a broken library.
13486	no_undefined_flag_CXX=' ${wl}-bernotok'
13487	allow_undefined_flag_CXX=' ${wl}-berok'
13488	# Exported symbols can be pulled into shared objects from archives
13489	whole_archive_flag_spec_CXX='$convenience'
13490	archive_cmds_need_lc_CXX=yes
13491	# This is similar to how AIX traditionally builds its shared libraries.
13492	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'
13493      fi
13494    fi
13495    ;;
13496
13497  beos*)
13498    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13499      allow_undefined_flag_CXX=unsupported
13500      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13501      # support --undefined.  This deserves some investigation.  FIXME
13502      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503    else
13504      ld_shlibs_CXX=no
13505    fi
13506    ;;
13507
13508  chorus*)
13509    case $cc_basename in
13510      *)
13511	# FIXME: insert proper C++ library support
13512	ld_shlibs_CXX=no
13513	;;
13514    esac
13515    ;;
13516
13517  cygwin* | mingw* | pw32*)
13518    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13519    # as there is no search path for DLLs.
13520    hardcode_libdir_flag_spec_CXX='-L$libdir'
13521    allow_undefined_flag_CXX=unsupported
13522    always_export_symbols_CXX=no
13523    enable_shared_with_static_runtimes_CXX=yes
13524
13525    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13526      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'
13527      # If the export-symbols file already is a .def file (1st line
13528      # is EXPORTS), use it as is; otherwise, prepend...
13529      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13530	cp $export_symbols $output_objdir/$soname.def;
13531      else
13532	echo EXPORTS > $output_objdir/$soname.def;
13533	cat $export_symbols >> $output_objdir/$soname.def;
13534      fi~
13535      $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'
13536    else
13537      ld_shlibs_CXX=no
13538    fi
13539  ;;
13540      darwin* | rhapsody*)
13541        case $host_os in
13542        rhapsody* | darwin1.[012])
13543         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13544         ;;
13545       *) # Darwin 1.3 on
13546         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13547           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13548         else
13549           case ${MACOSX_DEPLOYMENT_TARGET} in
13550             10.[012])
13551               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13552               ;;
13553             10.*)
13554               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13555               ;;
13556           esac
13557         fi
13558         ;;
13559        esac
13560      archive_cmds_need_lc_CXX=no
13561      hardcode_direct_CXX=no
13562      hardcode_automatic_CXX=yes
13563      hardcode_shlibpath_var_CXX=unsupported
13564      whole_archive_flag_spec_CXX=''
13565      link_all_deplibs_CXX=yes
13566
13567    if test "$GXX" = yes ; then
13568      lt_int_apple_cc_single_mod=no
13569      output_verbose_link_cmd='echo'
13570      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13571       lt_int_apple_cc_single_mod=yes
13572      fi
13573      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13574       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13575      else
13576          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'
13577        fi
13578        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13579        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13580          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13581            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}'
13582          else
13583            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}'
13584          fi
13585            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}'
13586      else
13587      case $cc_basename in
13588        xlc*)
13589         output_verbose_link_cmd='echo'
13590          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'
13591          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13592          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13593          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}'
13594          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}'
13595          ;;
13596       *)
13597         ld_shlibs_CXX=no
13598          ;;
13599      esac
13600      fi
13601        ;;
13602
13603  dgux*)
13604    case $cc_basename in
13605      ec++*)
13606	# FIXME: insert proper C++ library support
13607	ld_shlibs_CXX=no
13608	;;
13609      ghcx*)
13610	# Green Hills C++ Compiler
13611	# FIXME: insert proper C++ library support
13612	ld_shlibs_CXX=no
13613	;;
13614      *)
13615	# FIXME: insert proper C++ library support
13616	ld_shlibs_CXX=no
13617	;;
13618    esac
13619    ;;
13620  freebsd[12]*)
13621    # C++ shared libraries reported to be fairly broken before switch to ELF
13622    ld_shlibs_CXX=no
13623    ;;
13624  freebsd-elf*)
13625    archive_cmds_need_lc_CXX=no
13626    ;;
13627  freebsd* | kfreebsd*-gnu | dragonfly*)
13628    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13629    # conventions
13630    ld_shlibs_CXX=yes
13631    ;;
13632  gnu*)
13633    ;;
13634  hpux9*)
13635    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13636    hardcode_libdir_separator_CXX=:
13637    export_dynamic_flag_spec_CXX='${wl}-E'
13638    hardcode_direct_CXX=yes
13639    hardcode_minus_L_CXX=yes # Not in the search PATH,
13640				# but as the default
13641				# location of the library.
13642
13643    case $cc_basename in
13644    CC*)
13645      # FIXME: insert proper C++ library support
13646      ld_shlibs_CXX=no
13647      ;;
13648    aCC*)
13649      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'
13650      # Commands to make compiler produce verbose output that lists
13651      # what "hidden" libraries, object files and flags are used when
13652      # linking a shared library.
13653      #
13654      # There doesn't appear to be a way to prevent this compiler from
13655      # explicitly linking system object files so we need to strip them
13656      # from the output so that they don't get included in the library
13657      # dependencies.
13658      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'
13659      ;;
13660    *)
13661      if test "$GXX" = yes; then
13662        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'
13663      else
13664        # FIXME: insert proper C++ library support
13665        ld_shlibs_CXX=no
13666      fi
13667      ;;
13668    esac
13669    ;;
13670  hpux10*|hpux11*)
13671    if test $with_gnu_ld = no; then
13672      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13673      hardcode_libdir_separator_CXX=:
13674
13675      case $host_cpu in
13676      hppa*64*|ia64*)
13677	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13678        ;;
13679      *)
13680	export_dynamic_flag_spec_CXX='${wl}-E'
13681        ;;
13682      esac
13683    fi
13684    case $host_cpu in
13685    hppa*64*|ia64*)
13686      hardcode_direct_CXX=no
13687      hardcode_shlibpath_var_CXX=no
13688      ;;
13689    *)
13690      hardcode_direct_CXX=yes
13691      hardcode_minus_L_CXX=yes # Not in the search PATH,
13692					      # but as the default
13693					      # location of the library.
13694      ;;
13695    esac
13696
13697    case $cc_basename in
13698      CC*)
13699	# FIXME: insert proper C++ library support
13700	ld_shlibs_CXX=no
13701	;;
13702      aCC*)
13703	case $host_cpu in
13704	hppa*64*)
13705	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706	  ;;
13707	ia64*)
13708	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709	  ;;
13710	*)
13711	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712	  ;;
13713	esac
13714	# Commands to make compiler produce verbose output that lists
13715	# what "hidden" libraries, object files and flags are used when
13716	# linking a shared library.
13717	#
13718	# There doesn't appear to be a way to prevent this compiler from
13719	# explicitly linking system object files so we need to strip them
13720	# from the output so that they don't get included in the library
13721	# dependencies.
13722	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'
13723	;;
13724      *)
13725	if test "$GXX" = yes; then
13726	  if test $with_gnu_ld = no; then
13727	    case $host_cpu in
13728	    hppa*64*)
13729	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730	      ;;
13731	    ia64*)
13732	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13733	      ;;
13734	    *)
13735	      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'
13736	      ;;
13737	    esac
13738	  fi
13739	else
13740	  # FIXME: insert proper C++ library support
13741	  ld_shlibs_CXX=no
13742	fi
13743	;;
13744    esac
13745    ;;
13746  interix3*)
13747    hardcode_direct_CXX=no
13748    hardcode_shlibpath_var_CXX=no
13749    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13750    export_dynamic_flag_spec_CXX='${wl}-E'
13751    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13752    # Instead, shared libraries are loaded at an image base (0x10000000 by
13753    # default) and relocated if they conflict, which is a slow very memory
13754    # consuming and fragmenting process.  To avoid this, we pick a random,
13755    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13756    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13757    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'
13758    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'
13759    ;;
13760  irix5* | irix6*)
13761    case $cc_basename in
13762      CC*)
13763	# SGI C++
13764	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'
13765
13766	# Archives containing C++ object files must be created using
13767	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13768	# necessary to make sure instantiated templates are included
13769	# in the archive.
13770	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13771	;;
13772      *)
13773	if test "$GXX" = yes; then
13774	  if test "$with_gnu_ld" = no; then
13775	    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'
13776	  else
13777	    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'
13778	  fi
13779	fi
13780	link_all_deplibs_CXX=yes
13781	;;
13782    esac
13783    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13784    hardcode_libdir_separator_CXX=:
13785    ;;
13786  linux*)
13787    case $cc_basename in
13788      KCC*)
13789	# Kuck and Associates, Inc. (KAI) C++ Compiler
13790
13791	# KCC will only create a shared library if the output file
13792	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13793	# to its proper name (with version) after linking.
13794	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'
13795	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'
13796	# Commands to make compiler produce verbose output that lists
13797	# what "hidden" libraries, object files and flags are used when
13798	# linking a shared library.
13799	#
13800	# There doesn't appear to be a way to prevent this compiler from
13801	# explicitly linking system object files so we need to strip them
13802	# from the output so that they don't get included in the library
13803	# dependencies.
13804	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'
13805
13806	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13807	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13808
13809	# Archives containing C++ object files must be created using
13810	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13811	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13812	;;
13813      icpc*)
13814	# Intel C++
13815	with_gnu_ld=yes
13816	# version 8.0 and above of icpc choke on multiply defined symbols
13817	# if we add $predep_objects and $postdep_objects, however 7.1 and
13818	# earlier do not add the objects themselves.
13819	case `$CC -V 2>&1` in
13820	*"Version 7."*)
13821  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822  	  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'
13823	  ;;
13824	*)  # Version 8.0 or newer
13825	  tmp_idyn=
13826	  case $host_cpu in
13827	    ia64*) tmp_idyn=' -i_dynamic';;
13828	  esac
13829  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830	  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'
13831	  ;;
13832	esac
13833	archive_cmds_need_lc_CXX=no
13834	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13835	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13836	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13837	;;
13838      pgCC*)
13839        # Portland Group C++ compiler
13840	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13841  	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'
13842
13843	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13844	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13845	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'
13846        ;;
13847      cxx*)
13848	# Compaq C++
13849	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13850	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'
13851
13852	runpath_var=LD_RUN_PATH
13853	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13854	hardcode_libdir_separator_CXX=:
13855
13856	# Commands to make compiler produce verbose output that lists
13857	# what "hidden" libraries, object files and flags are used when
13858	# linking a shared library.
13859	#
13860	# There doesn't appear to be a way to prevent this compiler from
13861	# explicitly linking system object files so we need to strip them
13862	# from the output so that they don't get included in the library
13863	# dependencies.
13864	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'
13865	;;
13866    esac
13867    ;;
13868  lynxos*)
13869    # FIXME: insert proper C++ library support
13870    ld_shlibs_CXX=no
13871    ;;
13872  m88k*)
13873    # FIXME: insert proper C++ library support
13874    ld_shlibs_CXX=no
13875    ;;
13876  mvs*)
13877    case $cc_basename in
13878      cxx*)
13879	# FIXME: insert proper C++ library support
13880	ld_shlibs_CXX=no
13881	;;
13882      *)
13883	# FIXME: insert proper C++ library support
13884	ld_shlibs_CXX=no
13885	;;
13886    esac
13887    ;;
13888  netbsd*)
13889    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13890      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13891      wlarc=
13892      hardcode_libdir_flag_spec_CXX='-R$libdir'
13893      hardcode_direct_CXX=yes
13894      hardcode_shlibpath_var_CXX=no
13895    fi
13896    # Workaround some broken pre-1.5 toolchains
13897    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13898    ;;
13899  openbsd2*)
13900    # C++ shared libraries are fairly broken
13901    ld_shlibs_CXX=no
13902    ;;
13903  openbsd*)
13904    hardcode_direct_CXX=yes
13905    hardcode_shlibpath_var_CXX=no
13906    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13907    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13908    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13909      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13910      export_dynamic_flag_spec_CXX='${wl}-E'
13911      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13912    fi
13913    output_verbose_link_cmd='echo'
13914    ;;
13915  osf3*)
13916    case $cc_basename in
13917      KCC*)
13918	# Kuck and Associates, Inc. (KAI) C++ Compiler
13919
13920	# KCC will only create a shared library if the output file
13921	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13922	# to its proper name (with version) after linking.
13923	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'
13924
13925	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13926	hardcode_libdir_separator_CXX=:
13927
13928	# Archives containing C++ object files must be created using
13929	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13930	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13931
13932	;;
13933      RCC*)
13934	# Rational C++ 2.4.1
13935	# FIXME: insert proper C++ library support
13936	ld_shlibs_CXX=no
13937	;;
13938      cxx*)
13939	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13940	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'
13941
13942	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13943	hardcode_libdir_separator_CXX=:
13944
13945	# Commands to make compiler produce verbose output that lists
13946	# what "hidden" libraries, object files and flags are used when
13947	# linking a shared library.
13948	#
13949	# There doesn't appear to be a way to prevent this compiler from
13950	# explicitly linking system object files so we need to strip them
13951	# from the output so that they don't get included in the library
13952	# dependencies.
13953	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'
13954	;;
13955      *)
13956	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13957	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13958	  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'
13959
13960	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13961	  hardcode_libdir_separator_CXX=:
13962
13963	  # Commands to make compiler produce verbose output that lists
13964	  # what "hidden" libraries, object files and flags are used when
13965	  # linking a shared library.
13966	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13967
13968	else
13969	  # FIXME: insert proper C++ library support
13970	  ld_shlibs_CXX=no
13971	fi
13972	;;
13973    esac
13974    ;;
13975  osf4* | osf5*)
13976    case $cc_basename in
13977      KCC*)
13978	# Kuck and Associates, Inc. (KAI) C++ Compiler
13979
13980	# KCC will only create a shared library if the output file
13981	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13982	# to its proper name (with version) after linking.
13983	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'
13984
13985	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13986	hardcode_libdir_separator_CXX=:
13987
13988	# Archives containing C++ object files must be created using
13989	# the KAI C++ compiler.
13990	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13991	;;
13992      RCC*)
13993	# Rational C++ 2.4.1
13994	# FIXME: insert proper C++ library support
13995	ld_shlibs_CXX=no
13996	;;
13997      cxx*)
13998	allow_undefined_flag_CXX=' -expect_unresolved \*'
13999	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'
14000	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14001	  echo "-hidden">> $lib.exp~
14002	  $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~
14003	  $rm $lib.exp'
14004
14005	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14006	hardcode_libdir_separator_CXX=:
14007
14008	# Commands to make compiler produce verbose output that lists
14009	# what "hidden" libraries, object files and flags are used when
14010	# linking a shared library.
14011	#
14012	# There doesn't appear to be a way to prevent this compiler from
14013	# explicitly linking system object files so we need to strip them
14014	# from the output so that they don't get included in the library
14015	# dependencies.
14016	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'
14017	;;
14018      *)
14019	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14020	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14021	 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'
14022
14023	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14024	  hardcode_libdir_separator_CXX=:
14025
14026	  # Commands to make compiler produce verbose output that lists
14027	  # what "hidden" libraries, object files and flags are used when
14028	  # linking a shared library.
14029	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14030
14031	else
14032	  # FIXME: insert proper C++ library support
14033	  ld_shlibs_CXX=no
14034	fi
14035	;;
14036    esac
14037    ;;
14038  psos*)
14039    # FIXME: insert proper C++ library support
14040    ld_shlibs_CXX=no
14041    ;;
14042  sunos4*)
14043    case $cc_basename in
14044      CC*)
14045	# Sun C++ 4.x
14046	# FIXME: insert proper C++ library support
14047	ld_shlibs_CXX=no
14048	;;
14049      lcc*)
14050	# Lucid
14051	# FIXME: insert proper C++ library support
14052	ld_shlibs_CXX=no
14053	;;
14054      *)
14055	# FIXME: insert proper C++ library support
14056	ld_shlibs_CXX=no
14057	;;
14058    esac
14059    ;;
14060  solaris*)
14061    case $cc_basename in
14062      CC*)
14063	# Sun C++ 4.2, 5.x and Centerline C++
14064        archive_cmds_need_lc_CXX=yes
14065	no_undefined_flag_CXX=' -zdefs'
14066	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14067	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14068	$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'
14069
14070	hardcode_libdir_flag_spec_CXX='-R$libdir'
14071	hardcode_shlibpath_var_CXX=no
14072	case $host_os in
14073	  solaris2.[0-5] | solaris2.[0-5].*) ;;
14074	  *)
14075	    # The C++ compiler is used as linker so we must use $wl
14076	    # flag to pass the commands to the underlying system
14077	    # linker. We must also pass each convience library through
14078	    # to the system linker between allextract/defaultextract.
14079	    # The C++ compiler will combine linker options so we
14080	    # cannot just pass the convience library names through
14081	    # without $wl.
14082	    # Supported since Solaris 2.6 (maybe 2.5.1?)
14083	    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'
14084	    ;;
14085	esac
14086	link_all_deplibs_CXX=yes
14087
14088	output_verbose_link_cmd='echo'
14089
14090	# Archives containing C++ object files must be created using
14091	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
14092	# necessary to make sure instantiated templates are included
14093	# in the archive.
14094	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14095	;;
14096      gcx*)
14097	# Green Hills C++ Compiler
14098	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14099
14100	# The C++ compiler must be used to create the archive.
14101	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14102	;;
14103      *)
14104	# GNU C++ compiler with Solaris linker
14105	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14106	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14107	  if $CC --version | grep -v '^2\.7' > /dev/null; then
14108	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14109	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14110		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14111
14112	    # Commands to make compiler produce verbose output that lists
14113	    # what "hidden" libraries, object files and flags are used when
14114	    # linking a shared library.
14115	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14116	  else
14117	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
14118	    # platform.
14119	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14120	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14121		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14122
14123	    # Commands to make compiler produce verbose output that lists
14124	    # what "hidden" libraries, object files and flags are used when
14125	    # linking a shared library.
14126	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14127	  fi
14128
14129	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14130	fi
14131	;;
14132    esac
14133    ;;
14134  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14135    no_undefined_flag_CXX='${wl}-z,text'
14136    archive_cmds_need_lc_CXX=no
14137    hardcode_shlibpath_var_CXX=no
14138    runpath_var='LD_RUN_PATH'
14139
14140    case $cc_basename in
14141      CC*)
14142	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14143	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14144	;;
14145      *)
14146	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14147	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148	;;
14149    esac
14150    ;;
14151  sysv5* | sco3.2v5* | sco5v6*)
14152    # Note: We can NOT use -z defs as we might desire, because we do not
14153    # link with -lc, and that would cause any symbols used from libc to
14154    # always be unresolved, which means just about no library would
14155    # ever link correctly.  If we're not using GNU ld we use -z text
14156    # though, which does catch some bad symbols but isn't as heavy-handed
14157    # as -z defs.
14158    # For security reasons, it is highly recommended that you always
14159    # use absolute paths for naming shared libraries, and exclude the
14160    # DT_RUNPATH tag from executables and libraries.  But doing so
14161    # requires that you compile everything twice, which is a pain.
14162    # So that behaviour is only enabled if SCOABSPATH is set to a
14163    # non-empty value in the environment.  Most likely only useful for
14164    # creating official distributions of packages.
14165    # This is a hack until libtool officially supports absolute path
14166    # names for shared libraries.
14167    no_undefined_flag_CXX='${wl}-z,text'
14168    allow_undefined_flag_CXX='${wl}-z,nodefs'
14169    archive_cmds_need_lc_CXX=no
14170    hardcode_shlibpath_var_CXX=no
14171    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14172    hardcode_libdir_separator_CXX=':'
14173    link_all_deplibs_CXX=yes
14174    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14175    runpath_var='LD_RUN_PATH'
14176
14177    case $cc_basename in
14178      CC*)
14179	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14180	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14181	;;
14182      *)
14183	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14184	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14185	;;
14186    esac
14187    ;;
14188  tandem*)
14189    case $cc_basename in
14190      NCC*)
14191	# NonStop-UX NCC 3.20
14192	# FIXME: insert proper C++ library support
14193	ld_shlibs_CXX=no
14194	;;
14195      *)
14196	# FIXME: insert proper C++ library support
14197	ld_shlibs_CXX=no
14198	;;
14199    esac
14200    ;;
14201  vxworks*)
14202    # FIXME: insert proper C++ library support
14203    ld_shlibs_CXX=no
14204    ;;
14205  *)
14206    # FIXME: insert proper C++ library support
14207    ld_shlibs_CXX=no
14208    ;;
14209esac
14210echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14211echo "${ECHO_T}$ld_shlibs_CXX" >&6
14212test "$ld_shlibs_CXX" = no && can_build_shared=no
14213
14214GCC_CXX="$GXX"
14215LD_CXX="$LD"
14216
14217## CAVEAT EMPTOR:
14218## There is no encapsulation within the following macros, do not change
14219## the running order or otherwise move them around unless you know exactly
14220## what you are doing...
14221
14222cat > conftest.$ac_ext <<EOF
14223class Foo
14224{
14225public:
14226  Foo (void) { a = 0; }
14227private:
14228  int a;
14229};
14230EOF
14231
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233  (eval $ac_compile) 2>&5
14234  ac_status=$?
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); }; then
14237  # Parse the compiler output and extract the necessary
14238  # objects, libraries and library flags.
14239
14240  # Sentinel used to keep track of whether or not we are before
14241  # the conftest object file.
14242  pre_test_object_deps_done=no
14243
14244  # The `*' in the case matches for architectures that use `case' in
14245  # $output_verbose_cmd can trigger glob expansion during the loop
14246  # eval without this substitution.
14247  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14248
14249  for p in `eval $output_verbose_link_cmd`; do
14250    case $p in
14251
14252    -L* | -R* | -l*)
14253       # Some compilers place space between "-{L,R}" and the path.
14254       # Remove the space.
14255       if test $p = "-L" \
14256	  || test $p = "-R"; then
14257	 prev=$p
14258	 continue
14259       else
14260	 prev=
14261       fi
14262
14263       if test "$pre_test_object_deps_done" = no; then
14264	 case $p in
14265	 -L* | -R*)
14266	   # Internal compiler library paths should come after those
14267	   # provided the user.  The postdeps already come after the
14268	   # user supplied libs so there is no need to process them.
14269	   if test -z "$compiler_lib_search_path_CXX"; then
14270	     compiler_lib_search_path_CXX="${prev}${p}"
14271	   else
14272	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14273	   fi
14274	   ;;
14275	 # The "-l" case would never come before the object being
14276	 # linked, so don't bother handling this case.
14277	 esac
14278       else
14279	 if test -z "$postdeps_CXX"; then
14280	   postdeps_CXX="${prev}${p}"
14281	 else
14282	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14283	 fi
14284       fi
14285       ;;
14286
14287    *.$objext)
14288       # This assumes that the test object file only shows up
14289       # once in the compiler output.
14290       if test "$p" = "conftest.$objext"; then
14291	 pre_test_object_deps_done=yes
14292	 continue
14293       fi
14294
14295       if test "$pre_test_object_deps_done" = no; then
14296	 if test -z "$predep_objects_CXX"; then
14297	   predep_objects_CXX="$p"
14298	 else
14299	   predep_objects_CXX="$predep_objects_CXX $p"
14300	 fi
14301       else
14302	 if test -z "$postdep_objects_CXX"; then
14303	   postdep_objects_CXX="$p"
14304	 else
14305	   postdep_objects_CXX="$postdep_objects_CXX $p"
14306	 fi
14307       fi
14308       ;;
14309
14310    *) ;; # Ignore the rest.
14311
14312    esac
14313  done
14314
14315  # Clean up.
14316  rm -f a.out a.exe
14317else
14318  echo "libtool.m4: error: problem compiling CXX test program"
14319fi
14320
14321$rm -f confest.$objext
14322
14323# PORTME: override above test on systems where it is broken
14324case $host_os in
14325interix3*)
14326  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14327  # hack all around it, let's just trust "g++" to DTRT.
14328  predep_objects_CXX=
14329  postdep_objects_CXX=
14330  postdeps_CXX=
14331  ;;
14332
14333solaris*)
14334  case $cc_basename in
14335  CC*)
14336    # Adding this requires a known-good setup of shared libraries for
14337    # Sun compiler versions before 5.6, else PIC objects from an old
14338    # archive will be linked into the output, leading to subtle bugs.
14339    postdeps_CXX='-lCstd -lCrun'
14340    ;;
14341  esac
14342  ;;
14343esac
14344
14345
14346case " $postdeps_CXX " in
14347*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14348esac
14349
14350lt_prog_compiler_wl_CXX=
14351lt_prog_compiler_pic_CXX=
14352lt_prog_compiler_static_CXX=
14353
14354echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14355echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14356
14357  # C++ specific cases for pic, static, wl, etc.
14358  if test "$GXX" = yes; then
14359    lt_prog_compiler_wl_CXX='-Wl,'
14360    lt_prog_compiler_static_CXX='-static'
14361
14362    case $host_os in
14363    aix*)
14364      # All AIX code is PIC.
14365      if test "$host_cpu" = ia64; then
14366	# AIX 5 now supports IA64 processor
14367	lt_prog_compiler_static_CXX='-Bstatic'
14368      fi
14369      ;;
14370    amigaos*)
14371      # FIXME: we need at least 68020 code to build shared libraries, but
14372      # adding the `-m68020' flag to GCC prevents building anything better,
14373      # like `-m68040'.
14374      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14375      ;;
14376    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14377      # PIC is the default for these OSes.
14378      ;;
14379    mingw* | os2* | pw32*)
14380      # This hack is so that the source file can tell whether it is being
14381      # built for inclusion in a dll (and should export symbols for example).
14382      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14383      ;;
14384    darwin* | rhapsody*)
14385      # PIC is the default on this platform
14386      # Common symbols not allowed in MH_DYLIB files
14387      lt_prog_compiler_pic_CXX='-fno-common'
14388      ;;
14389    *djgpp*)
14390      # DJGPP does not support shared libraries at all
14391      lt_prog_compiler_pic_CXX=
14392      ;;
14393    interix3*)
14394      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14395      # Instead, we relocate shared libraries at runtime.
14396      ;;
14397    sysv4*MP*)
14398      if test -d /usr/nec; then
14399	lt_prog_compiler_pic_CXX=-Kconform_pic
14400      fi
14401      ;;
14402    hpux*)
14403      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14404      # not for PA HP-UX.
14405      case $host_cpu in
14406      hppa*64*|ia64*)
14407	;;
14408      *)
14409	lt_prog_compiler_pic_CXX='-fPIC'
14410	;;
14411      esac
14412      ;;
14413    *)
14414      lt_prog_compiler_pic_CXX='-fPIC'
14415      ;;
14416    esac
14417  else
14418    case $host_os in
14419      aix4* | aix5*)
14420	# All AIX code is PIC.
14421	if test "$host_cpu" = ia64; then
14422	  # AIX 5 now supports IA64 processor
14423	  lt_prog_compiler_static_CXX='-Bstatic'
14424	else
14425	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14426	fi
14427	;;
14428      chorus*)
14429	case $cc_basename in
14430	cxch68*)
14431	  # Green Hills C++ Compiler
14432	  # _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"
14433	  ;;
14434	esac
14435	;;
14436       darwin*)
14437         # PIC is the default on this platform
14438         # Common symbols not allowed in MH_DYLIB files
14439         case $cc_basename in
14440           xlc*)
14441           lt_prog_compiler_pic_CXX='-qnocommon'
14442           lt_prog_compiler_wl_CXX='-Wl,'
14443           ;;
14444         esac
14445       ;;
14446      dgux*)
14447	case $cc_basename in
14448	  ec++*)
14449	    lt_prog_compiler_pic_CXX='-KPIC'
14450	    ;;
14451	  ghcx*)
14452	    # Green Hills C++ Compiler
14453	    lt_prog_compiler_pic_CXX='-pic'
14454	    ;;
14455	  *)
14456	    ;;
14457	esac
14458	;;
14459      freebsd* | kfreebsd*-gnu | dragonfly*)
14460	# FreeBSD uses GNU C++
14461	;;
14462      hpux9* | hpux10* | hpux11*)
14463	case $cc_basename in
14464	  CC*)
14465	    lt_prog_compiler_wl_CXX='-Wl,'
14466	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14467	    if test "$host_cpu" != ia64; then
14468	      lt_prog_compiler_pic_CXX='+Z'
14469	    fi
14470	    ;;
14471	  aCC*)
14472	    lt_prog_compiler_wl_CXX='-Wl,'
14473	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14474	    case $host_cpu in
14475	    hppa*64*|ia64*)
14476	      # +Z the default
14477	      ;;
14478	    *)
14479	      lt_prog_compiler_pic_CXX='+Z'
14480	      ;;
14481	    esac
14482	    ;;
14483	  *)
14484	    ;;
14485	esac
14486	;;
14487      interix*)
14488	# This is c89, which is MS Visual C++ (no shared libs)
14489	# Anyone wants to do a port?
14490	;;
14491      irix5* | irix6* | nonstopux*)
14492	case $cc_basename in
14493	  CC*)
14494	    lt_prog_compiler_wl_CXX='-Wl,'
14495	    lt_prog_compiler_static_CXX='-non_shared'
14496	    # CC pic flag -KPIC is the default.
14497	    ;;
14498	  *)
14499	    ;;
14500	esac
14501	;;
14502      linux*)
14503	case $cc_basename in
14504	  KCC*)
14505	    # KAI C++ Compiler
14506	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14507	    lt_prog_compiler_pic_CXX='-fPIC'
14508	    ;;
14509	  icpc* | ecpc*)
14510	    # Intel C++
14511	    lt_prog_compiler_wl_CXX='-Wl,'
14512	    lt_prog_compiler_pic_CXX='-KPIC'
14513	    lt_prog_compiler_static_CXX='-static'
14514	    ;;
14515	  pgCC*)
14516	    # Portland Group C++ compiler.
14517	    lt_prog_compiler_wl_CXX='-Wl,'
14518	    lt_prog_compiler_pic_CXX='-fpic'
14519	    lt_prog_compiler_static_CXX='-Bstatic'
14520	    ;;
14521	  cxx*)
14522	    # Compaq C++
14523	    # Make sure the PIC flag is empty.  It appears that all Alpha
14524	    # Linux and Compaq Tru64 Unix objects are PIC.
14525	    lt_prog_compiler_pic_CXX=
14526	    lt_prog_compiler_static_CXX='-non_shared'
14527	    ;;
14528	  *)
14529	    ;;
14530	esac
14531	;;
14532      lynxos*)
14533	;;
14534      m88k*)
14535	;;
14536      mvs*)
14537	case $cc_basename in
14538	  cxx*)
14539	    lt_prog_compiler_pic_CXX='-W c,exportall'
14540	    ;;
14541	  *)
14542	    ;;
14543	esac
14544	;;
14545      netbsd*)
14546	;;
14547      osf3* | osf4* | osf5*)
14548	case $cc_basename in
14549	  KCC*)
14550	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14551	    ;;
14552	  RCC*)
14553	    # Rational C++ 2.4.1
14554	    lt_prog_compiler_pic_CXX='-pic'
14555	    ;;
14556	  cxx*)
14557	    # Digital/Compaq C++
14558	    lt_prog_compiler_wl_CXX='-Wl,'
14559	    # Make sure the PIC flag is empty.  It appears that all Alpha
14560	    # Linux and Compaq Tru64 Unix objects are PIC.
14561	    lt_prog_compiler_pic_CXX=
14562	    lt_prog_compiler_static_CXX='-non_shared'
14563	    ;;
14564	  *)
14565	    ;;
14566	esac
14567	;;
14568      psos*)
14569	;;
14570      solaris*)
14571	case $cc_basename in
14572	  CC*)
14573	    # Sun C++ 4.2, 5.x and Centerline C++
14574	    lt_prog_compiler_pic_CXX='-KPIC'
14575	    lt_prog_compiler_static_CXX='-Bstatic'
14576	    lt_prog_compiler_wl_CXX='-Qoption ld '
14577	    ;;
14578	  gcx*)
14579	    # Green Hills C++ Compiler
14580	    lt_prog_compiler_pic_CXX='-PIC'
14581	    ;;
14582	  *)
14583	    ;;
14584	esac
14585	;;
14586      sunos4*)
14587	case $cc_basename in
14588	  CC*)
14589	    # Sun C++ 4.x
14590	    lt_prog_compiler_pic_CXX='-pic'
14591	    lt_prog_compiler_static_CXX='-Bstatic'
14592	    ;;
14593	  lcc*)
14594	    # Lucid
14595	    lt_prog_compiler_pic_CXX='-pic'
14596	    ;;
14597	  *)
14598	    ;;
14599	esac
14600	;;
14601      tandem*)
14602	case $cc_basename in
14603	  NCC*)
14604	    # NonStop-UX NCC 3.20
14605	    lt_prog_compiler_pic_CXX='-KPIC'
14606	    ;;
14607	  *)
14608	    ;;
14609	esac
14610	;;
14611      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14612	case $cc_basename in
14613	  CC*)
14614	    lt_prog_compiler_wl_CXX='-Wl,'
14615	    lt_prog_compiler_pic_CXX='-KPIC'
14616	    lt_prog_compiler_static_CXX='-Bstatic'
14617	    ;;
14618	esac
14619	;;
14620      vxworks*)
14621	;;
14622      *)
14623	lt_prog_compiler_can_build_shared_CXX=no
14624	;;
14625    esac
14626  fi
14627
14628echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14629echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14630
14631#
14632# Check to make sure the PIC flag actually works.
14633#
14634if test -n "$lt_prog_compiler_pic_CXX"; then
14635
14636echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14637echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14638if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14639  echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641  lt_prog_compiler_pic_works_CXX=no
14642  ac_outfile=conftest.$ac_objext
14643   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14644   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14645   # Insert the option either (1) after the last *FLAGS variable, or
14646   # (2) before a word containing "conftest.", or (3) at the end.
14647   # Note that $ac_compile itself does not contain backslashes and begins
14648   # with a dollar sign (not a hyphen), so the echo should work correctly.
14649   # The option is referenced via a variable to avoid confusing sed.
14650   lt_compile=`echo "$ac_compile" | $SED \
14651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653   -e 's:$: $lt_compiler_flag:'`
14654   (eval echo "\"\$as_me:14654: $lt_compile\"" >&5)
14655   (eval "$lt_compile" 2>conftest.err)
14656   ac_status=$?
14657   cat conftest.err >&5
14658   echo "$as_me:14658: \$? = $ac_status" >&5
14659   if (exit $ac_status) && test -s "$ac_outfile"; then
14660     # The compiler can only warn and ignore the option if not recognized
14661     # So say no if there are warnings other than the usual output.
14662     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14665       lt_prog_compiler_pic_works_CXX=yes
14666     fi
14667   fi
14668   $rm conftest*
14669
14670fi
14671echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14672echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14673
14674if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14675    case $lt_prog_compiler_pic_CXX in
14676     "" | " "*) ;;
14677     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14678     esac
14679else
14680    lt_prog_compiler_pic_CXX=
14681     lt_prog_compiler_can_build_shared_CXX=no
14682fi
14683
14684fi
14685case $host_os in
14686  # For platforms which do not support PIC, -DPIC is meaningless:
14687  *djgpp*)
14688    lt_prog_compiler_pic_CXX=
14689    ;;
14690  *)
14691    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14692    ;;
14693esac
14694
14695#
14696# Check to make sure the static flag actually works.
14697#
14698wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14699echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14700echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14701if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14702  echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
14704  lt_prog_compiler_static_works_CXX=no
14705   save_LDFLAGS="$LDFLAGS"
14706   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14707   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14708   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14709     # The linker can only warn and ignore the option if not recognized
14710     # So say no if there are warnings
14711     if test -s conftest.err; then
14712       # Append any errors to the config.log.
14713       cat conftest.err 1>&5
14714       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14715       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14716       if diff conftest.exp conftest.er2 >/dev/null; then
14717         lt_prog_compiler_static_works_CXX=yes
14718       fi
14719     else
14720       lt_prog_compiler_static_works_CXX=yes
14721     fi
14722   fi
14723   $rm conftest*
14724   LDFLAGS="$save_LDFLAGS"
14725
14726fi
14727echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14728echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14729
14730if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14731    :
14732else
14733    lt_prog_compiler_static_CXX=
14734fi
14735
14736
14737echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14738echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14739if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14740  echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742  lt_cv_prog_compiler_c_o_CXX=no
14743   $rm -r conftest 2>/dev/null
14744   mkdir conftest
14745   cd conftest
14746   mkdir out
14747   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14748
14749   lt_compiler_flag="-o out/conftest2.$ac_objext"
14750   # Insert the option either (1) after the last *FLAGS variable, or
14751   # (2) before a word containing "conftest.", or (3) at the end.
14752   # Note that $ac_compile itself does not contain backslashes and begins
14753   # with a dollar sign (not a hyphen), so the echo should work correctly.
14754   lt_compile=`echo "$ac_compile" | $SED \
14755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14757   -e 's:$: $lt_compiler_flag:'`
14758   (eval echo "\"\$as_me:14758: $lt_compile\"" >&5)
14759   (eval "$lt_compile" 2>out/conftest.err)
14760   ac_status=$?
14761   cat out/conftest.err >&5
14762   echo "$as_me:14762: \$? = $ac_status" >&5
14763   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14764   then
14765     # The compiler can only warn and ignore the option if not recognized
14766     # So say no if there are warnings
14767     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14768     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14769     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14770       lt_cv_prog_compiler_c_o_CXX=yes
14771     fi
14772   fi
14773   chmod u+w . 2>&5
14774   $rm conftest*
14775   # SGI C++ compiler will create directory out/ii_files/ for
14776   # template instantiation
14777   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14778   $rm out/* && rmdir out
14779   cd ..
14780   rmdir conftest
14781   $rm conftest*
14782
14783fi
14784echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14785echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14786
14787
14788hard_links="nottested"
14789if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14790  # do not overwrite the value of need_locks provided by the user
14791  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14792echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14793  hard_links=yes
14794  $rm conftest*
14795  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14796  touch conftest.a
14797  ln conftest.a conftest.b 2>&5 || hard_links=no
14798  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14799  echo "$as_me:$LINENO: result: $hard_links" >&5
14800echo "${ECHO_T}$hard_links" >&6
14801  if test "$hard_links" = no; then
14802    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14803echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14804    need_locks=warn
14805  fi
14806else
14807  need_locks=no
14808fi
14809
14810echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14811echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14812
14813  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14814  case $host_os in
14815  aix4* | aix5*)
14816    # If we're using GNU nm, then we don't want the "-C" option.
14817    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14818    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14819      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'
14820    else
14821      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'
14822    fi
14823    ;;
14824  pw32*)
14825    export_symbols_cmds_CXX="$ltdll_cmds"
14826  ;;
14827  cygwin* | mingw*)
14828    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'
14829  ;;
14830  *)
14831    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14832  ;;
14833  esac
14834
14835echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14836echo "${ECHO_T}$ld_shlibs_CXX" >&6
14837test "$ld_shlibs_CXX" = no && can_build_shared=no
14838
14839#
14840# Do we need to explicitly link libc?
14841#
14842case "x$archive_cmds_need_lc_CXX" in
14843x|xyes)
14844  # Assume -lc should be added
14845  archive_cmds_need_lc_CXX=yes
14846
14847  if test "$enable_shared" = yes && test "$GCC" = yes; then
14848    case $archive_cmds_CXX in
14849    *'~'*)
14850      # FIXME: we may have to deal with multi-command sequences.
14851      ;;
14852    '$CC '*)
14853      # Test whether the compiler implicitly links with -lc since on some
14854      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14855      # to ld, don't add -lc before -lgcc.
14856      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14857echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14858      $rm conftest*
14859      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14860
14861      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862  (eval $ac_compile) 2>&5
14863  ac_status=$?
14864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865  (exit $ac_status); } 2>conftest.err; then
14866        soname=conftest
14867        lib=conftest
14868        libobjs=conftest.$ac_objext
14869        deplibs=
14870        wl=$lt_prog_compiler_wl_CXX
14871	pic_flag=$lt_prog_compiler_pic_CXX
14872        compiler_flags=-v
14873        linker_flags=-v
14874        verstring=
14875        output_objdir=.
14876        libname=conftest
14877        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14878        allow_undefined_flag_CXX=
14879        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14880  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14881  ac_status=$?
14882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883  (exit $ac_status); }
14884        then
14885	  archive_cmds_need_lc_CXX=no
14886        else
14887	  archive_cmds_need_lc_CXX=yes
14888        fi
14889        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14890      else
14891        cat conftest.err 1>&5
14892      fi
14893      $rm conftest*
14894      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14895echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14896      ;;
14897    esac
14898  fi
14899  ;;
14900esac
14901
14902echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14903echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14904library_names_spec=
14905libname_spec='lib$name'
14906soname_spec=
14907shrext_cmds=".so"
14908postinstall_cmds=
14909postuninstall_cmds=
14910finish_cmds=
14911finish_eval=
14912shlibpath_var=
14913shlibpath_overrides_runpath=unknown
14914version_type=none
14915dynamic_linker="$host_os ld.so"
14916sys_lib_dlsearch_path_spec="/lib /usr/lib"
14917if test "$GCC" = yes; then
14918  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14919  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14920    # if the path contains ";" then we assume it to be the separator
14921    # otherwise default to the standard path separator (i.e. ":") - it is
14922    # assumed that no part of a normal pathname contains ";" but that should
14923    # okay in the real world where ";" in dirpaths is itself problematic.
14924    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14925  else
14926    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14927  fi
14928else
14929  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14930fi
14931need_lib_prefix=unknown
14932hardcode_into_libs=no
14933
14934# when you set need_version to no, make sure it does not cause -set_version
14935# flags to be left without arguments
14936need_version=unknown
14937
14938case $host_os in
14939aix3*)
14940  version_type=linux
14941  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14942  shlibpath_var=LIBPATH
14943
14944  # AIX 3 has no versioning support, so we append a major version to the name.
14945  soname_spec='${libname}${release}${shared_ext}$major'
14946  ;;
14947
14948aix4* | aix5*)
14949  version_type=linux
14950  need_lib_prefix=no
14951  need_version=no
14952  hardcode_into_libs=yes
14953  if test "$host_cpu" = ia64; then
14954    # AIX 5 supports IA64
14955    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14956    shlibpath_var=LD_LIBRARY_PATH
14957  else
14958    # With GCC up to 2.95.x, collect2 would create an import file
14959    # for dependence libraries.  The import file would start with
14960    # the line `#! .'.  This would cause the generated library to
14961    # depend on `.', always an invalid library.  This was fixed in
14962    # development snapshots of GCC prior to 3.0.
14963    case $host_os in
14964      aix4 | aix4.[01] | aix4.[01].*)
14965      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14966	   echo ' yes '
14967	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14968	:
14969      else
14970	can_build_shared=no
14971      fi
14972      ;;
14973    esac
14974    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14975    # soname into executable. Probably we can add versioning support to
14976    # collect2, so additional links can be useful in future.
14977    if test "$aix_use_runtimelinking" = yes; then
14978      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14979      # instead of lib<name>.a to let people know that these are not
14980      # typical AIX shared libraries.
14981      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982    else
14983      # We preserve .a as extension for shared libraries through AIX4.2
14984      # and later when we are not doing run time linking.
14985      library_names_spec='${libname}${release}.a $libname.a'
14986      soname_spec='${libname}${release}${shared_ext}$major'
14987    fi
14988    shlibpath_var=LIBPATH
14989  fi
14990  ;;
14991
14992amigaos*)
14993  library_names_spec='$libname.ixlibrary $libname.a'
14994  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14995  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'
14996  ;;
14997
14998beos*)
14999  library_names_spec='${libname}${shared_ext}'
15000  dynamic_linker="$host_os ld.so"
15001  shlibpath_var=LIBRARY_PATH
15002  ;;
15003
15004bsdi[45]*)
15005  version_type=linux
15006  need_version=no
15007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008  soname_spec='${libname}${release}${shared_ext}$major'
15009  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15010  shlibpath_var=LD_LIBRARY_PATH
15011  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15012  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15013  # the default ld.so.conf also contains /usr/contrib/lib and
15014  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15015  # libtool to hard-code these into programs
15016  ;;
15017
15018cygwin* | mingw* | pw32*)
15019  version_type=windows
15020  shrext_cmds=".dll"
15021  need_version=no
15022  need_lib_prefix=no
15023
15024  case $GCC,$host_os in
15025  yes,cygwin* | yes,mingw* | yes,pw32*)
15026    library_names_spec='$libname.dll.a'
15027    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15028    postinstall_cmds='base_file=`basename \${file}`~
15029      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15030      dldir=$destdir/`dirname \$dlpath`~
15031      test -d \$dldir || mkdir -p \$dldir~
15032      $install_prog $dir/$dlname \$dldir/$dlname~
15033      chmod a+x \$dldir/$dlname'
15034    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15035      dlpath=$dir/\$dldll~
15036       $rm \$dlpath'
15037    shlibpath_overrides_runpath=yes
15038
15039    case $host_os in
15040    cygwin*)
15041      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15042      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15043      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15044      ;;
15045    mingw*)
15046      # MinGW DLLs use traditional 'lib' prefix
15047      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15048      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15049      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15050        # It is most probably a Windows format PATH printed by
15051        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15052        # path with ; separators, and with drive letters. We can handle the
15053        # drive letters (cygwin fileutils understands them), so leave them,
15054        # especially as we might pass files found there to a mingw objdump,
15055        # which wouldn't understand a cygwinified path. Ahh.
15056        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15057      else
15058        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15059      fi
15060      ;;
15061    pw32*)
15062      # pw32 DLLs use 'pw' prefix rather than 'lib'
15063      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15064      ;;
15065    esac
15066    ;;
15067
15068  *)
15069    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15070    ;;
15071  esac
15072  dynamic_linker='Win32 ld.exe'
15073  # FIXME: first we should search . and the directory the executable is in
15074  shlibpath_var=PATH
15075  ;;
15076
15077darwin* | rhapsody*)
15078  dynamic_linker="$host_os dyld"
15079  version_type=darwin
15080  need_lib_prefix=no
15081  need_version=no
15082  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15083  soname_spec='${libname}${release}${major}$shared_ext'
15084  shlibpath_overrides_runpath=yes
15085  shlibpath_var=DYLD_LIBRARY_PATH
15086  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15087  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15088  if test "$GCC" = yes; then
15089    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"`
15090  else
15091    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15092  fi
15093  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15094  ;;
15095
15096dgux*)
15097  version_type=linux
15098  need_lib_prefix=no
15099  need_version=no
15100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15101  soname_spec='${libname}${release}${shared_ext}$major'
15102  shlibpath_var=LD_LIBRARY_PATH
15103  ;;
15104
15105freebsd1*)
15106  dynamic_linker=no
15107  ;;
15108
15109kfreebsd*-gnu)
15110  version_type=linux
15111  need_lib_prefix=no
15112  need_version=no
15113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15114  soname_spec='${libname}${release}${shared_ext}$major'
15115  shlibpath_var=LD_LIBRARY_PATH
15116  shlibpath_overrides_runpath=no
15117  hardcode_into_libs=yes
15118  dynamic_linker='GNU ld.so'
15119  ;;
15120
15121freebsd* | dragonfly*)
15122  # DragonFly does not have aout.  When/if they implement a new
15123  # versioning mechanism, adjust this.
15124  if test -x /usr/bin/objformat; then
15125    objformat=`/usr/bin/objformat`
15126  else
15127    case $host_os in
15128    freebsd[123]*) objformat=aout ;;
15129    *) objformat=elf ;;
15130    esac
15131  fi
15132  version_type=freebsd-$objformat
15133  case $version_type in
15134    freebsd-elf*)
15135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15136      need_version=no
15137      need_lib_prefix=no
15138      ;;
15139    freebsd-*)
15140      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15141      need_version=yes
15142      ;;
15143  esac
15144  shlibpath_var=LD_LIBRARY_PATH
15145  case $host_os in
15146  freebsd2*)
15147    shlibpath_overrides_runpath=yes
15148    ;;
15149  freebsd3.[01]* | freebsdelf3.[01]*)
15150    shlibpath_overrides_runpath=yes
15151    hardcode_into_libs=yes
15152    ;;
15153  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15154  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15155    shlibpath_overrides_runpath=no
15156    hardcode_into_libs=yes
15157    ;;
15158  freebsd*) # from 4.6 on
15159    shlibpath_overrides_runpath=yes
15160    hardcode_into_libs=yes
15161    ;;
15162  esac
15163  ;;
15164
15165gnu*)
15166  version_type=linux
15167  need_lib_prefix=no
15168  need_version=no
15169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15170  soname_spec='${libname}${release}${shared_ext}$major'
15171  shlibpath_var=LD_LIBRARY_PATH
15172  hardcode_into_libs=yes
15173  ;;
15174
15175hpux9* | hpux10* | hpux11*)
15176  # Give a soname corresponding to the major version so that dld.sl refuses to
15177  # link against other versions.
15178  version_type=sunos
15179  need_lib_prefix=no
15180  need_version=no
15181  case $host_cpu in
15182  ia64*)
15183    shrext_cmds='.so'
15184    hardcode_into_libs=yes
15185    dynamic_linker="$host_os dld.so"
15186    shlibpath_var=LD_LIBRARY_PATH
15187    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189    soname_spec='${libname}${release}${shared_ext}$major'
15190    if test "X$HPUX_IA64_MODE" = X32; then
15191      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15192    else
15193      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15194    fi
15195    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15196    ;;
15197   hppa*64*)
15198     shrext_cmds='.sl'
15199     hardcode_into_libs=yes
15200     dynamic_linker="$host_os dld.sl"
15201     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204     soname_spec='${libname}${release}${shared_ext}$major'
15205     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15206     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15207     ;;
15208   *)
15209    shrext_cmds='.sl'
15210    dynamic_linker="$host_os dld.sl"
15211    shlibpath_var=SHLIB_PATH
15212    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214    soname_spec='${libname}${release}${shared_ext}$major'
15215    ;;
15216  esac
15217  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15218  postinstall_cmds='chmod 555 $lib'
15219  ;;
15220
15221interix3*)
15222  version_type=linux
15223  need_lib_prefix=no
15224  need_version=no
15225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15226  soname_spec='${libname}${release}${shared_ext}$major'
15227  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15228  shlibpath_var=LD_LIBRARY_PATH
15229  shlibpath_overrides_runpath=no
15230  hardcode_into_libs=yes
15231  ;;
15232
15233irix5* | irix6* | nonstopux*)
15234  case $host_os in
15235    nonstopux*) version_type=nonstopux ;;
15236    *)
15237	if test "$lt_cv_prog_gnu_ld" = yes; then
15238		version_type=linux
15239	else
15240		version_type=irix
15241	fi ;;
15242  esac
15243  need_lib_prefix=no
15244  need_version=no
15245  soname_spec='${libname}${release}${shared_ext}$major'
15246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15247  case $host_os in
15248  irix5* | nonstopux*)
15249    libsuff= shlibsuff=
15250    ;;
15251  *)
15252    case $LD in # libtool.m4 will add one of these switches to LD
15253    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15254      libsuff= shlibsuff= libmagic=32-bit;;
15255    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15256      libsuff=32 shlibsuff=N32 libmagic=N32;;
15257    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15258      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15259    *) libsuff= shlibsuff= libmagic=never-match;;
15260    esac
15261    ;;
15262  esac
15263  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15264  shlibpath_overrides_runpath=no
15265  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15266  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15267  hardcode_into_libs=yes
15268  ;;
15269
15270# No shared lib support for Linux oldld, aout, or coff.
15271linux*oldld* | linux*aout* | linux*coff*)
15272  dynamic_linker=no
15273  ;;
15274
15275# This must be Linux ELF.
15276linux*)
15277  version_type=linux
15278  need_lib_prefix=no
15279  need_version=no
15280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281  soname_spec='${libname}${release}${shared_ext}$major'
15282  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15283  shlibpath_var=LD_LIBRARY_PATH
15284  shlibpath_overrides_runpath=no
15285  # This implies no fast_install, which is unacceptable.
15286  # Some rework will be needed to allow for fast_install
15287  # before this can be enabled.
15288  hardcode_into_libs=yes
15289
15290  # Append ld.so.conf contents to the search path
15291  if test -f /etc/ld.so.conf; then
15292    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' ' '`
15293    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15294  fi
15295
15296  # We used to test for /lib/ld.so.1 and disable shared libraries on
15297  # powerpc, because MkLinux only supported shared libraries with the
15298  # GNU dynamic linker.  Since this was broken with cross compilers,
15299  # most powerpc-linux boxes support dynamic linking these days and
15300  # people can always --disable-shared, the test was removed, and we
15301  # assume the GNU/Linux dynamic linker is in use.
15302  dynamic_linker='GNU/Linux ld.so'
15303  ;;
15304
15305knetbsd*-gnu)
15306  version_type=linux
15307  need_lib_prefix=no
15308  need_version=no
15309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15310  soname_spec='${libname}${release}${shared_ext}$major'
15311  shlibpath_var=LD_LIBRARY_PATH
15312  shlibpath_overrides_runpath=no
15313  hardcode_into_libs=yes
15314  dynamic_linker='GNU ld.so'
15315  ;;
15316
15317netbsd*)
15318  version_type=sunos
15319  need_lib_prefix=no
15320  need_version=no
15321  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15322    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15323    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15324    dynamic_linker='NetBSD (a.out) ld.so'
15325  else
15326    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15327    soname_spec='${libname}${release}${shared_ext}$major'
15328    dynamic_linker='NetBSD ld.elf_so'
15329  fi
15330  shlibpath_var=LD_LIBRARY_PATH
15331  shlibpath_overrides_runpath=yes
15332  hardcode_into_libs=yes
15333  ;;
15334
15335newsos6)
15336  version_type=linux
15337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338  shlibpath_var=LD_LIBRARY_PATH
15339  shlibpath_overrides_runpath=yes
15340  ;;
15341
15342nto-qnx*)
15343  version_type=linux
15344  need_lib_prefix=no
15345  need_version=no
15346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347  soname_spec='${libname}${release}${shared_ext}$major'
15348  shlibpath_var=LD_LIBRARY_PATH
15349  shlibpath_overrides_runpath=yes
15350  ;;
15351
15352openbsd*)
15353  version_type=sunos
15354  sys_lib_dlsearch_path_spec="/usr/lib"
15355  need_lib_prefix=no
15356  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15357  case $host_os in
15358    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15359    *)                         need_version=no  ;;
15360  esac
15361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15362  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15363  shlibpath_var=LD_LIBRARY_PATH
15364  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15365    case $host_os in
15366      openbsd2.[89] | openbsd2.[89].*)
15367	shlibpath_overrides_runpath=no
15368	;;
15369      *)
15370	shlibpath_overrides_runpath=yes
15371	;;
15372      esac
15373  else
15374    shlibpath_overrides_runpath=yes
15375  fi
15376  ;;
15377
15378os2*)
15379  libname_spec='$name'
15380  shrext_cmds=".dll"
15381  need_lib_prefix=no
15382  library_names_spec='$libname${shared_ext} $libname.a'
15383  dynamic_linker='OS/2 ld.exe'
15384  shlibpath_var=LIBPATH
15385  ;;
15386
15387osf3* | osf4* | osf5*)
15388  version_type=osf
15389  need_lib_prefix=no
15390  need_version=no
15391  soname_spec='${libname}${release}${shared_ext}$major'
15392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393  shlibpath_var=LD_LIBRARY_PATH
15394  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15395  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15396  ;;
15397
15398solaris*)
15399  version_type=linux
15400  need_lib_prefix=no
15401  need_version=no
15402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403  soname_spec='${libname}${release}${shared_ext}$major'
15404  shlibpath_var=LD_LIBRARY_PATH
15405  shlibpath_overrides_runpath=yes
15406  hardcode_into_libs=yes
15407  # ldd complains unless libraries are executable
15408  postinstall_cmds='chmod +x $lib'
15409  ;;
15410
15411sunos4*)
15412  version_type=sunos
15413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15414  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15415  shlibpath_var=LD_LIBRARY_PATH
15416  shlibpath_overrides_runpath=yes
15417  if test "$with_gnu_ld" = yes; then
15418    need_lib_prefix=no
15419  fi
15420  need_version=yes
15421  ;;
15422
15423sysv4 | sysv4.3*)
15424  version_type=linux
15425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426  soname_spec='${libname}${release}${shared_ext}$major'
15427  shlibpath_var=LD_LIBRARY_PATH
15428  case $host_vendor in
15429    sni)
15430      shlibpath_overrides_runpath=no
15431      need_lib_prefix=no
15432      export_dynamic_flag_spec='${wl}-Blargedynsym'
15433      runpath_var=LD_RUN_PATH
15434      ;;
15435    siemens)
15436      need_lib_prefix=no
15437      ;;
15438    motorola)
15439      need_lib_prefix=no
15440      need_version=no
15441      shlibpath_overrides_runpath=no
15442      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15443      ;;
15444  esac
15445  ;;
15446
15447sysv4*MP*)
15448  if test -d /usr/nec ;then
15449    version_type=linux
15450    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15451    soname_spec='$libname${shared_ext}.$major'
15452    shlibpath_var=LD_LIBRARY_PATH
15453  fi
15454  ;;
15455
15456sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15457  version_type=freebsd-elf
15458  need_lib_prefix=no
15459  need_version=no
15460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15461  soname_spec='${libname}${release}${shared_ext}$major'
15462  shlibpath_var=LD_LIBRARY_PATH
15463  hardcode_into_libs=yes
15464  if test "$with_gnu_ld" = yes; then
15465    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15466    shlibpath_overrides_runpath=no
15467  else
15468    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15469    shlibpath_overrides_runpath=yes
15470    case $host_os in
15471      sco3.2v5*)
15472        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15473	;;
15474    esac
15475  fi
15476  sys_lib_dlsearch_path_spec='/usr/lib'
15477  ;;
15478
15479uts4*)
15480  version_type=linux
15481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482  soname_spec='${libname}${release}${shared_ext}$major'
15483  shlibpath_var=LD_LIBRARY_PATH
15484  ;;
15485
15486*)
15487  dynamic_linker=no
15488  ;;
15489esac
15490echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15491echo "${ECHO_T}$dynamic_linker" >&6
15492test "$dynamic_linker" = no && can_build_shared=no
15493
15494variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15495if test "$GCC" = yes; then
15496  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15497fi
15498
15499echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15500echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15501hardcode_action_CXX=
15502if test -n "$hardcode_libdir_flag_spec_CXX" || \
15503   test -n "$runpath_var_CXX" || \
15504   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15505
15506  # We can hardcode non-existant directories.
15507  if test "$hardcode_direct_CXX" != no &&
15508     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15509     # have to relink, otherwise we might link with an installed library
15510     # when we should be linking with a yet-to-be-installed one
15511     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15512     test "$hardcode_minus_L_CXX" != no; then
15513    # Linking always hardcodes the temporary library directory.
15514    hardcode_action_CXX=relink
15515  else
15516    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15517    hardcode_action_CXX=immediate
15518  fi
15519else
15520  # We cannot hardcode anything, or else we can only hardcode existing
15521  # directories.
15522  hardcode_action_CXX=unsupported
15523fi
15524echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15525echo "${ECHO_T}$hardcode_action_CXX" >&6
15526
15527if test "$hardcode_action_CXX" = relink; then
15528  # Fast installation is not supported
15529  enable_fast_install=no
15530elif test "$shlibpath_overrides_runpath" = yes ||
15531     test "$enable_shared" = no; then
15532  # Fast installation is not necessary
15533  enable_fast_install=needless
15534fi
15535
15536
15537# The else clause should only fire when bootstrapping the
15538# libtool distribution, otherwise you forgot to ship ltmain.sh
15539# with your package, and you will get complaints that there are
15540# no rules to generate ltmain.sh.
15541if test -f "$ltmain"; then
15542  # See if we are running on zsh, and set the options which allow our commands through
15543  # without removal of \ escapes.
15544  if test -n "${ZSH_VERSION+set}" ; then
15545    setopt NO_GLOB_SUBST
15546  fi
15547  # Now quote all the things that may contain metacharacters while being
15548  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15549  # variables and quote the copies for generation of the libtool script.
15550  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15551    SED SHELL STRIP \
15552    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15553    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15554    deplibs_check_method reload_flag reload_cmds need_locks \
15555    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15556    lt_cv_sys_global_symbol_to_c_name_address \
15557    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15558    old_postinstall_cmds old_postuninstall_cmds \
15559    compiler_CXX \
15560    CC_CXX \
15561    LD_CXX \
15562    lt_prog_compiler_wl_CXX \
15563    lt_prog_compiler_pic_CXX \
15564    lt_prog_compiler_static_CXX \
15565    lt_prog_compiler_no_builtin_flag_CXX \
15566    export_dynamic_flag_spec_CXX \
15567    thread_safe_flag_spec_CXX \
15568    whole_archive_flag_spec_CXX \
15569    enable_shared_with_static_runtimes_CXX \
15570    old_archive_cmds_CXX \
15571    old_archive_from_new_cmds_CXX \
15572    predep_objects_CXX \
15573    postdep_objects_CXX \
15574    predeps_CXX \
15575    postdeps_CXX \
15576    compiler_lib_search_path_CXX \
15577    archive_cmds_CXX \
15578    archive_expsym_cmds_CXX \
15579    postinstall_cmds_CXX \
15580    postuninstall_cmds_CXX \
15581    old_archive_from_expsyms_cmds_CXX \
15582    allow_undefined_flag_CXX \
15583    no_undefined_flag_CXX \
15584    export_symbols_cmds_CXX \
15585    hardcode_libdir_flag_spec_CXX \
15586    hardcode_libdir_flag_spec_ld_CXX \
15587    hardcode_libdir_separator_CXX \
15588    hardcode_automatic_CXX \
15589    module_cmds_CXX \
15590    module_expsym_cmds_CXX \
15591    lt_cv_prog_compiler_c_o_CXX \
15592    exclude_expsyms_CXX \
15593    include_expsyms_CXX; do
15594
15595    case $var in
15596    old_archive_cmds_CXX | \
15597    old_archive_from_new_cmds_CXX | \
15598    archive_cmds_CXX | \
15599    archive_expsym_cmds_CXX | \
15600    module_cmds_CXX | \
15601    module_expsym_cmds_CXX | \
15602    old_archive_from_expsyms_cmds_CXX | \
15603    export_symbols_cmds_CXX | \
15604    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15605    postinstall_cmds | postuninstall_cmds | \
15606    old_postinstall_cmds | old_postuninstall_cmds | \
15607    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15608      # Double-quote double-evaled strings.
15609      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15610      ;;
15611    *)
15612      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15613      ;;
15614    esac
15615  done
15616
15617  case $lt_echo in
15618  *'\$0 --fallback-echo"')
15619    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15620    ;;
15621  esac
15622
15623cfgfile="$ofile"
15624
15625  cat <<__EOF__ >> "$cfgfile"
15626# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15627
15628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15629
15630# Shell to use when invoking shell scripts.
15631SHELL=$lt_SHELL
15632
15633# Whether or not to build shared libraries.
15634build_libtool_libs=$enable_shared
15635
15636# Whether or not to build static libraries.
15637build_old_libs=$enable_static
15638
15639# Whether or not to add -lc for building shared libraries.
15640build_libtool_need_lc=$archive_cmds_need_lc_CXX
15641
15642# Whether or not to disallow shared libs when runtime libs are static
15643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15644
15645# Whether or not to optimize for fast installation.
15646fast_install=$enable_fast_install
15647
15648# The host system.
15649host_alias=$host_alias
15650host=$host
15651host_os=$host_os
15652
15653# The build system.
15654build_alias=$build_alias
15655build=$build
15656build_os=$build_os
15657
15658# An echo program that does not interpret backslashes.
15659echo=$lt_echo
15660
15661# The archiver.
15662AR=$lt_AR
15663AR_FLAGS=$lt_AR_FLAGS
15664
15665# A C compiler.
15666LTCC=$lt_LTCC
15667
15668# LTCC compiler flags.
15669LTCFLAGS=$lt_LTCFLAGS
15670
15671# A language-specific compiler.
15672CC=$lt_compiler_CXX
15673
15674# Is the compiler the GNU C compiler?
15675with_gcc=$GCC_CXX
15676
15677# An ERE matcher.
15678EGREP=$lt_EGREP
15679
15680# The linker used to build libraries.
15681LD=$lt_LD_CXX
15682
15683# Whether we need hard or soft links.
15684LN_S=$lt_LN_S
15685
15686# A BSD-compatible nm program.
15687NM=$lt_NM
15688
15689# A symbol stripping program
15690STRIP=$lt_STRIP
15691
15692# Used to examine libraries when file_magic_cmd begins "file"
15693MAGIC_CMD=$MAGIC_CMD
15694
15695# Used on cygwin: DLL creation program.
15696DLLTOOL="$DLLTOOL"
15697
15698# Used on cygwin: object dumper.
15699OBJDUMP="$OBJDUMP"
15700
15701# Used on cygwin: assembler.
15702AS="$AS"
15703
15704# The name of the directory that contains temporary libtool files.
15705objdir=$objdir
15706
15707# How to create reloadable object files.
15708reload_flag=$lt_reload_flag
15709reload_cmds=$lt_reload_cmds
15710
15711# How to pass a linker flag through the compiler.
15712wl=$lt_lt_prog_compiler_wl_CXX
15713
15714# Object file suffix (normally "o").
15715objext="$ac_objext"
15716
15717# Old archive suffix (normally "a").
15718libext="$libext"
15719
15720# Shared library suffix (normally ".so").
15721shrext_cmds='$shrext_cmds'
15722
15723# Executable file suffix (normally "").
15724exeext="$exeext"
15725
15726# Additional compiler flags for building library objects.
15727pic_flag=$lt_lt_prog_compiler_pic_CXX
15728pic_mode=$pic_mode
15729
15730# What is the maximum length of a command?
15731max_cmd_len=$lt_cv_sys_max_cmd_len
15732
15733# Does compiler simultaneously support -c and -o options?
15734compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15735
15736# Must we lock files when doing compilation?
15737need_locks=$lt_need_locks
15738
15739# Do we need the lib prefix for modules?
15740need_lib_prefix=$need_lib_prefix
15741
15742# Do we need a version for libraries?
15743need_version=$need_version
15744
15745# Whether dlopen is supported.
15746dlopen_support=$enable_dlopen
15747
15748# Whether dlopen of programs is supported.
15749dlopen_self=$enable_dlopen_self
15750
15751# Whether dlopen of statically linked programs is supported.
15752dlopen_self_static=$enable_dlopen_self_static
15753
15754# Compiler flag to prevent dynamic linking.
15755link_static_flag=$lt_lt_prog_compiler_static_CXX
15756
15757# Compiler flag to turn off builtin functions.
15758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15759
15760# Compiler flag to allow reflexive dlopens.
15761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15762
15763# Compiler flag to generate shared objects directly from archives.
15764whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15765
15766# Compiler flag to generate thread-safe objects.
15767thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15768
15769# Library versioning type.
15770version_type=$version_type
15771
15772# Format of library name prefix.
15773libname_spec=$lt_libname_spec
15774
15775# List of archive names.  First name is the real one, the rest are links.
15776# The last name is the one that the linker finds with -lNAME.
15777library_names_spec=$lt_library_names_spec
15778
15779# The coded name of the library, if different from the real name.
15780soname_spec=$lt_soname_spec
15781
15782# Commands used to build and install an old-style archive.
15783RANLIB=$lt_RANLIB
15784old_archive_cmds=$lt_old_archive_cmds_CXX
15785old_postinstall_cmds=$lt_old_postinstall_cmds
15786old_postuninstall_cmds=$lt_old_postuninstall_cmds
15787
15788# Create an old-style archive from a shared archive.
15789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15790
15791# Create a temporary old-style archive to link instead of a shared archive.
15792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15793
15794# Commands used to build and install a shared archive.
15795archive_cmds=$lt_archive_cmds_CXX
15796archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15797postinstall_cmds=$lt_postinstall_cmds
15798postuninstall_cmds=$lt_postuninstall_cmds
15799
15800# Commands used to build a loadable module (assumed same as above if empty)
15801module_cmds=$lt_module_cmds_CXX
15802module_expsym_cmds=$lt_module_expsym_cmds_CXX
15803
15804# Commands to strip libraries.
15805old_striplib=$lt_old_striplib
15806striplib=$lt_striplib
15807
15808# Dependencies to place before the objects being linked to create a
15809# shared library.
15810predep_objects=$lt_predep_objects_CXX
15811
15812# Dependencies to place after the objects being linked to create a
15813# shared library.
15814postdep_objects=$lt_postdep_objects_CXX
15815
15816# Dependencies to place before the objects being linked to create a
15817# shared library.
15818predeps=$lt_predeps_CXX
15819
15820# Dependencies to place after the objects being linked to create a
15821# shared library.
15822postdeps=$lt_postdeps_CXX
15823
15824# The library search path used internally by the compiler when linking
15825# a shared library.
15826compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15827
15828# Method to check whether dependent libraries are shared objects.
15829deplibs_check_method=$lt_deplibs_check_method
15830
15831# Command to use when deplibs_check_method == file_magic.
15832file_magic_cmd=$lt_file_magic_cmd
15833
15834# Flag that allows shared libraries with undefined symbols to be built.
15835allow_undefined_flag=$lt_allow_undefined_flag_CXX
15836
15837# Flag that forces no undefined symbols.
15838no_undefined_flag=$lt_no_undefined_flag_CXX
15839
15840# Commands used to finish a libtool library installation in a directory.
15841finish_cmds=$lt_finish_cmds
15842
15843# Same as above, but a single script fragment to be evaled but not shown.
15844finish_eval=$lt_finish_eval
15845
15846# Take the output of nm and produce a listing of raw symbols and C names.
15847global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15848
15849# Transform the output of nm in a proper C declaration
15850global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15851
15852# Transform the output of nm in a C name address pair
15853global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15854
15855# This is the shared library runtime path variable.
15856runpath_var=$runpath_var
15857
15858# This is the shared library path variable.
15859shlibpath_var=$shlibpath_var
15860
15861# Is shlibpath searched before the hard-coded library search path?
15862shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15863
15864# How to hardcode a shared library path into an executable.
15865hardcode_action=$hardcode_action_CXX
15866
15867# Whether we should hardcode library paths into libraries.
15868hardcode_into_libs=$hardcode_into_libs
15869
15870# Flag to hardcode \$libdir into a binary during linking.
15871# This must work even if \$libdir does not exist.
15872hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15873
15874# If ld is used when linking, flag to hardcode \$libdir into
15875# a binary during linking. This must work even if \$libdir does
15876# not exist.
15877hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15878
15879# Whether we need a single -rpath flag with a separated argument.
15880hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15881
15882# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15883# resulting binary.
15884hardcode_direct=$hardcode_direct_CXX
15885
15886# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15887# resulting binary.
15888hardcode_minus_L=$hardcode_minus_L_CXX
15889
15890# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15891# the resulting binary.
15892hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15893
15894# Set to yes if building a shared library automatically hardcodes DIR into the library
15895# and all subsequent libraries and executables linked against it.
15896hardcode_automatic=$hardcode_automatic_CXX
15897
15898# Variables whose values should be saved in libtool wrapper scripts and
15899# restored at relink time.
15900variables_saved_for_relink="$variables_saved_for_relink"
15901
15902# Whether libtool must link a program against all its dependency libraries.
15903link_all_deplibs=$link_all_deplibs_CXX
15904
15905# Compile-time system search path for libraries
15906sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15907
15908# Run-time system search path for libraries
15909sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15910
15911# Fix the shell variable \$srcfile for the compiler.
15912fix_srcfile_path="$fix_srcfile_path_CXX"
15913
15914# Set to yes if exported symbols are required.
15915always_export_symbols=$always_export_symbols_CXX
15916
15917# The commands to list exported symbols.
15918export_symbols_cmds=$lt_export_symbols_cmds_CXX
15919
15920# The commands to extract the exported symbol list from a shared archive.
15921extract_expsyms_cmds=$lt_extract_expsyms_cmds
15922
15923# Symbols that should not be listed in the preloaded symbols.
15924exclude_expsyms=$lt_exclude_expsyms_CXX
15925
15926# Symbols that must always be exported.
15927include_expsyms=$lt_include_expsyms_CXX
15928
15929# ### END LIBTOOL TAG CONFIG: $tagname
15930
15931__EOF__
15932
15933
15934else
15935  # If there is no Makefile yet, we rely on a make rule to execute
15936  # `config.status --recheck' to rerun these tests and create the
15937  # libtool script then.
15938  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15939  if test -f "$ltmain_in"; then
15940    test -f Makefile && make "$ltmain"
15941  fi
15942fi
15943
15944
15945ac_ext=c
15946ac_cpp='$CPP $CPPFLAGS'
15947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15949ac_compiler_gnu=$ac_cv_c_compiler_gnu
15950
15951CC=$lt_save_CC
15952LDCXX=$LD
15953LD=$lt_save_LD
15954GCC=$lt_save_GCC
15955with_gnu_ldcxx=$with_gnu_ld
15956with_gnu_ld=$lt_save_with_gnu_ld
15957lt_cv_path_LDCXX=$lt_cv_path_LD
15958lt_cv_path_LD=$lt_save_path_LD
15959lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15960lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15961
15962	else
15963	  tagname=""
15964	fi
15965	;;
15966
15967      F77)
15968	if test -n "$F77" && test "X$F77" != "Xno"; then
15969
15970ac_ext=f
15971ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15972ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15973ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15974
15975
15976archive_cmds_need_lc_F77=no
15977allow_undefined_flag_F77=
15978always_export_symbols_F77=no
15979archive_expsym_cmds_F77=
15980export_dynamic_flag_spec_F77=
15981hardcode_direct_F77=no
15982hardcode_libdir_flag_spec_F77=
15983hardcode_libdir_flag_spec_ld_F77=
15984hardcode_libdir_separator_F77=
15985hardcode_minus_L_F77=no
15986hardcode_automatic_F77=no
15987module_cmds_F77=
15988module_expsym_cmds_F77=
15989link_all_deplibs_F77=unknown
15990old_archive_cmds_F77=$old_archive_cmds
15991no_undefined_flag_F77=
15992whole_archive_flag_spec_F77=
15993enable_shared_with_static_runtimes_F77=no
15994
15995# Source file extension for f77 test sources.
15996ac_ext=f
15997
15998# Object file extension for compiled f77 test sources.
15999objext=o
16000objext_F77=$objext
16001
16002# Code to be used in simple compile tests
16003lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16004
16005# Code to be used in simple link tests
16006lt_simple_link_test_code="      program t\n      end\n"
16007
16008# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16009
16010# If no C compiler was specified, use CC.
16011LTCC=${LTCC-"$CC"}
16012
16013# If no C compiler flags were specified, use CFLAGS.
16014LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16015
16016# Allow CC to be a program name with arguments.
16017compiler=$CC
16018
16019
16020# save warnings/boilerplate of simple test code
16021ac_outfile=conftest.$ac_objext
16022printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16023eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16024_lt_compiler_boilerplate=`cat conftest.err`
16025$rm conftest*
16026
16027ac_outfile=conftest.$ac_objext
16028printf "$lt_simple_link_test_code" >conftest.$ac_ext
16029eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16030_lt_linker_boilerplate=`cat conftest.err`
16031$rm conftest*
16032
16033
16034# Allow CC to be a program name with arguments.
16035lt_save_CC="$CC"
16036CC=${F77-"f77"}
16037compiler=$CC
16038compiler_F77=$CC
16039for cc_temp in $compiler""; do
16040  case $cc_temp in
16041    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16042    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16043    \-*) ;;
16044    *) break;;
16045  esac
16046done
16047cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16048
16049
16050echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16051echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16052echo "$as_me:$LINENO: result: $can_build_shared" >&5
16053echo "${ECHO_T}$can_build_shared" >&6
16054
16055echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16056echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16057test "$can_build_shared" = "no" && enable_shared=no
16058
16059# On AIX, shared libraries and static libraries use the same namespace, and
16060# are all built from PIC.
16061case $host_os in
16062aix3*)
16063  test "$enable_shared" = yes && enable_static=no
16064  if test -n "$RANLIB"; then
16065    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16066    postinstall_cmds='$RANLIB $lib'
16067  fi
16068  ;;
16069aix4* | aix5*)
16070  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16071    test "$enable_shared" = yes && enable_static=no
16072  fi
16073  ;;
16074esac
16075echo "$as_me:$LINENO: result: $enable_shared" >&5
16076echo "${ECHO_T}$enable_shared" >&6
16077
16078echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16079echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16080# Make sure either enable_shared or enable_static is yes.
16081test "$enable_shared" = yes || enable_static=yes
16082echo "$as_me:$LINENO: result: $enable_static" >&5
16083echo "${ECHO_T}$enable_static" >&6
16084
16085GCC_F77="$G77"
16086LD_F77="$LD"
16087
16088lt_prog_compiler_wl_F77=
16089lt_prog_compiler_pic_F77=
16090lt_prog_compiler_static_F77=
16091
16092echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16093echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16094
16095  if test "$GCC" = yes; then
16096    lt_prog_compiler_wl_F77='-Wl,'
16097    lt_prog_compiler_static_F77='-static'
16098
16099    case $host_os in
16100      aix*)
16101      # All AIX code is PIC.
16102      if test "$host_cpu" = ia64; then
16103	# AIX 5 now supports IA64 processor
16104	lt_prog_compiler_static_F77='-Bstatic'
16105      fi
16106      ;;
16107
16108    amigaos*)
16109      # FIXME: we need at least 68020 code to build shared libraries, but
16110      # adding the `-m68020' flag to GCC prevents building anything better,
16111      # like `-m68040'.
16112      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16113      ;;
16114
16115    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16116      # PIC is the default for these OSes.
16117      ;;
16118
16119    mingw* | pw32* | os2*)
16120      # This hack is so that the source file can tell whether it is being
16121      # built for inclusion in a dll (and should export symbols for example).
16122      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16123      ;;
16124
16125    darwin* | rhapsody*)
16126      # PIC is the default on this platform
16127      # Common symbols not allowed in MH_DYLIB files
16128      lt_prog_compiler_pic_F77='-fno-common'
16129      ;;
16130
16131    interix3*)
16132      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16133      # Instead, we relocate shared libraries at runtime.
16134      ;;
16135
16136    msdosdjgpp*)
16137      # Just because we use GCC doesn't mean we suddenly get shared libraries
16138      # on systems that don't support them.
16139      lt_prog_compiler_can_build_shared_F77=no
16140      enable_shared=no
16141      ;;
16142
16143    sysv4*MP*)
16144      if test -d /usr/nec; then
16145	lt_prog_compiler_pic_F77=-Kconform_pic
16146      fi
16147      ;;
16148
16149    hpux*)
16150      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16151      # not for PA HP-UX.
16152      case $host_cpu in
16153      hppa*64*|ia64*)
16154	# +Z the default
16155	;;
16156      *)
16157	lt_prog_compiler_pic_F77='-fPIC'
16158	;;
16159      esac
16160      ;;
16161
16162    *)
16163      lt_prog_compiler_pic_F77='-fPIC'
16164      ;;
16165    esac
16166  else
16167    # PORTME Check for flag to pass linker flags through the system compiler.
16168    case $host_os in
16169    aix*)
16170      lt_prog_compiler_wl_F77='-Wl,'
16171      if test "$host_cpu" = ia64; then
16172	# AIX 5 now supports IA64 processor
16173	lt_prog_compiler_static_F77='-Bstatic'
16174      else
16175	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16176      fi
16177      ;;
16178      darwin*)
16179        # PIC is the default on this platform
16180        # Common symbols not allowed in MH_DYLIB files
16181       case $cc_basename in
16182         xlc*)
16183         lt_prog_compiler_pic_F77='-qnocommon'
16184         lt_prog_compiler_wl_F77='-Wl,'
16185         ;;
16186       esac
16187       ;;
16188
16189    mingw* | pw32* | os2*)
16190      # This hack is so that the source file can tell whether it is being
16191      # built for inclusion in a dll (and should export symbols for example).
16192      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16193      ;;
16194
16195    hpux9* | hpux10* | hpux11*)
16196      lt_prog_compiler_wl_F77='-Wl,'
16197      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16198      # not for PA HP-UX.
16199      case $host_cpu in
16200      hppa*64*|ia64*)
16201	# +Z the default
16202	;;
16203      *)
16204	lt_prog_compiler_pic_F77='+Z'
16205	;;
16206      esac
16207      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16208      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16209      ;;
16210
16211    irix5* | irix6* | nonstopux*)
16212      lt_prog_compiler_wl_F77='-Wl,'
16213      # PIC (with -KPIC) is the default.
16214      lt_prog_compiler_static_F77='-non_shared'
16215      ;;
16216
16217    newsos6)
16218      lt_prog_compiler_pic_F77='-KPIC'
16219      lt_prog_compiler_static_F77='-Bstatic'
16220      ;;
16221
16222    linux*)
16223      case $cc_basename in
16224      icc* | ecc*)
16225	lt_prog_compiler_wl_F77='-Wl,'
16226	lt_prog_compiler_pic_F77='-KPIC'
16227	lt_prog_compiler_static_F77='-static'
16228        ;;
16229      pgcc* | pgf77* | pgf90* | pgf95*)
16230        # Portland Group compilers (*not* the Pentium gcc compiler,
16231	# which looks to be a dead project)
16232	lt_prog_compiler_wl_F77='-Wl,'
16233	lt_prog_compiler_pic_F77='-fpic'
16234	lt_prog_compiler_static_F77='-Bstatic'
16235        ;;
16236      ccc*)
16237        lt_prog_compiler_wl_F77='-Wl,'
16238        # All Alpha code is PIC.
16239        lt_prog_compiler_static_F77='-non_shared'
16240        ;;
16241      esac
16242      ;;
16243
16244    osf3* | osf4* | osf5*)
16245      lt_prog_compiler_wl_F77='-Wl,'
16246      # All OSF/1 code is PIC.
16247      lt_prog_compiler_static_F77='-non_shared'
16248      ;;
16249
16250    solaris*)
16251      lt_prog_compiler_pic_F77='-KPIC'
16252      lt_prog_compiler_static_F77='-Bstatic'
16253      case $cc_basename in
16254      f77* | f90* | f95*)
16255	lt_prog_compiler_wl_F77='-Qoption ld ';;
16256      *)
16257	lt_prog_compiler_wl_F77='-Wl,';;
16258      esac
16259      ;;
16260
16261    sunos4*)
16262      lt_prog_compiler_wl_F77='-Qoption ld '
16263      lt_prog_compiler_pic_F77='-PIC'
16264      lt_prog_compiler_static_F77='-Bstatic'
16265      ;;
16266
16267    sysv4 | sysv4.2uw2* | sysv4.3*)
16268      lt_prog_compiler_wl_F77='-Wl,'
16269      lt_prog_compiler_pic_F77='-KPIC'
16270      lt_prog_compiler_static_F77='-Bstatic'
16271      ;;
16272
16273    sysv4*MP*)
16274      if test -d /usr/nec ;then
16275	lt_prog_compiler_pic_F77='-Kconform_pic'
16276	lt_prog_compiler_static_F77='-Bstatic'
16277      fi
16278      ;;
16279
16280    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16281      lt_prog_compiler_wl_F77='-Wl,'
16282      lt_prog_compiler_pic_F77='-KPIC'
16283      lt_prog_compiler_static_F77='-Bstatic'
16284      ;;
16285
16286    unicos*)
16287      lt_prog_compiler_wl_F77='-Wl,'
16288      lt_prog_compiler_can_build_shared_F77=no
16289      ;;
16290
16291    uts4*)
16292      lt_prog_compiler_pic_F77='-pic'
16293      lt_prog_compiler_static_F77='-Bstatic'
16294      ;;
16295
16296    *)
16297      lt_prog_compiler_can_build_shared_F77=no
16298      ;;
16299    esac
16300  fi
16301
16302echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16303echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16304
16305#
16306# Check to make sure the PIC flag actually works.
16307#
16308if test -n "$lt_prog_compiler_pic_F77"; then
16309
16310echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16311echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16312if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16313  echo $ECHO_N "(cached) $ECHO_C" >&6
16314else
16315  lt_prog_compiler_pic_works_F77=no
16316  ac_outfile=conftest.$ac_objext
16317   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16318   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16319   # Insert the option either (1) after the last *FLAGS variable, or
16320   # (2) before a word containing "conftest.", or (3) at the end.
16321   # Note that $ac_compile itself does not contain backslashes and begins
16322   # with a dollar sign (not a hyphen), so the echo should work correctly.
16323   # The option is referenced via a variable to avoid confusing sed.
16324   lt_compile=`echo "$ac_compile" | $SED \
16325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16327   -e 's:$: $lt_compiler_flag:'`
16328   (eval echo "\"\$as_me:16328: $lt_compile\"" >&5)
16329   (eval "$lt_compile" 2>conftest.err)
16330   ac_status=$?
16331   cat conftest.err >&5
16332   echo "$as_me:16332: \$? = $ac_status" >&5
16333   if (exit $ac_status) && test -s "$ac_outfile"; then
16334     # The compiler can only warn and ignore the option if not recognized
16335     # So say no if there are warnings other than the usual output.
16336     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16337     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16338     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16339       lt_prog_compiler_pic_works_F77=yes
16340     fi
16341   fi
16342   $rm conftest*
16343
16344fi
16345echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16346echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16347
16348if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16349    case $lt_prog_compiler_pic_F77 in
16350     "" | " "*) ;;
16351     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16352     esac
16353else
16354    lt_prog_compiler_pic_F77=
16355     lt_prog_compiler_can_build_shared_F77=no
16356fi
16357
16358fi
16359case $host_os in
16360  # For platforms which do not support PIC, -DPIC is meaningless:
16361  *djgpp*)
16362    lt_prog_compiler_pic_F77=
16363    ;;
16364  *)
16365    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16366    ;;
16367esac
16368
16369#
16370# Check to make sure the static flag actually works.
16371#
16372wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16373echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16374echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16375if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16376  echo $ECHO_N "(cached) $ECHO_C" >&6
16377else
16378  lt_prog_compiler_static_works_F77=no
16379   save_LDFLAGS="$LDFLAGS"
16380   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16381   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16382   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16383     # The linker can only warn and ignore the option if not recognized
16384     # So say no if there are warnings
16385     if test -s conftest.err; then
16386       # Append any errors to the config.log.
16387       cat conftest.err 1>&5
16388       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16389       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16390       if diff conftest.exp conftest.er2 >/dev/null; then
16391         lt_prog_compiler_static_works_F77=yes
16392       fi
16393     else
16394       lt_prog_compiler_static_works_F77=yes
16395     fi
16396   fi
16397   $rm conftest*
16398   LDFLAGS="$save_LDFLAGS"
16399
16400fi
16401echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16402echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
16403
16404if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16405    :
16406else
16407    lt_prog_compiler_static_F77=
16408fi
16409
16410
16411echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16412echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16413if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16414  echo $ECHO_N "(cached) $ECHO_C" >&6
16415else
16416  lt_cv_prog_compiler_c_o_F77=no
16417   $rm -r conftest 2>/dev/null
16418   mkdir conftest
16419   cd conftest
16420   mkdir out
16421   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16422
16423   lt_compiler_flag="-o out/conftest2.$ac_objext"
16424   # Insert the option either (1) after the last *FLAGS variable, or
16425   # (2) before a word containing "conftest.", or (3) at the end.
16426   # Note that $ac_compile itself does not contain backslashes and begins
16427   # with a dollar sign (not a hyphen), so the echo should work correctly.
16428   lt_compile=`echo "$ac_compile" | $SED \
16429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16431   -e 's:$: $lt_compiler_flag:'`
16432   (eval echo "\"\$as_me:16432: $lt_compile\"" >&5)
16433   (eval "$lt_compile" 2>out/conftest.err)
16434   ac_status=$?
16435   cat out/conftest.err >&5
16436   echo "$as_me:16436: \$? = $ac_status" >&5
16437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16438   then
16439     # The compiler can only warn and ignore the option if not recognized
16440     # So say no if there are warnings
16441     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16444       lt_cv_prog_compiler_c_o_F77=yes
16445     fi
16446   fi
16447   chmod u+w . 2>&5
16448   $rm conftest*
16449   # SGI C++ compiler will create directory out/ii_files/ for
16450   # template instantiation
16451   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16452   $rm out/* && rmdir out
16453   cd ..
16454   rmdir conftest
16455   $rm conftest*
16456
16457fi
16458echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16459echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16460
16461
16462hard_links="nottested"
16463if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16464  # do not overwrite the value of need_locks provided by the user
16465  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16466echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16467  hard_links=yes
16468  $rm conftest*
16469  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16470  touch conftest.a
16471  ln conftest.a conftest.b 2>&5 || hard_links=no
16472  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16473  echo "$as_me:$LINENO: result: $hard_links" >&5
16474echo "${ECHO_T}$hard_links" >&6
16475  if test "$hard_links" = no; then
16476    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16477echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16478    need_locks=warn
16479  fi
16480else
16481  need_locks=no
16482fi
16483
16484echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16485echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16486
16487  runpath_var=
16488  allow_undefined_flag_F77=
16489  enable_shared_with_static_runtimes_F77=no
16490  archive_cmds_F77=
16491  archive_expsym_cmds_F77=
16492  old_archive_From_new_cmds_F77=
16493  old_archive_from_expsyms_cmds_F77=
16494  export_dynamic_flag_spec_F77=
16495  whole_archive_flag_spec_F77=
16496  thread_safe_flag_spec_F77=
16497  hardcode_libdir_flag_spec_F77=
16498  hardcode_libdir_flag_spec_ld_F77=
16499  hardcode_libdir_separator_F77=
16500  hardcode_direct_F77=no
16501  hardcode_minus_L_F77=no
16502  hardcode_shlibpath_var_F77=unsupported
16503  link_all_deplibs_F77=unknown
16504  hardcode_automatic_F77=no
16505  module_cmds_F77=
16506  module_expsym_cmds_F77=
16507  always_export_symbols_F77=no
16508  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16509  # include_expsyms should be a list of space-separated symbols to be *always*
16510  # included in the symbol list
16511  include_expsyms_F77=
16512  # exclude_expsyms can be an extended regexp of symbols to exclude
16513  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16514  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16515  # as well as any symbol that contains `d'.
16516  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16517  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16518  # platforms (ab)use it in PIC code, but their linkers get confused if
16519  # the symbol is explicitly referenced.  Since portable code cannot
16520  # rely on this symbol name, it's probably fine to never include it in
16521  # preloaded symbol tables.
16522  extract_expsyms_cmds=
16523  # Just being paranoid about ensuring that cc_basename is set.
16524  for cc_temp in $compiler""; do
16525  case $cc_temp in
16526    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16527    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16528    \-*) ;;
16529    *) break;;
16530  esac
16531done
16532cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16533
16534  case $host_os in
16535  cygwin* | mingw* | pw32*)
16536    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16537    # When not using gcc, we currently assume that we are using
16538    # Microsoft Visual C++.
16539    if test "$GCC" != yes; then
16540      with_gnu_ld=no
16541    fi
16542    ;;
16543  interix*)
16544    # we just hope/assume this is gcc and not c89 (= MSVC++)
16545    with_gnu_ld=yes
16546    ;;
16547  openbsd*)
16548    with_gnu_ld=no
16549    ;;
16550  esac
16551
16552  ld_shlibs_F77=yes
16553  if test "$with_gnu_ld" = yes; then
16554    # If archive_cmds runs LD, not CC, wlarc should be empty
16555    wlarc='${wl}'
16556
16557    # Set some defaults for GNU ld with shared library support. These
16558    # are reset later if shared libraries are not supported. Putting them
16559    # here allows them to be overridden if necessary.
16560    runpath_var=LD_RUN_PATH
16561    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16562    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16563    # ancient GNU ld didn't support --whole-archive et. al.
16564    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16565	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16566      else
16567  	whole_archive_flag_spec_F77=
16568    fi
16569    supports_anon_versioning=no
16570    case `$LD -v 2>/dev/null` in
16571      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16572      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16573      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16574      *\ 2.11.*) ;; # other 2.11 versions
16575      *) supports_anon_versioning=yes ;;
16576    esac
16577
16578    # See if GNU ld supports shared libraries.
16579    case $host_os in
16580    aix3* | aix4* | aix5*)
16581      # On AIX/PPC, the GNU linker is very broken
16582      if test "$host_cpu" != ia64; then
16583	ld_shlibs_F77=no
16584	cat <<EOF 1>&2
16585
16586*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16587*** to be unable to reliably create shared libraries on AIX.
16588*** Therefore, libtool is disabling shared libraries support.  If you
16589*** really care for shared libraries, you may want to modify your PATH
16590*** so that a non-GNU linker is found, and then restart.
16591
16592EOF
16593      fi
16594      ;;
16595
16596    amigaos*)
16597      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)'
16598      hardcode_libdir_flag_spec_F77='-L$libdir'
16599      hardcode_minus_L_F77=yes
16600
16601      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16602      # that the semantics of dynamic libraries on AmigaOS, at least up
16603      # to version 4, is to share data among multiple programs linked
16604      # with the same dynamic library.  Since this doesn't match the
16605      # behavior of shared libraries on other platforms, we can't use
16606      # them.
16607      ld_shlibs_F77=no
16608      ;;
16609
16610    beos*)
16611      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16612	allow_undefined_flag_F77=unsupported
16613	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16614	# support --undefined.  This deserves some investigation.  FIXME
16615	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16616      else
16617	ld_shlibs_F77=no
16618      fi
16619      ;;
16620
16621    cygwin* | mingw* | pw32*)
16622      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16623      # as there is no search path for DLLs.
16624      hardcode_libdir_flag_spec_F77='-L$libdir'
16625      allow_undefined_flag_F77=unsupported
16626      always_export_symbols_F77=no
16627      enable_shared_with_static_runtimes_F77=yes
16628      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16629
16630      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16631        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16632	# If the export-symbols file already is a .def file (1st line
16633	# is EXPORTS), use it as is; otherwise, prepend...
16634	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16635	  cp $export_symbols $output_objdir/$soname.def;
16636	else
16637	  echo EXPORTS > $output_objdir/$soname.def;
16638	  cat $export_symbols >> $output_objdir/$soname.def;
16639	fi~
16640	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16641      else
16642	ld_shlibs_F77=no
16643      fi
16644      ;;
16645
16646    interix3*)
16647      hardcode_direct_F77=no
16648      hardcode_shlibpath_var_F77=no
16649      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16650      export_dynamic_flag_spec_F77='${wl}-E'
16651      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16652      # Instead, shared libraries are loaded at an image base (0x10000000 by
16653      # default) and relocated if they conflict, which is a slow very memory
16654      # consuming and fragmenting process.  To avoid this, we pick a random,
16655      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16656      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16657      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'
16658      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'
16659      ;;
16660
16661    linux*)
16662      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16663	tmp_addflag=
16664	case $cc_basename,$host_cpu in
16665	pgcc*)				# Portland Group C compiler
16666	  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'
16667	  tmp_addflag=' $pic_flag'
16668	  ;;
16669	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16670	  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'
16671	  tmp_addflag=' $pic_flag -Mnomain' ;;
16672	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16673	  tmp_addflag=' -i_dynamic' ;;
16674	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16675	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16676	ifc* | ifort*)			# Intel Fortran compiler
16677	  tmp_addflag=' -nofor_main' ;;
16678	esac
16679	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16680
16681	if test $supports_anon_versioning = yes; then
16682	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16683  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16684  $echo "local: *; };" >> $output_objdir/$libname.ver~
16685	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16686	fi
16687      else
16688	ld_shlibs_F77=no
16689      fi
16690      ;;
16691
16692    netbsd*)
16693      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16694	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16695	wlarc=
16696      else
16697	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16698	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16699      fi
16700      ;;
16701
16702    solaris*)
16703      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16704	ld_shlibs_F77=no
16705	cat <<EOF 1>&2
16706
16707*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16708*** create shared libraries on Solaris systems.  Therefore, libtool
16709*** is disabling shared libraries support.  We urge you to upgrade GNU
16710*** binutils to release 2.9.1 or newer.  Another option is to modify
16711*** your PATH or compiler configuration so that the native linker is
16712*** used, and then restart.
16713
16714EOF
16715      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16716	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16717	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16718      else
16719	ld_shlibs_F77=no
16720      fi
16721      ;;
16722
16723    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16724      case `$LD -v 2>&1` in
16725        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16726	ld_shlibs_F77=no
16727	cat <<_LT_EOF 1>&2
16728
16729*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16730*** reliably create shared libraries on SCO systems.  Therefore, libtool
16731*** is disabling shared libraries support.  We urge you to upgrade GNU
16732*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16733*** your PATH or compiler configuration so that the native linker is
16734*** used, and then restart.
16735
16736_LT_EOF
16737	;;
16738	*)
16739	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16741	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16742	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16743	  else
16744	    ld_shlibs_F77=no
16745	  fi
16746	;;
16747      esac
16748      ;;
16749
16750    sunos4*)
16751      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16752      wlarc=
16753      hardcode_direct_F77=yes
16754      hardcode_shlibpath_var_F77=no
16755      ;;
16756
16757    *)
16758      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16759	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16760	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16761      else
16762	ld_shlibs_F77=no
16763      fi
16764      ;;
16765    esac
16766
16767    if test "$ld_shlibs_F77" = no; then
16768      runpath_var=
16769      hardcode_libdir_flag_spec_F77=
16770      export_dynamic_flag_spec_F77=
16771      whole_archive_flag_spec_F77=
16772    fi
16773  else
16774    # PORTME fill in a description of your system's linker (not GNU ld)
16775    case $host_os in
16776    aix3*)
16777      allow_undefined_flag_F77=unsupported
16778      always_export_symbols_F77=yes
16779      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'
16780      # Note: this linker hardcodes the directories in LIBPATH if there
16781      # are no directories specified by -L.
16782      hardcode_minus_L_F77=yes
16783      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16784	# Neither direct hardcoding nor static linking is supported with a
16785	# broken collect2.
16786	hardcode_direct_F77=unsupported
16787      fi
16788      ;;
16789
16790    aix4* | aix5*)
16791      if test "$host_cpu" = ia64; then
16792	# On IA64, the linker does run time linking by default, so we don't
16793	# have to do anything special.
16794	aix_use_runtimelinking=no
16795	exp_sym_flag='-Bexport'
16796	no_entry_flag=""
16797      else
16798	# If we're using GNU nm, then we don't want the "-C" option.
16799	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16800	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16801	  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'
16802	else
16803	  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'
16804	fi
16805	aix_use_runtimelinking=no
16806
16807	# Test if we are trying to use run time linking or normal
16808	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16809	# need to do runtime linking.
16810	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16811	  for ld_flag in $LDFLAGS; do
16812  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16813  	    aix_use_runtimelinking=yes
16814  	    break
16815  	  fi
16816	  done
16817	  ;;
16818	esac
16819
16820	exp_sym_flag='-bexport'
16821	no_entry_flag='-bnoentry'
16822      fi
16823
16824      # When large executables or shared objects are built, AIX ld can
16825      # have problems creating the table of contents.  If linking a library
16826      # or program results in "error TOC overflow" add -mminimal-toc to
16827      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16828      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16829
16830      archive_cmds_F77=''
16831      hardcode_direct_F77=yes
16832      hardcode_libdir_separator_F77=':'
16833      link_all_deplibs_F77=yes
16834
16835      if test "$GCC" = yes; then
16836	case $host_os in aix4.[012]|aix4.[012].*)
16837	# We only want to do this on AIX 4.2 and lower, the check
16838	# below for broken collect2 doesn't work under 4.3+
16839	  collect2name=`${CC} -print-prog-name=collect2`
16840	  if test -f "$collect2name" && \
16841  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16842	  then
16843  	  # We have reworked collect2
16844  	  hardcode_direct_F77=yes
16845	  else
16846  	  # We have old collect2
16847  	  hardcode_direct_F77=unsupported
16848  	  # It fails to find uninstalled libraries when the uninstalled
16849  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16850  	  # to unsupported forces relinking
16851  	  hardcode_minus_L_F77=yes
16852  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16853  	  hardcode_libdir_separator_F77=
16854	  fi
16855	  ;;
16856	esac
16857	shared_flag='-shared'
16858	if test "$aix_use_runtimelinking" = yes; then
16859	  shared_flag="$shared_flag "'${wl}-G'
16860	fi
16861      else
16862	# not using gcc
16863	if test "$host_cpu" = ia64; then
16864  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16865  	# chokes on -Wl,-G. The following line is correct:
16866	  shared_flag='-G'
16867	else
16868	  if test "$aix_use_runtimelinking" = yes; then
16869	    shared_flag='${wl}-G'
16870	  else
16871	    shared_flag='${wl}-bM:SRE'
16872	  fi
16873	fi
16874      fi
16875
16876      # It seems that -bexpall does not export symbols beginning with
16877      # underscore (_), so it is better to generate a list of symbols to export.
16878      always_export_symbols_F77=yes
16879      if test "$aix_use_runtimelinking" = yes; then
16880	# Warning - without using the other runtime loading flags (-brtl),
16881	# -berok will link without error, but may produce a broken library.
16882	allow_undefined_flag_F77='-berok'
16883       # Determine the default libpath from the value encoded in an empty executable.
16884       cat >conftest.$ac_ext <<_ACEOF
16885      program main
16886
16887      end
16888_ACEOF
16889rm -f conftest.$ac_objext conftest$ac_exeext
16890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891  (eval $ac_link) 2>conftest.er1
16892  ac_status=$?
16893  grep -v '^ *+' conftest.er1 >conftest.err
16894  rm -f conftest.er1
16895  cat conftest.err >&5
16896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897  (exit $ac_status); } &&
16898	 { ac_try='test -z "$ac_f77_werror_flag"
16899			 || test ! -s conftest.err'
16900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901  (eval $ac_try) 2>&5
16902  ac_status=$?
16903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904  (exit $ac_status); }; } &&
16905	 { ac_try='test -s conftest$ac_exeext'
16906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907  (eval $ac_try) 2>&5
16908  ac_status=$?
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); }; }; then
16911
16912aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16913}'`
16914# Check for a 64-bit object if we didn't find anything.
16915if 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; }
16916}'`; fi
16917else
16918  echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921fi
16922rm -f conftest.err conftest.$ac_objext \
16923      conftest$ac_exeext conftest.$ac_ext
16924if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16925
16926       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16927	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"
16928       else
16929	if test "$host_cpu" = ia64; then
16930	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16931	  allow_undefined_flag_F77="-z nodefs"
16932	  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"
16933	else
16934	 # Determine the default libpath from the value encoded in an empty executable.
16935	 cat >conftest.$ac_ext <<_ACEOF
16936      program main
16937
16938      end
16939_ACEOF
16940rm -f conftest.$ac_objext conftest$ac_exeext
16941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942  (eval $ac_link) 2>conftest.er1
16943  ac_status=$?
16944  grep -v '^ *+' conftest.er1 >conftest.err
16945  rm -f conftest.er1
16946  cat conftest.err >&5
16947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948  (exit $ac_status); } &&
16949	 { ac_try='test -z "$ac_f77_werror_flag"
16950			 || test ! -s conftest.err'
16951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952  (eval $ac_try) 2>&5
16953  ac_status=$?
16954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955  (exit $ac_status); }; } &&
16956	 { ac_try='test -s conftest$ac_exeext'
16957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958  (eval $ac_try) 2>&5
16959  ac_status=$?
16960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961  (exit $ac_status); }; }; then
16962
16963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16964}'`
16965# Check for a 64-bit object if we didn't find anything.
16966if 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; }
16967}'`; fi
16968else
16969  echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972fi
16973rm -f conftest.err conftest.$ac_objext \
16974      conftest$ac_exeext conftest.$ac_ext
16975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16976
16977	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16978	  # Warning - without using the other run time loading flags,
16979	  # -berok will link without error, but may produce a broken library.
16980	  no_undefined_flag_F77=' ${wl}-bernotok'
16981	  allow_undefined_flag_F77=' ${wl}-berok'
16982	  # Exported symbols can be pulled into shared objects from archives
16983	  whole_archive_flag_spec_F77='$convenience'
16984	  archive_cmds_need_lc_F77=yes
16985	  # This is similar to how AIX traditionally builds its shared libraries.
16986	  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'
16987	fi
16988      fi
16989      ;;
16990
16991    amigaos*)
16992      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)'
16993      hardcode_libdir_flag_spec_F77='-L$libdir'
16994      hardcode_minus_L_F77=yes
16995      # see comment about different semantics on the GNU ld section
16996      ld_shlibs_F77=no
16997      ;;
16998
16999    bsdi[45]*)
17000      export_dynamic_flag_spec_F77=-rdynamic
17001      ;;
17002
17003    cygwin* | mingw* | pw32*)
17004      # When not using gcc, we currently assume that we are using
17005      # Microsoft Visual C++.
17006      # hardcode_libdir_flag_spec is actually meaningless, as there is
17007      # no search path for DLLs.
17008      hardcode_libdir_flag_spec_F77=' '
17009      allow_undefined_flag_F77=unsupported
17010      # Tell ltmain to make .lib files, not .a files.
17011      libext=lib
17012      # Tell ltmain to make .dll files, not .so files.
17013      shrext_cmds=".dll"
17014      # FIXME: Setting linknames here is a bad hack.
17015      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17016      # The linker will automatically build a .lib file if we build a DLL.
17017      old_archive_From_new_cmds_F77='true'
17018      # FIXME: Should let the user specify the lib program.
17019      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17020      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17021      enable_shared_with_static_runtimes_F77=yes
17022      ;;
17023
17024    darwin* | rhapsody*)
17025      case $host_os in
17026        rhapsody* | darwin1.[012])
17027         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17028         ;;
17029       *) # Darwin 1.3 on
17030         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17031           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17032         else
17033           case ${MACOSX_DEPLOYMENT_TARGET} in
17034             10.[012])
17035               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17036               ;;
17037             10.*)
17038               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17039               ;;
17040           esac
17041         fi
17042         ;;
17043      esac
17044      archive_cmds_need_lc_F77=no
17045      hardcode_direct_F77=no
17046      hardcode_automatic_F77=yes
17047      hardcode_shlibpath_var_F77=unsupported
17048      whole_archive_flag_spec_F77=''
17049      link_all_deplibs_F77=yes
17050    if test "$GCC" = yes ; then
17051    	output_verbose_link_cmd='echo'
17052        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17053      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17054      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17055      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}'
17056      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}'
17057    else
17058      case $cc_basename in
17059        xlc*)
17060         output_verbose_link_cmd='echo'
17061         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17062         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17063          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17064         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}'
17065          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}'
17066          ;;
17067       *)
17068         ld_shlibs_F77=no
17069          ;;
17070      esac
17071    fi
17072      ;;
17073
17074    dgux*)
17075      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076      hardcode_libdir_flag_spec_F77='-L$libdir'
17077      hardcode_shlibpath_var_F77=no
17078      ;;
17079
17080    freebsd1*)
17081      ld_shlibs_F77=no
17082      ;;
17083
17084    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17085    # support.  Future versions do this automatically, but an explicit c++rt0.o
17086    # does not break anything, and helps significantly (at the cost of a little
17087    # extra space).
17088    freebsd2.2*)
17089      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17090      hardcode_libdir_flag_spec_F77='-R$libdir'
17091      hardcode_direct_F77=yes
17092      hardcode_shlibpath_var_F77=no
17093      ;;
17094
17095    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17096    freebsd2*)
17097      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17098      hardcode_direct_F77=yes
17099      hardcode_minus_L_F77=yes
17100      hardcode_shlibpath_var_F77=no
17101      ;;
17102
17103    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17104    freebsd* | kfreebsd*-gnu | dragonfly*)
17105      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17106      hardcode_libdir_flag_spec_F77='-R$libdir'
17107      hardcode_direct_F77=yes
17108      hardcode_shlibpath_var_F77=no
17109      ;;
17110
17111    hpux9*)
17112      if test "$GCC" = yes; then
17113	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'
17114      else
17115	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'
17116      fi
17117      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17118      hardcode_libdir_separator_F77=:
17119      hardcode_direct_F77=yes
17120
17121      # hardcode_minus_L: Not really in the search PATH,
17122      # but as the default location of the library.
17123      hardcode_minus_L_F77=yes
17124      export_dynamic_flag_spec_F77='${wl}-E'
17125      ;;
17126
17127    hpux10*)
17128      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17129	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17130      else
17131	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17132      fi
17133      if test "$with_gnu_ld" = no; then
17134	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17135	hardcode_libdir_separator_F77=:
17136
17137	hardcode_direct_F77=yes
17138	export_dynamic_flag_spec_F77='${wl}-E'
17139
17140	# hardcode_minus_L: Not really in the search PATH,
17141	# but as the default location of the library.
17142	hardcode_minus_L_F77=yes
17143      fi
17144      ;;
17145
17146    hpux11*)
17147      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17148	case $host_cpu in
17149	hppa*64*)
17150	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17151	  ;;
17152	ia64*)
17153	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17154	  ;;
17155	*)
17156	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17157	  ;;
17158	esac
17159      else
17160	case $host_cpu in
17161	hppa*64*)
17162	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17163	  ;;
17164	ia64*)
17165	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17166	  ;;
17167	*)
17168	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17169	  ;;
17170	esac
17171      fi
17172      if test "$with_gnu_ld" = no; then
17173	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17174	hardcode_libdir_separator_F77=:
17175
17176	case $host_cpu in
17177	hppa*64*|ia64*)
17178	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17179	  hardcode_direct_F77=no
17180	  hardcode_shlibpath_var_F77=no
17181	  ;;
17182	*)
17183	  hardcode_direct_F77=yes
17184	  export_dynamic_flag_spec_F77='${wl}-E'
17185
17186	  # hardcode_minus_L: Not really in the search PATH,
17187	  # but as the default location of the library.
17188	  hardcode_minus_L_F77=yes
17189	  ;;
17190	esac
17191      fi
17192      ;;
17193
17194    irix5* | irix6* | nonstopux*)
17195      if test "$GCC" = yes; then
17196	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'
17197      else
17198	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'
17199	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17200      fi
17201      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17202      hardcode_libdir_separator_F77=:
17203      link_all_deplibs_F77=yes
17204      ;;
17205
17206    netbsd*)
17207      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17208	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17209      else
17210	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17211      fi
17212      hardcode_libdir_flag_spec_F77='-R$libdir'
17213      hardcode_direct_F77=yes
17214      hardcode_shlibpath_var_F77=no
17215      ;;
17216
17217    newsos6)
17218      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219      hardcode_direct_F77=yes
17220      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17221      hardcode_libdir_separator_F77=:
17222      hardcode_shlibpath_var_F77=no
17223      ;;
17224
17225    openbsd*)
17226      hardcode_direct_F77=yes
17227      hardcode_shlibpath_var_F77=no
17228      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17229	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17230	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17231	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17232	export_dynamic_flag_spec_F77='${wl}-E'
17233      else
17234       case $host_os in
17235	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17236	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17237	   hardcode_libdir_flag_spec_F77='-R$libdir'
17238	   ;;
17239	 *)
17240	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17241	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17242	   ;;
17243       esac
17244      fi
17245      ;;
17246
17247    os2*)
17248      hardcode_libdir_flag_spec_F77='-L$libdir'
17249      hardcode_minus_L_F77=yes
17250      allow_undefined_flag_F77=unsupported
17251      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'
17252      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17253      ;;
17254
17255    osf3*)
17256      if test "$GCC" = yes; then
17257	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17258	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'
17259      else
17260	allow_undefined_flag_F77=' -expect_unresolved \*'
17261	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'
17262      fi
17263      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17264      hardcode_libdir_separator_F77=:
17265      ;;
17266
17267    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17268      if test "$GCC" = yes; then
17269	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17270	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'
17271	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17272      else
17273	allow_undefined_flag_F77=' -expect_unresolved \*'
17274	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'
17275	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~
17276	$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'
17277
17278	# Both c and cxx compiler support -rpath directly
17279	hardcode_libdir_flag_spec_F77='-rpath $libdir'
17280      fi
17281      hardcode_libdir_separator_F77=:
17282      ;;
17283
17284    solaris*)
17285      no_undefined_flag_F77=' -z text'
17286      if test "$GCC" = yes; then
17287	wlarc='${wl}'
17288	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17289	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17290	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17291      else
17292	wlarc=''
17293	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17294	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17295  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17296      fi
17297      hardcode_libdir_flag_spec_F77='-R$libdir'
17298      hardcode_shlibpath_var_F77=no
17299      case $host_os in
17300      solaris2.[0-5] | solaris2.[0-5].*) ;;
17301      *)
17302 	# The compiler driver will combine linker options so we
17303 	# cannot just pass the convience library names through
17304 	# without $wl, iff we do not link with $LD.
17305 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17306 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17307 	case $wlarc in
17308 	'')
17309 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17310 	*)
17311 	  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' ;;
17312 	esac ;;
17313      esac
17314      link_all_deplibs_F77=yes
17315      ;;
17316
17317    sunos4*)
17318      if test "x$host_vendor" = xsequent; then
17319	# Use $CC to link under sequent, because it throws in some extra .o
17320	# files that make .init and .fini sections work.
17321	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17322      else
17323	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17324      fi
17325      hardcode_libdir_flag_spec_F77='-L$libdir'
17326      hardcode_direct_F77=yes
17327      hardcode_minus_L_F77=yes
17328      hardcode_shlibpath_var_F77=no
17329      ;;
17330
17331    sysv4)
17332      case $host_vendor in
17333	sni)
17334	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335	  hardcode_direct_F77=yes # is this really true???
17336	;;
17337	siemens)
17338	  ## LD is ld it makes a PLAMLIB
17339	  ## CC just makes a GrossModule.
17340	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17341	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17342	  hardcode_direct_F77=no
17343        ;;
17344	motorola)
17345	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17346	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17347	;;
17348      esac
17349      runpath_var='LD_RUN_PATH'
17350      hardcode_shlibpath_var_F77=no
17351      ;;
17352
17353    sysv4.3*)
17354      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17355      hardcode_shlibpath_var_F77=no
17356      export_dynamic_flag_spec_F77='-Bexport'
17357      ;;
17358
17359    sysv4*MP*)
17360      if test -d /usr/nec; then
17361	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362	hardcode_shlibpath_var_F77=no
17363	runpath_var=LD_RUN_PATH
17364	hardcode_runpath_var=yes
17365	ld_shlibs_F77=yes
17366      fi
17367      ;;
17368
17369    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17370      no_undefined_flag_F77='${wl}-z,text'
17371      archive_cmds_need_lc_F77=no
17372      hardcode_shlibpath_var_F77=no
17373      runpath_var='LD_RUN_PATH'
17374
17375      if test "$GCC" = yes; then
17376	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17378      else
17379	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17381      fi
17382      ;;
17383
17384    sysv5* | sco3.2v5* | sco5v6*)
17385      # Note: We can NOT use -z defs as we might desire, because we do not
17386      # link with -lc, and that would cause any symbols used from libc to
17387      # always be unresolved, which means just about no library would
17388      # ever link correctly.  If we're not using GNU ld we use -z text
17389      # though, which does catch some bad symbols but isn't as heavy-handed
17390      # as -z defs.
17391      no_undefined_flag_F77='${wl}-z,text'
17392      allow_undefined_flag_F77='${wl}-z,nodefs'
17393      archive_cmds_need_lc_F77=no
17394      hardcode_shlibpath_var_F77=no
17395      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17396      hardcode_libdir_separator_F77=':'
17397      link_all_deplibs_F77=yes
17398      export_dynamic_flag_spec_F77='${wl}-Bexport'
17399      runpath_var='LD_RUN_PATH'
17400
17401      if test "$GCC" = yes; then
17402	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17403	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17404      else
17405	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17406	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17407      fi
17408      ;;
17409
17410    uts4*)
17411      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412      hardcode_libdir_flag_spec_F77='-L$libdir'
17413      hardcode_shlibpath_var_F77=no
17414      ;;
17415
17416    *)
17417      ld_shlibs_F77=no
17418      ;;
17419    esac
17420  fi
17421
17422echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17423echo "${ECHO_T}$ld_shlibs_F77" >&6
17424test "$ld_shlibs_F77" = no && can_build_shared=no
17425
17426#
17427# Do we need to explicitly link libc?
17428#
17429case "x$archive_cmds_need_lc_F77" in
17430x|xyes)
17431  # Assume -lc should be added
17432  archive_cmds_need_lc_F77=yes
17433
17434  if test "$enable_shared" = yes && test "$GCC" = yes; then
17435    case $archive_cmds_F77 in
17436    *'~'*)
17437      # FIXME: we may have to deal with multi-command sequences.
17438      ;;
17439    '$CC '*)
17440      # Test whether the compiler implicitly links with -lc since on some
17441      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17442      # to ld, don't add -lc before -lgcc.
17443      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17444echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17445      $rm conftest*
17446      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17447
17448      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449  (eval $ac_compile) 2>&5
17450  ac_status=$?
17451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452  (exit $ac_status); } 2>conftest.err; then
17453        soname=conftest
17454        lib=conftest
17455        libobjs=conftest.$ac_objext
17456        deplibs=
17457        wl=$lt_prog_compiler_wl_F77
17458	pic_flag=$lt_prog_compiler_pic_F77
17459        compiler_flags=-v
17460        linker_flags=-v
17461        verstring=
17462        output_objdir=.
17463        libname=conftest
17464        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17465        allow_undefined_flag_F77=
17466        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17467  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17468  ac_status=$?
17469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470  (exit $ac_status); }
17471        then
17472	  archive_cmds_need_lc_F77=no
17473        else
17474	  archive_cmds_need_lc_F77=yes
17475        fi
17476        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17477      else
17478        cat conftest.err 1>&5
17479      fi
17480      $rm conftest*
17481      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17482echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17483      ;;
17484    esac
17485  fi
17486  ;;
17487esac
17488
17489echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17490echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17491library_names_spec=
17492libname_spec='lib$name'
17493soname_spec=
17494shrext_cmds=".so"
17495postinstall_cmds=
17496postuninstall_cmds=
17497finish_cmds=
17498finish_eval=
17499shlibpath_var=
17500shlibpath_overrides_runpath=unknown
17501version_type=none
17502dynamic_linker="$host_os ld.so"
17503sys_lib_dlsearch_path_spec="/lib /usr/lib"
17504if test "$GCC" = yes; then
17505  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17506  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17507    # if the path contains ";" then we assume it to be the separator
17508    # otherwise default to the standard path separator (i.e. ":") - it is
17509    # assumed that no part of a normal pathname contains ";" but that should
17510    # okay in the real world where ";" in dirpaths is itself problematic.
17511    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17512  else
17513    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17514  fi
17515else
17516  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17517fi
17518need_lib_prefix=unknown
17519hardcode_into_libs=no
17520
17521# when you set need_version to no, make sure it does not cause -set_version
17522# flags to be left without arguments
17523need_version=unknown
17524
17525case $host_os in
17526aix3*)
17527  version_type=linux
17528  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17529  shlibpath_var=LIBPATH
17530
17531  # AIX 3 has no versioning support, so we append a major version to the name.
17532  soname_spec='${libname}${release}${shared_ext}$major'
17533  ;;
17534
17535aix4* | aix5*)
17536  version_type=linux
17537  need_lib_prefix=no
17538  need_version=no
17539  hardcode_into_libs=yes
17540  if test "$host_cpu" = ia64; then
17541    # AIX 5 supports IA64
17542    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17543    shlibpath_var=LD_LIBRARY_PATH
17544  else
17545    # With GCC up to 2.95.x, collect2 would create an import file
17546    # for dependence libraries.  The import file would start with
17547    # the line `#! .'.  This would cause the generated library to
17548    # depend on `.', always an invalid library.  This was fixed in
17549    # development snapshots of GCC prior to 3.0.
17550    case $host_os in
17551      aix4 | aix4.[01] | aix4.[01].*)
17552      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17553	   echo ' yes '
17554	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17555	:
17556      else
17557	can_build_shared=no
17558      fi
17559      ;;
17560    esac
17561    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17562    # soname into executable. Probably we can add versioning support to
17563    # collect2, so additional links can be useful in future.
17564    if test "$aix_use_runtimelinking" = yes; then
17565      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17566      # instead of lib<name>.a to let people know that these are not
17567      # typical AIX shared libraries.
17568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569    else
17570      # We preserve .a as extension for shared libraries through AIX4.2
17571      # and later when we are not doing run time linking.
17572      library_names_spec='${libname}${release}.a $libname.a'
17573      soname_spec='${libname}${release}${shared_ext}$major'
17574    fi
17575    shlibpath_var=LIBPATH
17576  fi
17577  ;;
17578
17579amigaos*)
17580  library_names_spec='$libname.ixlibrary $libname.a'
17581  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17582  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'
17583  ;;
17584
17585beos*)
17586  library_names_spec='${libname}${shared_ext}'
17587  dynamic_linker="$host_os ld.so"
17588  shlibpath_var=LIBRARY_PATH
17589  ;;
17590
17591bsdi[45]*)
17592  version_type=linux
17593  need_version=no
17594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17595  soname_spec='${libname}${release}${shared_ext}$major'
17596  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17597  shlibpath_var=LD_LIBRARY_PATH
17598  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17599  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17600  # the default ld.so.conf also contains /usr/contrib/lib and
17601  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17602  # libtool to hard-code these into programs
17603  ;;
17604
17605cygwin* | mingw* | pw32*)
17606  version_type=windows
17607  shrext_cmds=".dll"
17608  need_version=no
17609  need_lib_prefix=no
17610
17611  case $GCC,$host_os in
17612  yes,cygwin* | yes,mingw* | yes,pw32*)
17613    library_names_spec='$libname.dll.a'
17614    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17615    postinstall_cmds='base_file=`basename \${file}`~
17616      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17617      dldir=$destdir/`dirname \$dlpath`~
17618      test -d \$dldir || mkdir -p \$dldir~
17619      $install_prog $dir/$dlname \$dldir/$dlname~
17620      chmod a+x \$dldir/$dlname'
17621    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17622      dlpath=$dir/\$dldll~
17623       $rm \$dlpath'
17624    shlibpath_overrides_runpath=yes
17625
17626    case $host_os in
17627    cygwin*)
17628      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17629      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17630      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17631      ;;
17632    mingw*)
17633      # MinGW DLLs use traditional 'lib' prefix
17634      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17635      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17636      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17637        # It is most probably a Windows format PATH printed by
17638        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17639        # path with ; separators, and with drive letters. We can handle the
17640        # drive letters (cygwin fileutils understands them), so leave them,
17641        # especially as we might pass files found there to a mingw objdump,
17642        # which wouldn't understand a cygwinified path. Ahh.
17643        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17644      else
17645        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17646      fi
17647      ;;
17648    pw32*)
17649      # pw32 DLLs use 'pw' prefix rather than 'lib'
17650      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17651      ;;
17652    esac
17653    ;;
17654
17655  *)
17656    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17657    ;;
17658  esac
17659  dynamic_linker='Win32 ld.exe'
17660  # FIXME: first we should search . and the directory the executable is in
17661  shlibpath_var=PATH
17662  ;;
17663
17664darwin* | rhapsody*)
17665  dynamic_linker="$host_os dyld"
17666  version_type=darwin
17667  need_lib_prefix=no
17668  need_version=no
17669  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17670  soname_spec='${libname}${release}${major}$shared_ext'
17671  shlibpath_overrides_runpath=yes
17672  shlibpath_var=DYLD_LIBRARY_PATH
17673  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17674  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17675  if test "$GCC" = yes; then
17676    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"`
17677  else
17678    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17679  fi
17680  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17681  ;;
17682
17683dgux*)
17684  version_type=linux
17685  need_lib_prefix=no
17686  need_version=no
17687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17688  soname_spec='${libname}${release}${shared_ext}$major'
17689  shlibpath_var=LD_LIBRARY_PATH
17690  ;;
17691
17692freebsd1*)
17693  dynamic_linker=no
17694  ;;
17695
17696kfreebsd*-gnu)
17697  version_type=linux
17698  need_lib_prefix=no
17699  need_version=no
17700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17701  soname_spec='${libname}${release}${shared_ext}$major'
17702  shlibpath_var=LD_LIBRARY_PATH
17703  shlibpath_overrides_runpath=no
17704  hardcode_into_libs=yes
17705  dynamic_linker='GNU ld.so'
17706  ;;
17707
17708freebsd* | dragonfly*)
17709  # DragonFly does not have aout.  When/if they implement a new
17710  # versioning mechanism, adjust this.
17711  if test -x /usr/bin/objformat; then
17712    objformat=`/usr/bin/objformat`
17713  else
17714    case $host_os in
17715    freebsd[123]*) objformat=aout ;;
17716    *) objformat=elf ;;
17717    esac
17718  fi
17719  version_type=freebsd-$objformat
17720  case $version_type in
17721    freebsd-elf*)
17722      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17723      need_version=no
17724      need_lib_prefix=no
17725      ;;
17726    freebsd-*)
17727      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17728      need_version=yes
17729      ;;
17730  esac
17731  shlibpath_var=LD_LIBRARY_PATH
17732  case $host_os in
17733  freebsd2*)
17734    shlibpath_overrides_runpath=yes
17735    ;;
17736  freebsd3.[01]* | freebsdelf3.[01]*)
17737    shlibpath_overrides_runpath=yes
17738    hardcode_into_libs=yes
17739    ;;
17740  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17741  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17742    shlibpath_overrides_runpath=no
17743    hardcode_into_libs=yes
17744    ;;
17745  freebsd*) # from 4.6 on
17746    shlibpath_overrides_runpath=yes
17747    hardcode_into_libs=yes
17748    ;;
17749  esac
17750  ;;
17751
17752gnu*)
17753  version_type=linux
17754  need_lib_prefix=no
17755  need_version=no
17756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17757  soname_spec='${libname}${release}${shared_ext}$major'
17758  shlibpath_var=LD_LIBRARY_PATH
17759  hardcode_into_libs=yes
17760  ;;
17761
17762hpux9* | hpux10* | hpux11*)
17763  # Give a soname corresponding to the major version so that dld.sl refuses to
17764  # link against other versions.
17765  version_type=sunos
17766  need_lib_prefix=no
17767  need_version=no
17768  case $host_cpu in
17769  ia64*)
17770    shrext_cmds='.so'
17771    hardcode_into_libs=yes
17772    dynamic_linker="$host_os dld.so"
17773    shlibpath_var=LD_LIBRARY_PATH
17774    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776    soname_spec='${libname}${release}${shared_ext}$major'
17777    if test "X$HPUX_IA64_MODE" = X32; then
17778      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17779    else
17780      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17781    fi
17782    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17783    ;;
17784   hppa*64*)
17785     shrext_cmds='.sl'
17786     hardcode_into_libs=yes
17787     dynamic_linker="$host_os dld.sl"
17788     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17789     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17791     soname_spec='${libname}${release}${shared_ext}$major'
17792     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17794     ;;
17795   *)
17796    shrext_cmds='.sl'
17797    dynamic_linker="$host_os dld.sl"
17798    shlibpath_var=SHLIB_PATH
17799    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801    soname_spec='${libname}${release}${shared_ext}$major'
17802    ;;
17803  esac
17804  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17805  postinstall_cmds='chmod 555 $lib'
17806  ;;
17807
17808interix3*)
17809  version_type=linux
17810  need_lib_prefix=no
17811  need_version=no
17812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17813  soname_spec='${libname}${release}${shared_ext}$major'
17814  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17815  shlibpath_var=LD_LIBRARY_PATH
17816  shlibpath_overrides_runpath=no
17817  hardcode_into_libs=yes
17818  ;;
17819
17820irix5* | irix6* | nonstopux*)
17821  case $host_os in
17822    nonstopux*) version_type=nonstopux ;;
17823    *)
17824	if test "$lt_cv_prog_gnu_ld" = yes; then
17825		version_type=linux
17826	else
17827		version_type=irix
17828	fi ;;
17829  esac
17830  need_lib_prefix=no
17831  need_version=no
17832  soname_spec='${libname}${release}${shared_ext}$major'
17833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17834  case $host_os in
17835  irix5* | nonstopux*)
17836    libsuff= shlibsuff=
17837    ;;
17838  *)
17839    case $LD in # libtool.m4 will add one of these switches to LD
17840    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17841      libsuff= shlibsuff= libmagic=32-bit;;
17842    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17843      libsuff=32 shlibsuff=N32 libmagic=N32;;
17844    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17845      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17846    *) libsuff= shlibsuff= libmagic=never-match;;
17847    esac
17848    ;;
17849  esac
17850  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17851  shlibpath_overrides_runpath=no
17852  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17853  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17854  hardcode_into_libs=yes
17855  ;;
17856
17857# No shared lib support for Linux oldld, aout, or coff.
17858linux*oldld* | linux*aout* | linux*coff*)
17859  dynamic_linker=no
17860  ;;
17861
17862# This must be Linux ELF.
17863linux*)
17864  version_type=linux
17865  need_lib_prefix=no
17866  need_version=no
17867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868  soname_spec='${libname}${release}${shared_ext}$major'
17869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17870  shlibpath_var=LD_LIBRARY_PATH
17871  shlibpath_overrides_runpath=no
17872  # This implies no fast_install, which is unacceptable.
17873  # Some rework will be needed to allow for fast_install
17874  # before this can be enabled.
17875  hardcode_into_libs=yes
17876
17877  # Append ld.so.conf contents to the search path
17878  if test -f /etc/ld.so.conf; then
17879    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' ' '`
17880    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17881  fi
17882
17883  # We used to test for /lib/ld.so.1 and disable shared libraries on
17884  # powerpc, because MkLinux only supported shared libraries with the
17885  # GNU dynamic linker.  Since this was broken with cross compilers,
17886  # most powerpc-linux boxes support dynamic linking these days and
17887  # people can always --disable-shared, the test was removed, and we
17888  # assume the GNU/Linux dynamic linker is in use.
17889  dynamic_linker='GNU/Linux ld.so'
17890  ;;
17891
17892knetbsd*-gnu)
17893  version_type=linux
17894  need_lib_prefix=no
17895  need_version=no
17896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17897  soname_spec='${libname}${release}${shared_ext}$major'
17898  shlibpath_var=LD_LIBRARY_PATH
17899  shlibpath_overrides_runpath=no
17900  hardcode_into_libs=yes
17901  dynamic_linker='GNU ld.so'
17902  ;;
17903
17904netbsd*)
17905  version_type=sunos
17906  need_lib_prefix=no
17907  need_version=no
17908  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17910    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17911    dynamic_linker='NetBSD (a.out) ld.so'
17912  else
17913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17914    soname_spec='${libname}${release}${shared_ext}$major'
17915    dynamic_linker='NetBSD ld.elf_so'
17916  fi
17917  shlibpath_var=LD_LIBRARY_PATH
17918  shlibpath_overrides_runpath=yes
17919  hardcode_into_libs=yes
17920  ;;
17921
17922newsos6)
17923  version_type=linux
17924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925  shlibpath_var=LD_LIBRARY_PATH
17926  shlibpath_overrides_runpath=yes
17927  ;;
17928
17929nto-qnx*)
17930  version_type=linux
17931  need_lib_prefix=no
17932  need_version=no
17933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17934  soname_spec='${libname}${release}${shared_ext}$major'
17935  shlibpath_var=LD_LIBRARY_PATH
17936  shlibpath_overrides_runpath=yes
17937  ;;
17938
17939openbsd*)
17940  version_type=sunos
17941  sys_lib_dlsearch_path_spec="/usr/lib"
17942  need_lib_prefix=no
17943  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17944  case $host_os in
17945    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17946    *)                         need_version=no  ;;
17947  esac
17948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17950  shlibpath_var=LD_LIBRARY_PATH
17951  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17952    case $host_os in
17953      openbsd2.[89] | openbsd2.[89].*)
17954	shlibpath_overrides_runpath=no
17955	;;
17956      *)
17957	shlibpath_overrides_runpath=yes
17958	;;
17959      esac
17960  else
17961    shlibpath_overrides_runpath=yes
17962  fi
17963  ;;
17964
17965os2*)
17966  libname_spec='$name'
17967  shrext_cmds=".dll"
17968  need_lib_prefix=no
17969  library_names_spec='$libname${shared_ext} $libname.a'
17970  dynamic_linker='OS/2 ld.exe'
17971  shlibpath_var=LIBPATH
17972  ;;
17973
17974osf3* | osf4* | osf5*)
17975  version_type=osf
17976  need_lib_prefix=no
17977  need_version=no
17978  soname_spec='${libname}${release}${shared_ext}$major'
17979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980  shlibpath_var=LD_LIBRARY_PATH
17981  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17982  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17983  ;;
17984
17985solaris*)
17986  version_type=linux
17987  need_lib_prefix=no
17988  need_version=no
17989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990  soname_spec='${libname}${release}${shared_ext}$major'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  shlibpath_overrides_runpath=yes
17993  hardcode_into_libs=yes
17994  # ldd complains unless libraries are executable
17995  postinstall_cmds='chmod +x $lib'
17996  ;;
17997
17998sunos4*)
17999  version_type=sunos
18000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18001  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18002  shlibpath_var=LD_LIBRARY_PATH
18003  shlibpath_overrides_runpath=yes
18004  if test "$with_gnu_ld" = yes; then
18005    need_lib_prefix=no
18006  fi
18007  need_version=yes
18008  ;;
18009
18010sysv4 | sysv4.3*)
18011  version_type=linux
18012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013  soname_spec='${libname}${release}${shared_ext}$major'
18014  shlibpath_var=LD_LIBRARY_PATH
18015  case $host_vendor in
18016    sni)
18017      shlibpath_overrides_runpath=no
18018      need_lib_prefix=no
18019      export_dynamic_flag_spec='${wl}-Blargedynsym'
18020      runpath_var=LD_RUN_PATH
18021      ;;
18022    siemens)
18023      need_lib_prefix=no
18024      ;;
18025    motorola)
18026      need_lib_prefix=no
18027      need_version=no
18028      shlibpath_overrides_runpath=no
18029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18030      ;;
18031  esac
18032  ;;
18033
18034sysv4*MP*)
18035  if test -d /usr/nec ;then
18036    version_type=linux
18037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18038    soname_spec='$libname${shared_ext}.$major'
18039    shlibpath_var=LD_LIBRARY_PATH
18040  fi
18041  ;;
18042
18043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18044  version_type=freebsd-elf
18045  need_lib_prefix=no
18046  need_version=no
18047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18048  soname_spec='${libname}${release}${shared_ext}$major'
18049  shlibpath_var=LD_LIBRARY_PATH
18050  hardcode_into_libs=yes
18051  if test "$with_gnu_ld" = yes; then
18052    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18053    shlibpath_overrides_runpath=no
18054  else
18055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18056    shlibpath_overrides_runpath=yes
18057    case $host_os in
18058      sco3.2v5*)
18059        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18060	;;
18061    esac
18062  fi
18063  sys_lib_dlsearch_path_spec='/usr/lib'
18064  ;;
18065
18066uts4*)
18067  version_type=linux
18068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069  soname_spec='${libname}${release}${shared_ext}$major'
18070  shlibpath_var=LD_LIBRARY_PATH
18071  ;;
18072
18073*)
18074  dynamic_linker=no
18075  ;;
18076esac
18077echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18078echo "${ECHO_T}$dynamic_linker" >&6
18079test "$dynamic_linker" = no && can_build_shared=no
18080
18081variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18082if test "$GCC" = yes; then
18083  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18084fi
18085
18086echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18087echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18088hardcode_action_F77=
18089if test -n "$hardcode_libdir_flag_spec_F77" || \
18090   test -n "$runpath_var_F77" || \
18091   test "X$hardcode_automatic_F77" = "Xyes" ; then
18092
18093  # We can hardcode non-existant directories.
18094  if test "$hardcode_direct_F77" != no &&
18095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18096     # have to relink, otherwise we might link with an installed library
18097     # when we should be linking with a yet-to-be-installed one
18098     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18099     test "$hardcode_minus_L_F77" != no; then
18100    # Linking always hardcodes the temporary library directory.
18101    hardcode_action_F77=relink
18102  else
18103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18104    hardcode_action_F77=immediate
18105  fi
18106else
18107  # We cannot hardcode anything, or else we can only hardcode existing
18108  # directories.
18109  hardcode_action_F77=unsupported
18110fi
18111echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18112echo "${ECHO_T}$hardcode_action_F77" >&6
18113
18114if test "$hardcode_action_F77" = relink; then
18115  # Fast installation is not supported
18116  enable_fast_install=no
18117elif test "$shlibpath_overrides_runpath" = yes ||
18118     test "$enable_shared" = no; then
18119  # Fast installation is not necessary
18120  enable_fast_install=needless
18121fi
18122
18123
18124# The else clause should only fire when bootstrapping the
18125# libtool distribution, otherwise you forgot to ship ltmain.sh
18126# with your package, and you will get complaints that there are
18127# no rules to generate ltmain.sh.
18128if test -f "$ltmain"; then
18129  # See if we are running on zsh, and set the options which allow our commands through
18130  # without removal of \ escapes.
18131  if test -n "${ZSH_VERSION+set}" ; then
18132    setopt NO_GLOB_SUBST
18133  fi
18134  # Now quote all the things that may contain metacharacters while being
18135  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18136  # variables and quote the copies for generation of the libtool script.
18137  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18138    SED SHELL STRIP \
18139    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18140    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18141    deplibs_check_method reload_flag reload_cmds need_locks \
18142    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18143    lt_cv_sys_global_symbol_to_c_name_address \
18144    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18145    old_postinstall_cmds old_postuninstall_cmds \
18146    compiler_F77 \
18147    CC_F77 \
18148    LD_F77 \
18149    lt_prog_compiler_wl_F77 \
18150    lt_prog_compiler_pic_F77 \
18151    lt_prog_compiler_static_F77 \
18152    lt_prog_compiler_no_builtin_flag_F77 \
18153    export_dynamic_flag_spec_F77 \
18154    thread_safe_flag_spec_F77 \
18155    whole_archive_flag_spec_F77 \
18156    enable_shared_with_static_runtimes_F77 \
18157    old_archive_cmds_F77 \
18158    old_archive_from_new_cmds_F77 \
18159    predep_objects_F77 \
18160    postdep_objects_F77 \
18161    predeps_F77 \
18162    postdeps_F77 \
18163    compiler_lib_search_path_F77 \
18164    archive_cmds_F77 \
18165    archive_expsym_cmds_F77 \
18166    postinstall_cmds_F77 \
18167    postuninstall_cmds_F77 \
18168    old_archive_from_expsyms_cmds_F77 \
18169    allow_undefined_flag_F77 \
18170    no_undefined_flag_F77 \
18171    export_symbols_cmds_F77 \
18172    hardcode_libdir_flag_spec_F77 \
18173    hardcode_libdir_flag_spec_ld_F77 \
18174    hardcode_libdir_separator_F77 \
18175    hardcode_automatic_F77 \
18176    module_cmds_F77 \
18177    module_expsym_cmds_F77 \
18178    lt_cv_prog_compiler_c_o_F77 \
18179    exclude_expsyms_F77 \
18180    include_expsyms_F77; do
18181
18182    case $var in
18183    old_archive_cmds_F77 | \
18184    old_archive_from_new_cmds_F77 | \
18185    archive_cmds_F77 | \
18186    archive_expsym_cmds_F77 | \
18187    module_cmds_F77 | \
18188    module_expsym_cmds_F77 | \
18189    old_archive_from_expsyms_cmds_F77 | \
18190    export_symbols_cmds_F77 | \
18191    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18192    postinstall_cmds | postuninstall_cmds | \
18193    old_postinstall_cmds | old_postuninstall_cmds | \
18194    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18195      # Double-quote double-evaled strings.
18196      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18197      ;;
18198    *)
18199      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18200      ;;
18201    esac
18202  done
18203
18204  case $lt_echo in
18205  *'\$0 --fallback-echo"')
18206    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18207    ;;
18208  esac
18209
18210cfgfile="$ofile"
18211
18212  cat <<__EOF__ >> "$cfgfile"
18213# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18214
18215# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18216
18217# Shell to use when invoking shell scripts.
18218SHELL=$lt_SHELL
18219
18220# Whether or not to build shared libraries.
18221build_libtool_libs=$enable_shared
18222
18223# Whether or not to build static libraries.
18224build_old_libs=$enable_static
18225
18226# Whether or not to add -lc for building shared libraries.
18227build_libtool_need_lc=$archive_cmds_need_lc_F77
18228
18229# Whether or not to disallow shared libs when runtime libs are static
18230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18231
18232# Whether or not to optimize for fast installation.
18233fast_install=$enable_fast_install
18234
18235# The host system.
18236host_alias=$host_alias
18237host=$host
18238host_os=$host_os
18239
18240# The build system.
18241build_alias=$build_alias
18242build=$build
18243build_os=$build_os
18244
18245# An echo program that does not interpret backslashes.
18246echo=$lt_echo
18247
18248# The archiver.
18249AR=$lt_AR
18250AR_FLAGS=$lt_AR_FLAGS
18251
18252# A C compiler.
18253LTCC=$lt_LTCC
18254
18255# LTCC compiler flags.
18256LTCFLAGS=$lt_LTCFLAGS
18257
18258# A language-specific compiler.
18259CC=$lt_compiler_F77
18260
18261# Is the compiler the GNU C compiler?
18262with_gcc=$GCC_F77
18263
18264# An ERE matcher.
18265EGREP=$lt_EGREP
18266
18267# The linker used to build libraries.
18268LD=$lt_LD_F77
18269
18270# Whether we need hard or soft links.
18271LN_S=$lt_LN_S
18272
18273# A BSD-compatible nm program.
18274NM=$lt_NM
18275
18276# A symbol stripping program
18277STRIP=$lt_STRIP
18278
18279# Used to examine libraries when file_magic_cmd begins "file"
18280MAGIC_CMD=$MAGIC_CMD
18281
18282# Used on cygwin: DLL creation program.
18283DLLTOOL="$DLLTOOL"
18284
18285# Used on cygwin: object dumper.
18286OBJDUMP="$OBJDUMP"
18287
18288# Used on cygwin: assembler.
18289AS="$AS"
18290
18291# The name of the directory that contains temporary libtool files.
18292objdir=$objdir
18293
18294# How to create reloadable object files.
18295reload_flag=$lt_reload_flag
18296reload_cmds=$lt_reload_cmds
18297
18298# How to pass a linker flag through the compiler.
18299wl=$lt_lt_prog_compiler_wl_F77
18300
18301# Object file suffix (normally "o").
18302objext="$ac_objext"
18303
18304# Old archive suffix (normally "a").
18305libext="$libext"
18306
18307# Shared library suffix (normally ".so").
18308shrext_cmds='$shrext_cmds'
18309
18310# Executable file suffix (normally "").
18311exeext="$exeext"
18312
18313# Additional compiler flags for building library objects.
18314pic_flag=$lt_lt_prog_compiler_pic_F77
18315pic_mode=$pic_mode
18316
18317# What is the maximum length of a command?
18318max_cmd_len=$lt_cv_sys_max_cmd_len
18319
18320# Does compiler simultaneously support -c and -o options?
18321compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18322
18323# Must we lock files when doing compilation?
18324need_locks=$lt_need_locks
18325
18326# Do we need the lib prefix for modules?
18327need_lib_prefix=$need_lib_prefix
18328
18329# Do we need a version for libraries?
18330need_version=$need_version
18331
18332# Whether dlopen is supported.
18333dlopen_support=$enable_dlopen
18334
18335# Whether dlopen of programs is supported.
18336dlopen_self=$enable_dlopen_self
18337
18338# Whether dlopen of statically linked programs is supported.
18339dlopen_self_static=$enable_dlopen_self_static
18340
18341# Compiler flag to prevent dynamic linking.
18342link_static_flag=$lt_lt_prog_compiler_static_F77
18343
18344# Compiler flag to turn off builtin functions.
18345no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18346
18347# Compiler flag to allow reflexive dlopens.
18348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18349
18350# Compiler flag to generate shared objects directly from archives.
18351whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18352
18353# Compiler flag to generate thread-safe objects.
18354thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18355
18356# Library versioning type.
18357version_type=$version_type
18358
18359# Format of library name prefix.
18360libname_spec=$lt_libname_spec
18361
18362# List of archive names.  First name is the real one, the rest are links.
18363# The last name is the one that the linker finds with -lNAME.
18364library_names_spec=$lt_library_names_spec
18365
18366# The coded name of the library, if different from the real name.
18367soname_spec=$lt_soname_spec
18368
18369# Commands used to build and install an old-style archive.
18370RANLIB=$lt_RANLIB
18371old_archive_cmds=$lt_old_archive_cmds_F77
18372old_postinstall_cmds=$lt_old_postinstall_cmds
18373old_postuninstall_cmds=$lt_old_postuninstall_cmds
18374
18375# Create an old-style archive from a shared archive.
18376old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18377
18378# Create a temporary old-style archive to link instead of a shared archive.
18379old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18380
18381# Commands used to build and install a shared archive.
18382archive_cmds=$lt_archive_cmds_F77
18383archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18384postinstall_cmds=$lt_postinstall_cmds
18385postuninstall_cmds=$lt_postuninstall_cmds
18386
18387# Commands used to build a loadable module (assumed same as above if empty)
18388module_cmds=$lt_module_cmds_F77
18389module_expsym_cmds=$lt_module_expsym_cmds_F77
18390
18391# Commands to strip libraries.
18392old_striplib=$lt_old_striplib
18393striplib=$lt_striplib
18394
18395# Dependencies to place before the objects being linked to create a
18396# shared library.
18397predep_objects=$lt_predep_objects_F77
18398
18399# Dependencies to place after the objects being linked to create a
18400# shared library.
18401postdep_objects=$lt_postdep_objects_F77
18402
18403# Dependencies to place before the objects being linked to create a
18404# shared library.
18405predeps=$lt_predeps_F77
18406
18407# Dependencies to place after the objects being linked to create a
18408# shared library.
18409postdeps=$lt_postdeps_F77
18410
18411# The library search path used internally by the compiler when linking
18412# a shared library.
18413compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18414
18415# Method to check whether dependent libraries are shared objects.
18416deplibs_check_method=$lt_deplibs_check_method
18417
18418# Command to use when deplibs_check_method == file_magic.
18419file_magic_cmd=$lt_file_magic_cmd
18420
18421# Flag that allows shared libraries with undefined symbols to be built.
18422allow_undefined_flag=$lt_allow_undefined_flag_F77
18423
18424# Flag that forces no undefined symbols.
18425no_undefined_flag=$lt_no_undefined_flag_F77
18426
18427# Commands used to finish a libtool library installation in a directory.
18428finish_cmds=$lt_finish_cmds
18429
18430# Same as above, but a single script fragment to be evaled but not shown.
18431finish_eval=$lt_finish_eval
18432
18433# Take the output of nm and produce a listing of raw symbols and C names.
18434global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18435
18436# Transform the output of nm in a proper C declaration
18437global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18438
18439# Transform the output of nm in a C name address pair
18440global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18441
18442# This is the shared library runtime path variable.
18443runpath_var=$runpath_var
18444
18445# This is the shared library path variable.
18446shlibpath_var=$shlibpath_var
18447
18448# Is shlibpath searched before the hard-coded library search path?
18449shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18450
18451# How to hardcode a shared library path into an executable.
18452hardcode_action=$hardcode_action_F77
18453
18454# Whether we should hardcode library paths into libraries.
18455hardcode_into_libs=$hardcode_into_libs
18456
18457# Flag to hardcode \$libdir into a binary during linking.
18458# This must work even if \$libdir does not exist.
18459hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18460
18461# If ld is used when linking, flag to hardcode \$libdir into
18462# a binary during linking. This must work even if \$libdir does
18463# not exist.
18464hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18465
18466# Whether we need a single -rpath flag with a separated argument.
18467hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18468
18469# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18470# resulting binary.
18471hardcode_direct=$hardcode_direct_F77
18472
18473# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18474# resulting binary.
18475hardcode_minus_L=$hardcode_minus_L_F77
18476
18477# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18478# the resulting binary.
18479hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18480
18481# Set to yes if building a shared library automatically hardcodes DIR into the library
18482# and all subsequent libraries and executables linked against it.
18483hardcode_automatic=$hardcode_automatic_F77
18484
18485# Variables whose values should be saved in libtool wrapper scripts and
18486# restored at relink time.
18487variables_saved_for_relink="$variables_saved_for_relink"
18488
18489# Whether libtool must link a program against all its dependency libraries.
18490link_all_deplibs=$link_all_deplibs_F77
18491
18492# Compile-time system search path for libraries
18493sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18494
18495# Run-time system search path for libraries
18496sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18497
18498# Fix the shell variable \$srcfile for the compiler.
18499fix_srcfile_path="$fix_srcfile_path_F77"
18500
18501# Set to yes if exported symbols are required.
18502always_export_symbols=$always_export_symbols_F77
18503
18504# The commands to list exported symbols.
18505export_symbols_cmds=$lt_export_symbols_cmds_F77
18506
18507# The commands to extract the exported symbol list from a shared archive.
18508extract_expsyms_cmds=$lt_extract_expsyms_cmds
18509
18510# Symbols that should not be listed in the preloaded symbols.
18511exclude_expsyms=$lt_exclude_expsyms_F77
18512
18513# Symbols that must always be exported.
18514include_expsyms=$lt_include_expsyms_F77
18515
18516# ### END LIBTOOL TAG CONFIG: $tagname
18517
18518__EOF__
18519
18520
18521else
18522  # If there is no Makefile yet, we rely on a make rule to execute
18523  # `config.status --recheck' to rerun these tests and create the
18524  # libtool script then.
18525  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18526  if test -f "$ltmain_in"; then
18527    test -f Makefile && make "$ltmain"
18528  fi
18529fi
18530
18531
18532ac_ext=c
18533ac_cpp='$CPP $CPPFLAGS'
18534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536ac_compiler_gnu=$ac_cv_c_compiler_gnu
18537
18538CC="$lt_save_CC"
18539
18540	else
18541	  tagname=""
18542	fi
18543	;;
18544
18545      GCJ)
18546	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18547
18548
18549
18550# Source file extension for Java test sources.
18551ac_ext=java
18552
18553# Object file extension for compiled Java test sources.
18554objext=o
18555objext_GCJ=$objext
18556
18557# Code to be used in simple compile tests
18558lt_simple_compile_test_code="class foo {}\n"
18559
18560# Code to be used in simple link tests
18561lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18562
18563# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18564
18565# If no C compiler was specified, use CC.
18566LTCC=${LTCC-"$CC"}
18567
18568# If no C compiler flags were specified, use CFLAGS.
18569LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18570
18571# Allow CC to be a program name with arguments.
18572compiler=$CC
18573
18574
18575# save warnings/boilerplate of simple test code
18576ac_outfile=conftest.$ac_objext
18577printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18579_lt_compiler_boilerplate=`cat conftest.err`
18580$rm conftest*
18581
18582ac_outfile=conftest.$ac_objext
18583printf "$lt_simple_link_test_code" >conftest.$ac_ext
18584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18585_lt_linker_boilerplate=`cat conftest.err`
18586$rm conftest*
18587
18588
18589# Allow CC to be a program name with arguments.
18590lt_save_CC="$CC"
18591CC=${GCJ-"gcj"}
18592compiler=$CC
18593compiler_GCJ=$CC
18594for cc_temp in $compiler""; do
18595  case $cc_temp in
18596    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18597    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18598    \-*) ;;
18599    *) break;;
18600  esac
18601done
18602cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18603
18604
18605# GCJ did not exist at the time GCC didn't implicitly link libc in.
18606archive_cmds_need_lc_GCJ=no
18607
18608old_archive_cmds_GCJ=$old_archive_cmds
18609
18610## CAVEAT EMPTOR:
18611## There is no encapsulation within the following macros, do not change
18612## the running order or otherwise move them around unless you know exactly
18613## what you are doing...
18614
18615lt_prog_compiler_no_builtin_flag_GCJ=
18616
18617if test "$GCC" = yes; then
18618  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18619
18620
18621echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18622echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18623if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18624  echo $ECHO_N "(cached) $ECHO_C" >&6
18625else
18626  lt_cv_prog_compiler_rtti_exceptions=no
18627  ac_outfile=conftest.$ac_objext
18628   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18629   lt_compiler_flag="-fno-rtti -fno-exceptions"
18630   # Insert the option either (1) after the last *FLAGS variable, or
18631   # (2) before a word containing "conftest.", or (3) at the end.
18632   # Note that $ac_compile itself does not contain backslashes and begins
18633   # with a dollar sign (not a hyphen), so the echo should work correctly.
18634   # The option is referenced via a variable to avoid confusing sed.
18635   lt_compile=`echo "$ac_compile" | $SED \
18636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18638   -e 's:$: $lt_compiler_flag:'`
18639   (eval echo "\"\$as_me:18639: $lt_compile\"" >&5)
18640   (eval "$lt_compile" 2>conftest.err)
18641   ac_status=$?
18642   cat conftest.err >&5
18643   echo "$as_me:18643: \$? = $ac_status" >&5
18644   if (exit $ac_status) && test -s "$ac_outfile"; then
18645     # The compiler can only warn and ignore the option if not recognized
18646     # So say no if there are warnings other than the usual output.
18647     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18648     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18649     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18650       lt_cv_prog_compiler_rtti_exceptions=yes
18651     fi
18652   fi
18653   $rm conftest*
18654
18655fi
18656echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18657echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18658
18659if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18660    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18661else
18662    :
18663fi
18664
18665fi
18666
18667lt_prog_compiler_wl_GCJ=
18668lt_prog_compiler_pic_GCJ=
18669lt_prog_compiler_static_GCJ=
18670
18671echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18672echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18673
18674  if test "$GCC" = yes; then
18675    lt_prog_compiler_wl_GCJ='-Wl,'
18676    lt_prog_compiler_static_GCJ='-static'
18677
18678    case $host_os in
18679      aix*)
18680      # All AIX code is PIC.
18681      if test "$host_cpu" = ia64; then
18682	# AIX 5 now supports IA64 processor
18683	lt_prog_compiler_static_GCJ='-Bstatic'
18684      fi
18685      ;;
18686
18687    amigaos*)
18688      # FIXME: we need at least 68020 code to build shared libraries, but
18689      # adding the `-m68020' flag to GCC prevents building anything better,
18690      # like `-m68040'.
18691      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18692      ;;
18693
18694    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18695      # PIC is the default for these OSes.
18696      ;;
18697
18698    mingw* | pw32* | os2*)
18699      # This hack is so that the source file can tell whether it is being
18700      # built for inclusion in a dll (and should export symbols for example).
18701      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18702      ;;
18703
18704    darwin* | rhapsody*)
18705      # PIC is the default on this platform
18706      # Common symbols not allowed in MH_DYLIB files
18707      lt_prog_compiler_pic_GCJ='-fno-common'
18708      ;;
18709
18710    interix3*)
18711      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18712      # Instead, we relocate shared libraries at runtime.
18713      ;;
18714
18715    msdosdjgpp*)
18716      # Just because we use GCC doesn't mean we suddenly get shared libraries
18717      # on systems that don't support them.
18718      lt_prog_compiler_can_build_shared_GCJ=no
18719      enable_shared=no
18720      ;;
18721
18722    sysv4*MP*)
18723      if test -d /usr/nec; then
18724	lt_prog_compiler_pic_GCJ=-Kconform_pic
18725      fi
18726      ;;
18727
18728    hpux*)
18729      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18730      # not for PA HP-UX.
18731      case $host_cpu in
18732      hppa*64*|ia64*)
18733	# +Z the default
18734	;;
18735      *)
18736	lt_prog_compiler_pic_GCJ='-fPIC'
18737	;;
18738      esac
18739      ;;
18740
18741    *)
18742      lt_prog_compiler_pic_GCJ='-fPIC'
18743      ;;
18744    esac
18745  else
18746    # PORTME Check for flag to pass linker flags through the system compiler.
18747    case $host_os in
18748    aix*)
18749      lt_prog_compiler_wl_GCJ='-Wl,'
18750      if test "$host_cpu" = ia64; then
18751	# AIX 5 now supports IA64 processor
18752	lt_prog_compiler_static_GCJ='-Bstatic'
18753      else
18754	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18755      fi
18756      ;;
18757      darwin*)
18758        # PIC is the default on this platform
18759        # Common symbols not allowed in MH_DYLIB files
18760       case $cc_basename in
18761         xlc*)
18762         lt_prog_compiler_pic_GCJ='-qnocommon'
18763         lt_prog_compiler_wl_GCJ='-Wl,'
18764         ;;
18765       esac
18766       ;;
18767
18768    mingw* | pw32* | os2*)
18769      # This hack is so that the source file can tell whether it is being
18770      # built for inclusion in a dll (and should export symbols for example).
18771      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18772      ;;
18773
18774    hpux9* | hpux10* | hpux11*)
18775      lt_prog_compiler_wl_GCJ='-Wl,'
18776      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18777      # not for PA HP-UX.
18778      case $host_cpu in
18779      hppa*64*|ia64*)
18780	# +Z the default
18781	;;
18782      *)
18783	lt_prog_compiler_pic_GCJ='+Z'
18784	;;
18785      esac
18786      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18787      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18788      ;;
18789
18790    irix5* | irix6* | nonstopux*)
18791      lt_prog_compiler_wl_GCJ='-Wl,'
18792      # PIC (with -KPIC) is the default.
18793      lt_prog_compiler_static_GCJ='-non_shared'
18794      ;;
18795
18796    newsos6)
18797      lt_prog_compiler_pic_GCJ='-KPIC'
18798      lt_prog_compiler_static_GCJ='-Bstatic'
18799      ;;
18800
18801    linux*)
18802      case $cc_basename in
18803      icc* | ecc*)
18804	lt_prog_compiler_wl_GCJ='-Wl,'
18805	lt_prog_compiler_pic_GCJ='-KPIC'
18806	lt_prog_compiler_static_GCJ='-static'
18807        ;;
18808      pgcc* | pgf77* | pgf90* | pgf95*)
18809        # Portland Group compilers (*not* the Pentium gcc compiler,
18810	# which looks to be a dead project)
18811	lt_prog_compiler_wl_GCJ='-Wl,'
18812	lt_prog_compiler_pic_GCJ='-fpic'
18813	lt_prog_compiler_static_GCJ='-Bstatic'
18814        ;;
18815      ccc*)
18816        lt_prog_compiler_wl_GCJ='-Wl,'
18817        # All Alpha code is PIC.
18818        lt_prog_compiler_static_GCJ='-non_shared'
18819        ;;
18820      esac
18821      ;;
18822
18823    osf3* | osf4* | osf5*)
18824      lt_prog_compiler_wl_GCJ='-Wl,'
18825      # All OSF/1 code is PIC.
18826      lt_prog_compiler_static_GCJ='-non_shared'
18827      ;;
18828
18829    solaris*)
18830      lt_prog_compiler_pic_GCJ='-KPIC'
18831      lt_prog_compiler_static_GCJ='-Bstatic'
18832      case $cc_basename in
18833      f77* | f90* | f95*)
18834	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18835      *)
18836	lt_prog_compiler_wl_GCJ='-Wl,';;
18837      esac
18838      ;;
18839
18840    sunos4*)
18841      lt_prog_compiler_wl_GCJ='-Qoption ld '
18842      lt_prog_compiler_pic_GCJ='-PIC'
18843      lt_prog_compiler_static_GCJ='-Bstatic'
18844      ;;
18845
18846    sysv4 | sysv4.2uw2* | sysv4.3*)
18847      lt_prog_compiler_wl_GCJ='-Wl,'
18848      lt_prog_compiler_pic_GCJ='-KPIC'
18849      lt_prog_compiler_static_GCJ='-Bstatic'
18850      ;;
18851
18852    sysv4*MP*)
18853      if test -d /usr/nec ;then
18854	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18855	lt_prog_compiler_static_GCJ='-Bstatic'
18856      fi
18857      ;;
18858
18859    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18860      lt_prog_compiler_wl_GCJ='-Wl,'
18861      lt_prog_compiler_pic_GCJ='-KPIC'
18862      lt_prog_compiler_static_GCJ='-Bstatic'
18863      ;;
18864
18865    unicos*)
18866      lt_prog_compiler_wl_GCJ='-Wl,'
18867      lt_prog_compiler_can_build_shared_GCJ=no
18868      ;;
18869
18870    uts4*)
18871      lt_prog_compiler_pic_GCJ='-pic'
18872      lt_prog_compiler_static_GCJ='-Bstatic'
18873      ;;
18874
18875    *)
18876      lt_prog_compiler_can_build_shared_GCJ=no
18877      ;;
18878    esac
18879  fi
18880
18881echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18882echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18883
18884#
18885# Check to make sure the PIC flag actually works.
18886#
18887if test -n "$lt_prog_compiler_pic_GCJ"; then
18888
18889echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18890echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18891if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18892  echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894  lt_prog_compiler_pic_works_GCJ=no
18895  ac_outfile=conftest.$ac_objext
18896   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18897   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18898   # Insert the option either (1) after the last *FLAGS variable, or
18899   # (2) before a word containing "conftest.", or (3) at the end.
18900   # Note that $ac_compile itself does not contain backslashes and begins
18901   # with a dollar sign (not a hyphen), so the echo should work correctly.
18902   # The option is referenced via a variable to avoid confusing sed.
18903   lt_compile=`echo "$ac_compile" | $SED \
18904   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18906   -e 's:$: $lt_compiler_flag:'`
18907   (eval echo "\"\$as_me:18907: $lt_compile\"" >&5)
18908   (eval "$lt_compile" 2>conftest.err)
18909   ac_status=$?
18910   cat conftest.err >&5
18911   echo "$as_me:18911: \$? = $ac_status" >&5
18912   if (exit $ac_status) && test -s "$ac_outfile"; then
18913     # The compiler can only warn and ignore the option if not recognized
18914     # So say no if there are warnings other than the usual output.
18915     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18916     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18917     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18918       lt_prog_compiler_pic_works_GCJ=yes
18919     fi
18920   fi
18921   $rm conftest*
18922
18923fi
18924echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18925echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18926
18927if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18928    case $lt_prog_compiler_pic_GCJ in
18929     "" | " "*) ;;
18930     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18931     esac
18932else
18933    lt_prog_compiler_pic_GCJ=
18934     lt_prog_compiler_can_build_shared_GCJ=no
18935fi
18936
18937fi
18938case $host_os in
18939  # For platforms which do not support PIC, -DPIC is meaningless:
18940  *djgpp*)
18941    lt_prog_compiler_pic_GCJ=
18942    ;;
18943  *)
18944    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18945    ;;
18946esac
18947
18948#
18949# Check to make sure the static flag actually works.
18950#
18951wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18952echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18953echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18954if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18955  echo $ECHO_N "(cached) $ECHO_C" >&6
18956else
18957  lt_prog_compiler_static_works_GCJ=no
18958   save_LDFLAGS="$LDFLAGS"
18959   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18960   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18961   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18962     # The linker can only warn and ignore the option if not recognized
18963     # So say no if there are warnings
18964     if test -s conftest.err; then
18965       # Append any errors to the config.log.
18966       cat conftest.err 1>&5
18967       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18968       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18969       if diff conftest.exp conftest.er2 >/dev/null; then
18970         lt_prog_compiler_static_works_GCJ=yes
18971       fi
18972     else
18973       lt_prog_compiler_static_works_GCJ=yes
18974     fi
18975   fi
18976   $rm conftest*
18977   LDFLAGS="$save_LDFLAGS"
18978
18979fi
18980echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18981echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
18982
18983if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18984    :
18985else
18986    lt_prog_compiler_static_GCJ=
18987fi
18988
18989
18990echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18991echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18992if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18993  echo $ECHO_N "(cached) $ECHO_C" >&6
18994else
18995  lt_cv_prog_compiler_c_o_GCJ=no
18996   $rm -r conftest 2>/dev/null
18997   mkdir conftest
18998   cd conftest
18999   mkdir out
19000   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19001
19002   lt_compiler_flag="-o out/conftest2.$ac_objext"
19003   # Insert the option either (1) after the last *FLAGS variable, or
19004   # (2) before a word containing "conftest.", or (3) at the end.
19005   # Note that $ac_compile itself does not contain backslashes and begins
19006   # with a dollar sign (not a hyphen), so the echo should work correctly.
19007   lt_compile=`echo "$ac_compile" | $SED \
19008   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19009   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19010   -e 's:$: $lt_compiler_flag:'`
19011   (eval echo "\"\$as_me:19011: $lt_compile\"" >&5)
19012   (eval "$lt_compile" 2>out/conftest.err)
19013   ac_status=$?
19014   cat out/conftest.err >&5
19015   echo "$as_me:19015: \$? = $ac_status" >&5
19016   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19017   then
19018     # The compiler can only warn and ignore the option if not recognized
19019     # So say no if there are warnings
19020     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19021     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19022     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19023       lt_cv_prog_compiler_c_o_GCJ=yes
19024     fi
19025   fi
19026   chmod u+w . 2>&5
19027   $rm conftest*
19028   # SGI C++ compiler will create directory out/ii_files/ for
19029   # template instantiation
19030   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19031   $rm out/* && rmdir out
19032   cd ..
19033   rmdir conftest
19034   $rm conftest*
19035
19036fi
19037echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19038echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19039
19040
19041hard_links="nottested"
19042if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19043  # do not overwrite the value of need_locks provided by the user
19044  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19045echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19046  hard_links=yes
19047  $rm conftest*
19048  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19049  touch conftest.a
19050  ln conftest.a conftest.b 2>&5 || hard_links=no
19051  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19052  echo "$as_me:$LINENO: result: $hard_links" >&5
19053echo "${ECHO_T}$hard_links" >&6
19054  if test "$hard_links" = no; then
19055    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19056echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19057    need_locks=warn
19058  fi
19059else
19060  need_locks=no
19061fi
19062
19063echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19064echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19065
19066  runpath_var=
19067  allow_undefined_flag_GCJ=
19068  enable_shared_with_static_runtimes_GCJ=no
19069  archive_cmds_GCJ=
19070  archive_expsym_cmds_GCJ=
19071  old_archive_From_new_cmds_GCJ=
19072  old_archive_from_expsyms_cmds_GCJ=
19073  export_dynamic_flag_spec_GCJ=
19074  whole_archive_flag_spec_GCJ=
19075  thread_safe_flag_spec_GCJ=
19076  hardcode_libdir_flag_spec_GCJ=
19077  hardcode_libdir_flag_spec_ld_GCJ=
19078  hardcode_libdir_separator_GCJ=
19079  hardcode_direct_GCJ=no
19080  hardcode_minus_L_GCJ=no
19081  hardcode_shlibpath_var_GCJ=unsupported
19082  link_all_deplibs_GCJ=unknown
19083  hardcode_automatic_GCJ=no
19084  module_cmds_GCJ=
19085  module_expsym_cmds_GCJ=
19086  always_export_symbols_GCJ=no
19087  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19088  # include_expsyms should be a list of space-separated symbols to be *always*
19089  # included in the symbol list
19090  include_expsyms_GCJ=
19091  # exclude_expsyms can be an extended regexp of symbols to exclude
19092  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19093  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19094  # as well as any symbol that contains `d'.
19095  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19096  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19097  # platforms (ab)use it in PIC code, but their linkers get confused if
19098  # the symbol is explicitly referenced.  Since portable code cannot
19099  # rely on this symbol name, it's probably fine to never include it in
19100  # preloaded symbol tables.
19101  extract_expsyms_cmds=
19102  # Just being paranoid about ensuring that cc_basename is set.
19103  for cc_temp in $compiler""; do
19104  case $cc_temp in
19105    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19106    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19107    \-*) ;;
19108    *) break;;
19109  esac
19110done
19111cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19112
19113  case $host_os in
19114  cygwin* | mingw* | pw32*)
19115    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19116    # When not using gcc, we currently assume that we are using
19117    # Microsoft Visual C++.
19118    if test "$GCC" != yes; then
19119      with_gnu_ld=no
19120    fi
19121    ;;
19122  interix*)
19123    # we just hope/assume this is gcc and not c89 (= MSVC++)
19124    with_gnu_ld=yes
19125    ;;
19126  openbsd*)
19127    with_gnu_ld=no
19128    ;;
19129  esac
19130
19131  ld_shlibs_GCJ=yes
19132  if test "$with_gnu_ld" = yes; then
19133    # If archive_cmds runs LD, not CC, wlarc should be empty
19134    wlarc='${wl}'
19135
19136    # Set some defaults for GNU ld with shared library support. These
19137    # are reset later if shared libraries are not supported. Putting them
19138    # here allows them to be overridden if necessary.
19139    runpath_var=LD_RUN_PATH
19140    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19141    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19142    # ancient GNU ld didn't support --whole-archive et. al.
19143    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19144	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19145      else
19146  	whole_archive_flag_spec_GCJ=
19147    fi
19148    supports_anon_versioning=no
19149    case `$LD -v 2>/dev/null` in
19150      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19151      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19152      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19153      *\ 2.11.*) ;; # other 2.11 versions
19154      *) supports_anon_versioning=yes ;;
19155    esac
19156
19157    # See if GNU ld supports shared libraries.
19158    case $host_os in
19159    aix3* | aix4* | aix5*)
19160      # On AIX/PPC, the GNU linker is very broken
19161      if test "$host_cpu" != ia64; then
19162	ld_shlibs_GCJ=no
19163	cat <<EOF 1>&2
19164
19165*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19166*** to be unable to reliably create shared libraries on AIX.
19167*** Therefore, libtool is disabling shared libraries support.  If you
19168*** really care for shared libraries, you may want to modify your PATH
19169*** so that a non-GNU linker is found, and then restart.
19170
19171EOF
19172      fi
19173      ;;
19174
19175    amigaos*)
19176      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)'
19177      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19178      hardcode_minus_L_GCJ=yes
19179
19180      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19181      # that the semantics of dynamic libraries on AmigaOS, at least up
19182      # to version 4, is to share data among multiple programs linked
19183      # with the same dynamic library.  Since this doesn't match the
19184      # behavior of shared libraries on other platforms, we can't use
19185      # them.
19186      ld_shlibs_GCJ=no
19187      ;;
19188
19189    beos*)
19190      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19191	allow_undefined_flag_GCJ=unsupported
19192	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19193	# support --undefined.  This deserves some investigation.  FIXME
19194	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195      else
19196	ld_shlibs_GCJ=no
19197      fi
19198      ;;
19199
19200    cygwin* | mingw* | pw32*)
19201      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19202      # as there is no search path for DLLs.
19203      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19204      allow_undefined_flag_GCJ=unsupported
19205      always_export_symbols_GCJ=no
19206      enable_shared_with_static_runtimes_GCJ=yes
19207      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19208
19209      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19210        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19211	# If the export-symbols file already is a .def file (1st line
19212	# is EXPORTS), use it as is; otherwise, prepend...
19213	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19214	  cp $export_symbols $output_objdir/$soname.def;
19215	else
19216	  echo EXPORTS > $output_objdir/$soname.def;
19217	  cat $export_symbols >> $output_objdir/$soname.def;
19218	fi~
19219	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19220      else
19221	ld_shlibs_GCJ=no
19222      fi
19223      ;;
19224
19225    interix3*)
19226      hardcode_direct_GCJ=no
19227      hardcode_shlibpath_var_GCJ=no
19228      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19229      export_dynamic_flag_spec_GCJ='${wl}-E'
19230      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19231      # Instead, shared libraries are loaded at an image base (0x10000000 by
19232      # default) and relocated if they conflict, which is a slow very memory
19233      # consuming and fragmenting process.  To avoid this, we pick a random,
19234      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19235      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19236      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'
19237      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'
19238      ;;
19239
19240    linux*)
19241      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19242	tmp_addflag=
19243	case $cc_basename,$host_cpu in
19244	pgcc*)				# Portland Group C compiler
19245	  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'
19246	  tmp_addflag=' $pic_flag'
19247	  ;;
19248	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
19249	  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'
19250	  tmp_addflag=' $pic_flag -Mnomain' ;;
19251	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
19252	  tmp_addflag=' -i_dynamic' ;;
19253	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19254	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19255	ifc* | ifort*)			# Intel Fortran compiler
19256	  tmp_addflag=' -nofor_main' ;;
19257	esac
19258	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259
19260	if test $supports_anon_versioning = yes; then
19261	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19262  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19263  $echo "local: *; };" >> $output_objdir/$libname.ver~
19264	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19265	fi
19266      else
19267	ld_shlibs_GCJ=no
19268      fi
19269      ;;
19270
19271    netbsd*)
19272      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19273	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19274	wlarc=
19275      else
19276	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19277	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19278      fi
19279      ;;
19280
19281    solaris*)
19282      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19283	ld_shlibs_GCJ=no
19284	cat <<EOF 1>&2
19285
19286*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19287*** create shared libraries on Solaris systems.  Therefore, libtool
19288*** is disabling shared libraries support.  We urge you to upgrade GNU
19289*** binutils to release 2.9.1 or newer.  Another option is to modify
19290*** your PATH or compiler configuration so that the native linker is
19291*** used, and then restart.
19292
19293EOF
19294      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19295	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19296	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19297      else
19298	ld_shlibs_GCJ=no
19299      fi
19300      ;;
19301
19302    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19303      case `$LD -v 2>&1` in
19304        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19305	ld_shlibs_GCJ=no
19306	cat <<_LT_EOF 1>&2
19307
19308*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19309*** reliably create shared libraries on SCO systems.  Therefore, libtool
19310*** is disabling shared libraries support.  We urge you to upgrade GNU
19311*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19312*** your PATH or compiler configuration so that the native linker is
19313*** used, and then restart.
19314
19315_LT_EOF
19316	;;
19317	*)
19318	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19319	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19320	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19321	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19322	  else
19323	    ld_shlibs_GCJ=no
19324	  fi
19325	;;
19326      esac
19327      ;;
19328
19329    sunos4*)
19330      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19331      wlarc=
19332      hardcode_direct_GCJ=yes
19333      hardcode_shlibpath_var_GCJ=no
19334      ;;
19335
19336    *)
19337      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19338	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19339	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19340      else
19341	ld_shlibs_GCJ=no
19342      fi
19343      ;;
19344    esac
19345
19346    if test "$ld_shlibs_GCJ" = no; then
19347      runpath_var=
19348      hardcode_libdir_flag_spec_GCJ=
19349      export_dynamic_flag_spec_GCJ=
19350      whole_archive_flag_spec_GCJ=
19351    fi
19352  else
19353    # PORTME fill in a description of your system's linker (not GNU ld)
19354    case $host_os in
19355    aix3*)
19356      allow_undefined_flag_GCJ=unsupported
19357      always_export_symbols_GCJ=yes
19358      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'
19359      # Note: this linker hardcodes the directories in LIBPATH if there
19360      # are no directories specified by -L.
19361      hardcode_minus_L_GCJ=yes
19362      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19363	# Neither direct hardcoding nor static linking is supported with a
19364	# broken collect2.
19365	hardcode_direct_GCJ=unsupported
19366      fi
19367      ;;
19368
19369    aix4* | aix5*)
19370      if test "$host_cpu" = ia64; then
19371	# On IA64, the linker does run time linking by default, so we don't
19372	# have to do anything special.
19373	aix_use_runtimelinking=no
19374	exp_sym_flag='-Bexport'
19375	no_entry_flag=""
19376      else
19377	# If we're using GNU nm, then we don't want the "-C" option.
19378	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19379	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19380	  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'
19381	else
19382	  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'
19383	fi
19384	aix_use_runtimelinking=no
19385
19386	# Test if we are trying to use run time linking or normal
19387	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19388	# need to do runtime linking.
19389	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19390	  for ld_flag in $LDFLAGS; do
19391  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19392  	    aix_use_runtimelinking=yes
19393  	    break
19394  	  fi
19395	  done
19396	  ;;
19397	esac
19398
19399	exp_sym_flag='-bexport'
19400	no_entry_flag='-bnoentry'
19401      fi
19402
19403      # When large executables or shared objects are built, AIX ld can
19404      # have problems creating the table of contents.  If linking a library
19405      # or program results in "error TOC overflow" add -mminimal-toc to
19406      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19407      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19408
19409      archive_cmds_GCJ=''
19410      hardcode_direct_GCJ=yes
19411      hardcode_libdir_separator_GCJ=':'
19412      link_all_deplibs_GCJ=yes
19413
19414      if test "$GCC" = yes; then
19415	case $host_os in aix4.[012]|aix4.[012].*)
19416	# We only want to do this on AIX 4.2 and lower, the check
19417	# below for broken collect2 doesn't work under 4.3+
19418	  collect2name=`${CC} -print-prog-name=collect2`
19419	  if test -f "$collect2name" && \
19420  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19421	  then
19422  	  # We have reworked collect2
19423  	  hardcode_direct_GCJ=yes
19424	  else
19425  	  # We have old collect2
19426  	  hardcode_direct_GCJ=unsupported
19427  	  # It fails to find uninstalled libraries when the uninstalled
19428  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19429  	  # to unsupported forces relinking
19430  	  hardcode_minus_L_GCJ=yes
19431  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19432  	  hardcode_libdir_separator_GCJ=
19433	  fi
19434	  ;;
19435	esac
19436	shared_flag='-shared'
19437	if test "$aix_use_runtimelinking" = yes; then
19438	  shared_flag="$shared_flag "'${wl}-G'
19439	fi
19440      else
19441	# not using gcc
19442	if test "$host_cpu" = ia64; then
19443  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19444  	# chokes on -Wl,-G. The following line is correct:
19445	  shared_flag='-G'
19446	else
19447	  if test "$aix_use_runtimelinking" = yes; then
19448	    shared_flag='${wl}-G'
19449	  else
19450	    shared_flag='${wl}-bM:SRE'
19451	  fi
19452	fi
19453      fi
19454
19455      # It seems that -bexpall does not export symbols beginning with
19456      # underscore (_), so it is better to generate a list of symbols to export.
19457      always_export_symbols_GCJ=yes
19458      if test "$aix_use_runtimelinking" = yes; then
19459	# Warning - without using the other runtime loading flags (-brtl),
19460	# -berok will link without error, but may produce a broken library.
19461	allow_undefined_flag_GCJ='-berok'
19462       # Determine the default libpath from the value encoded in an empty executable.
19463       cat >conftest.$ac_ext <<_ACEOF
19464/* confdefs.h.  */
19465_ACEOF
19466cat confdefs.h >>conftest.$ac_ext
19467cat >>conftest.$ac_ext <<_ACEOF
19468/* end confdefs.h.  */
19469
19470int
19471main ()
19472{
19473
19474  ;
19475  return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext conftest$ac_exeext
19479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19480  (eval $ac_link) 2>conftest.er1
19481  ac_status=$?
19482  grep -v '^ *+' conftest.er1 >conftest.err
19483  rm -f conftest.er1
19484  cat conftest.err >&5
19485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486  (exit $ac_status); } &&
19487	 { ac_try='test -z "$ac_c_werror_flag"
19488			 || test ! -s conftest.err'
19489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490  (eval $ac_try) 2>&5
19491  ac_status=$?
19492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493  (exit $ac_status); }; } &&
19494	 { ac_try='test -s conftest$ac_exeext'
19495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496  (eval $ac_try) 2>&5
19497  ac_status=$?
19498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499  (exit $ac_status); }; }; then
19500
19501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19502}'`
19503# Check for a 64-bit object if we didn't find anything.
19504if 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; }
19505}'`; fi
19506else
19507  echo "$as_me: failed program was:" >&5
19508sed 's/^/| /' conftest.$ac_ext >&5
19509
19510fi
19511rm -f conftest.err conftest.$ac_objext \
19512      conftest$ac_exeext conftest.$ac_ext
19513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19514
19515       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19516	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"
19517       else
19518	if test "$host_cpu" = ia64; then
19519	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19520	  allow_undefined_flag_GCJ="-z nodefs"
19521	  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"
19522	else
19523	 # Determine the default libpath from the value encoded in an empty executable.
19524	 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h.  */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h.  */
19530
19531int
19532main ()
19533{
19534
19535  ;
19536  return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext conftest$ac_exeext
19540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541  (eval $ac_link) 2>conftest.er1
19542  ac_status=$?
19543  grep -v '^ *+' conftest.er1 >conftest.err
19544  rm -f conftest.er1
19545  cat conftest.err >&5
19546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547  (exit $ac_status); } &&
19548	 { ac_try='test -z "$ac_c_werror_flag"
19549			 || test ! -s conftest.err'
19550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551  (eval $ac_try) 2>&5
19552  ac_status=$?
19553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554  (exit $ac_status); }; } &&
19555	 { ac_try='test -s conftest$ac_exeext'
19556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557  (eval $ac_try) 2>&5
19558  ac_status=$?
19559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560  (exit $ac_status); }; }; then
19561
19562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19563}'`
19564# Check for a 64-bit object if we didn't find anything.
19565if 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; }
19566}'`; fi
19567else
19568  echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571fi
19572rm -f conftest.err conftest.$ac_objext \
19573      conftest$ac_exeext conftest.$ac_ext
19574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19575
19576	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19577	  # Warning - without using the other run time loading flags,
19578	  # -berok will link without error, but may produce a broken library.
19579	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19580	  allow_undefined_flag_GCJ=' ${wl}-berok'
19581	  # Exported symbols can be pulled into shared objects from archives
19582	  whole_archive_flag_spec_GCJ='$convenience'
19583	  archive_cmds_need_lc_GCJ=yes
19584	  # This is similar to how AIX traditionally builds its shared libraries.
19585	  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'
19586	fi
19587      fi
19588      ;;
19589
19590    amigaos*)
19591      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)'
19592      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19593      hardcode_minus_L_GCJ=yes
19594      # see comment about different semantics on the GNU ld section
19595      ld_shlibs_GCJ=no
19596      ;;
19597
19598    bsdi[45]*)
19599      export_dynamic_flag_spec_GCJ=-rdynamic
19600      ;;
19601
19602    cygwin* | mingw* | pw32*)
19603      # When not using gcc, we currently assume that we are using
19604      # Microsoft Visual C++.
19605      # hardcode_libdir_flag_spec is actually meaningless, as there is
19606      # no search path for DLLs.
19607      hardcode_libdir_flag_spec_GCJ=' '
19608      allow_undefined_flag_GCJ=unsupported
19609      # Tell ltmain to make .lib files, not .a files.
19610      libext=lib
19611      # Tell ltmain to make .dll files, not .so files.
19612      shrext_cmds=".dll"
19613      # FIXME: Setting linknames here is a bad hack.
19614      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19615      # The linker will automatically build a .lib file if we build a DLL.
19616      old_archive_From_new_cmds_GCJ='true'
19617      # FIXME: Should let the user specify the lib program.
19618      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19619      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19620      enable_shared_with_static_runtimes_GCJ=yes
19621      ;;
19622
19623    darwin* | rhapsody*)
19624      case $host_os in
19625        rhapsody* | darwin1.[012])
19626         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19627         ;;
19628       *) # Darwin 1.3 on
19629         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19630           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19631         else
19632           case ${MACOSX_DEPLOYMENT_TARGET} in
19633             10.[012])
19634               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19635               ;;
19636             10.*)
19637               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19638               ;;
19639           esac
19640         fi
19641         ;;
19642      esac
19643      archive_cmds_need_lc_GCJ=no
19644      hardcode_direct_GCJ=no
19645      hardcode_automatic_GCJ=yes
19646      hardcode_shlibpath_var_GCJ=unsupported
19647      whole_archive_flag_spec_GCJ=''
19648      link_all_deplibs_GCJ=yes
19649    if test "$GCC" = yes ; then
19650    	output_verbose_link_cmd='echo'
19651        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19652      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19653      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19654      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}'
19655      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}'
19656    else
19657      case $cc_basename in
19658        xlc*)
19659         output_verbose_link_cmd='echo'
19660         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19661         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19662          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19663         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}'
19664          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}'
19665          ;;
19666       *)
19667         ld_shlibs_GCJ=no
19668          ;;
19669      esac
19670    fi
19671      ;;
19672
19673    dgux*)
19674      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19675      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19676      hardcode_shlibpath_var_GCJ=no
19677      ;;
19678
19679    freebsd1*)
19680      ld_shlibs_GCJ=no
19681      ;;
19682
19683    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19684    # support.  Future versions do this automatically, but an explicit c++rt0.o
19685    # does not break anything, and helps significantly (at the cost of a little
19686    # extra space).
19687    freebsd2.2*)
19688      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19689      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19690      hardcode_direct_GCJ=yes
19691      hardcode_shlibpath_var_GCJ=no
19692      ;;
19693
19694    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19695    freebsd2*)
19696      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19697      hardcode_direct_GCJ=yes
19698      hardcode_minus_L_GCJ=yes
19699      hardcode_shlibpath_var_GCJ=no
19700      ;;
19701
19702    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19703    freebsd* | kfreebsd*-gnu | dragonfly*)
19704      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19705      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19706      hardcode_direct_GCJ=yes
19707      hardcode_shlibpath_var_GCJ=no
19708      ;;
19709
19710    hpux9*)
19711      if test "$GCC" = yes; then
19712	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'
19713      else
19714	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'
19715      fi
19716      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19717      hardcode_libdir_separator_GCJ=:
19718      hardcode_direct_GCJ=yes
19719
19720      # hardcode_minus_L: Not really in the search PATH,
19721      # but as the default location of the library.
19722      hardcode_minus_L_GCJ=yes
19723      export_dynamic_flag_spec_GCJ='${wl}-E'
19724      ;;
19725
19726    hpux10*)
19727      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19728	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19729      else
19730	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19731      fi
19732      if test "$with_gnu_ld" = no; then
19733	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19734	hardcode_libdir_separator_GCJ=:
19735
19736	hardcode_direct_GCJ=yes
19737	export_dynamic_flag_spec_GCJ='${wl}-E'
19738
19739	# hardcode_minus_L: Not really in the search PATH,
19740	# but as the default location of the library.
19741	hardcode_minus_L_GCJ=yes
19742      fi
19743      ;;
19744
19745    hpux11*)
19746      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19747	case $host_cpu in
19748	hppa*64*)
19749	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19750	  ;;
19751	ia64*)
19752	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19753	  ;;
19754	*)
19755	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19756	  ;;
19757	esac
19758      else
19759	case $host_cpu in
19760	hppa*64*)
19761	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19762	  ;;
19763	ia64*)
19764	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19765	  ;;
19766	*)
19767	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19768	  ;;
19769	esac
19770      fi
19771      if test "$with_gnu_ld" = no; then
19772	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19773	hardcode_libdir_separator_GCJ=:
19774
19775	case $host_cpu in
19776	hppa*64*|ia64*)
19777	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19778	  hardcode_direct_GCJ=no
19779	  hardcode_shlibpath_var_GCJ=no
19780	  ;;
19781	*)
19782	  hardcode_direct_GCJ=yes
19783	  export_dynamic_flag_spec_GCJ='${wl}-E'
19784
19785	  # hardcode_minus_L: Not really in the search PATH,
19786	  # but as the default location of the library.
19787	  hardcode_minus_L_GCJ=yes
19788	  ;;
19789	esac
19790      fi
19791      ;;
19792
19793    irix5* | irix6* | nonstopux*)
19794      if test "$GCC" = yes; then
19795	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'
19796      else
19797	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'
19798	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19799      fi
19800      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19801      hardcode_libdir_separator_GCJ=:
19802      link_all_deplibs_GCJ=yes
19803      ;;
19804
19805    netbsd*)
19806      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19807	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19808      else
19809	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19810      fi
19811      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19812      hardcode_direct_GCJ=yes
19813      hardcode_shlibpath_var_GCJ=no
19814      ;;
19815
19816    newsos6)
19817      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19818      hardcode_direct_GCJ=yes
19819      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19820      hardcode_libdir_separator_GCJ=:
19821      hardcode_shlibpath_var_GCJ=no
19822      ;;
19823
19824    openbsd*)
19825      hardcode_direct_GCJ=yes
19826      hardcode_shlibpath_var_GCJ=no
19827      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19828	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19829	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19830	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19831	export_dynamic_flag_spec_GCJ='${wl}-E'
19832      else
19833       case $host_os in
19834	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19835	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19836	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19837	   ;;
19838	 *)
19839	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19840	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19841	   ;;
19842       esac
19843      fi
19844      ;;
19845
19846    os2*)
19847      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19848      hardcode_minus_L_GCJ=yes
19849      allow_undefined_flag_GCJ=unsupported
19850      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'
19851      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19852      ;;
19853
19854    osf3*)
19855      if test "$GCC" = yes; then
19856	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19857	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'
19858      else
19859	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19860	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'
19861      fi
19862      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19863      hardcode_libdir_separator_GCJ=:
19864      ;;
19865
19866    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19867      if test "$GCC" = yes; then
19868	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19869	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'
19870	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19871      else
19872	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19873	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'
19874	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~
19875	$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'
19876
19877	# Both c and cxx compiler support -rpath directly
19878	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19879      fi
19880      hardcode_libdir_separator_GCJ=:
19881      ;;
19882
19883    solaris*)
19884      no_undefined_flag_GCJ=' -z text'
19885      if test "$GCC" = yes; then
19886	wlarc='${wl}'
19887	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19888	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19889	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19890      else
19891	wlarc=''
19892	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19893	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19894  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19895      fi
19896      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19897      hardcode_shlibpath_var_GCJ=no
19898      case $host_os in
19899      solaris2.[0-5] | solaris2.[0-5].*) ;;
19900      *)
19901 	# The compiler driver will combine linker options so we
19902 	# cannot just pass the convience library names through
19903 	# without $wl, iff we do not link with $LD.
19904 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19905 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19906 	case $wlarc in
19907 	'')
19908 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19909 	*)
19910 	  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' ;;
19911 	esac ;;
19912      esac
19913      link_all_deplibs_GCJ=yes
19914      ;;
19915
19916    sunos4*)
19917      if test "x$host_vendor" = xsequent; then
19918	# Use $CC to link under sequent, because it throws in some extra .o
19919	# files that make .init and .fini sections work.
19920	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19921      else
19922	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19923      fi
19924      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19925      hardcode_direct_GCJ=yes
19926      hardcode_minus_L_GCJ=yes
19927      hardcode_shlibpath_var_GCJ=no
19928      ;;
19929
19930    sysv4)
19931      case $host_vendor in
19932	sni)
19933	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19934	  hardcode_direct_GCJ=yes # is this really true???
19935	;;
19936	siemens)
19937	  ## LD is ld it makes a PLAMLIB
19938	  ## CC just makes a GrossModule.
19939	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19940	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19941	  hardcode_direct_GCJ=no
19942        ;;
19943	motorola)
19944	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19945	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19946	;;
19947      esac
19948      runpath_var='LD_RUN_PATH'
19949      hardcode_shlibpath_var_GCJ=no
19950      ;;
19951
19952    sysv4.3*)
19953      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19954      hardcode_shlibpath_var_GCJ=no
19955      export_dynamic_flag_spec_GCJ='-Bexport'
19956      ;;
19957
19958    sysv4*MP*)
19959      if test -d /usr/nec; then
19960	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19961	hardcode_shlibpath_var_GCJ=no
19962	runpath_var=LD_RUN_PATH
19963	hardcode_runpath_var=yes
19964	ld_shlibs_GCJ=yes
19965      fi
19966      ;;
19967
19968    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19969      no_undefined_flag_GCJ='${wl}-z,text'
19970      archive_cmds_need_lc_GCJ=no
19971      hardcode_shlibpath_var_GCJ=no
19972      runpath_var='LD_RUN_PATH'
19973
19974      if test "$GCC" = yes; then
19975	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19976	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19977      else
19978	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19979	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19980      fi
19981      ;;
19982
19983    sysv5* | sco3.2v5* | sco5v6*)
19984      # Note: We can NOT use -z defs as we might desire, because we do not
19985      # link with -lc, and that would cause any symbols used from libc to
19986      # always be unresolved, which means just about no library would
19987      # ever link correctly.  If we're not using GNU ld we use -z text
19988      # though, which does catch some bad symbols but isn't as heavy-handed
19989      # as -z defs.
19990      no_undefined_flag_GCJ='${wl}-z,text'
19991      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19992      archive_cmds_need_lc_GCJ=no
19993      hardcode_shlibpath_var_GCJ=no
19994      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19995      hardcode_libdir_separator_GCJ=':'
19996      link_all_deplibs_GCJ=yes
19997      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19998      runpath_var='LD_RUN_PATH'
19999
20000      if test "$GCC" = yes; then
20001	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20002	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20003      else
20004	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20005	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20006      fi
20007      ;;
20008
20009    uts4*)
20010      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20011      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20012      hardcode_shlibpath_var_GCJ=no
20013      ;;
20014
20015    *)
20016      ld_shlibs_GCJ=no
20017      ;;
20018    esac
20019  fi
20020
20021echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20022echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20023test "$ld_shlibs_GCJ" = no && can_build_shared=no
20024
20025#
20026# Do we need to explicitly link libc?
20027#
20028case "x$archive_cmds_need_lc_GCJ" in
20029x|xyes)
20030  # Assume -lc should be added
20031  archive_cmds_need_lc_GCJ=yes
20032
20033  if test "$enable_shared" = yes && test "$GCC" = yes; then
20034    case $archive_cmds_GCJ in
20035    *'~'*)
20036      # FIXME: we may have to deal with multi-command sequences.
20037      ;;
20038    '$CC '*)
20039      # Test whether the compiler implicitly links with -lc since on some
20040      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20041      # to ld, don't add -lc before -lgcc.
20042      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20043echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20044      $rm conftest*
20045      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20046
20047      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20048  (eval $ac_compile) 2>&5
20049  ac_status=$?
20050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051  (exit $ac_status); } 2>conftest.err; then
20052        soname=conftest
20053        lib=conftest
20054        libobjs=conftest.$ac_objext
20055        deplibs=
20056        wl=$lt_prog_compiler_wl_GCJ
20057	pic_flag=$lt_prog_compiler_pic_GCJ
20058        compiler_flags=-v
20059        linker_flags=-v
20060        verstring=
20061        output_objdir=.
20062        libname=conftest
20063        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20064        allow_undefined_flag_GCJ=
20065        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20066  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20067  ac_status=$?
20068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069  (exit $ac_status); }
20070        then
20071	  archive_cmds_need_lc_GCJ=no
20072        else
20073	  archive_cmds_need_lc_GCJ=yes
20074        fi
20075        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20076      else
20077        cat conftest.err 1>&5
20078      fi
20079      $rm conftest*
20080      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20081echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20082      ;;
20083    esac
20084  fi
20085  ;;
20086esac
20087
20088echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20089echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20090library_names_spec=
20091libname_spec='lib$name'
20092soname_spec=
20093shrext_cmds=".so"
20094postinstall_cmds=
20095postuninstall_cmds=
20096finish_cmds=
20097finish_eval=
20098shlibpath_var=
20099shlibpath_overrides_runpath=unknown
20100version_type=none
20101dynamic_linker="$host_os ld.so"
20102sys_lib_dlsearch_path_spec="/lib /usr/lib"
20103if test "$GCC" = yes; then
20104  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20105  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20106    # if the path contains ";" then we assume it to be the separator
20107    # otherwise default to the standard path separator (i.e. ":") - it is
20108    # assumed that no part of a normal pathname contains ";" but that should
20109    # okay in the real world where ";" in dirpaths is itself problematic.
20110    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20111  else
20112    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20113  fi
20114else
20115  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20116fi
20117need_lib_prefix=unknown
20118hardcode_into_libs=no
20119
20120# when you set need_version to no, make sure it does not cause -set_version
20121# flags to be left without arguments
20122need_version=unknown
20123
20124case $host_os in
20125aix3*)
20126  version_type=linux
20127  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20128  shlibpath_var=LIBPATH
20129
20130  # AIX 3 has no versioning support, so we append a major version to the name.
20131  soname_spec='${libname}${release}${shared_ext}$major'
20132  ;;
20133
20134aix4* | aix5*)
20135  version_type=linux
20136  need_lib_prefix=no
20137  need_version=no
20138  hardcode_into_libs=yes
20139  if test "$host_cpu" = ia64; then
20140    # AIX 5 supports IA64
20141    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20142    shlibpath_var=LD_LIBRARY_PATH
20143  else
20144    # With GCC up to 2.95.x, collect2 would create an import file
20145    # for dependence libraries.  The import file would start with
20146    # the line `#! .'.  This would cause the generated library to
20147    # depend on `.', always an invalid library.  This was fixed in
20148    # development snapshots of GCC prior to 3.0.
20149    case $host_os in
20150      aix4 | aix4.[01] | aix4.[01].*)
20151      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20152	   echo ' yes '
20153	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20154	:
20155      else
20156	can_build_shared=no
20157      fi
20158      ;;
20159    esac
20160    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20161    # soname into executable. Probably we can add versioning support to
20162    # collect2, so additional links can be useful in future.
20163    if test "$aix_use_runtimelinking" = yes; then
20164      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20165      # instead of lib<name>.a to let people know that these are not
20166      # typical AIX shared libraries.
20167      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168    else
20169      # We preserve .a as extension for shared libraries through AIX4.2
20170      # and later when we are not doing run time linking.
20171      library_names_spec='${libname}${release}.a $libname.a'
20172      soname_spec='${libname}${release}${shared_ext}$major'
20173    fi
20174    shlibpath_var=LIBPATH
20175  fi
20176  ;;
20177
20178amigaos*)
20179  library_names_spec='$libname.ixlibrary $libname.a'
20180  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20181  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'
20182  ;;
20183
20184beos*)
20185  library_names_spec='${libname}${shared_ext}'
20186  dynamic_linker="$host_os ld.so"
20187  shlibpath_var=LIBRARY_PATH
20188  ;;
20189
20190bsdi[45]*)
20191  version_type=linux
20192  need_version=no
20193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194  soname_spec='${libname}${release}${shared_ext}$major'
20195  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20196  shlibpath_var=LD_LIBRARY_PATH
20197  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20198  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20199  # the default ld.so.conf also contains /usr/contrib/lib and
20200  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20201  # libtool to hard-code these into programs
20202  ;;
20203
20204cygwin* | mingw* | pw32*)
20205  version_type=windows
20206  shrext_cmds=".dll"
20207  need_version=no
20208  need_lib_prefix=no
20209
20210  case $GCC,$host_os in
20211  yes,cygwin* | yes,mingw* | yes,pw32*)
20212    library_names_spec='$libname.dll.a'
20213    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20214    postinstall_cmds='base_file=`basename \${file}`~
20215      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20216      dldir=$destdir/`dirname \$dlpath`~
20217      test -d \$dldir || mkdir -p \$dldir~
20218      $install_prog $dir/$dlname \$dldir/$dlname~
20219      chmod a+x \$dldir/$dlname'
20220    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20221      dlpath=$dir/\$dldll~
20222       $rm \$dlpath'
20223    shlibpath_overrides_runpath=yes
20224
20225    case $host_os in
20226    cygwin*)
20227      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20228      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20229      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20230      ;;
20231    mingw*)
20232      # MinGW DLLs use traditional 'lib' prefix
20233      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20234      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20235      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20236        # It is most probably a Windows format PATH printed by
20237        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20238        # path with ; separators, and with drive letters. We can handle the
20239        # drive letters (cygwin fileutils understands them), so leave them,
20240        # especially as we might pass files found there to a mingw objdump,
20241        # which wouldn't understand a cygwinified path. Ahh.
20242        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20243      else
20244        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20245      fi
20246      ;;
20247    pw32*)
20248      # pw32 DLLs use 'pw' prefix rather than 'lib'
20249      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20250      ;;
20251    esac
20252    ;;
20253
20254  *)
20255    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20256    ;;
20257  esac
20258  dynamic_linker='Win32 ld.exe'
20259  # FIXME: first we should search . and the directory the executable is in
20260  shlibpath_var=PATH
20261  ;;
20262
20263darwin* | rhapsody*)
20264  dynamic_linker="$host_os dyld"
20265  version_type=darwin
20266  need_lib_prefix=no
20267  need_version=no
20268  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20269  soname_spec='${libname}${release}${major}$shared_ext'
20270  shlibpath_overrides_runpath=yes
20271  shlibpath_var=DYLD_LIBRARY_PATH
20272  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20273  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20274  if test "$GCC" = yes; then
20275    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"`
20276  else
20277    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20278  fi
20279  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20280  ;;
20281
20282dgux*)
20283  version_type=linux
20284  need_lib_prefix=no
20285  need_version=no
20286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20287  soname_spec='${libname}${release}${shared_ext}$major'
20288  shlibpath_var=LD_LIBRARY_PATH
20289  ;;
20290
20291freebsd1*)
20292  dynamic_linker=no
20293  ;;
20294
20295kfreebsd*-gnu)
20296  version_type=linux
20297  need_lib_prefix=no
20298  need_version=no
20299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20300  soname_spec='${libname}${release}${shared_ext}$major'
20301  shlibpath_var=LD_LIBRARY_PATH
20302  shlibpath_overrides_runpath=no
20303  hardcode_into_libs=yes
20304  dynamic_linker='GNU ld.so'
20305  ;;
20306
20307freebsd* | dragonfly*)
20308  # DragonFly does not have aout.  When/if they implement a new
20309  # versioning mechanism, adjust this.
20310  if test -x /usr/bin/objformat; then
20311    objformat=`/usr/bin/objformat`
20312  else
20313    case $host_os in
20314    freebsd[123]*) objformat=aout ;;
20315    *) objformat=elf ;;
20316    esac
20317  fi
20318  version_type=freebsd-$objformat
20319  case $version_type in
20320    freebsd-elf*)
20321      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20322      need_version=no
20323      need_lib_prefix=no
20324      ;;
20325    freebsd-*)
20326      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20327      need_version=yes
20328      ;;
20329  esac
20330  shlibpath_var=LD_LIBRARY_PATH
20331  case $host_os in
20332  freebsd2*)
20333    shlibpath_overrides_runpath=yes
20334    ;;
20335  freebsd3.[01]* | freebsdelf3.[01]*)
20336    shlibpath_overrides_runpath=yes
20337    hardcode_into_libs=yes
20338    ;;
20339  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20340  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20341    shlibpath_overrides_runpath=no
20342    hardcode_into_libs=yes
20343    ;;
20344  freebsd*) # from 4.6 on
20345    shlibpath_overrides_runpath=yes
20346    hardcode_into_libs=yes
20347    ;;
20348  esac
20349  ;;
20350
20351gnu*)
20352  version_type=linux
20353  need_lib_prefix=no
20354  need_version=no
20355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20356  soname_spec='${libname}${release}${shared_ext}$major'
20357  shlibpath_var=LD_LIBRARY_PATH
20358  hardcode_into_libs=yes
20359  ;;
20360
20361hpux9* | hpux10* | hpux11*)
20362  # Give a soname corresponding to the major version so that dld.sl refuses to
20363  # link against other versions.
20364  version_type=sunos
20365  need_lib_prefix=no
20366  need_version=no
20367  case $host_cpu in
20368  ia64*)
20369    shrext_cmds='.so'
20370    hardcode_into_libs=yes
20371    dynamic_linker="$host_os dld.so"
20372    shlibpath_var=LD_LIBRARY_PATH
20373    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375    soname_spec='${libname}${release}${shared_ext}$major'
20376    if test "X$HPUX_IA64_MODE" = X32; then
20377      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20378    else
20379      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20380    fi
20381    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20382    ;;
20383   hppa*64*)
20384     shrext_cmds='.sl'
20385     hardcode_into_libs=yes
20386     dynamic_linker="$host_os dld.sl"
20387     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20390     soname_spec='${libname}${release}${shared_ext}$major'
20391     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20392     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20393     ;;
20394   *)
20395    shrext_cmds='.sl'
20396    dynamic_linker="$host_os dld.sl"
20397    shlibpath_var=SHLIB_PATH
20398    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20399    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400    soname_spec='${libname}${release}${shared_ext}$major'
20401    ;;
20402  esac
20403  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20404  postinstall_cmds='chmod 555 $lib'
20405  ;;
20406
20407interix3*)
20408  version_type=linux
20409  need_lib_prefix=no
20410  need_version=no
20411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20412  soname_spec='${libname}${release}${shared_ext}$major'
20413  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20414  shlibpath_var=LD_LIBRARY_PATH
20415  shlibpath_overrides_runpath=no
20416  hardcode_into_libs=yes
20417  ;;
20418
20419irix5* | irix6* | nonstopux*)
20420  case $host_os in
20421    nonstopux*) version_type=nonstopux ;;
20422    *)
20423	if test "$lt_cv_prog_gnu_ld" = yes; then
20424		version_type=linux
20425	else
20426		version_type=irix
20427	fi ;;
20428  esac
20429  need_lib_prefix=no
20430  need_version=no
20431  soname_spec='${libname}${release}${shared_ext}$major'
20432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20433  case $host_os in
20434  irix5* | nonstopux*)
20435    libsuff= shlibsuff=
20436    ;;
20437  *)
20438    case $LD in # libtool.m4 will add one of these switches to LD
20439    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20440      libsuff= shlibsuff= libmagic=32-bit;;
20441    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20442      libsuff=32 shlibsuff=N32 libmagic=N32;;
20443    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20444      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20445    *) libsuff= shlibsuff= libmagic=never-match;;
20446    esac
20447    ;;
20448  esac
20449  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20450  shlibpath_overrides_runpath=no
20451  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20452  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20453  hardcode_into_libs=yes
20454  ;;
20455
20456# No shared lib support for Linux oldld, aout, or coff.
20457linux*oldld* | linux*aout* | linux*coff*)
20458  dynamic_linker=no
20459  ;;
20460
20461# This must be Linux ELF.
20462linux*)
20463  version_type=linux
20464  need_lib_prefix=no
20465  need_version=no
20466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467  soname_spec='${libname}${release}${shared_ext}$major'
20468  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20469  shlibpath_var=LD_LIBRARY_PATH
20470  shlibpath_overrides_runpath=no
20471  # This implies no fast_install, which is unacceptable.
20472  # Some rework will be needed to allow for fast_install
20473  # before this can be enabled.
20474  hardcode_into_libs=yes
20475
20476  # Append ld.so.conf contents to the search path
20477  if test -f /etc/ld.so.conf; then
20478    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' ' '`
20479    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20480  fi
20481
20482  # We used to test for /lib/ld.so.1 and disable shared libraries on
20483  # powerpc, because MkLinux only supported shared libraries with the
20484  # GNU dynamic linker.  Since this was broken with cross compilers,
20485  # most powerpc-linux boxes support dynamic linking these days and
20486  # people can always --disable-shared, the test was removed, and we
20487  # assume the GNU/Linux dynamic linker is in use.
20488  dynamic_linker='GNU/Linux ld.so'
20489  ;;
20490
20491knetbsd*-gnu)
20492  version_type=linux
20493  need_lib_prefix=no
20494  need_version=no
20495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20496  soname_spec='${libname}${release}${shared_ext}$major'
20497  shlibpath_var=LD_LIBRARY_PATH
20498  shlibpath_overrides_runpath=no
20499  hardcode_into_libs=yes
20500  dynamic_linker='GNU ld.so'
20501  ;;
20502
20503netbsd*)
20504  version_type=sunos
20505  need_lib_prefix=no
20506  need_version=no
20507  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20509    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20510    dynamic_linker='NetBSD (a.out) ld.so'
20511  else
20512    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20513    soname_spec='${libname}${release}${shared_ext}$major'
20514    dynamic_linker='NetBSD ld.elf_so'
20515  fi
20516  shlibpath_var=LD_LIBRARY_PATH
20517  shlibpath_overrides_runpath=yes
20518  hardcode_into_libs=yes
20519  ;;
20520
20521newsos6)
20522  version_type=linux
20523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524  shlibpath_var=LD_LIBRARY_PATH
20525  shlibpath_overrides_runpath=yes
20526  ;;
20527
20528nto-qnx*)
20529  version_type=linux
20530  need_lib_prefix=no
20531  need_version=no
20532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533  soname_spec='${libname}${release}${shared_ext}$major'
20534  shlibpath_var=LD_LIBRARY_PATH
20535  shlibpath_overrides_runpath=yes
20536  ;;
20537
20538openbsd*)
20539  version_type=sunos
20540  sys_lib_dlsearch_path_spec="/usr/lib"
20541  need_lib_prefix=no
20542  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20543  case $host_os in
20544    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20545    *)                         need_version=no  ;;
20546  esac
20547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20549  shlibpath_var=LD_LIBRARY_PATH
20550  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20551    case $host_os in
20552      openbsd2.[89] | openbsd2.[89].*)
20553	shlibpath_overrides_runpath=no
20554	;;
20555      *)
20556	shlibpath_overrides_runpath=yes
20557	;;
20558      esac
20559  else
20560    shlibpath_overrides_runpath=yes
20561  fi
20562  ;;
20563
20564os2*)
20565  libname_spec='$name'
20566  shrext_cmds=".dll"
20567  need_lib_prefix=no
20568  library_names_spec='$libname${shared_ext} $libname.a'
20569  dynamic_linker='OS/2 ld.exe'
20570  shlibpath_var=LIBPATH
20571  ;;
20572
20573osf3* | osf4* | osf5*)
20574  version_type=osf
20575  need_lib_prefix=no
20576  need_version=no
20577  soname_spec='${libname}${release}${shared_ext}$major'
20578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579  shlibpath_var=LD_LIBRARY_PATH
20580  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20581  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20582  ;;
20583
20584solaris*)
20585  version_type=linux
20586  need_lib_prefix=no
20587  need_version=no
20588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20589  soname_spec='${libname}${release}${shared_ext}$major'
20590  shlibpath_var=LD_LIBRARY_PATH
20591  shlibpath_overrides_runpath=yes
20592  hardcode_into_libs=yes
20593  # ldd complains unless libraries are executable
20594  postinstall_cmds='chmod +x $lib'
20595  ;;
20596
20597sunos4*)
20598  version_type=sunos
20599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20600  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20601  shlibpath_var=LD_LIBRARY_PATH
20602  shlibpath_overrides_runpath=yes
20603  if test "$with_gnu_ld" = yes; then
20604    need_lib_prefix=no
20605  fi
20606  need_version=yes
20607  ;;
20608
20609sysv4 | sysv4.3*)
20610  version_type=linux
20611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20612  soname_spec='${libname}${release}${shared_ext}$major'
20613  shlibpath_var=LD_LIBRARY_PATH
20614  case $host_vendor in
20615    sni)
20616      shlibpath_overrides_runpath=no
20617      need_lib_prefix=no
20618      export_dynamic_flag_spec='${wl}-Blargedynsym'
20619      runpath_var=LD_RUN_PATH
20620      ;;
20621    siemens)
20622      need_lib_prefix=no
20623      ;;
20624    motorola)
20625      need_lib_prefix=no
20626      need_version=no
20627      shlibpath_overrides_runpath=no
20628      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20629      ;;
20630  esac
20631  ;;
20632
20633sysv4*MP*)
20634  if test -d /usr/nec ;then
20635    version_type=linux
20636    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20637    soname_spec='$libname${shared_ext}.$major'
20638    shlibpath_var=LD_LIBRARY_PATH
20639  fi
20640  ;;
20641
20642sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20643  version_type=freebsd-elf
20644  need_lib_prefix=no
20645  need_version=no
20646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20647  soname_spec='${libname}${release}${shared_ext}$major'
20648  shlibpath_var=LD_LIBRARY_PATH
20649  hardcode_into_libs=yes
20650  if test "$with_gnu_ld" = yes; then
20651    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20652    shlibpath_overrides_runpath=no
20653  else
20654    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20655    shlibpath_overrides_runpath=yes
20656    case $host_os in
20657      sco3.2v5*)
20658        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20659	;;
20660    esac
20661  fi
20662  sys_lib_dlsearch_path_spec='/usr/lib'
20663  ;;
20664
20665uts4*)
20666  version_type=linux
20667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668  soname_spec='${libname}${release}${shared_ext}$major'
20669  shlibpath_var=LD_LIBRARY_PATH
20670  ;;
20671
20672*)
20673  dynamic_linker=no
20674  ;;
20675esac
20676echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20677echo "${ECHO_T}$dynamic_linker" >&6
20678test "$dynamic_linker" = no && can_build_shared=no
20679
20680variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20681if test "$GCC" = yes; then
20682  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20683fi
20684
20685echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20686echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20687hardcode_action_GCJ=
20688if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20689   test -n "$runpath_var_GCJ" || \
20690   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20691
20692  # We can hardcode non-existant directories.
20693  if test "$hardcode_direct_GCJ" != no &&
20694     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20695     # have to relink, otherwise we might link with an installed library
20696     # when we should be linking with a yet-to-be-installed one
20697     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20698     test "$hardcode_minus_L_GCJ" != no; then
20699    # Linking always hardcodes the temporary library directory.
20700    hardcode_action_GCJ=relink
20701  else
20702    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20703    hardcode_action_GCJ=immediate
20704  fi
20705else
20706  # We cannot hardcode anything, or else we can only hardcode existing
20707  # directories.
20708  hardcode_action_GCJ=unsupported
20709fi
20710echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20711echo "${ECHO_T}$hardcode_action_GCJ" >&6
20712
20713if test "$hardcode_action_GCJ" = relink; then
20714  # Fast installation is not supported
20715  enable_fast_install=no
20716elif test "$shlibpath_overrides_runpath" = yes ||
20717     test "$enable_shared" = no; then
20718  # Fast installation is not necessary
20719  enable_fast_install=needless
20720fi
20721
20722
20723# The else clause should only fire when bootstrapping the
20724# libtool distribution, otherwise you forgot to ship ltmain.sh
20725# with your package, and you will get complaints that there are
20726# no rules to generate ltmain.sh.
20727if test -f "$ltmain"; then
20728  # See if we are running on zsh, and set the options which allow our commands through
20729  # without removal of \ escapes.
20730  if test -n "${ZSH_VERSION+set}" ; then
20731    setopt NO_GLOB_SUBST
20732  fi
20733  # Now quote all the things that may contain metacharacters while being
20734  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20735  # variables and quote the copies for generation of the libtool script.
20736  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20737    SED SHELL STRIP \
20738    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20739    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20740    deplibs_check_method reload_flag reload_cmds need_locks \
20741    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20742    lt_cv_sys_global_symbol_to_c_name_address \
20743    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20744    old_postinstall_cmds old_postuninstall_cmds \
20745    compiler_GCJ \
20746    CC_GCJ \
20747    LD_GCJ \
20748    lt_prog_compiler_wl_GCJ \
20749    lt_prog_compiler_pic_GCJ \
20750    lt_prog_compiler_static_GCJ \
20751    lt_prog_compiler_no_builtin_flag_GCJ \
20752    export_dynamic_flag_spec_GCJ \
20753    thread_safe_flag_spec_GCJ \
20754    whole_archive_flag_spec_GCJ \
20755    enable_shared_with_static_runtimes_GCJ \
20756    old_archive_cmds_GCJ \
20757    old_archive_from_new_cmds_GCJ \
20758    predep_objects_GCJ \
20759    postdep_objects_GCJ \
20760    predeps_GCJ \
20761    postdeps_GCJ \
20762    compiler_lib_search_path_GCJ \
20763    archive_cmds_GCJ \
20764    archive_expsym_cmds_GCJ \
20765    postinstall_cmds_GCJ \
20766    postuninstall_cmds_GCJ \
20767    old_archive_from_expsyms_cmds_GCJ \
20768    allow_undefined_flag_GCJ \
20769    no_undefined_flag_GCJ \
20770    export_symbols_cmds_GCJ \
20771    hardcode_libdir_flag_spec_GCJ \
20772    hardcode_libdir_flag_spec_ld_GCJ \
20773    hardcode_libdir_separator_GCJ \
20774    hardcode_automatic_GCJ \
20775    module_cmds_GCJ \
20776    module_expsym_cmds_GCJ \
20777    lt_cv_prog_compiler_c_o_GCJ \
20778    exclude_expsyms_GCJ \
20779    include_expsyms_GCJ; do
20780
20781    case $var in
20782    old_archive_cmds_GCJ | \
20783    old_archive_from_new_cmds_GCJ | \
20784    archive_cmds_GCJ | \
20785    archive_expsym_cmds_GCJ | \
20786    module_cmds_GCJ | \
20787    module_expsym_cmds_GCJ | \
20788    old_archive_from_expsyms_cmds_GCJ | \
20789    export_symbols_cmds_GCJ | \
20790    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20791    postinstall_cmds | postuninstall_cmds | \
20792    old_postinstall_cmds | old_postuninstall_cmds | \
20793    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20794      # Double-quote double-evaled strings.
20795      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20796      ;;
20797    *)
20798      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20799      ;;
20800    esac
20801  done
20802
20803  case $lt_echo in
20804  *'\$0 --fallback-echo"')
20805    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20806    ;;
20807  esac
20808
20809cfgfile="$ofile"
20810
20811  cat <<__EOF__ >> "$cfgfile"
20812# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20813
20814# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20815
20816# Shell to use when invoking shell scripts.
20817SHELL=$lt_SHELL
20818
20819# Whether or not to build shared libraries.
20820build_libtool_libs=$enable_shared
20821
20822# Whether or not to build static libraries.
20823build_old_libs=$enable_static
20824
20825# Whether or not to add -lc for building shared libraries.
20826build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20827
20828# Whether or not to disallow shared libs when runtime libs are static
20829allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20830
20831# Whether or not to optimize for fast installation.
20832fast_install=$enable_fast_install
20833
20834# The host system.
20835host_alias=$host_alias
20836host=$host
20837host_os=$host_os
20838
20839# The build system.
20840build_alias=$build_alias
20841build=$build
20842build_os=$build_os
20843
20844# An echo program that does not interpret backslashes.
20845echo=$lt_echo
20846
20847# The archiver.
20848AR=$lt_AR
20849AR_FLAGS=$lt_AR_FLAGS
20850
20851# A C compiler.
20852LTCC=$lt_LTCC
20853
20854# LTCC compiler flags.
20855LTCFLAGS=$lt_LTCFLAGS
20856
20857# A language-specific compiler.
20858CC=$lt_compiler_GCJ
20859
20860# Is the compiler the GNU C compiler?
20861with_gcc=$GCC_GCJ
20862
20863# An ERE matcher.
20864EGREP=$lt_EGREP
20865
20866# The linker used to build libraries.
20867LD=$lt_LD_GCJ
20868
20869# Whether we need hard or soft links.
20870LN_S=$lt_LN_S
20871
20872# A BSD-compatible nm program.
20873NM=$lt_NM
20874
20875# A symbol stripping program
20876STRIP=$lt_STRIP
20877
20878# Used to examine libraries when file_magic_cmd begins "file"
20879MAGIC_CMD=$MAGIC_CMD
20880
20881# Used on cygwin: DLL creation program.
20882DLLTOOL="$DLLTOOL"
20883
20884# Used on cygwin: object dumper.
20885OBJDUMP="$OBJDUMP"
20886
20887# Used on cygwin: assembler.
20888AS="$AS"
20889
20890# The name of the directory that contains temporary libtool files.
20891objdir=$objdir
20892
20893# How to create reloadable object files.
20894reload_flag=$lt_reload_flag
20895reload_cmds=$lt_reload_cmds
20896
20897# How to pass a linker flag through the compiler.
20898wl=$lt_lt_prog_compiler_wl_GCJ
20899
20900# Object file suffix (normally "o").
20901objext="$ac_objext"
20902
20903# Old archive suffix (normally "a").
20904libext="$libext"
20905
20906# Shared library suffix (normally ".so").
20907shrext_cmds='$shrext_cmds'
20908
20909# Executable file suffix (normally "").
20910exeext="$exeext"
20911
20912# Additional compiler flags for building library objects.
20913pic_flag=$lt_lt_prog_compiler_pic_GCJ
20914pic_mode=$pic_mode
20915
20916# What is the maximum length of a command?
20917max_cmd_len=$lt_cv_sys_max_cmd_len
20918
20919# Does compiler simultaneously support -c and -o options?
20920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20921
20922# Must we lock files when doing compilation?
20923need_locks=$lt_need_locks
20924
20925# Do we need the lib prefix for modules?
20926need_lib_prefix=$need_lib_prefix
20927
20928# Do we need a version for libraries?
20929need_version=$need_version
20930
20931# Whether dlopen is supported.
20932dlopen_support=$enable_dlopen
20933
20934# Whether dlopen of programs is supported.
20935dlopen_self=$enable_dlopen_self
20936
20937# Whether dlopen of statically linked programs is supported.
20938dlopen_self_static=$enable_dlopen_self_static
20939
20940# Compiler flag to prevent dynamic linking.
20941link_static_flag=$lt_lt_prog_compiler_static_GCJ
20942
20943# Compiler flag to turn off builtin functions.
20944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20945
20946# Compiler flag to allow reflexive dlopens.
20947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20948
20949# Compiler flag to generate shared objects directly from archives.
20950whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20951
20952# Compiler flag to generate thread-safe objects.
20953thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20954
20955# Library versioning type.
20956version_type=$version_type
20957
20958# Format of library name prefix.
20959libname_spec=$lt_libname_spec
20960
20961# List of archive names.  First name is the real one, the rest are links.
20962# The last name is the one that the linker finds with -lNAME.
20963library_names_spec=$lt_library_names_spec
20964
20965# The coded name of the library, if different from the real name.
20966soname_spec=$lt_soname_spec
20967
20968# Commands used to build and install an old-style archive.
20969RANLIB=$lt_RANLIB
20970old_archive_cmds=$lt_old_archive_cmds_GCJ
20971old_postinstall_cmds=$lt_old_postinstall_cmds
20972old_postuninstall_cmds=$lt_old_postuninstall_cmds
20973
20974# Create an old-style archive from a shared archive.
20975old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20976
20977# Create a temporary old-style archive to link instead of a shared archive.
20978old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20979
20980# Commands used to build and install a shared archive.
20981archive_cmds=$lt_archive_cmds_GCJ
20982archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20983postinstall_cmds=$lt_postinstall_cmds
20984postuninstall_cmds=$lt_postuninstall_cmds
20985
20986# Commands used to build a loadable module (assumed same as above if empty)
20987module_cmds=$lt_module_cmds_GCJ
20988module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20989
20990# Commands to strip libraries.
20991old_striplib=$lt_old_striplib
20992striplib=$lt_striplib
20993
20994# Dependencies to place before the objects being linked to create a
20995# shared library.
20996predep_objects=$lt_predep_objects_GCJ
20997
20998# Dependencies to place after the objects being linked to create a
20999# shared library.
21000postdep_objects=$lt_postdep_objects_GCJ
21001
21002# Dependencies to place before the objects being linked to create a
21003# shared library.
21004predeps=$lt_predeps_GCJ
21005
21006# Dependencies to place after the objects being linked to create a
21007# shared library.
21008postdeps=$lt_postdeps_GCJ
21009
21010# The library search path used internally by the compiler when linking
21011# a shared library.
21012compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21013
21014# Method to check whether dependent libraries are shared objects.
21015deplibs_check_method=$lt_deplibs_check_method
21016
21017# Command to use when deplibs_check_method == file_magic.
21018file_magic_cmd=$lt_file_magic_cmd
21019
21020# Flag that allows shared libraries with undefined symbols to be built.
21021allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21022
21023# Flag that forces no undefined symbols.
21024no_undefined_flag=$lt_no_undefined_flag_GCJ
21025
21026# Commands used to finish a libtool library installation in a directory.
21027finish_cmds=$lt_finish_cmds
21028
21029# Same as above, but a single script fragment to be evaled but not shown.
21030finish_eval=$lt_finish_eval
21031
21032# Take the output of nm and produce a listing of raw symbols and C names.
21033global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21034
21035# Transform the output of nm in a proper C declaration
21036global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21037
21038# Transform the output of nm in a C name address pair
21039global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21040
21041# This is the shared library runtime path variable.
21042runpath_var=$runpath_var
21043
21044# This is the shared library path variable.
21045shlibpath_var=$shlibpath_var
21046
21047# Is shlibpath searched before the hard-coded library search path?
21048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21049
21050# How to hardcode a shared library path into an executable.
21051hardcode_action=$hardcode_action_GCJ
21052
21053# Whether we should hardcode library paths into libraries.
21054hardcode_into_libs=$hardcode_into_libs
21055
21056# Flag to hardcode \$libdir into a binary during linking.
21057# This must work even if \$libdir does not exist.
21058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21059
21060# If ld is used when linking, flag to hardcode \$libdir into
21061# a binary during linking. This must work even if \$libdir does
21062# not exist.
21063hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21064
21065# Whether we need a single -rpath flag with a separated argument.
21066hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21067
21068# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21069# resulting binary.
21070hardcode_direct=$hardcode_direct_GCJ
21071
21072# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21073# resulting binary.
21074hardcode_minus_L=$hardcode_minus_L_GCJ
21075
21076# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21077# the resulting binary.
21078hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21079
21080# Set to yes if building a shared library automatically hardcodes DIR into the library
21081# and all subsequent libraries and executables linked against it.
21082hardcode_automatic=$hardcode_automatic_GCJ
21083
21084# Variables whose values should be saved in libtool wrapper scripts and
21085# restored at relink time.
21086variables_saved_for_relink="$variables_saved_for_relink"
21087
21088# Whether libtool must link a program against all its dependency libraries.
21089link_all_deplibs=$link_all_deplibs_GCJ
21090
21091# Compile-time system search path for libraries
21092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21093
21094# Run-time system search path for libraries
21095sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21096
21097# Fix the shell variable \$srcfile for the compiler.
21098fix_srcfile_path="$fix_srcfile_path_GCJ"
21099
21100# Set to yes if exported symbols are required.
21101always_export_symbols=$always_export_symbols_GCJ
21102
21103# The commands to list exported symbols.
21104export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21105
21106# The commands to extract the exported symbol list from a shared archive.
21107extract_expsyms_cmds=$lt_extract_expsyms_cmds
21108
21109# Symbols that should not be listed in the preloaded symbols.
21110exclude_expsyms=$lt_exclude_expsyms_GCJ
21111
21112# Symbols that must always be exported.
21113include_expsyms=$lt_include_expsyms_GCJ
21114
21115# ### END LIBTOOL TAG CONFIG: $tagname
21116
21117__EOF__
21118
21119
21120else
21121  # If there is no Makefile yet, we rely on a make rule to execute
21122  # `config.status --recheck' to rerun these tests and create the
21123  # libtool script then.
21124  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21125  if test -f "$ltmain_in"; then
21126    test -f Makefile && make "$ltmain"
21127  fi
21128fi
21129
21130
21131ac_ext=c
21132ac_cpp='$CPP $CPPFLAGS'
21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137CC="$lt_save_CC"
21138
21139	else
21140	  tagname=""
21141	fi
21142	;;
21143
21144      RC)
21145
21146
21147
21148# Source file extension for RC test sources.
21149ac_ext=rc
21150
21151# Object file extension for compiled RC test sources.
21152objext=o
21153objext_RC=$objext
21154
21155# Code to be used in simple compile tests
21156lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21157
21158# Code to be used in simple link tests
21159lt_simple_link_test_code="$lt_simple_compile_test_code"
21160
21161# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21162
21163# If no C compiler was specified, use CC.
21164LTCC=${LTCC-"$CC"}
21165
21166# If no C compiler flags were specified, use CFLAGS.
21167LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21168
21169# Allow CC to be a program name with arguments.
21170compiler=$CC
21171
21172
21173# save warnings/boilerplate of simple test code
21174ac_outfile=conftest.$ac_objext
21175printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21176eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21177_lt_compiler_boilerplate=`cat conftest.err`
21178$rm conftest*
21179
21180ac_outfile=conftest.$ac_objext
21181printf "$lt_simple_link_test_code" >conftest.$ac_ext
21182eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21183_lt_linker_boilerplate=`cat conftest.err`
21184$rm conftest*
21185
21186
21187# Allow CC to be a program name with arguments.
21188lt_save_CC="$CC"
21189CC=${RC-"windres"}
21190compiler=$CC
21191compiler_RC=$CC
21192for cc_temp in $compiler""; do
21193  case $cc_temp in
21194    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21195    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21196    \-*) ;;
21197    *) break;;
21198  esac
21199done
21200cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21201
21202lt_cv_prog_compiler_c_o_RC=yes
21203
21204# The else clause should only fire when bootstrapping the
21205# libtool distribution, otherwise you forgot to ship ltmain.sh
21206# with your package, and you will get complaints that there are
21207# no rules to generate ltmain.sh.
21208if test -f "$ltmain"; then
21209  # See if we are running on zsh, and set the options which allow our commands through
21210  # without removal of \ escapes.
21211  if test -n "${ZSH_VERSION+set}" ; then
21212    setopt NO_GLOB_SUBST
21213  fi
21214  # Now quote all the things that may contain metacharacters while being
21215  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21216  # variables and quote the copies for generation of the libtool script.
21217  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21218    SED SHELL STRIP \
21219    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21220    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21221    deplibs_check_method reload_flag reload_cmds need_locks \
21222    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21223    lt_cv_sys_global_symbol_to_c_name_address \
21224    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21225    old_postinstall_cmds old_postuninstall_cmds \
21226    compiler_RC \
21227    CC_RC \
21228    LD_RC \
21229    lt_prog_compiler_wl_RC \
21230    lt_prog_compiler_pic_RC \
21231    lt_prog_compiler_static_RC \
21232    lt_prog_compiler_no_builtin_flag_RC \
21233    export_dynamic_flag_spec_RC \
21234    thread_safe_flag_spec_RC \
21235    whole_archive_flag_spec_RC \
21236    enable_shared_with_static_runtimes_RC \
21237    old_archive_cmds_RC \
21238    old_archive_from_new_cmds_RC \
21239    predep_objects_RC \
21240    postdep_objects_RC \
21241    predeps_RC \
21242    postdeps_RC \
21243    compiler_lib_search_path_RC \
21244    archive_cmds_RC \
21245    archive_expsym_cmds_RC \
21246    postinstall_cmds_RC \
21247    postuninstall_cmds_RC \
21248    old_archive_from_expsyms_cmds_RC \
21249    allow_undefined_flag_RC \
21250    no_undefined_flag_RC \
21251    export_symbols_cmds_RC \
21252    hardcode_libdir_flag_spec_RC \
21253    hardcode_libdir_flag_spec_ld_RC \
21254    hardcode_libdir_separator_RC \
21255    hardcode_automatic_RC \
21256    module_cmds_RC \
21257    module_expsym_cmds_RC \
21258    lt_cv_prog_compiler_c_o_RC \
21259    exclude_expsyms_RC \
21260    include_expsyms_RC; do
21261
21262    case $var in
21263    old_archive_cmds_RC | \
21264    old_archive_from_new_cmds_RC | \
21265    archive_cmds_RC | \
21266    archive_expsym_cmds_RC | \
21267    module_cmds_RC | \
21268    module_expsym_cmds_RC | \
21269    old_archive_from_expsyms_cmds_RC | \
21270    export_symbols_cmds_RC | \
21271    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21272    postinstall_cmds | postuninstall_cmds | \
21273    old_postinstall_cmds | old_postuninstall_cmds | \
21274    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21275      # Double-quote double-evaled strings.
21276      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21277      ;;
21278    *)
21279      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21280      ;;
21281    esac
21282  done
21283
21284  case $lt_echo in
21285  *'\$0 --fallback-echo"')
21286    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21287    ;;
21288  esac
21289
21290cfgfile="$ofile"
21291
21292  cat <<__EOF__ >> "$cfgfile"
21293# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21294
21295# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21296
21297# Shell to use when invoking shell scripts.
21298SHELL=$lt_SHELL
21299
21300# Whether or not to build shared libraries.
21301build_libtool_libs=$enable_shared
21302
21303# Whether or not to build static libraries.
21304build_old_libs=$enable_static
21305
21306# Whether or not to add -lc for building shared libraries.
21307build_libtool_need_lc=$archive_cmds_need_lc_RC
21308
21309# Whether or not to disallow shared libs when runtime libs are static
21310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21311
21312# Whether or not to optimize for fast installation.
21313fast_install=$enable_fast_install
21314
21315# The host system.
21316host_alias=$host_alias
21317host=$host
21318host_os=$host_os
21319
21320# The build system.
21321build_alias=$build_alias
21322build=$build
21323build_os=$build_os
21324
21325# An echo program that does not interpret backslashes.
21326echo=$lt_echo
21327
21328# The archiver.
21329AR=$lt_AR
21330AR_FLAGS=$lt_AR_FLAGS
21331
21332# A C compiler.
21333LTCC=$lt_LTCC
21334
21335# LTCC compiler flags.
21336LTCFLAGS=$lt_LTCFLAGS
21337
21338# A language-specific compiler.
21339CC=$lt_compiler_RC
21340
21341# Is the compiler the GNU C compiler?
21342with_gcc=$GCC_RC
21343
21344# An ERE matcher.
21345EGREP=$lt_EGREP
21346
21347# The linker used to build libraries.
21348LD=$lt_LD_RC
21349
21350# Whether we need hard or soft links.
21351LN_S=$lt_LN_S
21352
21353# A BSD-compatible nm program.
21354NM=$lt_NM
21355
21356# A symbol stripping program
21357STRIP=$lt_STRIP
21358
21359# Used to examine libraries when file_magic_cmd begins "file"
21360MAGIC_CMD=$MAGIC_CMD
21361
21362# Used on cygwin: DLL creation program.
21363DLLTOOL="$DLLTOOL"
21364
21365# Used on cygwin: object dumper.
21366OBJDUMP="$OBJDUMP"
21367
21368# Used on cygwin: assembler.
21369AS="$AS"
21370
21371# The name of the directory that contains temporary libtool files.
21372objdir=$objdir
21373
21374# How to create reloadable object files.
21375reload_flag=$lt_reload_flag
21376reload_cmds=$lt_reload_cmds
21377
21378# How to pass a linker flag through the compiler.
21379wl=$lt_lt_prog_compiler_wl_RC
21380
21381# Object file suffix (normally "o").
21382objext="$ac_objext"
21383
21384# Old archive suffix (normally "a").
21385libext="$libext"
21386
21387# Shared library suffix (normally ".so").
21388shrext_cmds='$shrext_cmds'
21389
21390# Executable file suffix (normally "").
21391exeext="$exeext"
21392
21393# Additional compiler flags for building library objects.
21394pic_flag=$lt_lt_prog_compiler_pic_RC
21395pic_mode=$pic_mode
21396
21397# What is the maximum length of a command?
21398max_cmd_len=$lt_cv_sys_max_cmd_len
21399
21400# Does compiler simultaneously support -c and -o options?
21401compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21402
21403# Must we lock files when doing compilation?
21404need_locks=$lt_need_locks
21405
21406# Do we need the lib prefix for modules?
21407need_lib_prefix=$need_lib_prefix
21408
21409# Do we need a version for libraries?
21410need_version=$need_version
21411
21412# Whether dlopen is supported.
21413dlopen_support=$enable_dlopen
21414
21415# Whether dlopen of programs is supported.
21416dlopen_self=$enable_dlopen_self
21417
21418# Whether dlopen of statically linked programs is supported.
21419dlopen_self_static=$enable_dlopen_self_static
21420
21421# Compiler flag to prevent dynamic linking.
21422link_static_flag=$lt_lt_prog_compiler_static_RC
21423
21424# Compiler flag to turn off builtin functions.
21425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21426
21427# Compiler flag to allow reflexive dlopens.
21428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21429
21430# Compiler flag to generate shared objects directly from archives.
21431whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21432
21433# Compiler flag to generate thread-safe objects.
21434thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21435
21436# Library versioning type.
21437version_type=$version_type
21438
21439# Format of library name prefix.
21440libname_spec=$lt_libname_spec
21441
21442# List of archive names.  First name is the real one, the rest are links.
21443# The last name is the one that the linker finds with -lNAME.
21444library_names_spec=$lt_library_names_spec
21445
21446# The coded name of the library, if different from the real name.
21447soname_spec=$lt_soname_spec
21448
21449# Commands used to build and install an old-style archive.
21450RANLIB=$lt_RANLIB
21451old_archive_cmds=$lt_old_archive_cmds_RC
21452old_postinstall_cmds=$lt_old_postinstall_cmds
21453old_postuninstall_cmds=$lt_old_postuninstall_cmds
21454
21455# Create an old-style archive from a shared archive.
21456old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21457
21458# Create a temporary old-style archive to link instead of a shared archive.
21459old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21460
21461# Commands used to build and install a shared archive.
21462archive_cmds=$lt_archive_cmds_RC
21463archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21464postinstall_cmds=$lt_postinstall_cmds
21465postuninstall_cmds=$lt_postuninstall_cmds
21466
21467# Commands used to build a loadable module (assumed same as above if empty)
21468module_cmds=$lt_module_cmds_RC
21469module_expsym_cmds=$lt_module_expsym_cmds_RC
21470
21471# Commands to strip libraries.
21472old_striplib=$lt_old_striplib
21473striplib=$lt_striplib
21474
21475# Dependencies to place before the objects being linked to create a
21476# shared library.
21477predep_objects=$lt_predep_objects_RC
21478
21479# Dependencies to place after the objects being linked to create a
21480# shared library.
21481postdep_objects=$lt_postdep_objects_RC
21482
21483# Dependencies to place before the objects being linked to create a
21484# shared library.
21485predeps=$lt_predeps_RC
21486
21487# Dependencies to place after the objects being linked to create a
21488# shared library.
21489postdeps=$lt_postdeps_RC
21490
21491# The library search path used internally by the compiler when linking
21492# a shared library.
21493compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21494
21495# Method to check whether dependent libraries are shared objects.
21496deplibs_check_method=$lt_deplibs_check_method
21497
21498# Command to use when deplibs_check_method == file_magic.
21499file_magic_cmd=$lt_file_magic_cmd
21500
21501# Flag that allows shared libraries with undefined symbols to be built.
21502allow_undefined_flag=$lt_allow_undefined_flag_RC
21503
21504# Flag that forces no undefined symbols.
21505no_undefined_flag=$lt_no_undefined_flag_RC
21506
21507# Commands used to finish a libtool library installation in a directory.
21508finish_cmds=$lt_finish_cmds
21509
21510# Same as above, but a single script fragment to be evaled but not shown.
21511finish_eval=$lt_finish_eval
21512
21513# Take the output of nm and produce a listing of raw symbols and C names.
21514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21515
21516# Transform the output of nm in a proper C declaration
21517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21518
21519# Transform the output of nm in a C name address pair
21520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21521
21522# This is the shared library runtime path variable.
21523runpath_var=$runpath_var
21524
21525# This is the shared library path variable.
21526shlibpath_var=$shlibpath_var
21527
21528# Is shlibpath searched before the hard-coded library search path?
21529shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21530
21531# How to hardcode a shared library path into an executable.
21532hardcode_action=$hardcode_action_RC
21533
21534# Whether we should hardcode library paths into libraries.
21535hardcode_into_libs=$hardcode_into_libs
21536
21537# Flag to hardcode \$libdir into a binary during linking.
21538# This must work even if \$libdir does not exist.
21539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21540
21541# If ld is used when linking, flag to hardcode \$libdir into
21542# a binary during linking. This must work even if \$libdir does
21543# not exist.
21544hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21545
21546# Whether we need a single -rpath flag with a separated argument.
21547hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21548
21549# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21550# resulting binary.
21551hardcode_direct=$hardcode_direct_RC
21552
21553# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21554# resulting binary.
21555hardcode_minus_L=$hardcode_minus_L_RC
21556
21557# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21558# the resulting binary.
21559hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21560
21561# Set to yes if building a shared library automatically hardcodes DIR into the library
21562# and all subsequent libraries and executables linked against it.
21563hardcode_automatic=$hardcode_automatic_RC
21564
21565# Variables whose values should be saved in libtool wrapper scripts and
21566# restored at relink time.
21567variables_saved_for_relink="$variables_saved_for_relink"
21568
21569# Whether libtool must link a program against all its dependency libraries.
21570link_all_deplibs=$link_all_deplibs_RC
21571
21572# Compile-time system search path for libraries
21573sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21574
21575# Run-time system search path for libraries
21576sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21577
21578# Fix the shell variable \$srcfile for the compiler.
21579fix_srcfile_path="$fix_srcfile_path_RC"
21580
21581# Set to yes if exported symbols are required.
21582always_export_symbols=$always_export_symbols_RC
21583
21584# The commands to list exported symbols.
21585export_symbols_cmds=$lt_export_symbols_cmds_RC
21586
21587# The commands to extract the exported symbol list from a shared archive.
21588extract_expsyms_cmds=$lt_extract_expsyms_cmds
21589
21590# Symbols that should not be listed in the preloaded symbols.
21591exclude_expsyms=$lt_exclude_expsyms_RC
21592
21593# Symbols that must always be exported.
21594include_expsyms=$lt_include_expsyms_RC
21595
21596# ### END LIBTOOL TAG CONFIG: $tagname
21597
21598__EOF__
21599
21600
21601else
21602  # If there is no Makefile yet, we rely on a make rule to execute
21603  # `config.status --recheck' to rerun these tests and create the
21604  # libtool script then.
21605  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21606  if test -f "$ltmain_in"; then
21607    test -f Makefile && make "$ltmain"
21608  fi
21609fi
21610
21611
21612ac_ext=c
21613ac_cpp='$CPP $CPPFLAGS'
21614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616ac_compiler_gnu=$ac_cv_c_compiler_gnu
21617
21618CC="$lt_save_CC"
21619
21620	;;
21621
21622      *)
21623	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21624echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21625   { (exit 1); exit 1; }; }
21626	;;
21627      esac
21628
21629      # Append the new tag name to the list of available tags.
21630      if test -n "$tagname" ; then
21631      available_tags="$available_tags $tagname"
21632    fi
21633    fi
21634  done
21635  IFS="$lt_save_ifs"
21636
21637  # Now substitute the updated list of available tags.
21638  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21639    mv "${ofile}T" "$ofile"
21640    chmod +x "$ofile"
21641  else
21642    rm -f "${ofile}T"
21643    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21644echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21645   { (exit 1); exit 1; }; }
21646  fi
21647fi
21648
21649
21650
21651# This can be used to rebuild libtool when needed
21652LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21653
21654# Always use our own libtool.
21655LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21656
21657# Prevent multiple expansion
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
21670 # AC_REQUIRE([AC_COIN_DLFCN_H])
21671
21672# NEW: If libtool exists in the directory higher up, we use that one
21673#      instead of creating a new one
21674
21675# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
21676# out in front of this macro body. You'll notice that LIBTOOL is already
21677# defined here.  We'll have to count on this macro not being called if libtool
21678# already exists, or at least move the libtool fixes outside the conditional.
21679# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
21680# This test is therefore removed.  -- lh, 061214 --
21681# if test "x$LIBTOOL" = x; then
21682
21683# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
21694
21695
21696
21697  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
21698echo "$as_me: Build is \"$build\"." >&6;}
21699  mydos2unix='| dos2unix'
21700  case $build in
21701    *-mingw*)
21702      CYGPATH_W=echo
21703      mydos2unix=
21704      ;;
21705  esac
21706
21707  case $build in
21708    # Here we need to check if -m32 is specified.  If so, we need to correct
21709    # sys_lib_search_path_spec
21710    *x86_64-*)
21711      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
21712        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
21713echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
21714        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
21715        mv conftest.bla libtool
21716        chmod 755 libtool
21717      fi
21718      ;;
21719
21720    *-solaris*)
21721       if test "$GCC" = yes && \
21722     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
21723    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
21724    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
21725      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
21726echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
21727      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
21728      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
21729      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
21730	# AC_MSG_NOTICE(Compensating for broken gcc)
21731	for lib in $fixlibtmp ; do
21732	  if test -d "${lib}${hdwisa}" ; then
21733	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
21734	  fi
21735	done
21736	syslibpath64="${syslibpath64} ${fixlibtmp}"
21737      else
21738	syslibpath64="$fixlibtmp"
21739      fi
21740      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
21741      mv conftest.bla libtool
21742      chmod 755 libtool
21743    fi
21744    # AC_MSG_NOTICE(Result is )
21745    # $EGREP 'sys_lib_search_path_spec=' libtool
21746  fi
21747      ;;
21748    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
21749    *-cygwin* | *-mingw*)
21750       case "$CXX" in
21751    clang* )
21752      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
21753      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
21754echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
21755      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21756	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21757	  -e 's|libext="lib"|libext="a"|' \
21758      libtool > conftest.bla
21759      ;;
21760    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21761      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
21762echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
21763      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21764	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21765	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21766	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21767	  -e 's%lib /OUT:%lib -OUT:%' \
21768	  -e "s%cygpath -w%$CYGPATH_W%" \
21769	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
21770	  -e 's/$AR t/lib -nologo -list/' \
21771	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
21772	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
21773	  -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"%' \
21774      libtool > conftest.bla
21775      ;;
21776    *)
21777      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
21778echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
21779      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21780	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21781	  -e 's|libext="lib"|libext="a"|' \
21782      libtool > conftest.bla
21783      ;;
21784  esac
21785  mv conftest.bla libtool
21786  chmod 755 libtool
21787
21788      ;;
21789    *-darwin*)
21790      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
21791echo "$as_me: Applying patches to libtool for Darwin" >&6;}
21792      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"/' \
21793        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
21794      libtool > conftest.bla
21795
21796      mv conftest.bla libtool
21797      chmod 755 libtool
21798      ;;
21799  esac
21800# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
21801# the macro. -- lh, 061214 --
21802# fi
21803
21804# AC_MSG_NOTICE([End libtool initialisation.])
21805
21806# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
21807  # set RPATH_FLAGS to the compiler link flags required to hardcode location
21808  # of the shared objects
21809  RPATH_FLAGS=
21810
21811if test $enable_shared = yes; then
21812  case $build in
21813    *-linux-*)
21814      if test "$GXX" = "yes"; then
21815        RPATH_FLAGS=
21816        for dir in $abs_lib_dir; do
21817          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
21818        done
21819      fi ;;
21820    *-darwin*)
21821        RPATH_FLAGS=nothing ;;
21822    *-ibm-*)
21823      case "$CXX" in
21824      xlC* | */xlC* | mpxlC* | */mpxlC*)
21825        RPATH_FLAGS=nothing ;;
21826      esac ;;
21827    *-hp-*)
21828        RPATH_FLAGS=nothing ;;
21829    *-mingw32)
21830        RPATH_FLAGS=nothing ;;
21831    *-*-solaris*)
21832        RPATH_FLAGS=
21833        for dir in $abs_lib_dir; do
21834          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
21835        done
21836  esac
21837
21838  if test "$RPATH_FLAGS" = ""; then
21839    { 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
21840echo "$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;}
21841  fi
21842  if test "$RPATH_FLAGS" = "nothing"; then
21843    RPATH_FLAGS=
21844  fi
21845fi
21846
21847
21848
21849
21850else
21851
21852  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
21853echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
21854  # get all missing information from the config.log file
21855
21856  # output variables and defines
21857  as_save_IFS=$IFS
21858  IFS='
21859'
21860  for oneline in `cat $coin_config_dir/config.status`; do
21861    case "$oneline" in
21862         # First some automake conditionals
21863      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
21864      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
21865      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
21866      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
21867        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
21868#        echo "$command"
21869        eval "$command"
21870        ;;
21871      s,@DEFS@* )
21872        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
21873#        echo "$command"
21874        eval "$command"
21875        ;;
21876    esac
21877  done
21878  IFS=$as_save_IFS
21879
21880  # And some defines (assuming here that the packages base dir
21881  # doesn't have a config.h file
21882  for word in $defsline; do
21883#    echo word $word
21884    case $word in
21885      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
21886        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
21887#        echo dd $i
21888        echo $i >>confdefs.h
21889        ;;
21890    esac
21891  done
21892fi
21893
21894# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
21895
21896# ToDo
21897# For now, don't use the -no-undefined flag, since the Makefiles are
21898# not yet set up that way.  But we need to fix this, when we want
21899# to comile DLLs under Windows.
21900LT_LDFLAGS=
21901
21902# Check if we want to set the library version
21903echo "$as_me:$LINENO: checking if library version is set" >&5
21904echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
21905if test x"$coin_libversion" != x; then
21906  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
21907  echo "$as_me:$LINENO: result: $coin_libversion" >&5
21908echo "${ECHO_T}$coin_libversion" >&6
21909else
21910  echo "$as_me:$LINENO: result: no" >&5
21911echo "${ECHO_T}no" >&6
21912fi
21913
21914
21915
21916#END
21917}
21918# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
21919
21920
21921#############################################################################
21922#                  Check which subprojects are there                        #
21923#############################################################################
21924
21925
21926echo "$as_me:$LINENO: checking whether source of project Creme is available and should be compiled" >&5
21927echo $ECHO_N "checking whether source of project Creme is available and should be compiled... $ECHO_C" >&6
21928
21929coin_has_creme=notGiven
21930coin_reason=
21931
21932# check if user wants to skip project in any case
21933
21934if test x"$COIN_SKIP_PROJECTS" != x; then
21935  for dir in $COIN_SKIP_PROJECTS; do
21936    if test $dir = "Creme"; then
21937      coin_has_creme="no"
21938      coin_reason="Creme has been specified in COIN_SKIP_PROJECTS"
21939    fi
21940
21941  done
21942fi
21943
21944if test "$coin_has_creme" != no; then
21945
21946# Check whether --with-m4_tolower(Creme) or --without-m4_tolower(Creme) was given.
21947if test "${with_creme+set}" = set; then
21948  withval="$with_creme"
21949  if test "$withval" = no ; then
21950       coin_has_creme="no"
21951       coin_reason="--without-creme has been specified"
21952     fi
21953
21954fi;
21955fi
21956
21957if test "$coin_has_creme" != no; then
21958
21959# Check whether --with-m4_tolower(Creme)-lib or --without-m4_tolower(Creme)-lib was given.
21960if test "${with_creme_lib+set}" = set; then
21961  withval="$with_creme_lib"
21962  if test "$withval" = no ; then
21963       coin_has_creme="no"
21964       coin_reason="--without-creme-lib has been specified"
21965     else
21966       coin_has_creme="no"
21967       coin_reason="--with-creme-lib has been specified"
21968     fi
21969fi;
21970fi
21971
21972if test "$coin_has_creme" != no; then
21973
21974# Check whether --with-m4_tolower(Creme)-incdir or --without-m4_tolower(Creme)-incdir was given.
21975if test "${with_creme_incdir+set}" = set; then
21976  withval="$with_creme_incdir"
21977  if test "$withval" = no ; then
21978       coin_has_creme="no"
21979       coin_reason="--without-creme-incdir has been specified"
21980     else
21981       coin_has_creme="no"
21982       coin_reason="--with-creme-incdir has been specified"
21983     fi
21984fi;
21985fi
21986
21987if test "$coin_has_creme" != no; then
21988
21989# Check whether --with-m4_tolower(Creme)-datadir or --without-m4_tolower(Creme)-datadir was given.
21990if test "${with_creme_datadir+set}" = set; then
21991  withval="$with_creme_datadir"
21992  if test "$withval" = no ; then
21993       coin_has_creme="no"
21994       coin_reason="--without-creme-datadir has been specified"
21995     else
21996       coin_has_creme="no"
21997       coin_reason="--with-creme-datadir has been specified"
21998     fi
21999fi;
22000fi
22001
22002
22003
22004
22005
22006# check if project is available in present directory
22007if test "$coin_has_creme" = notGiven; then
22008  coin_has_creme=no
22009  if test -d $srcdir/Creme; then
22010    coin_reason="source in Creme"
22011    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22012    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22013    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22014     coin_has_creme="yes"
22015
22016  fi
22017fi
22018
22019if test -z "$coin_reason" ; then
22020  echo "$as_me:$LINENO: result: $coin_has_creme" >&5
22021echo "${ECHO_T}$coin_has_creme" >&6
22022else
22023  echo "$as_me:$LINENO: result: $coin_has_creme, $coin_reason" >&5
22024echo "${ECHO_T}$coin_has_creme, $coin_reason" >&6
22025fi
22026
22027if test "$coin_has_creme" = yes ; then
22028  if test -r $srcdir/Creme/configure; then
22029    coin_subdirs="$coin_subdirs Creme"
22030
22031
22032subdirs="$subdirs Creme"
22033
22034  fi
22035fi
22036
22037
22038
22039
22040# Check whether --enable-pkg-config or --disable-pkg-config was given.
22041if test "${enable_pkg_config+set}" = set; then
22042  enableval="$enable_pkg_config"
22043  use_pkgconfig="$enableval"
22044else
22045  use_pkgconfig=yes
22046fi;
22047
22048if test $use_pkgconfig = yes ; then
22049  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22050    if test -n "$ac_tool_prefix"; then
22051  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22052set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22053echo "$as_me:$LINENO: checking for $ac_word" >&5
22054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22055if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22056  echo $ECHO_N "(cached) $ECHO_C" >&6
22057else
22058  case $PKG_CONFIG in
22059  [\\/]* | ?:[\\/]*)
22060  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22061  ;;
22062  *)
22063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22064for as_dir in $PATH
22065do
22066  IFS=$as_save_IFS
22067  test -z "$as_dir" && as_dir=.
22068  for ac_exec_ext in '' $ac_executable_extensions; do
22069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22070    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22072    break 2
22073  fi
22074done
22075done
22076
22077  ;;
22078esac
22079fi
22080PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22081
22082if test -n "$PKG_CONFIG"; then
22083  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22084echo "${ECHO_T}$PKG_CONFIG" >&6
22085else
22086  echo "$as_me:$LINENO: result: no" >&5
22087echo "${ECHO_T}no" >&6
22088fi
22089
22090fi
22091if test -z "$ac_cv_path_PKG_CONFIG"; then
22092  ac_pt_PKG_CONFIG=$PKG_CONFIG
22093  # Extract the first word of "pkg-config", so it can be a program name with args.
22094set dummy pkg-config; ac_word=$2
22095echo "$as_me:$LINENO: checking for $ac_word" >&5
22096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22097if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22098  echo $ECHO_N "(cached) $ECHO_C" >&6
22099else
22100  case $ac_pt_PKG_CONFIG in
22101  [\\/]* | ?:[\\/]*)
22102  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22103  ;;
22104  *)
22105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22106for as_dir in $PATH
22107do
22108  IFS=$as_save_IFS
22109  test -z "$as_dir" && as_dir=.
22110  for ac_exec_ext in '' $ac_executable_extensions; do
22111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22112    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22114    break 2
22115  fi
22116done
22117done
22118
22119  ;;
22120esac
22121fi
22122ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22123
22124if test -n "$ac_pt_PKG_CONFIG"; then
22125  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22126echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
22127else
22128  echo "$as_me:$LINENO: result: no" >&5
22129echo "${ECHO_T}no" >&6
22130fi
22131
22132  PKG_CONFIG=$ac_pt_PKG_CONFIG
22133else
22134  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22135fi
22136
22137  fi
22138  if test -n "$PKG_CONFIG"; then
22139    _pkg_min_version=0.16.0
22140    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22141echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
22142    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22143      echo "$as_me:$LINENO: result: yes" >&5
22144echo "${ECHO_T}yes" >&6
22145    else
22146      echo "$as_me:$LINENO: result: no" >&5
22147echo "${ECHO_T}no" >&6
22148      PKG_CONFIG=""
22149    fi
22150  fi
22151
22152  # check if pkg-config supports the short-errors flag
22153  if test -n "$PKG_CONFIG" && \
22154    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22155    pkg_short_errors=" --short-errors "
22156  else
22157    pkg_short_errors=""
22158  fi
22159fi
22160
22161
22162
22163if test -n "$PKG_CONFIG"; then
22164  COIN_HAS_PKGCONFIG_TRUE=
22165  COIN_HAS_PKGCONFIG_FALSE='#'
22166else
22167  COIN_HAS_PKGCONFIG_TRUE='#'
22168  COIN_HAS_PKGCONFIG_FALSE=
22169fi
22170
22171
22172
22173# assemble pkg-config search path for installed projects
22174COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22175
22176# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
22177# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
22178# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
22179if test "x${prefix}" = xNONE ; then
22180  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
22181else
22182  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
22183fi
22184
22185
22186# Check whether --with-coin-instdir or --without-coin-instdir was given.
22187if test "${with_coin_instdir+set}" = set; then
22188  withval="$with_coin_instdir"
22189  if test -d "$withval"; then : ; else
22190     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
22191echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
22192   { (exit 1); exit 1; }; }
22193   fi
22194   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
22195
22196fi;
22197
22198
22199
22200# assemble additional pkg-config search paths for uninstalled projects
22201if test x$coin_projectdir = xyes ; then
22202  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
22203  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
22204  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
22205  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
22206  COIN_PKG_CONFIG_PATH_UNINSTALLED=
22207  if test -e ../coin_subdirs.txt ; then
22208    for i in `cat ../coin_subdirs.txt` ; do
22209      if test -d ../$i ; then
22210        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22211      fi
22212      if test -d ../$i/pkgconfig ; then
22213        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22214      fi
22215    done
22216  fi
22217
22218  if test -e ../../coin_subdirs.txt ; then
22219    for i in `cat ../../coin_subdirs.txt` ; do
22220      if test -d ../../$i ; then
22221        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22222      fi
22223      if test -d ../../$i/pkgconfig ; then
22224        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
22225      fi
22226    done
22227  fi
22228
22229
22230fi
22231
22232if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
22233  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
22234echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
22235fi
22236
22237
22238
22239##############################################################################
22240#                   Finishing up by writing all the output                   #
22241##############################################################################
22242
22243# Here list all the files that configure should create (except for the
22244# configuration header file)
22245                    ac_config_files="$ac_config_files Makefile doxydoc/doxygen.conf"
22246
22247
22248# Finally, we let configure write all the output...
22249
22250
22251
22252
22253echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22254echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22255coin_link_input_cmd="$LN_S"
22256if test "$enable_doscompile" = mingw; then
22257  coin_link_input_cmd=cp
22258fi
22259case "$CC" in
22260  clang* ) ;;
22261  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22262    coin_link_input_cmd=cp ;;
22263esac
22264echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22265echo "${ECHO_T}$coin_link_input_cmd" >&6
22266
22267
22268
22269if test x$coin_skip_ac_output != xyes; then
22270
22271  # library extension
22272
22273  case "$CC" in
22274    clang* )
22275         LIBEXT=a ;;
22276    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22277         LIBEXT=lib ;;
22278      *) LIBEXT=a ;;
22279  esac
22280
22281  # Define VPATH_DISTCLEANFILES to be everything that needs to be
22282  # cleaned for distclean in a vpath configuration
22283
22284  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22285
22286  # Take out subdirectories if their configuration concluded that they
22287  # don't need to be compiled
22288  if test x"$coin_ac_skip_subdirs" != x; then
22289    new_subdirs=
22290    for i in $subdirs; do
22291      skipme=no
22292      for j in $coin_ac_skip_subdirs; do
22293        if test $i = $j; then
22294          skipme=yes;
22295        fi
22296      done
22297      if test $skipme = no; then
22298        new_subdirs="$new_subdirs $i"
22299      fi
22300    done
22301    subdirs="$new_subdirs"
22302  fi
22303
22304  # need to come before AC_OUTPUT
22305  if test x$coin_projectdir != xyes; then
22306    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22307    echo $coin_subdirs > coin_subdirs.txt
22308  else
22309    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22310    ABSBUILDDIR="`pwd`"
22311
22312  fi
22313
22314  cat >confcache <<\_ACEOF
22315# This file is a shell script that caches the results of configure
22316# tests run on this system so they can be shared between configure
22317# scripts and configure runs, see configure's option --config-cache.
22318# It is not useful on other systems.  If it contains results you don't
22319# want to keep, you may remove or edit it.
22320#
22321# config.status only pays attention to the cache file if you give it
22322# the --recheck option to rerun configure.
22323#
22324# `ac_cv_env_foo' variables (set or unset) will be overridden when
22325# loading this file, other *unset* `ac_cv_foo' will be assigned the
22326# following values.
22327
22328_ACEOF
22329
22330# The following way of writing the cache mishandles newlines in values,
22331# but we know of no workaround that is simple, portable, and efficient.
22332# So, don't put newlines in cache variables' values.
22333# Ultrix sh set writes to stderr and can't be redirected directly,
22334# and sets the high bit in the cache file unless we assign to the vars.
22335{
22336  (set) 2>&1 |
22337    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22338    *ac_space=\ *)
22339      # `set' does not quote correctly, so add quotes (double-quote
22340      # substitution turns \\\\ into \\, and sed turns \\ into \).
22341      sed -n \
22342	"s/'/'\\\\''/g;
22343	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22344      ;;
22345    *)
22346      # `set' quotes correctly as required by POSIX, so do not add quotes.
22347      sed -n \
22348	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22349      ;;
22350    esac;
22351} |
22352  sed '
22353     t clear
22354     : clear
22355     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22356     t end
22357     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22358     : end' >>confcache
22359if diff $cache_file confcache >/dev/null 2>&1; then :; else
22360  if test -w $cache_file; then
22361    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22362    cat confcache >$cache_file
22363  else
22364    echo "not updating unwritable cache $cache_file"
22365  fi
22366fi
22367rm -f confcache
22368
22369test "x$prefix" = xNONE && prefix=$ac_default_prefix
22370# Let make expand exec_prefix.
22371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22372
22373# VPATH may cause trouble with some makes, so we remove $(srcdir),
22374# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22375# trailing colons and then remove the whole line if VPATH becomes empty
22376# (actually we leave an empty line to preserve line numbers).
22377if test "x$srcdir" = x.; then
22378  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22379s/:*\$(srcdir):*/:/;
22380s/:*\${srcdir}:*/:/;
22381s/:*@srcdir@:*/:/;
22382s/^\([^=]*=[	 ]*\):*/\1/;
22383s/:*$//;
22384s/^[^=]*=[	 ]*$//;
22385}'
22386fi
22387
22388# Transform confdefs.h into DEFS.
22389# Protect against shell expansion while executing Makefile rules.
22390# Protect against Makefile macro expansion.
22391#
22392# If the first sed substitution is executed (which looks for macros that
22393# take arguments), then we branch to the quote section.  Otherwise,
22394# look for a macro that doesn't take arguments.
22395cat >confdef2opt.sed <<\_ACEOF
22396t clear
22397: clear
22398s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
22399t quote
22400s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
22401t quote
22402d
22403: quote
22404s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
22405s,\[,\\&,g
22406s,\],\\&,g
22407s,\$,$$,g
22408p
22409_ACEOF
22410# We use echo to avoid assuming a particular line-breaking character.
22411# The extra dot is to prevent the shell from consuming trailing
22412# line-breaks from the sub-command output.  A line-break within
22413# single-quotes doesn't work because, if this script is created in a
22414# platform that uses two characters for line-breaks (e.g., DOS), tr
22415# would break.
22416ac_LF_and_DOT=`echo; echo .`
22417DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22418rm -f confdef2opt.sed
22419
22420
22421ac_libobjs=
22422ac_ltlibobjs=
22423for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22424  # 1. Remove the extension, and $U if already installed.
22425  ac_i=`echo "$ac_i" |
22426	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22427  # 2. Add them.
22428  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22429  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22430done
22431LIBOBJS=$ac_libobjs
22432
22433LTLIBOBJS=$ac_ltlibobjs
22434
22435
22436if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22437  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22438Usually this means the macro was only invoked conditionally." >&5
22439echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22440Usually this means the macro was only invoked conditionally." >&2;}
22441   { (exit 1); exit 1; }; }
22442fi
22443if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22444  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22445Usually this means the macro was only invoked conditionally." >&5
22446echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22447Usually this means the macro was only invoked conditionally." >&2;}
22448   { (exit 1); exit 1; }; }
22449fi
22450if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22451  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22452Usually this means the macro was only invoked conditionally." >&5
22453echo "$as_me: error: conditional \"AMDEP\" was never defined.
22454Usually this means the macro was only invoked conditionally." >&2;}
22455   { (exit 1); exit 1; }; }
22456fi
22457if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22458  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22459Usually this means the macro was only invoked conditionally." >&5
22460echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22461Usually this means the macro was only invoked conditionally." >&2;}
22462   { (exit 1); exit 1; }; }
22463fi
22464if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22465  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22466Usually this means the macro was only invoked conditionally." >&5
22467echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22468Usually this means the macro was only invoked conditionally." >&2;}
22469   { (exit 1); exit 1; }; }
22470fi
22471if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22472  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22473Usually this means the macro was only invoked conditionally." >&5
22474echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22475Usually this means the macro was only invoked conditionally." >&2;}
22476   { (exit 1); exit 1; }; }
22477fi
22478if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22479  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22480Usually this means the macro was only invoked conditionally." >&5
22481echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22482Usually this means the macro was only invoked conditionally." >&2;}
22483   { (exit 1); exit 1; }; }
22484fi
22485if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
22486  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
22487Usually this means the macro was only invoked conditionally." >&5
22488echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
22489Usually this means the macro was only invoked conditionally." >&2;}
22490   { (exit 1); exit 1; }; }
22491fi
22492
22493: ${CONFIG_STATUS=./config.status}
22494ac_clean_files_save=$ac_clean_files
22495ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22496{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22497echo "$as_me: creating $CONFIG_STATUS" >&6;}
22498cat >$CONFIG_STATUS <<_ACEOF
22499#! $SHELL
22500# Generated by $as_me.
22501# Run this file to recreate the current configuration.
22502# Compiler output produced by configure, useful for debugging
22503# configure, is in config.log if it exists.
22504
22505debug=false
22506ac_cs_recheck=false
22507ac_cs_silent=false
22508SHELL=\${CONFIG_SHELL-$SHELL}
22509_ACEOF
22510
22511cat >>$CONFIG_STATUS <<\_ACEOF
22512## --------------------- ##
22513## M4sh Initialization.  ##
22514## --------------------- ##
22515
22516# Be Bourne compatible
22517if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22518  emulate sh
22519  NULLCMD=:
22520  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22521  # is contrary to our usage.  Disable this feature.
22522  alias -g '${1+"$@"}'='"$@"'
22523elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22524  set -o posix
22525fi
22526DUALCASE=1; export DUALCASE # for MKS sh
22527
22528# Support unset when possible.
22529if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22530  as_unset=unset
22531else
22532  as_unset=false
22533fi
22534
22535
22536# Work around bugs in pre-3.0 UWIN ksh.
22537$as_unset ENV MAIL MAILPATH
22538PS1='$ '
22539PS2='> '
22540PS4='+ '
22541
22542# NLS nuisances.
22543for as_var in \
22544  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22545  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22546  LC_TELEPHONE LC_TIME
22547do
22548  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22549    eval $as_var=C; export $as_var
22550  else
22551    $as_unset $as_var
22552  fi
22553done
22554
22555# Required to use basename.
22556if expr a : '\(a\)' >/dev/null 2>&1; then
22557  as_expr=expr
22558else
22559  as_expr=false
22560fi
22561
22562if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22563  as_basename=basename
22564else
22565  as_basename=false
22566fi
22567
22568
22569# Name of the executable.
22570as_me=`$as_basename "$0" ||
22571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22572	 X"$0" : 'X\(//\)$' \| \
22573	 X"$0" : 'X\(/\)$' \| \
22574	 .     : '\(.\)' 2>/dev/null ||
22575echo X/"$0" |
22576    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22577  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22578  	  /^X\/\(\/\).*/{ s//\1/; q; }
22579  	  s/.*/./; q'`
22580
22581
22582# PATH needs CR, and LINENO needs CR and PATH.
22583# Avoid depending upon Character Ranges.
22584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22587as_cr_digits='0123456789'
22588as_cr_alnum=$as_cr_Letters$as_cr_digits
22589
22590# The user is always right.
22591if test "${PATH_SEPARATOR+set}" != set; then
22592  echo "#! /bin/sh" >conf$$.sh
22593  echo  "exit 0"   >>conf$$.sh
22594  chmod +x conf$$.sh
22595  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22596    PATH_SEPARATOR=';'
22597  else
22598    PATH_SEPARATOR=:
22599  fi
22600  rm -f conf$$.sh
22601fi
22602
22603
22604  as_lineno_1=$LINENO
22605  as_lineno_2=$LINENO
22606  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22607  test "x$as_lineno_1" != "x$as_lineno_2" &&
22608  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22609  # Find who we are.  Look in the path if we contain no path at all
22610  # relative or not.
22611  case $0 in
22612    *[\\/]* ) as_myself=$0 ;;
22613    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22614for as_dir in $PATH
22615do
22616  IFS=$as_save_IFS
22617  test -z "$as_dir" && as_dir=.
22618  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22619done
22620
22621       ;;
22622  esac
22623  # We did not find ourselves, most probably we were run as `sh COMMAND'
22624  # in which case we are not to be found in the path.
22625  if test "x$as_myself" = x; then
22626    as_myself=$0
22627  fi
22628  if test ! -f "$as_myself"; then
22629    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22630echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22631   { (exit 1); exit 1; }; }
22632  fi
22633  case $CONFIG_SHELL in
22634  '')
22635    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22636for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22637do
22638  IFS=$as_save_IFS
22639  test -z "$as_dir" && as_dir=.
22640  for as_base in sh bash ksh sh5; do
22641	 case $as_dir in
22642	 /*)
22643	   if ("$as_dir/$as_base" -c '
22644  as_lineno_1=$LINENO
22645  as_lineno_2=$LINENO
22646  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22647  test "x$as_lineno_1" != "x$as_lineno_2" &&
22648  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22649	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22650	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22651	     CONFIG_SHELL=$as_dir/$as_base
22652	     export CONFIG_SHELL
22653	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22654	   fi;;
22655	 esac
22656       done
22657done
22658;;
22659  esac
22660
22661  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22662  # uniformly replaced by the line number.  The first 'sed' inserts a
22663  # line-number line before each line; the second 'sed' does the real
22664  # work.  The second script uses 'N' to pair each line-number line
22665  # with the numbered line, and appends trailing '-' during
22666  # substitution so that $LINENO is not a special case at line end.
22667  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22668  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22669  sed '=' <$as_myself |
22670    sed '
22671      N
22672      s,$,-,
22673      : loop
22674      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22675      t loop
22676      s,-$,,
22677      s,^['$as_cr_digits']*\n,,
22678    ' >$as_me.lineno &&
22679  chmod +x $as_me.lineno ||
22680    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22681echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22682   { (exit 1); exit 1; }; }
22683
22684  # Don't try to exec as it changes $[0], causing all sort of problems
22685  # (the dirname of $[0] is not the place where we might find the
22686  # original and so on.  Autoconf is especially sensible to this).
22687  . ./$as_me.lineno
22688  # Exit status is that of the last command.
22689  exit
22690}
22691
22692
22693case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22694  *c*,-n*) ECHO_N= ECHO_C='
22695' ECHO_T='	' ;;
22696  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22697  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22698esac
22699
22700if expr a : '\(a\)' >/dev/null 2>&1; then
22701  as_expr=expr
22702else
22703  as_expr=false
22704fi
22705
22706rm -f conf$$ conf$$.exe conf$$.file
22707echo >conf$$.file
22708if ln -s conf$$.file conf$$ 2>/dev/null; then
22709  # We could just check for DJGPP; but this test a) works b) is more generic
22710  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22711  if test -f conf$$.exe; then
22712    # Don't use ln at all; we don't have any links
22713    as_ln_s='cp -p'
22714  else
22715    as_ln_s='ln -s'
22716  fi
22717elif ln conf$$.file conf$$ 2>/dev/null; then
22718  as_ln_s=ln
22719else
22720  as_ln_s='cp -p'
22721fi
22722rm -f conf$$ conf$$.exe conf$$.file
22723
22724if mkdir -p . 2>/dev/null; then
22725  as_mkdir_p=:
22726else
22727  test -d ./-p && rmdir ./-p
22728  as_mkdir_p=false
22729fi
22730
22731as_executable_p="test -f"
22732
22733# Sed expression to map a string onto a valid CPP name.
22734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22735
22736# Sed expression to map a string onto a valid variable name.
22737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22738
22739
22740# IFS
22741# We need space, tab and new line, in precisely that order.
22742as_nl='
22743'
22744IFS=" 	$as_nl"
22745
22746# CDPATH.
22747$as_unset CDPATH
22748
22749exec 6>&1
22750
22751# Open the log real soon, to keep \$[0] and so on meaningful, and to
22752# report actual input values of CONFIG_FILES etc. instead of their
22753# values after options handling.  Logging --version etc. is OK.
22754exec 5>>config.log
22755{
22756  echo
22757  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22758## Running $as_me. ##
22759_ASBOX
22760} >&5
22761cat >&5 <<_CSEOF
22762
22763This file was extended by Crème $as_me 0.0trunk, which was
22764generated by GNU Autoconf 2.59.  Invocation command line was
22765
22766  CONFIG_FILES    = $CONFIG_FILES
22767  CONFIG_HEADERS  = $CONFIG_HEADERS
22768  CONFIG_LINKS    = $CONFIG_LINKS
22769  CONFIG_COMMANDS = $CONFIG_COMMANDS
22770  $ $0 $@
22771
22772_CSEOF
22773echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22774echo >&5
22775_ACEOF
22776
22777# Files that config.status was made for.
22778if test -n "$ac_config_files"; then
22779  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22780fi
22781
22782if test -n "$ac_config_headers"; then
22783  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22784fi
22785
22786if test -n "$ac_config_links"; then
22787  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22788fi
22789
22790if test -n "$ac_config_commands"; then
22791  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22792fi
22793
22794cat >>$CONFIG_STATUS <<\_ACEOF
22795
22796ac_cs_usage="\
22797\`$as_me' instantiates files from templates according to the
22798current configuration.
22799
22800Usage: $0 [OPTIONS] [FILE]...
22801
22802  -h, --help       print this help, then exit
22803  -V, --version    print version number, then exit
22804  -q, --quiet      do not print progress messages
22805  -d, --debug      don't remove temporary files
22806      --recheck    update $as_me by reconfiguring in the same conditions
22807  --file=FILE[:TEMPLATE]
22808		   instantiate the configuration file FILE
22809
22810Configuration files:
22811$config_files
22812
22813Configuration commands:
22814$config_commands
22815
22816Report bugs to <bug-autoconf@gnu.org>."
22817_ACEOF
22818
22819cat >>$CONFIG_STATUS <<_ACEOF
22820ac_cs_version="\\
22821Crème config.status 0.0trunk
22822configured by $0, generated by GNU Autoconf 2.59,
22823  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22824
22825Copyright (C) 2003 Free Software Foundation, Inc.
22826This config.status script is free software; the Free Software Foundation
22827gives unlimited permission to copy, distribute and modify it."
22828srcdir=$srcdir
22829INSTALL="$INSTALL"
22830_ACEOF
22831
22832cat >>$CONFIG_STATUS <<\_ACEOF
22833# If no file are specified by the user, then we need to provide default
22834# value.  By we need to know if files were specified by the user.
22835ac_need_defaults=:
22836while test $# != 0
22837do
22838  case $1 in
22839  --*=*)
22840    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22841    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22842    ac_shift=:
22843    ;;
22844  -*)
22845    ac_option=$1
22846    ac_optarg=$2
22847    ac_shift=shift
22848    ;;
22849  *) # This is not an option, so the user has probably given explicit
22850     # arguments.
22851     ac_option=$1
22852     ac_need_defaults=false;;
22853  esac
22854
22855  case $ac_option in
22856  # Handling of the options.
22857_ACEOF
22858cat >>$CONFIG_STATUS <<\_ACEOF
22859  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22860    ac_cs_recheck=: ;;
22861  --version | --vers* | -V )
22862    echo "$ac_cs_version"; exit 0 ;;
22863  --he | --h)
22864    # Conflict between --help and --header
22865    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22866Try \`$0 --help' for more information." >&5
22867echo "$as_me: error: ambiguous option: $1
22868Try \`$0 --help' for more information." >&2;}
22869   { (exit 1); exit 1; }; };;
22870  --help | --hel | -h )
22871    echo "$ac_cs_usage"; exit 0 ;;
22872  --debug | --d* | -d )
22873    debug=: ;;
22874  --file | --fil | --fi | --f )
22875    $ac_shift
22876    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22877    ac_need_defaults=false;;
22878  --header | --heade | --head | --hea )
22879    $ac_shift
22880    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22881    ac_need_defaults=false;;
22882  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22883  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22884    ac_cs_silent=: ;;
22885
22886  # This is an error.
22887  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22888Try \`$0 --help' for more information." >&5
22889echo "$as_me: error: unrecognized option: $1
22890Try \`$0 --help' for more information." >&2;}
22891   { (exit 1); exit 1; }; } ;;
22892
22893  *) ac_config_targets="$ac_config_targets $1" ;;
22894
22895  esac
22896  shift
22897done
22898
22899ac_configure_extra_args=
22900
22901if $ac_cs_silent; then
22902  exec 6>/dev/null
22903  ac_configure_extra_args="$ac_configure_extra_args --silent"
22904fi
22905
22906_ACEOF
22907cat >>$CONFIG_STATUS <<_ACEOF
22908if \$ac_cs_recheck; then
22909  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22910  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22911fi
22912
22913_ACEOF
22914
22915cat >>$CONFIG_STATUS <<_ACEOF
22916#
22917# INIT-COMMANDS section.
22918#
22919
22920AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22921
22922_ACEOF
22923
22924
22925
22926cat >>$CONFIG_STATUS <<\_ACEOF
22927for ac_config_target in $ac_config_targets
22928do
22929  case "$ac_config_target" in
22930  # Handling of arguments.
22931  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22932  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
22933  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22934  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22935echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22936   { (exit 1); exit 1; }; };;
22937  esac
22938done
22939
22940# If the user did not use the arguments to specify the items to instantiate,
22941# then the envvar interface is used.  Set only those that are not.
22942# We use the long form for the default assignment because of an extremely
22943# bizarre bug on SunOS 4.1.3.
22944if $ac_need_defaults; then
22945  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22946  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22947fi
22948
22949# Have a temporary directory for convenience.  Make it in the build tree
22950# simply because there is no reason to put it here, and in addition,
22951# creating and moving files from /tmp can sometimes cause problems.
22952# Create a temporary directory, and hook for its removal unless debugging.
22953$debug ||
22954{
22955  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22956  trap '{ (exit 1); exit 1; }' 1 2 13 15
22957}
22958
22959# Create a (secure) tmp directory for tmp files.
22960
22961{
22962  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22963  test -n "$tmp" && test -d "$tmp"
22964}  ||
22965{
22966  tmp=./confstat$$-$RANDOM
22967  (umask 077 && mkdir $tmp)
22968} ||
22969{
22970   echo "$me: cannot create a temporary directory in ." >&2
22971   { (exit 1); exit 1; }
22972}
22973
22974_ACEOF
22975
22976cat >>$CONFIG_STATUS <<_ACEOF
22977
22978#
22979# CONFIG_FILES section.
22980#
22981
22982# No need to generate the scripts if there are no CONFIG_FILES.
22983# This happens for instance when ./config.status config.h
22984if test -n "\$CONFIG_FILES"; then
22985  # Protect against being on the right side of a sed subst in config.status.
22986  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22987   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22988s,@SHELL@,$SHELL,;t t
22989s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22990s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22991s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22992s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22993s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22994s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22995s,@exec_prefix@,$exec_prefix,;t t
22996s,@prefix@,$prefix,;t t
22997s,@program_transform_name@,$program_transform_name,;t t
22998s,@bindir@,$bindir,;t t
22999s,@sbindir@,$sbindir,;t t
23000s,@libexecdir@,$libexecdir,;t t
23001s,@datadir@,$datadir,;t t
23002s,@sysconfdir@,$sysconfdir,;t t
23003s,@sharedstatedir@,$sharedstatedir,;t t
23004s,@localstatedir@,$localstatedir,;t t
23005s,@libdir@,$libdir,;t t
23006s,@includedir@,$includedir,;t t
23007s,@oldincludedir@,$oldincludedir,;t t
23008s,@infodir@,$infodir,;t t
23009s,@mandir@,$mandir,;t t
23010s,@build_alias@,$build_alias,;t t
23011s,@host_alias@,$host_alias,;t t
23012s,@target_alias@,$target_alias,;t t
23013s,@DEFS@,$DEFS,;t t
23014s,@ECHO_C@,$ECHO_C,;t t
23015s,@ECHO_N@,$ECHO_N,;t t
23016s,@ECHO_T@,$ECHO_T,;t t
23017s,@LIBS@,$LIBS,;t t
23018s,@CC@,$CC,;t t
23019s,@CFLAGS@,$CFLAGS,;t t
23020s,@LDFLAGS@,$LDFLAGS,;t t
23021s,@CPPFLAGS@,$CPPFLAGS,;t t
23022s,@ac_ct_CC@,$ac_ct_CC,;t t
23023s,@EXEEXT@,$EXEEXT,;t t
23024s,@OBJEXT@,$OBJEXT,;t t
23025s,@CPP@,$CPP,;t t
23026s,@EGREP@,$EGREP,;t t
23027s,@build@,$build,;t t
23028s,@build_cpu@,$build_cpu,;t t
23029s,@build_vendor@,$build_vendor,;t t
23030s,@build_os@,$build_os,;t t
23031s,@CDEFS@,$CDEFS,;t t
23032s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23033s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23034s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23035s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23036s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23037s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23038s,@MPICC@,$MPICC,;t t
23039s,@CXXDEFS@,$CXXDEFS,;t t
23040s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23041s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23042s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23043s,@CXX@,$CXX,;t t
23044s,@CXXFLAGS@,$CXXFLAGS,;t t
23045s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23046s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23047s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23048s,@MPICXX@,$MPICXX,;t t
23049s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
23050s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
23051s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
23052s,@F77@,$F77,;t t
23053s,@ac_ct_F77@,$ac_ct_F77,;t t
23054s,@FFLAGS@,$FFLAGS,;t t
23055s,@MPIF77@,$MPIF77,;t t
23056s,@LN_S@,$LN_S,;t t
23057s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23058s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23059s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23060s,@CYGPATH_W@,$CYGPATH_W,;t t
23061s,@PACKAGE@,$PACKAGE,;t t
23062s,@VERSION@,$VERSION,;t t
23063s,@ACLOCAL@,$ACLOCAL,;t t
23064s,@AUTOCONF@,$AUTOCONF,;t t
23065s,@AUTOMAKE@,$AUTOMAKE,;t t
23066s,@AUTOHEADER@,$AUTOHEADER,;t t
23067s,@MAKEINFO@,$MAKEINFO,;t t
23068s,@install_sh@,$install_sh,;t t
23069s,@STRIP@,$STRIP,;t t
23070s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23071s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23072s,@mkdir_p@,$mkdir_p,;t t
23073s,@AWK@,$AWK,;t t
23074s,@SET_MAKE@,$SET_MAKE,;t t
23075s,@am__leading_dot@,$am__leading_dot,;t t
23076s,@AMTAR@,$AMTAR,;t t
23077s,@am__tar@,$am__tar,;t t
23078s,@am__untar@,$am__untar,;t t
23079s,@DEPDIR@,$DEPDIR,;t t
23080s,@am__include@,$am__include,;t t
23081s,@am__quote@,$am__quote,;t t
23082s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23083s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23084s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23085s,@CCDEPMODE@,$CCDEPMODE,;t t
23086s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23087s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23088s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23089s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23090s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23091s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23092s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23093s,@MAINT@,$MAINT,;t t
23094s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23095s,@have_autoconf@,$have_autoconf,;t t
23096s,@have_automake@,$have_automake,;t t
23097s,@have_svn@,$have_svn,;t t
23098s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23099s,@AUX_DIR@,$AUX_DIR,;t t
23100s,@abs_source_dir@,$abs_source_dir,;t t
23101s,@abs_lib_dir@,$abs_lib_dir,;t t
23102s,@abs_include_dir@,$abs_include_dir,;t t
23103s,@abs_bin_dir@,$abs_bin_dir,;t t
23104s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23105s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23106s,@host@,$host,;t t
23107s,@host_cpu@,$host_cpu,;t t
23108s,@host_vendor@,$host_vendor,;t t
23109s,@host_os@,$host_os,;t t
23110s,@ECHO@,$ECHO,;t t
23111s,@AR@,$AR,;t t
23112s,@ac_ct_AR@,$ac_ct_AR,;t t
23113s,@RANLIB@,$RANLIB,;t t
23114s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23115s,@CXXCPP@,$CXXCPP,;t t
23116s,@LIBTOOL@,$LIBTOOL,;t t
23117s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23118s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23119s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23120s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23121s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
23122s,@subdirs@,$subdirs,;t t
23123s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23124s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23125s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
23126s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
23127s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
23128s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
23129s,@LIBEXT@,$LIBEXT,;t t
23130s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23131s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23132s,@LIBOBJS@,$LIBOBJS,;t t
23133s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23134CEOF
23135
23136_ACEOF
23137
23138  cat >>$CONFIG_STATUS <<\_ACEOF
23139  # Split the substitutions into bite-sized pieces for seds with
23140  # small command number limits, like on Digital OSF/1 and HP-UX.
23141  ac_max_sed_lines=48
23142  ac_sed_frag=1 # Number of current file.
23143  ac_beg=1 # First line for current file.
23144  ac_end=$ac_max_sed_lines # Line after last line for current file.
23145  ac_more_lines=:
23146  ac_sed_cmds=
23147  while $ac_more_lines; do
23148    if test $ac_beg -gt 1; then
23149      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23150    else
23151      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23152    fi
23153    if test ! -s $tmp/subs.frag; then
23154      ac_more_lines=false
23155    else
23156      # The purpose of the label and of the branching condition is to
23157      # speed up the sed processing (if there are no `@' at all, there
23158      # is no need to browse any of the substitutions).
23159      # These are the two extra sed commands mentioned above.
23160      (echo ':t
23161  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23162      if test -z "$ac_sed_cmds"; then
23163	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23164      else
23165	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23166      fi
23167      ac_sed_frag=`expr $ac_sed_frag + 1`
23168      ac_beg=$ac_end
23169      ac_end=`expr $ac_end + $ac_max_sed_lines`
23170    fi
23171  done
23172  if test -z "$ac_sed_cmds"; then
23173    ac_sed_cmds=cat
23174  fi
23175fi # test -n "$CONFIG_FILES"
23176
23177_ACEOF
23178cat >>$CONFIG_STATUS <<\_ACEOF
23179for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23180  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23181  case $ac_file in
23182  - | *:- | *:-:* ) # input from stdin
23183	cat >$tmp/stdin
23184	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23185	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23186  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23187	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23188  * )   ac_file_in=$ac_file.in ;;
23189  esac
23190
23191  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23192  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23193$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23194	 X"$ac_file" : 'X\(//\)[^/]' \| \
23195	 X"$ac_file" : 'X\(//\)$' \| \
23196	 X"$ac_file" : 'X\(/\)' \| \
23197	 .     : '\(.\)' 2>/dev/null ||
23198echo X"$ac_file" |
23199    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23200  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23201  	  /^X\(\/\/\)$/{ s//\1/; q; }
23202  	  /^X\(\/\).*/{ s//\1/; q; }
23203  	  s/.*/./; q'`
23204  { if $as_mkdir_p; then
23205    mkdir -p "$ac_dir"
23206  else
23207    as_dir="$ac_dir"
23208    as_dirs=
23209    while test ! -d "$as_dir"; do
23210      as_dirs="$as_dir $as_dirs"
23211      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23213	 X"$as_dir" : 'X\(//\)[^/]' \| \
23214	 X"$as_dir" : 'X\(//\)$' \| \
23215	 X"$as_dir" : 'X\(/\)' \| \
23216	 .     : '\(.\)' 2>/dev/null ||
23217echo X"$as_dir" |
23218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23219  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23220  	  /^X\(\/\/\)$/{ s//\1/; q; }
23221  	  /^X\(\/\).*/{ s//\1/; q; }
23222  	  s/.*/./; q'`
23223    done
23224    test ! -n "$as_dirs" || mkdir $as_dirs
23225  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23226echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23227   { (exit 1); exit 1; }; }; }
23228
23229  ac_builddir=.
23230
23231if test "$ac_dir" != .; then
23232  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23233  # A "../" for each directory in $ac_dir_suffix.
23234  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23235else
23236  ac_dir_suffix= ac_top_builddir=
23237fi
23238
23239case $srcdir in
23240  .)  # No --srcdir option.  We are building in place.
23241    ac_srcdir=.
23242    if test -z "$ac_top_builddir"; then
23243       ac_top_srcdir=.
23244    else
23245       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23246    fi ;;
23247  [\\/]* | ?:[\\/]* )  # Absolute path.
23248    ac_srcdir=$srcdir$ac_dir_suffix;
23249    ac_top_srcdir=$srcdir ;;
23250  *) # Relative path.
23251    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23252    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23253esac
23254
23255# Do not use `cd foo && pwd` to compute absolute paths, because
23256# the directories may not exist.
23257case `pwd` in
23258.) ac_abs_builddir="$ac_dir";;
23259*)
23260  case "$ac_dir" in
23261  .) ac_abs_builddir=`pwd`;;
23262  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23263  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23264  esac;;
23265esac
23266case $ac_abs_builddir in
23267.) ac_abs_top_builddir=${ac_top_builddir}.;;
23268*)
23269  case ${ac_top_builddir}. in
23270  .) ac_abs_top_builddir=$ac_abs_builddir;;
23271  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23272  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23273  esac;;
23274esac
23275case $ac_abs_builddir in
23276.) ac_abs_srcdir=$ac_srcdir;;
23277*)
23278  case $ac_srcdir in
23279  .) ac_abs_srcdir=$ac_abs_builddir;;
23280  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23281  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23282  esac;;
23283esac
23284case $ac_abs_builddir in
23285.) ac_abs_top_srcdir=$ac_top_srcdir;;
23286*)
23287  case $ac_top_srcdir in
23288  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23289  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23290  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23291  esac;;
23292esac
23293
23294
23295  case $INSTALL in
23296  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23297  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23298  esac
23299
23300  if test x"$ac_file" != x-; then
23301    { echo "$as_me:$LINENO: creating $ac_file" >&5
23302echo "$as_me: creating $ac_file" >&6;}
23303    rm -f "$ac_file"
23304  fi
23305  # Let's still pretend it is `configure' which instantiates (i.e., don't
23306  # use $as_me), people would be surprised to read:
23307  #    /* config.h.  Generated by config.status.  */
23308  if test x"$ac_file" = x-; then
23309    configure_input=
23310  else
23311    configure_input="$ac_file.  "
23312  fi
23313  configure_input=$configure_input"Generated from `echo $ac_file_in |
23314				     sed 's,.*/,,'` by configure."
23315
23316  # First look for the input files in the build tree, otherwise in the
23317  # src tree.
23318  ac_file_inputs=`IFS=:
23319    for f in $ac_file_in; do
23320      case $f in
23321      -) echo $tmp/stdin ;;
23322      [\\/$]*)
23323	 # Absolute (can't be DOS-style, as IFS=:)
23324	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23325echo "$as_me: error: cannot find input file: $f" >&2;}
23326   { (exit 1); exit 1; }; }
23327	 echo "$f";;
23328      *) # Relative
23329	 if test -f "$f"; then
23330	   # Build tree
23331	   echo "$f"
23332	 elif test -f "$srcdir/$f"; then
23333	   # Source tree
23334	   echo "$srcdir/$f"
23335	 else
23336	   # /dev/null tree
23337	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23338echo "$as_me: error: cannot find input file: $f" >&2;}
23339   { (exit 1); exit 1; }; }
23340	 fi;;
23341      esac
23342    done` || { (exit 1); exit 1; }
23343_ACEOF
23344cat >>$CONFIG_STATUS <<_ACEOF
23345  sed "$ac_vpsub
23346$extrasub
23347_ACEOF
23348cat >>$CONFIG_STATUS <<\_ACEOF
23349:t
23350/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23351s,@configure_input@,$configure_input,;t t
23352s,@srcdir@,$ac_srcdir,;t t
23353s,@abs_srcdir@,$ac_abs_srcdir,;t t
23354s,@top_srcdir@,$ac_top_srcdir,;t t
23355s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23356s,@builddir@,$ac_builddir,;t t
23357s,@abs_builddir@,$ac_abs_builddir,;t t
23358s,@top_builddir@,$ac_top_builddir,;t t
23359s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23360s,@INSTALL@,$ac_INSTALL,;t t
23361" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23362  rm -f $tmp/stdin
23363  if test x"$ac_file" != x-; then
23364    mv $tmp/out $ac_file
23365  else
23366    cat $tmp/out
23367    rm -f $tmp/out
23368  fi
23369
23370done
23371_ACEOF
23372cat >>$CONFIG_STATUS <<\_ACEOF
23373
23374#
23375# CONFIG_COMMANDS section.
23376#
23377for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23378  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23379  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23380  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23381$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23382	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23383	 X"$ac_dest" : 'X\(//\)$' \| \
23384	 X"$ac_dest" : 'X\(/\)' \| \
23385	 .     : '\(.\)' 2>/dev/null ||
23386echo X"$ac_dest" |
23387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23388  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23389  	  /^X\(\/\/\)$/{ s//\1/; q; }
23390  	  /^X\(\/\).*/{ s//\1/; q; }
23391  	  s/.*/./; q'`
23392  { if $as_mkdir_p; then
23393    mkdir -p "$ac_dir"
23394  else
23395    as_dir="$ac_dir"
23396    as_dirs=
23397    while test ! -d "$as_dir"; do
23398      as_dirs="$as_dir $as_dirs"
23399      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23401	 X"$as_dir" : 'X\(//\)[^/]' \| \
23402	 X"$as_dir" : 'X\(//\)$' \| \
23403	 X"$as_dir" : 'X\(/\)' \| \
23404	 .     : '\(.\)' 2>/dev/null ||
23405echo X"$as_dir" |
23406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23407  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23408  	  /^X\(\/\/\)$/{ s//\1/; q; }
23409  	  /^X\(\/\).*/{ s//\1/; q; }
23410  	  s/.*/./; q'`
23411    done
23412    test ! -n "$as_dirs" || mkdir $as_dirs
23413  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23414echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23415   { (exit 1); exit 1; }; }; }
23416
23417  ac_builddir=.
23418
23419if test "$ac_dir" != .; then
23420  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23421  # A "../" for each directory in $ac_dir_suffix.
23422  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23423else
23424  ac_dir_suffix= ac_top_builddir=
23425fi
23426
23427case $srcdir in
23428  .)  # No --srcdir option.  We are building in place.
23429    ac_srcdir=.
23430    if test -z "$ac_top_builddir"; then
23431       ac_top_srcdir=.
23432    else
23433       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23434    fi ;;
23435  [\\/]* | ?:[\\/]* )  # Absolute path.
23436    ac_srcdir=$srcdir$ac_dir_suffix;
23437    ac_top_srcdir=$srcdir ;;
23438  *) # Relative path.
23439    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23440    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23441esac
23442
23443# Do not use `cd foo && pwd` to compute absolute paths, because
23444# the directories may not exist.
23445case `pwd` in
23446.) ac_abs_builddir="$ac_dir";;
23447*)
23448  case "$ac_dir" in
23449  .) ac_abs_builddir=`pwd`;;
23450  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23451  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23452  esac;;
23453esac
23454case $ac_abs_builddir in
23455.) ac_abs_top_builddir=${ac_top_builddir}.;;
23456*)
23457  case ${ac_top_builddir}. in
23458  .) ac_abs_top_builddir=$ac_abs_builddir;;
23459  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23460  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23461  esac;;
23462esac
23463case $ac_abs_builddir in
23464.) ac_abs_srcdir=$ac_srcdir;;
23465*)
23466  case $ac_srcdir in
23467  .) ac_abs_srcdir=$ac_abs_builddir;;
23468  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23469  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23470  esac;;
23471esac
23472case $ac_abs_builddir in
23473.) ac_abs_top_srcdir=$ac_top_srcdir;;
23474*)
23475  case $ac_top_srcdir in
23476  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23477  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23478  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23479  esac;;
23480esac
23481
23482
23483  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23484echo "$as_me: executing $ac_dest commands" >&6;}
23485  case $ac_dest in
23486    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23487  # Strip MF so we end up with the name of the file.
23488  mf=`echo "$mf" | sed -e 's/:.*$//'`
23489  # Check whether this is an Automake generated Makefile or not.
23490  # We used to match only the files named `Makefile.in', but
23491  # some people rename them; so instead we look at the file content.
23492  # Grep'ing the first line is not enough: some people post-process
23493  # each Makefile.in and add a new line on top of each file to say so.
23494  # So let's grep whole file.
23495  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23496    dirpart=`(dirname "$mf") 2>/dev/null ||
23497$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23498	 X"$mf" : 'X\(//\)[^/]' \| \
23499	 X"$mf" : 'X\(//\)$' \| \
23500	 X"$mf" : 'X\(/\)' \| \
23501	 .     : '\(.\)' 2>/dev/null ||
23502echo X"$mf" |
23503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23504  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23505  	  /^X\(\/\/\)$/{ s//\1/; q; }
23506  	  /^X\(\/\).*/{ s//\1/; q; }
23507  	  s/.*/./; q'`
23508  else
23509    continue
23510  fi
23511  # Extract the definition of DEPDIR, am__include, and am__quote
23512  # from the Makefile without running `make'.
23513  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23514  test -z "$DEPDIR" && continue
23515  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23516  test -z "am__include" && continue
23517  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23518  # When using ansi2knr, U may be empty or an underscore; expand it
23519  U=`sed -n 's/^U = //p' < "$mf"`
23520  # Find all dependency output files, they are included files with
23521  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23522  # simplest approach to changing $(DEPDIR) to its actual value in the
23523  # expansion.
23524  for file in `sed -n "
23525    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23526       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23527    # Make sure the directory exists.
23528    test -f "$dirpart/$file" && continue
23529    fdir=`(dirname "$file") 2>/dev/null ||
23530$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23531	 X"$file" : 'X\(//\)[^/]' \| \
23532	 X"$file" : 'X\(//\)$' \| \
23533	 X"$file" : 'X\(/\)' \| \
23534	 .     : '\(.\)' 2>/dev/null ||
23535echo X"$file" |
23536    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23537  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23538  	  /^X\(\/\/\)$/{ s//\1/; q; }
23539  	  /^X\(\/\).*/{ s//\1/; q; }
23540  	  s/.*/./; q'`
23541    { if $as_mkdir_p; then
23542    mkdir -p $dirpart/$fdir
23543  else
23544    as_dir=$dirpart/$fdir
23545    as_dirs=
23546    while test ! -d "$as_dir"; do
23547      as_dirs="$as_dir $as_dirs"
23548      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23550	 X"$as_dir" : 'X\(//\)[^/]' \| \
23551	 X"$as_dir" : 'X\(//\)$' \| \
23552	 X"$as_dir" : 'X\(/\)' \| \
23553	 .     : '\(.\)' 2>/dev/null ||
23554echo X"$as_dir" |
23555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23556  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23557  	  /^X\(\/\/\)$/{ s//\1/; q; }
23558  	  /^X\(\/\).*/{ s//\1/; q; }
23559  	  s/.*/./; q'`
23560    done
23561    test ! -n "$as_dirs" || mkdir $as_dirs
23562  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23563echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23564   { (exit 1); exit 1; }; }; }
23565
23566    # echo "creating $dirpart/$file"
23567    echo '# dummy' > "$dirpart/$file"
23568  done
23569done
23570 ;;
23571  esac
23572done
23573_ACEOF
23574
23575cat >>$CONFIG_STATUS <<\_ACEOF
23576
23577{ (exit 0); exit 0; }
23578_ACEOF
23579chmod +x $CONFIG_STATUS
23580ac_clean_files=$ac_clean_files_save
23581
23582
23583# configure is writing to config.log, and then calls config.status.
23584# config.status does its own redirection, appending to config.log.
23585# Unfortunately, on DOS this fails, as config.log is still kept open
23586# by configure, so config.status won't be able to write to it; its
23587# output is simply discarded.  So we exec the FD to /dev/null,
23588# effectively closing config.log, so it can be properly (re)opened and
23589# appended to by config.status.  When coming back to configure, we
23590# need to make the FD available again.
23591if test "$no_create" != yes; then
23592  ac_cs_success=:
23593  ac_config_status_args=
23594  test "$silent" = yes &&
23595    ac_config_status_args="$ac_config_status_args --quiet"
23596  exec 5>/dev/null
23597  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23598  exec 5>>config.log
23599  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23600  # would make configure fail if this is the last instruction.
23601  $ac_cs_success || { (exit 1); exit 1; }
23602fi
23603
23604#
23605# CONFIG_SUBDIRS section.
23606#
23607if test "$no_recursion" != yes; then
23608
23609  # Remove --cache-file and --srcdir arguments so they do not pile up.
23610  ac_sub_configure_args=
23611  ac_prev=
23612  for ac_arg in $ac_configure_args; do
23613    if test -n "$ac_prev"; then
23614      ac_prev=
23615      continue
23616    fi
23617    case $ac_arg in
23618    -cache-file | --cache-file | --cache-fil | --cache-fi \
23619    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23620      ac_prev=cache_file ;;
23621    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23622    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23623    | --c=*)
23624      ;;
23625    --config-cache | -C)
23626      ;;
23627    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23628      ac_prev=srcdir ;;
23629    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23630      ;;
23631    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23632      ac_prev=prefix ;;
23633    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23634      ;;
23635    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23636    esac
23637  done
23638
23639  # Always prepend --prefix to ensure using the same prefix
23640  # in subdir configurations.
23641  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23642
23643  ac_popdir=`pwd`
23644  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23645
23646    # Do not complain, so a configure script can configure whichever
23647    # parts of a large source tree are present.
23648    test -d $srcdir/$ac_dir || continue
23649
23650    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23651echo "$as_me: configuring in $ac_dir" >&6;}
23652    { if $as_mkdir_p; then
23653    mkdir -p "$ac_dir"
23654  else
23655    as_dir="$ac_dir"
23656    as_dirs=
23657    while test ! -d "$as_dir"; do
23658      as_dirs="$as_dir $as_dirs"
23659      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23661	 X"$as_dir" : 'X\(//\)[^/]' \| \
23662	 X"$as_dir" : 'X\(//\)$' \| \
23663	 X"$as_dir" : 'X\(/\)' \| \
23664	 .     : '\(.\)' 2>/dev/null ||
23665echo X"$as_dir" |
23666    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23667  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23668  	  /^X\(\/\/\)$/{ s//\1/; q; }
23669  	  /^X\(\/\).*/{ s//\1/; q; }
23670  	  s/.*/./; q'`
23671    done
23672    test ! -n "$as_dirs" || mkdir $as_dirs
23673  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23674echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23675   { (exit 1); exit 1; }; }; }
23676
23677    ac_builddir=.
23678
23679if test "$ac_dir" != .; then
23680  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23681  # A "../" for each directory in $ac_dir_suffix.
23682  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23683else
23684  ac_dir_suffix= ac_top_builddir=
23685fi
23686
23687case $srcdir in
23688  .)  # No --srcdir option.  We are building in place.
23689    ac_srcdir=.
23690    if test -z "$ac_top_builddir"; then
23691       ac_top_srcdir=.
23692    else
23693       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23694    fi ;;
23695  [\\/]* | ?:[\\/]* )  # Absolute path.
23696    ac_srcdir=$srcdir$ac_dir_suffix;
23697    ac_top_srcdir=$srcdir ;;
23698  *) # Relative path.
23699    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23700    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23701esac
23702
23703# Do not use `cd foo && pwd` to compute absolute paths, because
23704# the directories may not exist.
23705case `pwd` in
23706.) ac_abs_builddir="$ac_dir";;
23707*)
23708  case "$ac_dir" in
23709  .) ac_abs_builddir=`pwd`;;
23710  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23711  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23712  esac;;
23713esac
23714case $ac_abs_builddir in
23715.) ac_abs_top_builddir=${ac_top_builddir}.;;
23716*)
23717  case ${ac_top_builddir}. in
23718  .) ac_abs_top_builddir=$ac_abs_builddir;;
23719  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23720  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23721  esac;;
23722esac
23723case $ac_abs_builddir in
23724.) ac_abs_srcdir=$ac_srcdir;;
23725*)
23726  case $ac_srcdir in
23727  .) ac_abs_srcdir=$ac_abs_builddir;;
23728  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23729  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23730  esac;;
23731esac
23732case $ac_abs_builddir in
23733.) ac_abs_top_srcdir=$ac_top_srcdir;;
23734*)
23735  case $ac_top_srcdir in
23736  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23737  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23738  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23739  esac;;
23740esac
23741
23742
23743    cd $ac_dir
23744
23745    # Check for guested configure; otherwise get Cygnus style configure.
23746    if test -f $ac_srcdir/configure.gnu; then
23747      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23748    elif test -f $ac_srcdir/configure; then
23749      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23750    elif test -f $ac_srcdir/configure.in; then
23751      ac_sub_configure=$ac_configure
23752    else
23753      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23754echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23755      ac_sub_configure=
23756    fi
23757
23758    # The recursion is here.
23759    if test -n "$ac_sub_configure"; then
23760      # Make the cache file name correct relative to the subdirectory.
23761      case $cache_file in
23762      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23763      *) # Relative path.
23764	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23765      esac
23766
23767      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23768echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23769      # The eval makes quoting arguments work.
23770      eval $ac_sub_configure $ac_sub_configure_args \
23771	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23772	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23773echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23774   { (exit 1); exit 1; }; }
23775    fi
23776
23777    cd $ac_popdir
23778  done
23779fi
23780
23781
23782  if test x"$coin_vpath_link_files" = x; then : ; else
23783    lnkcmd="$coin_link_input_cmd"
23784    if test "$lnkcmd" = cp; then
23785      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23786echo "$as_me: Copying data files for VPATH configuration" >&6;}
23787    else
23788      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23789echo "$as_me: Creating VPATH links for data files" >&6;}
23790    fi
23791    for file in $coin_vpath_link_files; do
23792      dir=`(dirname "./$file") 2>/dev/null ||
23793$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23794	 X"./$file" : 'X\(//\)[^/]' \| \
23795	 X"./$file" : 'X\(//\)$' \| \
23796	 X"./$file" : 'X\(/\)' \| \
23797	 .     : '\(.\)' 2>/dev/null ||
23798echo X"./$file" |
23799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23800  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23801  	  /^X\(\/\/\)$/{ s//\1/; q; }
23802  	  /^X\(\/\).*/{ s//\1/; q; }
23803  	  s/.*/./; q'`
23804      if test -d $dir; then : ; else
23805        { if $as_mkdir_p; then
23806    mkdir -p $dir
23807  else
23808    as_dir=$dir
23809    as_dirs=
23810    while test ! -d "$as_dir"; do
23811      as_dirs="$as_dir $as_dirs"
23812      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23813$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23814	 X"$as_dir" : 'X\(//\)[^/]' \| \
23815	 X"$as_dir" : 'X\(//\)$' \| \
23816	 X"$as_dir" : 'X\(/\)' \| \
23817	 .     : '\(.\)' 2>/dev/null ||
23818echo X"$as_dir" |
23819    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23820  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23821  	  /^X\(\/\/\)$/{ s//\1/; q; }
23822  	  /^X\(\/\).*/{ s//\1/; q; }
23823  	  s/.*/./; q'`
23824    done
23825    test ! -n "$as_dirs" || mkdir $as_dirs
23826  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23827echo "$as_me: error: cannot create directory $dir" >&2;}
23828   { (exit 1); exit 1; }; }; }
23829
23830      fi
23831      rm -f $file
23832      $lnkcmd $abs_source_dir/$file $file
23833    done
23834  fi
23835
23836  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23837echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23838  if test x$coin_projectdir = xyes; then
23839    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23840echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23841  else
23842    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23843echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23844  fi
23845else
23846  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23847echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23848fi
23849
23850
23851