1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartySoplex 1.6.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2010,2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76	 X"$0" : 'X\(//\)$' \| \
77	 X"$0" : 'X\(/\)$' \| \
78	 .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
82  	  /^X\/\(\/\).*/{ s//\1/; q; }
83  	  s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144	 case $as_dir in
145	 /*)
146	   if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154	     CONFIG_SHELL=$as_dir/$as_base
155	     export CONFIG_SHELL
156	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157	   fi;;
158	 esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='	' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" 	$as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartySoplex'
431PACKAGE_TARNAME='thirdpartysoplex'
432PACKAGE_VERSION='1.6.1'
433PACKAGE_STRING='ThirdPartySoplex 1.6.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="soplex/src/soplex.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SOPLEX_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834	      localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874	 X"$0" : 'X\(//\)[^/]' \| \
875	 X"$0" : 'X\(//\)$' \| \
876	 X"$0" : 'X\(/\)' \| \
877	 .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881  	  /^X\(\/\/\)$/{ s//\1/; q; }
882  	  /^X\(\/\).*/{ s//\1/; q; }
883  	  s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
981ac_env_PKG_CONFIG_value=$PKG_CONFIG
982ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
983ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartySoplex 1.6.1 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033			  [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035			  [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartySoplex 1.6.1:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-soplex compile project SoPlex with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --enable-static[=PKGS]
1088                          build static libraries [default=no]
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-maintainer-mode  enable make rules and dependencies not useful
1092			  (and sometimes confusing) to the casual installer
1093  --enable-shared[=PKGS]
1094                          build shared libraries [default=yes]
1095  --enable-fast-install[=PKGS]
1096                          optimize for fast installation [default=yes]
1097  --disable-libtool-lock  avoid locking (might break parallel builds)
1098  --disable-dependency-linking
1099                          disable linking library dependencies into shared
1100                          libraries
1101  --disable-zlib          do not compile with compression library zlib
1102  --disable-gmp           do not compile with GNU multiple precision library
1103
1104Optional Packages:
1105  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107  --with-soplex-verbosity specify the debug verbosity level for project SoPlex
1108  --with-soplex-checklevel
1109                          specify the sanity check level for project SoPlex
1110  --with-coin-instdir     prefix of installation directory for precompiled
1111                          COIN packages
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117
1118Some influential environment variables:
1119  CDEFS       Additional -D flags to be used when compiling C code.
1120  ADD_CFLAGS  Additional C compiler options
1121  DBG_CFLAGS  Debug C compiler options
1122  OPT_CFLAGS  Optimize C compiler options
1123  CC          C compiler command
1124  CFLAGS      C compiler flags
1125  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1126              nonstandard directory <lib dir>
1127  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1128              headers in a nonstandard directory <include dir>
1129  MPICC       C MPI Compiler
1130  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1131  ADD_CXXFLAGS
1132              Additional C++ compiler options
1133  DBG_CXXFLAGS
1134              Debug C++ compiler options
1135  OPT_CXXFLAGS
1136              Optimize C++ compiler options
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  MPICXX      C++ MPI Compiler
1140  PKG_CONFIG  path to pkg-config utility
1141  CPP         C preprocessor
1142  CXXCPP      C++ preprocessor
1143  F77         Fortran 77 compiler command
1144  FFLAGS      Fortran 77 compiler flags
1145
1146Use these variables to override the choices made by `configure' or to help
1147it to find libraries and programs with nonstandard names/locations.
1148
1149Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1150_ACEOF
1151fi
1152
1153if test "$ac_init_help" = "recursive"; then
1154  # If there are subdirs, report their specific --help.
1155  ac_popdir=`pwd`
1156  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1157    test -d $ac_dir || continue
1158    ac_builddir=.
1159
1160if test "$ac_dir" != .; then
1161  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1162  # A "../" for each directory in $ac_dir_suffix.
1163  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1164else
1165  ac_dir_suffix= ac_top_builddir=
1166fi
1167
1168case $srcdir in
1169  .)  # No --srcdir option.  We are building in place.
1170    ac_srcdir=.
1171    if test -z "$ac_top_builddir"; then
1172       ac_top_srcdir=.
1173    else
1174       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1175    fi ;;
1176  [\\/]* | ?:[\\/]* )  # Absolute path.
1177    ac_srcdir=$srcdir$ac_dir_suffix;
1178    ac_top_srcdir=$srcdir ;;
1179  *) # Relative path.
1180    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1181    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182esac
1183
1184# Do not use `cd foo && pwd` to compute absolute paths, because
1185# the directories may not exist.
1186case `pwd` in
1187.) ac_abs_builddir="$ac_dir";;
1188*)
1189  case "$ac_dir" in
1190  .) ac_abs_builddir=`pwd`;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1192  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193  esac;;
1194esac
1195case $ac_abs_builddir in
1196.) ac_abs_top_builddir=${ac_top_builddir}.;;
1197*)
1198  case ${ac_top_builddir}. in
1199  .) ac_abs_top_builddir=$ac_abs_builddir;;
1200  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1201  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202  esac;;
1203esac
1204case $ac_abs_builddir in
1205.) ac_abs_srcdir=$ac_srcdir;;
1206*)
1207  case $ac_srcdir in
1208  .) ac_abs_srcdir=$ac_abs_builddir;;
1209  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1210  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211  esac;;
1212esac
1213case $ac_abs_builddir in
1214.) ac_abs_top_srcdir=$ac_top_srcdir;;
1215*)
1216  case $ac_top_srcdir in
1217  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1218  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1219  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220  esac;;
1221esac
1222
1223    cd $ac_dir
1224    # Check for guested configure; otherwise get Cygnus style configure.
1225    if test -f $ac_srcdir/configure.gnu; then
1226      echo
1227      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1228    elif test -f $ac_srcdir/configure; then
1229      echo
1230      $SHELL $ac_srcdir/configure  --help=recursive
1231    elif test -f $ac_srcdir/configure.ac ||
1232	   test -f $ac_srcdir/configure.in; then
1233      echo
1234      $ac_configure --help
1235    else
1236      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1237    fi
1238    cd $ac_popdir
1239  done
1240fi
1241
1242test -n "$ac_init_help" && exit 0
1243if $ac_init_version; then
1244  cat <<\_ACEOF
1245ThirdPartySoplex configure 1.6.1
1246generated by GNU Autoconf 2.59
1247
1248Copyright (C) 2003 Free Software Foundation, Inc.
1249This configure script is free software; the Free Software Foundation
1250gives unlimited permission to copy, distribute and modify it.
1251
1252
1253Copyright 2010,2011 Stefan Vigerske and others.
1254All Rights Reserved.
1255This file is part of the open source package COIN-OR which is distributed
1256under the Eclipse Public License.
1257_ACEOF
1258  exit 0
1259fi
1260exec 5>config.log
1261cat >&5 <<_ACEOF
1262This file contains any messages produced by compilers while
1263running configure, to aid debugging if configure makes a mistake.
1264
1265It was created by ThirdPartySoplex $as_me 1.6.1, which was
1266generated by GNU Autoconf 2.59.  Invocation command line was
1267
1268  $ $0 $@
1269
1270_ACEOF
1271{
1272cat <<_ASUNAME
1273## --------- ##
1274## Platform. ##
1275## --------- ##
1276
1277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1278uname -m = `(uname -m) 2>/dev/null || echo unknown`
1279uname -r = `(uname -r) 2>/dev/null || echo unknown`
1280uname -s = `(uname -s) 2>/dev/null || echo unknown`
1281uname -v = `(uname -v) 2>/dev/null || echo unknown`
1282
1283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1284/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1285
1286/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1287/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1289hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1290/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1291/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1292/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1293
1294_ASUNAME
1295
1296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297for as_dir in $PATH
1298do
1299  IFS=$as_save_IFS
1300  test -z "$as_dir" && as_dir=.
1301  echo "PATH: $as_dir"
1302done
1303
1304} >&5
1305
1306cat >&5 <<_ACEOF
1307
1308
1309## ----------- ##
1310## Core tests. ##
1311## ----------- ##
1312
1313_ACEOF
1314
1315
1316# Keep a trace of the command line.
1317# Strip out --no-create and --no-recursion so they do not pile up.
1318# Strip out --silent because we don't want to record it for future runs.
1319# Also quote any args containing shell meta-characters.
1320# Make two passes to allow for proper duplicate-argument suppression.
1321ac_configure_args=
1322ac_configure_args0=
1323ac_configure_args1=
1324ac_sep=
1325ac_must_keep_next=false
1326for ac_pass in 1 2
1327do
1328  for ac_arg
1329  do
1330    case $ac_arg in
1331    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1332    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1333    | -silent | --silent | --silen | --sile | --sil)
1334      continue ;;
1335    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1337    esac
1338    case $ac_pass in
1339    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1340    2)
1341      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1342      if test $ac_must_keep_next = true; then
1343	ac_must_keep_next=false # Got value, back to normal.
1344      else
1345	case $ac_arg in
1346	  *=* | --config-cache | -C | -disable-* | --disable-* \
1347	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1348	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1349	  | -with-* | --with-* | -without-* | --without-* | --x)
1350	    case "$ac_configure_args0 " in
1351	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1352	    esac
1353	    ;;
1354	  -* ) ac_must_keep_next=true ;;
1355	esac
1356      fi
1357      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1358      # Get rid of the leading space.
1359      ac_sep=" "
1360      ;;
1361    esac
1362  done
1363done
1364$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1365$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1366
1367# When interrupted or exit'd, cleanup temporary files, and complete
1368# config.log.  We remove comments because anyway the quotes in there
1369# would cause problems or look ugly.
1370# WARNING: Be sure not to use single quotes in there, as some shells,
1371# such as our DU 5.0 friend, will then `close' the trap.
1372trap 'exit_status=$?
1373  # Save into config.log some information that might help in debugging.
1374  {
1375    echo
1376
1377    cat <<\_ASBOX
1378## ---------------- ##
1379## Cache variables. ##
1380## ---------------- ##
1381_ASBOX
1382    echo
1383    # The following way of writing the cache mishandles newlines in values,
1384{
1385  (set) 2>&1 |
1386    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1387    *ac_space=\ *)
1388      sed -n \
1389	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1390	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1391      ;;
1392    *)
1393      sed -n \
1394	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1395      ;;
1396    esac;
1397}
1398    echo
1399
1400    cat <<\_ASBOX
1401## ----------------- ##
1402## Output variables. ##
1403## ----------------- ##
1404_ASBOX
1405    echo
1406    for ac_var in $ac_subst_vars
1407    do
1408      eval ac_val=$`echo $ac_var`
1409      echo "$ac_var='"'"'$ac_val'"'"'"
1410    done | sort
1411    echo
1412
1413    if test -n "$ac_subst_files"; then
1414      cat <<\_ASBOX
1415## ------------- ##
1416## Output files. ##
1417## ------------- ##
1418_ASBOX
1419      echo
1420      for ac_var in $ac_subst_files
1421      do
1422	eval ac_val=$`echo $ac_var`
1423	echo "$ac_var='"'"'$ac_val'"'"'"
1424      done | sort
1425      echo
1426    fi
1427
1428    if test -s confdefs.h; then
1429      cat <<\_ASBOX
1430## ----------- ##
1431## confdefs.h. ##
1432## ----------- ##
1433_ASBOX
1434      echo
1435      sed "/^$/d" confdefs.h | sort
1436      echo
1437    fi
1438    test "$ac_signal" != 0 &&
1439      echo "$as_me: caught signal $ac_signal"
1440    echo "$as_me: exit $exit_status"
1441  } >&5
1442  rm -f core *.core &&
1443  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1444    exit $exit_status
1445     ' 0
1446for ac_signal in 1 2 13 15; do
1447  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1448done
1449ac_signal=0
1450
1451# confdefs.h avoids OS command line length limits that DEFS can exceed.
1452rm -rf conftest* confdefs.h
1453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1454echo >confdefs.h
1455
1456# Predefined preprocessor variables.
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_NAME "$PACKAGE_NAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_VERSION "$PACKAGE_VERSION"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_STRING "$PACKAGE_STRING"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1480_ACEOF
1481
1482
1483# Let the site file select an alternate cache file if it wants to.
1484# Prefer explicitly selected file to automatically selected ones.
1485if test -z "$CONFIG_SITE"; then
1486  if test "x$prefix" != xNONE; then
1487    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1488  else
1489    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1490  fi
1491fi
1492for ac_site_file in $CONFIG_SITE; do
1493  if test -r "$ac_site_file"; then
1494    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1495echo "$as_me: loading site script $ac_site_file" >&6;}
1496    sed 's/^/| /' "$ac_site_file" >&5
1497    . "$ac_site_file"
1498  fi
1499done
1500
1501if test -r "$cache_file"; then
1502  # Some versions of bash will fail to source /dev/null (special
1503  # files actually), so we avoid doing that.
1504  if test -f "$cache_file"; then
1505    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1506echo "$as_me: loading cache $cache_file" >&6;}
1507    case $cache_file in
1508      [\\/]* | ?:[\\/]* ) . $cache_file;;
1509      *)                      . ./$cache_file;;
1510    esac
1511  fi
1512else
1513  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1514echo "$as_me: creating cache $cache_file" >&6;}
1515  >$cache_file
1516fi
1517
1518# Check that the precious variables saved in the cache have kept the same
1519# value.
1520ac_cache_corrupted=false
1521for ac_var in `(set) 2>&1 |
1522	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1523  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1524  eval ac_new_set=\$ac_env_${ac_var}_set
1525  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1526  eval ac_new_val="\$ac_env_${ac_var}_value"
1527  case $ac_old_set,$ac_new_set in
1528    set,)
1529      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1530echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1531      ac_cache_corrupted=: ;;
1532    ,set)
1533      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1534echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1535      ac_cache_corrupted=: ;;
1536    ,);;
1537    *)
1538      if test "x$ac_old_val" != "x$ac_new_val"; then
1539	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1540echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1541	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1542echo "$as_me:   former value:  $ac_old_val" >&2;}
1543	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1544echo "$as_me:   current value: $ac_new_val" >&2;}
1545	ac_cache_corrupted=:
1546      fi;;
1547  esac
1548  # Pass precious variables to config.status.
1549  if test "$ac_new_set" = set; then
1550    case $ac_new_val in
1551    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1552      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1553    *) ac_arg=$ac_var=$ac_new_val ;;
1554    esac
1555    case " $ac_configure_args " in
1556      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1557      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558    esac
1559  fi
1560done
1561if $ac_cache_corrupted; then
1562  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1563echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1564  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1565echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1566   { (exit 1); exit 1; }; }
1567fi
1568
1569ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604# List one file in the package so that the configure script can test
1605# whether the package is actually there
1606
1607
1608# Where should everything be installed by default?  Here, we want it
1609# to be installed directly in 'bin', 'lib', 'include' subdirectories
1610# of the directory where configure is run.  The default would be
1611# /usr/local.
1612
1613
1614
1615# As backup, we make sure we don't loose an FLIBS if it has been set
1616# by the user
1617save_FLIBS="$FLIBS"
1618
1619# A useful makefile conditional that is always false
1620
1621
1622if false; then
1623  ALWAYS_FALSE_TRUE=
1624  ALWAYS_FALSE_FALSE='#'
1625else
1626  ALWAYS_FALSE_TRUE='#'
1627  ALWAYS_FALSE_FALSE=
1628fi
1629
1630
1631# We set the following variable so that we know later in AC_COIN_FINALIZE
1632# that we are in a project main directory
1633coin_projectdir=yes
1634
1635# Set the project's version numbers
1636
1637
1638cat >>confdefs.h <<_ACEOF
1639#define SOPLEX_VERSION "$PACKAGE_VERSION"
1640_ACEOF
1641
1642
1643  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1644  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1645  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1646  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1647  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1648  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1649
1650cat >>confdefs.h <<_ACEOF
1651#define SOPLEX_VERSION_MAJOR $coin_majorver
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define SOPLEX_VERSION_MINOR $coin_minorver
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define SOPLEX_VERSION_RELEASE $coin_releasever
1662_ACEOF
1663
1664
1665  # We use the following variable to have a string with the upper case
1666  # version of the project name
1667  COIN_PRJCT=SOPLEX
1668
1669  # Set the project's SVN revision number. The complicated sed expression
1670  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1671  # as a single number.
1672  # Extract the first word of "svnversion", so it can be a program name with args.
1673set dummy svnversion; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_have_svnversion+set}" = set; then
1677  echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679  if test -n "$have_svnversion"; then
1680  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685  IFS=$as_save_IFS
1686  test -z "$as_dir" && as_dir=.
1687  for ac_exec_ext in '' $ac_executable_extensions; do
1688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689    ac_cv_prog_have_svnversion="yes"
1690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691    break 2
1692  fi
1693done
1694done
1695
1696  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1697fi
1698fi
1699have_svnversion=$ac_cv_prog_have_svnversion
1700if test -n "$have_svnversion"; then
1701  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1702echo "${ECHO_T}$have_svnversion" >&6
1703else
1704  echo "$as_me:$LINENO: result: no" >&5
1705echo "${ECHO_T}no" >&6
1706fi
1707
1708  if test "x$have_svnversion" = xyes; then
1709
1710    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1711    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1712      SOPLEX_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1713
1714cat >>confdefs.h <<_ACEOF
1715#define SOPLEX_SVN_REV $SOPLEX_SVN_REV
1716_ACEOF
1717
1718    fi
1719  fi
1720
1721
1722
1723# Capture libtool library version, if given.
1724 coin_libversion=7:1:6
1725
1726
1727
1728
1729#############################################################################
1730#                         Standard build tool stuff                         #
1731#############################################################################
1732
1733# Get the system type
1734ac_aux_dir=
1735for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1736  if test -f $ac_dir/install-sh; then
1737    ac_aux_dir=$ac_dir
1738    ac_install_sh="$ac_aux_dir/install-sh -c"
1739    break
1740  elif test -f $ac_dir/install.sh; then
1741    ac_aux_dir=$ac_dir
1742    ac_install_sh="$ac_aux_dir/install.sh -c"
1743    break
1744  elif test -f $ac_dir/shtool; then
1745    ac_aux_dir=$ac_dir
1746    ac_install_sh="$ac_aux_dir/shtool install -c"
1747    break
1748  fi
1749done
1750if test -z "$ac_aux_dir"; then
1751  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1752echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1753   { (exit 1); exit 1; }; }
1754fi
1755ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1756ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1757ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1758
1759# Make sure we can run config.sub.
1760$ac_config_sub sun4 >/dev/null 2>&1 ||
1761  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763   { (exit 1); exit 1; }; }
1764
1765echo "$as_me:$LINENO: checking build system type" >&5
1766echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767if test "${ac_cv_build+set}" = set; then
1768  echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770  ac_cv_build_alias=$build_alias
1771test -z "$ac_cv_build_alias" &&
1772  ac_cv_build_alias=`$ac_config_guess`
1773test -z "$ac_cv_build_alias" &&
1774  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776   { (exit 1); exit 1; }; }
1777ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780   { (exit 1); exit 1; }; }
1781
1782fi
1783echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784echo "${ECHO_T}$ac_cv_build" >&6
1785build=$ac_cv_build
1786build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791
1792# Check if user wants to produce debugging code
1793
1794echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1795echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1796
1797# Check whether --enable-debug or --disable-debug was given.
1798if test "${enable_debug+set}" = set; then
1799  enableval="$enable_debug"
1800  case "${enableval}" in
1801   yes) coin_debug_compile=true
1802        if test "${enable_shared+set}" = set; then :; else
1803          enable_shared=no
1804        fi
1805        ;;
1806   no)  coin_debug_compile=false
1807        ;;
1808   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1809echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1810   { (exit 1); exit 1; }; }
1811        ;;
1812esac
1813else
1814  coin_debug_compile=false
1815fi;
1816
1817# Check whether --enable-debug-soplex or --disable-debug-soplex was given.
1818if test "${enable_debug_soplex+set}" = set; then
1819  enableval="$enable_debug_soplex"
1820  case "${enableval}" in
1821    yes) coin_debug_compile=true
1822         ;;
1823    no)  coin_debug_compile=false
1824         ;;
1825    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-soplex" >&5
1826echo "$as_me: error: bad value ${enableval} for --enable-debug-soplex" >&2;}
1827   { (exit 1); exit 1; }; }
1828         ;;
1829 esac
1830else
1831  :
1832fi;
1833
1834 # m4_ifvaln([SoPlex],
1835
1836if test $coin_debug_compile = true; then
1837  echo "$as_me:$LINENO: result: yes" >&5
1838echo "${ECHO_T}yes" >&6
1839else
1840  echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842fi
1843
1844
1845# Check whether --with-soplex-verbosity or --without-soplex-verbosity was given.
1846if test "${with_soplex_verbosity+set}" = set; then
1847  withval="$with_soplex_verbosity"
1848  if test "$withval" = yes; then
1849                withval=1
1850              fi
1851              coin_soplex_verbosity=$withval
1852else
1853  coin_soplex_verbosity=0
1854fi;
1855
1856cat >>confdefs.h <<_ACEOF
1857#define COIN_SOPLEX_VERBOSITY $coin_soplex_verbosity
1858_ACEOF
1859
1860
1861
1862# Check whether --with-soplex-checklevel or --without-soplex-checklevel was given.
1863if test "${with_soplex_checklevel+set}" = set; then
1864  withval="$with_soplex_checklevel"
1865  if test "$withval" = yes; then
1866                withval=1
1867              fi
1868              coin_soplex_checklevel=$withval
1869else
1870  coin_soplex_checklevel=0
1871fi;
1872
1873cat >>confdefs.h <<_ACEOF
1874#define COIN_SOPLEX_CHECKLEVEL $coin_soplex_checklevel
1875_ACEOF
1876
1877
1878 # m4_ifvaln([SoPlex],
1879
1880
1881
1882# Get the name of the C compiler and appropriate compiler options
1883
1884
1885  # for backward compatibility
1886  # Check whether --enable-doscompile or --disable-doscompile was given.
1887if test "${enable_doscompile+set}" = set; then
1888  enableval="$enable_doscompile"
1889  enable_doscompile=$enableval
1890else
1891  enable_doscompile=no
1892fi;
1893
1894  # Check whether --enable-msvc or --disable-msvc was given.
1895if test "${enable_msvc+set}" = set; then
1896  enableval="$enable_msvc"
1897  enable_msvc=$enableval
1898else
1899  enable_msvc=no
1900     if test "$enable_doscompile" = msvc ; then
1901       enable_msvc=yes
1902     elif test "$enable_doscompile" != no ; then
1903       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1904echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1905   { (exit 1); exit 1; }; }
1906     fi
1907
1908fi;
1909
1910  if test "$enable_msvc" = MD; then
1911    enable_shared=yes
1912    enable_msvc=yes
1913  fi
1914
1915  if test "$enable_msvc" = yes; then
1916    case $build in
1917      *-cygwin* | *-mingw*) ;;
1918      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1919echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1920   { (exit 1); exit 1; }; } ;;
1921    esac
1922  fi
1923
1924
1925
1926ac_ext=c
1927ac_cpp='$CPP $CPPFLAGS'
1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933# For consistency, we set the C compiler to the same value of the C++
1934# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1935if test x"$CXX" != x; then
1936  case "$CXX" in
1937    clang* ) ;;
1938    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1939      if test x"$CC" = x; then
1940        CC="$CXX"
1941        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1942echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1943      fi
1944      ;;
1945  esac
1946fi
1947
1948
1949
1950
1951
1952
1953coin_has_cc=yes
1954
1955save_cflags="$CFLAGS"
1956
1957# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1958# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1959# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1960# compiler. In this case, put cc after gcc.
1961
1962case $build in
1963  *-cygwin* | *-mingw*)
1964  	     if test "$enable_msvc" = yes ; then
1965	       comps="icl cl gcc"
1966	     else
1967	       comps="gcc icl cl"
1968	     fi ;;
1969  *-*-solaris*)
1970	     # Extract the first word of "cc", so it can be a program name with args.
1971set dummy cc; ac_word=$2
1972echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1975  echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977  if test -n "$sol_cc_compiler"; then
1978  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1979else
1980  ac_prog_rejected=no
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989       ac_prog_rejected=yes
1990       continue
1991     fi
1992    ac_cv_prog_sol_cc_compiler="cc"
1993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994    break 2
1995  fi
1996done
1997done
1998
1999if test $ac_prog_rejected = yes; then
2000  # We found a bogon in the path, so make sure we never use it.
2001  set dummy $ac_cv_prog_sol_cc_compiler
2002  shift
2003  if test $# != 0; then
2004    # We chose a different compiler from the bogus one.
2005    # However, it has the same basename, so the bogon will be chosen
2006    # first if we set sol_cc_compiler to just the basename; use the full file name.
2007    shift
2008    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2009  fi
2010fi
2011fi
2012fi
2013sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2014if test -n "$sol_cc_compiler"; then
2015  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2016echo "${ECHO_T}$sol_cc_compiler" >&6
2017else
2018  echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6
2020fi
2021
2022	     if test "$sol_cc_compiler" = "cc" ; then
2023	       comps="cc xlc gcc pgcc icc"
2024	     else
2025	       comps="xlc gcc pgcc icc cc"
2026	     fi
2027	     ;;
2028  *-*-darwin*) comps="clang gcc cc" ;;
2029  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2030  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2031  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2032esac
2033
2034# We delete the cached value, since the test might not have been
2035# performed with our choice of compilers earlier
2036$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2037# AC_MSG_NOTICE([C compiler candidates: $comps])
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043if test -n "$ac_tool_prefix"; then
2044  for ac_prog in $comps
2045  do
2046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081    test -n "$CC" && break
2082  done
2083fi
2084if test -z "$CC"; then
2085  ac_ct_CC=$CC
2086  for ac_prog in $comps
2087do
2088  # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$ac_ct_CC"; then
2096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    ac_cv_prog_ac_ct_CC="$ac_prog"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112fi
2113fi
2114ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115if test -n "$ac_ct_CC"; then
2116  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117echo "${ECHO_T}$ac_ct_CC" >&6
2118else
2119  echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123  test -n "$ac_ct_CC" && break
2124done
2125
2126  CC=$ac_ct_CC
2127fi
2128
2129
2130test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131See \`config.log' for more details." >&5
2132echo "$as_me: error: no acceptable C compiler found in \$PATH
2133See \`config.log' for more details." >&2;}
2134   { (exit 1); exit 1; }; }
2135
2136# Provide some information about the compiler.
2137echo "$as_me:$LINENO:" \
2138     "checking for C compiler version" >&5
2139ac_compiler=`set X $ac_compile; echo $2`
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141  (eval $ac_compiler --version </dev/null >&5) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }
2145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146  (eval $ac_compiler -v </dev/null >&5) 2>&5
2147  ac_status=$?
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); }
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151  (eval $ac_compiler -V </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155
2156cat >conftest.$ac_ext <<_ACEOF
2157/* confdefs.h.  */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h.  */
2162
2163int
2164main ()
2165{
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171ac_clean_files_save=$ac_clean_files
2172ac_clean_files="$ac_clean_files a.out a.exe b.out"
2173# Try to create an executable without -o first, disregard a.out.
2174# It will help us diagnose broken compilers, and finding out an intuition
2175# of exeext.
2176echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180  (eval $ac_link_default) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; then
2184  # Find the output, starting from the most likely.  This scheme is
2185# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186# resort.
2187
2188# Be careful to initialize this variable, since it used to be cached.
2189# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190ac_cv_exeext=
2191# b.out is created by i960 compilers.
2192for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193do
2194  test -f "$ac_file" || continue
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197	;;
2198    conftest.$ac_ext )
2199	# This is the source file.
2200	;;
2201    [ab].out )
2202	# We found the default executable, but exeext='' is most
2203	# certainly right.
2204	break;;
2205    *.* )
2206	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207	# FIXME: I believe we export ac_cv_exeext for Libtool,
2208	# but it would be cool to find out if it's true.  Does anybody
2209	# maintain Libtool? --akim.
2210	export ac_cv_exeext
2211	break;;
2212    * )
2213	break;;
2214  esac
2215done
2216else
2217  echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221See \`config.log' for more details." >&5
2222echo "$as_me: error: C compiler cannot create executables
2223See \`config.log' for more details." >&2;}
2224   { (exit 77); exit 77; }; }
2225fi
2226
2227ac_exeext=$ac_cv_exeext
2228echo "$as_me:$LINENO: result: $ac_file" >&5
2229echo "${ECHO_T}$ac_file" >&6
2230
2231# Check the compiler produces executables we can run.  If not, either
2232# the compiler is broken, or we cross compile.
2233echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236# If not cross compiling, check that we can run a simple program.
2237if test "$cross_compiling" != yes; then
2238  if { ac_try='./$ac_file'
2239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240  (eval $ac_try) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }; }; then
2244    cross_compiling=no
2245  else
2246    if test "$cross_compiling" = maybe; then
2247	cross_compiling=yes
2248    else
2249	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&2;}
2255   { (exit 1); exit 1; }; }
2256    fi
2257  fi
2258fi
2259echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6
2261
2262rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263ac_clean_files=$ac_clean_files_save
2264# Check the compiler produces executables we can run.  If not, either
2265# the compiler is broken, or we cross compile.
2266echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269echo "${ECHO_T}$cross_compiling" >&6
2270
2271echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274  (eval $ac_link) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; then
2278  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280# work properly (i.e., refer to `conftest.exe'), while it won't with
2281# `rm'.
2282for ac_file in conftest.exe conftest conftest.*; do
2283  test -f "$ac_file" || continue
2284  case $ac_file in
2285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2286    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287	  export ac_cv_exeext
2288	  break;;
2289    * ) break;;
2290  esac
2291done
2292else
2293  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297   { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309if test "${ac_cv_objext+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h.  */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h.  */
2318
2319int
2320main ()
2321{
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; then
2333  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2336    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337       break;;
2338  esac
2339done
2340else
2341  echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&2;}
2348   { (exit 1); exit 1; }; }
2349fi
2350
2351rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354echo "${ECHO_T}$ac_cv_objext" >&6
2355OBJEXT=$ac_cv_objext
2356ac_objext=$OBJEXT
2357echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360  echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362  cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h.  */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h.  */
2368
2369int
2370main ()
2371{
2372#ifndef __GNUC__
2373       choke me
2374#endif
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>conftest.er1
2383  ac_status=$?
2384  grep -v '^ *+' conftest.er1 >conftest.err
2385  rm -f conftest.er1
2386  cat conftest.err >&5
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); } &&
2389	 { ac_try='test -z "$ac_c_werror_flag"
2390			 || test ! -s conftest.err'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396	 { ac_try='test -s conftest.$ac_objext'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; }; then
2402  ac_compiler_gnu=yes
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407ac_compiler_gnu=no
2408fi
2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411
2412fi
2413echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415GCC=`test $ac_compiler_gnu = yes && echo yes`
2416ac_test_CFLAGS=${CFLAGS+set}
2417ac_save_CFLAGS=$CFLAGS
2418CFLAGS="-g"
2419echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421if test "${ac_cv_prog_cc_g+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
2431int
2432main ()
2433{
2434
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441  (eval $ac_compile) 2>conftest.er1
2442  ac_status=$?
2443  grep -v '^ *+' conftest.er1 >conftest.err
2444  rm -f conftest.er1
2445  cat conftest.err >&5
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); } &&
2448	 { ac_try='test -z "$ac_c_werror_flag"
2449			 || test ! -s conftest.err'
2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451  (eval $ac_try) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); }; } &&
2455	 { ac_try='test -s conftest.$ac_objext'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_cv_prog_cc_g=yes
2462else
2463  echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466ac_cv_prog_cc_g=no
2467fi
2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469fi
2470echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472if test "$ac_test_CFLAGS" = set; then
2473  CFLAGS=$ac_save_CFLAGS
2474elif test $ac_cv_prog_cc_g = yes; then
2475  if test "$GCC" = yes; then
2476    CFLAGS="-g -O2"
2477  else
2478    CFLAGS="-g"
2479  fi
2480else
2481  if test "$GCC" = yes; then
2482    CFLAGS="-O2"
2483  else
2484    CFLAGS=
2485  fi
2486fi
2487echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  ac_cv_prog_cc_stdc=no
2493ac_save_CC=$CC
2494cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h.  */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h.  */
2500#include <stdarg.h>
2501#include <stdio.h>
2502#include <sys/types.h>
2503#include <sys/stat.h>
2504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2505struct buf { int x; };
2506FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507static char *e (p, i)
2508     char **p;
2509     int i;
2510{
2511  return p[i];
2512}
2513static char *f (char * (*g) (char **, int), char **p, ...)
2514{
2515  char *s;
2516  va_list v;
2517  va_start (v,p);
2518  s = g (p, va_arg (v,int));
2519  va_end (v);
2520  return s;
2521}
2522
2523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2524   function prototypes and stuff, but not '\xHH' hex character constants.
2525   These don't provoke an error unfortunately, instead are silently treated
2526   as 'x'.  The following induces an error, until -std1 is added to get
2527   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2528   array size at least.  It's necessary to write '\x00'==0 to get something
2529   that's true only with -std1.  */
2530int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531
2532int test (int i, double x);
2533struct s1 {int (*f) (int a);};
2534struct s2 {int (*f) (double a);};
2535int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536int argc;
2537char **argv;
2538int
2539main ()
2540{
2541return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546# Don't try gcc -ansi; that turns off useful extensions and
2547# breaks some systems' header files.
2548# AIX			-qlanglvl=ansi
2549# Ultrix and OSF/1	-std1
2550# HP-UX 10.20 and later	-Ae
2551# HP-UX older versions	-Aa -D_HPUX_SOURCE
2552# SVR4			-Xc -D__EXTENSIONS__
2553for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554do
2555  CC="$ac_save_CC $ac_arg"
2556  rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565	 { ac_try='test -z "$ac_c_werror_flag"
2566			 || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572	 { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  ac_cv_prog_cc_stdc=$ac_arg
2579break
2580else
2581  echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584fi
2585rm -f conftest.err conftest.$ac_objext
2586done
2587rm -f conftest.$ac_ext conftest.$ac_objext
2588CC=$ac_save_CC
2589
2590fi
2591
2592case "x$ac_cv_prog_cc_stdc" in
2593  x|xno)
2594    echo "$as_me:$LINENO: result: none needed" >&5
2595echo "${ECHO_T}none needed" >&6 ;;
2596  *)
2597    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599    CC="$CC $ac_cv_prog_cc_stdc" ;;
2600esac
2601
2602# Some people use a C++ compiler to compile C.  Since we use `exit',
2603# in C++ we need to declare it.  In case someone uses the same compiler
2604# for both compiling C and C++ we need to have the C++ compiler decide
2605# the declaration of exit, since it's the most demanding environment.
2606cat >conftest.$ac_ext <<_ACEOF
2607#ifndef __cplusplus
2608  choke me
2609#endif
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620	 { ac_try='test -z "$ac_c_werror_flag"
2621			 || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627	 { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  for ac_declaration in \
2634   '' \
2635   'extern "C" void std::exit (int) throw (); using std::exit;' \
2636   'extern "C" void std::exit (int); using std::exit;' \
2637   'extern "C" void exit (int) throw ();' \
2638   'extern "C" void exit (int);' \
2639   'void exit (int);'
2640do
2641  cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647$ac_declaration
2648#include <stdlib.h>
2649int
2650main ()
2651{
2652exit (42);
2653  ;
2654  return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666	 { ac_try='test -z "$ac_c_werror_flag"
2667			 || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673	 { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  :
2680else
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684continue
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694int
2695main ()
2696{
2697exit (42);
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711	 { ac_try='test -z "$ac_c_werror_flag"
2712			 || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718	 { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  break
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732rm -f conftest*
2733if test -n "$ac_declaration"; then
2734  echo '#ifdef __cplusplus' >>confdefs.h
2735  echo $ac_declaration      >>confdefs.h
2736  echo '#endif'             >>confdefs.h
2737fi
2738
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743fi
2744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751if test -z "$CC" ; then
2752  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2753echo "$as_me: error: Failed to find a C compiler!" >&2;}
2754   { (exit 1); exit 1; }; }
2755fi
2756# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2757case "$CC" in
2758  clang* ) ;;
2759  cl* | */cl* | CL* | */CL* )
2760    if test "$ac_cv_prog_cc_g" = yes ; then
2761      ac_cv_prog_cc_g=no
2762      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2763echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2764    fi ;;
2765  * )
2766    if test x"$CYGPATH_W" = x ; then
2767      CYGPATH_W=echo
2768    fi
2769    ;;
2770esac
2771CFLAGS="$save_cflags"
2772
2773# add automake conditional so we can recognize cl compiler in makefile
2774coin_cc_is_cl=false
2775case "$CC" in
2776  clang* ) ;;
2777  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2778    coin_cc_is_cl=true
2779    ;;
2780esac
2781
2782
2783if test $coin_cc_is_cl = true; then
2784  COIN_CC_IS_CL_TRUE=
2785  COIN_CC_IS_CL_FALSE='#'
2786else
2787  COIN_CC_IS_CL_TRUE='#'
2788  COIN_CC_IS_CL_FALSE=
2789fi
2790
2791
2792# Check if a project specific CFLAGS variable has been set
2793if test x$COIN_PRJCT != x; then
2794  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2795  if test x$coin_tmp = xset; then
2796    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2797  fi
2798fi
2799
2800if test x"$CFLAGS" = x; then
2801
2802  coin_add_cflags=
2803  coin_opt_cflags=
2804  coin_dbg_cflags=
2805  coin_warn_cflags=
2806
2807  if test "$GCC" = "yes"; then
2808    case "$CC" in
2809      icc* | */icc*)
2810        ;;
2811      *)
2812        coin_opt_cflags="-O3"
2813        coin_add_cflags="-pipe"
2814        coin_dbg_cflags="-g -O0"
2815        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2816    esac
2817  fi
2818  if test -z "$coin_opt_cflags"; then
2819    case $build in
2820      *-cygwin* | *-mingw*)
2821        case "$CC" in
2822          clang* ) ;;
2823          cl* | */cl* | CL* | */CL*)
2824            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2825              coin_opt_cflags='-MD -O2'
2826              coin_dbg_cflags='-MDd'
2827            else
2828              coin_opt_cflags='-MT -O2'
2829              coin_dbg_cflags='-MTd'
2830            fi
2831            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2832            ;;
2833          icl* | */icl* | ICL* | */ICL*)
2834            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2835              coin_opt_cflags='-MD -Ox'
2836              coin_dbg_cflags='-MDd -debug'
2837            else
2838              coin_opt_cflags='-MT -Ox'
2839              coin_dbg_cflags='-MTd -debug'
2840            fi
2841            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2842            ;;
2843        esac
2844        ;;
2845      *-linux-*)
2846        case "$CC" in
2847          icc* | */icc*)
2848            coin_opt_cflags="-O3 -ip -mp1"
2849            coin_add_cflags=""
2850            coin_dbg_cflags="-g"
2851            # Check if -i_dynamic is necessary (for new glibc library)
2852            CFLAGS=
2853            cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h.  */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h.  */
2859
2860int
2861main ()
2862{
2863int i=0; i++;
2864  ;
2865  return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext conftest$ac_exeext
2869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870  (eval $ac_link) 2>conftest.er1
2871  ac_status=$?
2872  grep -v '^ *+' conftest.er1 >conftest.err
2873  rm -f conftest.er1
2874  cat conftest.err >&5
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); } &&
2877	 { ac_try='test -z "$ac_c_werror_flag"
2878			 || test ! -s conftest.err'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; } &&
2884	 { ac_try='test -s conftest$ac_exeext'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; }; then
2890  :
2891else
2892  echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895coin_add_cflags="-i_dynamic $coin_add_cflags"
2896fi
2897rm -f conftest.err conftest.$ac_objext \
2898      conftest$ac_exeext conftest.$ac_ext
2899            ;;
2900          pgcc* | */pgcc*)
2901            coin_opt_cflags="-fast"
2902            coin_add_cflags="-Kieee -pc 64"
2903            coin_dbg_cflags="-g"
2904            ;;
2905        esac
2906        ;;
2907      *-ibm-*)
2908        case "$CC" in
2909          xlc* | */xlc* | mpxlc* | */mpxlc*)
2910            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2911            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2912            coin_dbg_cflags="-g"
2913          ;;
2914        esac
2915        ;;
2916      *-hp-*)
2917        coin_opt_cflags="-O"
2918        coin_add_cflags="-Ae"
2919        coin_dbg_cflags="-g"
2920        ;;
2921      *-*-solaris*)
2922        coin_opt_cflags="-xO4"
2923        coin_dbg_cflags="-g"
2924        ;;
2925      *-sgi-*)
2926        coin_opt_cflags="-O -OPT:Olimit=0"
2927        coin_dbg_cflags="-g"
2928        ;;
2929    esac
2930  fi
2931
2932  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2933    coin_dbg_cflags="-g"
2934  fi
2935
2936  if test -z "$coin_opt_cflags"; then
2937    # Try if -O option works if nothing else is set
2938    CFLAGS="-O"
2939    cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949int i=0; i++;
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext conftest$ac_exeext
2955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2956  (eval $ac_link) 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } &&
2963	 { ac_try='test -z "$ac_c_werror_flag"
2964			 || test ! -s conftest.err'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; } &&
2970	 { ac_try='test -s conftest$ac_exeext'
2971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972  (eval $ac_try) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  coin_opt_cflags="-O"
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981fi
2982rm -f conftest.err conftest.$ac_objext \
2983      conftest$ac_exeext conftest.$ac_ext
2984  fi
2985
2986  # if PM doesn't want the warning messages, take them out
2987  if test x"$coin_skip_warn_cflags" = xyes; then
2988    coin_warn_cflags=
2989  fi
2990
2991  if test x${DBG_CFLAGS+set} != xset; then
2992    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2993  fi
2994  if test x${OPT_CFLAGS+set} != xset; then
2995    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2996  fi
2997
2998  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2999  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3000
3001  if test "$coin_debug_compile" = "true"; then
3002    CFLAGS="$DBG_CFLAGS"
3003  else
3004    CFLAGS="$OPT_CFLAGS"
3005  fi
3006else
3007  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3008  if test x${DBG_CFLAGS+set} != xset; then
3009    DBG_CFLAGS="$CFLAGS"
3010  fi
3011  if test x${OPT_CFLAGS+set} != xset; then
3012    OPT_CFLAGS="$CFLAGS"
3013  fi
3014fi
3015
3016# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3017if test x$COIN_PRJCT != x; then
3018  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3019fi
3020
3021# Try if CFLAGS works
3022save_CFLAGS="$CFLAGS"
3023cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h.  */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033int i=0; i++;
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext conftest$ac_exeext
3039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040  (eval $ac_link) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047	 { ac_try='test -z "$ac_c_werror_flag"
3048			 || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054	 { ac_try='test -s conftest$ac_exeext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  :
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065CFLAGS=
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069if test -z "$CFLAGS"; then
3070  { 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
3071echo "$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;}
3072  CFLAGS='-O'
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083int i=0; i++;
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext conftest$ac_exeext
3089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3090  (eval $ac_link) 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } &&
3097	 { ac_try='test -z "$ac_c_werror_flag"
3098			 || test ! -s conftest.err'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; } &&
3104	 { ac_try='test -s conftest$ac_exeext'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; }; then
3110  :
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115CFLAGS=
3116fi
3117rm -f conftest.err conftest.$ac_objext \
3118      conftest$ac_exeext conftest.$ac_ext
3119  if test -z "$CFLAGS"; then
3120    { 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
3121echo "$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;}
3122  fi
3123fi
3124
3125{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3126echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3127
3128
3129if test x"$MPICC" = x; then :; else
3130  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3131echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3132  CC="$MPICC"
3133fi
3134
3135# Correct the LD variable if we are using the MS or Intel-windows compiler
3136case "$CC" in
3137  clang* ) ;;
3138  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3139    LD=link
3140    ;;
3141esac
3142
3143ac_ext=c
3144ac_cpp='$CPP $CPPFLAGS'
3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150
3151# Get the name of the C++ compiler and appropriate compiler options
3152
3153 #Let's try if that overcomes configuration problem with VC++ 6.0
3154
3155ac_ext=cc
3156ac_cpp='$CXXCPP $CPPFLAGS'
3157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3160
3161
3162
3163
3164
3165
3166
3167coin_has_cxx=yes
3168
3169save_cxxflags="$CXXFLAGS"
3170# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3171case $build in
3172  *-cygwin* | *-mingw*)
3173      if test "$enable_msvc" = yes ; then
3174         comps="icl cl g++"
3175      else
3176         comps="g++ icl cl"
3177      fi ;;
3178  *-*-solaris*)
3179  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3180  *-darwin*) comps="clang++ g++ c++ CC" ;;
3181  *-linux-gnu*)
3182             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3183          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3184esac
3185
3186# We delete the cached value, since the test might not have been
3187# performed with our choice of compilers earlier
3188$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3189# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3190ac_ext=cc
3191ac_cpp='$CXXCPP $CPPFLAGS'
3192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3195if test -n "$ac_tool_prefix"; then
3196  for ac_prog in $CCC $comps
3197  do
3198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3200echo "$as_me:$LINENO: checking for $ac_word" >&5
3201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202if test "${ac_cv_prog_CXX+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205  if test -n "$CXX"; then
3206  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  test -z "$as_dir" && as_dir=.
3213  for ac_exec_ext in '' $ac_executable_extensions; do
3214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217    break 2
3218  fi
3219done
3220done
3221
3222fi
3223fi
3224CXX=$ac_cv_prog_CXX
3225if test -n "$CXX"; then
3226  echo "$as_me:$LINENO: result: $CXX" >&5
3227echo "${ECHO_T}$CXX" >&6
3228else
3229  echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
3231fi
3232
3233    test -n "$CXX" && break
3234  done
3235fi
3236if test -z "$CXX"; then
3237  ac_ct_CXX=$CXX
3238  for ac_prog in $CCC $comps
3239do
3240  # Extract the first word of "$ac_prog", so it can be a program name with args.
3241set dummy $ac_prog; ac_word=$2
3242echo "$as_me:$LINENO: checking for $ac_word" >&5
3243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  if test -n "$ac_ct_CXX"; then
3248  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255  for ac_exec_ext in '' $ac_executable_extensions; do
3256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_ac_ct_CXX="$ac_prog"
3258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262done
3263
3264fi
3265fi
3266ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3267if test -n "$ac_ct_CXX"; then
3268  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3269echo "${ECHO_T}$ac_ct_CXX" >&6
3270else
3271  echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273fi
3274
3275  test -n "$ac_ct_CXX" && break
3276done
3277test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3278
3279  CXX=$ac_ct_CXX
3280fi
3281
3282
3283# Provide some information about the compiler.
3284echo "$as_me:$LINENO:" \
3285     "checking for C++ compiler version" >&5
3286ac_compiler=`set X $ac_compile; echo $2`
3287{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3288  (eval $ac_compiler --version </dev/null >&5) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }
3292{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3293  (eval $ac_compiler -v </dev/null >&5) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }
3297{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3298  (eval $ac_compiler -V </dev/null >&5) 2>&5
3299  ac_status=$?
3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); }
3302
3303echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3304echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3305if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h.  */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318#ifndef __GNUC__
3319       choke me
3320#endif
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326rm -f conftest.$ac_objext
3327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328  (eval $ac_compile) 2>conftest.er1
3329  ac_status=$?
3330  grep -v '^ *+' conftest.er1 >conftest.err
3331  rm -f conftest.er1
3332  cat conftest.err >&5
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } &&
3335	 { ac_try='test -z "$ac_cxx_werror_flag"
3336			 || test ! -s conftest.err'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; } &&
3342	 { ac_try='test -s conftest.$ac_objext'
3343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344  (eval $ac_try) 2>&5
3345  ac_status=$?
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }; }; then
3348  ac_compiler_gnu=yes
3349else
3350  echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353ac_compiler_gnu=no
3354fi
3355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3357
3358fi
3359echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3360echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3361GXX=`test $ac_compiler_gnu = yes && echo yes`
3362ac_test_CXXFLAGS=${CXXFLAGS+set}
3363ac_save_CXXFLAGS=$CXXFLAGS
3364CXXFLAGS="-g"
3365echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3366echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3367if test "${ac_cv_prog_cxx_g+set}" = set; then
3368  echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370  cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h.  */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h.  */
3376
3377int
3378main ()
3379{
3380
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
3386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387  (eval $ac_compile) 2>conftest.er1
3388  ac_status=$?
3389  grep -v '^ *+' conftest.er1 >conftest.err
3390  rm -f conftest.er1
3391  cat conftest.err >&5
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } &&
3394	 { ac_try='test -z "$ac_cxx_werror_flag"
3395			 || test ! -s conftest.err'
3396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397  (eval $ac_try) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; } &&
3401	 { ac_try='test -s conftest.$ac_objext'
3402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403  (eval $ac_try) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }; }; then
3407  ac_cv_prog_cxx_g=yes
3408else
3409  echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412ac_cv_prog_cxx_g=no
3413fi
3414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415fi
3416echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3417echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3418if test "$ac_test_CXXFLAGS" = set; then
3419  CXXFLAGS=$ac_save_CXXFLAGS
3420elif test $ac_cv_prog_cxx_g = yes; then
3421  if test "$GXX" = yes; then
3422    CXXFLAGS="-g -O2"
3423  else
3424    CXXFLAGS="-g"
3425  fi
3426else
3427  if test "$GXX" = yes; then
3428    CXXFLAGS="-O2"
3429  else
3430    CXXFLAGS=
3431  fi
3432fi
3433for ac_declaration in \
3434   '' \
3435   'extern "C" void std::exit (int) throw (); using std::exit;' \
3436   'extern "C" void std::exit (int); using std::exit;' \
3437   'extern "C" void exit (int) throw ();' \
3438   'extern "C" void exit (int);' \
3439   'void exit (int);'
3440do
3441  cat >conftest.$ac_ext <<_ACEOF
3442/* confdefs.h.  */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h.  */
3447$ac_declaration
3448#include <stdlib.h>
3449int
3450main ()
3451{
3452exit (42);
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466	 { ac_try='test -z "$ac_cxx_werror_flag"
3467			 || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473	 { ac_try='test -s conftest.$ac_objext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  :
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484continue
3485fi
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487  cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493$ac_declaration
3494int
3495main ()
3496{
3497exit (42);
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502rm -f conftest.$ac_objext
3503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504  (eval $ac_compile) 2>conftest.er1
3505  ac_status=$?
3506  grep -v '^ *+' conftest.er1 >conftest.err
3507  rm -f conftest.er1
3508  cat conftest.err >&5
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); } &&
3511	 { ac_try='test -z "$ac_cxx_werror_flag"
3512			 || test ! -s conftest.err'
3513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514  (eval $ac_try) 2>&5
3515  ac_status=$?
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); }; } &&
3518	 { ac_try='test -s conftest.$ac_objext'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; }; then
3524  break
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531done
3532rm -f conftest*
3533if test -n "$ac_declaration"; then
3534  echo '#ifdef __cplusplus' >>confdefs.h
3535  echo $ac_declaration      >>confdefs.h
3536  echo '#endif'             >>confdefs.h
3537fi
3538
3539ac_ext=cc
3540ac_cpp='$CXXCPP $CPPFLAGS'
3541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3544
3545
3546#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3547#thus, we test here whether $CXX is actually working
3548ac_ext=cc
3549ac_cpp='$CXXCPP $CPPFLAGS'
3550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3553
3554echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3555echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3556cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h.  */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566int i=0;
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571rm -f conftest.$ac_objext
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573  (eval $ac_compile) 2>conftest.er1
3574  ac_status=$?
3575  grep -v '^ *+' conftest.er1 >conftest.err
3576  rm -f conftest.er1
3577  cat conftest.err >&5
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); } &&
3580	 { ac_try='test -z "$ac_cxx_werror_flag"
3581			 || test ! -s conftest.err'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; } &&
3587	 { ac_try='test -s conftest.$ac_objext'
3588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589  (eval $ac_try) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); }; }; then
3593  echo "$as_me:$LINENO: result: yes" >&5
3594echo "${ECHO_T}yes" >&6
3595else
3596  echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
3601   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3602echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3603   { (exit 1); exit 1; }; }
3604
3605fi
3606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607ac_ext=cc
3608ac_cpp='$CXXCPP $CPPFLAGS'
3609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3612
3613
3614coin_cxx_is_cl=false
3615# It seems that we need to cleanup something here for the Windows
3616case "$CXX" in
3617  clang* | */clang*) ;;
3618  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3619    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3620    mv confdefs.hh confdefs.h
3621    coin_cxx_is_cl=true
3622    ;;
3623esac
3624
3625# add automake conditional so we can recognize cl compiler in makefile
3626
3627
3628if test $coin_cxx_is_cl = true; then
3629  COIN_CXX_IS_CL_TRUE=
3630  COIN_CXX_IS_CL_FALSE='#'
3631else
3632  COIN_CXX_IS_CL_TRUE='#'
3633  COIN_CXX_IS_CL_FALSE=
3634fi
3635
3636
3637# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3638case "$CXX" in
3639  clang* ) ;;
3640  cl* | */cl* | CL* | */CL* )
3641    if test "$ac_cv_prog_cxx_g" = yes ; then
3642      ac_cv_prog_cxx_g=no
3643      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3644echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3645    fi ;;
3646  * )
3647    if test x"$CYGPATH_W" = x ; then
3648      CYGPATH_W=echo
3649    fi
3650    ;;
3651esac
3652CXXFLAGS="$save_cxxflags"
3653
3654# Check if a project specific CXXFLAGS variable has been set
3655if test x$COIN_PRJCT != x; then
3656  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3657  if test x$coin_tmp = xset; then
3658    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3659  fi
3660fi
3661
3662if test x"$CXXFLAGS" = x; then
3663
3664# ToDo decide whether we want -DNDEBUG for optimization
3665  coin_add_cxxflags=
3666  coin_opt_cxxflags=
3667  coin_dbg_cxxflags=
3668  coin_warn_cxxflags=
3669
3670  if test "$GXX" = "yes"; then
3671    case "$CXX" in
3672      icpc* | */icpc*)
3673        ;;
3674      *)
3675# ToDo decide about unroll-loops
3676        coin_opt_cxxflags="-O3"
3677        coin_add_cxxflags="-pipe"
3678        coin_dbg_cxxflags="-g -O0"
3679        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3680    esac
3681  fi
3682
3683# Note that we do not need to cover GCC in the following tests.
3684
3685  if test -z "$coin_opt_cxxflags"; then
3686    case $build in
3687      *-cygwin* | *-mingw*)
3688        case "$CXX" in
3689          clang* ) ;;
3690          cl* | */cl* | CL* | */CL*)
3691            # The MT and MTd options are mutually exclusive
3692            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3693               coin_opt_cxxflags='-MD -O2'
3694               coin_dbg_cxxflags='-MDd'
3695            else
3696               coin_opt_cxxflags='-MT -O2'
3697               coin_dbg_cxxflags='-MTd'
3698            fi
3699            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3700            ;;
3701          icl* | */icl* | ICL* | */ICL*)
3702          # The MT and MTd options are mutually exclusive
3703            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3704              coin_opt_cxxflags='-MD -Ox'
3705              coin_dbg_cxxflags='-MDd -debug'
3706            else
3707              coin_opt_cxxflags='-MT -Ox'
3708              coin_dbg_cxxflags='-MTd -debug'
3709            fi
3710            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3711            ;;
3712        esac
3713        ;;
3714      *-linux-*)
3715        case "$CXX" in
3716          icpc* | */icpc*)
3717            coin_opt_cxxflags="-O3 -ip -mp1"
3718            coin_add_cxxflags=""
3719            coin_dbg_cxxflags="-g"
3720            # Check if -i_dynamic is necessary (for new glibc library)
3721            CXXFLAGS=
3722            cat >conftest.$ac_ext <<_ACEOF
3723/* confdefs.h.  */
3724_ACEOF
3725cat confdefs.h >>conftest.$ac_ext
3726cat >>conftest.$ac_ext <<_ACEOF
3727/* end confdefs.h.  */
3728
3729int
3730main ()
3731{
3732int i=0; i++;
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737rm -f conftest.$ac_objext conftest$ac_exeext
3738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739  (eval $ac_link) 2>conftest.er1
3740  ac_status=$?
3741  grep -v '^ *+' conftest.er1 >conftest.err
3742  rm -f conftest.er1
3743  cat conftest.err >&5
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); } &&
3746	 { ac_try='test -z "$ac_cxx_werror_flag"
3747			 || test ! -s conftest.err'
3748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749  (eval $ac_try) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; } &&
3753	 { ac_try='test -s conftest$ac_exeext'
3754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755  (eval $ac_try) 2>&5
3756  ac_status=$?
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); }; }; then
3759  :
3760else
3761  echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3765fi
3766rm -f conftest.err conftest.$ac_objext \
3767      conftest$ac_exeext conftest.$ac_ext
3768            ;;
3769          pgCC* | */pgCC*)
3770            coin_opt_cxxflags="-fast"
3771            coin_add_cxxflags="-Kieee -pc 64"
3772            coin_dbg_cxxflags="-g"
3773            ;;
3774        esac
3775        ;;
3776      *-ibm-*)
3777        case "$CXX" in
3778          xlC* | */xlC* | mpxlC* | */mpxlC*)
3779            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3780            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3781            coin_dbg_cxxflags="-g"
3782            ;;
3783        esac
3784        ;;
3785      *-hp-*)
3786        case "$CXX" in
3787          aCC* | */aCC* )
3788            coin_opt_cxxflags="-O"
3789            coin_add_cxxflags="-AA"
3790            coin_dbg_cxxflags="-g"
3791            ;;
3792        esac
3793        ;;
3794      *-*-solaris*)
3795          coin_opt_cxxflags="-O4"
3796          coin_dbg_cxxflags="-g"
3797        ;;
3798    esac
3799  fi
3800
3801# Generic flag settings. If these don't work, add a case above.
3802
3803  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3804    coin_dbg_cxxflags="-g"
3805  fi
3806
3807  if test -z "$coin_opt_cxxflags"; then
3808    # Try if -O option works if nothing else is set
3809    CXXFLAGS=-O
3810    cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820int i=0; i++;
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext conftest$ac_exeext
3826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827  (eval $ac_link) 2>conftest.er1
3828  ac_status=$?
3829  grep -v '^ *+' conftest.er1 >conftest.err
3830  rm -f conftest.er1
3831  cat conftest.err >&5
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); } &&
3834	 { ac_try='test -z "$ac_cxx_werror_flag"
3835			 || test ! -s conftest.err'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; } &&
3841	 { ac_try='test -s conftest$ac_exeext'
3842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; }; then
3847  coin_opt_cxxflags="-O"
3848else
3849  echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852fi
3853rm -f conftest.err conftest.$ac_objext \
3854      conftest$ac_exeext conftest.$ac_ext
3855  fi
3856
3857  # if PM doesn't want the warning messages, take them out
3858  if test x"$coin_skip_warn_cxxflags" = xyes; then
3859    coin_warn_cxxflags=
3860  fi
3861
3862# Do final setup of flags based on values determined above.
3863
3864  if test x${DBG_CXXFLAGS+set} != xset; then
3865    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3866  fi
3867  if test x${OPT_CXXFLAGS+set} != xset; then
3868    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3869  fi
3870
3871  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3872  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3873
3874  if test "$coin_debug_compile" = "true"; then
3875    CXXFLAGS="$DBG_CXXFLAGS"
3876  else
3877    CXXFLAGS="$OPT_CXXFLAGS"
3878  fi
3879
3880# Handle the case where CXXFLAGS was set externally.
3881else
3882  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3883  if test x${DBG_CXXFLAGS+set} != xset; then
3884    DBG_CXXFLAGS="$CXXFLAGS"
3885  fi
3886  if test x${OPT_CXXFLAGS+set} != xset; then
3887    OPT_CXXFLAGS="$CXXFLAGS"
3888  fi
3889fi
3890
3891# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3892if test x$COIN_PRJCT != x; then
3893  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3894fi
3895
3896# Try if CXXFLAGS works
3897save_CXXFLAGS="$CXXFLAGS"
3898cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h.  */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h.  */
3904
3905int
3906main ()
3907{
3908int i=0; i++;
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext conftest$ac_exeext
3914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915  (eval $ac_link) 2>conftest.er1
3916  ac_status=$?
3917  grep -v '^ *+' conftest.er1 >conftest.err
3918  rm -f conftest.er1
3919  cat conftest.err >&5
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); } &&
3922	 { ac_try='test -z "$ac_cxx_werror_flag"
3923			 || test ! -s conftest.err'
3924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925  (eval $ac_try) 2>&5
3926  ac_status=$?
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); }; } &&
3929	 { ac_try='test -s conftest$ac_exeext'
3930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931  (eval $ac_try) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); }; }; then
3935  :
3936else
3937  echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940CXXFLAGS=
3941fi
3942rm -f conftest.err conftest.$ac_objext \
3943      conftest$ac_exeext conftest.$ac_ext
3944if test -z "$CXXFLAGS"; then
3945  { 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
3946echo "$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;}
3947  CXXFLAGS='-O'
3948  cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954
3955int
3956main ()
3957{
3958int i=0; i++;
3959  ;
3960  return 0;
3961}
3962_ACEOF
3963rm -f conftest.$ac_objext conftest$ac_exeext
3964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965  (eval $ac_link) 2>conftest.er1
3966  ac_status=$?
3967  grep -v '^ *+' conftest.er1 >conftest.err
3968  rm -f conftest.er1
3969  cat conftest.err >&5
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); } &&
3972	 { ac_try='test -z "$ac_cxx_werror_flag"
3973			 || test ! -s conftest.err'
3974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975  (eval $ac_try) 2>&5
3976  ac_status=$?
3977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978  (exit $ac_status); }; } &&
3979	 { ac_try='test -s conftest$ac_exeext'
3980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981  (eval $ac_try) 2>&5
3982  ac_status=$?
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); }; }; then
3985  :
3986else
3987  echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990CXXFLAGS=
3991fi
3992rm -f conftest.err conftest.$ac_objext \
3993      conftest$ac_exeext conftest.$ac_ext
3994  if test -z "$CXXFLAGS"; then
3995    { 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
3996echo "$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;}
3997  fi
3998fi
3999
4000{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4001echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4002
4003
4004if test x"$MPICXX" = x; then :; else
4005  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4006echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4007  CXX="$MPICXX"
4008fi
4009
4010# correct the LD variable in a build with MS or Intel-windows compiler
4011case "$CXX" in
4012  clang* ) ;;
4013  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4014    LD=link
4015    ;;
4016esac
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024
4025
4026# Check if pkg-config is available (to setup addlibs file)
4027
4028
4029# Check whether --enable-pkg-config or --disable-pkg-config was given.
4030if test "${enable_pkg_config+set}" = set; then
4031  enableval="$enable_pkg_config"
4032  use_pkgconfig="$enableval"
4033else
4034  if test x$coin_cc_is_cl = xtrue; then
4035     use_pkgconfig=no
4036   else
4037     use_pkgconfig=yes
4038   fi
4039fi;
4040
4041if test $use_pkgconfig = yes ; then
4042  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4043    if test -n "$ac_tool_prefix"; then
4044  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4045set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4046echo "$as_me:$LINENO: checking for $ac_word" >&5
4047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4049  echo $ECHO_N "(cached) $ECHO_C" >&6
4050else
4051  if test -n "$PKG_CONFIG"; then
4052  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4053else
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057  IFS=$as_save_IFS
4058  test -z "$as_dir" && as_dir=.
4059  for ac_exec_ext in '' $ac_executable_extensions; do
4060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063    break 2
4064  fi
4065done
4066done
4067
4068fi
4069fi
4070PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4071if test -n "$PKG_CONFIG"; then
4072  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4073echo "${ECHO_T}$PKG_CONFIG" >&6
4074else
4075  echo "$as_me:$LINENO: result: no" >&5
4076echo "${ECHO_T}no" >&6
4077fi
4078
4079fi
4080if test -z "$ac_cv_prog_PKG_CONFIG"; then
4081  ac_ct_PKG_CONFIG=$PKG_CONFIG
4082  # Extract the first word of "pkg-config", so it can be a program name with args.
4083set dummy pkg-config; ac_word=$2
4084echo "$as_me:$LINENO: checking for $ac_word" >&5
4085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4087  echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089  if test -n "$ac_ct_PKG_CONFIG"; then
4090  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4091else
4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095  IFS=$as_save_IFS
4096  test -z "$as_dir" && as_dir=.
4097  for ac_exec_ext in '' $ac_executable_extensions; do
4098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101    break 2
4102  fi
4103done
4104done
4105
4106fi
4107fi
4108ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4109if test -n "$ac_ct_PKG_CONFIG"; then
4110  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4111echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4112else
4113  echo "$as_me:$LINENO: result: no" >&5
4114echo "${ECHO_T}no" >&6
4115fi
4116
4117  PKG_CONFIG=$ac_ct_PKG_CONFIG
4118else
4119  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4120fi
4121
4122  fi
4123  if test -n "$PKG_CONFIG"; then
4124    _pkg_min_version=0.16.0
4125    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4126echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4127    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4128      echo "$as_me:$LINENO: result: yes" >&5
4129echo "${ECHO_T}yes" >&6
4130    else
4131      echo "$as_me:$LINENO: result: no" >&5
4132echo "${ECHO_T}no" >&6
4133      PKG_CONFIG=""
4134    fi
4135  fi
4136
4137  # check if pkg-config supports the short-errors flag
4138  if test -n "$PKG_CONFIG" && \
4139    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4140    pkg_short_errors=" --short-errors "
4141  else
4142    pkg_short_errors=""
4143  fi
4144fi
4145
4146
4147
4148if test -n "$PKG_CONFIG"; then
4149  COIN_HAS_PKGCONFIG_TRUE=
4150  COIN_HAS_PKGCONFIG_FALSE='#'
4151else
4152  COIN_HAS_PKGCONFIG_TRUE='#'
4153  COIN_HAS_PKGCONFIG_FALSE=
4154fi
4155
4156
4157
4158# assemble pkg-config search path for installed projects
4159COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4160
4161# 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
4162# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4163# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4164if test "x${prefix}" = xNONE ; then
4165  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4166else
4167  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4168fi
4169
4170
4171# Check whether --with-coin-instdir or --without-coin-instdir was given.
4172if test "${with_coin_instdir+set}" = set; then
4173  withval="$with_coin_instdir"
4174  if test -d "$withval"; then : ; else
4175     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4176echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4177   { (exit 1); exit 1; }; }
4178   fi
4179   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4180
4181fi;
4182
4183
4184
4185# assemble additional pkg-config search paths for uninstalled projects
4186if test x$coin_projectdir = xyes ; then
4187  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4188  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4189  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4190  # 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)
4191  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4192  if test -f ../coin_subdirs.txt ; then
4193    for i in `cat ../coin_subdirs.txt` ; do
4194      if test -d ../$i ; then
4195        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4196      fi
4197      if test -d ../$i/pkgconfig ; then
4198        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4199      fi
4200    done
4201  fi
4202
4203  if test -f ../../coin_subdirs.txt ; then
4204    for i in `cat ../../coin_subdirs.txt` ; do
4205      if test -d ../../$i ; then
4206        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4207      fi
4208      if test -d ../../$i/pkgconfig ; then
4209        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4210      fi
4211    done
4212  fi
4213
4214
4215fi
4216
4217if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4218  { 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
4219echo "$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;}
4220fi
4221
4222
4223
4224# Initialize automake
4225{
4226
4227
4228
4229# START
4230
4231coin_disable_shared=no
4232# Test if force_shared has been set
4233if test "x" = xforce_shared; then
4234  if test x$enable_shared = xno; then
4235    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4236echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4237   { (exit 1); exit 1; }; }
4238  fi
4239  enable_shared=yes;
4240else
4241  case $build in
4242    *-cygwin* | *-mingw*)
4243      coin_disable_shared=yes
4244      if test x"$enable_shared" = xyes; then
4245        case "$CC" in
4246          clang* )
4247            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4248echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4249            ;;
4250          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4251            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4252echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4253            ;;
4254          *gcc*)
4255            if test x"$enable_dependency_linking" = xyes; then
4256              coin_disable_shared=no
4257            else
4258              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4259echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4260            fi
4261            ;;
4262          *)
4263            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4264echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4265            ;;
4266        esac
4267      fi
4268    ;;
4269    *-aix*)
4270      coin_disable_shared=yes
4271      platform=AIX
4272      if test x"$enable_shared" = xyes; then
4273        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4274echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4275      fi
4276    ;;
4277  esac
4278fi
4279if test x"$coin_disable_shared" = xyes; then
4280  if test x"$enable_shared" = xyes; then
4281    :
4282  else
4283    # we don't disable shared, because it was not selected anyway
4284    coin_disable_shared=no
4285  fi
4286  enable_shared=no
4287fi
4288# By default, we only want the shared objects to be compiled
4289# Check whether --enable-static or --disable-static was given.
4290if test "${enable_static+set}" = set; then
4291  enableval="$enable_static"
4292  p=${PACKAGE-default}
4293    case $enableval in
4294    yes) enable_static=yes ;;
4295    no) enable_static=no ;;
4296    *)
4297     enable_static=no
4298      # Look at the argument we got.  We use all the common list separators.
4299      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4300      for pkg in $enableval; do
4301	IFS="$lt_save_ifs"
4302	if test "X$pkg" = "X$p"; then
4303	  enable_static=yes
4304	fi
4305      done
4306      IFS="$lt_save_ifs"
4307      ;;
4308    esac
4309else
4310  enable_static=no
4311fi;
4312
4313
4314
4315
4316# Initialize automake
4317echo "$as_me:$LINENO: checking for egrep" >&5
4318echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4319if test "${ac_cv_prog_egrep+set}" = set; then
4320  echo $ECHO_N "(cached) $ECHO_C" >&6
4321else
4322  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4323    then ac_cv_prog_egrep='grep -E'
4324    else ac_cv_prog_egrep='egrep'
4325    fi
4326fi
4327echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4328echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4329 EGREP=$ac_cv_prog_egrep
4330
4331
4332echo "$as_me:$LINENO: checking whether ln -s works" >&5
4333echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4334LN_S=$as_ln_s
4335if test "$LN_S" = "ln -s"; then
4336  echo "$as_me:$LINENO: result: yes" >&5
4337echo "${ECHO_T}yes" >&6
4338else
4339  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4340echo "${ECHO_T}no, using $LN_S" >&6
4341fi
4342
4343am__api_version="1.9"
4344# Find a good install program.  We prefer a C program (faster),
4345# so one script is as good as another.  But avoid the broken or
4346# incompatible versions:
4347# SysV /etc/install, /usr/sbin/install
4348# SunOS /usr/etc/install
4349# IRIX /sbin/install
4350# AIX /bin/install
4351# AmigaOS /C/install, which installs bootblocks on floppy discs
4352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4353# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4355# OS/2's system install, which has a completely different semantic
4356# ./install, which can be erroneously created by make from ./install.sh.
4357echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4358echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4359if test -z "$INSTALL"; then
4360if test "${ac_cv_path_install+set}" = set; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368  # Account for people who put trailing slashes in PATH elements.
4369case $as_dir/ in
4370  ./ | .// | /cC/* | \
4371  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4372  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4373  /usr/ucb/* ) ;;
4374  *)
4375    # OSF1 and SCO ODT 3.0 have their own names for install.
4376    # Don't use installbsd from OSF since it installs stuff as root
4377    # by default.
4378    for ac_prog in ginstall scoinst install; do
4379      for ac_exec_ext in '' $ac_executable_extensions; do
4380	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4381	  if test $ac_prog = install &&
4382	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4383	    # AIX install.  It has an incompatible calling convention.
4384	    :
4385	  elif test $ac_prog = install &&
4386	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4387	    # program-specific install script used by HP pwplus--don't use.
4388	    :
4389	  else
4390	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4391	    break 3
4392	  fi
4393	fi
4394      done
4395    done
4396    ;;
4397esac
4398done
4399
4400
4401fi
4402  if test "${ac_cv_path_install+set}" = set; then
4403    INSTALL=$ac_cv_path_install
4404  else
4405    # As a last resort, use the slow shell script.  We don't cache a
4406    # path for INSTALL within a source directory, because that will
4407    # break other packages using the cache if that directory is
4408    # removed, or if the path is relative.
4409    INSTALL=$ac_install_sh
4410  fi
4411fi
4412echo "$as_me:$LINENO: result: $INSTALL" >&5
4413echo "${ECHO_T}$INSTALL" >&6
4414
4415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4416# It thinks the first close brace ends the variable substitution.
4417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4418
4419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4420
4421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4422
4423echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4424echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4425# Just in case
4426sleep 1
4427echo timestamp > conftest.file
4428# Do `set' in a subshell so we don't clobber the current shell's
4429# arguments.  Must try -L first in case configure is actually a
4430# symlink; some systems play weird games with the mod time of symlinks
4431# (eg FreeBSD returns the mod time of the symlink's containing
4432# directory).
4433if (
4434   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4435   if test "$*" = "X"; then
4436      # -L didn't work.
4437      set X `ls -t $srcdir/configure conftest.file`
4438   fi
4439   rm -f conftest.file
4440   if test "$*" != "X $srcdir/configure conftest.file" \
4441      && test "$*" != "X conftest.file $srcdir/configure"; then
4442
4443      # If neither matched, then we have a broken ls.  This can happen
4444      # if, for instance, CONFIG_SHELL is bash and it inherits a
4445      # broken ls alias from the environment.  This has actually
4446      # happened.  Such a system could not be considered "sane".
4447      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4448alias in your environment" >&5
4449echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4450alias in your environment" >&2;}
4451   { (exit 1); exit 1; }; }
4452   fi
4453
4454   test "$2" = conftest.file
4455   )
4456then
4457   # Ok.
4458   :
4459else
4460   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4461Check your system clock" >&5
4462echo "$as_me: error: newly created file is older than distributed files!
4463Check your system clock" >&2;}
4464   { (exit 1); exit 1; }; }
4465fi
4466echo "$as_me:$LINENO: result: yes" >&5
4467echo "${ECHO_T}yes" >&6
4468test "$program_prefix" != NONE &&
4469  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4470# Use a double $ so make ignores it.
4471test "$program_suffix" != NONE &&
4472  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4473# Double any \ or $.  echo might interpret backslashes.
4474# By default was `s,x,x', remove it if useless.
4475cat <<\_ACEOF >conftest.sed
4476s/[\\$]/&&/g;s/;s,x,x,$//
4477_ACEOF
4478program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4479rm conftest.sed
4480
4481# expand $ac_aux_dir to an absolute path
4482am_aux_dir=`cd $ac_aux_dir && pwd`
4483
4484test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4485# Use eval to expand $SHELL
4486if eval "$MISSING --run true"; then
4487  am_missing_run="$MISSING --run "
4488else
4489  am_missing_run=
4490  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4491echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4492fi
4493
4494if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4495  # We used to keeping the `.' as first argument, in order to
4496  # allow $(mkdir_p) to be used without argument.  As in
4497  #   $(mkdir_p) $(somedir)
4498  # where $(somedir) is conditionally defined.  However this is wrong
4499  # for two reasons:
4500  #  1. if the package is installed by a user who cannot write `.'
4501  #     make install will fail,
4502  #  2. the above comment should most certainly read
4503  #     $(mkdir_p) $(DESTDIR)$(somedir)
4504  #     so it does not work when $(somedir) is undefined and
4505  #     $(DESTDIR) is not.
4506  #  To support the latter case, we have to write
4507  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4508  #  so the `.' trick is pointless.
4509  mkdir_p='mkdir -p --'
4510else
4511  # On NextStep and OpenStep, the `mkdir' command does not
4512  # recognize any option.  It will interpret all options as
4513  # directories to create, and then abort because `.' already
4514  # exists.
4515  for d in ./-p ./--version;
4516  do
4517    test -d $d && rmdir $d
4518  done
4519  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4520  if test -f "$ac_aux_dir/mkinstalldirs"; then
4521    mkdir_p='$(mkinstalldirs)'
4522  else
4523    mkdir_p='$(install_sh) -d'
4524  fi
4525fi
4526
4527for ac_prog in gawk mawk nawk awk
4528do
4529  # Extract the first word of "$ac_prog", so it can be a program name with args.
4530set dummy $ac_prog; ac_word=$2
4531echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533if test "${ac_cv_prog_AWK+set}" = set; then
4534  echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536  if test -n "$AWK"; then
4537  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542  IFS=$as_save_IFS
4543  test -z "$as_dir" && as_dir=.
4544  for ac_exec_ext in '' $ac_executable_extensions; do
4545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546    ac_cv_prog_AWK="$ac_prog"
4547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548    break 2
4549  fi
4550done
4551done
4552
4553fi
4554fi
4555AWK=$ac_cv_prog_AWK
4556if test -n "$AWK"; then
4557  echo "$as_me:$LINENO: result: $AWK" >&5
4558echo "${ECHO_T}$AWK" >&6
4559else
4560  echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562fi
4563
4564  test -n "$AWK" && break
4565done
4566
4567echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4568echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4569set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4570if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4571  echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573  cat >conftest.make <<\_ACEOF
4574all:
4575	@echo 'ac_maketemp="$(MAKE)"'
4576_ACEOF
4577# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4578eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4579if test -n "$ac_maketemp"; then
4580  eval ac_cv_prog_make_${ac_make}_set=yes
4581else
4582  eval ac_cv_prog_make_${ac_make}_set=no
4583fi
4584rm -f conftest.make
4585fi
4586if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4587  echo "$as_me:$LINENO: result: yes" >&5
4588echo "${ECHO_T}yes" >&6
4589  SET_MAKE=
4590else
4591  echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
4593  SET_MAKE="MAKE=${MAKE-make}"
4594fi
4595
4596rm -rf .tst 2>/dev/null
4597mkdir .tst 2>/dev/null
4598if test -d .tst; then
4599  am__leading_dot=.
4600else
4601  am__leading_dot=_
4602fi
4603rmdir .tst 2>/dev/null
4604
4605DEPDIR="${am__leading_dot}deps"
4606
4607          ac_config_commands="$ac_config_commands depfiles"
4608
4609
4610am_make=${MAKE-make}
4611cat > confinc << 'END'
4612am__doit:
4613	@echo done
4614.PHONY: am__doit
4615END
4616# If we don't find an include directive, just comment out the code.
4617echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4618echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4619am__include="#"
4620am__quote=
4621_am_result=none
4622# First try GNU make style include.
4623echo "include confinc" > confmf
4624# We grep out `Entering directory' and `Leaving directory'
4625# messages which can occur if `w' ends up in MAKEFLAGS.
4626# In particular we don't look at `^make:' because GNU make might
4627# be invoked under some other name (usually "gmake"), in which
4628# case it prints its new name instead of `make'.
4629if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4630   am__include=include
4631   am__quote=
4632   _am_result=GNU
4633fi
4634# Now try BSD make style include.
4635if test "$am__include" = "#"; then
4636   echo '.include "confinc"' > confmf
4637   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4638      am__include=.include
4639      am__quote="\""
4640      _am_result=BSD
4641   fi
4642fi
4643
4644
4645echo "$as_me:$LINENO: result: $_am_result" >&5
4646echo "${ECHO_T}$_am_result" >&6
4647rm -f confinc confmf
4648
4649# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4650if test "${enable_dependency_tracking+set}" = set; then
4651  enableval="$enable_dependency_tracking"
4652
4653fi;
4654if test "x$enable_dependency_tracking" != xno; then
4655  am_depcomp="$ac_aux_dir/depcomp"
4656  AMDEPBACKSLASH='\'
4657fi
4658
4659
4660if test "x$enable_dependency_tracking" != xno; then
4661  AMDEP_TRUE=
4662  AMDEP_FALSE='#'
4663else
4664  AMDEP_TRUE='#'
4665  AMDEP_FALSE=
4666fi
4667
4668
4669
4670
4671
4672
4673# AC_MSG_NOTICE([Beginning automake initialisation.])
4674# Stuff for automake
4675# test to see if srcdir already configured
4676if test "`cd $srcdir && pwd`" != "`pwd`" &&
4677   test -f $srcdir/config.status; then
4678  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4679echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4680   { (exit 1); exit 1; }; }
4681fi
4682
4683# test whether we have cygpath
4684if test -z "$CYGPATH_W"; then
4685  if (cygpath --version) >/dev/null 2>/dev/null; then
4686    CYGPATH_W='cygpath -w'
4687  else
4688    CYGPATH_W=echo
4689  fi
4690fi
4691
4692
4693# Define the identity of the package.
4694 PACKAGE='thirdpartysoplex'
4695 VERSION='1.6.1'
4696
4697
4698cat >>confdefs.h <<_ACEOF
4699#define PACKAGE "$PACKAGE"
4700_ACEOF
4701
4702
4703cat >>confdefs.h <<_ACEOF
4704#define VERSION "$VERSION"
4705_ACEOF
4706
4707# Some tools Automake needs.
4708
4709ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4710
4711
4712AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4713
4714
4715AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4716
4717
4718AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4719
4720
4721MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4722
4723install_sh=${install_sh-"$am_aux_dir/install-sh"}
4724
4725# Installed binaries are usually stripped using `strip' when the user
4726# run `make install-strip'.  However `strip' might not be the right
4727# tool to use in cross-compilation environments, therefore Automake
4728# will honor the `STRIP' environment variable to overrule this program.
4729if test "$cross_compiling" != no; then
4730  if test -n "$ac_tool_prefix"; then
4731  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4732set dummy ${ac_tool_prefix}strip; ac_word=$2
4733echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4735if test "${ac_cv_prog_STRIP+set}" = set; then
4736  echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738  if test -n "$STRIP"; then
4739  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746  for ac_exec_ext in '' $ac_executable_extensions; do
4747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750    break 2
4751  fi
4752done
4753done
4754
4755fi
4756fi
4757STRIP=$ac_cv_prog_STRIP
4758if test -n "$STRIP"; then
4759  echo "$as_me:$LINENO: result: $STRIP" >&5
4760echo "${ECHO_T}$STRIP" >&6
4761else
4762  echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6
4764fi
4765
4766fi
4767if test -z "$ac_cv_prog_STRIP"; then
4768  ac_ct_STRIP=$STRIP
4769  # Extract the first word of "strip", so it can be a program name with args.
4770set dummy strip; ac_word=$2
4771echo "$as_me:$LINENO: checking for $ac_word" >&5
4772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4774  echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776  if test -n "$ac_ct_STRIP"; then
4777  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  test -z "$as_dir" && as_dir=.
4784  for ac_exec_ext in '' $ac_executable_extensions; do
4785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786    ac_cv_prog_ac_ct_STRIP="strip"
4787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788    break 2
4789  fi
4790done
4791done
4792
4793  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4794fi
4795fi
4796ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4797if test -n "$ac_ct_STRIP"; then
4798  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4799echo "${ECHO_T}$ac_ct_STRIP" >&6
4800else
4801  echo "$as_me:$LINENO: result: no" >&5
4802echo "${ECHO_T}no" >&6
4803fi
4804
4805  STRIP=$ac_ct_STRIP
4806else
4807  STRIP="$ac_cv_prog_STRIP"
4808fi
4809
4810fi
4811INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4812
4813# We need awk for the "check" target.  The system "awk" is bad on
4814# some platforms.
4815# Always define AMTAR for backward compatibility.
4816
4817AMTAR=${AMTAR-"${am_missing_run}tar"}
4818
4819am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4820
4821
4822
4823
4824depcc="$CC"   am_compiler_list=
4825
4826echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4828if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4832  # We make a subdir and do the tests there.  Otherwise we can end up
4833  # making bogus files that we don't know about and never remove.  For
4834  # instance it was reported that on HP-UX the gcc test will end up
4835  # making a dummy file named `D' -- because `-MD' means `put the output
4836  # in D'.
4837  mkdir conftest.dir
4838  # Copy depcomp to subdir because otherwise we won't find it if we're
4839  # using a relative directory.
4840  cp "$am_depcomp" conftest.dir
4841  cd conftest.dir
4842  # We will build objects and dependencies in a subdirectory because
4843  # it helps to detect inapplicable dependency modes.  For instance
4844  # both Tru64's cc and ICC support -MD to output dependencies as a
4845  # side effect of compilation, but ICC will put the dependencies in
4846  # the current directory while Tru64 will put them in the object
4847  # directory.
4848  mkdir sub
4849
4850  am_cv_CC_dependencies_compiler_type=none
4851  if test "$am_compiler_list" = ""; then
4852     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4853  fi
4854  for depmode in $am_compiler_list; do
4855    # Setup a source with many dependencies, because some compilers
4856    # like to wrap large dependency lists on column 80 (with \), and
4857    # we should not choose a depcomp mode which is confused by this.
4858    #
4859    # We need to recreate these files for each test, as the compiler may
4860    # overwrite some of them when testing with obscure command lines.
4861    # This happens at least with the AIX C compiler.
4862    : > sub/conftest.c
4863    for i in 1 2 3 4 5 6; do
4864      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4866      # Solaris 8's {/usr,}/bin/sh.
4867      touch sub/conftst$i.h
4868    done
4869    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4870
4871    case $depmode in
4872    nosideeffect)
4873      # after this tag, mechanisms are not by side-effect, so they'll
4874      # only be used when explicitly requested
4875      if test "x$enable_dependency_tracking" = xyes; then
4876	continue
4877      else
4878	break
4879      fi
4880      ;;
4881    none) break ;;
4882    esac
4883    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4884    # mode.  It turns out that the SunPro C++ compiler does not properly
4885    # handle `-M -o', and we need to detect this.
4886    if depmode=$depmode \
4887       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4888       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4889       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4890         >/dev/null 2>conftest.err &&
4891       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4892       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4893       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4894      # icc doesn't choke on unknown options, it will just issue warnings
4895      # or remarks (even with -Werror).  So we grep stderr for any message
4896      # that says an option was ignored or not supported.
4897      # When given -MP, icc 7.0 and 7.1 complain thusly:
4898      #   icc: Command line warning: ignoring option '-M'; no argument required
4899      # The diagnosis changed in icc 8.0:
4900      #   icc: Command line remark: option '-MP' not supported
4901      if (grep 'ignoring option' conftest.err ||
4902          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4903        am_cv_CC_dependencies_compiler_type=$depmode
4904        break
4905      fi
4906    fi
4907  done
4908
4909  cd ..
4910  rm -rf conftest.dir
4911else
4912  am_cv_CC_dependencies_compiler_type=none
4913fi
4914
4915fi
4916echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4917echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4918CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4919
4920
4921
4922if
4923  test "x$enable_dependency_tracking" != xno \
4924  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4925  am__fastdepCC_TRUE=
4926  am__fastdepCC_FALSE='#'
4927else
4928  am__fastdepCC_TRUE='#'
4929  am__fastdepCC_FALSE=
4930fi
4931
4932
4933depcc="$CXX"  am_compiler_list=
4934
4935echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4936echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4937if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4938  echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4941  # We make a subdir and do the tests there.  Otherwise we can end up
4942  # making bogus files that we don't know about and never remove.  For
4943  # instance it was reported that on HP-UX the gcc test will end up
4944  # making a dummy file named `D' -- because `-MD' means `put the output
4945  # in D'.
4946  mkdir conftest.dir
4947  # Copy depcomp to subdir because otherwise we won't find it if we're
4948  # using a relative directory.
4949  cp "$am_depcomp" conftest.dir
4950  cd conftest.dir
4951  # We will build objects and dependencies in a subdirectory because
4952  # it helps to detect inapplicable dependency modes.  For instance
4953  # both Tru64's cc and ICC support -MD to output dependencies as a
4954  # side effect of compilation, but ICC will put the dependencies in
4955  # the current directory while Tru64 will put them in the object
4956  # directory.
4957  mkdir sub
4958
4959  am_cv_CXX_dependencies_compiler_type=none
4960  if test "$am_compiler_list" = ""; then
4961     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4962  fi
4963  for depmode in $am_compiler_list; do
4964    # Setup a source with many dependencies, because some compilers
4965    # like to wrap large dependency lists on column 80 (with \), and
4966    # we should not choose a depcomp mode which is confused by this.
4967    #
4968    # We need to recreate these files for each test, as the compiler may
4969    # overwrite some of them when testing with obscure command lines.
4970    # This happens at least with the AIX C compiler.
4971    : > sub/conftest.c
4972    for i in 1 2 3 4 5 6; do
4973      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975      # Solaris 8's {/usr,}/bin/sh.
4976      touch sub/conftst$i.h
4977    done
4978    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4979
4980    case $depmode in
4981    nosideeffect)
4982      # after this tag, mechanisms are not by side-effect, so they'll
4983      # only be used when explicitly requested
4984      if test "x$enable_dependency_tracking" = xyes; then
4985	continue
4986      else
4987	break
4988      fi
4989      ;;
4990    none) break ;;
4991    esac
4992    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4993    # mode.  It turns out that the SunPro C++ compiler does not properly
4994    # handle `-M -o', and we need to detect this.
4995    if depmode=$depmode \
4996       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4997       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4998       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4999         >/dev/null 2>conftest.err &&
5000       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5001       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5002       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5003      # icc doesn't choke on unknown options, it will just issue warnings
5004      # or remarks (even with -Werror).  So we grep stderr for any message
5005      # that says an option was ignored or not supported.
5006      # When given -MP, icc 7.0 and 7.1 complain thusly:
5007      #   icc: Command line warning: ignoring option '-M'; no argument required
5008      # The diagnosis changed in icc 8.0:
5009      #   icc: Command line remark: option '-MP' not supported
5010      if (grep 'ignoring option' conftest.err ||
5011          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5012        am_cv_CXX_dependencies_compiler_type=$depmode
5013        break
5014      fi
5015    fi
5016  done
5017
5018  cd ..
5019  rm -rf conftest.dir
5020else
5021  am_cv_CXX_dependencies_compiler_type=none
5022fi
5023
5024fi
5025echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5026echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5027CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5028
5029
5030
5031if
5032  test "x$enable_dependency_tracking" != xno \
5033  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5034  am__fastdepCXX_TRUE=
5035  am__fastdepCXX_FALSE='#'
5036else
5037  am__fastdepCXX_TRUE='#'
5038  am__fastdepCXX_FALSE=
5039fi
5040
5041
5042
5043echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5044echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5045    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5046if test "${enable_maintainer_mode+set}" = set; then
5047  enableval="$enable_maintainer_mode"
5048  USE_MAINTAINER_MODE=$enableval
5049else
5050  USE_MAINTAINER_MODE=no
5051fi;
5052  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5053echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5054
5055
5056if test $USE_MAINTAINER_MODE = yes; then
5057  MAINTAINER_MODE_TRUE=
5058  MAINTAINER_MODE_FALSE='#'
5059else
5060  MAINTAINER_MODE_TRUE='#'
5061  MAINTAINER_MODE_FALSE=
5062fi
5063
5064  MAINT=$MAINTAINER_MODE_TRUE
5065
5066
5067
5068coin_have_externals=no
5069if test "$enable_maintainer_mode" = yes; then
5070
5071  # If maintainer mode is chosen, we make sure that the correct versions
5072  # of the tools are used, and that we know where libtool.m4 is (to
5073  # recreate acinclude.m4)
5074
5075
5076  LIBTOOLM4=
5077  # Normally, $HOME
5078  AUTOTOOLS_DFLT=$HOME
5079
5080  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5081echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5082if test "${ac_cv_use_correct_autotools+set}" = set; then
5083  echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085  ac_cv_use_correct_autotools=check
5086fi
5087echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5088echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5089
5090  if test $ac_cv_use_correct_autotools = check; then
5091    ac_cv_use_correct_autotools=yes
5092    # Check if we have autoconf
5093    # Extract the first word of "autoconf", so it can be a program name with args.
5094set dummy autoconf; ac_word=$2
5095echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097if test "${ac_cv_prog_have_autoconf+set}" = set; then
5098  echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100  if test -n "$have_autoconf"; then
5101  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106  IFS=$as_save_IFS
5107  test -z "$as_dir" && as_dir=.
5108  for ac_exec_ext in '' $ac_executable_extensions; do
5109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110    ac_cv_prog_have_autoconf="yes"
5111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112    break 2
5113  fi
5114done
5115done
5116
5117  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5118fi
5119fi
5120have_autoconf=$ac_cv_prog_have_autoconf
5121if test -n "$have_autoconf"; then
5122  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5123echo "${ECHO_T}$have_autoconf" >&6
5124else
5125  echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6
5127fi
5128
5129    if test $have_autoconf = no; then
5130      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5131echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5132   { (exit 1); exit 1; }; }
5133    fi
5134
5135    # Check whether autoconf is the correct version
5136    correct_version='2.59'
5137    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5138    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5139echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5140    autoconf --version > confauto.out 2>&1
5141    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5142      echo "$as_me:$LINENO: result: yes" >&5
5143echo "${ECHO_T}yes" >&6
5144    else
5145      rm -f confauto.out
5146      echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5149echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5150   { (exit 1); exit 1; }; }
5151    fi
5152    rm -f confauto.out
5153
5154    # Check if the executable autoconf is picked up from the correct location
5155    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5156echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5157    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5158    autoconf_dir=`cd $autoconf_dir; pwd`
5159    if test x$AUTOTOOLS_DIR = x; then
5160      want_dir=$AUTOTOOLS_DFLT/bin
5161    else
5162      want_dir=$AUTOTOOLS_DIR/bin
5163    fi
5164    if test $autoconf_dir = `cd $want_dir; pwd`; then
5165      echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
5167    else
5168      rm -f confauto.out
5169      echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5172echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5173   { (exit 1); exit 1; }; }
5174    fi
5175
5176    # Check if we have automake
5177    # Extract the first word of "automake", so it can be a program name with args.
5178set dummy automake; ac_word=$2
5179echo "$as_me:$LINENO: checking for $ac_word" >&5
5180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181if test "${ac_cv_prog_have_automake+set}" = set; then
5182  echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184  if test -n "$have_automake"; then
5185  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5186else
5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190  IFS=$as_save_IFS
5191  test -z "$as_dir" && as_dir=.
5192  for ac_exec_ext in '' $ac_executable_extensions; do
5193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194    ac_cv_prog_have_automake="yes"
5195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196    break 2
5197  fi
5198done
5199done
5200
5201  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5202fi
5203fi
5204have_automake=$ac_cv_prog_have_automake
5205if test -n "$have_automake"; then
5206  echo "$as_me:$LINENO: result: $have_automake" >&5
5207echo "${ECHO_T}$have_automake" >&6
5208else
5209  echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211fi
5212
5213    if test $have_automake = no; then
5214      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5215echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5216   { (exit 1); exit 1; }; }
5217    fi
5218
5219    # Check whether automake is the correct version
5220    correct_version='1.9.6'
5221    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5222    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5223echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5224    automake --version > confauto.out 2>&1
5225    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5226      echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
5228    else
5229      rm -f confauto.out
5230      echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5233echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5234   { (exit 1); exit 1; }; }
5235    fi
5236    rm -f confauto.out
5237
5238    # Check if the executable automake is picked up from the correct location
5239    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5240echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5241    automake_dir=`which automake | sed -e 's=/automake=='`
5242    automake_dir=`cd $automake_dir; pwd`
5243    if test x$AUTOTOOLS_DIR = x; then
5244      want_dir=$AUTOTOOLS_DFLT/bin
5245    else
5246      want_dir=$AUTOTOOLS_DIR/bin
5247    fi
5248    if test $automake_dir = `cd $want_dir; pwd`; then
5249      echo "$as_me:$LINENO: result: yes" >&5
5250echo "${ECHO_T}yes" >&6
5251    else
5252      rm -f confauto.out
5253      echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
5255      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5256echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5257   { (exit 1); exit 1; }; }
5258    fi
5259
5260    # Check if this is the correct version of libtool (with escaped dots)
5261    if test x$AUTOTOOLS_DIR = x; then
5262      want_dir=$AUTOTOOLS_DFLT/share
5263    else
5264      want_dir=$AUTOTOOLS_DIR/share
5265    fi
5266    correct_version='1.5.22'
5267    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5268    if test -r $want_dir/libtool/ltmain.sh; then
5269  have_ltmain=yes
5270  :
5271else
5272  have_ltmain=no
5273  :
5274fi
5275
5276    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5277echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5278    if test $have_ltmain = yes; then
5279    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5280        echo "$as_me:$LINENO: result: yes" >&5
5281echo "${ECHO_T}yes" >&6
5282      else
5283        echo "$as_me:$LINENO: result: no" >&5
5284echo "${ECHO_T}no" >&6
5285        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5286echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5287   { (exit 1); exit 1; }; }
5288      fi
5289    else
5290      echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5293echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5294   { (exit 1); exit 1; }; }
5295    fi
5296  fi
5297
5298  # Check if we can find the libtool file
5299  if test x$AUTOTOOLS_DIR = x; then
5300    want_dir=$AUTOTOOLS_DFLT/share
5301  else
5302    want_dir=$AUTOTOOLS_DIR/share
5303  fi
5304  if test -r $want_dir/aclocal/libtool.m4; then
5305  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5306  :
5307else
5308  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5309echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5310   { (exit 1); exit 1; }; }
5311  :
5312fi
5313
5314
5315  # Check if we have an Dependencies file
5316  if test -r $srcdir/Dependencies; then
5317    coin_have_externals=yes
5318  fi
5319  # Check if subversion is installed and understands https
5320  # Extract the first word of "svn", so it can be a program name with args.
5321set dummy svn; ac_word=$2
5322echo "$as_me:$LINENO: checking for $ac_word" >&5
5323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324if test "${ac_cv_prog_have_svn+set}" = set; then
5325  echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327  if test -n "$have_svn"; then
5328  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335  for ac_exec_ext in '' $ac_executable_extensions; do
5336  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337    ac_cv_prog_have_svn="yes"
5338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339    break 2
5340  fi
5341done
5342done
5343
5344  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5345fi
5346fi
5347have_svn=$ac_cv_prog_have_svn
5348if test -n "$have_svn"; then
5349  echo "$as_me:$LINENO: result: $have_svn" >&5
5350echo "${ECHO_T}$have_svn" >&6
5351else
5352  echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354fi
5355
5356  if test x$have_svn = xyes; then
5357    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5358echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5359if test "${ac_cv_svn_understands_https+set}" = set; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362  svn --version > confauto.out 2>&1
5363                    if $EGREP https confauto.out >/dev/null 2>&1; then
5364                      ac_cv_svn_understands_https=yes
5365                    else
5366                      ac_cv_svn_understands_https=no
5367                      have_svn=no
5368                      ac_cv_prog_have_svn=no
5369                    fi
5370                    rm -f confauto.out
5371fi
5372echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5373echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5374  fi
5375
5376  # Find the location of the BuildTools directory
5377  BUILDTOOLSDIR=
5378  if test -r $srcdir/BuildTools/coin.m4; then
5379    BUILDTOOLSDIR=$srcdir/BuildTools
5380  else
5381    if test -r $srcdir/../BuildTools/coin.m4; then
5382      BUILDTOOLSDIR=$srcdir/../BuildTools
5383    else
5384      if test -r $srcdir/../../BuildTools/coin.m4; then
5385        BUILDTOOLSDIR=$srcdir/../../BuildTools
5386      else
5387        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5388echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5389   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5390      fi
5391    fi
5392  fi
5393
5394
5395  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5396  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5397    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5398  fi
5399
5400  # The following variable is set to the name of the directory where
5401  # the autotool scripts are located
5402
5403  AUX_DIR=$ac_aux_dir
5404fi
5405
5406# helpful variable for the base directory of this package
5407abs_source_dir=`cd $srcdir; pwd`
5408
5409
5410# Stuff for example Makefiles
5411if test x$prefix = xNONE; then
5412  full_prefix=$ac_default_prefix
5413else
5414  full_prefix=$prefix
5415fi
5416full_prefix=`cd $full_prefix ; pwd`
5417
5418abs_lib_dir=$full_prefix/lib
5419
5420abs_include_dir=$full_prefix/include
5421
5422abs_bin_dir=$full_prefix/bin
5423
5424
5425
5426if test $coin_have_externals = yes && test x$have_svn = xyes; then
5427  HAVE_EXTERNALS_TRUE=
5428  HAVE_EXTERNALS_FALSE='#'
5429else
5430  HAVE_EXTERNALS_TRUE='#'
5431  HAVE_EXTERNALS_FALSE=
5432fi
5433
5434
5435# AC_MSG_NOTICE([End automake initialisation.])
5436
5437
5438
5439LIBTOOL=
5440if test -f ../libtool; then
5441  coin_config_dir=..
5442  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5443fi
5444if test "x$LIBTOOL" = x; then
5445  if test -f ../../libtool; then
5446    coin_config_dir=../..
5447    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5448  fi
5449fi
5450
5451if test "x$LIBTOOL" = x; then
5452# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5453  # Stuff for libtool
5454  # Check whether --enable-shared or --disable-shared was given.
5455if test "${enable_shared+set}" = set; then
5456  enableval="$enable_shared"
5457  p=${PACKAGE-default}
5458    case $enableval in
5459    yes) enable_shared=yes ;;
5460    no) enable_shared=no ;;
5461    *)
5462      enable_shared=no
5463      # Look at the argument we got.  We use all the common list separators.
5464      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5465      for pkg in $enableval; do
5466	IFS="$lt_save_ifs"
5467	if test "X$pkg" = "X$p"; then
5468	  enable_shared=yes
5469	fi
5470      done
5471      IFS="$lt_save_ifs"
5472      ;;
5473    esac
5474else
5475  enable_shared=yes
5476fi;
5477
5478# Check whether --enable-fast-install or --disable-fast-install was given.
5479if test "${enable_fast_install+set}" = set; then
5480  enableval="$enable_fast_install"
5481  p=${PACKAGE-default}
5482    case $enableval in
5483    yes) enable_fast_install=yes ;;
5484    no) enable_fast_install=no ;;
5485    *)
5486      enable_fast_install=no
5487      # Look at the argument we got.  We use all the common list separators.
5488      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5489      for pkg in $enableval; do
5490	IFS="$lt_save_ifs"
5491	if test "X$pkg" = "X$p"; then
5492	  enable_fast_install=yes
5493	fi
5494      done
5495      IFS="$lt_save_ifs"
5496      ;;
5497    esac
5498else
5499  enable_fast_install=yes
5500fi;
5501
5502echo "$as_me:$LINENO: checking host system type" >&5
5503echo $ECHO_N "checking host system type... $ECHO_C" >&6
5504if test "${ac_cv_host+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  ac_cv_host_alias=$host_alias
5508test -z "$ac_cv_host_alias" &&
5509  ac_cv_host_alias=$ac_cv_build_alias
5510ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5511  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5512echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5513   { (exit 1); exit 1; }; }
5514
5515fi
5516echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5517echo "${ECHO_T}$ac_cv_host" >&6
5518host=$ac_cv_host
5519host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5520host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5521host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5522
5523
5524echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5525echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5526if test "${lt_cv_path_SED+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  # Loop through the user's path and test for sed and gsed.
5530# Then use that list of sed's as ones to test for truncation.
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534  IFS=$as_save_IFS
5535  test -z "$as_dir" && as_dir=.
5536  for lt_ac_prog in sed gsed; do
5537    for ac_exec_ext in '' $ac_executable_extensions; do
5538      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5539        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5540      fi
5541    done
5542  done
5543done
5544lt_ac_max=0
5545lt_ac_count=0
5546# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5547# along with /bin/sed that truncates output.
5548for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5549  test ! -f $lt_ac_sed && continue
5550  cat /dev/null > conftest.in
5551  lt_ac_count=0
5552  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5553  # Check for GNU sed and select it if it is found.
5554  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5555    lt_cv_path_SED=$lt_ac_sed
5556    break
5557  fi
5558  while true; do
5559    cat conftest.in conftest.in >conftest.tmp
5560    mv conftest.tmp conftest.in
5561    cp conftest.in conftest.nl
5562    echo >>conftest.nl
5563    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5564    cmp -s conftest.out conftest.nl || break
5565    # 10000 chars as input seems more than enough
5566    test $lt_ac_count -gt 10 && break
5567    lt_ac_count=`expr $lt_ac_count + 1`
5568    if test $lt_ac_count -gt $lt_ac_max; then
5569      lt_ac_max=$lt_ac_count
5570      lt_cv_path_SED=$lt_ac_sed
5571    fi
5572  done
5573done
5574
5575fi
5576
5577SED=$lt_cv_path_SED
5578echo "$as_me:$LINENO: result: $SED" >&5
5579echo "${ECHO_T}$SED" >&6
5580
5581
5582# Check whether --with-gnu-ld or --without-gnu-ld was given.
5583if test "${with_gnu_ld+set}" = set; then
5584  withval="$with_gnu_ld"
5585  test "$withval" = no || with_gnu_ld=yes
5586else
5587  with_gnu_ld=no
5588fi;
5589ac_prog=ld
5590if test "$GCC" = yes; then
5591  # Check if gcc -print-prog-name=ld gives a path.
5592  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5593echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5594  case $host in
5595  *-*-mingw*)
5596    # gcc leaves a trailing carriage return which upsets mingw
5597    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5598  *)
5599    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5600  esac
5601  case $ac_prog in
5602    # Accept absolute paths.
5603    [\\/]* | ?:[\\/]*)
5604      re_direlt='/[^/][^/]*/\.\./'
5605      # Canonicalize the pathname of ld
5606      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5607      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5608	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5609      done
5610      test -z "$LD" && LD="$ac_prog"
5611      ;;
5612  "")
5613    # If it fails, then pretend we aren't using GCC.
5614    ac_prog=ld
5615    ;;
5616  *)
5617    # If it is relative, then search for the first ld in PATH.
5618    with_gnu_ld=unknown
5619    ;;
5620  esac
5621elif test "$with_gnu_ld" = yes; then
5622  echo "$as_me:$LINENO: checking for GNU ld" >&5
5623echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5624else
5625  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5626echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5627fi
5628if test "${lt_cv_path_LD+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631  if test -z "$LD"; then
5632  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633  for ac_dir in $PATH; do
5634    IFS="$lt_save_ifs"
5635    test -z "$ac_dir" && ac_dir=.
5636    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5637      lt_cv_path_LD="$ac_dir/$ac_prog"
5638      # Check to see if the program is GNU ld.  I'd rather use --version,
5639      # but apparently some variants of GNU ld only accept -v.
5640      # Break only if it was the GNU/non-GNU ld that we prefer.
5641      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5642      *GNU* | *'with BFD'*)
5643	test "$with_gnu_ld" != no && break
5644	;;
5645      *)
5646	test "$with_gnu_ld" != yes && break
5647	;;
5648      esac
5649    fi
5650  done
5651  IFS="$lt_save_ifs"
5652else
5653  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5654fi
5655fi
5656
5657LD="$lt_cv_path_LD"
5658if test -n "$LD"; then
5659  echo "$as_me:$LINENO: result: $LD" >&5
5660echo "${ECHO_T}$LD" >&6
5661else
5662  echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664fi
5665test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5666echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5667   { (exit 1); exit 1; }; }
5668echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5669echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5670if test "${lt_cv_prog_gnu_ld+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5674case `$LD -v 2>&1 </dev/null` in
5675*GNU* | *'with BFD'*)
5676  lt_cv_prog_gnu_ld=yes
5677  ;;
5678*)
5679  lt_cv_prog_gnu_ld=no
5680  ;;
5681esac
5682fi
5683echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5684echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5685with_gnu_ld=$lt_cv_prog_gnu_ld
5686
5687
5688echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5689echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5690if test "${lt_cv_ld_reload_flag+set}" = set; then
5691  echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693  lt_cv_ld_reload_flag='-r'
5694fi
5695echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5696echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5697reload_flag=$lt_cv_ld_reload_flag
5698case $reload_flag in
5699"" | " "*) ;;
5700*) reload_flag=" $reload_flag" ;;
5701esac
5702reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703case $host_os in
5704  darwin*)
5705    if test "$GCC" = yes; then
5706      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5707    else
5708      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5709    fi
5710    ;;
5711esac
5712
5713echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5714echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5715if test "${lt_cv_path_NM+set}" = set; then
5716  echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718  if test -n "$NM"; then
5719  # Let the user override the test.
5720  lt_cv_path_NM="$NM"
5721else
5722  lt_nm_to_check="${ac_tool_prefix}nm"
5723  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5724    lt_nm_to_check="$lt_nm_to_check nm"
5725  fi
5726  for lt_tmp_nm in $lt_nm_to_check; do
5727    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5728    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5729      IFS="$lt_save_ifs"
5730      test -z "$ac_dir" && ac_dir=.
5731      tmp_nm="$ac_dir/$lt_tmp_nm"
5732      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5733	# Check to see if the nm accepts a BSD-compat flag.
5734	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5735	#   nm: unknown option "B" ignored
5736	# Tru64's nm complains that /dev/null is an invalid object file
5737	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5738	*/dev/null* | *'Invalid file or object type'*)
5739	  lt_cv_path_NM="$tmp_nm -B"
5740	  break
5741	  ;;
5742	*)
5743	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5744	  */dev/null*)
5745	    lt_cv_path_NM="$tmp_nm -p"
5746	    break
5747	    ;;
5748	  *)
5749	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5750	    continue # so that we can try to find one that supports BSD flags
5751	    ;;
5752	  esac
5753	  ;;
5754	esac
5755      fi
5756    done
5757    IFS="$lt_save_ifs"
5758  done
5759  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5760fi
5761fi
5762echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5763echo "${ECHO_T}$lt_cv_path_NM" >&6
5764NM="$lt_cv_path_NM"
5765
5766echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5767echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5768if test "${lt_cv_deplibs_check_method+set}" = set; then
5769  echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771  lt_cv_file_magic_cmd='$MAGIC_CMD'
5772lt_cv_file_magic_test_file=
5773lt_cv_deplibs_check_method='unknown'
5774# Need to set the preceding variable on all platforms that support
5775# interlibrary dependencies.
5776# 'none' -- dependencies not supported.
5777# `unknown' -- same as none, but documents that we really don't know.
5778# 'pass_all' -- all dependencies passed with no checks.
5779# 'test_compile' -- check by making test program.
5780# 'file_magic [[regex]]' -- check by looking for files in library path
5781# which responds to the $file_magic_cmd with a given extended regex.
5782# If you have `file' or equivalent on your system and you're not sure
5783# whether `pass_all' will *always* work, you probably want this one.
5784
5785case $host_os in
5786aix4* | aix5*)
5787  lt_cv_deplibs_check_method=pass_all
5788  ;;
5789
5790beos*)
5791  lt_cv_deplibs_check_method=pass_all
5792  ;;
5793
5794bsdi[45]*)
5795  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5796  lt_cv_file_magic_cmd='/usr/bin/file -L'
5797  lt_cv_file_magic_test_file=/shlib/libc.so
5798  ;;
5799
5800cygwin*)
5801  # func_win32_libid is a shell function defined in ltmain.sh
5802  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5803  lt_cv_file_magic_cmd='func_win32_libid'
5804  ;;
5805
5806mingw* | pw32*)
5807  # Base MSYS/MinGW do not provide the 'file' command needed by
5808  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5809  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5810  lt_cv_file_magic_cmd='$OBJDUMP -f'
5811  ;;
5812
5813darwin* | rhapsody*)
5814  lt_cv_deplibs_check_method=pass_all
5815  ;;
5816
5817freebsd* | kfreebsd*-gnu | dragonfly*)
5818  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5819    case $host_cpu in
5820    i*86 )
5821      # Not sure whether the presence of OpenBSD here was a mistake.
5822      # Let's accept both of them until this is cleared up.
5823      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5824      lt_cv_file_magic_cmd=/usr/bin/file
5825      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5826      ;;
5827    esac
5828  else
5829    lt_cv_deplibs_check_method=pass_all
5830  fi
5831  ;;
5832
5833gnu*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837hpux10.20* | hpux11*)
5838  lt_cv_file_magic_cmd=/usr/bin/file
5839  case $host_cpu in
5840  ia64*)
5841    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5842    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5843    ;;
5844  hppa*64*)
5845    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]'
5846    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5847    ;;
5848  *)
5849    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5850    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5851    ;;
5852  esac
5853  ;;
5854
5855interix3*)
5856  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5857  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5858  ;;
5859
5860irix5* | irix6* | nonstopux*)
5861  case $LD in
5862  *-32|*"-32 ") libmagic=32-bit;;
5863  *-n32|*"-n32 ") libmagic=N32;;
5864  *-64|*"-64 ") libmagic=64-bit;;
5865  *) libmagic=never-match;;
5866  esac
5867  lt_cv_deplibs_check_method=pass_all
5868  ;;
5869
5870# This must be Linux ELF.
5871linux*)
5872  lt_cv_deplibs_check_method=pass_all
5873  ;;
5874
5875netbsd*)
5876  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5877    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5878  else
5879    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5880  fi
5881  ;;
5882
5883newos6*)
5884  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5885  lt_cv_file_magic_cmd=/usr/bin/file
5886  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5887  ;;
5888
5889nto-qnx*)
5890  lt_cv_deplibs_check_method=unknown
5891  ;;
5892
5893openbsd*)
5894  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5896  else
5897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5898  fi
5899  ;;
5900
5901osf3* | osf4* | osf5*)
5902  lt_cv_deplibs_check_method=pass_all
5903  ;;
5904
5905solaris*)
5906  lt_cv_deplibs_check_method=pass_all
5907  ;;
5908
5909sysv4 | sysv4.3*)
5910  case $host_vendor in
5911  motorola)
5912    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]'
5913    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5914    ;;
5915  ncr)
5916    lt_cv_deplibs_check_method=pass_all
5917    ;;
5918  sequent)
5919    lt_cv_file_magic_cmd='/bin/file'
5920    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5921    ;;
5922  sni)
5923    lt_cv_file_magic_cmd='/bin/file'
5924    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5925    lt_cv_file_magic_test_file=/lib/libc.so
5926    ;;
5927  siemens)
5928    lt_cv_deplibs_check_method=pass_all
5929    ;;
5930  pc)
5931    lt_cv_deplibs_check_method=pass_all
5932    ;;
5933  esac
5934  ;;
5935
5936sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5937  lt_cv_deplibs_check_method=pass_all
5938  ;;
5939esac
5940
5941fi
5942echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5943echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5944file_magic_cmd=$lt_cv_file_magic_cmd
5945deplibs_check_method=$lt_cv_deplibs_check_method
5946test -z "$deplibs_check_method" && deplibs_check_method=unknown
5947
5948
5949
5950
5951# If no C compiler was specified, use CC.
5952LTCC=${LTCC-"$CC"}
5953
5954# If no C compiler flags were specified, use CFLAGS.
5955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5956
5957# Allow CC to be a program name with arguments.
5958compiler=$CC
5959
5960# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5961if test "${enable_libtool_lock+set}" = set; then
5962  enableval="$enable_libtool_lock"
5963
5964fi;
5965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5966
5967# Some flags need to be propagated to the compiler or linker for good
5968# libtool support.
5969case $host in
5970ia64-*-hpux*)
5971  # Find out which ABI we are using.
5972  echo 'int i;' > conftest.$ac_ext
5973  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974  (eval $ac_compile) 2>&5
5975  ac_status=$?
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); }; then
5978    case `/usr/bin/file conftest.$ac_objext` in
5979    *ELF-32*)
5980      HPUX_IA64_MODE="32"
5981      ;;
5982    *ELF-64*)
5983      HPUX_IA64_MODE="64"
5984      ;;
5985    esac
5986  fi
5987  rm -rf conftest*
5988  ;;
5989*-*-irix6*)
5990  # Find out which ABI we are using.
5991  echo '#line 5991 "configure"' > conftest.$ac_ext
5992  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993  (eval $ac_compile) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); }; then
5997   if test "$lt_cv_prog_gnu_ld" = yes; then
5998    case `/usr/bin/file conftest.$ac_objext` in
5999    *32-bit*)
6000      LD="${LD-ld} -melf32bsmip"
6001      ;;
6002    *N32*)
6003      LD="${LD-ld} -melf32bmipn32"
6004      ;;
6005    *64-bit*)
6006      LD="${LD-ld} -melf64bmip"
6007      ;;
6008    esac
6009   else
6010    case `/usr/bin/file conftest.$ac_objext` in
6011    *32-bit*)
6012      LD="${LD-ld} -32"
6013      ;;
6014    *N32*)
6015      LD="${LD-ld} -n32"
6016      ;;
6017    *64-bit*)
6018      LD="${LD-ld} -64"
6019      ;;
6020    esac
6021   fi
6022  fi
6023  rm -rf conftest*
6024  ;;
6025
6026x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6027  # Find out which ABI we are using.
6028  echo 'int i;' > conftest.$ac_ext
6029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030  (eval $ac_compile) 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }; then
6034    case `/usr/bin/file conftest.o` in
6035    *32-bit*)
6036      case $host in
6037        x86_64-*linux*)
6038          LD="${LD-ld} -m elf_i386"
6039          ;;
6040        ppc64-*linux*|powerpc64-*linux*)
6041          LD="${LD-ld} -m elf32ppclinux"
6042          ;;
6043        s390x-*linux*)
6044          LD="${LD-ld} -m elf_s390"
6045          ;;
6046        sparc64-*linux*)
6047          LD="${LD-ld} -m elf32_sparc"
6048          ;;
6049      esac
6050      ;;
6051    *64-bit*)
6052      case $host in
6053        x86_64-*linux*)
6054          LD="${LD-ld} -m elf_x86_64"
6055          ;;
6056        ppc*-*linux*|powerpc*-*linux*)
6057          LD="${LD-ld} -m elf64ppc"
6058          ;;
6059        s390*-*linux*)
6060          LD="${LD-ld} -m elf64_s390"
6061          ;;
6062        sparc*-*linux*)
6063          LD="${LD-ld} -m elf64_sparc"
6064          ;;
6065      esac
6066      ;;
6067    esac
6068  fi
6069  rm -rf conftest*
6070  ;;
6071
6072*-*-sco3.2v5*)
6073  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6074  SAVE_CFLAGS="$CFLAGS"
6075  CFLAGS="$CFLAGS -belf"
6076  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6077echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6078if test "${lt_cv_cc_needs_belf+set}" = set; then
6079  echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081  ac_ext=c
6082ac_cpp='$CPP $CPPFLAGS'
6083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087     cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h.  */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h.  */
6093
6094int
6095main ()
6096{
6097
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104  (eval $ac_link) 2>conftest.er1
6105  ac_status=$?
6106  grep -v '^ *+' conftest.er1 >conftest.err
6107  rm -f conftest.er1
6108  cat conftest.err >&5
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } &&
6111	 { ac_try='test -z "$ac_c_werror_flag"
6112			 || test ! -s conftest.err'
6113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114  (eval $ac_try) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }; } &&
6118	 { ac_try='test -s conftest$ac_exeext'
6119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120  (eval $ac_try) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); }; }; then
6124  lt_cv_cc_needs_belf=yes
6125else
6126  echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129lt_cv_cc_needs_belf=no
6130fi
6131rm -f conftest.err conftest.$ac_objext \
6132      conftest$ac_exeext conftest.$ac_ext
6133     ac_ext=c
6134ac_cpp='$CPP $CPPFLAGS'
6135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139fi
6140echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6141echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6142  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6143    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6144    CFLAGS="$SAVE_CFLAGS"
6145  fi
6146  ;;
6147sparc*-*solaris*)
6148  # Find out which ABI we are using.
6149  echo 'int i;' > conftest.$ac_ext
6150  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6151  (eval $ac_compile) 2>&5
6152  ac_status=$?
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); }; then
6155    case `/usr/bin/file conftest.o` in
6156    *64-bit*)
6157      case $lt_cv_prog_gnu_ld in
6158      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6159      *)    LD="${LD-ld} -64" ;;
6160      esac
6161      ;;
6162    esac
6163  fi
6164  rm -rf conftest*
6165  ;;
6166
6167
6168esac
6169
6170need_locks="$enable_libtool_lock"
6171
6172
6173ac_ext=c
6174ac_cpp='$CPP $CPPFLAGS'
6175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6180# On Suns, sometimes $CPP names a directory.
6181if test -n "$CPP" && test -d "$CPP"; then
6182  CPP=
6183fi
6184if test -z "$CPP"; then
6185  if test "${ac_cv_prog_CPP+set}" = set; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188      # Double quotes because CPP needs to be expanded
6189    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6190    do
6191      ac_preproc_ok=false
6192for ac_c_preproc_warn_flag in '' yes
6193do
6194  # Use a header file that comes with gcc, so configuring glibc
6195  # with a fresh cross-compiler works.
6196  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6197  # <limits.h> exists even on freestanding compilers.
6198  # On the NeXT, cc -E runs the code through the compiler's parser,
6199  # not just through cpp. "Syntax error" is here to catch this case.
6200  cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h.  */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h.  */
6206#ifdef __STDC__
6207# include <limits.h>
6208#else
6209# include <assert.h>
6210#endif
6211		     Syntax error
6212_ACEOF
6213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6214  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215  ac_status=$?
6216  grep -v '^ *+' conftest.er1 >conftest.err
6217  rm -f conftest.er1
6218  cat conftest.err >&5
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); } >/dev/null; then
6221  if test -s conftest.err; then
6222    ac_cpp_err=$ac_c_preproc_warn_flag
6223    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6224  else
6225    ac_cpp_err=
6226  fi
6227else
6228  ac_cpp_err=yes
6229fi
6230if test -z "$ac_cpp_err"; then
6231  :
6232else
6233  echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236  # Broken: fails on valid input.
6237continue
6238fi
6239rm -f conftest.err conftest.$ac_ext
6240
6241  # OK, works on sane cases.  Now check whether non-existent headers
6242  # can be detected and how.
6243  cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h.  */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h.  */
6249#include <ac_nonexistent.h>
6250_ACEOF
6251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6252  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6253  ac_status=$?
6254  grep -v '^ *+' conftest.er1 >conftest.err
6255  rm -f conftest.er1
6256  cat conftest.err >&5
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); } >/dev/null; then
6259  if test -s conftest.err; then
6260    ac_cpp_err=$ac_c_preproc_warn_flag
6261    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6262  else
6263    ac_cpp_err=
6264  fi
6265else
6266  ac_cpp_err=yes
6267fi
6268if test -z "$ac_cpp_err"; then
6269  # Broken: success on invalid input.
6270continue
6271else
6272  echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275  # Passes both tests.
6276ac_preproc_ok=:
6277break
6278fi
6279rm -f conftest.err conftest.$ac_ext
6280
6281done
6282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283rm -f conftest.err conftest.$ac_ext
6284if $ac_preproc_ok; then
6285  break
6286fi
6287
6288    done
6289    ac_cv_prog_CPP=$CPP
6290
6291fi
6292  CPP=$ac_cv_prog_CPP
6293else
6294  ac_cv_prog_CPP=$CPP
6295fi
6296echo "$as_me:$LINENO: result: $CPP" >&5
6297echo "${ECHO_T}$CPP" >&6
6298ac_preproc_ok=false
6299for ac_c_preproc_warn_flag in '' yes
6300do
6301  # Use a header file that comes with gcc, so configuring glibc
6302  # with a fresh cross-compiler works.
6303  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304  # <limits.h> exists even on freestanding compilers.
6305  # On the NeXT, cc -E runs the code through the compiler's parser,
6306  # not just through cpp. "Syntax error" is here to catch this case.
6307  cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h.  */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h.  */
6313#ifdef __STDC__
6314# include <limits.h>
6315#else
6316# include <assert.h>
6317#endif
6318		     Syntax error
6319_ACEOF
6320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322  ac_status=$?
6323  grep -v '^ *+' conftest.er1 >conftest.err
6324  rm -f conftest.er1
6325  cat conftest.err >&5
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); } >/dev/null; then
6328  if test -s conftest.err; then
6329    ac_cpp_err=$ac_c_preproc_warn_flag
6330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6331  else
6332    ac_cpp_err=
6333  fi
6334else
6335  ac_cpp_err=yes
6336fi
6337if test -z "$ac_cpp_err"; then
6338  :
6339else
6340  echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343  # Broken: fails on valid input.
6344continue
6345fi
6346rm -f conftest.err conftest.$ac_ext
6347
6348  # OK, works on sane cases.  Now check whether non-existent headers
6349  # can be detected and how.
6350  cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h.  */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h.  */
6356#include <ac_nonexistent.h>
6357_ACEOF
6358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6360  ac_status=$?
6361  grep -v '^ *+' conftest.er1 >conftest.err
6362  rm -f conftest.er1
6363  cat conftest.err >&5
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } >/dev/null; then
6366  if test -s conftest.err; then
6367    ac_cpp_err=$ac_c_preproc_warn_flag
6368    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6369  else
6370    ac_cpp_err=
6371  fi
6372else
6373  ac_cpp_err=yes
6374fi
6375if test -z "$ac_cpp_err"; then
6376  # Broken: success on invalid input.
6377continue
6378else
6379  echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382  # Passes both tests.
6383ac_preproc_ok=:
6384break
6385fi
6386rm -f conftest.err conftest.$ac_ext
6387
6388done
6389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6390rm -f conftest.err conftest.$ac_ext
6391if $ac_preproc_ok; then
6392  :
6393else
6394  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6395See \`config.log' for more details." >&5
6396echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6397See \`config.log' for more details." >&2;}
6398   { (exit 1); exit 1; }; }
6399fi
6400
6401ac_ext=c
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407
6408echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6409echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6410if test "${ac_cv_header_stdc+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h.  */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h.  */
6419#include <stdlib.h>
6420#include <stdarg.h>
6421#include <string.h>
6422#include <float.h>
6423
6424int
6425main ()
6426{
6427
6428  ;
6429  return 0;
6430}
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434  (eval $ac_compile) 2>conftest.er1
6435  ac_status=$?
6436  grep -v '^ *+' conftest.er1 >conftest.err
6437  rm -f conftest.er1
6438  cat conftest.err >&5
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); } &&
6441	 { ac_try='test -z "$ac_c_werror_flag"
6442			 || test ! -s conftest.err'
6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444  (eval $ac_try) 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }; } &&
6448	 { ac_try='test -s conftest.$ac_objext'
6449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450  (eval $ac_try) 2>&5
6451  ac_status=$?
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); }; }; then
6454  ac_cv_header_stdc=yes
6455else
6456  echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
6459ac_cv_header_stdc=no
6460fi
6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462
6463if test $ac_cv_header_stdc = yes; then
6464  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6465  cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h.  */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h.  */
6471#include <string.h>
6472
6473_ACEOF
6474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475  $EGREP "memchr" >/dev/null 2>&1; then
6476  :
6477else
6478  ac_cv_header_stdc=no
6479fi
6480rm -f conftest*
6481
6482fi
6483
6484if test $ac_cv_header_stdc = yes; then
6485  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6486  cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h.  */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h.  */
6492#include <stdlib.h>
6493
6494_ACEOF
6495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496  $EGREP "free" >/dev/null 2>&1; then
6497  :
6498else
6499  ac_cv_header_stdc=no
6500fi
6501rm -f conftest*
6502
6503fi
6504
6505if test $ac_cv_header_stdc = yes; then
6506  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6507  if test "$cross_compiling" = yes; then
6508  :
6509else
6510  cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516#include <ctype.h>
6517#if ((' ' & 0x0FF) == 0x020)
6518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6520#else
6521# define ISLOWER(c) \
6522		   (('a' <= (c) && (c) <= 'i') \
6523		     || ('j' <= (c) && (c) <= 'r') \
6524		     || ('s' <= (c) && (c) <= 'z'))
6525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6526#endif
6527
6528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6529int
6530main ()
6531{
6532  int i;
6533  for (i = 0; i < 256; i++)
6534    if (XOR (islower (i), ISLOWER (i))
6535	|| toupper (i) != TOUPPER (i))
6536      exit(2);
6537  exit (0);
6538}
6539_ACEOF
6540rm -f conftest$ac_exeext
6541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542  (eval $ac_link) 2>&5
6543  ac_status=$?
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547  (eval $ac_try) 2>&5
6548  ac_status=$?
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); }; }; then
6551  :
6552else
6553  echo "$as_me: program exited with status $ac_status" >&5
6554echo "$as_me: failed program was:" >&5
6555sed 's/^/| /' conftest.$ac_ext >&5
6556
6557( exit $ac_status )
6558ac_cv_header_stdc=no
6559fi
6560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6561fi
6562fi
6563fi
6564echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6565echo "${ECHO_T}$ac_cv_header_stdc" >&6
6566if test $ac_cv_header_stdc = yes; then
6567
6568cat >>confdefs.h <<\_ACEOF
6569#define STDC_HEADERS 1
6570_ACEOF
6571
6572fi
6573
6574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6585		  inttypes.h stdint.h unistd.h
6586do
6587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6588echo "$as_me:$LINENO: checking for $ac_header" >&5
6589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591  echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593  cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h.  */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h.  */
6599$ac_includes_default
6600
6601#include <$ac_header>
6602_ACEOF
6603rm -f conftest.$ac_objext
6604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605  (eval $ac_compile) 2>conftest.er1
6606  ac_status=$?
6607  grep -v '^ *+' conftest.er1 >conftest.err
6608  rm -f conftest.er1
6609  cat conftest.err >&5
6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611  (exit $ac_status); } &&
6612	 { ac_try='test -z "$ac_c_werror_flag"
6613			 || test ! -s conftest.err'
6614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615  (eval $ac_try) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; } &&
6619	 { ac_try='test -s conftest.$ac_objext'
6620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621  (eval $ac_try) 2>&5
6622  ac_status=$?
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); }; }; then
6625  eval "$as_ac_Header=yes"
6626else
6627  echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630eval "$as_ac_Header=no"
6631fi
6632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6633fi
6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636if test `eval echo '${'$as_ac_Header'}'` = yes; then
6637  cat >>confdefs.h <<_ACEOF
6638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639_ACEOF
6640
6641fi
6642
6643done
6644
6645
6646
6647for ac_header in dlfcn.h
6648do
6649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6650if eval "test \"\${$as_ac_Header+set}\" = set"; then
6651  echo "$as_me:$LINENO: checking for $ac_header" >&5
6652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6653if eval "test \"\${$as_ac_Header+set}\" = set"; then
6654  echo $ECHO_N "(cached) $ECHO_C" >&6
6655fi
6656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6658else
6659  # Is the header compilable?
6660echo "$as_me:$LINENO: checking $ac_header usability" >&5
6661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6662cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h.  */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h.  */
6668$ac_includes_default
6669#include <$ac_header>
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673  (eval $ac_compile) 2>conftest.er1
6674  ac_status=$?
6675  grep -v '^ *+' conftest.er1 >conftest.err
6676  rm -f conftest.er1
6677  cat conftest.err >&5
6678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679  (exit $ac_status); } &&
6680	 { ac_try='test -z "$ac_c_werror_flag"
6681			 || test ! -s conftest.err'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; } &&
6687	 { ac_try='test -s conftest.$ac_objext'
6688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689  (eval $ac_try) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; }; then
6693  ac_header_compiler=yes
6694else
6695  echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
6697
6698ac_header_compiler=no
6699fi
6700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6702echo "${ECHO_T}$ac_header_compiler" >&6
6703
6704# Is the header present?
6705echo "$as_me:$LINENO: checking $ac_header presence" >&5
6706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6707cat >conftest.$ac_ext <<_ACEOF
6708/* confdefs.h.  */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h.  */
6713#include <$ac_header>
6714_ACEOF
6715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6717  ac_status=$?
6718  grep -v '^ *+' conftest.er1 >conftest.err
6719  rm -f conftest.er1
6720  cat conftest.err >&5
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); } >/dev/null; then
6723  if test -s conftest.err; then
6724    ac_cpp_err=$ac_c_preproc_warn_flag
6725    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6726  else
6727    ac_cpp_err=
6728  fi
6729else
6730  ac_cpp_err=yes
6731fi
6732if test -z "$ac_cpp_err"; then
6733  ac_header_preproc=yes
6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738  ac_header_preproc=no
6739fi
6740rm -f conftest.err conftest.$ac_ext
6741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6742echo "${ECHO_T}$ac_header_preproc" >&6
6743
6744# So?  What about this header?
6745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6746  yes:no: )
6747    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6749    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6751    ac_header_preproc=yes
6752    ;;
6753  no:yes:* )
6754    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6756    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6757echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6758    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6760    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6761echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6764    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6766    (
6767      cat <<\_ASBOX
6768## --------------------------------------------------------------- ##
6769## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6770## --------------------------------------------------------------- ##
6771_ASBOX
6772    ) |
6773      sed "s/^/$as_me: WARNING:     /" >&2
6774    ;;
6775esac
6776echo "$as_me:$LINENO: checking for $ac_header" >&5
6777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6778if eval "test \"\${$as_ac_Header+set}\" = set"; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  eval "$as_ac_Header=\$ac_header_preproc"
6782fi
6783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6785
6786fi
6787if test `eval echo '${'$as_ac_Header'}'` = yes; then
6788  cat >>confdefs.h <<_ACEOF
6789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6790_ACEOF
6791
6792fi
6793
6794done
6795
6796
6797
6798if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6799    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6800    (test "X$CXX" != "Xg++"))) ; then
6801  ac_ext=cc
6802ac_cpp='$CXXCPP $CPPFLAGS'
6803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6806echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6807echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6808if test -z "$CXXCPP"; then
6809  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6810  echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812      # Double quotes because CXXCPP needs to be expanded
6813    for CXXCPP in "$CXX -E" "/lib/cpp"
6814    do
6815      ac_preproc_ok=false
6816for ac_cxx_preproc_warn_flag in '' yes
6817do
6818  # Use a header file that comes with gcc, so configuring glibc
6819  # with a fresh cross-compiler works.
6820  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6821  # <limits.h> exists even on freestanding compilers.
6822  # On the NeXT, cc -E runs the code through the compiler's parser,
6823  # not just through cpp. "Syntax error" is here to catch this case.
6824  cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h.  */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h.  */
6830#ifdef __STDC__
6831# include <limits.h>
6832#else
6833# include <assert.h>
6834#endif
6835		     Syntax error
6836_ACEOF
6837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6838  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6839  ac_status=$?
6840  grep -v '^ *+' conftest.er1 >conftest.err
6841  rm -f conftest.er1
6842  cat conftest.err >&5
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } >/dev/null; then
6845  if test -s conftest.err; then
6846    ac_cpp_err=$ac_cxx_preproc_warn_flag
6847    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6848  else
6849    ac_cpp_err=
6850  fi
6851else
6852  ac_cpp_err=yes
6853fi
6854if test -z "$ac_cpp_err"; then
6855  :
6856else
6857  echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860  # Broken: fails on valid input.
6861continue
6862fi
6863rm -f conftest.err conftest.$ac_ext
6864
6865  # OK, works on sane cases.  Now check whether non-existent headers
6866  # can be detected and how.
6867  cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h.  */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h.  */
6873#include <ac_nonexistent.h>
6874_ACEOF
6875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6876  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6877  ac_status=$?
6878  grep -v '^ *+' conftest.er1 >conftest.err
6879  rm -f conftest.er1
6880  cat conftest.err >&5
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); } >/dev/null; then
6883  if test -s conftest.err; then
6884    ac_cpp_err=$ac_cxx_preproc_warn_flag
6885    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6886  else
6887    ac_cpp_err=
6888  fi
6889else
6890  ac_cpp_err=yes
6891fi
6892if test -z "$ac_cpp_err"; then
6893  # Broken: success on invalid input.
6894continue
6895else
6896  echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899  # Passes both tests.
6900ac_preproc_ok=:
6901break
6902fi
6903rm -f conftest.err conftest.$ac_ext
6904
6905done
6906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6907rm -f conftest.err conftest.$ac_ext
6908if $ac_preproc_ok; then
6909  break
6910fi
6911
6912    done
6913    ac_cv_prog_CXXCPP=$CXXCPP
6914
6915fi
6916  CXXCPP=$ac_cv_prog_CXXCPP
6917else
6918  ac_cv_prog_CXXCPP=$CXXCPP
6919fi
6920echo "$as_me:$LINENO: result: $CXXCPP" >&5
6921echo "${ECHO_T}$CXXCPP" >&6
6922ac_preproc_ok=false
6923for ac_cxx_preproc_warn_flag in '' yes
6924do
6925  # Use a header file that comes with gcc, so configuring glibc
6926  # with a fresh cross-compiler works.
6927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6928  # <limits.h> exists even on freestanding compilers.
6929  # On the NeXT, cc -E runs the code through the compiler's parser,
6930  # not just through cpp. "Syntax error" is here to catch this case.
6931  cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h.  */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h.  */
6937#ifdef __STDC__
6938# include <limits.h>
6939#else
6940# include <assert.h>
6941#endif
6942		     Syntax error
6943_ACEOF
6944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6946  ac_status=$?
6947  grep -v '^ *+' conftest.er1 >conftest.err
6948  rm -f conftest.er1
6949  cat conftest.err >&5
6950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951  (exit $ac_status); } >/dev/null; then
6952  if test -s conftest.err; then
6953    ac_cpp_err=$ac_cxx_preproc_warn_flag
6954    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6955  else
6956    ac_cpp_err=
6957  fi
6958else
6959  ac_cpp_err=yes
6960fi
6961if test -z "$ac_cpp_err"; then
6962  :
6963else
6964  echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
6967  # Broken: fails on valid input.
6968continue
6969fi
6970rm -f conftest.err conftest.$ac_ext
6971
6972  # OK, works on sane cases.  Now check whether non-existent headers
6973  # can be detected and how.
6974  cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h.  */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h.  */
6980#include <ac_nonexistent.h>
6981_ACEOF
6982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6984  ac_status=$?
6985  grep -v '^ *+' conftest.er1 >conftest.err
6986  rm -f conftest.er1
6987  cat conftest.err >&5
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); } >/dev/null; then
6990  if test -s conftest.err; then
6991    ac_cpp_err=$ac_cxx_preproc_warn_flag
6992    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6993  else
6994    ac_cpp_err=
6995  fi
6996else
6997  ac_cpp_err=yes
6998fi
6999if test -z "$ac_cpp_err"; then
7000  # Broken: success on invalid input.
7001continue
7002else
7003  echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006  # Passes both tests.
7007ac_preproc_ok=:
7008break
7009fi
7010rm -f conftest.err conftest.$ac_ext
7011
7012done
7013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014rm -f conftest.err conftest.$ac_ext
7015if $ac_preproc_ok; then
7016  :
7017else
7018  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7019See \`config.log' for more details." >&5
7020echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7021See \`config.log' for more details." >&2;}
7022   { (exit 1); exit 1; }; }
7023fi
7024
7025ac_ext=cc
7026ac_cpp='$CXXCPP $CPPFLAGS'
7027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7030
7031fi
7032
7033ac_ext=f
7034ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7035ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7037if test -n "$ac_tool_prefix"; then
7038  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7039  do
7040    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7042echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7044if test "${ac_cv_prog_F77+set}" = set; then
7045  echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047  if test -n "$F77"; then
7048  ac_cv_prog_F77="$F77" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055  for ac_exec_ext in '' $ac_executable_extensions; do
7056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059    break 2
7060  fi
7061done
7062done
7063
7064fi
7065fi
7066F77=$ac_cv_prog_F77
7067if test -n "$F77"; then
7068  echo "$as_me:$LINENO: result: $F77" >&5
7069echo "${ECHO_T}$F77" >&6
7070else
7071  echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6
7073fi
7074
7075    test -n "$F77" && break
7076  done
7077fi
7078if test -z "$F77"; then
7079  ac_ct_F77=$F77
7080  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7081do
7082  # Extract the first word of "$ac_prog", so it can be a program name with args.
7083set dummy $ac_prog; ac_word=$2
7084echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7086if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089  if test -n "$ac_ct_F77"; then
7090  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095  IFS=$as_save_IFS
7096  test -z "$as_dir" && as_dir=.
7097  for ac_exec_ext in '' $ac_executable_extensions; do
7098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099    ac_cv_prog_ac_ct_F77="$ac_prog"
7100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101    break 2
7102  fi
7103done
7104done
7105
7106fi
7107fi
7108ac_ct_F77=$ac_cv_prog_ac_ct_F77
7109if test -n "$ac_ct_F77"; then
7110  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7111echo "${ECHO_T}$ac_ct_F77" >&6
7112else
7113  echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6
7115fi
7116
7117  test -n "$ac_ct_F77" && break
7118done
7119
7120  F77=$ac_ct_F77
7121fi
7122
7123
7124# Provide some information about the compiler.
7125echo "$as_me:7125:" \
7126     "checking for Fortran 77 compiler version" >&5
7127ac_compiler=`set X $ac_compile; echo $2`
7128{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7129  (eval $ac_compiler --version </dev/null >&5) 2>&5
7130  ac_status=$?
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); }
7133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7134  (eval $ac_compiler -v </dev/null >&5) 2>&5
7135  ac_status=$?
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); }
7138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7139  (eval $ac_compiler -V </dev/null >&5) 2>&5
7140  ac_status=$?
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); }
7143rm -f a.out
7144
7145# If we don't use `.F' as extension, the preprocessor is not run on the
7146# input file.  (Note that this only needs to work for GNU compilers.)
7147ac_save_ext=$ac_ext
7148ac_ext=F
7149echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7150echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7151if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7152  echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154  cat >conftest.$ac_ext <<_ACEOF
7155      program main
7156#ifndef __GNUC__
7157       choke me
7158#endif
7159
7160      end
7161_ACEOF
7162rm -f conftest.$ac_objext
7163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164  (eval $ac_compile) 2>conftest.er1
7165  ac_status=$?
7166  grep -v '^ *+' conftest.er1 >conftest.err
7167  rm -f conftest.er1
7168  cat conftest.err >&5
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); } &&
7171	 { ac_try='test -z "$ac_f77_werror_flag"
7172			 || test ! -s conftest.err'
7173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174  (eval $ac_try) 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }; } &&
7178	 { ac_try='test -s conftest.$ac_objext'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; }; then
7184  ac_compiler_gnu=yes
7185else
7186  echo "$as_me: failed program was:" >&5
7187sed 's/^/| /' conftest.$ac_ext >&5
7188
7189ac_compiler_gnu=no
7190fi
7191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7192ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7193
7194fi
7195echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7196echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7197ac_ext=$ac_save_ext
7198ac_test_FFLAGS=${FFLAGS+set}
7199ac_save_FFLAGS=$FFLAGS
7200FFLAGS=
7201echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7202echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7203if test "${ac_cv_prog_f77_g+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  FFLAGS=-g
7207cat >conftest.$ac_ext <<_ACEOF
7208      program main
7209
7210      end
7211_ACEOF
7212rm -f conftest.$ac_objext
7213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214  (eval $ac_compile) 2>conftest.er1
7215  ac_status=$?
7216  grep -v '^ *+' conftest.er1 >conftest.err
7217  rm -f conftest.er1
7218  cat conftest.err >&5
7219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); } &&
7221	 { ac_try='test -z "$ac_f77_werror_flag"
7222			 || test ! -s conftest.err'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; } &&
7228	 { ac_try='test -s conftest.$ac_objext'
7229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230  (eval $ac_try) 2>&5
7231  ac_status=$?
7232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233  (exit $ac_status); }; }; then
7234  ac_cv_prog_f77_g=yes
7235else
7236  echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239ac_cv_prog_f77_g=no
7240fi
7241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242
7243fi
7244echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7245echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7246if test "$ac_test_FFLAGS" = set; then
7247  FFLAGS=$ac_save_FFLAGS
7248elif test $ac_cv_prog_f77_g = yes; then
7249  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7250    FFLAGS="-g -O2"
7251  else
7252    FFLAGS="-g"
7253  fi
7254else
7255  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7256    FFLAGS="-O2"
7257  else
7258    FFLAGS=
7259  fi
7260fi
7261
7262G77=`test $ac_compiler_gnu = yes && echo yes`
7263ac_ext=c
7264ac_cpp='$CPP $CPPFLAGS'
7265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268
7269
7270
7271# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7272
7273# find the maximum length of command line arguments
7274echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7275echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7276if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279    i=0
7280  teststring="ABCD"
7281
7282  case $build_os in
7283  msdosdjgpp*)
7284    # On DJGPP, this test can blow up pretty badly due to problems in libc
7285    # (any single argument exceeding 2000 bytes causes a buffer overrun
7286    # during glob expansion).  Even if it were fixed, the result of this
7287    # check would be larger than it should be.
7288    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7289    ;;
7290
7291  gnu*)
7292    # Under GNU Hurd, this test is not required because there is
7293    # no limit to the length of command line arguments.
7294    # Libtool will interpret -1 as no limit whatsoever
7295    lt_cv_sys_max_cmd_len=-1;
7296    ;;
7297
7298  cygwin* | mingw*)
7299    # On Win9x/ME, this test blows up -- it succeeds, but takes
7300    # about 5 minutes as the teststring grows exponentially.
7301    # Worse, since 9x/ME are not pre-emptively multitasking,
7302    # you end up with a "frozen" computer, even though with patience
7303    # the test eventually succeeds (with a max line length of 256k).
7304    # Instead, let's just punt: use the minimum linelength reported by
7305    # all of the supported platforms: 8192 (on NT/2K/XP).
7306    lt_cv_sys_max_cmd_len=8192;
7307    ;;
7308
7309  amigaos*)
7310    # On AmigaOS with pdksh, this test takes hours, literally.
7311    # So we just punt and use a minimum line length of 8192.
7312    lt_cv_sys_max_cmd_len=8192;
7313    ;;
7314
7315  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7316    # This has been around since 386BSD, at least.  Likely further.
7317    if test -x /sbin/sysctl; then
7318      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7319    elif test -x /usr/sbin/sysctl; then
7320      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7321    else
7322      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7323    fi
7324    # And add a safety zone
7325    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7326    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7327    ;;
7328
7329  interix*)
7330    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7331    lt_cv_sys_max_cmd_len=196608
7332    ;;
7333
7334  osf*)
7335    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7336    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7337    # nice to cause kernel panics so lets avoid the loop below.
7338    # First set a reasonable default.
7339    lt_cv_sys_max_cmd_len=16384
7340    #
7341    if test -x /sbin/sysconfig; then
7342      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7343        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7344      esac
7345    fi
7346    ;;
7347  sco3.2v5*)
7348    lt_cv_sys_max_cmd_len=102400
7349    ;;
7350  sysv5* | sco5v6* | sysv4.2uw2*)
7351    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7352    if test -n "$kargmax"; then
7353      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7354    else
7355      lt_cv_sys_max_cmd_len=32768
7356    fi
7357    ;;
7358  *)
7359    # If test is not a shell built-in, we'll probably end up computing a
7360    # maximum length that is only half of the actual maximum length, but
7361    # we can't tell.
7362    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7363    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7364	       = "XX$teststring") >/dev/null 2>&1 &&
7365	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7366	    lt_cv_sys_max_cmd_len=$new_result &&
7367	    test $i != 17 # 1/2 MB should be enough
7368    do
7369      i=`expr $i + 1`
7370      teststring=$teststring$teststring
7371    done
7372    teststring=
7373    # Add a significant safety factor because C++ compilers can tack on massive
7374    # amounts of additional arguments before passing them to the linker.
7375    # It appears as though 1/2 is a usable value.
7376    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7377    ;;
7378  esac
7379
7380fi
7381
7382if test -n $lt_cv_sys_max_cmd_len ; then
7383  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7384echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7385else
7386  echo "$as_me:$LINENO: result: none" >&5
7387echo "${ECHO_T}none" >&6
7388fi
7389
7390
7391
7392
7393# Check for command to grab the raw symbol name followed by C symbol from nm.
7394echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7395echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7396if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7397  echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399
7400# These are sane defaults that work on at least a few old systems.
7401# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7402
7403# Character class describing NM global symbol codes.
7404symcode='[BCDEGRST]'
7405
7406# Regexp to match symbols that can be accessed directly from C.
7407sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7408
7409# Transform an extracted symbol line into a proper C declaration
7410lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7411
7412# Transform an extracted symbol line into symbol name and symbol address
7413lt_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'"
7414
7415# Define system-specific variables.
7416case $host_os in
7417aix*)
7418  symcode='[BCDT]'
7419  ;;
7420cygwin* | mingw* | pw32*)
7421  symcode='[ABCDGISTW]'
7422  ;;
7423hpux*) # Its linker distinguishes data from code symbols
7424  if test "$host_cpu" = ia64; then
7425    symcode='[ABCDEGRST]'
7426  fi
7427  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7428  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'"
7429  ;;
7430linux*)
7431  if test "$host_cpu" = ia64; then
7432    symcode='[ABCDGIRSTW]'
7433    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7434    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'"
7435  fi
7436  ;;
7437irix* | nonstopux*)
7438  symcode='[BCDEGRST]'
7439  ;;
7440osf*)
7441  symcode='[BCDEGQRST]'
7442  ;;
7443solaris*)
7444  symcode='[BDRT]'
7445  ;;
7446sco3.2v5*)
7447  symcode='[DT]'
7448  ;;
7449sysv4.2uw2*)
7450  symcode='[DT]'
7451  ;;
7452sysv5* | sco5v6* | unixware* | OpenUNIX*)
7453  symcode='[ABDT]'
7454  ;;
7455sysv4)
7456  symcode='[DFNSTU]'
7457  ;;
7458esac
7459
7460# Handle CRLF in mingw tool chain
7461opt_cr=
7462case $build_os in
7463mingw*)
7464  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7465  ;;
7466esac
7467
7468# If we're using GNU nm, then use its standard symbol codes.
7469case `$NM -V 2>&1` in
7470*GNU* | *'with BFD'*)
7471  symcode='[ABCDGIRSTW]' ;;
7472esac
7473
7474# Try without a prefix undercore, then with it.
7475for ac_symprfx in "" "_"; do
7476
7477  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7478  symxfrm="\\1 $ac_symprfx\\2 \\2"
7479
7480  # Write the raw and C identifiers.
7481  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7482
7483  # Check to see that the pipe works correctly.
7484  pipe_works=no
7485
7486  rm -f conftest*
7487  cat > conftest.$ac_ext <<EOF
7488#ifdef __cplusplus
7489extern "C" {
7490#endif
7491char nm_test_var;
7492void nm_test_func(){}
7493#ifdef __cplusplus
7494}
7495#endif
7496int main(){nm_test_var='a';nm_test_func();return(0);}
7497EOF
7498
7499  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500  (eval $ac_compile) 2>&5
7501  ac_status=$?
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); }; then
7504    # Now try to grab the symbols.
7505    nlist=conftest.nm
7506    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7507  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7508  ac_status=$?
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); } && test -s "$nlist"; then
7511      # Try sorting and uniquifying the output.
7512      if sort "$nlist" | uniq > "$nlist"T; then
7513	mv -f "$nlist"T "$nlist"
7514      else
7515	rm -f "$nlist"T
7516      fi
7517
7518      # Make sure that we snagged all the symbols we need.
7519      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7520	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7521	  cat <<EOF > conftest.$ac_ext
7522#ifdef __cplusplus
7523extern "C" {
7524#endif
7525
7526EOF
7527	  # Now generate the symbol file.
7528	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7529
7530	  cat <<EOF >> conftest.$ac_ext
7531#if defined (__STDC__) && __STDC__
7532# define lt_ptr_t void *
7533#else
7534# define lt_ptr_t char *
7535# define const
7536#endif
7537
7538/* The mapping between symbol names and symbols. */
7539const struct {
7540  const char *name;
7541  lt_ptr_t address;
7542}
7543lt_preloaded_symbols[] =
7544{
7545EOF
7546	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7547	  cat <<\EOF >> conftest.$ac_ext
7548  {0, (lt_ptr_t) 0}
7549};
7550
7551#ifdef __cplusplus
7552}
7553#endif
7554EOF
7555	  # Now try linking the two files.
7556	  mv conftest.$ac_objext conftstm.$ac_objext
7557	  lt_save_LIBS="$LIBS"
7558	  lt_save_CFLAGS="$CFLAGS"
7559	  LIBS="conftstm.$ac_objext"
7560	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7561	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7562  (eval $ac_link) 2>&5
7563  ac_status=$?
7564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7566	    pipe_works=yes
7567	  fi
7568	  LIBS="$lt_save_LIBS"
7569	  CFLAGS="$lt_save_CFLAGS"
7570	else
7571	  echo "cannot find nm_test_func in $nlist" >&5
7572	fi
7573      else
7574	echo "cannot find nm_test_var in $nlist" >&5
7575      fi
7576    else
7577      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7578    fi
7579  else
7580    echo "$progname: failed program was:" >&5
7581    cat conftest.$ac_ext >&5
7582  fi
7583  rm -f conftest* conftst*
7584
7585  # Do not use the global_symbol_pipe unless it works.
7586  if test "$pipe_works" = yes; then
7587    break
7588  else
7589    lt_cv_sys_global_symbol_pipe=
7590  fi
7591done
7592
7593fi
7594
7595if test -z "$lt_cv_sys_global_symbol_pipe"; then
7596  lt_cv_sys_global_symbol_to_cdecl=
7597fi
7598if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7599  echo "$as_me:$LINENO: result: failed" >&5
7600echo "${ECHO_T}failed" >&6
7601else
7602  echo "$as_me:$LINENO: result: ok" >&5
7603echo "${ECHO_T}ok" >&6
7604fi
7605
7606echo "$as_me:$LINENO: checking for objdir" >&5
7607echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7608if test "${lt_cv_objdir+set}" = set; then
7609  echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611  rm -f .libs 2>/dev/null
7612mkdir .libs 2>/dev/null
7613if test -d .libs; then
7614  lt_cv_objdir=.libs
7615else
7616  # MS-DOS does not allow filenames that begin with a dot.
7617  lt_cv_objdir=_libs
7618fi
7619rmdir .libs 2>/dev/null
7620fi
7621echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7622echo "${ECHO_T}$lt_cv_objdir" >&6
7623objdir=$lt_cv_objdir
7624
7625
7626
7627
7628
7629case $host_os in
7630aix3*)
7631  # AIX sometimes has problems with the GCC collect2 program.  For some
7632  # reason, if we set the COLLECT_NAMES environment variable, the problems
7633  # vanish in a puff of smoke.
7634  if test "X${COLLECT_NAMES+set}" != Xset; then
7635    COLLECT_NAMES=
7636    export COLLECT_NAMES
7637  fi
7638  ;;
7639esac
7640
7641# Sed substitution that helps us do robust quoting.  It backslashifies
7642# metacharacters that are still active within double-quoted strings.
7643Xsed='sed -e 1s/^X//'
7644sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7645
7646# Same as above, but do not quote variable references.
7647double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7648
7649# Sed substitution to delay expansion of an escaped shell variable in a
7650# double_quote_subst'ed string.
7651delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7652
7653# Sed substitution to avoid accidental globbing in evaled expressions
7654no_glob_subst='s/\*/\\\*/g'
7655
7656# Constants:
7657rm="rm -f"
7658
7659# Global variables:
7660default_ofile=libtool
7661can_build_shared=yes
7662
7663# All known linkers require a `.a' archive for static linking (except MSVC,
7664# which needs '.lib').
7665libext=a
7666ltmain="$ac_aux_dir/ltmain.sh"
7667ofile="$default_ofile"
7668with_gnu_ld="$lt_cv_prog_gnu_ld"
7669
7670if test -n "$ac_tool_prefix"; then
7671  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7672set dummy ${ac_tool_prefix}ar; ac_word=$2
7673echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7675if test "${ac_cv_prog_AR+set}" = set; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678  if test -n "$AR"; then
7679  ac_cv_prog_AR="$AR" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684  IFS=$as_save_IFS
7685  test -z "$as_dir" && as_dir=.
7686  for ac_exec_ext in '' $ac_executable_extensions; do
7687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688    ac_cv_prog_AR="${ac_tool_prefix}ar"
7689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690    break 2
7691  fi
7692done
7693done
7694
7695fi
7696fi
7697AR=$ac_cv_prog_AR
7698if test -n "$AR"; then
7699  echo "$as_me:$LINENO: result: $AR" >&5
7700echo "${ECHO_T}$AR" >&6
7701else
7702  echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704fi
7705
7706fi
7707if test -z "$ac_cv_prog_AR"; then
7708  ac_ct_AR=$AR
7709  # Extract the first word of "ar", so it can be a program name with args.
7710set dummy ar; ac_word=$2
7711echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7713if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7714  echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716  if test -n "$ac_ct_AR"; then
7717  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722  IFS=$as_save_IFS
7723  test -z "$as_dir" && as_dir=.
7724  for ac_exec_ext in '' $ac_executable_extensions; do
7725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726    ac_cv_prog_ac_ct_AR="ar"
7727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728    break 2
7729  fi
7730done
7731done
7732
7733  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7734fi
7735fi
7736ac_ct_AR=$ac_cv_prog_ac_ct_AR
7737if test -n "$ac_ct_AR"; then
7738  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7739echo "${ECHO_T}$ac_ct_AR" >&6
7740else
7741  echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6
7743fi
7744
7745  AR=$ac_ct_AR
7746else
7747  AR="$ac_cv_prog_AR"
7748fi
7749
7750if test -n "$ac_tool_prefix"; then
7751  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7752set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7753echo "$as_me:$LINENO: checking for $ac_word" >&5
7754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755if test "${ac_cv_prog_RANLIB+set}" = set; then
7756  echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758  if test -n "$RANLIB"; then
7759  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764  IFS=$as_save_IFS
7765  test -z "$as_dir" && as_dir=.
7766  for ac_exec_ext in '' $ac_executable_extensions; do
7767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770    break 2
7771  fi
7772done
7773done
7774
7775fi
7776fi
7777RANLIB=$ac_cv_prog_RANLIB
7778if test -n "$RANLIB"; then
7779  echo "$as_me:$LINENO: result: $RANLIB" >&5
7780echo "${ECHO_T}$RANLIB" >&6
7781else
7782  echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6
7784fi
7785
7786fi
7787if test -z "$ac_cv_prog_RANLIB"; then
7788  ac_ct_RANLIB=$RANLIB
7789  # Extract the first word of "ranlib", so it can be a program name with args.
7790set dummy ranlib; ac_word=$2
7791echo "$as_me:$LINENO: checking for $ac_word" >&5
7792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7793if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7794  echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796  if test -n "$ac_ct_RANLIB"; then
7797  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802  IFS=$as_save_IFS
7803  test -z "$as_dir" && as_dir=.
7804  for ac_exec_ext in '' $ac_executable_extensions; do
7805  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806    ac_cv_prog_ac_ct_RANLIB="ranlib"
7807    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811done
7812
7813  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7814fi
7815fi
7816ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7817if test -n "$ac_ct_RANLIB"; then
7818  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7819echo "${ECHO_T}$ac_ct_RANLIB" >&6
7820else
7821  echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823fi
7824
7825  RANLIB=$ac_ct_RANLIB
7826else
7827  RANLIB="$ac_cv_prog_RANLIB"
7828fi
7829
7830if test -n "$ac_tool_prefix"; then
7831  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7832set dummy ${ac_tool_prefix}strip; ac_word=$2
7833echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835if test "${ac_cv_prog_STRIP+set}" = set; then
7836  echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838  if test -n "$STRIP"; then
7839  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846  for ac_exec_ext in '' $ac_executable_extensions; do
7847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853done
7854
7855fi
7856fi
7857STRIP=$ac_cv_prog_STRIP
7858if test -n "$STRIP"; then
7859  echo "$as_me:$LINENO: result: $STRIP" >&5
7860echo "${ECHO_T}$STRIP" >&6
7861else
7862  echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
7864fi
7865
7866fi
7867if test -z "$ac_cv_prog_STRIP"; then
7868  ac_ct_STRIP=$STRIP
7869  # Extract the first word of "strip", so it can be a program name with args.
7870set dummy strip; ac_word=$2
7871echo "$as_me:$LINENO: checking for $ac_word" >&5
7872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7873if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7874  echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876  if test -n "$ac_ct_STRIP"; then
7877  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882  IFS=$as_save_IFS
7883  test -z "$as_dir" && as_dir=.
7884  for ac_exec_ext in '' $ac_executable_extensions; do
7885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886    ac_cv_prog_ac_ct_STRIP="strip"
7887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888    break 2
7889  fi
7890done
7891done
7892
7893  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7894fi
7895fi
7896ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7897if test -n "$ac_ct_STRIP"; then
7898  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7899echo "${ECHO_T}$ac_ct_STRIP" >&6
7900else
7901  echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6
7903fi
7904
7905  STRIP=$ac_ct_STRIP
7906else
7907  STRIP="$ac_cv_prog_STRIP"
7908fi
7909
7910
7911old_CC="$CC"
7912old_CFLAGS="$CFLAGS"
7913
7914# Set sane defaults for various variables
7915test -z "$AR" && AR=ar
7916test -z "$AR_FLAGS" && AR_FLAGS=cru
7917test -z "$AS" && AS=as
7918test -z "$CC" && CC=cc
7919test -z "$LTCC" && LTCC=$CC
7920test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7921test -z "$DLLTOOL" && DLLTOOL=dlltool
7922test -z "$LD" && LD=ld
7923test -z "$LN_S" && LN_S="ln -s"
7924test -z "$MAGIC_CMD" && MAGIC_CMD=file
7925test -z "$NM" && NM=nm
7926test -z "$SED" && SED=sed
7927test -z "$OBJDUMP" && OBJDUMP=objdump
7928test -z "$RANLIB" && RANLIB=:
7929test -z "$STRIP" && STRIP=:
7930test -z "$ac_objext" && ac_objext=o
7931
7932# Determine commands to create old-style static archives.
7933old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7934old_postinstall_cmds='chmod 644 $oldlib'
7935old_postuninstall_cmds=
7936
7937if test -n "$RANLIB"; then
7938  case $host_os in
7939  openbsd*)
7940    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7941    ;;
7942  *)
7943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7944    ;;
7945  esac
7946  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7947fi
7948
7949for cc_temp in $compiler""; do
7950  case $cc_temp in
7951    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7952    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7953    \-*) ;;
7954    *) break;;
7955  esac
7956done
7957cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7958
7959
7960# Only perform the check for file, if the check method requires it
7961case $deplibs_check_method in
7962file_magic*)
7963  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7964    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7965echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  case $MAGIC_CMD in
7970[\\/*] |  ?:[\\/]*)
7971  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7972  ;;
7973*)
7974  lt_save_MAGIC_CMD="$MAGIC_CMD"
7975  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7976  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7977  for ac_dir in $ac_dummy; do
7978    IFS="$lt_save_ifs"
7979    test -z "$ac_dir" && ac_dir=.
7980    if test -f $ac_dir/${ac_tool_prefix}file; then
7981      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7982      if test -n "$file_magic_test_file"; then
7983	case $deplibs_check_method in
7984	"file_magic "*)
7985	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7986	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7988	    $EGREP "$file_magic_regex" > /dev/null; then
7989	    :
7990	  else
7991	    cat <<EOF 1>&2
7992
7993*** Warning: the command libtool uses to detect shared libraries,
7994*** $file_magic_cmd, produces output that libtool cannot recognize.
7995*** The result is that libtool may fail to recognize shared libraries
7996*** as such.  This will affect the creation of libtool libraries that
7997*** depend on shared libraries, but programs linked with such libtool
7998*** libraries will work regardless of this problem.  Nevertheless, you
7999*** may want to report the problem to your system manager and/or to
8000*** bug-libtool@gnu.org
8001
8002EOF
8003	  fi ;;
8004	esac
8005      fi
8006      break
8007    fi
8008  done
8009  IFS="$lt_save_ifs"
8010  MAGIC_CMD="$lt_save_MAGIC_CMD"
8011  ;;
8012esac
8013fi
8014
8015MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016if test -n "$MAGIC_CMD"; then
8017  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8018echo "${ECHO_T}$MAGIC_CMD" >&6
8019else
8020  echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6
8022fi
8023
8024if test -z "$lt_cv_path_MAGIC_CMD"; then
8025  if test -n "$ac_tool_prefix"; then
8026    echo "$as_me:$LINENO: checking for file" >&5
8027echo $ECHO_N "checking for file... $ECHO_C" >&6
8028if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8029  echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031  case $MAGIC_CMD in
8032[\\/*] |  ?:[\\/]*)
8033  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8034  ;;
8035*)
8036  lt_save_MAGIC_CMD="$MAGIC_CMD"
8037  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8039  for ac_dir in $ac_dummy; do
8040    IFS="$lt_save_ifs"
8041    test -z "$ac_dir" && ac_dir=.
8042    if test -f $ac_dir/file; then
8043      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8044      if test -n "$file_magic_test_file"; then
8045	case $deplibs_check_method in
8046	"file_magic "*)
8047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8048	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8050	    $EGREP "$file_magic_regex" > /dev/null; then
8051	    :
8052	  else
8053	    cat <<EOF 1>&2
8054
8055*** Warning: the command libtool uses to detect shared libraries,
8056*** $file_magic_cmd, produces output that libtool cannot recognize.
8057*** The result is that libtool may fail to recognize shared libraries
8058*** as such.  This will affect the creation of libtool libraries that
8059*** depend on shared libraries, but programs linked with such libtool
8060*** libraries will work regardless of this problem.  Nevertheless, you
8061*** may want to report the problem to your system manager and/or to
8062*** bug-libtool@gnu.org
8063
8064EOF
8065	  fi ;;
8066	esac
8067      fi
8068      break
8069    fi
8070  done
8071  IFS="$lt_save_ifs"
8072  MAGIC_CMD="$lt_save_MAGIC_CMD"
8073  ;;
8074esac
8075fi
8076
8077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8078if test -n "$MAGIC_CMD"; then
8079  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8080echo "${ECHO_T}$MAGIC_CMD" >&6
8081else
8082  echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6
8084fi
8085
8086  else
8087    MAGIC_CMD=:
8088  fi
8089fi
8090
8091  fi
8092  ;;
8093esac
8094
8095enable_dlopen=no
8096enable_win32_dll=no
8097
8098# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8099if test "${enable_libtool_lock+set}" = set; then
8100  enableval="$enable_libtool_lock"
8101
8102fi;
8103test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8104
8105
8106# Check whether --with-pic or --without-pic was given.
8107if test "${with_pic+set}" = set; then
8108  withval="$with_pic"
8109  pic_mode="$withval"
8110else
8111  pic_mode=default
8112fi;
8113test -z "$pic_mode" && pic_mode=default
8114
8115# Use C for the default configuration in the libtool script
8116tagname=
8117lt_save_CC="$CC"
8118ac_ext=c
8119ac_cpp='$CPP $CPPFLAGS'
8120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123
8124
8125# Source file extension for C test sources.
8126ac_ext=c
8127
8128# Object file extension for compiled C test sources.
8129objext=o
8130objext=$objext
8131
8132# Code to be used in simple compile tests
8133lt_simple_compile_test_code="int some_variable = 0;\n"
8134
8135# Code to be used in simple link tests
8136lt_simple_link_test_code='int main(){return(0);}\n'
8137
8138
8139# If no C compiler was specified, use CC.
8140LTCC=${LTCC-"$CC"}
8141
8142# If no C compiler flags were specified, use CFLAGS.
8143LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8144
8145# Allow CC to be a program name with arguments.
8146compiler=$CC
8147
8148
8149# save warnings/boilerplate of simple test code
8150ac_outfile=conftest.$ac_objext
8151printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8153_lt_compiler_boilerplate=`cat conftest.err`
8154$rm conftest*
8155
8156ac_outfile=conftest.$ac_objext
8157printf "$lt_simple_link_test_code" >conftest.$ac_ext
8158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8159_lt_linker_boilerplate=`cat conftest.err`
8160$rm conftest*
8161
8162
8163## CAVEAT EMPTOR:
8164## There is no encapsulation within the following macros, do not change
8165## the running order or otherwise move them around unless you know exactly
8166## what you are doing...
8167
8168lt_prog_compiler_no_builtin_flag=
8169
8170if test "$GCC" = yes; then
8171  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8172
8173
8174echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8175echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8176if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8177  echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179  lt_cv_prog_compiler_rtti_exceptions=no
8180  ac_outfile=conftest.$ac_objext
8181   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8182   lt_compiler_flag="-fno-rtti -fno-exceptions"
8183   # Insert the option either (1) after the last *FLAGS variable, or
8184   # (2) before a word containing "conftest.", or (3) at the end.
8185   # Note that $ac_compile itself does not contain backslashes and begins
8186   # with a dollar sign (not a hyphen), so the echo should work correctly.
8187   # The option is referenced via a variable to avoid confusing sed.
8188   lt_compile=`echo "$ac_compile" | $SED \
8189   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191   -e 's:$: $lt_compiler_flag:'`
8192   (eval echo "\"\$as_me:8192: $lt_compile\"" >&5)
8193   (eval "$lt_compile" 2>conftest.err)
8194   ac_status=$?
8195   cat conftest.err >&5
8196   echo "$as_me:8196: \$? = $ac_status" >&5
8197   if (exit $ac_status) && test -s "$ac_outfile"; then
8198     # The compiler can only warn and ignore the option if not recognized
8199     # So say no if there are warnings other than the usual output.
8200     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8201     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203       lt_cv_prog_compiler_rtti_exceptions=yes
8204     fi
8205   fi
8206   $rm conftest*
8207
8208fi
8209echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8210echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8211
8212if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8213    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8214else
8215    :
8216fi
8217
8218fi
8219
8220lt_prog_compiler_wl=
8221lt_prog_compiler_pic=
8222lt_prog_compiler_static=
8223
8224echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8225echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8226
8227  if test "$GCC" = yes; then
8228    lt_prog_compiler_wl='-Wl,'
8229    lt_prog_compiler_static='-static'
8230
8231    case $host_os in
8232      aix*)
8233      # All AIX code is PIC.
8234      if test "$host_cpu" = ia64; then
8235	# AIX 5 now supports IA64 processor
8236	lt_prog_compiler_static='-Bstatic'
8237      fi
8238      ;;
8239
8240    amigaos*)
8241      # FIXME: we need at least 68020 code to build shared libraries, but
8242      # adding the `-m68020' flag to GCC prevents building anything better,
8243      # like `-m68040'.
8244      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8245      ;;
8246
8247    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8248      # PIC is the default for these OSes.
8249      ;;
8250
8251    mingw* | pw32* | os2*)
8252      # This hack is so that the source file can tell whether it is being
8253      # built for inclusion in a dll (and should export symbols for example).
8254      lt_prog_compiler_pic='-DDLL_EXPORT'
8255      ;;
8256
8257    darwin* | rhapsody*)
8258      # PIC is the default on this platform
8259      # Common symbols not allowed in MH_DYLIB files
8260      lt_prog_compiler_pic='-fno-common'
8261      ;;
8262
8263    interix3*)
8264      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8265      # Instead, we relocate shared libraries at runtime.
8266      ;;
8267
8268    msdosdjgpp*)
8269      # Just because we use GCC doesn't mean we suddenly get shared libraries
8270      # on systems that don't support them.
8271      lt_prog_compiler_can_build_shared=no
8272      enable_shared=no
8273      ;;
8274
8275    sysv4*MP*)
8276      if test -d /usr/nec; then
8277	lt_prog_compiler_pic=-Kconform_pic
8278      fi
8279      ;;
8280
8281    hpux*)
8282      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8283      # not for PA HP-UX.
8284      case $host_cpu in
8285      hppa*64*|ia64*)
8286	# +Z the default
8287	;;
8288      *)
8289	lt_prog_compiler_pic='-fPIC'
8290	;;
8291      esac
8292      ;;
8293
8294    *)
8295      lt_prog_compiler_pic='-fPIC'
8296      ;;
8297    esac
8298  else
8299    # PORTME Check for flag to pass linker flags through the system compiler.
8300    case $host_os in
8301    aix*)
8302      lt_prog_compiler_wl='-Wl,'
8303      if test "$host_cpu" = ia64; then
8304	# AIX 5 now supports IA64 processor
8305	lt_prog_compiler_static='-Bstatic'
8306      else
8307	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8308      fi
8309      ;;
8310      darwin*)
8311        # PIC is the default on this platform
8312        # Common symbols not allowed in MH_DYLIB files
8313       case $cc_basename in
8314         xlc*)
8315         lt_prog_compiler_pic='-qnocommon'
8316         lt_prog_compiler_wl='-Wl,'
8317         ;;
8318       esac
8319       ;;
8320
8321    mingw* | pw32* | os2*)
8322      # This hack is so that the source file can tell whether it is being
8323      # built for inclusion in a dll (and should export symbols for example).
8324      lt_prog_compiler_pic='-DDLL_EXPORT'
8325      ;;
8326
8327    hpux9* | hpux10* | hpux11*)
8328      lt_prog_compiler_wl='-Wl,'
8329      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8330      # not for PA HP-UX.
8331      case $host_cpu in
8332      hppa*64*|ia64*)
8333	# +Z the default
8334	;;
8335      *)
8336	lt_prog_compiler_pic='+Z'
8337	;;
8338      esac
8339      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8340      lt_prog_compiler_static='${wl}-a ${wl}archive'
8341      ;;
8342
8343    irix5* | irix6* | nonstopux*)
8344      lt_prog_compiler_wl='-Wl,'
8345      # PIC (with -KPIC) is the default.
8346      lt_prog_compiler_static='-non_shared'
8347      ;;
8348
8349    newsos6)
8350      lt_prog_compiler_pic='-KPIC'
8351      lt_prog_compiler_static='-Bstatic'
8352      ;;
8353
8354    linux*)
8355      case $cc_basename in
8356      icc* | ecc*)
8357	lt_prog_compiler_wl='-Wl,'
8358	lt_prog_compiler_pic='-KPIC'
8359	lt_prog_compiler_static='-static'
8360        ;;
8361      pgcc* | pgf77* | pgf90* | pgf95*)
8362        # Portland Group compilers (*not* the Pentium gcc compiler,
8363	# which looks to be a dead project)
8364	lt_prog_compiler_wl='-Wl,'
8365	lt_prog_compiler_pic='-fpic'
8366	lt_prog_compiler_static='-Bstatic'
8367        ;;
8368      ccc*)
8369        lt_prog_compiler_wl='-Wl,'
8370        # All Alpha code is PIC.
8371        lt_prog_compiler_static='-non_shared'
8372        ;;
8373      esac
8374      ;;
8375
8376    osf3* | osf4* | osf5*)
8377      lt_prog_compiler_wl='-Wl,'
8378      # All OSF/1 code is PIC.
8379      lt_prog_compiler_static='-non_shared'
8380      ;;
8381
8382    solaris*)
8383      lt_prog_compiler_pic='-KPIC'
8384      lt_prog_compiler_static='-Bstatic'
8385      case $cc_basename in
8386      f77* | f90* | f95*)
8387	lt_prog_compiler_wl='-Qoption ld ';;
8388      *)
8389	lt_prog_compiler_wl='-Wl,';;
8390      esac
8391      ;;
8392
8393    sunos4*)
8394      lt_prog_compiler_wl='-Qoption ld '
8395      lt_prog_compiler_pic='-PIC'
8396      lt_prog_compiler_static='-Bstatic'
8397      ;;
8398
8399    sysv4 | sysv4.2uw2* | sysv4.3*)
8400      lt_prog_compiler_wl='-Wl,'
8401      lt_prog_compiler_pic='-KPIC'
8402      lt_prog_compiler_static='-Bstatic'
8403      ;;
8404
8405    sysv4*MP*)
8406      if test -d /usr/nec ;then
8407	lt_prog_compiler_pic='-Kconform_pic'
8408	lt_prog_compiler_static='-Bstatic'
8409      fi
8410      ;;
8411
8412    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8413      lt_prog_compiler_wl='-Wl,'
8414      lt_prog_compiler_pic='-KPIC'
8415      lt_prog_compiler_static='-Bstatic'
8416      ;;
8417
8418    unicos*)
8419      lt_prog_compiler_wl='-Wl,'
8420      lt_prog_compiler_can_build_shared=no
8421      ;;
8422
8423    uts4*)
8424      lt_prog_compiler_pic='-pic'
8425      lt_prog_compiler_static='-Bstatic'
8426      ;;
8427
8428    *)
8429      lt_prog_compiler_can_build_shared=no
8430      ;;
8431    esac
8432  fi
8433
8434echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8435echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8436
8437#
8438# Check to make sure the PIC flag actually works.
8439#
8440if test -n "$lt_prog_compiler_pic"; then
8441
8442echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8443echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8444if test "${lt_prog_compiler_pic_works+set}" = set; then
8445  echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447  lt_prog_compiler_pic_works=no
8448  ac_outfile=conftest.$ac_objext
8449   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8450   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8451   # Insert the option either (1) after the last *FLAGS variable, or
8452   # (2) before a word containing "conftest.", or (3) at the end.
8453   # Note that $ac_compile itself does not contain backslashes and begins
8454   # with a dollar sign (not a hyphen), so the echo should work correctly.
8455   # The option is referenced via a variable to avoid confusing sed.
8456   lt_compile=`echo "$ac_compile" | $SED \
8457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8459   -e 's:$: $lt_compiler_flag:'`
8460   (eval echo "\"\$as_me:8460: $lt_compile\"" >&5)
8461   (eval "$lt_compile" 2>conftest.err)
8462   ac_status=$?
8463   cat conftest.err >&5
8464   echo "$as_me:8464: \$? = $ac_status" >&5
8465   if (exit $ac_status) && test -s "$ac_outfile"; then
8466     # The compiler can only warn and ignore the option if not recognized
8467     # So say no if there are warnings other than the usual output.
8468     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8469     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8470     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8471       lt_prog_compiler_pic_works=yes
8472     fi
8473   fi
8474   $rm conftest*
8475
8476fi
8477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8478echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8479
8480if test x"$lt_prog_compiler_pic_works" = xyes; then
8481    case $lt_prog_compiler_pic in
8482     "" | " "*) ;;
8483     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8484     esac
8485else
8486    lt_prog_compiler_pic=
8487     lt_prog_compiler_can_build_shared=no
8488fi
8489
8490fi
8491case $host_os in
8492  # For platforms which do not support PIC, -DPIC is meaningless:
8493  *djgpp*)
8494    lt_prog_compiler_pic=
8495    ;;
8496  *)
8497    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8498    ;;
8499esac
8500
8501#
8502# Check to make sure the static flag actually works.
8503#
8504wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8505echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8507if test "${lt_prog_compiler_static_works+set}" = set; then
8508  echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510  lt_prog_compiler_static_works=no
8511   save_LDFLAGS="$LDFLAGS"
8512   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8513   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8514   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515     # The linker can only warn and ignore the option if not recognized
8516     # So say no if there are warnings
8517     if test -s conftest.err; then
8518       # Append any errors to the config.log.
8519       cat conftest.err 1>&5
8520       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8521       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522       if diff conftest.exp conftest.er2 >/dev/null; then
8523         lt_prog_compiler_static_works=yes
8524       fi
8525     else
8526       lt_prog_compiler_static_works=yes
8527     fi
8528   fi
8529   $rm conftest*
8530   LDFLAGS="$save_LDFLAGS"
8531
8532fi
8533echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8534echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8535
8536if test x"$lt_prog_compiler_static_works" = xyes; then
8537    :
8538else
8539    lt_prog_compiler_static=
8540fi
8541
8542
8543echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8544echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8545if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8546  echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548  lt_cv_prog_compiler_c_o=no
8549   $rm -r conftest 2>/dev/null
8550   mkdir conftest
8551   cd conftest
8552   mkdir out
8553   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8554
8555   lt_compiler_flag="-o out/conftest2.$ac_objext"
8556   # Insert the option either (1) after the last *FLAGS variable, or
8557   # (2) before a word containing "conftest.", or (3) at the end.
8558   # Note that $ac_compile itself does not contain backslashes and begins
8559   # with a dollar sign (not a hyphen), so the echo should work correctly.
8560   lt_compile=`echo "$ac_compile" | $SED \
8561   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563   -e 's:$: $lt_compiler_flag:'`
8564   (eval echo "\"\$as_me:8564: $lt_compile\"" >&5)
8565   (eval "$lt_compile" 2>out/conftest.err)
8566   ac_status=$?
8567   cat out/conftest.err >&5
8568   echo "$as_me:8568: \$? = $ac_status" >&5
8569   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570   then
8571     # The compiler can only warn and ignore the option if not recognized
8572     # So say no if there are warnings
8573     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8574     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576       lt_cv_prog_compiler_c_o=yes
8577     fi
8578   fi
8579   chmod u+w . 2>&5
8580   $rm conftest*
8581   # SGI C++ compiler will create directory out/ii_files/ for
8582   # template instantiation
8583   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8584   $rm out/* && rmdir out
8585   cd ..
8586   rmdir conftest
8587   $rm conftest*
8588
8589fi
8590echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8591echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8592
8593
8594hard_links="nottested"
8595if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8596  # do not overwrite the value of need_locks provided by the user
8597  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8598echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8599  hard_links=yes
8600  $rm conftest*
8601  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8602  touch conftest.a
8603  ln conftest.a conftest.b 2>&5 || hard_links=no
8604  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8605  echo "$as_me:$LINENO: result: $hard_links" >&5
8606echo "${ECHO_T}$hard_links" >&6
8607  if test "$hard_links" = no; then
8608    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8609echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8610    need_locks=warn
8611  fi
8612else
8613  need_locks=no
8614fi
8615
8616echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8617echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8618
8619  runpath_var=
8620  allow_undefined_flag=
8621  enable_shared_with_static_runtimes=no
8622  archive_cmds=
8623  archive_expsym_cmds=
8624  old_archive_From_new_cmds=
8625  old_archive_from_expsyms_cmds=
8626  export_dynamic_flag_spec=
8627  whole_archive_flag_spec=
8628  thread_safe_flag_spec=
8629  hardcode_libdir_flag_spec=
8630  hardcode_libdir_flag_spec_ld=
8631  hardcode_libdir_separator=
8632  hardcode_direct=no
8633  hardcode_minus_L=no
8634  hardcode_shlibpath_var=unsupported
8635  link_all_deplibs=unknown
8636  hardcode_automatic=no
8637  module_cmds=
8638  module_expsym_cmds=
8639  always_export_symbols=no
8640  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8641  # include_expsyms should be a list of space-separated symbols to be *always*
8642  # included in the symbol list
8643  include_expsyms=
8644  # exclude_expsyms can be an extended regexp of symbols to exclude
8645  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8646  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8647  # as well as any symbol that contains `d'.
8648  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8649  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8650  # platforms (ab)use it in PIC code, but their linkers get confused if
8651  # the symbol is explicitly referenced.  Since portable code cannot
8652  # rely on this symbol name, it's probably fine to never include it in
8653  # preloaded symbol tables.
8654  extract_expsyms_cmds=
8655  # Just being paranoid about ensuring that cc_basename is set.
8656  for cc_temp in $compiler""; do
8657  case $cc_temp in
8658    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8659    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8660    \-*) ;;
8661    *) break;;
8662  esac
8663done
8664cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8665
8666  case $host_os in
8667  cygwin* | mingw* | pw32*)
8668    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8669    # When not using gcc, we currently assume that we are using
8670    # Microsoft Visual C++.
8671    if test "$GCC" != yes; then
8672      with_gnu_ld=no
8673    fi
8674    ;;
8675  interix*)
8676    # we just hope/assume this is gcc and not c89 (= MSVC++)
8677    with_gnu_ld=yes
8678    ;;
8679  openbsd*)
8680    with_gnu_ld=no
8681    ;;
8682  esac
8683
8684  ld_shlibs=yes
8685  if test "$with_gnu_ld" = yes; then
8686    # If archive_cmds runs LD, not CC, wlarc should be empty
8687    wlarc='${wl}'
8688
8689    # Set some defaults for GNU ld with shared library support. These
8690    # are reset later if shared libraries are not supported. Putting them
8691    # here allows them to be overridden if necessary.
8692    runpath_var=LD_RUN_PATH
8693    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8694    export_dynamic_flag_spec='${wl}--export-dynamic'
8695    # ancient GNU ld didn't support --whole-archive et. al.
8696    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8697	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8698      else
8699  	whole_archive_flag_spec=
8700    fi
8701    supports_anon_versioning=no
8702    case `$LD -v 2>/dev/null` in
8703      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8704      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8705      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8706      *\ 2.11.*) ;; # other 2.11 versions
8707      *) supports_anon_versioning=yes ;;
8708    esac
8709
8710    # See if GNU ld supports shared libraries.
8711    case $host_os in
8712    aix3* | aix4* | aix5*)
8713      # On AIX/PPC, the GNU linker is very broken
8714      if test "$host_cpu" != ia64; then
8715	ld_shlibs=no
8716	cat <<EOF 1>&2
8717
8718*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8719*** to be unable to reliably create shared libraries on AIX.
8720*** Therefore, libtool is disabling shared libraries support.  If you
8721*** really care for shared libraries, you may want to modify your PATH
8722*** so that a non-GNU linker is found, and then restart.
8723
8724EOF
8725      fi
8726      ;;
8727
8728    amigaos*)
8729      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)'
8730      hardcode_libdir_flag_spec='-L$libdir'
8731      hardcode_minus_L=yes
8732
8733      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8734      # that the semantics of dynamic libraries on AmigaOS, at least up
8735      # to version 4, is to share data among multiple programs linked
8736      # with the same dynamic library.  Since this doesn't match the
8737      # behavior of shared libraries on other platforms, we can't use
8738      # them.
8739      ld_shlibs=no
8740      ;;
8741
8742    beos*)
8743      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8744	allow_undefined_flag=unsupported
8745	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8746	# support --undefined.  This deserves some investigation.  FIXME
8747	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748      else
8749	ld_shlibs=no
8750      fi
8751      ;;
8752
8753    cygwin* | mingw* | pw32*)
8754      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8755      # as there is no search path for DLLs.
8756      hardcode_libdir_flag_spec='-L$libdir'
8757      allow_undefined_flag=unsupported
8758      always_export_symbols=no
8759      enable_shared_with_static_runtimes=yes
8760      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8761
8762      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8763        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8764	# If the export-symbols file already is a .def file (1st line
8765	# is EXPORTS), use it as is; otherwise, prepend...
8766	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8767	  cp $export_symbols $output_objdir/$soname.def;
8768	else
8769	  echo EXPORTS > $output_objdir/$soname.def;
8770	  cat $export_symbols >> $output_objdir/$soname.def;
8771	fi~
8772	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8773      else
8774	ld_shlibs=no
8775      fi
8776      ;;
8777
8778    interix3*)
8779      hardcode_direct=no
8780      hardcode_shlibpath_var=no
8781      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782      export_dynamic_flag_spec='${wl}-E'
8783      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8784      # Instead, shared libraries are loaded at an image base (0x10000000 by
8785      # default) and relocated if they conflict, which is a slow very memory
8786      # consuming and fragmenting process.  To avoid this, we pick a random,
8787      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8788      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8789      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8790      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'
8791      ;;
8792
8793    linux*)
8794      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8795	tmp_addflag=
8796	case $cc_basename,$host_cpu in
8797	pgcc*)				# Portland Group C compiler
8798	  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'
8799	  tmp_addflag=' $pic_flag'
8800	  ;;
8801	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8802	  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'
8803	  tmp_addflag=' $pic_flag -Mnomain' ;;
8804	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8805	  tmp_addflag=' -i_dynamic' ;;
8806	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8807	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8808	ifc* | ifort*)			# Intel Fortran compiler
8809	  tmp_addflag=' -nofor_main' ;;
8810	esac
8811	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812
8813	if test $supports_anon_versioning = yes; then
8814	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8815  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816  $echo "local: *; };" >> $output_objdir/$libname.ver~
8817	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8818	fi
8819      else
8820	ld_shlibs=no
8821      fi
8822      ;;
8823
8824    netbsd*)
8825      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8826	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8827	wlarc=
8828      else
8829	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831      fi
8832      ;;
8833
8834    solaris*)
8835      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8836	ld_shlibs=no
8837	cat <<EOF 1>&2
8838
8839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8840*** create shared libraries on Solaris systems.  Therefore, libtool
8841*** is disabling shared libraries support.  We urge you to upgrade GNU
8842*** binutils to release 2.9.1 or newer.  Another option is to modify
8843*** your PATH or compiler configuration so that the native linker is
8844*** used, and then restart.
8845
8846EOF
8847      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8848	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850      else
8851	ld_shlibs=no
8852      fi
8853      ;;
8854
8855    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8856      case `$LD -v 2>&1` in
8857        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8858	ld_shlibs=no
8859	cat <<_LT_EOF 1>&2
8860
8861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8862*** reliably create shared libraries on SCO systems.  Therefore, libtool
8863*** is disabling shared libraries support.  We urge you to upgrade GNU
8864*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8865*** your PATH or compiler configuration so that the native linker is
8866*** used, and then restart.
8867
8868_LT_EOF
8869	;;
8870	*)
8871	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8872	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8873	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8874	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8875	  else
8876	    ld_shlibs=no
8877	  fi
8878	;;
8879      esac
8880      ;;
8881
8882    sunos4*)
8883      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8884      wlarc=
8885      hardcode_direct=yes
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    *)
8890      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8891	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893      else
8894	ld_shlibs=no
8895      fi
8896      ;;
8897    esac
8898
8899    if test "$ld_shlibs" = no; then
8900      runpath_var=
8901      hardcode_libdir_flag_spec=
8902      export_dynamic_flag_spec=
8903      whole_archive_flag_spec=
8904    fi
8905  else
8906    # PORTME fill in a description of your system's linker (not GNU ld)
8907    case $host_os in
8908    aix3*)
8909      allow_undefined_flag=unsupported
8910      always_export_symbols=yes
8911      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'
8912      # Note: this linker hardcodes the directories in LIBPATH if there
8913      # are no directories specified by -L.
8914      hardcode_minus_L=yes
8915      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8916	# Neither direct hardcoding nor static linking is supported with a
8917	# broken collect2.
8918	hardcode_direct=unsupported
8919      fi
8920      ;;
8921
8922    aix4* | aix5*)
8923      if test "$host_cpu" = ia64; then
8924	# On IA64, the linker does run time linking by default, so we don't
8925	# have to do anything special.
8926	aix_use_runtimelinking=no
8927	exp_sym_flag='-Bexport'
8928	no_entry_flag=""
8929      else
8930	# If we're using GNU nm, then we don't want the "-C" option.
8931	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8932	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8933	  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'
8934	else
8935	  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'
8936	fi
8937	aix_use_runtimelinking=no
8938
8939	# Test if we are trying to use run time linking or normal
8940	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8941	# need to do runtime linking.
8942	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8943	  for ld_flag in $LDFLAGS; do
8944  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8945  	    aix_use_runtimelinking=yes
8946  	    break
8947  	  fi
8948	  done
8949	  ;;
8950	esac
8951
8952	exp_sym_flag='-bexport'
8953	no_entry_flag='-bnoentry'
8954      fi
8955
8956      # When large executables or shared objects are built, AIX ld can
8957      # have problems creating the table of contents.  If linking a library
8958      # or program results in "error TOC overflow" add -mminimal-toc to
8959      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8960      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8961
8962      archive_cmds=''
8963      hardcode_direct=yes
8964      hardcode_libdir_separator=':'
8965      link_all_deplibs=yes
8966
8967      if test "$GCC" = yes; then
8968	case $host_os in aix4.[012]|aix4.[012].*)
8969	# We only want to do this on AIX 4.2 and lower, the check
8970	# below for broken collect2 doesn't work under 4.3+
8971	  collect2name=`${CC} -print-prog-name=collect2`
8972	  if test -f "$collect2name" && \
8973  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8974	  then
8975  	  # We have reworked collect2
8976  	  hardcode_direct=yes
8977	  else
8978  	  # We have old collect2
8979  	  hardcode_direct=unsupported
8980  	  # It fails to find uninstalled libraries when the uninstalled
8981  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8982  	  # to unsupported forces relinking
8983  	  hardcode_minus_L=yes
8984  	  hardcode_libdir_flag_spec='-L$libdir'
8985  	  hardcode_libdir_separator=
8986	  fi
8987	  ;;
8988	esac
8989	shared_flag='-shared'
8990	if test "$aix_use_runtimelinking" = yes; then
8991	  shared_flag="$shared_flag "'${wl}-G'
8992	fi
8993      else
8994	# not using gcc
8995	if test "$host_cpu" = ia64; then
8996  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8997  	# chokes on -Wl,-G. The following line is correct:
8998	  shared_flag='-G'
8999	else
9000	  if test "$aix_use_runtimelinking" = yes; then
9001	    shared_flag='${wl}-G'
9002	  else
9003	    shared_flag='${wl}-bM:SRE'
9004	  fi
9005	fi
9006      fi
9007
9008      # It seems that -bexpall does not export symbols beginning with
9009      # underscore (_), so it is better to generate a list of symbols to export.
9010      always_export_symbols=yes
9011      if test "$aix_use_runtimelinking" = yes; then
9012	# Warning - without using the other runtime loading flags (-brtl),
9013	# -berok will link without error, but may produce a broken library.
9014	allow_undefined_flag='-berok'
9015       # Determine the default libpath from the value encoded in an empty executable.
9016       cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h.  */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h.  */
9022
9023int
9024main ()
9025{
9026
9027  ;
9028  return 0;
9029}
9030_ACEOF
9031rm -f conftest.$ac_objext conftest$ac_exeext
9032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033  (eval $ac_link) 2>conftest.er1
9034  ac_status=$?
9035  grep -v '^ *+' conftest.er1 >conftest.err
9036  rm -f conftest.er1
9037  cat conftest.err >&5
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); } &&
9040	 { ac_try='test -z "$ac_c_werror_flag"
9041			 || test ! -s conftest.err'
9042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043  (eval $ac_try) 2>&5
9044  ac_status=$?
9045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046  (exit $ac_status); }; } &&
9047	 { ac_try='test -s conftest$ac_exeext'
9048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049  (eval $ac_try) 2>&5
9050  ac_status=$?
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); }; }; then
9053
9054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9055}'`
9056# Check for a 64-bit object if we didn't find anything.
9057if 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; }
9058}'`; fi
9059else
9060  echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063fi
9064rm -f conftest.err conftest.$ac_objext \
9065      conftest$ac_exeext conftest.$ac_ext
9066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9067
9068       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9069	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"
9070       else
9071	if test "$host_cpu" = ia64; then
9072	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9073	  allow_undefined_flag="-z nodefs"
9074	  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"
9075	else
9076	 # Determine the default libpath from the value encoded in an empty executable.
9077	 cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h.  */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h.  */
9083
9084int
9085main ()
9086{
9087
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext conftest$ac_exeext
9093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094  (eval $ac_link) 2>conftest.er1
9095  ac_status=$?
9096  grep -v '^ *+' conftest.er1 >conftest.err
9097  rm -f conftest.er1
9098  cat conftest.err >&5
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); } &&
9101	 { ac_try='test -z "$ac_c_werror_flag"
9102			 || test ! -s conftest.err'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; } &&
9108	 { ac_try='test -s conftest$ac_exeext'
9109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110  (eval $ac_try) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); }; }; then
9114
9115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9116}'`
9117# Check for a 64-bit object if we didn't find anything.
9118if 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; }
9119}'`; fi
9120else
9121  echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
9124fi
9125rm -f conftest.err conftest.$ac_objext \
9126      conftest$ac_exeext conftest.$ac_ext
9127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9128
9129	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9130	  # Warning - without using the other run time loading flags,
9131	  # -berok will link without error, but may produce a broken library.
9132	  no_undefined_flag=' ${wl}-bernotok'
9133	  allow_undefined_flag=' ${wl}-berok'
9134	  # Exported symbols can be pulled into shared objects from archives
9135	  whole_archive_flag_spec='$convenience'
9136	  archive_cmds_need_lc=yes
9137	  # This is similar to how AIX traditionally builds its shared libraries.
9138	  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'
9139	fi
9140      fi
9141      ;;
9142
9143    amigaos*)
9144      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)'
9145      hardcode_libdir_flag_spec='-L$libdir'
9146      hardcode_minus_L=yes
9147      # see comment about different semantics on the GNU ld section
9148      ld_shlibs=no
9149      ;;
9150
9151    bsdi[45]*)
9152      export_dynamic_flag_spec=-rdynamic
9153      ;;
9154
9155    cygwin* | mingw* | pw32*)
9156      # When not using gcc, we currently assume that we are using
9157      # Microsoft Visual C++.
9158      # hardcode_libdir_flag_spec is actually meaningless, as there is
9159      # no search path for DLLs.
9160      hardcode_libdir_flag_spec=' '
9161      allow_undefined_flag=unsupported
9162      # Tell ltmain to make .lib files, not .a files.
9163      libext=lib
9164      # Tell ltmain to make .dll files, not .so files.
9165      shrext_cmds=".dll"
9166      # FIXME: Setting linknames here is a bad hack.
9167      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9168      # The linker will automatically build a .lib file if we build a DLL.
9169      old_archive_From_new_cmds='true'
9170      # FIXME: Should let the user specify the lib program.
9171      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9172      fix_srcfile_path='`cygpath -w "$srcfile"`'
9173      enable_shared_with_static_runtimes=yes
9174      ;;
9175
9176    darwin* | rhapsody*)
9177      case $host_os in
9178        rhapsody* | darwin1.[012])
9179         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9180         ;;
9181       *) # Darwin 1.3 on
9182         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9183           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9184         else
9185           case ${MACOSX_DEPLOYMENT_TARGET} in
9186             10.[012])
9187               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9188               ;;
9189             10.*)
9190               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9191               ;;
9192           esac
9193         fi
9194         ;;
9195      esac
9196      archive_cmds_need_lc=no
9197      hardcode_direct=no
9198      hardcode_automatic=yes
9199      hardcode_shlibpath_var=unsupported
9200      whole_archive_flag_spec=''
9201      link_all_deplibs=yes
9202    if test "$GCC" = yes ; then
9203    	output_verbose_link_cmd='echo'
9204        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9205      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9206      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9207      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}'
9208      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}'
9209    else
9210      case $cc_basename in
9211        xlc*)
9212         output_verbose_link_cmd='echo'
9213         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9214         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9215          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9216         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}'
9217          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}'
9218          ;;
9219       *)
9220         ld_shlibs=no
9221          ;;
9222      esac
9223    fi
9224      ;;
9225
9226    dgux*)
9227      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228      hardcode_libdir_flag_spec='-L$libdir'
9229      hardcode_shlibpath_var=no
9230      ;;
9231
9232    freebsd1*)
9233      ld_shlibs=no
9234      ;;
9235
9236    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9237    # support.  Future versions do this automatically, but an explicit c++rt0.o
9238    # does not break anything, and helps significantly (at the cost of a little
9239    # extra space).
9240    freebsd2.2*)
9241      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9242      hardcode_libdir_flag_spec='-R$libdir'
9243      hardcode_direct=yes
9244      hardcode_shlibpath_var=no
9245      ;;
9246
9247    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9248    freebsd2*)
9249      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9250      hardcode_direct=yes
9251      hardcode_minus_L=yes
9252      hardcode_shlibpath_var=no
9253      ;;
9254
9255    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9256    freebsd* | kfreebsd*-gnu | dragonfly*)
9257      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9258      hardcode_libdir_flag_spec='-R$libdir'
9259      hardcode_direct=yes
9260      hardcode_shlibpath_var=no
9261      ;;
9262
9263    hpux9*)
9264      if test "$GCC" = yes; then
9265	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'
9266      else
9267	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'
9268      fi
9269      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9270      hardcode_libdir_separator=:
9271      hardcode_direct=yes
9272
9273      # hardcode_minus_L: Not really in the search PATH,
9274      # but as the default location of the library.
9275      hardcode_minus_L=yes
9276      export_dynamic_flag_spec='${wl}-E'
9277      ;;
9278
9279    hpux10*)
9280      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9281	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282      else
9283	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9284      fi
9285      if test "$with_gnu_ld" = no; then
9286	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9287	hardcode_libdir_separator=:
9288
9289	hardcode_direct=yes
9290	export_dynamic_flag_spec='${wl}-E'
9291
9292	# hardcode_minus_L: Not really in the search PATH,
9293	# but as the default location of the library.
9294	hardcode_minus_L=yes
9295      fi
9296      ;;
9297
9298    hpux11*)
9299      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9300	case $host_cpu in
9301	hppa*64*)
9302	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9303	  ;;
9304	ia64*)
9305	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9306	  ;;
9307	*)
9308	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9309	  ;;
9310	esac
9311      else
9312	case $host_cpu in
9313	hppa*64*)
9314	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315	  ;;
9316	ia64*)
9317	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9318	  ;;
9319	*)
9320	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9321	  ;;
9322	esac
9323      fi
9324      if test "$with_gnu_ld" = no; then
9325	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9326	hardcode_libdir_separator=:
9327
9328	case $host_cpu in
9329	hppa*64*|ia64*)
9330	  hardcode_libdir_flag_spec_ld='+b $libdir'
9331	  hardcode_direct=no
9332	  hardcode_shlibpath_var=no
9333	  ;;
9334	*)
9335	  hardcode_direct=yes
9336	  export_dynamic_flag_spec='${wl}-E'
9337
9338	  # hardcode_minus_L: Not really in the search PATH,
9339	  # but as the default location of the library.
9340	  hardcode_minus_L=yes
9341	  ;;
9342	esac
9343      fi
9344      ;;
9345
9346    irix5* | irix6* | nonstopux*)
9347      if test "$GCC" = yes; then
9348	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'
9349      else
9350	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'
9351	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9352      fi
9353      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354      hardcode_libdir_separator=:
9355      link_all_deplibs=yes
9356      ;;
9357
9358    netbsd*)
9359      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9360	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9361      else
9362	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9363      fi
9364      hardcode_libdir_flag_spec='-R$libdir'
9365      hardcode_direct=yes
9366      hardcode_shlibpath_var=no
9367      ;;
9368
9369    newsos6)
9370      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371      hardcode_direct=yes
9372      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373      hardcode_libdir_separator=:
9374      hardcode_shlibpath_var=no
9375      ;;
9376
9377    openbsd*)
9378      hardcode_direct=yes
9379      hardcode_shlibpath_var=no
9380      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9381	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9382	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9383	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9384	export_dynamic_flag_spec='${wl}-E'
9385      else
9386       case $host_os in
9387	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9388	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389	   hardcode_libdir_flag_spec='-R$libdir'
9390	   ;;
9391	 *)
9392	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9393	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9394	   ;;
9395       esac
9396      fi
9397      ;;
9398
9399    os2*)
9400      hardcode_libdir_flag_spec='-L$libdir'
9401      hardcode_minus_L=yes
9402      allow_undefined_flag=unsupported
9403      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'
9404      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9405      ;;
9406
9407    osf3*)
9408      if test "$GCC" = yes; then
9409	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9410	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'
9411      else
9412	allow_undefined_flag=' -expect_unresolved \*'
9413	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'
9414      fi
9415      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9416      hardcode_libdir_separator=:
9417      ;;
9418
9419    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9420      if test "$GCC" = yes; then
9421	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9422	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'
9423	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9424      else
9425	allow_undefined_flag=' -expect_unresolved \*'
9426	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'
9427	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9428	$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'
9429
9430	# Both c and cxx compiler support -rpath directly
9431	hardcode_libdir_flag_spec='-rpath $libdir'
9432      fi
9433      hardcode_libdir_separator=:
9434      ;;
9435
9436    solaris*)
9437      no_undefined_flag=' -z text'
9438      if test "$GCC" = yes; then
9439	wlarc='${wl}'
9440	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9442	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9443      else
9444	wlarc=''
9445	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9447  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9448      fi
9449      hardcode_libdir_flag_spec='-R$libdir'
9450      hardcode_shlibpath_var=no
9451      case $host_os in
9452      solaris2.[0-5] | solaris2.[0-5].*) ;;
9453      *)
9454 	# The compiler driver will combine linker options so we
9455 	# cannot just pass the convience library names through
9456 	# without $wl, iff we do not link with $LD.
9457 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9458 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9459 	case $wlarc in
9460 	'')
9461 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9462 	*)
9463 	  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' ;;
9464 	esac ;;
9465      esac
9466      link_all_deplibs=yes
9467      ;;
9468
9469    sunos4*)
9470      if test "x$host_vendor" = xsequent; then
9471	# Use $CC to link under sequent, because it throws in some extra .o
9472	# files that make .init and .fini sections work.
9473	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9474      else
9475	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9476      fi
9477      hardcode_libdir_flag_spec='-L$libdir'
9478      hardcode_direct=yes
9479      hardcode_minus_L=yes
9480      hardcode_shlibpath_var=no
9481      ;;
9482
9483    sysv4)
9484      case $host_vendor in
9485	sni)
9486	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487	  hardcode_direct=yes # is this really true???
9488	;;
9489	siemens)
9490	  ## LD is ld it makes a PLAMLIB
9491	  ## CC just makes a GrossModule.
9492	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9493	  reload_cmds='$CC -r -o $output$reload_objs'
9494	  hardcode_direct=no
9495        ;;
9496	motorola)
9497	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9499	;;
9500      esac
9501      runpath_var='LD_RUN_PATH'
9502      hardcode_shlibpath_var=no
9503      ;;
9504
9505    sysv4.3*)
9506      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507      hardcode_shlibpath_var=no
9508      export_dynamic_flag_spec='-Bexport'
9509      ;;
9510
9511    sysv4*MP*)
9512      if test -d /usr/nec; then
9513	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514	hardcode_shlibpath_var=no
9515	runpath_var=LD_RUN_PATH
9516	hardcode_runpath_var=yes
9517	ld_shlibs=yes
9518      fi
9519      ;;
9520
9521    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9522      no_undefined_flag='${wl}-z,text'
9523      archive_cmds_need_lc=no
9524      hardcode_shlibpath_var=no
9525      runpath_var='LD_RUN_PATH'
9526
9527      if test "$GCC" = yes; then
9528	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530      else
9531	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533      fi
9534      ;;
9535
9536    sysv5* | sco3.2v5* | sco5v6*)
9537      # Note: We can NOT use -z defs as we might desire, because we do not
9538      # link with -lc, and that would cause any symbols used from libc to
9539      # always be unresolved, which means just about no library would
9540      # ever link correctly.  If we're not using GNU ld we use -z text
9541      # though, which does catch some bad symbols but isn't as heavy-handed
9542      # as -z defs.
9543      no_undefined_flag='${wl}-z,text'
9544      allow_undefined_flag='${wl}-z,nodefs'
9545      archive_cmds_need_lc=no
9546      hardcode_shlibpath_var=no
9547      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9548      hardcode_libdir_separator=':'
9549      link_all_deplibs=yes
9550      export_dynamic_flag_spec='${wl}-Bexport'
9551      runpath_var='LD_RUN_PATH'
9552
9553      if test "$GCC" = yes; then
9554	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9556      else
9557	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9559      fi
9560      ;;
9561
9562    uts4*)
9563      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564      hardcode_libdir_flag_spec='-L$libdir'
9565      hardcode_shlibpath_var=no
9566      ;;
9567
9568    *)
9569      ld_shlibs=no
9570      ;;
9571    esac
9572  fi
9573
9574echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9575echo "${ECHO_T}$ld_shlibs" >&6
9576test "$ld_shlibs" = no && can_build_shared=no
9577
9578#
9579# Do we need to explicitly link libc?
9580#
9581case "x$archive_cmds_need_lc" in
9582x|xyes)
9583  # Assume -lc should be added
9584  archive_cmds_need_lc=yes
9585
9586  if test "$enable_shared" = yes && test "$GCC" = yes; then
9587    case $archive_cmds in
9588    *'~'*)
9589      # FIXME: we may have to deal with multi-command sequences.
9590      ;;
9591    '$CC '*)
9592      # Test whether the compiler implicitly links with -lc since on some
9593      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9594      # to ld, don't add -lc before -lgcc.
9595      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9597      $rm conftest*
9598      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9599
9600      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9601  (eval $ac_compile) 2>&5
9602  ac_status=$?
9603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604  (exit $ac_status); } 2>conftest.err; then
9605        soname=conftest
9606        lib=conftest
9607        libobjs=conftest.$ac_objext
9608        deplibs=
9609        wl=$lt_prog_compiler_wl
9610	pic_flag=$lt_prog_compiler_pic
9611        compiler_flags=-v
9612        linker_flags=-v
9613        verstring=
9614        output_objdir=.
9615        libname=conftest
9616        lt_save_allow_undefined_flag=$allow_undefined_flag
9617        allow_undefined_flag=
9618        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9619  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9620  ac_status=$?
9621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622  (exit $ac_status); }
9623        then
9624	  archive_cmds_need_lc=no
9625        else
9626	  archive_cmds_need_lc=yes
9627        fi
9628        allow_undefined_flag=$lt_save_allow_undefined_flag
9629      else
9630        cat conftest.err 1>&5
9631      fi
9632      $rm conftest*
9633      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9634echo "${ECHO_T}$archive_cmds_need_lc" >&6
9635      ;;
9636    esac
9637  fi
9638  ;;
9639esac
9640
9641echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9643library_names_spec=
9644libname_spec='lib$name'
9645soname_spec=
9646shrext_cmds=".so"
9647postinstall_cmds=
9648postuninstall_cmds=
9649finish_cmds=
9650finish_eval=
9651shlibpath_var=
9652shlibpath_overrides_runpath=unknown
9653version_type=none
9654dynamic_linker="$host_os ld.so"
9655sys_lib_dlsearch_path_spec="/lib /usr/lib"
9656if test "$GCC" = yes; then
9657  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9658  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9659    # if the path contains ";" then we assume it to be the separator
9660    # otherwise default to the standard path separator (i.e. ":") - it is
9661    # assumed that no part of a normal pathname contains ";" but that should
9662    # okay in the real world where ";" in dirpaths is itself problematic.
9663    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9664  else
9665    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9666  fi
9667else
9668  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9669fi
9670need_lib_prefix=unknown
9671hardcode_into_libs=no
9672
9673# when you set need_version to no, make sure it does not cause -set_version
9674# flags to be left without arguments
9675need_version=unknown
9676
9677case $host_os in
9678aix3*)
9679  version_type=linux
9680  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9681  shlibpath_var=LIBPATH
9682
9683  # AIX 3 has no versioning support, so we append a major version to the name.
9684  soname_spec='${libname}${release}${shared_ext}$major'
9685  ;;
9686
9687aix4* | aix5*)
9688  version_type=linux
9689  need_lib_prefix=no
9690  need_version=no
9691  hardcode_into_libs=yes
9692  if test "$host_cpu" = ia64; then
9693    # AIX 5 supports IA64
9694    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9695    shlibpath_var=LD_LIBRARY_PATH
9696  else
9697    # With GCC up to 2.95.x, collect2 would create an import file
9698    # for dependence libraries.  The import file would start with
9699    # the line `#! .'.  This would cause the generated library to
9700    # depend on `.', always an invalid library.  This was fixed in
9701    # development snapshots of GCC prior to 3.0.
9702    case $host_os in
9703      aix4 | aix4.[01] | aix4.[01].*)
9704      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9705	   echo ' yes '
9706	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9707	:
9708      else
9709	can_build_shared=no
9710      fi
9711      ;;
9712    esac
9713    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9714    # soname into executable. Probably we can add versioning support to
9715    # collect2, so additional links can be useful in future.
9716    if test "$aix_use_runtimelinking" = yes; then
9717      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9718      # instead of lib<name>.a to let people know that these are not
9719      # typical AIX shared libraries.
9720      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721    else
9722      # We preserve .a as extension for shared libraries through AIX4.2
9723      # and later when we are not doing run time linking.
9724      library_names_spec='${libname}${release}.a $libname.a'
9725      soname_spec='${libname}${release}${shared_ext}$major'
9726    fi
9727    shlibpath_var=LIBPATH
9728  fi
9729  ;;
9730
9731amigaos*)
9732  library_names_spec='$libname.ixlibrary $libname.a'
9733  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9734  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'
9735  ;;
9736
9737beos*)
9738  library_names_spec='${libname}${shared_ext}'
9739  dynamic_linker="$host_os ld.so"
9740  shlibpath_var=LIBRARY_PATH
9741  ;;
9742
9743bsdi[45]*)
9744  version_type=linux
9745  need_version=no
9746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747  soname_spec='${libname}${release}${shared_ext}$major'
9748  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9749  shlibpath_var=LD_LIBRARY_PATH
9750  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9751  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9752  # the default ld.so.conf also contains /usr/contrib/lib and
9753  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9754  # libtool to hard-code these into programs
9755  ;;
9756
9757cygwin* | mingw* | pw32*)
9758  version_type=windows
9759  shrext_cmds=".dll"
9760  need_version=no
9761  need_lib_prefix=no
9762
9763  case $GCC,$host_os in
9764  yes,cygwin* | yes,mingw* | yes,pw32*)
9765    library_names_spec='$libname.dll.a'
9766    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9767    postinstall_cmds='base_file=`basename \${file}`~
9768      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9769      dldir=$destdir/`dirname \$dlpath`~
9770      test -d \$dldir || mkdir -p \$dldir~
9771      $install_prog $dir/$dlname \$dldir/$dlname~
9772      chmod a+x \$dldir/$dlname'
9773    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9774      dlpath=$dir/\$dldll~
9775       $rm \$dlpath'
9776    shlibpath_overrides_runpath=yes
9777
9778    case $host_os in
9779    cygwin*)
9780      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9781      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9783      ;;
9784    mingw*)
9785      # MinGW DLLs use traditional 'lib' prefix
9786      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9787      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9788      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9789        # It is most probably a Windows format PATH printed by
9790        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9791        # path with ; separators, and with drive letters. We can handle the
9792        # drive letters (cygwin fileutils understands them), so leave them,
9793        # especially as we might pass files found there to a mingw objdump,
9794        # which wouldn't understand a cygwinified path. Ahh.
9795        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9796      else
9797        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9798      fi
9799      ;;
9800    pw32*)
9801      # pw32 DLLs use 'pw' prefix rather than 'lib'
9802      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9803      ;;
9804    esac
9805    ;;
9806
9807  *)
9808    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9809    ;;
9810  esac
9811  dynamic_linker='Win32 ld.exe'
9812  # FIXME: first we should search . and the directory the executable is in
9813  shlibpath_var=PATH
9814  ;;
9815
9816darwin* | rhapsody*)
9817  dynamic_linker="$host_os dyld"
9818  version_type=darwin
9819  need_lib_prefix=no
9820  need_version=no
9821  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9822  soname_spec='${libname}${release}${major}$shared_ext'
9823  shlibpath_overrides_runpath=yes
9824  shlibpath_var=DYLD_LIBRARY_PATH
9825  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9826  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9827  if test "$GCC" = yes; then
9828    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"`
9829  else
9830    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9831  fi
9832  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9833  ;;
9834
9835dgux*)
9836  version_type=linux
9837  need_lib_prefix=no
9838  need_version=no
9839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9840  soname_spec='${libname}${release}${shared_ext}$major'
9841  shlibpath_var=LD_LIBRARY_PATH
9842  ;;
9843
9844freebsd1*)
9845  dynamic_linker=no
9846  ;;
9847
9848kfreebsd*-gnu)
9849  version_type=linux
9850  need_lib_prefix=no
9851  need_version=no
9852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9853  soname_spec='${libname}${release}${shared_ext}$major'
9854  shlibpath_var=LD_LIBRARY_PATH
9855  shlibpath_overrides_runpath=no
9856  hardcode_into_libs=yes
9857  dynamic_linker='GNU ld.so'
9858  ;;
9859
9860freebsd* | dragonfly*)
9861  # DragonFly does not have aout.  When/if they implement a new
9862  # versioning mechanism, adjust this.
9863  if test -x /usr/bin/objformat; then
9864    objformat=`/usr/bin/objformat`
9865  else
9866    case $host_os in
9867    freebsd[123]*) objformat=aout ;;
9868    *) objformat=elf ;;
9869    esac
9870  fi
9871  version_type=freebsd-$objformat
9872  case $version_type in
9873    freebsd-elf*)
9874      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9875      need_version=no
9876      need_lib_prefix=no
9877      ;;
9878    freebsd-*)
9879      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9880      need_version=yes
9881      ;;
9882  esac
9883  shlibpath_var=LD_LIBRARY_PATH
9884  case $host_os in
9885  freebsd2*)
9886    shlibpath_overrides_runpath=yes
9887    ;;
9888  freebsd3.[01]* | freebsdelf3.[01]*)
9889    shlibpath_overrides_runpath=yes
9890    hardcode_into_libs=yes
9891    ;;
9892  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9893  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9894    shlibpath_overrides_runpath=no
9895    hardcode_into_libs=yes
9896    ;;
9897  freebsd*) # from 4.6 on
9898    shlibpath_overrides_runpath=yes
9899    hardcode_into_libs=yes
9900    ;;
9901  esac
9902  ;;
9903
9904gnu*)
9905  version_type=linux
9906  need_lib_prefix=no
9907  need_version=no
9908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9909  soname_spec='${libname}${release}${shared_ext}$major'
9910  shlibpath_var=LD_LIBRARY_PATH
9911  hardcode_into_libs=yes
9912  ;;
9913
9914hpux9* | hpux10* | hpux11*)
9915  # Give a soname corresponding to the major version so that dld.sl refuses to
9916  # link against other versions.
9917  version_type=sunos
9918  need_lib_prefix=no
9919  need_version=no
9920  case $host_cpu in
9921  ia64*)
9922    shrext_cmds='.so'
9923    hardcode_into_libs=yes
9924    dynamic_linker="$host_os dld.so"
9925    shlibpath_var=LD_LIBRARY_PATH
9926    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928    soname_spec='${libname}${release}${shared_ext}$major'
9929    if test "X$HPUX_IA64_MODE" = X32; then
9930      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9931    else
9932      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9933    fi
9934    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9935    ;;
9936   hppa*64*)
9937     shrext_cmds='.sl'
9938     hardcode_into_libs=yes
9939     dynamic_linker="$host_os dld.sl"
9940     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9941     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943     soname_spec='${libname}${release}${shared_ext}$major'
9944     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9945     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9946     ;;
9947   *)
9948    shrext_cmds='.sl'
9949    dynamic_linker="$host_os dld.sl"
9950    shlibpath_var=SHLIB_PATH
9951    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9952    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953    soname_spec='${libname}${release}${shared_ext}$major'
9954    ;;
9955  esac
9956  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9957  postinstall_cmds='chmod 555 $lib'
9958  ;;
9959
9960interix3*)
9961  version_type=linux
9962  need_lib_prefix=no
9963  need_version=no
9964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9965  soname_spec='${libname}${release}${shared_ext}$major'
9966  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9967  shlibpath_var=LD_LIBRARY_PATH
9968  shlibpath_overrides_runpath=no
9969  hardcode_into_libs=yes
9970  ;;
9971
9972irix5* | irix6* | nonstopux*)
9973  case $host_os in
9974    nonstopux*) version_type=nonstopux ;;
9975    *)
9976	if test "$lt_cv_prog_gnu_ld" = yes; then
9977		version_type=linux
9978	else
9979		version_type=irix
9980	fi ;;
9981  esac
9982  need_lib_prefix=no
9983  need_version=no
9984  soname_spec='${libname}${release}${shared_ext}$major'
9985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9986  case $host_os in
9987  irix5* | nonstopux*)
9988    libsuff= shlibsuff=
9989    ;;
9990  *)
9991    case $LD in # libtool.m4 will add one of these switches to LD
9992    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9993      libsuff= shlibsuff= libmagic=32-bit;;
9994    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9995      libsuff=32 shlibsuff=N32 libmagic=N32;;
9996    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9997      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9998    *) libsuff= shlibsuff= libmagic=never-match;;
9999    esac
10000    ;;
10001  esac
10002  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10003  shlibpath_overrides_runpath=no
10004  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10005  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10006  hardcode_into_libs=yes
10007  ;;
10008
10009# No shared lib support for Linux oldld, aout, or coff.
10010linux*oldld* | linux*aout* | linux*coff*)
10011  dynamic_linker=no
10012  ;;
10013
10014# This must be Linux ELF.
10015linux*)
10016  version_type=linux
10017  need_lib_prefix=no
10018  need_version=no
10019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020  soname_spec='${libname}${release}${shared_ext}$major'
10021  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10022  shlibpath_var=LD_LIBRARY_PATH
10023  shlibpath_overrides_runpath=no
10024  # This implies no fast_install, which is unacceptable.
10025  # Some rework will be needed to allow for fast_install
10026  # before this can be enabled.
10027  hardcode_into_libs=yes
10028
10029  # Append ld.so.conf contents to the search path
10030  if test -f /etc/ld.so.conf; then
10031    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' ' '`
10032    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10033  fi
10034
10035  # We used to test for /lib/ld.so.1 and disable shared libraries on
10036  # powerpc, because MkLinux only supported shared libraries with the
10037  # GNU dynamic linker.  Since this was broken with cross compilers,
10038  # most powerpc-linux boxes support dynamic linking these days and
10039  # people can always --disable-shared, the test was removed, and we
10040  # assume the GNU/Linux dynamic linker is in use.
10041  dynamic_linker='GNU/Linux ld.so'
10042  ;;
10043
10044knetbsd*-gnu)
10045  version_type=linux
10046  need_lib_prefix=no
10047  need_version=no
10048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  shlibpath_overrides_runpath=no
10052  hardcode_into_libs=yes
10053  dynamic_linker='GNU ld.so'
10054  ;;
10055
10056netbsd*)
10057  version_type=sunos
10058  need_lib_prefix=no
10059  need_version=no
10060  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10061    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063    dynamic_linker='NetBSD (a.out) ld.so'
10064  else
10065    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10066    soname_spec='${libname}${release}${shared_ext}$major'
10067    dynamic_linker='NetBSD ld.elf_so'
10068  fi
10069  shlibpath_var=LD_LIBRARY_PATH
10070  shlibpath_overrides_runpath=yes
10071  hardcode_into_libs=yes
10072  ;;
10073
10074newsos6)
10075  version_type=linux
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077  shlibpath_var=LD_LIBRARY_PATH
10078  shlibpath_overrides_runpath=yes
10079  ;;
10080
10081nto-qnx*)
10082  version_type=linux
10083  need_lib_prefix=no
10084  need_version=no
10085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086  soname_spec='${libname}${release}${shared_ext}$major'
10087  shlibpath_var=LD_LIBRARY_PATH
10088  shlibpath_overrides_runpath=yes
10089  ;;
10090
10091openbsd*)
10092  version_type=sunos
10093  sys_lib_dlsearch_path_spec="/usr/lib"
10094  need_lib_prefix=no
10095  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10096  case $host_os in
10097    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10098    *)                         need_version=no  ;;
10099  esac
10100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10101  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10102  shlibpath_var=LD_LIBRARY_PATH
10103  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10104    case $host_os in
10105      openbsd2.[89] | openbsd2.[89].*)
10106	shlibpath_overrides_runpath=no
10107	;;
10108      *)
10109	shlibpath_overrides_runpath=yes
10110	;;
10111      esac
10112  else
10113    shlibpath_overrides_runpath=yes
10114  fi
10115  ;;
10116
10117os2*)
10118  libname_spec='$name'
10119  shrext_cmds=".dll"
10120  need_lib_prefix=no
10121  library_names_spec='$libname${shared_ext} $libname.a'
10122  dynamic_linker='OS/2 ld.exe'
10123  shlibpath_var=LIBPATH
10124  ;;
10125
10126osf3* | osf4* | osf5*)
10127  version_type=osf
10128  need_lib_prefix=no
10129  need_version=no
10130  soname_spec='${libname}${release}${shared_ext}$major'
10131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132  shlibpath_var=LD_LIBRARY_PATH
10133  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10134  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10135  ;;
10136
10137solaris*)
10138  version_type=linux
10139  need_lib_prefix=no
10140  need_version=no
10141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142  soname_spec='${libname}${release}${shared_ext}$major'
10143  shlibpath_var=LD_LIBRARY_PATH
10144  shlibpath_overrides_runpath=yes
10145  hardcode_into_libs=yes
10146  # ldd complains unless libraries are executable
10147  postinstall_cmds='chmod +x $lib'
10148  ;;
10149
10150sunos4*)
10151  version_type=sunos
10152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10153  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10154  shlibpath_var=LD_LIBRARY_PATH
10155  shlibpath_overrides_runpath=yes
10156  if test "$with_gnu_ld" = yes; then
10157    need_lib_prefix=no
10158  fi
10159  need_version=yes
10160  ;;
10161
10162sysv4 | sysv4.3*)
10163  version_type=linux
10164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165  soname_spec='${libname}${release}${shared_ext}$major'
10166  shlibpath_var=LD_LIBRARY_PATH
10167  case $host_vendor in
10168    sni)
10169      shlibpath_overrides_runpath=no
10170      need_lib_prefix=no
10171      export_dynamic_flag_spec='${wl}-Blargedynsym'
10172      runpath_var=LD_RUN_PATH
10173      ;;
10174    siemens)
10175      need_lib_prefix=no
10176      ;;
10177    motorola)
10178      need_lib_prefix=no
10179      need_version=no
10180      shlibpath_overrides_runpath=no
10181      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10182      ;;
10183  esac
10184  ;;
10185
10186sysv4*MP*)
10187  if test -d /usr/nec ;then
10188    version_type=linux
10189    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10190    soname_spec='$libname${shared_ext}.$major'
10191    shlibpath_var=LD_LIBRARY_PATH
10192  fi
10193  ;;
10194
10195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10196  version_type=freebsd-elf
10197  need_lib_prefix=no
10198  need_version=no
10199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10200  soname_spec='${libname}${release}${shared_ext}$major'
10201  shlibpath_var=LD_LIBRARY_PATH
10202  hardcode_into_libs=yes
10203  if test "$with_gnu_ld" = yes; then
10204    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10205    shlibpath_overrides_runpath=no
10206  else
10207    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10208    shlibpath_overrides_runpath=yes
10209    case $host_os in
10210      sco3.2v5*)
10211        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10212	;;
10213    esac
10214  fi
10215  sys_lib_dlsearch_path_spec='/usr/lib'
10216  ;;
10217
10218uts4*)
10219  version_type=linux
10220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221  soname_spec='${libname}${release}${shared_ext}$major'
10222  shlibpath_var=LD_LIBRARY_PATH
10223  ;;
10224
10225*)
10226  dynamic_linker=no
10227  ;;
10228esac
10229echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10230echo "${ECHO_T}$dynamic_linker" >&6
10231test "$dynamic_linker" = no && can_build_shared=no
10232
10233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10234if test "$GCC" = yes; then
10235  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10236fi
10237
10238echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10239echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10240hardcode_action=
10241if test -n "$hardcode_libdir_flag_spec" || \
10242   test -n "$runpath_var" || \
10243   test "X$hardcode_automatic" = "Xyes" ; then
10244
10245  # We can hardcode non-existant directories.
10246  if test "$hardcode_direct" != no &&
10247     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10248     # have to relink, otherwise we might link with an installed library
10249     # when we should be linking with a yet-to-be-installed one
10250     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10251     test "$hardcode_minus_L" != no; then
10252    # Linking always hardcodes the temporary library directory.
10253    hardcode_action=relink
10254  else
10255    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10256    hardcode_action=immediate
10257  fi
10258else
10259  # We cannot hardcode anything, or else we can only hardcode existing
10260  # directories.
10261  hardcode_action=unsupported
10262fi
10263echo "$as_me:$LINENO: result: $hardcode_action" >&5
10264echo "${ECHO_T}$hardcode_action" >&6
10265
10266if test "$hardcode_action" = relink; then
10267  # Fast installation is not supported
10268  enable_fast_install=no
10269elif test "$shlibpath_overrides_runpath" = yes ||
10270     test "$enable_shared" = no; then
10271  # Fast installation is not necessary
10272  enable_fast_install=needless
10273fi
10274
10275striplib=
10276old_striplib=
10277echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10278echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10279if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10280  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10281  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10282  echo "$as_me:$LINENO: result: yes" >&5
10283echo "${ECHO_T}yes" >&6
10284else
10285# FIXME - insert some real tests, host_os isn't really good enough
10286  case $host_os in
10287   darwin*)
10288       if test -n "$STRIP" ; then
10289         striplib="$STRIP -x"
10290         echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292       else
10293  echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295fi
10296       ;;
10297   *)
10298  echo "$as_me:$LINENO: result: no" >&5
10299echo "${ECHO_T}no" >&6
10300    ;;
10301  esac
10302fi
10303
10304if test "x$enable_dlopen" != xyes; then
10305  enable_dlopen=unknown
10306  enable_dlopen_self=unknown
10307  enable_dlopen_self_static=unknown
10308else
10309  lt_cv_dlopen=no
10310  lt_cv_dlopen_libs=
10311
10312  case $host_os in
10313  beos*)
10314    lt_cv_dlopen="load_add_on"
10315    lt_cv_dlopen_libs=
10316    lt_cv_dlopen_self=yes
10317    ;;
10318
10319  mingw* | pw32*)
10320    lt_cv_dlopen="LoadLibrary"
10321    lt_cv_dlopen_libs=
10322   ;;
10323
10324  cygwin*)
10325    lt_cv_dlopen="dlopen"
10326    lt_cv_dlopen_libs=
10327   ;;
10328
10329  darwin*)
10330  # if libdl is installed we need to link against it
10331    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10332echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10333if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10334  echo $ECHO_N "(cached) $ECHO_C" >&6
10335else
10336  ac_check_lib_save_LIBS=$LIBS
10337LIBS="-ldl  $LIBS"
10338cat >conftest.$ac_ext <<_ACEOF
10339/* confdefs.h.  */
10340_ACEOF
10341cat confdefs.h >>conftest.$ac_ext
10342cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h.  */
10344
10345/* Override any gcc2 internal prototype to avoid an error.  */
10346#ifdef __cplusplus
10347extern "C"
10348#endif
10349/* We use char because int might match the return type of a gcc2
10350   builtin and then its argument prototype would still apply.  */
10351char dlopen ();
10352int
10353main ()
10354{
10355dlopen ();
10356  ;
10357  return 0;
10358}
10359_ACEOF
10360rm -f conftest.$ac_objext conftest$ac_exeext
10361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362  (eval $ac_link) 2>conftest.er1
10363  ac_status=$?
10364  grep -v '^ *+' conftest.er1 >conftest.err
10365  rm -f conftest.er1
10366  cat conftest.err >&5
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); } &&
10369	 { ac_try='test -z "$ac_c_werror_flag"
10370			 || test ! -s conftest.err'
10371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372  (eval $ac_try) 2>&5
10373  ac_status=$?
10374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); }; } &&
10376	 { ac_try='test -s conftest$ac_exeext'
10377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378  (eval $ac_try) 2>&5
10379  ac_status=$?
10380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381  (exit $ac_status); }; }; then
10382  ac_cv_lib_dl_dlopen=yes
10383else
10384  echo "$as_me: failed program was:" >&5
10385sed 's/^/| /' conftest.$ac_ext >&5
10386
10387ac_cv_lib_dl_dlopen=no
10388fi
10389rm -f conftest.err conftest.$ac_objext \
10390      conftest$ac_exeext conftest.$ac_ext
10391LIBS=$ac_check_lib_save_LIBS
10392fi
10393echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10394echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10395if test $ac_cv_lib_dl_dlopen = yes; then
10396  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10397else
10398
10399    lt_cv_dlopen="dyld"
10400    lt_cv_dlopen_libs=
10401    lt_cv_dlopen_self=yes
10402
10403fi
10404
10405   ;;
10406
10407  *)
10408    echo "$as_me:$LINENO: checking for shl_load" >&5
10409echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10410if test "${ac_cv_func_shl_load+set}" = set; then
10411  echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413  cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h.  */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
10418/* end confdefs.h.  */
10419/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10420   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10421#define shl_load innocuous_shl_load
10422
10423/* System header to define __stub macros and hopefully few prototypes,
10424    which can conflict with char shl_load (); below.
10425    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426    <limits.h> exists even on freestanding compilers.  */
10427
10428#ifdef __STDC__
10429# include <limits.h>
10430#else
10431# include <assert.h>
10432#endif
10433
10434#undef shl_load
10435
10436/* Override any gcc2 internal prototype to avoid an error.  */
10437#ifdef __cplusplus
10438extern "C"
10439{
10440#endif
10441/* We use char because int might match the return type of a gcc2
10442   builtin and then its argument prototype would still apply.  */
10443char shl_load ();
10444/* The GNU C library defines this for functions which it implements
10445    to always fail with ENOSYS.  Some functions are actually named
10446    something starting with __ and the normal name is an alias.  */
10447#if defined (__stub_shl_load) || defined (__stub___shl_load)
10448choke me
10449#else
10450char (*f) () = shl_load;
10451#endif
10452#ifdef __cplusplus
10453}
10454#endif
10455
10456int
10457main ()
10458{
10459return f != shl_load;
10460  ;
10461  return 0;
10462}
10463_ACEOF
10464rm -f conftest.$ac_objext conftest$ac_exeext
10465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466  (eval $ac_link) 2>conftest.er1
10467  ac_status=$?
10468  grep -v '^ *+' conftest.er1 >conftest.err
10469  rm -f conftest.er1
10470  cat conftest.err >&5
10471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472  (exit $ac_status); } &&
10473	 { ac_try='test -z "$ac_c_werror_flag"
10474			 || test ! -s conftest.err'
10475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476  (eval $ac_try) 2>&5
10477  ac_status=$?
10478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479  (exit $ac_status); }; } &&
10480	 { ac_try='test -s conftest$ac_exeext'
10481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482  (eval $ac_try) 2>&5
10483  ac_status=$?
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); }; }; then
10486  ac_cv_func_shl_load=yes
10487else
10488  echo "$as_me: failed program was:" >&5
10489sed 's/^/| /' conftest.$ac_ext >&5
10490
10491ac_cv_func_shl_load=no
10492fi
10493rm -f conftest.err conftest.$ac_objext \
10494      conftest$ac_exeext conftest.$ac_ext
10495fi
10496echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10497echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10498if test $ac_cv_func_shl_load = yes; then
10499  lt_cv_dlopen="shl_load"
10500else
10501  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10502echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10503if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10504  echo $ECHO_N "(cached) $ECHO_C" >&6
10505else
10506  ac_check_lib_save_LIBS=$LIBS
10507LIBS="-ldld  $LIBS"
10508cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h.  */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h.  */
10514
10515/* Override any gcc2 internal prototype to avoid an error.  */
10516#ifdef __cplusplus
10517extern "C"
10518#endif
10519/* We use char because int might match the return type of a gcc2
10520   builtin and then its argument prototype would still apply.  */
10521char shl_load ();
10522int
10523main ()
10524{
10525shl_load ();
10526  ;
10527  return 0;
10528}
10529_ACEOF
10530rm -f conftest.$ac_objext conftest$ac_exeext
10531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532  (eval $ac_link) 2>conftest.er1
10533  ac_status=$?
10534  grep -v '^ *+' conftest.er1 >conftest.err
10535  rm -f conftest.er1
10536  cat conftest.err >&5
10537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538  (exit $ac_status); } &&
10539	 { ac_try='test -z "$ac_c_werror_flag"
10540			 || test ! -s conftest.err'
10541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542  (eval $ac_try) 2>&5
10543  ac_status=$?
10544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545  (exit $ac_status); }; } &&
10546	 { ac_try='test -s conftest$ac_exeext'
10547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548  (eval $ac_try) 2>&5
10549  ac_status=$?
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); }; }; then
10552  ac_cv_lib_dld_shl_load=yes
10553else
10554  echo "$as_me: failed program was:" >&5
10555sed 's/^/| /' conftest.$ac_ext >&5
10556
10557ac_cv_lib_dld_shl_load=no
10558fi
10559rm -f conftest.err conftest.$ac_objext \
10560      conftest$ac_exeext conftest.$ac_ext
10561LIBS=$ac_check_lib_save_LIBS
10562fi
10563echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10564echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10565if test $ac_cv_lib_dld_shl_load = yes; then
10566  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10567else
10568  echo "$as_me:$LINENO: checking for dlopen" >&5
10569echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10570if test "${ac_cv_func_dlopen+set}" = set; then
10571  echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573  cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h.  */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h.  */
10579/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10580   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10581#define dlopen innocuous_dlopen
10582
10583/* System header to define __stub macros and hopefully few prototypes,
10584    which can conflict with char dlopen (); below.
10585    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10586    <limits.h> exists even on freestanding compilers.  */
10587
10588#ifdef __STDC__
10589# include <limits.h>
10590#else
10591# include <assert.h>
10592#endif
10593
10594#undef dlopen
10595
10596/* Override any gcc2 internal prototype to avoid an error.  */
10597#ifdef __cplusplus
10598extern "C"
10599{
10600#endif
10601/* We use char because int might match the return type of a gcc2
10602   builtin and then its argument prototype would still apply.  */
10603char dlopen ();
10604/* The GNU C library defines this for functions which it implements
10605    to always fail with ENOSYS.  Some functions are actually named
10606    something starting with __ and the normal name is an alias.  */
10607#if defined (__stub_dlopen) || defined (__stub___dlopen)
10608choke me
10609#else
10610char (*f) () = dlopen;
10611#endif
10612#ifdef __cplusplus
10613}
10614#endif
10615
10616int
10617main ()
10618{
10619return f != dlopen;
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624rm -f conftest.$ac_objext conftest$ac_exeext
10625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626  (eval $ac_link) 2>conftest.er1
10627  ac_status=$?
10628  grep -v '^ *+' conftest.er1 >conftest.err
10629  rm -f conftest.er1
10630  cat conftest.err >&5
10631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); } &&
10633	 { ac_try='test -z "$ac_c_werror_flag"
10634			 || test ! -s conftest.err'
10635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636  (eval $ac_try) 2>&5
10637  ac_status=$?
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); }; } &&
10640	 { ac_try='test -s conftest$ac_exeext'
10641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642  (eval $ac_try) 2>&5
10643  ac_status=$?
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); }; }; then
10646  ac_cv_func_dlopen=yes
10647else
10648  echo "$as_me: failed program was:" >&5
10649sed 's/^/| /' conftest.$ac_ext >&5
10650
10651ac_cv_func_dlopen=no
10652fi
10653rm -f conftest.err conftest.$ac_objext \
10654      conftest$ac_exeext conftest.$ac_ext
10655fi
10656echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10657echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10658if test $ac_cv_func_dlopen = yes; then
10659  lt_cv_dlopen="dlopen"
10660else
10661  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10662echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10663if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10664  echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666  ac_check_lib_save_LIBS=$LIBS
10667LIBS="-ldl  $LIBS"
10668cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h.  */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h.  */
10674
10675/* Override any gcc2 internal prototype to avoid an error.  */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
10679/* We use char because int might match the return type of a gcc2
10680   builtin and then its argument prototype would still apply.  */
10681char dlopen ();
10682int
10683main ()
10684{
10685dlopen ();
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690rm -f conftest.$ac_objext conftest$ac_exeext
10691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692  (eval $ac_link) 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } &&
10699	 { ac_try='test -z "$ac_c_werror_flag"
10700			 || test ! -s conftest.err'
10701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702  (eval $ac_try) 2>&5
10703  ac_status=$?
10704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705  (exit $ac_status); }; } &&
10706	 { ac_try='test -s conftest$ac_exeext'
10707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708  (eval $ac_try) 2>&5
10709  ac_status=$?
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); }; }; then
10712  ac_cv_lib_dl_dlopen=yes
10713else
10714  echo "$as_me: failed program was:" >&5
10715sed 's/^/| /' conftest.$ac_ext >&5
10716
10717ac_cv_lib_dl_dlopen=no
10718fi
10719rm -f conftest.err conftest.$ac_objext \
10720      conftest$ac_exeext conftest.$ac_ext
10721LIBS=$ac_check_lib_save_LIBS
10722fi
10723echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10725if test $ac_cv_lib_dl_dlopen = yes; then
10726  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10727else
10728  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10729echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10730if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10731  echo $ECHO_N "(cached) $ECHO_C" >&6
10732else
10733  ac_check_lib_save_LIBS=$LIBS
10734LIBS="-lsvld  $LIBS"
10735cat >conftest.$ac_ext <<_ACEOF
10736/* confdefs.h.  */
10737_ACEOF
10738cat confdefs.h >>conftest.$ac_ext
10739cat >>conftest.$ac_ext <<_ACEOF
10740/* end confdefs.h.  */
10741
10742/* Override any gcc2 internal prototype to avoid an error.  */
10743#ifdef __cplusplus
10744extern "C"
10745#endif
10746/* We use char because int might match the return type of a gcc2
10747   builtin and then its argument prototype would still apply.  */
10748char dlopen ();
10749int
10750main ()
10751{
10752dlopen ();
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757rm -f conftest.$ac_objext conftest$ac_exeext
10758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759  (eval $ac_link) 2>conftest.er1
10760  ac_status=$?
10761  grep -v '^ *+' conftest.er1 >conftest.err
10762  rm -f conftest.er1
10763  cat conftest.err >&5
10764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765  (exit $ac_status); } &&
10766	 { ac_try='test -z "$ac_c_werror_flag"
10767			 || test ! -s conftest.err'
10768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769  (eval $ac_try) 2>&5
10770  ac_status=$?
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); }; } &&
10773	 { ac_try='test -s conftest$ac_exeext'
10774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775  (eval $ac_try) 2>&5
10776  ac_status=$?
10777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778  (exit $ac_status); }; }; then
10779  ac_cv_lib_svld_dlopen=yes
10780else
10781  echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784ac_cv_lib_svld_dlopen=no
10785fi
10786rm -f conftest.err conftest.$ac_objext \
10787      conftest$ac_exeext conftest.$ac_ext
10788LIBS=$ac_check_lib_save_LIBS
10789fi
10790echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10791echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10792if test $ac_cv_lib_svld_dlopen = yes; then
10793  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10794else
10795  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10796echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10797if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10798  echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800  ac_check_lib_save_LIBS=$LIBS
10801LIBS="-ldld  $LIBS"
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808
10809/* Override any gcc2 internal prototype to avoid an error.  */
10810#ifdef __cplusplus
10811extern "C"
10812#endif
10813/* We use char because int might match the return type of a gcc2
10814   builtin and then its argument prototype would still apply.  */
10815char dld_link ();
10816int
10817main ()
10818{
10819dld_link ();
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826  (eval $ac_link) 2>conftest.er1
10827  ac_status=$?
10828  grep -v '^ *+' conftest.er1 >conftest.err
10829  rm -f conftest.er1
10830  cat conftest.err >&5
10831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832  (exit $ac_status); } &&
10833	 { ac_try='test -z "$ac_c_werror_flag"
10834			 || test ! -s conftest.err'
10835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836  (eval $ac_try) 2>&5
10837  ac_status=$?
10838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839  (exit $ac_status); }; } &&
10840	 { ac_try='test -s conftest$ac_exeext'
10841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842  (eval $ac_try) 2>&5
10843  ac_status=$?
10844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845  (exit $ac_status); }; }; then
10846  ac_cv_lib_dld_dld_link=yes
10847else
10848  echo "$as_me: failed program was:" >&5
10849sed 's/^/| /' conftest.$ac_ext >&5
10850
10851ac_cv_lib_dld_dld_link=no
10852fi
10853rm -f conftest.err conftest.$ac_objext \
10854      conftest$ac_exeext conftest.$ac_ext
10855LIBS=$ac_check_lib_save_LIBS
10856fi
10857echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10858echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10859if test $ac_cv_lib_dld_dld_link = yes; then
10860  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10861fi
10862
10863
10864fi
10865
10866
10867fi
10868
10869
10870fi
10871
10872
10873fi
10874
10875
10876fi
10877
10878    ;;
10879  esac
10880
10881  if test "x$lt_cv_dlopen" != xno; then
10882    enable_dlopen=yes
10883  else
10884    enable_dlopen=no
10885  fi
10886
10887  case $lt_cv_dlopen in
10888  dlopen)
10889    save_CPPFLAGS="$CPPFLAGS"
10890    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10891
10892    save_LDFLAGS="$LDFLAGS"
10893    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10894
10895    save_LIBS="$LIBS"
10896    LIBS="$lt_cv_dlopen_libs $LIBS"
10897
10898    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10899echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10900if test "${lt_cv_dlopen_self+set}" = set; then
10901  echo $ECHO_N "(cached) $ECHO_C" >&6
10902else
10903  	  if test "$cross_compiling" = yes; then :
10904  lt_cv_dlopen_self=cross
10905else
10906  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10907  lt_status=$lt_dlunknown
10908  cat > conftest.$ac_ext <<EOF
10909#line 10909 "configure"
10910#include "confdefs.h"
10911
10912#if HAVE_DLFCN_H
10913#include <dlfcn.h>
10914#endif
10915
10916#include <stdio.h>
10917
10918#ifdef RTLD_GLOBAL
10919#  define LT_DLGLOBAL		RTLD_GLOBAL
10920#else
10921#  ifdef DL_GLOBAL
10922#    define LT_DLGLOBAL		DL_GLOBAL
10923#  else
10924#    define LT_DLGLOBAL		0
10925#  endif
10926#endif
10927
10928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10929   find out it does not work in some platform. */
10930#ifndef LT_DLLAZY_OR_NOW
10931#  ifdef RTLD_LAZY
10932#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10933#  else
10934#    ifdef DL_LAZY
10935#      define LT_DLLAZY_OR_NOW		DL_LAZY
10936#    else
10937#      ifdef RTLD_NOW
10938#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10939#      else
10940#        ifdef DL_NOW
10941#          define LT_DLLAZY_OR_NOW	DL_NOW
10942#        else
10943#          define LT_DLLAZY_OR_NOW	0
10944#        endif
10945#      endif
10946#    endif
10947#  endif
10948#endif
10949
10950#ifdef __cplusplus
10951extern "C" void exit (int);
10952#endif
10953
10954void fnord() { int i=42;}
10955int main ()
10956{
10957  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10958  int status = $lt_dlunknown;
10959
10960  if (self)
10961    {
10962      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10963      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10964      /* dlclose (self); */
10965    }
10966  else
10967    puts (dlerror ());
10968
10969    exit (status);
10970}
10971EOF
10972  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973  (eval $ac_link) 2>&5
10974  ac_status=$?
10975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10977    (./conftest; exit; ) >&5 2>/dev/null
10978    lt_status=$?
10979    case x$lt_status in
10980      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10981      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10982      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10983    esac
10984  else :
10985    # compilation failed
10986    lt_cv_dlopen_self=no
10987  fi
10988fi
10989rm -fr conftest*
10990
10991
10992fi
10993echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10994echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10995
10996    if test "x$lt_cv_dlopen_self" = xyes; then
10997      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10998      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10999echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11000if test "${lt_cv_dlopen_self_static+set}" = set; then
11001  echo $ECHO_N "(cached) $ECHO_C" >&6
11002else
11003  	  if test "$cross_compiling" = yes; then :
11004  lt_cv_dlopen_self_static=cross
11005else
11006  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007  lt_status=$lt_dlunknown
11008  cat > conftest.$ac_ext <<EOF
11009#line 11009 "configure"
11010#include "confdefs.h"
11011
11012#if HAVE_DLFCN_H
11013#include <dlfcn.h>
11014#endif
11015
11016#include <stdio.h>
11017
11018#ifdef RTLD_GLOBAL
11019#  define LT_DLGLOBAL		RTLD_GLOBAL
11020#else
11021#  ifdef DL_GLOBAL
11022#    define LT_DLGLOBAL		DL_GLOBAL
11023#  else
11024#    define LT_DLGLOBAL		0
11025#  endif
11026#endif
11027
11028/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029   find out it does not work in some platform. */
11030#ifndef LT_DLLAZY_OR_NOW
11031#  ifdef RTLD_LAZY
11032#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11033#  else
11034#    ifdef DL_LAZY
11035#      define LT_DLLAZY_OR_NOW		DL_LAZY
11036#    else
11037#      ifdef RTLD_NOW
11038#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11039#      else
11040#        ifdef DL_NOW
11041#          define LT_DLLAZY_OR_NOW	DL_NOW
11042#        else
11043#          define LT_DLLAZY_OR_NOW	0
11044#        endif
11045#      endif
11046#    endif
11047#  endif
11048#endif
11049
11050#ifdef __cplusplus
11051extern "C" void exit (int);
11052#endif
11053
11054void fnord() { int i=42;}
11055int main ()
11056{
11057  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11058  int status = $lt_dlunknown;
11059
11060  if (self)
11061    {
11062      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11063      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11064      /* dlclose (self); */
11065    }
11066  else
11067    puts (dlerror ());
11068
11069    exit (status);
11070}
11071EOF
11072  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073  (eval $ac_link) 2>&5
11074  ac_status=$?
11075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11077    (./conftest; exit; ) >&5 2>/dev/null
11078    lt_status=$?
11079    case x$lt_status in
11080      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11081      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11082      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11083    esac
11084  else :
11085    # compilation failed
11086    lt_cv_dlopen_self_static=no
11087  fi
11088fi
11089rm -fr conftest*
11090
11091
11092fi
11093echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11094echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11095    fi
11096
11097    CPPFLAGS="$save_CPPFLAGS"
11098    LDFLAGS="$save_LDFLAGS"
11099    LIBS="$save_LIBS"
11100    ;;
11101  esac
11102
11103  case $lt_cv_dlopen_self in
11104  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11105  *) enable_dlopen_self=unknown ;;
11106  esac
11107
11108  case $lt_cv_dlopen_self_static in
11109  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11110  *) enable_dlopen_self_static=unknown ;;
11111  esac
11112fi
11113
11114
11115# Report which library types will actually be built
11116echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11117echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11118echo "$as_me:$LINENO: result: $can_build_shared" >&5
11119echo "${ECHO_T}$can_build_shared" >&6
11120
11121echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11122echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11123test "$can_build_shared" = "no" && enable_shared=no
11124
11125# On AIX, shared libraries and static libraries use the same namespace, and
11126# are all built from PIC.
11127case $host_os in
11128aix3*)
11129  test "$enable_shared" = yes && enable_static=no
11130  if test -n "$RANLIB"; then
11131    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11132    postinstall_cmds='$RANLIB $lib'
11133  fi
11134  ;;
11135
11136aix4* | aix5*)
11137  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11138    test "$enable_shared" = yes && enable_static=no
11139  fi
11140    ;;
11141esac
11142echo "$as_me:$LINENO: result: $enable_shared" >&5
11143echo "${ECHO_T}$enable_shared" >&6
11144
11145echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11146echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11147# Make sure either enable_shared or enable_static is yes.
11148test "$enable_shared" = yes || enable_static=yes
11149echo "$as_me:$LINENO: result: $enable_static" >&5
11150echo "${ECHO_T}$enable_static" >&6
11151
11152# The else clause should only fire when bootstrapping the
11153# libtool distribution, otherwise you forgot to ship ltmain.sh
11154# with your package, and you will get complaints that there are
11155# no rules to generate ltmain.sh.
11156if test -f "$ltmain"; then
11157  # See if we are running on zsh, and set the options which allow our commands through
11158  # without removal of \ escapes.
11159  if test -n "${ZSH_VERSION+set}" ; then
11160    setopt NO_GLOB_SUBST
11161  fi
11162  # Now quote all the things that may contain metacharacters while being
11163  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11164  # variables and quote the copies for generation of the libtool script.
11165  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11166    SED SHELL STRIP \
11167    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11168    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11169    deplibs_check_method reload_flag reload_cmds need_locks \
11170    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11171    lt_cv_sys_global_symbol_to_c_name_address \
11172    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11173    old_postinstall_cmds old_postuninstall_cmds \
11174    compiler \
11175    CC \
11176    LD \
11177    lt_prog_compiler_wl \
11178    lt_prog_compiler_pic \
11179    lt_prog_compiler_static \
11180    lt_prog_compiler_no_builtin_flag \
11181    export_dynamic_flag_spec \
11182    thread_safe_flag_spec \
11183    whole_archive_flag_spec \
11184    enable_shared_with_static_runtimes \
11185    old_archive_cmds \
11186    old_archive_from_new_cmds \
11187    predep_objects \
11188    postdep_objects \
11189    predeps \
11190    postdeps \
11191    compiler_lib_search_path \
11192    archive_cmds \
11193    archive_expsym_cmds \
11194    postinstall_cmds \
11195    postuninstall_cmds \
11196    old_archive_from_expsyms_cmds \
11197    allow_undefined_flag \
11198    no_undefined_flag \
11199    export_symbols_cmds \
11200    hardcode_libdir_flag_spec \
11201    hardcode_libdir_flag_spec_ld \
11202    hardcode_libdir_separator \
11203    hardcode_automatic \
11204    module_cmds \
11205    module_expsym_cmds \
11206    lt_cv_prog_compiler_c_o \
11207    exclude_expsyms \
11208    include_expsyms; do
11209
11210    case $var in
11211    old_archive_cmds | \
11212    old_archive_from_new_cmds | \
11213    archive_cmds | \
11214    archive_expsym_cmds | \
11215    module_cmds | \
11216    module_expsym_cmds | \
11217    old_archive_from_expsyms_cmds | \
11218    export_symbols_cmds | \
11219    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11220    postinstall_cmds | postuninstall_cmds | \
11221    old_postinstall_cmds | old_postuninstall_cmds | \
11222    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11223      # Double-quote double-evaled strings.
11224      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11225      ;;
11226    *)
11227      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11228      ;;
11229    esac
11230  done
11231
11232  case $lt_echo in
11233  *'\$0 --fallback-echo"')
11234    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11235    ;;
11236  esac
11237
11238cfgfile="${ofile}T"
11239  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11240  $rm -f "$cfgfile"
11241  { echo "$as_me:$LINENO: creating $ofile" >&5
11242echo "$as_me: creating $ofile" >&6;}
11243
11244  cat <<__EOF__ >> "$cfgfile"
11245#! $SHELL
11246
11247# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11248# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11249# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11250#
11251# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11252# Free Software Foundation, Inc.
11253#
11254# This file is part of GNU Libtool:
11255# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11256#
11257# This program is free software; you can redistribute it and/or modify
11258# it under the terms of the GNU General Public License as published by
11259# the Free Software Foundation; either version 2 of the License, or
11260# (at your option) any later version.
11261#
11262# This program is distributed in the hope that it will be useful, but
11263# WITHOUT ANY WARRANTY; without even the implied warranty of
11264# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11265# General Public License for more details.
11266#
11267# You should have received a copy of the GNU General Public License
11268# along with this program; if not, write to the Free Software
11269# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11270#
11271# As a special exception to the GNU General Public License, if you
11272# distribute this file as part of a program that contains a
11273# configuration script generated by Autoconf, you may include it under
11274# the same distribution terms that you use for the rest of that program.
11275
11276# A sed program that does not truncate output.
11277SED=$lt_SED
11278
11279# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11280Xsed="$SED -e 1s/^X//"
11281
11282# The HP-UX ksh and POSIX shell print the target directory to stdout
11283# if CDPATH is set.
11284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11285
11286# The names of the tagged configurations supported by this script.
11287available_tags=
11288
11289# ### BEGIN LIBTOOL CONFIG
11290
11291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11292
11293# Shell to use when invoking shell scripts.
11294SHELL=$lt_SHELL
11295
11296# Whether or not to build shared libraries.
11297build_libtool_libs=$enable_shared
11298
11299# Whether or not to build static libraries.
11300build_old_libs=$enable_static
11301
11302# Whether or not to add -lc for building shared libraries.
11303build_libtool_need_lc=$archive_cmds_need_lc
11304
11305# Whether or not to disallow shared libs when runtime libs are static
11306allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11307
11308# Whether or not to optimize for fast installation.
11309fast_install=$enable_fast_install
11310
11311# The host system.
11312host_alias=$host_alias
11313host=$host
11314host_os=$host_os
11315
11316# The build system.
11317build_alias=$build_alias
11318build=$build
11319build_os=$build_os
11320
11321# An echo program that does not interpret backslashes.
11322echo=$lt_echo
11323
11324# The archiver.
11325AR=$lt_AR
11326AR_FLAGS=$lt_AR_FLAGS
11327
11328# A C compiler.
11329LTCC=$lt_LTCC
11330
11331# LTCC compiler flags.
11332LTCFLAGS=$lt_LTCFLAGS
11333
11334# A language-specific compiler.
11335CC=$lt_compiler
11336
11337# Is the compiler the GNU C compiler?
11338with_gcc=$GCC
11339
11340# An ERE matcher.
11341EGREP=$lt_EGREP
11342
11343# The linker used to build libraries.
11344LD=$lt_LD
11345
11346# Whether we need hard or soft links.
11347LN_S=$lt_LN_S
11348
11349# A BSD-compatible nm program.
11350NM=$lt_NM
11351
11352# A symbol stripping program
11353STRIP=$lt_STRIP
11354
11355# Used to examine libraries when file_magic_cmd begins "file"
11356MAGIC_CMD=$MAGIC_CMD
11357
11358# Used on cygwin: DLL creation program.
11359DLLTOOL="$DLLTOOL"
11360
11361# Used on cygwin: object dumper.
11362OBJDUMP="$OBJDUMP"
11363
11364# Used on cygwin: assembler.
11365AS="$AS"
11366
11367# The name of the directory that contains temporary libtool files.
11368objdir=$objdir
11369
11370# How to create reloadable object files.
11371reload_flag=$lt_reload_flag
11372reload_cmds=$lt_reload_cmds
11373
11374# How to pass a linker flag through the compiler.
11375wl=$lt_lt_prog_compiler_wl
11376
11377# Object file suffix (normally "o").
11378objext="$ac_objext"
11379
11380# Old archive suffix (normally "a").
11381libext="$libext"
11382
11383# Shared library suffix (normally ".so").
11384shrext_cmds='$shrext_cmds'
11385
11386# Executable file suffix (normally "").
11387exeext="$exeext"
11388
11389# Additional compiler flags for building library objects.
11390pic_flag=$lt_lt_prog_compiler_pic
11391pic_mode=$pic_mode
11392
11393# What is the maximum length of a command?
11394max_cmd_len=$lt_cv_sys_max_cmd_len
11395
11396# Does compiler simultaneously support -c and -o options?
11397compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11398
11399# Must we lock files when doing compilation?
11400need_locks=$lt_need_locks
11401
11402# Do we need the lib prefix for modules?
11403need_lib_prefix=$need_lib_prefix
11404
11405# Do we need a version for libraries?
11406need_version=$need_version
11407
11408# Whether dlopen is supported.
11409dlopen_support=$enable_dlopen
11410
11411# Whether dlopen of programs is supported.
11412dlopen_self=$enable_dlopen_self
11413
11414# Whether dlopen of statically linked programs is supported.
11415dlopen_self_static=$enable_dlopen_self_static
11416
11417# Compiler flag to prevent dynamic linking.
11418link_static_flag=$lt_lt_prog_compiler_static
11419
11420# Compiler flag to turn off builtin functions.
11421no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11422
11423# Compiler flag to allow reflexive dlopens.
11424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11425
11426# Compiler flag to generate shared objects directly from archives.
11427whole_archive_flag_spec=$lt_whole_archive_flag_spec
11428
11429# Compiler flag to generate thread-safe objects.
11430thread_safe_flag_spec=$lt_thread_safe_flag_spec
11431
11432# Library versioning type.
11433version_type=$version_type
11434
11435# Format of library name prefix.
11436libname_spec=$lt_libname_spec
11437
11438# List of archive names.  First name is the real one, the rest are links.
11439# The last name is the one that the linker finds with -lNAME.
11440library_names_spec=$lt_library_names_spec
11441
11442# The coded name of the library, if different from the real name.
11443soname_spec=$lt_soname_spec
11444
11445# Commands used to build and install an old-style archive.
11446RANLIB=$lt_RANLIB
11447old_archive_cmds=$lt_old_archive_cmds
11448old_postinstall_cmds=$lt_old_postinstall_cmds
11449old_postuninstall_cmds=$lt_old_postuninstall_cmds
11450
11451# Create an old-style archive from a shared archive.
11452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11453
11454# Create a temporary old-style archive to link instead of a shared archive.
11455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11456
11457# Commands used to build and install a shared archive.
11458archive_cmds=$lt_archive_cmds
11459archive_expsym_cmds=$lt_archive_expsym_cmds
11460postinstall_cmds=$lt_postinstall_cmds
11461postuninstall_cmds=$lt_postuninstall_cmds
11462
11463# Commands used to build a loadable module (assumed same as above if empty)
11464module_cmds=$lt_module_cmds
11465module_expsym_cmds=$lt_module_expsym_cmds
11466
11467# Commands to strip libraries.
11468old_striplib=$lt_old_striplib
11469striplib=$lt_striplib
11470
11471# Dependencies to place before the objects being linked to create a
11472# shared library.
11473predep_objects=$lt_predep_objects
11474
11475# Dependencies to place after the objects being linked to create a
11476# shared library.
11477postdep_objects=$lt_postdep_objects
11478
11479# Dependencies to place before the objects being linked to create a
11480# shared library.
11481predeps=$lt_predeps
11482
11483# Dependencies to place after the objects being linked to create a
11484# shared library.
11485postdeps=$lt_postdeps
11486
11487# The library search path used internally by the compiler when linking
11488# a shared library.
11489compiler_lib_search_path=$lt_compiler_lib_search_path
11490
11491# Method to check whether dependent libraries are shared objects.
11492deplibs_check_method=$lt_deplibs_check_method
11493
11494# Command to use when deplibs_check_method == file_magic.
11495file_magic_cmd=$lt_file_magic_cmd
11496
11497# Flag that allows shared libraries with undefined symbols to be built.
11498allow_undefined_flag=$lt_allow_undefined_flag
11499
11500# Flag that forces no undefined symbols.
11501no_undefined_flag=$lt_no_undefined_flag
11502
11503# Commands used to finish a libtool library installation in a directory.
11504finish_cmds=$lt_finish_cmds
11505
11506# Same as above, but a single script fragment to be evaled but not shown.
11507finish_eval=$lt_finish_eval
11508
11509# Take the output of nm and produce a listing of raw symbols and C names.
11510global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11511
11512# Transform the output of nm in a proper C declaration
11513global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11514
11515# Transform the output of nm in a C name address pair
11516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11517
11518# This is the shared library runtime path variable.
11519runpath_var=$runpath_var
11520
11521# This is the shared library path variable.
11522shlibpath_var=$shlibpath_var
11523
11524# Is shlibpath searched before the hard-coded library search path?
11525shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11526
11527# How to hardcode a shared library path into an executable.
11528hardcode_action=$hardcode_action
11529
11530# Whether we should hardcode library paths into libraries.
11531hardcode_into_libs=$hardcode_into_libs
11532
11533# Flag to hardcode \$libdir into a binary during linking.
11534# This must work even if \$libdir does not exist.
11535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11536
11537# If ld is used when linking, flag to hardcode \$libdir into
11538# a binary during linking. This must work even if \$libdir does
11539# not exist.
11540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11541
11542# Whether we need a single -rpath flag with a separated argument.
11543hardcode_libdir_separator=$lt_hardcode_libdir_separator
11544
11545# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11546# resulting binary.
11547hardcode_direct=$hardcode_direct
11548
11549# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11550# resulting binary.
11551hardcode_minus_L=$hardcode_minus_L
11552
11553# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11554# the resulting binary.
11555hardcode_shlibpath_var=$hardcode_shlibpath_var
11556
11557# Set to yes if building a shared library automatically hardcodes DIR into the library
11558# and all subsequent libraries and executables linked against it.
11559hardcode_automatic=$hardcode_automatic
11560
11561# Variables whose values should be saved in libtool wrapper scripts and
11562# restored at relink time.
11563variables_saved_for_relink="$variables_saved_for_relink"
11564
11565# Whether libtool must link a program against all its dependency libraries.
11566link_all_deplibs=$link_all_deplibs
11567
11568# Compile-time system search path for libraries
11569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11570
11571# Run-time system search path for libraries
11572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11573
11574# Fix the shell variable \$srcfile for the compiler.
11575fix_srcfile_path="$fix_srcfile_path"
11576
11577# Set to yes if exported symbols are required.
11578always_export_symbols=$always_export_symbols
11579
11580# The commands to list exported symbols.
11581export_symbols_cmds=$lt_export_symbols_cmds
11582
11583# The commands to extract the exported symbol list from a shared archive.
11584extract_expsyms_cmds=$lt_extract_expsyms_cmds
11585
11586# Symbols that should not be listed in the preloaded symbols.
11587exclude_expsyms=$lt_exclude_expsyms
11588
11589# Symbols that must always be exported.
11590include_expsyms=$lt_include_expsyms
11591
11592# ### END LIBTOOL CONFIG
11593
11594__EOF__
11595
11596
11597  case $host_os in
11598  aix3*)
11599    cat <<\EOF >> "$cfgfile"
11600
11601# AIX sometimes has problems with the GCC collect2 program.  For some
11602# reason, if we set the COLLECT_NAMES environment variable, the problems
11603# vanish in a puff of smoke.
11604if test "X${COLLECT_NAMES+set}" != Xset; then
11605  COLLECT_NAMES=
11606  export COLLECT_NAMES
11607fi
11608EOF
11609    ;;
11610  esac
11611
11612  # We use sed instead of cat because bash on DJGPP gets confused if
11613  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11614  # text mode, it properly converts lines to CR/LF.  This bash problem
11615  # is reportedly fixed, but why not run on old versions too?
11616  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11617
11618  mv -f "$cfgfile" "$ofile" || \
11619    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11620  chmod +x "$ofile"
11621
11622else
11623  # If there is no Makefile yet, we rely on a make rule to execute
11624  # `config.status --recheck' to rerun these tests and create the
11625  # libtool script then.
11626  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11627  if test -f "$ltmain_in"; then
11628    test -f Makefile && make "$ltmain"
11629  fi
11630fi
11631
11632
11633ac_ext=c
11634ac_cpp='$CPP $CPPFLAGS'
11635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637ac_compiler_gnu=$ac_cv_c_compiler_gnu
11638
11639CC="$lt_save_CC"
11640
11641
11642# Check whether --with-tags or --without-tags was given.
11643if test "${with_tags+set}" = set; then
11644  withval="$with_tags"
11645  tagnames="$withval"
11646fi;
11647
11648if test -f "$ltmain" && test -n "$tagnames"; then
11649  if test ! -f "${ofile}"; then
11650    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11651echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11652  fi
11653
11654  if test -z "$LTCC"; then
11655    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11656    if test -z "$LTCC"; then
11657      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11658echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11659    else
11660      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11661echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11662    fi
11663  fi
11664  if test -z "$LTCFLAGS"; then
11665    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11666  fi
11667
11668  # Extract list of available tagged configurations in $ofile.
11669  # Note that this assumes the entire list is on one line.
11670  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11671
11672  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11673  for tagname in $tagnames; do
11674    IFS="$lt_save_ifs"
11675    # Check whether tagname contains only valid characters
11676    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11677    "") ;;
11678    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11679echo "$as_me: error: invalid tag name: $tagname" >&2;}
11680   { (exit 1); exit 1; }; }
11681	;;
11682    esac
11683
11684    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11685    then
11686      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11687echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11688   { (exit 1); exit 1; }; }
11689    fi
11690
11691    # Update the list of available tags.
11692    if test -n "$tagname"; then
11693      echo appending configuration tag \"$tagname\" to $ofile
11694
11695      case $tagname in
11696      CXX)
11697	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11698	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11699	    (test "X$CXX" != "Xg++"))) ; then
11700	  ac_ext=cc
11701ac_cpp='$CXXCPP $CPPFLAGS'
11702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11705
11706
11707
11708
11709archive_cmds_need_lc_CXX=no
11710allow_undefined_flag_CXX=
11711always_export_symbols_CXX=no
11712archive_expsym_cmds_CXX=
11713export_dynamic_flag_spec_CXX=
11714hardcode_direct_CXX=no
11715hardcode_libdir_flag_spec_CXX=
11716hardcode_libdir_flag_spec_ld_CXX=
11717hardcode_libdir_separator_CXX=
11718hardcode_minus_L_CXX=no
11719hardcode_shlibpath_var_CXX=unsupported
11720hardcode_automatic_CXX=no
11721module_cmds_CXX=
11722module_expsym_cmds_CXX=
11723link_all_deplibs_CXX=unknown
11724old_archive_cmds_CXX=$old_archive_cmds
11725no_undefined_flag_CXX=
11726whole_archive_flag_spec_CXX=
11727enable_shared_with_static_runtimes_CXX=no
11728
11729# Dependencies to place before and after the object being linked:
11730predep_objects_CXX=
11731postdep_objects_CXX=
11732predeps_CXX=
11733postdeps_CXX=
11734compiler_lib_search_path_CXX=
11735
11736# Source file extension for C++ test sources.
11737ac_ext=cpp
11738
11739# Object file extension for compiled C++ test sources.
11740objext=o
11741objext_CXX=$objext
11742
11743# Code to be used in simple compile tests
11744lt_simple_compile_test_code="int some_variable = 0;\n"
11745
11746# Code to be used in simple link tests
11747lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11748
11749# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11750
11751# If no C compiler was specified, use CC.
11752LTCC=${LTCC-"$CC"}
11753
11754# If no C compiler flags were specified, use CFLAGS.
11755LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11756
11757# Allow CC to be a program name with arguments.
11758compiler=$CC
11759
11760
11761# save warnings/boilerplate of simple test code
11762ac_outfile=conftest.$ac_objext
11763printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11764eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11765_lt_compiler_boilerplate=`cat conftest.err`
11766$rm conftest*
11767
11768ac_outfile=conftest.$ac_objext
11769printf "$lt_simple_link_test_code" >conftest.$ac_ext
11770eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11771_lt_linker_boilerplate=`cat conftest.err`
11772$rm conftest*
11773
11774
11775# Allow CC to be a program name with arguments.
11776lt_save_CC=$CC
11777lt_save_LD=$LD
11778lt_save_GCC=$GCC
11779GCC=$GXX
11780lt_save_with_gnu_ld=$with_gnu_ld
11781lt_save_path_LD=$lt_cv_path_LD
11782if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11783  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11784else
11785  $as_unset lt_cv_prog_gnu_ld
11786fi
11787if test -n "${lt_cv_path_LDCXX+set}"; then
11788  lt_cv_path_LD=$lt_cv_path_LDCXX
11789else
11790  $as_unset lt_cv_path_LD
11791fi
11792test -z "${LDCXX+set}" || LD=$LDCXX
11793CC=${CXX-"c++"}
11794compiler=$CC
11795compiler_CXX=$CC
11796for cc_temp in $compiler""; do
11797  case $cc_temp in
11798    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11799    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11800    \-*) ;;
11801    *) break;;
11802  esac
11803done
11804cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11805
11806
11807# We don't want -fno-exception wen compiling C++ code, so set the
11808# no_builtin_flag separately
11809if test "$GXX" = yes; then
11810  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11811else
11812  lt_prog_compiler_no_builtin_flag_CXX=
11813fi
11814
11815if test "$GXX" = yes; then
11816  # Set up default GNU C++ configuration
11817
11818
11819# Check whether --with-gnu-ld or --without-gnu-ld was given.
11820if test "${with_gnu_ld+set}" = set; then
11821  withval="$with_gnu_ld"
11822  test "$withval" = no || with_gnu_ld=yes
11823else
11824  with_gnu_ld=no
11825fi;
11826ac_prog=ld
11827if test "$GCC" = yes; then
11828  # Check if gcc -print-prog-name=ld gives a path.
11829  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11830echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11831  case $host in
11832  *-*-mingw*)
11833    # gcc leaves a trailing carriage return which upsets mingw
11834    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11835  *)
11836    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11837  esac
11838  case $ac_prog in
11839    # Accept absolute paths.
11840    [\\/]* | ?:[\\/]*)
11841      re_direlt='/[^/][^/]*/\.\./'
11842      # Canonicalize the pathname of ld
11843      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11844      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11845	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11846      done
11847      test -z "$LD" && LD="$ac_prog"
11848      ;;
11849  "")
11850    # If it fails, then pretend we aren't using GCC.
11851    ac_prog=ld
11852    ;;
11853  *)
11854    # If it is relative, then search for the first ld in PATH.
11855    with_gnu_ld=unknown
11856    ;;
11857  esac
11858elif test "$with_gnu_ld" = yes; then
11859  echo "$as_me:$LINENO: checking for GNU ld" >&5
11860echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11861else
11862  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11863echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11864fi
11865if test "${lt_cv_path_LD+set}" = set; then
11866  echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868  if test -z "$LD"; then
11869  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11870  for ac_dir in $PATH; do
11871    IFS="$lt_save_ifs"
11872    test -z "$ac_dir" && ac_dir=.
11873    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11874      lt_cv_path_LD="$ac_dir/$ac_prog"
11875      # Check to see if the program is GNU ld.  I'd rather use --version,
11876      # but apparently some variants of GNU ld only accept -v.
11877      # Break only if it was the GNU/non-GNU ld that we prefer.
11878      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11879      *GNU* | *'with BFD'*)
11880	test "$with_gnu_ld" != no && break
11881	;;
11882      *)
11883	test "$with_gnu_ld" != yes && break
11884	;;
11885      esac
11886    fi
11887  done
11888  IFS="$lt_save_ifs"
11889else
11890  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11891fi
11892fi
11893
11894LD="$lt_cv_path_LD"
11895if test -n "$LD"; then
11896  echo "$as_me:$LINENO: result: $LD" >&5
11897echo "${ECHO_T}$LD" >&6
11898else
11899  echo "$as_me:$LINENO: result: no" >&5
11900echo "${ECHO_T}no" >&6
11901fi
11902test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11903echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11904   { (exit 1); exit 1; }; }
11905echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11906echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11907if test "${lt_cv_prog_gnu_ld+set}" = set; then
11908  echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11911case `$LD -v 2>&1 </dev/null` in
11912*GNU* | *'with BFD'*)
11913  lt_cv_prog_gnu_ld=yes
11914  ;;
11915*)
11916  lt_cv_prog_gnu_ld=no
11917  ;;
11918esac
11919fi
11920echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11921echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11922with_gnu_ld=$lt_cv_prog_gnu_ld
11923
11924
11925
11926  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11927  # archiving commands below assume that GNU ld is being used.
11928  if test "$with_gnu_ld" = yes; then
11929    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11930    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'
11931
11932    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11933    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11934
11935    # If archive_cmds runs LD, not CC, wlarc should be empty
11936    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11937    #     investigate it a little bit more. (MM)
11938    wlarc='${wl}'
11939
11940    # ancient GNU ld didn't support --whole-archive et. al.
11941    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11942	grep 'no-whole-archive' > /dev/null; then
11943      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11944    else
11945      whole_archive_flag_spec_CXX=
11946    fi
11947  else
11948    with_gnu_ld=no
11949    wlarc=
11950
11951    # A generic and very simple default shared library creation
11952    # command for GNU C++ for the case where it uses the native
11953    # linker, instead of GNU ld.  If possible, this setting should
11954    # overridden to take advantage of the native linker features on
11955    # the platform it is being used on.
11956    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11957  fi
11958
11959  # Commands to make compiler produce verbose output that lists
11960  # what "hidden" libraries, object files and flags are used when
11961  # linking a shared library.
11962  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11963
11964else
11965  GXX=no
11966  with_gnu_ld=no
11967  wlarc=
11968fi
11969
11970# PORTME: fill in a description of your system's C++ link characteristics
11971echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11972echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11973ld_shlibs_CXX=yes
11974case $host_os in
11975  aix3*)
11976    # FIXME: insert proper C++ library support
11977    ld_shlibs_CXX=no
11978    ;;
11979  aix4* | aix5*)
11980    if test "$host_cpu" = ia64; then
11981      # On IA64, the linker does run time linking by default, so we don't
11982      # have to do anything special.
11983      aix_use_runtimelinking=no
11984      exp_sym_flag='-Bexport'
11985      no_entry_flag=""
11986    else
11987      aix_use_runtimelinking=no
11988
11989      # Test if we are trying to use run time linking or normal
11990      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11991      # need to do runtime linking.
11992      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11993	for ld_flag in $LDFLAGS; do
11994	  case $ld_flag in
11995	  *-brtl*)
11996	    aix_use_runtimelinking=yes
11997	    break
11998	    ;;
11999	  esac
12000	done
12001	;;
12002      esac
12003
12004      exp_sym_flag='-bexport'
12005      no_entry_flag='-bnoentry'
12006    fi
12007
12008    # When large executables or shared objects are built, AIX ld can
12009    # have problems creating the table of contents.  If linking a library
12010    # or program results in "error TOC overflow" add -mminimal-toc to
12011    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12012    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12013
12014    archive_cmds_CXX=''
12015    hardcode_direct_CXX=yes
12016    hardcode_libdir_separator_CXX=':'
12017    link_all_deplibs_CXX=yes
12018
12019    if test "$GXX" = yes; then
12020      case $host_os in aix4.[012]|aix4.[012].*)
12021      # We only want to do this on AIX 4.2 and lower, the check
12022      # below for broken collect2 doesn't work under 4.3+
12023	collect2name=`${CC} -print-prog-name=collect2`
12024	if test -f "$collect2name" && \
12025	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12026	then
12027	  # We have reworked collect2
12028	  hardcode_direct_CXX=yes
12029	else
12030	  # We have old collect2
12031	  hardcode_direct_CXX=unsupported
12032	  # It fails to find uninstalled libraries when the uninstalled
12033	  # path is not listed in the libpath.  Setting hardcode_minus_L
12034	  # to unsupported forces relinking
12035	  hardcode_minus_L_CXX=yes
12036	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12037	  hardcode_libdir_separator_CXX=
12038	fi
12039	;;
12040      esac
12041      shared_flag='-shared'
12042      if test "$aix_use_runtimelinking" = yes; then
12043	shared_flag="$shared_flag "'${wl}-G'
12044      fi
12045    else
12046      # not using gcc
12047      if test "$host_cpu" = ia64; then
12048	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12049	# chokes on -Wl,-G. The following line is correct:
12050	shared_flag='-G'
12051      else
12052	if test "$aix_use_runtimelinking" = yes; then
12053	  shared_flag='${wl}-G'
12054	else
12055	  shared_flag='${wl}-bM:SRE'
12056	fi
12057      fi
12058    fi
12059
12060    # It seems that -bexpall does not export symbols beginning with
12061    # underscore (_), so it is better to generate a list of symbols to export.
12062    always_export_symbols_CXX=yes
12063    if test "$aix_use_runtimelinking" = yes; then
12064      # Warning - without using the other runtime loading flags (-brtl),
12065      # -berok will link without error, but may produce a broken library.
12066      allow_undefined_flag_CXX='-berok'
12067      # Determine the default libpath from the value encoded in an empty executable.
12068      cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h.  */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h.  */
12074
12075int
12076main ()
12077{
12078
12079  ;
12080  return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext conftest$ac_exeext
12084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085  (eval $ac_link) 2>conftest.er1
12086  ac_status=$?
12087  grep -v '^ *+' conftest.er1 >conftest.err
12088  rm -f conftest.er1
12089  cat conftest.err >&5
12090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091  (exit $ac_status); } &&
12092	 { ac_try='test -z "$ac_cxx_werror_flag"
12093			 || test ! -s conftest.err'
12094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095  (eval $ac_try) 2>&5
12096  ac_status=$?
12097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098  (exit $ac_status); }; } &&
12099	 { ac_try='test -s conftest$ac_exeext'
12100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101  (eval $ac_try) 2>&5
12102  ac_status=$?
12103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104  (exit $ac_status); }; }; then
12105
12106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12107}'`
12108# Check for a 64-bit object if we didn't find anything.
12109if 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; }
12110}'`; fi
12111else
12112  echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
12115fi
12116rm -f conftest.err conftest.$ac_objext \
12117      conftest$ac_exeext conftest.$ac_ext
12118if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12119
12120      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12121
12122      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"
12123     else
12124      if test "$host_cpu" = ia64; then
12125	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12126	allow_undefined_flag_CXX="-z nodefs"
12127	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"
12128      else
12129	# Determine the default libpath from the value encoded in an empty executable.
12130	cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h.  */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h.  */
12136
12137int
12138main ()
12139{
12140
12141  ;
12142  return 0;
12143}
12144_ACEOF
12145rm -f conftest.$ac_objext conftest$ac_exeext
12146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147  (eval $ac_link) 2>conftest.er1
12148  ac_status=$?
12149  grep -v '^ *+' conftest.er1 >conftest.err
12150  rm -f conftest.er1
12151  cat conftest.err >&5
12152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153  (exit $ac_status); } &&
12154	 { ac_try='test -z "$ac_cxx_werror_flag"
12155			 || test ! -s conftest.err'
12156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157  (eval $ac_try) 2>&5
12158  ac_status=$?
12159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160  (exit $ac_status); }; } &&
12161	 { ac_try='test -s conftest$ac_exeext'
12162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163  (eval $ac_try) 2>&5
12164  ac_status=$?
12165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166  (exit $ac_status); }; }; then
12167
12168aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12169}'`
12170# Check for a 64-bit object if we didn't find anything.
12171if 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; }
12172}'`; fi
12173else
12174  echo "$as_me: failed program was:" >&5
12175sed 's/^/| /' conftest.$ac_ext >&5
12176
12177fi
12178rm -f conftest.err conftest.$ac_objext \
12179      conftest$ac_exeext conftest.$ac_ext
12180if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12181
12182	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12183	# Warning - without using the other run time loading flags,
12184	# -berok will link without error, but may produce a broken library.
12185	no_undefined_flag_CXX=' ${wl}-bernotok'
12186	allow_undefined_flag_CXX=' ${wl}-berok'
12187	# Exported symbols can be pulled into shared objects from archives
12188	whole_archive_flag_spec_CXX='$convenience'
12189	archive_cmds_need_lc_CXX=yes
12190	# This is similar to how AIX traditionally builds its shared libraries.
12191	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'
12192      fi
12193    fi
12194    ;;
12195
12196  beos*)
12197    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12198      allow_undefined_flag_CXX=unsupported
12199      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12200      # support --undefined.  This deserves some investigation.  FIXME
12201      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12202    else
12203      ld_shlibs_CXX=no
12204    fi
12205    ;;
12206
12207  chorus*)
12208    case $cc_basename in
12209      *)
12210	# FIXME: insert proper C++ library support
12211	ld_shlibs_CXX=no
12212	;;
12213    esac
12214    ;;
12215
12216  cygwin* | mingw* | pw32*)
12217    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12218    # as there is no search path for DLLs.
12219    hardcode_libdir_flag_spec_CXX='-L$libdir'
12220    allow_undefined_flag_CXX=unsupported
12221    always_export_symbols_CXX=no
12222    enable_shared_with_static_runtimes_CXX=yes
12223
12224    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12225      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'
12226      # If the export-symbols file already is a .def file (1st line
12227      # is EXPORTS), use it as is; otherwise, prepend...
12228      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12229	cp $export_symbols $output_objdir/$soname.def;
12230      else
12231	echo EXPORTS > $output_objdir/$soname.def;
12232	cat $export_symbols >> $output_objdir/$soname.def;
12233      fi~
12234      $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'
12235    else
12236      ld_shlibs_CXX=no
12237    fi
12238  ;;
12239      darwin* | rhapsody*)
12240        case $host_os in
12241        rhapsody* | darwin1.[012])
12242         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12243         ;;
12244       *) # Darwin 1.3 on
12245         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12246           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12247         else
12248           case ${MACOSX_DEPLOYMENT_TARGET} in
12249             10.[012])
12250               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12251               ;;
12252             10.*)
12253               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12254               ;;
12255           esac
12256         fi
12257         ;;
12258        esac
12259      archive_cmds_need_lc_CXX=no
12260      hardcode_direct_CXX=no
12261      hardcode_automatic_CXX=yes
12262      hardcode_shlibpath_var_CXX=unsupported
12263      whole_archive_flag_spec_CXX=''
12264      link_all_deplibs_CXX=yes
12265
12266    if test "$GXX" = yes ; then
12267      lt_int_apple_cc_single_mod=no
12268      output_verbose_link_cmd='echo'
12269      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12270       lt_int_apple_cc_single_mod=yes
12271      fi
12272      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12273       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12274      else
12275          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'
12276        fi
12277        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12278        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12279          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12280            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}'
12281          else
12282            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}'
12283          fi
12284            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}'
12285      else
12286      case $cc_basename in
12287        xlc*)
12288         output_verbose_link_cmd='echo'
12289          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'
12290          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12291          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12292          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}'
12293          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}'
12294          ;;
12295       *)
12296         ld_shlibs_CXX=no
12297          ;;
12298      esac
12299      fi
12300        ;;
12301
12302  dgux*)
12303    case $cc_basename in
12304      ec++*)
12305	# FIXME: insert proper C++ library support
12306	ld_shlibs_CXX=no
12307	;;
12308      ghcx*)
12309	# Green Hills C++ Compiler
12310	# FIXME: insert proper C++ library support
12311	ld_shlibs_CXX=no
12312	;;
12313      *)
12314	# FIXME: insert proper C++ library support
12315	ld_shlibs_CXX=no
12316	;;
12317    esac
12318    ;;
12319  freebsd[12]*)
12320    # C++ shared libraries reported to be fairly broken before switch to ELF
12321    ld_shlibs_CXX=no
12322    ;;
12323  freebsd-elf*)
12324    archive_cmds_need_lc_CXX=no
12325    ;;
12326  freebsd* | kfreebsd*-gnu | dragonfly*)
12327    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12328    # conventions
12329    ld_shlibs_CXX=yes
12330    ;;
12331  gnu*)
12332    ;;
12333  hpux9*)
12334    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12335    hardcode_libdir_separator_CXX=:
12336    export_dynamic_flag_spec_CXX='${wl}-E'
12337    hardcode_direct_CXX=yes
12338    hardcode_minus_L_CXX=yes # Not in the search PATH,
12339				# but as the default
12340				# location of the library.
12341
12342    case $cc_basename in
12343    CC*)
12344      # FIXME: insert proper C++ library support
12345      ld_shlibs_CXX=no
12346      ;;
12347    aCC*)
12348      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'
12349      # Commands to make compiler produce verbose output that lists
12350      # what "hidden" libraries, object files and flags are used when
12351      # linking a shared library.
12352      #
12353      # There doesn't appear to be a way to prevent this compiler from
12354      # explicitly linking system object files so we need to strip them
12355      # from the output so that they don't get included in the library
12356      # dependencies.
12357      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'
12358      ;;
12359    *)
12360      if test "$GXX" = yes; then
12361        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'
12362      else
12363        # FIXME: insert proper C++ library support
12364        ld_shlibs_CXX=no
12365      fi
12366      ;;
12367    esac
12368    ;;
12369  hpux10*|hpux11*)
12370    if test $with_gnu_ld = no; then
12371      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12372      hardcode_libdir_separator_CXX=:
12373
12374      case $host_cpu in
12375      hppa*64*|ia64*)
12376	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12377        ;;
12378      *)
12379	export_dynamic_flag_spec_CXX='${wl}-E'
12380        ;;
12381      esac
12382    fi
12383    case $host_cpu in
12384    hppa*64*|ia64*)
12385      hardcode_direct_CXX=no
12386      hardcode_shlibpath_var_CXX=no
12387      ;;
12388    *)
12389      hardcode_direct_CXX=yes
12390      hardcode_minus_L_CXX=yes # Not in the search PATH,
12391					      # but as the default
12392					      # location of the library.
12393      ;;
12394    esac
12395
12396    case $cc_basename in
12397      CC*)
12398	# FIXME: insert proper C++ library support
12399	ld_shlibs_CXX=no
12400	;;
12401      aCC*)
12402	case $host_cpu in
12403	hppa*64*)
12404	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12405	  ;;
12406	ia64*)
12407	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12408	  ;;
12409	*)
12410	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12411	  ;;
12412	esac
12413	# Commands to make compiler produce verbose output that lists
12414	# what "hidden" libraries, object files and flags are used when
12415	# linking a shared library.
12416	#
12417	# There doesn't appear to be a way to prevent this compiler from
12418	# explicitly linking system object files so we need to strip them
12419	# from the output so that they don't get included in the library
12420	# dependencies.
12421	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'
12422	;;
12423      *)
12424	if test "$GXX" = yes; then
12425	  if test $with_gnu_ld = no; then
12426	    case $host_cpu in
12427	    hppa*64*)
12428	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12429	      ;;
12430	    ia64*)
12431	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12432	      ;;
12433	    *)
12434	      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'
12435	      ;;
12436	    esac
12437	  fi
12438	else
12439	  # FIXME: insert proper C++ library support
12440	  ld_shlibs_CXX=no
12441	fi
12442	;;
12443    esac
12444    ;;
12445  interix3*)
12446    hardcode_direct_CXX=no
12447    hardcode_shlibpath_var_CXX=no
12448    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12449    export_dynamic_flag_spec_CXX='${wl}-E'
12450    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12451    # Instead, shared libraries are loaded at an image base (0x10000000 by
12452    # default) and relocated if they conflict, which is a slow very memory
12453    # consuming and fragmenting process.  To avoid this, we pick a random,
12454    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12455    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12456    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'
12457    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'
12458    ;;
12459  irix5* | irix6*)
12460    case $cc_basename in
12461      CC*)
12462	# SGI C++
12463	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'
12464
12465	# Archives containing C++ object files must be created using
12466	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12467	# necessary to make sure instantiated templates are included
12468	# in the archive.
12469	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12470	;;
12471      *)
12472	if test "$GXX" = yes; then
12473	  if test "$with_gnu_ld" = no; then
12474	    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'
12475	  else
12476	    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'
12477	  fi
12478	fi
12479	link_all_deplibs_CXX=yes
12480	;;
12481    esac
12482    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12483    hardcode_libdir_separator_CXX=:
12484    ;;
12485  linux*)
12486    case $cc_basename in
12487      KCC*)
12488	# Kuck and Associates, Inc. (KAI) C++ Compiler
12489
12490	# KCC will only create a shared library if the output file
12491	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12492	# to its proper name (with version) after linking.
12493	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'
12494	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'
12495	# Commands to make compiler produce verbose output that lists
12496	# what "hidden" libraries, object files and flags are used when
12497	# linking a shared library.
12498	#
12499	# There doesn't appear to be a way to prevent this compiler from
12500	# explicitly linking system object files so we need to strip them
12501	# from the output so that they don't get included in the library
12502	# dependencies.
12503	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'
12504
12505	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12506	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12507
12508	# Archives containing C++ object files must be created using
12509	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12510	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12511	;;
12512      icpc*)
12513	# Intel C++
12514	with_gnu_ld=yes
12515	# version 8.0 and above of icpc choke on multiply defined symbols
12516	# if we add $predep_objects and $postdep_objects, however 7.1 and
12517	# earlier do not add the objects themselves.
12518	case `$CC -V 2>&1` in
12519	*"Version 7."*)
12520  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12521  	  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'
12522	  ;;
12523	*)  # Version 8.0 or newer
12524	  tmp_idyn=
12525	  case $host_cpu in
12526	    ia64*) tmp_idyn=' -i_dynamic';;
12527	  esac
12528  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12529	  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'
12530	  ;;
12531	esac
12532	archive_cmds_need_lc_CXX=no
12533	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12534	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12535	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12536	;;
12537      pgCC*)
12538        # Portland Group C++ compiler
12539	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12540  	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'
12541
12542	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12543	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12544	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'
12545        ;;
12546      cxx*)
12547	# Compaq C++
12548	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12549	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'
12550
12551	runpath_var=LD_RUN_PATH
12552	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12553	hardcode_libdir_separator_CXX=:
12554
12555	# Commands to make compiler produce verbose output that lists
12556	# what "hidden" libraries, object files and flags are used when
12557	# linking a shared library.
12558	#
12559	# There doesn't appear to be a way to prevent this compiler from
12560	# explicitly linking system object files so we need to strip them
12561	# from the output so that they don't get included in the library
12562	# dependencies.
12563	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'
12564	;;
12565    esac
12566    ;;
12567  lynxos*)
12568    # FIXME: insert proper C++ library support
12569    ld_shlibs_CXX=no
12570    ;;
12571  m88k*)
12572    # FIXME: insert proper C++ library support
12573    ld_shlibs_CXX=no
12574    ;;
12575  mvs*)
12576    case $cc_basename in
12577      cxx*)
12578	# FIXME: insert proper C++ library support
12579	ld_shlibs_CXX=no
12580	;;
12581      *)
12582	# FIXME: insert proper C++ library support
12583	ld_shlibs_CXX=no
12584	;;
12585    esac
12586    ;;
12587  netbsd*)
12588    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12589      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12590      wlarc=
12591      hardcode_libdir_flag_spec_CXX='-R$libdir'
12592      hardcode_direct_CXX=yes
12593      hardcode_shlibpath_var_CXX=no
12594    fi
12595    # Workaround some broken pre-1.5 toolchains
12596    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12597    ;;
12598  openbsd2*)
12599    # C++ shared libraries are fairly broken
12600    ld_shlibs_CXX=no
12601    ;;
12602  openbsd*)
12603    hardcode_direct_CXX=yes
12604    hardcode_shlibpath_var_CXX=no
12605    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12606    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12607    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12608      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12609      export_dynamic_flag_spec_CXX='${wl}-E'
12610      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12611    fi
12612    output_verbose_link_cmd='echo'
12613    ;;
12614  osf3*)
12615    case $cc_basename in
12616      KCC*)
12617	# Kuck and Associates, Inc. (KAI) C++ Compiler
12618
12619	# KCC will only create a shared library if the output file
12620	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12621	# to its proper name (with version) after linking.
12622	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'
12623
12624	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12625	hardcode_libdir_separator_CXX=:
12626
12627	# Archives containing C++ object files must be created using
12628	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12629	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12630
12631	;;
12632      RCC*)
12633	# Rational C++ 2.4.1
12634	# FIXME: insert proper C++ library support
12635	ld_shlibs_CXX=no
12636	;;
12637      cxx*)
12638	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12639	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'
12640
12641	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12642	hardcode_libdir_separator_CXX=:
12643
12644	# Commands to make compiler produce verbose output that lists
12645	# what "hidden" libraries, object files and flags are used when
12646	# linking a shared library.
12647	#
12648	# There doesn't appear to be a way to prevent this compiler from
12649	# explicitly linking system object files so we need to strip them
12650	# from the output so that they don't get included in the library
12651	# dependencies.
12652	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'
12653	;;
12654      *)
12655	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12656	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12657	  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'
12658
12659	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12660	  hardcode_libdir_separator_CXX=:
12661
12662	  # Commands to make compiler produce verbose output that lists
12663	  # what "hidden" libraries, object files and flags are used when
12664	  # linking a shared library.
12665	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12666
12667	else
12668	  # FIXME: insert proper C++ library support
12669	  ld_shlibs_CXX=no
12670	fi
12671	;;
12672    esac
12673    ;;
12674  osf4* | osf5*)
12675    case $cc_basename in
12676      KCC*)
12677	# Kuck and Associates, Inc. (KAI) C++ Compiler
12678
12679	# KCC will only create a shared library if the output file
12680	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12681	# to its proper name (with version) after linking.
12682	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'
12683
12684	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12685	hardcode_libdir_separator_CXX=:
12686
12687	# Archives containing C++ object files must be created using
12688	# the KAI C++ compiler.
12689	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12690	;;
12691      RCC*)
12692	# Rational C++ 2.4.1
12693	# FIXME: insert proper C++ library support
12694	ld_shlibs_CXX=no
12695	;;
12696      cxx*)
12697	allow_undefined_flag_CXX=' -expect_unresolved \*'
12698	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'
12699	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12700	  echo "-hidden">> $lib.exp~
12701	  $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~
12702	  $rm $lib.exp'
12703
12704	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12705	hardcode_libdir_separator_CXX=:
12706
12707	# Commands to make compiler produce verbose output that lists
12708	# what "hidden" libraries, object files and flags are used when
12709	# linking a shared library.
12710	#
12711	# There doesn't appear to be a way to prevent this compiler from
12712	# explicitly linking system object files so we need to strip them
12713	# from the output so that they don't get included in the library
12714	# dependencies.
12715	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'
12716	;;
12717      *)
12718	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12719	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12720	 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'
12721
12722	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12723	  hardcode_libdir_separator_CXX=:
12724
12725	  # Commands to make compiler produce verbose output that lists
12726	  # what "hidden" libraries, object files and flags are used when
12727	  # linking a shared library.
12728	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12729
12730	else
12731	  # FIXME: insert proper C++ library support
12732	  ld_shlibs_CXX=no
12733	fi
12734	;;
12735    esac
12736    ;;
12737  psos*)
12738    # FIXME: insert proper C++ library support
12739    ld_shlibs_CXX=no
12740    ;;
12741  sunos4*)
12742    case $cc_basename in
12743      CC*)
12744	# Sun C++ 4.x
12745	# FIXME: insert proper C++ library support
12746	ld_shlibs_CXX=no
12747	;;
12748      lcc*)
12749	# Lucid
12750	# FIXME: insert proper C++ library support
12751	ld_shlibs_CXX=no
12752	;;
12753      *)
12754	# FIXME: insert proper C++ library support
12755	ld_shlibs_CXX=no
12756	;;
12757    esac
12758    ;;
12759  solaris*)
12760    case $cc_basename in
12761      CC*)
12762	# Sun C++ 4.2, 5.x and Centerline C++
12763        archive_cmds_need_lc_CXX=yes
12764	no_undefined_flag_CXX=' -zdefs'
12765	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12766	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12767	$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'
12768
12769	hardcode_libdir_flag_spec_CXX='-R$libdir'
12770	hardcode_shlibpath_var_CXX=no
12771	case $host_os in
12772	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12773	  *)
12774	    # The C++ compiler is used as linker so we must use $wl
12775	    # flag to pass the commands to the underlying system
12776	    # linker. We must also pass each convience library through
12777	    # to the system linker between allextract/defaultextract.
12778	    # The C++ compiler will combine linker options so we
12779	    # cannot just pass the convience library names through
12780	    # without $wl.
12781	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12782	    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'
12783	    ;;
12784	esac
12785	link_all_deplibs_CXX=yes
12786
12787	output_verbose_link_cmd='echo'
12788
12789	# Archives containing C++ object files must be created using
12790	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12791	# necessary to make sure instantiated templates are included
12792	# in the archive.
12793	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12794	;;
12795      gcx*)
12796	# Green Hills C++ Compiler
12797	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12798
12799	# The C++ compiler must be used to create the archive.
12800	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12801	;;
12802      *)
12803	# GNU C++ compiler with Solaris linker
12804	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12805	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12806	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12807	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12808	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12809		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12810
12811	    # Commands to make compiler produce verbose output that lists
12812	    # what "hidden" libraries, object files and flags are used when
12813	    # linking a shared library.
12814	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12815	  else
12816	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12817	    # platform.
12818	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12819	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12820		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12821
12822	    # Commands to make compiler produce verbose output that lists
12823	    # what "hidden" libraries, object files and flags are used when
12824	    # linking a shared library.
12825	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12826	  fi
12827
12828	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12829	fi
12830	;;
12831    esac
12832    ;;
12833  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12834    no_undefined_flag_CXX='${wl}-z,text'
12835    archive_cmds_need_lc_CXX=no
12836    hardcode_shlibpath_var_CXX=no
12837    runpath_var='LD_RUN_PATH'
12838
12839    case $cc_basename in
12840      CC*)
12841	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12842	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12843	;;
12844      *)
12845	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12846	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12847	;;
12848    esac
12849    ;;
12850  sysv5* | sco3.2v5* | sco5v6*)
12851    # Note: We can NOT use -z defs as we might desire, because we do not
12852    # link with -lc, and that would cause any symbols used from libc to
12853    # always be unresolved, which means just about no library would
12854    # ever link correctly.  If we're not using GNU ld we use -z text
12855    # though, which does catch some bad symbols but isn't as heavy-handed
12856    # as -z defs.
12857    # For security reasons, it is highly recommended that you always
12858    # use absolute paths for naming shared libraries, and exclude the
12859    # DT_RUNPATH tag from executables and libraries.  But doing so
12860    # requires that you compile everything twice, which is a pain.
12861    # So that behaviour is only enabled if SCOABSPATH is set to a
12862    # non-empty value in the environment.  Most likely only useful for
12863    # creating official distributions of packages.
12864    # This is a hack until libtool officially supports absolute path
12865    # names for shared libraries.
12866    no_undefined_flag_CXX='${wl}-z,text'
12867    allow_undefined_flag_CXX='${wl}-z,nodefs'
12868    archive_cmds_need_lc_CXX=no
12869    hardcode_shlibpath_var_CXX=no
12870    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12871    hardcode_libdir_separator_CXX=':'
12872    link_all_deplibs_CXX=yes
12873    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12874    runpath_var='LD_RUN_PATH'
12875
12876    case $cc_basename in
12877      CC*)
12878	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12879	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12880	;;
12881      *)
12882	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12883	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12884	;;
12885    esac
12886    ;;
12887  tandem*)
12888    case $cc_basename in
12889      NCC*)
12890	# NonStop-UX NCC 3.20
12891	# FIXME: insert proper C++ library support
12892	ld_shlibs_CXX=no
12893	;;
12894      *)
12895	# FIXME: insert proper C++ library support
12896	ld_shlibs_CXX=no
12897	;;
12898    esac
12899    ;;
12900  vxworks*)
12901    # FIXME: insert proper C++ library support
12902    ld_shlibs_CXX=no
12903    ;;
12904  *)
12905    # FIXME: insert proper C++ library support
12906    ld_shlibs_CXX=no
12907    ;;
12908esac
12909echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12910echo "${ECHO_T}$ld_shlibs_CXX" >&6
12911test "$ld_shlibs_CXX" = no && can_build_shared=no
12912
12913GCC_CXX="$GXX"
12914LD_CXX="$LD"
12915
12916## CAVEAT EMPTOR:
12917## There is no encapsulation within the following macros, do not change
12918## the running order or otherwise move them around unless you know exactly
12919## what you are doing...
12920
12921cat > conftest.$ac_ext <<EOF
12922class Foo
12923{
12924public:
12925  Foo (void) { a = 0; }
12926private:
12927  int a;
12928};
12929EOF
12930
12931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932  (eval $ac_compile) 2>&5
12933  ac_status=$?
12934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935  (exit $ac_status); }; then
12936  # Parse the compiler output and extract the necessary
12937  # objects, libraries and library flags.
12938
12939  # Sentinel used to keep track of whether or not we are before
12940  # the conftest object file.
12941  pre_test_object_deps_done=no
12942
12943  # The `*' in the case matches for architectures that use `case' in
12944  # $output_verbose_cmd can trigger glob expansion during the loop
12945  # eval without this substitution.
12946  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12947
12948  for p in `eval $output_verbose_link_cmd`; do
12949    case $p in
12950
12951    -L* | -R* | -l*)
12952       # Some compilers place space between "-{L,R}" and the path.
12953       # Remove the space.
12954       if test $p = "-L" \
12955	  || test $p = "-R"; then
12956	 prev=$p
12957	 continue
12958       else
12959	 prev=
12960       fi
12961
12962       if test "$pre_test_object_deps_done" = no; then
12963	 case $p in
12964	 -L* | -R*)
12965	   # Internal compiler library paths should come after those
12966	   # provided the user.  The postdeps already come after the
12967	   # user supplied libs so there is no need to process them.
12968	   if test -z "$compiler_lib_search_path_CXX"; then
12969	     compiler_lib_search_path_CXX="${prev}${p}"
12970	   else
12971	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12972	   fi
12973	   ;;
12974	 # The "-l" case would never come before the object being
12975	 # linked, so don't bother handling this case.
12976	 esac
12977       else
12978	 if test -z "$postdeps_CXX"; then
12979	   postdeps_CXX="${prev}${p}"
12980	 else
12981	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12982	 fi
12983       fi
12984       ;;
12985
12986    *.$objext)
12987       # This assumes that the test object file only shows up
12988       # once in the compiler output.
12989       if test "$p" = "conftest.$objext"; then
12990	 pre_test_object_deps_done=yes
12991	 continue
12992       fi
12993
12994       if test "$pre_test_object_deps_done" = no; then
12995	 if test -z "$predep_objects_CXX"; then
12996	   predep_objects_CXX="$p"
12997	 else
12998	   predep_objects_CXX="$predep_objects_CXX $p"
12999	 fi
13000       else
13001	 if test -z "$postdep_objects_CXX"; then
13002	   postdep_objects_CXX="$p"
13003	 else
13004	   postdep_objects_CXX="$postdep_objects_CXX $p"
13005	 fi
13006       fi
13007       ;;
13008
13009    *) ;; # Ignore the rest.
13010
13011    esac
13012  done
13013
13014  # Clean up.
13015  rm -f a.out a.exe
13016else
13017  echo "libtool.m4: error: problem compiling CXX test program"
13018fi
13019
13020$rm -f confest.$objext
13021
13022# PORTME: override above test on systems where it is broken
13023case $host_os in
13024interix3*)
13025  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13026  # hack all around it, let's just trust "g++" to DTRT.
13027  predep_objects_CXX=
13028  postdep_objects_CXX=
13029  postdeps_CXX=
13030  ;;
13031
13032solaris*)
13033  case $cc_basename in
13034  CC*)
13035    # Adding this requires a known-good setup of shared libraries for
13036    # Sun compiler versions before 5.6, else PIC objects from an old
13037    # archive will be linked into the output, leading to subtle bugs.
13038    postdeps_CXX='-lCstd -lCrun'
13039    ;;
13040  esac
13041  ;;
13042esac
13043
13044
13045case " $postdeps_CXX " in
13046*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13047esac
13048
13049lt_prog_compiler_wl_CXX=
13050lt_prog_compiler_pic_CXX=
13051lt_prog_compiler_static_CXX=
13052
13053echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13054echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13055
13056  # C++ specific cases for pic, static, wl, etc.
13057  if test "$GXX" = yes; then
13058    lt_prog_compiler_wl_CXX='-Wl,'
13059    lt_prog_compiler_static_CXX='-static'
13060
13061    case $host_os in
13062    aix*)
13063      # All AIX code is PIC.
13064      if test "$host_cpu" = ia64; then
13065	# AIX 5 now supports IA64 processor
13066	lt_prog_compiler_static_CXX='-Bstatic'
13067      fi
13068      ;;
13069    amigaos*)
13070      # FIXME: we need at least 68020 code to build shared libraries, but
13071      # adding the `-m68020' flag to GCC prevents building anything better,
13072      # like `-m68040'.
13073      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13074      ;;
13075    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13076      # PIC is the default for these OSes.
13077      ;;
13078    mingw* | os2* | pw32*)
13079      # This hack is so that the source file can tell whether it is being
13080      # built for inclusion in a dll (and should export symbols for example).
13081      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13082      ;;
13083    darwin* | rhapsody*)
13084      # PIC is the default on this platform
13085      # Common symbols not allowed in MH_DYLIB files
13086      lt_prog_compiler_pic_CXX='-fno-common'
13087      ;;
13088    *djgpp*)
13089      # DJGPP does not support shared libraries at all
13090      lt_prog_compiler_pic_CXX=
13091      ;;
13092    interix3*)
13093      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13094      # Instead, we relocate shared libraries at runtime.
13095      ;;
13096    sysv4*MP*)
13097      if test -d /usr/nec; then
13098	lt_prog_compiler_pic_CXX=-Kconform_pic
13099      fi
13100      ;;
13101    hpux*)
13102      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13103      # not for PA HP-UX.
13104      case $host_cpu in
13105      hppa*64*|ia64*)
13106	;;
13107      *)
13108	lt_prog_compiler_pic_CXX='-fPIC'
13109	;;
13110      esac
13111      ;;
13112    *)
13113      lt_prog_compiler_pic_CXX='-fPIC'
13114      ;;
13115    esac
13116  else
13117    case $host_os in
13118      aix4* | aix5*)
13119	# All AIX code is PIC.
13120	if test "$host_cpu" = ia64; then
13121	  # AIX 5 now supports IA64 processor
13122	  lt_prog_compiler_static_CXX='-Bstatic'
13123	else
13124	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13125	fi
13126	;;
13127      chorus*)
13128	case $cc_basename in
13129	cxch68*)
13130	  # Green Hills C++ Compiler
13131	  # _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"
13132	  ;;
13133	esac
13134	;;
13135       darwin*)
13136         # PIC is the default on this platform
13137         # Common symbols not allowed in MH_DYLIB files
13138         case $cc_basename in
13139           xlc*)
13140           lt_prog_compiler_pic_CXX='-qnocommon'
13141           lt_prog_compiler_wl_CXX='-Wl,'
13142           ;;
13143         esac
13144       ;;
13145      dgux*)
13146	case $cc_basename in
13147	  ec++*)
13148	    lt_prog_compiler_pic_CXX='-KPIC'
13149	    ;;
13150	  ghcx*)
13151	    # Green Hills C++ Compiler
13152	    lt_prog_compiler_pic_CXX='-pic'
13153	    ;;
13154	  *)
13155	    ;;
13156	esac
13157	;;
13158      freebsd* | kfreebsd*-gnu | dragonfly*)
13159	# FreeBSD uses GNU C++
13160	;;
13161      hpux9* | hpux10* | hpux11*)
13162	case $cc_basename in
13163	  CC*)
13164	    lt_prog_compiler_wl_CXX='-Wl,'
13165	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13166	    if test "$host_cpu" != ia64; then
13167	      lt_prog_compiler_pic_CXX='+Z'
13168	    fi
13169	    ;;
13170	  aCC*)
13171	    lt_prog_compiler_wl_CXX='-Wl,'
13172	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13173	    case $host_cpu in
13174	    hppa*64*|ia64*)
13175	      # +Z the default
13176	      ;;
13177	    *)
13178	      lt_prog_compiler_pic_CXX='+Z'
13179	      ;;
13180	    esac
13181	    ;;
13182	  *)
13183	    ;;
13184	esac
13185	;;
13186      interix*)
13187	# This is c89, which is MS Visual C++ (no shared libs)
13188	# Anyone wants to do a port?
13189	;;
13190      irix5* | irix6* | nonstopux*)
13191	case $cc_basename in
13192	  CC*)
13193	    lt_prog_compiler_wl_CXX='-Wl,'
13194	    lt_prog_compiler_static_CXX='-non_shared'
13195	    # CC pic flag -KPIC is the default.
13196	    ;;
13197	  *)
13198	    ;;
13199	esac
13200	;;
13201      linux*)
13202	case $cc_basename in
13203	  KCC*)
13204	    # KAI C++ Compiler
13205	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13206	    lt_prog_compiler_pic_CXX='-fPIC'
13207	    ;;
13208	  icpc* | ecpc*)
13209	    # Intel C++
13210	    lt_prog_compiler_wl_CXX='-Wl,'
13211	    lt_prog_compiler_pic_CXX='-KPIC'
13212	    lt_prog_compiler_static_CXX='-static'
13213	    ;;
13214	  pgCC*)
13215	    # Portland Group C++ compiler.
13216	    lt_prog_compiler_wl_CXX='-Wl,'
13217	    lt_prog_compiler_pic_CXX='-fpic'
13218	    lt_prog_compiler_static_CXX='-Bstatic'
13219	    ;;
13220	  cxx*)
13221	    # Compaq C++
13222	    # Make sure the PIC flag is empty.  It appears that all Alpha
13223	    # Linux and Compaq Tru64 Unix objects are PIC.
13224	    lt_prog_compiler_pic_CXX=
13225	    lt_prog_compiler_static_CXX='-non_shared'
13226	    ;;
13227	  *)
13228	    ;;
13229	esac
13230	;;
13231      lynxos*)
13232	;;
13233      m88k*)
13234	;;
13235      mvs*)
13236	case $cc_basename in
13237	  cxx*)
13238	    lt_prog_compiler_pic_CXX='-W c,exportall'
13239	    ;;
13240	  *)
13241	    ;;
13242	esac
13243	;;
13244      netbsd*)
13245	;;
13246      osf3* | osf4* | osf5*)
13247	case $cc_basename in
13248	  KCC*)
13249	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13250	    ;;
13251	  RCC*)
13252	    # Rational C++ 2.4.1
13253	    lt_prog_compiler_pic_CXX='-pic'
13254	    ;;
13255	  cxx*)
13256	    # Digital/Compaq C++
13257	    lt_prog_compiler_wl_CXX='-Wl,'
13258	    # Make sure the PIC flag is empty.  It appears that all Alpha
13259	    # Linux and Compaq Tru64 Unix objects are PIC.
13260	    lt_prog_compiler_pic_CXX=
13261	    lt_prog_compiler_static_CXX='-non_shared'
13262	    ;;
13263	  *)
13264	    ;;
13265	esac
13266	;;
13267      psos*)
13268	;;
13269      solaris*)
13270	case $cc_basename in
13271	  CC*)
13272	    # Sun C++ 4.2, 5.x and Centerline C++
13273	    lt_prog_compiler_pic_CXX='-KPIC'
13274	    lt_prog_compiler_static_CXX='-Bstatic'
13275	    lt_prog_compiler_wl_CXX='-Qoption ld '
13276	    ;;
13277	  gcx*)
13278	    # Green Hills C++ Compiler
13279	    lt_prog_compiler_pic_CXX='-PIC'
13280	    ;;
13281	  *)
13282	    ;;
13283	esac
13284	;;
13285      sunos4*)
13286	case $cc_basename in
13287	  CC*)
13288	    # Sun C++ 4.x
13289	    lt_prog_compiler_pic_CXX='-pic'
13290	    lt_prog_compiler_static_CXX='-Bstatic'
13291	    ;;
13292	  lcc*)
13293	    # Lucid
13294	    lt_prog_compiler_pic_CXX='-pic'
13295	    ;;
13296	  *)
13297	    ;;
13298	esac
13299	;;
13300      tandem*)
13301	case $cc_basename in
13302	  NCC*)
13303	    # NonStop-UX NCC 3.20
13304	    lt_prog_compiler_pic_CXX='-KPIC'
13305	    ;;
13306	  *)
13307	    ;;
13308	esac
13309	;;
13310      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13311	case $cc_basename in
13312	  CC*)
13313	    lt_prog_compiler_wl_CXX='-Wl,'
13314	    lt_prog_compiler_pic_CXX='-KPIC'
13315	    lt_prog_compiler_static_CXX='-Bstatic'
13316	    ;;
13317	esac
13318	;;
13319      vxworks*)
13320	;;
13321      *)
13322	lt_prog_compiler_can_build_shared_CXX=no
13323	;;
13324    esac
13325  fi
13326
13327echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13328echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13329
13330#
13331# Check to make sure the PIC flag actually works.
13332#
13333if test -n "$lt_prog_compiler_pic_CXX"; then
13334
13335echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13336echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13337if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13338  echo $ECHO_N "(cached) $ECHO_C" >&6
13339else
13340  lt_prog_compiler_pic_works_CXX=no
13341  ac_outfile=conftest.$ac_objext
13342   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13343   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13344   # Insert the option either (1) after the last *FLAGS variable, or
13345   # (2) before a word containing "conftest.", or (3) at the end.
13346   # Note that $ac_compile itself does not contain backslashes and begins
13347   # with a dollar sign (not a hyphen), so the echo should work correctly.
13348   # The option is referenced via a variable to avoid confusing sed.
13349   lt_compile=`echo "$ac_compile" | $SED \
13350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13352   -e 's:$: $lt_compiler_flag:'`
13353   (eval echo "\"\$as_me:13353: $lt_compile\"" >&5)
13354   (eval "$lt_compile" 2>conftest.err)
13355   ac_status=$?
13356   cat conftest.err >&5
13357   echo "$as_me:13357: \$? = $ac_status" >&5
13358   if (exit $ac_status) && test -s "$ac_outfile"; then
13359     # The compiler can only warn and ignore the option if not recognized
13360     # So say no if there are warnings other than the usual output.
13361     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13362     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13363     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13364       lt_prog_compiler_pic_works_CXX=yes
13365     fi
13366   fi
13367   $rm conftest*
13368
13369fi
13370echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13371echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13372
13373if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13374    case $lt_prog_compiler_pic_CXX in
13375     "" | " "*) ;;
13376     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13377     esac
13378else
13379    lt_prog_compiler_pic_CXX=
13380     lt_prog_compiler_can_build_shared_CXX=no
13381fi
13382
13383fi
13384case $host_os in
13385  # For platforms which do not support PIC, -DPIC is meaningless:
13386  *djgpp*)
13387    lt_prog_compiler_pic_CXX=
13388    ;;
13389  *)
13390    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13391    ;;
13392esac
13393
13394#
13395# Check to make sure the static flag actually works.
13396#
13397wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13398echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13399echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13400if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13401  echo $ECHO_N "(cached) $ECHO_C" >&6
13402else
13403  lt_prog_compiler_static_works_CXX=no
13404   save_LDFLAGS="$LDFLAGS"
13405   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13406   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13407   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13408     # The linker can only warn and ignore the option if not recognized
13409     # So say no if there are warnings
13410     if test -s conftest.err; then
13411       # Append any errors to the config.log.
13412       cat conftest.err 1>&5
13413       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13414       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13415       if diff conftest.exp conftest.er2 >/dev/null; then
13416         lt_prog_compiler_static_works_CXX=yes
13417       fi
13418     else
13419       lt_prog_compiler_static_works_CXX=yes
13420     fi
13421   fi
13422   $rm conftest*
13423   LDFLAGS="$save_LDFLAGS"
13424
13425fi
13426echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13427echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13428
13429if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13430    :
13431else
13432    lt_prog_compiler_static_CXX=
13433fi
13434
13435
13436echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13439  echo $ECHO_N "(cached) $ECHO_C" >&6
13440else
13441  lt_cv_prog_compiler_c_o_CXX=no
13442   $rm -r conftest 2>/dev/null
13443   mkdir conftest
13444   cd conftest
13445   mkdir out
13446   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13447
13448   lt_compiler_flag="-o out/conftest2.$ac_objext"
13449   # Insert the option either (1) after the last *FLAGS variable, or
13450   # (2) before a word containing "conftest.", or (3) at the end.
13451   # Note that $ac_compile itself does not contain backslashes and begins
13452   # with a dollar sign (not a hyphen), so the echo should work correctly.
13453   lt_compile=`echo "$ac_compile" | $SED \
13454   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13455   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456   -e 's:$: $lt_compiler_flag:'`
13457   (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
13458   (eval "$lt_compile" 2>out/conftest.err)
13459   ac_status=$?
13460   cat out/conftest.err >&5
13461   echo "$as_me:13461: \$? = $ac_status" >&5
13462   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13463   then
13464     # The compiler can only warn and ignore the option if not recognized
13465     # So say no if there are warnings
13466     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13467     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13468     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13469       lt_cv_prog_compiler_c_o_CXX=yes
13470     fi
13471   fi
13472   chmod u+w . 2>&5
13473   $rm conftest*
13474   # SGI C++ compiler will create directory out/ii_files/ for
13475   # template instantiation
13476   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13477   $rm out/* && rmdir out
13478   cd ..
13479   rmdir conftest
13480   $rm conftest*
13481
13482fi
13483echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13484echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13485
13486
13487hard_links="nottested"
13488if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13489  # do not overwrite the value of need_locks provided by the user
13490  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13491echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13492  hard_links=yes
13493  $rm conftest*
13494  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13495  touch conftest.a
13496  ln conftest.a conftest.b 2>&5 || hard_links=no
13497  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13498  echo "$as_me:$LINENO: result: $hard_links" >&5
13499echo "${ECHO_T}$hard_links" >&6
13500  if test "$hard_links" = no; then
13501    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13502echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13503    need_locks=warn
13504  fi
13505else
13506  need_locks=no
13507fi
13508
13509echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13510echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13511
13512  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13513  case $host_os in
13514  aix4* | aix5*)
13515    # If we're using GNU nm, then we don't want the "-C" option.
13516    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13517    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13518      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'
13519    else
13520      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'
13521    fi
13522    ;;
13523  pw32*)
13524    export_symbols_cmds_CXX="$ltdll_cmds"
13525  ;;
13526  cygwin* | mingw*)
13527    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'
13528  ;;
13529  *)
13530    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13531  ;;
13532  esac
13533
13534echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13535echo "${ECHO_T}$ld_shlibs_CXX" >&6
13536test "$ld_shlibs_CXX" = no && can_build_shared=no
13537
13538#
13539# Do we need to explicitly link libc?
13540#
13541case "x$archive_cmds_need_lc_CXX" in
13542x|xyes)
13543  # Assume -lc should be added
13544  archive_cmds_need_lc_CXX=yes
13545
13546  if test "$enable_shared" = yes && test "$GCC" = yes; then
13547    case $archive_cmds_CXX in
13548    *'~'*)
13549      # FIXME: we may have to deal with multi-command sequences.
13550      ;;
13551    '$CC '*)
13552      # Test whether the compiler implicitly links with -lc since on some
13553      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13554      # to ld, don't add -lc before -lgcc.
13555      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13556echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13557      $rm conftest*
13558      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13559
13560      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561  (eval $ac_compile) 2>&5
13562  ac_status=$?
13563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564  (exit $ac_status); } 2>conftest.err; then
13565        soname=conftest
13566        lib=conftest
13567        libobjs=conftest.$ac_objext
13568        deplibs=
13569        wl=$lt_prog_compiler_wl_CXX
13570	pic_flag=$lt_prog_compiler_pic_CXX
13571        compiler_flags=-v
13572        linker_flags=-v
13573        verstring=
13574        output_objdir=.
13575        libname=conftest
13576        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13577        allow_undefined_flag_CXX=
13578        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13579  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13580  ac_status=$?
13581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582  (exit $ac_status); }
13583        then
13584	  archive_cmds_need_lc_CXX=no
13585        else
13586	  archive_cmds_need_lc_CXX=yes
13587        fi
13588        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13589      else
13590        cat conftest.err 1>&5
13591      fi
13592      $rm conftest*
13593      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13594echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13595      ;;
13596    esac
13597  fi
13598  ;;
13599esac
13600
13601echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13602echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13603library_names_spec=
13604libname_spec='lib$name'
13605soname_spec=
13606shrext_cmds=".so"
13607postinstall_cmds=
13608postuninstall_cmds=
13609finish_cmds=
13610finish_eval=
13611shlibpath_var=
13612shlibpath_overrides_runpath=unknown
13613version_type=none
13614dynamic_linker="$host_os ld.so"
13615sys_lib_dlsearch_path_spec="/lib /usr/lib"
13616if test "$GCC" = yes; then
13617  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13618  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13619    # if the path contains ";" then we assume it to be the separator
13620    # otherwise default to the standard path separator (i.e. ":") - it is
13621    # assumed that no part of a normal pathname contains ";" but that should
13622    # okay in the real world where ";" in dirpaths is itself problematic.
13623    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13624  else
13625    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13626  fi
13627else
13628  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13629fi
13630need_lib_prefix=unknown
13631hardcode_into_libs=no
13632
13633# when you set need_version to no, make sure it does not cause -set_version
13634# flags to be left without arguments
13635need_version=unknown
13636
13637case $host_os in
13638aix3*)
13639  version_type=linux
13640  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13641  shlibpath_var=LIBPATH
13642
13643  # AIX 3 has no versioning support, so we append a major version to the name.
13644  soname_spec='${libname}${release}${shared_ext}$major'
13645  ;;
13646
13647aix4* | aix5*)
13648  version_type=linux
13649  need_lib_prefix=no
13650  need_version=no
13651  hardcode_into_libs=yes
13652  if test "$host_cpu" = ia64; then
13653    # AIX 5 supports IA64
13654    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13655    shlibpath_var=LD_LIBRARY_PATH
13656  else
13657    # With GCC up to 2.95.x, collect2 would create an import file
13658    # for dependence libraries.  The import file would start with
13659    # the line `#! .'.  This would cause the generated library to
13660    # depend on `.', always an invalid library.  This was fixed in
13661    # development snapshots of GCC prior to 3.0.
13662    case $host_os in
13663      aix4 | aix4.[01] | aix4.[01].*)
13664      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13665	   echo ' yes '
13666	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13667	:
13668      else
13669	can_build_shared=no
13670      fi
13671      ;;
13672    esac
13673    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13674    # soname into executable. Probably we can add versioning support to
13675    # collect2, so additional links can be useful in future.
13676    if test "$aix_use_runtimelinking" = yes; then
13677      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13678      # instead of lib<name>.a to let people know that these are not
13679      # typical AIX shared libraries.
13680      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681    else
13682      # We preserve .a as extension for shared libraries through AIX4.2
13683      # and later when we are not doing run time linking.
13684      library_names_spec='${libname}${release}.a $libname.a'
13685      soname_spec='${libname}${release}${shared_ext}$major'
13686    fi
13687    shlibpath_var=LIBPATH
13688  fi
13689  ;;
13690
13691amigaos*)
13692  library_names_spec='$libname.ixlibrary $libname.a'
13693  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13694  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'
13695  ;;
13696
13697beos*)
13698  library_names_spec='${libname}${shared_ext}'
13699  dynamic_linker="$host_os ld.so"
13700  shlibpath_var=LIBRARY_PATH
13701  ;;
13702
13703bsdi[45]*)
13704  version_type=linux
13705  need_version=no
13706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707  soname_spec='${libname}${release}${shared_ext}$major'
13708  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13709  shlibpath_var=LD_LIBRARY_PATH
13710  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13711  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13712  # the default ld.so.conf also contains /usr/contrib/lib and
13713  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13714  # libtool to hard-code these into programs
13715  ;;
13716
13717cygwin* | mingw* | pw32*)
13718  version_type=windows
13719  shrext_cmds=".dll"
13720  need_version=no
13721  need_lib_prefix=no
13722
13723  case $GCC,$host_os in
13724  yes,cygwin* | yes,mingw* | yes,pw32*)
13725    library_names_spec='$libname.dll.a'
13726    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13727    postinstall_cmds='base_file=`basename \${file}`~
13728      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13729      dldir=$destdir/`dirname \$dlpath`~
13730      test -d \$dldir || mkdir -p \$dldir~
13731      $install_prog $dir/$dlname \$dldir/$dlname~
13732      chmod a+x \$dldir/$dlname'
13733    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13734      dlpath=$dir/\$dldll~
13735       $rm \$dlpath'
13736    shlibpath_overrides_runpath=yes
13737
13738    case $host_os in
13739    cygwin*)
13740      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13741      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13742      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13743      ;;
13744    mingw*)
13745      # MinGW DLLs use traditional 'lib' prefix
13746      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13747      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13748      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13749        # It is most probably a Windows format PATH printed by
13750        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13751        # path with ; separators, and with drive letters. We can handle the
13752        # drive letters (cygwin fileutils understands them), so leave them,
13753        # especially as we might pass files found there to a mingw objdump,
13754        # which wouldn't understand a cygwinified path. Ahh.
13755        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13756      else
13757        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13758      fi
13759      ;;
13760    pw32*)
13761      # pw32 DLLs use 'pw' prefix rather than 'lib'
13762      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13763      ;;
13764    esac
13765    ;;
13766
13767  *)
13768    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13769    ;;
13770  esac
13771  dynamic_linker='Win32 ld.exe'
13772  # FIXME: first we should search . and the directory the executable is in
13773  shlibpath_var=PATH
13774  ;;
13775
13776darwin* | rhapsody*)
13777  dynamic_linker="$host_os dyld"
13778  version_type=darwin
13779  need_lib_prefix=no
13780  need_version=no
13781  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13782  soname_spec='${libname}${release}${major}$shared_ext'
13783  shlibpath_overrides_runpath=yes
13784  shlibpath_var=DYLD_LIBRARY_PATH
13785  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13786  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13787  if test "$GCC" = yes; then
13788    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"`
13789  else
13790    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13791  fi
13792  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13793  ;;
13794
13795dgux*)
13796  version_type=linux
13797  need_lib_prefix=no
13798  need_version=no
13799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13800  soname_spec='${libname}${release}${shared_ext}$major'
13801  shlibpath_var=LD_LIBRARY_PATH
13802  ;;
13803
13804freebsd1*)
13805  dynamic_linker=no
13806  ;;
13807
13808kfreebsd*-gnu)
13809  version_type=linux
13810  need_lib_prefix=no
13811  need_version=no
13812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13813  soname_spec='${libname}${release}${shared_ext}$major'
13814  shlibpath_var=LD_LIBRARY_PATH
13815  shlibpath_overrides_runpath=no
13816  hardcode_into_libs=yes
13817  dynamic_linker='GNU ld.so'
13818  ;;
13819
13820freebsd* | dragonfly*)
13821  # DragonFly does not have aout.  When/if they implement a new
13822  # versioning mechanism, adjust this.
13823  if test -x /usr/bin/objformat; then
13824    objformat=`/usr/bin/objformat`
13825  else
13826    case $host_os in
13827    freebsd[123]*) objformat=aout ;;
13828    *) objformat=elf ;;
13829    esac
13830  fi
13831  version_type=freebsd-$objformat
13832  case $version_type in
13833    freebsd-elf*)
13834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13835      need_version=no
13836      need_lib_prefix=no
13837      ;;
13838    freebsd-*)
13839      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13840      need_version=yes
13841      ;;
13842  esac
13843  shlibpath_var=LD_LIBRARY_PATH
13844  case $host_os in
13845  freebsd2*)
13846    shlibpath_overrides_runpath=yes
13847    ;;
13848  freebsd3.[01]* | freebsdelf3.[01]*)
13849    shlibpath_overrides_runpath=yes
13850    hardcode_into_libs=yes
13851    ;;
13852  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13853  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13854    shlibpath_overrides_runpath=no
13855    hardcode_into_libs=yes
13856    ;;
13857  freebsd*) # from 4.6 on
13858    shlibpath_overrides_runpath=yes
13859    hardcode_into_libs=yes
13860    ;;
13861  esac
13862  ;;
13863
13864gnu*)
13865  version_type=linux
13866  need_lib_prefix=no
13867  need_version=no
13868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13869  soname_spec='${libname}${release}${shared_ext}$major'
13870  shlibpath_var=LD_LIBRARY_PATH
13871  hardcode_into_libs=yes
13872  ;;
13873
13874hpux9* | hpux10* | hpux11*)
13875  # Give a soname corresponding to the major version so that dld.sl refuses to
13876  # link against other versions.
13877  version_type=sunos
13878  need_lib_prefix=no
13879  need_version=no
13880  case $host_cpu in
13881  ia64*)
13882    shrext_cmds='.so'
13883    hardcode_into_libs=yes
13884    dynamic_linker="$host_os dld.so"
13885    shlibpath_var=LD_LIBRARY_PATH
13886    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13887    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13888    soname_spec='${libname}${release}${shared_ext}$major'
13889    if test "X$HPUX_IA64_MODE" = X32; then
13890      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13891    else
13892      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13893    fi
13894    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13895    ;;
13896   hppa*64*)
13897     shrext_cmds='.sl'
13898     hardcode_into_libs=yes
13899     dynamic_linker="$host_os dld.sl"
13900     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903     soname_spec='${libname}${release}${shared_ext}$major'
13904     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13905     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13906     ;;
13907   *)
13908    shrext_cmds='.sl'
13909    dynamic_linker="$host_os dld.sl"
13910    shlibpath_var=SHLIB_PATH
13911    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913    soname_spec='${libname}${release}${shared_ext}$major'
13914    ;;
13915  esac
13916  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13917  postinstall_cmds='chmod 555 $lib'
13918  ;;
13919
13920interix3*)
13921  version_type=linux
13922  need_lib_prefix=no
13923  need_version=no
13924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13925  soname_spec='${libname}${release}${shared_ext}$major'
13926  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13927  shlibpath_var=LD_LIBRARY_PATH
13928  shlibpath_overrides_runpath=no
13929  hardcode_into_libs=yes
13930  ;;
13931
13932irix5* | irix6* | nonstopux*)
13933  case $host_os in
13934    nonstopux*) version_type=nonstopux ;;
13935    *)
13936	if test "$lt_cv_prog_gnu_ld" = yes; then
13937		version_type=linux
13938	else
13939		version_type=irix
13940	fi ;;
13941  esac
13942  need_lib_prefix=no
13943  need_version=no
13944  soname_spec='${libname}${release}${shared_ext}$major'
13945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13946  case $host_os in
13947  irix5* | nonstopux*)
13948    libsuff= shlibsuff=
13949    ;;
13950  *)
13951    case $LD in # libtool.m4 will add one of these switches to LD
13952    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13953      libsuff= shlibsuff= libmagic=32-bit;;
13954    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13955      libsuff=32 shlibsuff=N32 libmagic=N32;;
13956    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13957      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13958    *) libsuff= shlibsuff= libmagic=never-match;;
13959    esac
13960    ;;
13961  esac
13962  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13963  shlibpath_overrides_runpath=no
13964  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13965  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13966  hardcode_into_libs=yes
13967  ;;
13968
13969# No shared lib support for Linux oldld, aout, or coff.
13970linux*oldld* | linux*aout* | linux*coff*)
13971  dynamic_linker=no
13972  ;;
13973
13974# This must be Linux ELF.
13975linux*)
13976  version_type=linux
13977  need_lib_prefix=no
13978  need_version=no
13979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980  soname_spec='${libname}${release}${shared_ext}$major'
13981  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13982  shlibpath_var=LD_LIBRARY_PATH
13983  shlibpath_overrides_runpath=no
13984  # This implies no fast_install, which is unacceptable.
13985  # Some rework will be needed to allow for fast_install
13986  # before this can be enabled.
13987  hardcode_into_libs=yes
13988
13989  # Append ld.so.conf contents to the search path
13990  if test -f /etc/ld.so.conf; then
13991    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' ' '`
13992    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13993  fi
13994
13995  # We used to test for /lib/ld.so.1 and disable shared libraries on
13996  # powerpc, because MkLinux only supported shared libraries with the
13997  # GNU dynamic linker.  Since this was broken with cross compilers,
13998  # most powerpc-linux boxes support dynamic linking these days and
13999  # people can always --disable-shared, the test was removed, and we
14000  # assume the GNU/Linux dynamic linker is in use.
14001  dynamic_linker='GNU/Linux ld.so'
14002  ;;
14003
14004knetbsd*-gnu)
14005  version_type=linux
14006  need_lib_prefix=no
14007  need_version=no
14008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14009  soname_spec='${libname}${release}${shared_ext}$major'
14010  shlibpath_var=LD_LIBRARY_PATH
14011  shlibpath_overrides_runpath=no
14012  hardcode_into_libs=yes
14013  dynamic_linker='GNU ld.so'
14014  ;;
14015
14016netbsd*)
14017  version_type=sunos
14018  need_lib_prefix=no
14019  need_version=no
14020  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14021    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14022    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14023    dynamic_linker='NetBSD (a.out) ld.so'
14024  else
14025    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14026    soname_spec='${libname}${release}${shared_ext}$major'
14027    dynamic_linker='NetBSD ld.elf_so'
14028  fi
14029  shlibpath_var=LD_LIBRARY_PATH
14030  shlibpath_overrides_runpath=yes
14031  hardcode_into_libs=yes
14032  ;;
14033
14034newsos6)
14035  version_type=linux
14036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037  shlibpath_var=LD_LIBRARY_PATH
14038  shlibpath_overrides_runpath=yes
14039  ;;
14040
14041nto-qnx*)
14042  version_type=linux
14043  need_lib_prefix=no
14044  need_version=no
14045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14046  soname_spec='${libname}${release}${shared_ext}$major'
14047  shlibpath_var=LD_LIBRARY_PATH
14048  shlibpath_overrides_runpath=yes
14049  ;;
14050
14051openbsd*)
14052  version_type=sunos
14053  sys_lib_dlsearch_path_spec="/usr/lib"
14054  need_lib_prefix=no
14055  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14056  case $host_os in
14057    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14058    *)                         need_version=no  ;;
14059  esac
14060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14061  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14062  shlibpath_var=LD_LIBRARY_PATH
14063  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14064    case $host_os in
14065      openbsd2.[89] | openbsd2.[89].*)
14066	shlibpath_overrides_runpath=no
14067	;;
14068      *)
14069	shlibpath_overrides_runpath=yes
14070	;;
14071      esac
14072  else
14073    shlibpath_overrides_runpath=yes
14074  fi
14075  ;;
14076
14077os2*)
14078  libname_spec='$name'
14079  shrext_cmds=".dll"
14080  need_lib_prefix=no
14081  library_names_spec='$libname${shared_ext} $libname.a'
14082  dynamic_linker='OS/2 ld.exe'
14083  shlibpath_var=LIBPATH
14084  ;;
14085
14086osf3* | osf4* | osf5*)
14087  version_type=osf
14088  need_lib_prefix=no
14089  need_version=no
14090  soname_spec='${libname}${release}${shared_ext}$major'
14091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092  shlibpath_var=LD_LIBRARY_PATH
14093  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14094  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14095  ;;
14096
14097solaris*)
14098  version_type=linux
14099  need_lib_prefix=no
14100  need_version=no
14101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102  soname_spec='${libname}${release}${shared_ext}$major'
14103  shlibpath_var=LD_LIBRARY_PATH
14104  shlibpath_overrides_runpath=yes
14105  hardcode_into_libs=yes
14106  # ldd complains unless libraries are executable
14107  postinstall_cmds='chmod +x $lib'
14108  ;;
14109
14110sunos4*)
14111  version_type=sunos
14112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14113  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14114  shlibpath_var=LD_LIBRARY_PATH
14115  shlibpath_overrides_runpath=yes
14116  if test "$with_gnu_ld" = yes; then
14117    need_lib_prefix=no
14118  fi
14119  need_version=yes
14120  ;;
14121
14122sysv4 | sysv4.3*)
14123  version_type=linux
14124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125  soname_spec='${libname}${release}${shared_ext}$major'
14126  shlibpath_var=LD_LIBRARY_PATH
14127  case $host_vendor in
14128    sni)
14129      shlibpath_overrides_runpath=no
14130      need_lib_prefix=no
14131      export_dynamic_flag_spec='${wl}-Blargedynsym'
14132      runpath_var=LD_RUN_PATH
14133      ;;
14134    siemens)
14135      need_lib_prefix=no
14136      ;;
14137    motorola)
14138      need_lib_prefix=no
14139      need_version=no
14140      shlibpath_overrides_runpath=no
14141      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14142      ;;
14143  esac
14144  ;;
14145
14146sysv4*MP*)
14147  if test -d /usr/nec ;then
14148    version_type=linux
14149    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14150    soname_spec='$libname${shared_ext}.$major'
14151    shlibpath_var=LD_LIBRARY_PATH
14152  fi
14153  ;;
14154
14155sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14156  version_type=freebsd-elf
14157  need_lib_prefix=no
14158  need_version=no
14159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14160  soname_spec='${libname}${release}${shared_ext}$major'
14161  shlibpath_var=LD_LIBRARY_PATH
14162  hardcode_into_libs=yes
14163  if test "$with_gnu_ld" = yes; then
14164    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14165    shlibpath_overrides_runpath=no
14166  else
14167    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14168    shlibpath_overrides_runpath=yes
14169    case $host_os in
14170      sco3.2v5*)
14171        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14172	;;
14173    esac
14174  fi
14175  sys_lib_dlsearch_path_spec='/usr/lib'
14176  ;;
14177
14178uts4*)
14179  version_type=linux
14180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181  soname_spec='${libname}${release}${shared_ext}$major'
14182  shlibpath_var=LD_LIBRARY_PATH
14183  ;;
14184
14185*)
14186  dynamic_linker=no
14187  ;;
14188esac
14189echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14190echo "${ECHO_T}$dynamic_linker" >&6
14191test "$dynamic_linker" = no && can_build_shared=no
14192
14193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14194if test "$GCC" = yes; then
14195  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14196fi
14197
14198echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14199echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14200hardcode_action_CXX=
14201if test -n "$hardcode_libdir_flag_spec_CXX" || \
14202   test -n "$runpath_var_CXX" || \
14203   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14204
14205  # We can hardcode non-existant directories.
14206  if test "$hardcode_direct_CXX" != no &&
14207     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14208     # have to relink, otherwise we might link with an installed library
14209     # when we should be linking with a yet-to-be-installed one
14210     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14211     test "$hardcode_minus_L_CXX" != no; then
14212    # Linking always hardcodes the temporary library directory.
14213    hardcode_action_CXX=relink
14214  else
14215    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14216    hardcode_action_CXX=immediate
14217  fi
14218else
14219  # We cannot hardcode anything, or else we can only hardcode existing
14220  # directories.
14221  hardcode_action_CXX=unsupported
14222fi
14223echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14224echo "${ECHO_T}$hardcode_action_CXX" >&6
14225
14226if test "$hardcode_action_CXX" = relink; then
14227  # Fast installation is not supported
14228  enable_fast_install=no
14229elif test "$shlibpath_overrides_runpath" = yes ||
14230     test "$enable_shared" = no; then
14231  # Fast installation is not necessary
14232  enable_fast_install=needless
14233fi
14234
14235
14236# The else clause should only fire when bootstrapping the
14237# libtool distribution, otherwise you forgot to ship ltmain.sh
14238# with your package, and you will get complaints that there are
14239# no rules to generate ltmain.sh.
14240if test -f "$ltmain"; then
14241  # See if we are running on zsh, and set the options which allow our commands through
14242  # without removal of \ escapes.
14243  if test -n "${ZSH_VERSION+set}" ; then
14244    setopt NO_GLOB_SUBST
14245  fi
14246  # Now quote all the things that may contain metacharacters while being
14247  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14248  # variables and quote the copies for generation of the libtool script.
14249  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14250    SED SHELL STRIP \
14251    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14252    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14253    deplibs_check_method reload_flag reload_cmds need_locks \
14254    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14255    lt_cv_sys_global_symbol_to_c_name_address \
14256    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14257    old_postinstall_cmds old_postuninstall_cmds \
14258    compiler_CXX \
14259    CC_CXX \
14260    LD_CXX \
14261    lt_prog_compiler_wl_CXX \
14262    lt_prog_compiler_pic_CXX \
14263    lt_prog_compiler_static_CXX \
14264    lt_prog_compiler_no_builtin_flag_CXX \
14265    export_dynamic_flag_spec_CXX \
14266    thread_safe_flag_spec_CXX \
14267    whole_archive_flag_spec_CXX \
14268    enable_shared_with_static_runtimes_CXX \
14269    old_archive_cmds_CXX \
14270    old_archive_from_new_cmds_CXX \
14271    predep_objects_CXX \
14272    postdep_objects_CXX \
14273    predeps_CXX \
14274    postdeps_CXX \
14275    compiler_lib_search_path_CXX \
14276    archive_cmds_CXX \
14277    archive_expsym_cmds_CXX \
14278    postinstall_cmds_CXX \
14279    postuninstall_cmds_CXX \
14280    old_archive_from_expsyms_cmds_CXX \
14281    allow_undefined_flag_CXX \
14282    no_undefined_flag_CXX \
14283    export_symbols_cmds_CXX \
14284    hardcode_libdir_flag_spec_CXX \
14285    hardcode_libdir_flag_spec_ld_CXX \
14286    hardcode_libdir_separator_CXX \
14287    hardcode_automatic_CXX \
14288    module_cmds_CXX \
14289    module_expsym_cmds_CXX \
14290    lt_cv_prog_compiler_c_o_CXX \
14291    exclude_expsyms_CXX \
14292    include_expsyms_CXX; do
14293
14294    case $var in
14295    old_archive_cmds_CXX | \
14296    old_archive_from_new_cmds_CXX | \
14297    archive_cmds_CXX | \
14298    archive_expsym_cmds_CXX | \
14299    module_cmds_CXX | \
14300    module_expsym_cmds_CXX | \
14301    old_archive_from_expsyms_cmds_CXX | \
14302    export_symbols_cmds_CXX | \
14303    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14304    postinstall_cmds | postuninstall_cmds | \
14305    old_postinstall_cmds | old_postuninstall_cmds | \
14306    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14307      # Double-quote double-evaled strings.
14308      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14309      ;;
14310    *)
14311      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14312      ;;
14313    esac
14314  done
14315
14316  case $lt_echo in
14317  *'\$0 --fallback-echo"')
14318    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14319    ;;
14320  esac
14321
14322cfgfile="$ofile"
14323
14324  cat <<__EOF__ >> "$cfgfile"
14325# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14326
14327# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14328
14329# Shell to use when invoking shell scripts.
14330SHELL=$lt_SHELL
14331
14332# Whether or not to build shared libraries.
14333build_libtool_libs=$enable_shared
14334
14335# Whether or not to build static libraries.
14336build_old_libs=$enable_static
14337
14338# Whether or not to add -lc for building shared libraries.
14339build_libtool_need_lc=$archive_cmds_need_lc_CXX
14340
14341# Whether or not to disallow shared libs when runtime libs are static
14342allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14343
14344# Whether or not to optimize for fast installation.
14345fast_install=$enable_fast_install
14346
14347# The host system.
14348host_alias=$host_alias
14349host=$host
14350host_os=$host_os
14351
14352# The build system.
14353build_alias=$build_alias
14354build=$build
14355build_os=$build_os
14356
14357# An echo program that does not interpret backslashes.
14358echo=$lt_echo
14359
14360# The archiver.
14361AR=$lt_AR
14362AR_FLAGS=$lt_AR_FLAGS
14363
14364# A C compiler.
14365LTCC=$lt_LTCC
14366
14367# LTCC compiler flags.
14368LTCFLAGS=$lt_LTCFLAGS
14369
14370# A language-specific compiler.
14371CC=$lt_compiler_CXX
14372
14373# Is the compiler the GNU C compiler?
14374with_gcc=$GCC_CXX
14375
14376# An ERE matcher.
14377EGREP=$lt_EGREP
14378
14379# The linker used to build libraries.
14380LD=$lt_LD_CXX
14381
14382# Whether we need hard or soft links.
14383LN_S=$lt_LN_S
14384
14385# A BSD-compatible nm program.
14386NM=$lt_NM
14387
14388# A symbol stripping program
14389STRIP=$lt_STRIP
14390
14391# Used to examine libraries when file_magic_cmd begins "file"
14392MAGIC_CMD=$MAGIC_CMD
14393
14394# Used on cygwin: DLL creation program.
14395DLLTOOL="$DLLTOOL"
14396
14397# Used on cygwin: object dumper.
14398OBJDUMP="$OBJDUMP"
14399
14400# Used on cygwin: assembler.
14401AS="$AS"
14402
14403# The name of the directory that contains temporary libtool files.
14404objdir=$objdir
14405
14406# How to create reloadable object files.
14407reload_flag=$lt_reload_flag
14408reload_cmds=$lt_reload_cmds
14409
14410# How to pass a linker flag through the compiler.
14411wl=$lt_lt_prog_compiler_wl_CXX
14412
14413# Object file suffix (normally "o").
14414objext="$ac_objext"
14415
14416# Old archive suffix (normally "a").
14417libext="$libext"
14418
14419# Shared library suffix (normally ".so").
14420shrext_cmds='$shrext_cmds'
14421
14422# Executable file suffix (normally "").
14423exeext="$exeext"
14424
14425# Additional compiler flags for building library objects.
14426pic_flag=$lt_lt_prog_compiler_pic_CXX
14427pic_mode=$pic_mode
14428
14429# What is the maximum length of a command?
14430max_cmd_len=$lt_cv_sys_max_cmd_len
14431
14432# Does compiler simultaneously support -c and -o options?
14433compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14434
14435# Must we lock files when doing compilation?
14436need_locks=$lt_need_locks
14437
14438# Do we need the lib prefix for modules?
14439need_lib_prefix=$need_lib_prefix
14440
14441# Do we need a version for libraries?
14442need_version=$need_version
14443
14444# Whether dlopen is supported.
14445dlopen_support=$enable_dlopen
14446
14447# Whether dlopen of programs is supported.
14448dlopen_self=$enable_dlopen_self
14449
14450# Whether dlopen of statically linked programs is supported.
14451dlopen_self_static=$enable_dlopen_self_static
14452
14453# Compiler flag to prevent dynamic linking.
14454link_static_flag=$lt_lt_prog_compiler_static_CXX
14455
14456# Compiler flag to turn off builtin functions.
14457no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14458
14459# Compiler flag to allow reflexive dlopens.
14460export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14461
14462# Compiler flag to generate shared objects directly from archives.
14463whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14464
14465# Compiler flag to generate thread-safe objects.
14466thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14467
14468# Library versioning type.
14469version_type=$version_type
14470
14471# Format of library name prefix.
14472libname_spec=$lt_libname_spec
14473
14474# List of archive names.  First name is the real one, the rest are links.
14475# The last name is the one that the linker finds with -lNAME.
14476library_names_spec=$lt_library_names_spec
14477
14478# The coded name of the library, if different from the real name.
14479soname_spec=$lt_soname_spec
14480
14481# Commands used to build and install an old-style archive.
14482RANLIB=$lt_RANLIB
14483old_archive_cmds=$lt_old_archive_cmds_CXX
14484old_postinstall_cmds=$lt_old_postinstall_cmds
14485old_postuninstall_cmds=$lt_old_postuninstall_cmds
14486
14487# Create an old-style archive from a shared archive.
14488old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14489
14490# Create a temporary old-style archive to link instead of a shared archive.
14491old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14492
14493# Commands used to build and install a shared archive.
14494archive_cmds=$lt_archive_cmds_CXX
14495archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14496postinstall_cmds=$lt_postinstall_cmds
14497postuninstall_cmds=$lt_postuninstall_cmds
14498
14499# Commands used to build a loadable module (assumed same as above if empty)
14500module_cmds=$lt_module_cmds_CXX
14501module_expsym_cmds=$lt_module_expsym_cmds_CXX
14502
14503# Commands to strip libraries.
14504old_striplib=$lt_old_striplib
14505striplib=$lt_striplib
14506
14507# Dependencies to place before the objects being linked to create a
14508# shared library.
14509predep_objects=$lt_predep_objects_CXX
14510
14511# Dependencies to place after the objects being linked to create a
14512# shared library.
14513postdep_objects=$lt_postdep_objects_CXX
14514
14515# Dependencies to place before the objects being linked to create a
14516# shared library.
14517predeps=$lt_predeps_CXX
14518
14519# Dependencies to place after the objects being linked to create a
14520# shared library.
14521postdeps=$lt_postdeps_CXX
14522
14523# The library search path used internally by the compiler when linking
14524# a shared library.
14525compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14526
14527# Method to check whether dependent libraries are shared objects.
14528deplibs_check_method=$lt_deplibs_check_method
14529
14530# Command to use when deplibs_check_method == file_magic.
14531file_magic_cmd=$lt_file_magic_cmd
14532
14533# Flag that allows shared libraries with undefined symbols to be built.
14534allow_undefined_flag=$lt_allow_undefined_flag_CXX
14535
14536# Flag that forces no undefined symbols.
14537no_undefined_flag=$lt_no_undefined_flag_CXX
14538
14539# Commands used to finish a libtool library installation in a directory.
14540finish_cmds=$lt_finish_cmds
14541
14542# Same as above, but a single script fragment to be evaled but not shown.
14543finish_eval=$lt_finish_eval
14544
14545# Take the output of nm and produce a listing of raw symbols and C names.
14546global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14547
14548# Transform the output of nm in a proper C declaration
14549global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14550
14551# Transform the output of nm in a C name address pair
14552global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14553
14554# This is the shared library runtime path variable.
14555runpath_var=$runpath_var
14556
14557# This is the shared library path variable.
14558shlibpath_var=$shlibpath_var
14559
14560# Is shlibpath searched before the hard-coded library search path?
14561shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14562
14563# How to hardcode a shared library path into an executable.
14564hardcode_action=$hardcode_action_CXX
14565
14566# Whether we should hardcode library paths into libraries.
14567hardcode_into_libs=$hardcode_into_libs
14568
14569# Flag to hardcode \$libdir into a binary during linking.
14570# This must work even if \$libdir does not exist.
14571hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14572
14573# If ld is used when linking, flag to hardcode \$libdir into
14574# a binary during linking. This must work even if \$libdir does
14575# not exist.
14576hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14577
14578# Whether we need a single -rpath flag with a separated argument.
14579hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14580
14581# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14582# resulting binary.
14583hardcode_direct=$hardcode_direct_CXX
14584
14585# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14586# resulting binary.
14587hardcode_minus_L=$hardcode_minus_L_CXX
14588
14589# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14590# the resulting binary.
14591hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14592
14593# Set to yes if building a shared library automatically hardcodes DIR into the library
14594# and all subsequent libraries and executables linked against it.
14595hardcode_automatic=$hardcode_automatic_CXX
14596
14597# Variables whose values should be saved in libtool wrapper scripts and
14598# restored at relink time.
14599variables_saved_for_relink="$variables_saved_for_relink"
14600
14601# Whether libtool must link a program against all its dependency libraries.
14602link_all_deplibs=$link_all_deplibs_CXX
14603
14604# Compile-time system search path for libraries
14605sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14606
14607# Run-time system search path for libraries
14608sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14609
14610# Fix the shell variable \$srcfile for the compiler.
14611fix_srcfile_path="$fix_srcfile_path_CXX"
14612
14613# Set to yes if exported symbols are required.
14614always_export_symbols=$always_export_symbols_CXX
14615
14616# The commands to list exported symbols.
14617export_symbols_cmds=$lt_export_symbols_cmds_CXX
14618
14619# The commands to extract the exported symbol list from a shared archive.
14620extract_expsyms_cmds=$lt_extract_expsyms_cmds
14621
14622# Symbols that should not be listed in the preloaded symbols.
14623exclude_expsyms=$lt_exclude_expsyms_CXX
14624
14625# Symbols that must always be exported.
14626include_expsyms=$lt_include_expsyms_CXX
14627
14628# ### END LIBTOOL TAG CONFIG: $tagname
14629
14630__EOF__
14631
14632
14633else
14634  # If there is no Makefile yet, we rely on a make rule to execute
14635  # `config.status --recheck' to rerun these tests and create the
14636  # libtool script then.
14637  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14638  if test -f "$ltmain_in"; then
14639    test -f Makefile && make "$ltmain"
14640  fi
14641fi
14642
14643
14644ac_ext=c
14645ac_cpp='$CPP $CPPFLAGS'
14646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648ac_compiler_gnu=$ac_cv_c_compiler_gnu
14649
14650CC=$lt_save_CC
14651LDCXX=$LD
14652LD=$lt_save_LD
14653GCC=$lt_save_GCC
14654with_gnu_ldcxx=$with_gnu_ld
14655with_gnu_ld=$lt_save_with_gnu_ld
14656lt_cv_path_LDCXX=$lt_cv_path_LD
14657lt_cv_path_LD=$lt_save_path_LD
14658lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14659lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14660
14661	else
14662	  tagname=""
14663	fi
14664	;;
14665
14666      F77)
14667	if test -n "$F77" && test "X$F77" != "Xno"; then
14668
14669ac_ext=f
14670ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14671ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14672ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14673
14674
14675archive_cmds_need_lc_F77=no
14676allow_undefined_flag_F77=
14677always_export_symbols_F77=no
14678archive_expsym_cmds_F77=
14679export_dynamic_flag_spec_F77=
14680hardcode_direct_F77=no
14681hardcode_libdir_flag_spec_F77=
14682hardcode_libdir_flag_spec_ld_F77=
14683hardcode_libdir_separator_F77=
14684hardcode_minus_L_F77=no
14685hardcode_automatic_F77=no
14686module_cmds_F77=
14687module_expsym_cmds_F77=
14688link_all_deplibs_F77=unknown
14689old_archive_cmds_F77=$old_archive_cmds
14690no_undefined_flag_F77=
14691whole_archive_flag_spec_F77=
14692enable_shared_with_static_runtimes_F77=no
14693
14694# Source file extension for f77 test sources.
14695ac_ext=f
14696
14697# Object file extension for compiled f77 test sources.
14698objext=o
14699objext_F77=$objext
14700
14701# Code to be used in simple compile tests
14702lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14703
14704# Code to be used in simple link tests
14705lt_simple_link_test_code="      program t\n      end\n"
14706
14707# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14708
14709# If no C compiler was specified, use CC.
14710LTCC=${LTCC-"$CC"}
14711
14712# If no C compiler flags were specified, use CFLAGS.
14713LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14714
14715# Allow CC to be a program name with arguments.
14716compiler=$CC
14717
14718
14719# save warnings/boilerplate of simple test code
14720ac_outfile=conftest.$ac_objext
14721printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14722eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14723_lt_compiler_boilerplate=`cat conftest.err`
14724$rm conftest*
14725
14726ac_outfile=conftest.$ac_objext
14727printf "$lt_simple_link_test_code" >conftest.$ac_ext
14728eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14729_lt_linker_boilerplate=`cat conftest.err`
14730$rm conftest*
14731
14732
14733# Allow CC to be a program name with arguments.
14734lt_save_CC="$CC"
14735CC=${F77-"f77"}
14736compiler=$CC
14737compiler_F77=$CC
14738for cc_temp in $compiler""; do
14739  case $cc_temp in
14740    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14741    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14742    \-*) ;;
14743    *) break;;
14744  esac
14745done
14746cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14747
14748
14749echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14750echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14751echo "$as_me:$LINENO: result: $can_build_shared" >&5
14752echo "${ECHO_T}$can_build_shared" >&6
14753
14754echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14755echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14756test "$can_build_shared" = "no" && enable_shared=no
14757
14758# On AIX, shared libraries and static libraries use the same namespace, and
14759# are all built from PIC.
14760case $host_os in
14761aix3*)
14762  test "$enable_shared" = yes && enable_static=no
14763  if test -n "$RANLIB"; then
14764    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14765    postinstall_cmds='$RANLIB $lib'
14766  fi
14767  ;;
14768aix4* | aix5*)
14769  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14770    test "$enable_shared" = yes && enable_static=no
14771  fi
14772  ;;
14773esac
14774echo "$as_me:$LINENO: result: $enable_shared" >&5
14775echo "${ECHO_T}$enable_shared" >&6
14776
14777echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14778echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14779# Make sure either enable_shared or enable_static is yes.
14780test "$enable_shared" = yes || enable_static=yes
14781echo "$as_me:$LINENO: result: $enable_static" >&5
14782echo "${ECHO_T}$enable_static" >&6
14783
14784GCC_F77="$G77"
14785LD_F77="$LD"
14786
14787lt_prog_compiler_wl_F77=
14788lt_prog_compiler_pic_F77=
14789lt_prog_compiler_static_F77=
14790
14791echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14792echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14793
14794  if test "$GCC" = yes; then
14795    lt_prog_compiler_wl_F77='-Wl,'
14796    lt_prog_compiler_static_F77='-static'
14797
14798    case $host_os in
14799      aix*)
14800      # All AIX code is PIC.
14801      if test "$host_cpu" = ia64; then
14802	# AIX 5 now supports IA64 processor
14803	lt_prog_compiler_static_F77='-Bstatic'
14804      fi
14805      ;;
14806
14807    amigaos*)
14808      # FIXME: we need at least 68020 code to build shared libraries, but
14809      # adding the `-m68020' flag to GCC prevents building anything better,
14810      # like `-m68040'.
14811      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14812      ;;
14813
14814    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14815      # PIC is the default for these OSes.
14816      ;;
14817
14818    mingw* | pw32* | os2*)
14819      # This hack is so that the source file can tell whether it is being
14820      # built for inclusion in a dll (and should export symbols for example).
14821      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14822      ;;
14823
14824    darwin* | rhapsody*)
14825      # PIC is the default on this platform
14826      # Common symbols not allowed in MH_DYLIB files
14827      lt_prog_compiler_pic_F77='-fno-common'
14828      ;;
14829
14830    interix3*)
14831      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14832      # Instead, we relocate shared libraries at runtime.
14833      ;;
14834
14835    msdosdjgpp*)
14836      # Just because we use GCC doesn't mean we suddenly get shared libraries
14837      # on systems that don't support them.
14838      lt_prog_compiler_can_build_shared_F77=no
14839      enable_shared=no
14840      ;;
14841
14842    sysv4*MP*)
14843      if test -d /usr/nec; then
14844	lt_prog_compiler_pic_F77=-Kconform_pic
14845      fi
14846      ;;
14847
14848    hpux*)
14849      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14850      # not for PA HP-UX.
14851      case $host_cpu in
14852      hppa*64*|ia64*)
14853	# +Z the default
14854	;;
14855      *)
14856	lt_prog_compiler_pic_F77='-fPIC'
14857	;;
14858      esac
14859      ;;
14860
14861    *)
14862      lt_prog_compiler_pic_F77='-fPIC'
14863      ;;
14864    esac
14865  else
14866    # PORTME Check for flag to pass linker flags through the system compiler.
14867    case $host_os in
14868    aix*)
14869      lt_prog_compiler_wl_F77='-Wl,'
14870      if test "$host_cpu" = ia64; then
14871	# AIX 5 now supports IA64 processor
14872	lt_prog_compiler_static_F77='-Bstatic'
14873      else
14874	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14875      fi
14876      ;;
14877      darwin*)
14878        # PIC is the default on this platform
14879        # Common symbols not allowed in MH_DYLIB files
14880       case $cc_basename in
14881         xlc*)
14882         lt_prog_compiler_pic_F77='-qnocommon'
14883         lt_prog_compiler_wl_F77='-Wl,'
14884         ;;
14885       esac
14886       ;;
14887
14888    mingw* | pw32* | os2*)
14889      # This hack is so that the source file can tell whether it is being
14890      # built for inclusion in a dll (and should export symbols for example).
14891      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14892      ;;
14893
14894    hpux9* | hpux10* | hpux11*)
14895      lt_prog_compiler_wl_F77='-Wl,'
14896      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14897      # not for PA HP-UX.
14898      case $host_cpu in
14899      hppa*64*|ia64*)
14900	# +Z the default
14901	;;
14902      *)
14903	lt_prog_compiler_pic_F77='+Z'
14904	;;
14905      esac
14906      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14907      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14908      ;;
14909
14910    irix5* | irix6* | nonstopux*)
14911      lt_prog_compiler_wl_F77='-Wl,'
14912      # PIC (with -KPIC) is the default.
14913      lt_prog_compiler_static_F77='-non_shared'
14914      ;;
14915
14916    newsos6)
14917      lt_prog_compiler_pic_F77='-KPIC'
14918      lt_prog_compiler_static_F77='-Bstatic'
14919      ;;
14920
14921    linux*)
14922      case $cc_basename in
14923      icc* | ecc*)
14924	lt_prog_compiler_wl_F77='-Wl,'
14925	lt_prog_compiler_pic_F77='-KPIC'
14926	lt_prog_compiler_static_F77='-static'
14927        ;;
14928      pgcc* | pgf77* | pgf90* | pgf95*)
14929        # Portland Group compilers (*not* the Pentium gcc compiler,
14930	# which looks to be a dead project)
14931	lt_prog_compiler_wl_F77='-Wl,'
14932	lt_prog_compiler_pic_F77='-fpic'
14933	lt_prog_compiler_static_F77='-Bstatic'
14934        ;;
14935      ccc*)
14936        lt_prog_compiler_wl_F77='-Wl,'
14937        # All Alpha code is PIC.
14938        lt_prog_compiler_static_F77='-non_shared'
14939        ;;
14940      esac
14941      ;;
14942
14943    osf3* | osf4* | osf5*)
14944      lt_prog_compiler_wl_F77='-Wl,'
14945      # All OSF/1 code is PIC.
14946      lt_prog_compiler_static_F77='-non_shared'
14947      ;;
14948
14949    solaris*)
14950      lt_prog_compiler_pic_F77='-KPIC'
14951      lt_prog_compiler_static_F77='-Bstatic'
14952      case $cc_basename in
14953      f77* | f90* | f95*)
14954	lt_prog_compiler_wl_F77='-Qoption ld ';;
14955      *)
14956	lt_prog_compiler_wl_F77='-Wl,';;
14957      esac
14958      ;;
14959
14960    sunos4*)
14961      lt_prog_compiler_wl_F77='-Qoption ld '
14962      lt_prog_compiler_pic_F77='-PIC'
14963      lt_prog_compiler_static_F77='-Bstatic'
14964      ;;
14965
14966    sysv4 | sysv4.2uw2* | sysv4.3*)
14967      lt_prog_compiler_wl_F77='-Wl,'
14968      lt_prog_compiler_pic_F77='-KPIC'
14969      lt_prog_compiler_static_F77='-Bstatic'
14970      ;;
14971
14972    sysv4*MP*)
14973      if test -d /usr/nec ;then
14974	lt_prog_compiler_pic_F77='-Kconform_pic'
14975	lt_prog_compiler_static_F77='-Bstatic'
14976      fi
14977      ;;
14978
14979    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14980      lt_prog_compiler_wl_F77='-Wl,'
14981      lt_prog_compiler_pic_F77='-KPIC'
14982      lt_prog_compiler_static_F77='-Bstatic'
14983      ;;
14984
14985    unicos*)
14986      lt_prog_compiler_wl_F77='-Wl,'
14987      lt_prog_compiler_can_build_shared_F77=no
14988      ;;
14989
14990    uts4*)
14991      lt_prog_compiler_pic_F77='-pic'
14992      lt_prog_compiler_static_F77='-Bstatic'
14993      ;;
14994
14995    *)
14996      lt_prog_compiler_can_build_shared_F77=no
14997      ;;
14998    esac
14999  fi
15000
15001echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15002echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15003
15004#
15005# Check to make sure the PIC flag actually works.
15006#
15007if test -n "$lt_prog_compiler_pic_F77"; then
15008
15009echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15010echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15011if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15012  echo $ECHO_N "(cached) $ECHO_C" >&6
15013else
15014  lt_prog_compiler_pic_works_F77=no
15015  ac_outfile=conftest.$ac_objext
15016   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15017   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15018   # Insert the option either (1) after the last *FLAGS variable, or
15019   # (2) before a word containing "conftest.", or (3) at the end.
15020   # Note that $ac_compile itself does not contain backslashes and begins
15021   # with a dollar sign (not a hyphen), so the echo should work correctly.
15022   # The option is referenced via a variable to avoid confusing sed.
15023   lt_compile=`echo "$ac_compile" | $SED \
15024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15026   -e 's:$: $lt_compiler_flag:'`
15027   (eval echo "\"\$as_me:15027: $lt_compile\"" >&5)
15028   (eval "$lt_compile" 2>conftest.err)
15029   ac_status=$?
15030   cat conftest.err >&5
15031   echo "$as_me:15031: \$? = $ac_status" >&5
15032   if (exit $ac_status) && test -s "$ac_outfile"; then
15033     # The compiler can only warn and ignore the option if not recognized
15034     # So say no if there are warnings other than the usual output.
15035     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15036     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15037     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15038       lt_prog_compiler_pic_works_F77=yes
15039     fi
15040   fi
15041   $rm conftest*
15042
15043fi
15044echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15045echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15046
15047if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15048    case $lt_prog_compiler_pic_F77 in
15049     "" | " "*) ;;
15050     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15051     esac
15052else
15053    lt_prog_compiler_pic_F77=
15054     lt_prog_compiler_can_build_shared_F77=no
15055fi
15056
15057fi
15058case $host_os in
15059  # For platforms which do not support PIC, -DPIC is meaningless:
15060  *djgpp*)
15061    lt_prog_compiler_pic_F77=
15062    ;;
15063  *)
15064    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15065    ;;
15066esac
15067
15068#
15069# Check to make sure the static flag actually works.
15070#
15071wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15072echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15073echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15074if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15075  echo $ECHO_N "(cached) $ECHO_C" >&6
15076else
15077  lt_prog_compiler_static_works_F77=no
15078   save_LDFLAGS="$LDFLAGS"
15079   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15080   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15081   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15082     # The linker can only warn and ignore the option if not recognized
15083     # So say no if there are warnings
15084     if test -s conftest.err; then
15085       # Append any errors to the config.log.
15086       cat conftest.err 1>&5
15087       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15088       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15089       if diff conftest.exp conftest.er2 >/dev/null; then
15090         lt_prog_compiler_static_works_F77=yes
15091       fi
15092     else
15093       lt_prog_compiler_static_works_F77=yes
15094     fi
15095   fi
15096   $rm conftest*
15097   LDFLAGS="$save_LDFLAGS"
15098
15099fi
15100echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15101echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15102
15103if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15104    :
15105else
15106    lt_prog_compiler_static_F77=
15107fi
15108
15109
15110echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15111echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15112if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15113  echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115  lt_cv_prog_compiler_c_o_F77=no
15116   $rm -r conftest 2>/dev/null
15117   mkdir conftest
15118   cd conftest
15119   mkdir out
15120   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15121
15122   lt_compiler_flag="-o out/conftest2.$ac_objext"
15123   # Insert the option either (1) after the last *FLAGS variable, or
15124   # (2) before a word containing "conftest.", or (3) at the end.
15125   # Note that $ac_compile itself does not contain backslashes and begins
15126   # with a dollar sign (not a hyphen), so the echo should work correctly.
15127   lt_compile=`echo "$ac_compile" | $SED \
15128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130   -e 's:$: $lt_compiler_flag:'`
15131   (eval echo "\"\$as_me:15131: $lt_compile\"" >&5)
15132   (eval "$lt_compile" 2>out/conftest.err)
15133   ac_status=$?
15134   cat out/conftest.err >&5
15135   echo "$as_me:15135: \$? = $ac_status" >&5
15136   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15137   then
15138     # The compiler can only warn and ignore the option if not recognized
15139     # So say no if there are warnings
15140     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15141     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15142     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15143       lt_cv_prog_compiler_c_o_F77=yes
15144     fi
15145   fi
15146   chmod u+w . 2>&5
15147   $rm conftest*
15148   # SGI C++ compiler will create directory out/ii_files/ for
15149   # template instantiation
15150   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15151   $rm out/* && rmdir out
15152   cd ..
15153   rmdir conftest
15154   $rm conftest*
15155
15156fi
15157echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15158echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15159
15160
15161hard_links="nottested"
15162if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15163  # do not overwrite the value of need_locks provided by the user
15164  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15165echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15166  hard_links=yes
15167  $rm conftest*
15168  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15169  touch conftest.a
15170  ln conftest.a conftest.b 2>&5 || hard_links=no
15171  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15172  echo "$as_me:$LINENO: result: $hard_links" >&5
15173echo "${ECHO_T}$hard_links" >&6
15174  if test "$hard_links" = no; then
15175    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15176echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15177    need_locks=warn
15178  fi
15179else
15180  need_locks=no
15181fi
15182
15183echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15184echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15185
15186  runpath_var=
15187  allow_undefined_flag_F77=
15188  enable_shared_with_static_runtimes_F77=no
15189  archive_cmds_F77=
15190  archive_expsym_cmds_F77=
15191  old_archive_From_new_cmds_F77=
15192  old_archive_from_expsyms_cmds_F77=
15193  export_dynamic_flag_spec_F77=
15194  whole_archive_flag_spec_F77=
15195  thread_safe_flag_spec_F77=
15196  hardcode_libdir_flag_spec_F77=
15197  hardcode_libdir_flag_spec_ld_F77=
15198  hardcode_libdir_separator_F77=
15199  hardcode_direct_F77=no
15200  hardcode_minus_L_F77=no
15201  hardcode_shlibpath_var_F77=unsupported
15202  link_all_deplibs_F77=unknown
15203  hardcode_automatic_F77=no
15204  module_cmds_F77=
15205  module_expsym_cmds_F77=
15206  always_export_symbols_F77=no
15207  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15208  # include_expsyms should be a list of space-separated symbols to be *always*
15209  # included in the symbol list
15210  include_expsyms_F77=
15211  # exclude_expsyms can be an extended regexp of symbols to exclude
15212  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15213  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15214  # as well as any symbol that contains `d'.
15215  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15216  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15217  # platforms (ab)use it in PIC code, but their linkers get confused if
15218  # the symbol is explicitly referenced.  Since portable code cannot
15219  # rely on this symbol name, it's probably fine to never include it in
15220  # preloaded symbol tables.
15221  extract_expsyms_cmds=
15222  # Just being paranoid about ensuring that cc_basename is set.
15223  for cc_temp in $compiler""; do
15224  case $cc_temp in
15225    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15226    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15227    \-*) ;;
15228    *) break;;
15229  esac
15230done
15231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15232
15233  case $host_os in
15234  cygwin* | mingw* | pw32*)
15235    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15236    # When not using gcc, we currently assume that we are using
15237    # Microsoft Visual C++.
15238    if test "$GCC" != yes; then
15239      with_gnu_ld=no
15240    fi
15241    ;;
15242  interix*)
15243    # we just hope/assume this is gcc and not c89 (= MSVC++)
15244    with_gnu_ld=yes
15245    ;;
15246  openbsd*)
15247    with_gnu_ld=no
15248    ;;
15249  esac
15250
15251  ld_shlibs_F77=yes
15252  if test "$with_gnu_ld" = yes; then
15253    # If archive_cmds runs LD, not CC, wlarc should be empty
15254    wlarc='${wl}'
15255
15256    # Set some defaults for GNU ld with shared library support. These
15257    # are reset later if shared libraries are not supported. Putting them
15258    # here allows them to be overridden if necessary.
15259    runpath_var=LD_RUN_PATH
15260    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15261    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15262    # ancient GNU ld didn't support --whole-archive et. al.
15263    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15264	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15265      else
15266  	whole_archive_flag_spec_F77=
15267    fi
15268    supports_anon_versioning=no
15269    case `$LD -v 2>/dev/null` in
15270      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15271      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15272      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15273      *\ 2.11.*) ;; # other 2.11 versions
15274      *) supports_anon_versioning=yes ;;
15275    esac
15276
15277    # See if GNU ld supports shared libraries.
15278    case $host_os in
15279    aix3* | aix4* | aix5*)
15280      # On AIX/PPC, the GNU linker is very broken
15281      if test "$host_cpu" != ia64; then
15282	ld_shlibs_F77=no
15283	cat <<EOF 1>&2
15284
15285*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15286*** to be unable to reliably create shared libraries on AIX.
15287*** Therefore, libtool is disabling shared libraries support.  If you
15288*** really care for shared libraries, you may want to modify your PATH
15289*** so that a non-GNU linker is found, and then restart.
15290
15291EOF
15292      fi
15293      ;;
15294
15295    amigaos*)
15296      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)'
15297      hardcode_libdir_flag_spec_F77='-L$libdir'
15298      hardcode_minus_L_F77=yes
15299
15300      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15301      # that the semantics of dynamic libraries on AmigaOS, at least up
15302      # to version 4, is to share data among multiple programs linked
15303      # with the same dynamic library.  Since this doesn't match the
15304      # behavior of shared libraries on other platforms, we can't use
15305      # them.
15306      ld_shlibs_F77=no
15307      ;;
15308
15309    beos*)
15310      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15311	allow_undefined_flag_F77=unsupported
15312	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15313	# support --undefined.  This deserves some investigation.  FIXME
15314	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315      else
15316	ld_shlibs_F77=no
15317      fi
15318      ;;
15319
15320    cygwin* | mingw* | pw32*)
15321      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15322      # as there is no search path for DLLs.
15323      hardcode_libdir_flag_spec_F77='-L$libdir'
15324      allow_undefined_flag_F77=unsupported
15325      always_export_symbols_F77=no
15326      enable_shared_with_static_runtimes_F77=yes
15327      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15328
15329      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15330        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15331	# If the export-symbols file already is a .def file (1st line
15332	# is EXPORTS), use it as is; otherwise, prepend...
15333	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15334	  cp $export_symbols $output_objdir/$soname.def;
15335	else
15336	  echo EXPORTS > $output_objdir/$soname.def;
15337	  cat $export_symbols >> $output_objdir/$soname.def;
15338	fi~
15339	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15340      else
15341	ld_shlibs_F77=no
15342      fi
15343      ;;
15344
15345    interix3*)
15346      hardcode_direct_F77=no
15347      hardcode_shlibpath_var_F77=no
15348      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15349      export_dynamic_flag_spec_F77='${wl}-E'
15350      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15351      # Instead, shared libraries are loaded at an image base (0x10000000 by
15352      # default) and relocated if they conflict, which is a slow very memory
15353      # consuming and fragmenting process.  To avoid this, we pick a random,
15354      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15355      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15356      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'
15357      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'
15358      ;;
15359
15360    linux*)
15361      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15362	tmp_addflag=
15363	case $cc_basename,$host_cpu in
15364	pgcc*)				# Portland Group C compiler
15365	  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'
15366	  tmp_addflag=' $pic_flag'
15367	  ;;
15368	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15369	  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'
15370	  tmp_addflag=' $pic_flag -Mnomain' ;;
15371	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15372	  tmp_addflag=' -i_dynamic' ;;
15373	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15374	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15375	ifc* | ifort*)			# Intel Fortran compiler
15376	  tmp_addflag=' -nofor_main' ;;
15377	esac
15378	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15379
15380	if test $supports_anon_versioning = yes; then
15381	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15382  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15383  $echo "local: *; };" >> $output_objdir/$libname.ver~
15384	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15385	fi
15386      else
15387	ld_shlibs_F77=no
15388      fi
15389      ;;
15390
15391    netbsd*)
15392      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15393	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15394	wlarc=
15395      else
15396	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15398      fi
15399      ;;
15400
15401    solaris*)
15402      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15403	ld_shlibs_F77=no
15404	cat <<EOF 1>&2
15405
15406*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15407*** create shared libraries on Solaris systems.  Therefore, libtool
15408*** is disabling shared libraries support.  We urge you to upgrade GNU
15409*** binutils to release 2.9.1 or newer.  Another option is to modify
15410*** your PATH or compiler configuration so that the native linker is
15411*** used, and then restart.
15412
15413EOF
15414      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15415	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15416	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15417      else
15418	ld_shlibs_F77=no
15419      fi
15420      ;;
15421
15422    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15423      case `$LD -v 2>&1` in
15424        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15425	ld_shlibs_F77=no
15426	cat <<_LT_EOF 1>&2
15427
15428*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15429*** reliably create shared libraries on SCO systems.  Therefore, libtool
15430*** is disabling shared libraries support.  We urge you to upgrade GNU
15431*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15432*** your PATH or compiler configuration so that the native linker is
15433*** used, and then restart.
15434
15435_LT_EOF
15436	;;
15437	*)
15438	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15439	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15440	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15441	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15442	  else
15443	    ld_shlibs_F77=no
15444	  fi
15445	;;
15446      esac
15447      ;;
15448
15449    sunos4*)
15450      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15451      wlarc=
15452      hardcode_direct_F77=yes
15453      hardcode_shlibpath_var_F77=no
15454      ;;
15455
15456    *)
15457      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15458	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15459	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15460      else
15461	ld_shlibs_F77=no
15462      fi
15463      ;;
15464    esac
15465
15466    if test "$ld_shlibs_F77" = no; then
15467      runpath_var=
15468      hardcode_libdir_flag_spec_F77=
15469      export_dynamic_flag_spec_F77=
15470      whole_archive_flag_spec_F77=
15471    fi
15472  else
15473    # PORTME fill in a description of your system's linker (not GNU ld)
15474    case $host_os in
15475    aix3*)
15476      allow_undefined_flag_F77=unsupported
15477      always_export_symbols_F77=yes
15478      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'
15479      # Note: this linker hardcodes the directories in LIBPATH if there
15480      # are no directories specified by -L.
15481      hardcode_minus_L_F77=yes
15482      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15483	# Neither direct hardcoding nor static linking is supported with a
15484	# broken collect2.
15485	hardcode_direct_F77=unsupported
15486      fi
15487      ;;
15488
15489    aix4* | aix5*)
15490      if test "$host_cpu" = ia64; then
15491	# On IA64, the linker does run time linking by default, so we don't
15492	# have to do anything special.
15493	aix_use_runtimelinking=no
15494	exp_sym_flag='-Bexport'
15495	no_entry_flag=""
15496      else
15497	# If we're using GNU nm, then we don't want the "-C" option.
15498	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15499	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15500	  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'
15501	else
15502	  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'
15503	fi
15504	aix_use_runtimelinking=no
15505
15506	# Test if we are trying to use run time linking or normal
15507	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15508	# need to do runtime linking.
15509	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15510	  for ld_flag in $LDFLAGS; do
15511  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15512  	    aix_use_runtimelinking=yes
15513  	    break
15514  	  fi
15515	  done
15516	  ;;
15517	esac
15518
15519	exp_sym_flag='-bexport'
15520	no_entry_flag='-bnoentry'
15521      fi
15522
15523      # When large executables or shared objects are built, AIX ld can
15524      # have problems creating the table of contents.  If linking a library
15525      # or program results in "error TOC overflow" add -mminimal-toc to
15526      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15527      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15528
15529      archive_cmds_F77=''
15530      hardcode_direct_F77=yes
15531      hardcode_libdir_separator_F77=':'
15532      link_all_deplibs_F77=yes
15533
15534      if test "$GCC" = yes; then
15535	case $host_os in aix4.[012]|aix4.[012].*)
15536	# We only want to do this on AIX 4.2 and lower, the check
15537	# below for broken collect2 doesn't work under 4.3+
15538	  collect2name=`${CC} -print-prog-name=collect2`
15539	  if test -f "$collect2name" && \
15540  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15541	  then
15542  	  # We have reworked collect2
15543  	  hardcode_direct_F77=yes
15544	  else
15545  	  # We have old collect2
15546  	  hardcode_direct_F77=unsupported
15547  	  # It fails to find uninstalled libraries when the uninstalled
15548  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15549  	  # to unsupported forces relinking
15550  	  hardcode_minus_L_F77=yes
15551  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15552  	  hardcode_libdir_separator_F77=
15553	  fi
15554	  ;;
15555	esac
15556	shared_flag='-shared'
15557	if test "$aix_use_runtimelinking" = yes; then
15558	  shared_flag="$shared_flag "'${wl}-G'
15559	fi
15560      else
15561	# not using gcc
15562	if test "$host_cpu" = ia64; then
15563  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15564  	# chokes on -Wl,-G. The following line is correct:
15565	  shared_flag='-G'
15566	else
15567	  if test "$aix_use_runtimelinking" = yes; then
15568	    shared_flag='${wl}-G'
15569	  else
15570	    shared_flag='${wl}-bM:SRE'
15571	  fi
15572	fi
15573      fi
15574
15575      # It seems that -bexpall does not export symbols beginning with
15576      # underscore (_), so it is better to generate a list of symbols to export.
15577      always_export_symbols_F77=yes
15578      if test "$aix_use_runtimelinking" = yes; then
15579	# Warning - without using the other runtime loading flags (-brtl),
15580	# -berok will link without error, but may produce a broken library.
15581	allow_undefined_flag_F77='-berok'
15582       # Determine the default libpath from the value encoded in an empty executable.
15583       cat >conftest.$ac_ext <<_ACEOF
15584      program main
15585
15586      end
15587_ACEOF
15588rm -f conftest.$ac_objext conftest$ac_exeext
15589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590  (eval $ac_link) 2>conftest.er1
15591  ac_status=$?
15592  grep -v '^ *+' conftest.er1 >conftest.err
15593  rm -f conftest.er1
15594  cat conftest.err >&5
15595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596  (exit $ac_status); } &&
15597	 { ac_try='test -z "$ac_f77_werror_flag"
15598			 || test ! -s conftest.err'
15599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600  (eval $ac_try) 2>&5
15601  ac_status=$?
15602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603  (exit $ac_status); }; } &&
15604	 { ac_try='test -s conftest$ac_exeext'
15605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606  (eval $ac_try) 2>&5
15607  ac_status=$?
15608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609  (exit $ac_status); }; }; then
15610
15611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15612}'`
15613# Check for a 64-bit object if we didn't find anything.
15614if 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; }
15615}'`; fi
15616else
15617  echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
15620fi
15621rm -f conftest.err conftest.$ac_objext \
15622      conftest$ac_exeext conftest.$ac_ext
15623if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15624
15625       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15626	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"
15627       else
15628	if test "$host_cpu" = ia64; then
15629	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15630	  allow_undefined_flag_F77="-z nodefs"
15631	  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"
15632	else
15633	 # Determine the default libpath from the value encoded in an empty executable.
15634	 cat >conftest.$ac_ext <<_ACEOF
15635      program main
15636
15637      end
15638_ACEOF
15639rm -f conftest.$ac_objext conftest$ac_exeext
15640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15641  (eval $ac_link) 2>conftest.er1
15642  ac_status=$?
15643  grep -v '^ *+' conftest.er1 >conftest.err
15644  rm -f conftest.er1
15645  cat conftest.err >&5
15646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647  (exit $ac_status); } &&
15648	 { ac_try='test -z "$ac_f77_werror_flag"
15649			 || test ! -s conftest.err'
15650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651  (eval $ac_try) 2>&5
15652  ac_status=$?
15653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654  (exit $ac_status); }; } &&
15655	 { ac_try='test -s conftest$ac_exeext'
15656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657  (eval $ac_try) 2>&5
15658  ac_status=$?
15659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660  (exit $ac_status); }; }; then
15661
15662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15663}'`
15664# Check for a 64-bit object if we didn't find anything.
15665if 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; }
15666}'`; fi
15667else
15668  echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671fi
15672rm -f conftest.err conftest.$ac_objext \
15673      conftest$ac_exeext conftest.$ac_ext
15674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15675
15676	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15677	  # Warning - without using the other run time loading flags,
15678	  # -berok will link without error, but may produce a broken library.
15679	  no_undefined_flag_F77=' ${wl}-bernotok'
15680	  allow_undefined_flag_F77=' ${wl}-berok'
15681	  # Exported symbols can be pulled into shared objects from archives
15682	  whole_archive_flag_spec_F77='$convenience'
15683	  archive_cmds_need_lc_F77=yes
15684	  # This is similar to how AIX traditionally builds its shared libraries.
15685	  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'
15686	fi
15687      fi
15688      ;;
15689
15690    amigaos*)
15691      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)'
15692      hardcode_libdir_flag_spec_F77='-L$libdir'
15693      hardcode_minus_L_F77=yes
15694      # see comment about different semantics on the GNU ld section
15695      ld_shlibs_F77=no
15696      ;;
15697
15698    bsdi[45]*)
15699      export_dynamic_flag_spec_F77=-rdynamic
15700      ;;
15701
15702    cygwin* | mingw* | pw32*)
15703      # When not using gcc, we currently assume that we are using
15704      # Microsoft Visual C++.
15705      # hardcode_libdir_flag_spec is actually meaningless, as there is
15706      # no search path for DLLs.
15707      hardcode_libdir_flag_spec_F77=' '
15708      allow_undefined_flag_F77=unsupported
15709      # Tell ltmain to make .lib files, not .a files.
15710      libext=lib
15711      # Tell ltmain to make .dll files, not .so files.
15712      shrext_cmds=".dll"
15713      # FIXME: Setting linknames here is a bad hack.
15714      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15715      # The linker will automatically build a .lib file if we build a DLL.
15716      old_archive_From_new_cmds_F77='true'
15717      # FIXME: Should let the user specify the lib program.
15718      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15719      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15720      enable_shared_with_static_runtimes_F77=yes
15721      ;;
15722
15723    darwin* | rhapsody*)
15724      case $host_os in
15725        rhapsody* | darwin1.[012])
15726         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15727         ;;
15728       *) # Darwin 1.3 on
15729         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15730           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15731         else
15732           case ${MACOSX_DEPLOYMENT_TARGET} in
15733             10.[012])
15734               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15735               ;;
15736             10.*)
15737               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15738               ;;
15739           esac
15740         fi
15741         ;;
15742      esac
15743      archive_cmds_need_lc_F77=no
15744      hardcode_direct_F77=no
15745      hardcode_automatic_F77=yes
15746      hardcode_shlibpath_var_F77=unsupported
15747      whole_archive_flag_spec_F77=''
15748      link_all_deplibs_F77=yes
15749    if test "$GCC" = yes ; then
15750    	output_verbose_link_cmd='echo'
15751        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15752      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15753      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15754      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}'
15755      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}'
15756    else
15757      case $cc_basename in
15758        xlc*)
15759         output_verbose_link_cmd='echo'
15760         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15761         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15762          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15763         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}'
15764          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}'
15765          ;;
15766       *)
15767         ld_shlibs_F77=no
15768          ;;
15769      esac
15770    fi
15771      ;;
15772
15773    dgux*)
15774      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775      hardcode_libdir_flag_spec_F77='-L$libdir'
15776      hardcode_shlibpath_var_F77=no
15777      ;;
15778
15779    freebsd1*)
15780      ld_shlibs_F77=no
15781      ;;
15782
15783    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15784    # support.  Future versions do this automatically, but an explicit c++rt0.o
15785    # does not break anything, and helps significantly (at the cost of a little
15786    # extra space).
15787    freebsd2.2*)
15788      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15789      hardcode_libdir_flag_spec_F77='-R$libdir'
15790      hardcode_direct_F77=yes
15791      hardcode_shlibpath_var_F77=no
15792      ;;
15793
15794    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15795    freebsd2*)
15796      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15797      hardcode_direct_F77=yes
15798      hardcode_minus_L_F77=yes
15799      hardcode_shlibpath_var_F77=no
15800      ;;
15801
15802    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15803    freebsd* | kfreebsd*-gnu | dragonfly*)
15804      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15805      hardcode_libdir_flag_spec_F77='-R$libdir'
15806      hardcode_direct_F77=yes
15807      hardcode_shlibpath_var_F77=no
15808      ;;
15809
15810    hpux9*)
15811      if test "$GCC" = yes; then
15812	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'
15813      else
15814	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'
15815      fi
15816      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15817      hardcode_libdir_separator_F77=:
15818      hardcode_direct_F77=yes
15819
15820      # hardcode_minus_L: Not really in the search PATH,
15821      # but as the default location of the library.
15822      hardcode_minus_L_F77=yes
15823      export_dynamic_flag_spec_F77='${wl}-E'
15824      ;;
15825
15826    hpux10*)
15827      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15828	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15829      else
15830	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15831      fi
15832      if test "$with_gnu_ld" = no; then
15833	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15834	hardcode_libdir_separator_F77=:
15835
15836	hardcode_direct_F77=yes
15837	export_dynamic_flag_spec_F77='${wl}-E'
15838
15839	# hardcode_minus_L: Not really in the search PATH,
15840	# but as the default location of the library.
15841	hardcode_minus_L_F77=yes
15842      fi
15843      ;;
15844
15845    hpux11*)
15846      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15847	case $host_cpu in
15848	hppa*64*)
15849	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15850	  ;;
15851	ia64*)
15852	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15853	  ;;
15854	*)
15855	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15856	  ;;
15857	esac
15858      else
15859	case $host_cpu in
15860	hppa*64*)
15861	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15862	  ;;
15863	ia64*)
15864	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15865	  ;;
15866	*)
15867	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15868	  ;;
15869	esac
15870      fi
15871      if test "$with_gnu_ld" = no; then
15872	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15873	hardcode_libdir_separator_F77=:
15874
15875	case $host_cpu in
15876	hppa*64*|ia64*)
15877	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15878	  hardcode_direct_F77=no
15879	  hardcode_shlibpath_var_F77=no
15880	  ;;
15881	*)
15882	  hardcode_direct_F77=yes
15883	  export_dynamic_flag_spec_F77='${wl}-E'
15884
15885	  # hardcode_minus_L: Not really in the search PATH,
15886	  # but as the default location of the library.
15887	  hardcode_minus_L_F77=yes
15888	  ;;
15889	esac
15890      fi
15891      ;;
15892
15893    irix5* | irix6* | nonstopux*)
15894      if test "$GCC" = yes; then
15895	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'
15896      else
15897	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'
15898	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15899      fi
15900      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15901      hardcode_libdir_separator_F77=:
15902      link_all_deplibs_F77=yes
15903      ;;
15904
15905    netbsd*)
15906      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15907	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15908      else
15909	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15910      fi
15911      hardcode_libdir_flag_spec_F77='-R$libdir'
15912      hardcode_direct_F77=yes
15913      hardcode_shlibpath_var_F77=no
15914      ;;
15915
15916    newsos6)
15917      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918      hardcode_direct_F77=yes
15919      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15920      hardcode_libdir_separator_F77=:
15921      hardcode_shlibpath_var_F77=no
15922      ;;
15923
15924    openbsd*)
15925      hardcode_direct_F77=yes
15926      hardcode_shlibpath_var_F77=no
15927      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15928	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15929	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15930	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15931	export_dynamic_flag_spec_F77='${wl}-E'
15932      else
15933       case $host_os in
15934	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15935	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15936	   hardcode_libdir_flag_spec_F77='-R$libdir'
15937	   ;;
15938	 *)
15939	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15940	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15941	   ;;
15942       esac
15943      fi
15944      ;;
15945
15946    os2*)
15947      hardcode_libdir_flag_spec_F77='-L$libdir'
15948      hardcode_minus_L_F77=yes
15949      allow_undefined_flag_F77=unsupported
15950      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'
15951      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15952      ;;
15953
15954    osf3*)
15955      if test "$GCC" = yes; then
15956	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15957	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'
15958      else
15959	allow_undefined_flag_F77=' -expect_unresolved \*'
15960	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'
15961      fi
15962      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15963      hardcode_libdir_separator_F77=:
15964      ;;
15965
15966    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15967      if test "$GCC" = yes; then
15968	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15969	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'
15970	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15971      else
15972	allow_undefined_flag_F77=' -expect_unresolved \*'
15973	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'
15974	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~
15975	$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'
15976
15977	# Both c and cxx compiler support -rpath directly
15978	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15979      fi
15980      hardcode_libdir_separator_F77=:
15981      ;;
15982
15983    solaris*)
15984      no_undefined_flag_F77=' -z text'
15985      if test "$GCC" = yes; then
15986	wlarc='${wl}'
15987	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15988	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15989	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15990      else
15991	wlarc=''
15992	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15994  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15995      fi
15996      hardcode_libdir_flag_spec_F77='-R$libdir'
15997      hardcode_shlibpath_var_F77=no
15998      case $host_os in
15999      solaris2.[0-5] | solaris2.[0-5].*) ;;
16000      *)
16001 	# The compiler driver will combine linker options so we
16002 	# cannot just pass the convience library names through
16003 	# without $wl, iff we do not link with $LD.
16004 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16005 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16006 	case $wlarc in
16007 	'')
16008 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16009 	*)
16010 	  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' ;;
16011 	esac ;;
16012      esac
16013      link_all_deplibs_F77=yes
16014      ;;
16015
16016    sunos4*)
16017      if test "x$host_vendor" = xsequent; then
16018	# Use $CC to link under sequent, because it throws in some extra .o
16019	# files that make .init and .fini sections work.
16020	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16021      else
16022	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16023      fi
16024      hardcode_libdir_flag_spec_F77='-L$libdir'
16025      hardcode_direct_F77=yes
16026      hardcode_minus_L_F77=yes
16027      hardcode_shlibpath_var_F77=no
16028      ;;
16029
16030    sysv4)
16031      case $host_vendor in
16032	sni)
16033	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16034	  hardcode_direct_F77=yes # is this really true???
16035	;;
16036	siemens)
16037	  ## LD is ld it makes a PLAMLIB
16038	  ## CC just makes a GrossModule.
16039	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16040	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16041	  hardcode_direct_F77=no
16042        ;;
16043	motorola)
16044	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16046	;;
16047      esac
16048      runpath_var='LD_RUN_PATH'
16049      hardcode_shlibpath_var_F77=no
16050      ;;
16051
16052    sysv4.3*)
16053      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054      hardcode_shlibpath_var_F77=no
16055      export_dynamic_flag_spec_F77='-Bexport'
16056      ;;
16057
16058    sysv4*MP*)
16059      if test -d /usr/nec; then
16060	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061	hardcode_shlibpath_var_F77=no
16062	runpath_var=LD_RUN_PATH
16063	hardcode_runpath_var=yes
16064	ld_shlibs_F77=yes
16065      fi
16066      ;;
16067
16068    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16069      no_undefined_flag_F77='${wl}-z,text'
16070      archive_cmds_need_lc_F77=no
16071      hardcode_shlibpath_var_F77=no
16072      runpath_var='LD_RUN_PATH'
16073
16074      if test "$GCC" = yes; then
16075	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16076	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16077      else
16078	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16079	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16080      fi
16081      ;;
16082
16083    sysv5* | sco3.2v5* | sco5v6*)
16084      # Note: We can NOT use -z defs as we might desire, because we do not
16085      # link with -lc, and that would cause any symbols used from libc to
16086      # always be unresolved, which means just about no library would
16087      # ever link correctly.  If we're not using GNU ld we use -z text
16088      # though, which does catch some bad symbols but isn't as heavy-handed
16089      # as -z defs.
16090      no_undefined_flag_F77='${wl}-z,text'
16091      allow_undefined_flag_F77='${wl}-z,nodefs'
16092      archive_cmds_need_lc_F77=no
16093      hardcode_shlibpath_var_F77=no
16094      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16095      hardcode_libdir_separator_F77=':'
16096      link_all_deplibs_F77=yes
16097      export_dynamic_flag_spec_F77='${wl}-Bexport'
16098      runpath_var='LD_RUN_PATH'
16099
16100      if test "$GCC" = yes; then
16101	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16102	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16103      else
16104	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16105	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16106      fi
16107      ;;
16108
16109    uts4*)
16110      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111      hardcode_libdir_flag_spec_F77='-L$libdir'
16112      hardcode_shlibpath_var_F77=no
16113      ;;
16114
16115    *)
16116      ld_shlibs_F77=no
16117      ;;
16118    esac
16119  fi
16120
16121echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16122echo "${ECHO_T}$ld_shlibs_F77" >&6
16123test "$ld_shlibs_F77" = no && can_build_shared=no
16124
16125#
16126# Do we need to explicitly link libc?
16127#
16128case "x$archive_cmds_need_lc_F77" in
16129x|xyes)
16130  # Assume -lc should be added
16131  archive_cmds_need_lc_F77=yes
16132
16133  if test "$enable_shared" = yes && test "$GCC" = yes; then
16134    case $archive_cmds_F77 in
16135    *'~'*)
16136      # FIXME: we may have to deal with multi-command sequences.
16137      ;;
16138    '$CC '*)
16139      # Test whether the compiler implicitly links with -lc since on some
16140      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16141      # to ld, don't add -lc before -lgcc.
16142      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16143echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16144      $rm conftest*
16145      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16146
16147      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148  (eval $ac_compile) 2>&5
16149  ac_status=$?
16150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151  (exit $ac_status); } 2>conftest.err; then
16152        soname=conftest
16153        lib=conftest
16154        libobjs=conftest.$ac_objext
16155        deplibs=
16156        wl=$lt_prog_compiler_wl_F77
16157	pic_flag=$lt_prog_compiler_pic_F77
16158        compiler_flags=-v
16159        linker_flags=-v
16160        verstring=
16161        output_objdir=.
16162        libname=conftest
16163        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16164        allow_undefined_flag_F77=
16165        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16166  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16167  ac_status=$?
16168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169  (exit $ac_status); }
16170        then
16171	  archive_cmds_need_lc_F77=no
16172        else
16173	  archive_cmds_need_lc_F77=yes
16174        fi
16175        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16176      else
16177        cat conftest.err 1>&5
16178      fi
16179      $rm conftest*
16180      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16181echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16182      ;;
16183    esac
16184  fi
16185  ;;
16186esac
16187
16188echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16189echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16190library_names_spec=
16191libname_spec='lib$name'
16192soname_spec=
16193shrext_cmds=".so"
16194postinstall_cmds=
16195postuninstall_cmds=
16196finish_cmds=
16197finish_eval=
16198shlibpath_var=
16199shlibpath_overrides_runpath=unknown
16200version_type=none
16201dynamic_linker="$host_os ld.so"
16202sys_lib_dlsearch_path_spec="/lib /usr/lib"
16203if test "$GCC" = yes; then
16204  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16205  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16206    # if the path contains ";" then we assume it to be the separator
16207    # otherwise default to the standard path separator (i.e. ":") - it is
16208    # assumed that no part of a normal pathname contains ";" but that should
16209    # okay in the real world where ";" in dirpaths is itself problematic.
16210    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16211  else
16212    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16213  fi
16214else
16215  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16216fi
16217need_lib_prefix=unknown
16218hardcode_into_libs=no
16219
16220# when you set need_version to no, make sure it does not cause -set_version
16221# flags to be left without arguments
16222need_version=unknown
16223
16224case $host_os in
16225aix3*)
16226  version_type=linux
16227  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16228  shlibpath_var=LIBPATH
16229
16230  # AIX 3 has no versioning support, so we append a major version to the name.
16231  soname_spec='${libname}${release}${shared_ext}$major'
16232  ;;
16233
16234aix4* | aix5*)
16235  version_type=linux
16236  need_lib_prefix=no
16237  need_version=no
16238  hardcode_into_libs=yes
16239  if test "$host_cpu" = ia64; then
16240    # AIX 5 supports IA64
16241    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16242    shlibpath_var=LD_LIBRARY_PATH
16243  else
16244    # With GCC up to 2.95.x, collect2 would create an import file
16245    # for dependence libraries.  The import file would start with
16246    # the line `#! .'.  This would cause the generated library to
16247    # depend on `.', always an invalid library.  This was fixed in
16248    # development snapshots of GCC prior to 3.0.
16249    case $host_os in
16250      aix4 | aix4.[01] | aix4.[01].*)
16251      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16252	   echo ' yes '
16253	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16254	:
16255      else
16256	can_build_shared=no
16257      fi
16258      ;;
16259    esac
16260    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16261    # soname into executable. Probably we can add versioning support to
16262    # collect2, so additional links can be useful in future.
16263    if test "$aix_use_runtimelinking" = yes; then
16264      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16265      # instead of lib<name>.a to let people know that these are not
16266      # typical AIX shared libraries.
16267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268    else
16269      # We preserve .a as extension for shared libraries through AIX4.2
16270      # and later when we are not doing run time linking.
16271      library_names_spec='${libname}${release}.a $libname.a'
16272      soname_spec='${libname}${release}${shared_ext}$major'
16273    fi
16274    shlibpath_var=LIBPATH
16275  fi
16276  ;;
16277
16278amigaos*)
16279  library_names_spec='$libname.ixlibrary $libname.a'
16280  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16281  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'
16282  ;;
16283
16284beos*)
16285  library_names_spec='${libname}${shared_ext}'
16286  dynamic_linker="$host_os ld.so"
16287  shlibpath_var=LIBRARY_PATH
16288  ;;
16289
16290bsdi[45]*)
16291  version_type=linux
16292  need_version=no
16293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294  soname_spec='${libname}${release}${shared_ext}$major'
16295  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16296  shlibpath_var=LD_LIBRARY_PATH
16297  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16298  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16299  # the default ld.so.conf also contains /usr/contrib/lib and
16300  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16301  # libtool to hard-code these into programs
16302  ;;
16303
16304cygwin* | mingw* | pw32*)
16305  version_type=windows
16306  shrext_cmds=".dll"
16307  need_version=no
16308  need_lib_prefix=no
16309
16310  case $GCC,$host_os in
16311  yes,cygwin* | yes,mingw* | yes,pw32*)
16312    library_names_spec='$libname.dll.a'
16313    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16314    postinstall_cmds='base_file=`basename \${file}`~
16315      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16316      dldir=$destdir/`dirname \$dlpath`~
16317      test -d \$dldir || mkdir -p \$dldir~
16318      $install_prog $dir/$dlname \$dldir/$dlname~
16319      chmod a+x \$dldir/$dlname'
16320    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16321      dlpath=$dir/\$dldll~
16322       $rm \$dlpath'
16323    shlibpath_overrides_runpath=yes
16324
16325    case $host_os in
16326    cygwin*)
16327      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16328      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16329      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16330      ;;
16331    mingw*)
16332      # MinGW DLLs use traditional 'lib' prefix
16333      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16334      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16335      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16336        # It is most probably a Windows format PATH printed by
16337        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16338        # path with ; separators, and with drive letters. We can handle the
16339        # drive letters (cygwin fileutils understands them), so leave them,
16340        # especially as we might pass files found there to a mingw objdump,
16341        # which wouldn't understand a cygwinified path. Ahh.
16342        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16343      else
16344        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16345      fi
16346      ;;
16347    pw32*)
16348      # pw32 DLLs use 'pw' prefix rather than 'lib'
16349      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350      ;;
16351    esac
16352    ;;
16353
16354  *)
16355    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16356    ;;
16357  esac
16358  dynamic_linker='Win32 ld.exe'
16359  # FIXME: first we should search . and the directory the executable is in
16360  shlibpath_var=PATH
16361  ;;
16362
16363darwin* | rhapsody*)
16364  dynamic_linker="$host_os dyld"
16365  version_type=darwin
16366  need_lib_prefix=no
16367  need_version=no
16368  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16369  soname_spec='${libname}${release}${major}$shared_ext'
16370  shlibpath_overrides_runpath=yes
16371  shlibpath_var=DYLD_LIBRARY_PATH
16372  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16373  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16374  if test "$GCC" = yes; then
16375    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"`
16376  else
16377    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16378  fi
16379  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16380  ;;
16381
16382dgux*)
16383  version_type=linux
16384  need_lib_prefix=no
16385  need_version=no
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16387  soname_spec='${libname}${release}${shared_ext}$major'
16388  shlibpath_var=LD_LIBRARY_PATH
16389  ;;
16390
16391freebsd1*)
16392  dynamic_linker=no
16393  ;;
16394
16395kfreebsd*-gnu)
16396  version_type=linux
16397  need_lib_prefix=no
16398  need_version=no
16399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400  soname_spec='${libname}${release}${shared_ext}$major'
16401  shlibpath_var=LD_LIBRARY_PATH
16402  shlibpath_overrides_runpath=no
16403  hardcode_into_libs=yes
16404  dynamic_linker='GNU ld.so'
16405  ;;
16406
16407freebsd* | dragonfly*)
16408  # DragonFly does not have aout.  When/if they implement a new
16409  # versioning mechanism, adjust this.
16410  if test -x /usr/bin/objformat; then
16411    objformat=`/usr/bin/objformat`
16412  else
16413    case $host_os in
16414    freebsd[123]*) objformat=aout ;;
16415    *) objformat=elf ;;
16416    esac
16417  fi
16418  version_type=freebsd-$objformat
16419  case $version_type in
16420    freebsd-elf*)
16421      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16422      need_version=no
16423      need_lib_prefix=no
16424      ;;
16425    freebsd-*)
16426      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16427      need_version=yes
16428      ;;
16429  esac
16430  shlibpath_var=LD_LIBRARY_PATH
16431  case $host_os in
16432  freebsd2*)
16433    shlibpath_overrides_runpath=yes
16434    ;;
16435  freebsd3.[01]* | freebsdelf3.[01]*)
16436    shlibpath_overrides_runpath=yes
16437    hardcode_into_libs=yes
16438    ;;
16439  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16440  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16441    shlibpath_overrides_runpath=no
16442    hardcode_into_libs=yes
16443    ;;
16444  freebsd*) # from 4.6 on
16445    shlibpath_overrides_runpath=yes
16446    hardcode_into_libs=yes
16447    ;;
16448  esac
16449  ;;
16450
16451gnu*)
16452  version_type=linux
16453  need_lib_prefix=no
16454  need_version=no
16455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16456  soname_spec='${libname}${release}${shared_ext}$major'
16457  shlibpath_var=LD_LIBRARY_PATH
16458  hardcode_into_libs=yes
16459  ;;
16460
16461hpux9* | hpux10* | hpux11*)
16462  # Give a soname corresponding to the major version so that dld.sl refuses to
16463  # link against other versions.
16464  version_type=sunos
16465  need_lib_prefix=no
16466  need_version=no
16467  case $host_cpu in
16468  ia64*)
16469    shrext_cmds='.so'
16470    hardcode_into_libs=yes
16471    dynamic_linker="$host_os dld.so"
16472    shlibpath_var=LD_LIBRARY_PATH
16473    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475    soname_spec='${libname}${release}${shared_ext}$major'
16476    if test "X$HPUX_IA64_MODE" = X32; then
16477      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16478    else
16479      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16480    fi
16481    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16482    ;;
16483   hppa*64*)
16484     shrext_cmds='.sl'
16485     hardcode_into_libs=yes
16486     dynamic_linker="$host_os dld.sl"
16487     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490     soname_spec='${libname}${release}${shared_ext}$major'
16491     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16492     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16493     ;;
16494   *)
16495    shrext_cmds='.sl'
16496    dynamic_linker="$host_os dld.sl"
16497    shlibpath_var=SHLIB_PATH
16498    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500    soname_spec='${libname}${release}${shared_ext}$major'
16501    ;;
16502  esac
16503  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16504  postinstall_cmds='chmod 555 $lib'
16505  ;;
16506
16507interix3*)
16508  version_type=linux
16509  need_lib_prefix=no
16510  need_version=no
16511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16512  soname_spec='${libname}${release}${shared_ext}$major'
16513  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16514  shlibpath_var=LD_LIBRARY_PATH
16515  shlibpath_overrides_runpath=no
16516  hardcode_into_libs=yes
16517  ;;
16518
16519irix5* | irix6* | nonstopux*)
16520  case $host_os in
16521    nonstopux*) version_type=nonstopux ;;
16522    *)
16523	if test "$lt_cv_prog_gnu_ld" = yes; then
16524		version_type=linux
16525	else
16526		version_type=irix
16527	fi ;;
16528  esac
16529  need_lib_prefix=no
16530  need_version=no
16531  soname_spec='${libname}${release}${shared_ext}$major'
16532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16533  case $host_os in
16534  irix5* | nonstopux*)
16535    libsuff= shlibsuff=
16536    ;;
16537  *)
16538    case $LD in # libtool.m4 will add one of these switches to LD
16539    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16540      libsuff= shlibsuff= libmagic=32-bit;;
16541    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16542      libsuff=32 shlibsuff=N32 libmagic=N32;;
16543    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16544      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16545    *) libsuff= shlibsuff= libmagic=never-match;;
16546    esac
16547    ;;
16548  esac
16549  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16550  shlibpath_overrides_runpath=no
16551  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16552  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16553  hardcode_into_libs=yes
16554  ;;
16555
16556# No shared lib support for Linux oldld, aout, or coff.
16557linux*oldld* | linux*aout* | linux*coff*)
16558  dynamic_linker=no
16559  ;;
16560
16561# This must be Linux ELF.
16562linux*)
16563  version_type=linux
16564  need_lib_prefix=no
16565  need_version=no
16566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567  soname_spec='${libname}${release}${shared_ext}$major'
16568  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16569  shlibpath_var=LD_LIBRARY_PATH
16570  shlibpath_overrides_runpath=no
16571  # This implies no fast_install, which is unacceptable.
16572  # Some rework will be needed to allow for fast_install
16573  # before this can be enabled.
16574  hardcode_into_libs=yes
16575
16576  # Append ld.so.conf contents to the search path
16577  if test -f /etc/ld.so.conf; then
16578    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' ' '`
16579    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16580  fi
16581
16582  # We used to test for /lib/ld.so.1 and disable shared libraries on
16583  # powerpc, because MkLinux only supported shared libraries with the
16584  # GNU dynamic linker.  Since this was broken with cross compilers,
16585  # most powerpc-linux boxes support dynamic linking these days and
16586  # people can always --disable-shared, the test was removed, and we
16587  # assume the GNU/Linux dynamic linker is in use.
16588  dynamic_linker='GNU/Linux ld.so'
16589  ;;
16590
16591knetbsd*-gnu)
16592  version_type=linux
16593  need_lib_prefix=no
16594  need_version=no
16595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596  soname_spec='${libname}${release}${shared_ext}$major'
16597  shlibpath_var=LD_LIBRARY_PATH
16598  shlibpath_overrides_runpath=no
16599  hardcode_into_libs=yes
16600  dynamic_linker='GNU ld.so'
16601  ;;
16602
16603netbsd*)
16604  version_type=sunos
16605  need_lib_prefix=no
16606  need_version=no
16607  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16609    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16610    dynamic_linker='NetBSD (a.out) ld.so'
16611  else
16612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16613    soname_spec='${libname}${release}${shared_ext}$major'
16614    dynamic_linker='NetBSD ld.elf_so'
16615  fi
16616  shlibpath_var=LD_LIBRARY_PATH
16617  shlibpath_overrides_runpath=yes
16618  hardcode_into_libs=yes
16619  ;;
16620
16621newsos6)
16622  version_type=linux
16623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624  shlibpath_var=LD_LIBRARY_PATH
16625  shlibpath_overrides_runpath=yes
16626  ;;
16627
16628nto-qnx*)
16629  version_type=linux
16630  need_lib_prefix=no
16631  need_version=no
16632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633  soname_spec='${libname}${release}${shared_ext}$major'
16634  shlibpath_var=LD_LIBRARY_PATH
16635  shlibpath_overrides_runpath=yes
16636  ;;
16637
16638openbsd*)
16639  version_type=sunos
16640  sys_lib_dlsearch_path_spec="/usr/lib"
16641  need_lib_prefix=no
16642  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16643  case $host_os in
16644    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16645    *)                         need_version=no  ;;
16646  esac
16647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16648  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16649  shlibpath_var=LD_LIBRARY_PATH
16650  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16651    case $host_os in
16652      openbsd2.[89] | openbsd2.[89].*)
16653	shlibpath_overrides_runpath=no
16654	;;
16655      *)
16656	shlibpath_overrides_runpath=yes
16657	;;
16658      esac
16659  else
16660    shlibpath_overrides_runpath=yes
16661  fi
16662  ;;
16663
16664os2*)
16665  libname_spec='$name'
16666  shrext_cmds=".dll"
16667  need_lib_prefix=no
16668  library_names_spec='$libname${shared_ext} $libname.a'
16669  dynamic_linker='OS/2 ld.exe'
16670  shlibpath_var=LIBPATH
16671  ;;
16672
16673osf3* | osf4* | osf5*)
16674  version_type=osf
16675  need_lib_prefix=no
16676  need_version=no
16677  soname_spec='${libname}${release}${shared_ext}$major'
16678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679  shlibpath_var=LD_LIBRARY_PATH
16680  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16681  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16682  ;;
16683
16684solaris*)
16685  version_type=linux
16686  need_lib_prefix=no
16687  need_version=no
16688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689  soname_spec='${libname}${release}${shared_ext}$major'
16690  shlibpath_var=LD_LIBRARY_PATH
16691  shlibpath_overrides_runpath=yes
16692  hardcode_into_libs=yes
16693  # ldd complains unless libraries are executable
16694  postinstall_cmds='chmod +x $lib'
16695  ;;
16696
16697sunos4*)
16698  version_type=sunos
16699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16700  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16701  shlibpath_var=LD_LIBRARY_PATH
16702  shlibpath_overrides_runpath=yes
16703  if test "$with_gnu_ld" = yes; then
16704    need_lib_prefix=no
16705  fi
16706  need_version=yes
16707  ;;
16708
16709sysv4 | sysv4.3*)
16710  version_type=linux
16711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712  soname_spec='${libname}${release}${shared_ext}$major'
16713  shlibpath_var=LD_LIBRARY_PATH
16714  case $host_vendor in
16715    sni)
16716      shlibpath_overrides_runpath=no
16717      need_lib_prefix=no
16718      export_dynamic_flag_spec='${wl}-Blargedynsym'
16719      runpath_var=LD_RUN_PATH
16720      ;;
16721    siemens)
16722      need_lib_prefix=no
16723      ;;
16724    motorola)
16725      need_lib_prefix=no
16726      need_version=no
16727      shlibpath_overrides_runpath=no
16728      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16729      ;;
16730  esac
16731  ;;
16732
16733sysv4*MP*)
16734  if test -d /usr/nec ;then
16735    version_type=linux
16736    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16737    soname_spec='$libname${shared_ext}.$major'
16738    shlibpath_var=LD_LIBRARY_PATH
16739  fi
16740  ;;
16741
16742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16743  version_type=freebsd-elf
16744  need_lib_prefix=no
16745  need_version=no
16746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16747  soname_spec='${libname}${release}${shared_ext}$major'
16748  shlibpath_var=LD_LIBRARY_PATH
16749  hardcode_into_libs=yes
16750  if test "$with_gnu_ld" = yes; then
16751    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16752    shlibpath_overrides_runpath=no
16753  else
16754    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16755    shlibpath_overrides_runpath=yes
16756    case $host_os in
16757      sco3.2v5*)
16758        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16759	;;
16760    esac
16761  fi
16762  sys_lib_dlsearch_path_spec='/usr/lib'
16763  ;;
16764
16765uts4*)
16766  version_type=linux
16767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768  soname_spec='${libname}${release}${shared_ext}$major'
16769  shlibpath_var=LD_LIBRARY_PATH
16770  ;;
16771
16772*)
16773  dynamic_linker=no
16774  ;;
16775esac
16776echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16777echo "${ECHO_T}$dynamic_linker" >&6
16778test "$dynamic_linker" = no && can_build_shared=no
16779
16780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16781if test "$GCC" = yes; then
16782  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16783fi
16784
16785echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16786echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16787hardcode_action_F77=
16788if test -n "$hardcode_libdir_flag_spec_F77" || \
16789   test -n "$runpath_var_F77" || \
16790   test "X$hardcode_automatic_F77" = "Xyes" ; then
16791
16792  # We can hardcode non-existant directories.
16793  if test "$hardcode_direct_F77" != no &&
16794     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16795     # have to relink, otherwise we might link with an installed library
16796     # when we should be linking with a yet-to-be-installed one
16797     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16798     test "$hardcode_minus_L_F77" != no; then
16799    # Linking always hardcodes the temporary library directory.
16800    hardcode_action_F77=relink
16801  else
16802    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16803    hardcode_action_F77=immediate
16804  fi
16805else
16806  # We cannot hardcode anything, or else we can only hardcode existing
16807  # directories.
16808  hardcode_action_F77=unsupported
16809fi
16810echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16811echo "${ECHO_T}$hardcode_action_F77" >&6
16812
16813if test "$hardcode_action_F77" = relink; then
16814  # Fast installation is not supported
16815  enable_fast_install=no
16816elif test "$shlibpath_overrides_runpath" = yes ||
16817     test "$enable_shared" = no; then
16818  # Fast installation is not necessary
16819  enable_fast_install=needless
16820fi
16821
16822
16823# The else clause should only fire when bootstrapping the
16824# libtool distribution, otherwise you forgot to ship ltmain.sh
16825# with your package, and you will get complaints that there are
16826# no rules to generate ltmain.sh.
16827if test -f "$ltmain"; then
16828  # See if we are running on zsh, and set the options which allow our commands through
16829  # without removal of \ escapes.
16830  if test -n "${ZSH_VERSION+set}" ; then
16831    setopt NO_GLOB_SUBST
16832  fi
16833  # Now quote all the things that may contain metacharacters while being
16834  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16835  # variables and quote the copies for generation of the libtool script.
16836  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16837    SED SHELL STRIP \
16838    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16839    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16840    deplibs_check_method reload_flag reload_cmds need_locks \
16841    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16842    lt_cv_sys_global_symbol_to_c_name_address \
16843    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16844    old_postinstall_cmds old_postuninstall_cmds \
16845    compiler_F77 \
16846    CC_F77 \
16847    LD_F77 \
16848    lt_prog_compiler_wl_F77 \
16849    lt_prog_compiler_pic_F77 \
16850    lt_prog_compiler_static_F77 \
16851    lt_prog_compiler_no_builtin_flag_F77 \
16852    export_dynamic_flag_spec_F77 \
16853    thread_safe_flag_spec_F77 \
16854    whole_archive_flag_spec_F77 \
16855    enable_shared_with_static_runtimes_F77 \
16856    old_archive_cmds_F77 \
16857    old_archive_from_new_cmds_F77 \
16858    predep_objects_F77 \
16859    postdep_objects_F77 \
16860    predeps_F77 \
16861    postdeps_F77 \
16862    compiler_lib_search_path_F77 \
16863    archive_cmds_F77 \
16864    archive_expsym_cmds_F77 \
16865    postinstall_cmds_F77 \
16866    postuninstall_cmds_F77 \
16867    old_archive_from_expsyms_cmds_F77 \
16868    allow_undefined_flag_F77 \
16869    no_undefined_flag_F77 \
16870    export_symbols_cmds_F77 \
16871    hardcode_libdir_flag_spec_F77 \
16872    hardcode_libdir_flag_spec_ld_F77 \
16873    hardcode_libdir_separator_F77 \
16874    hardcode_automatic_F77 \
16875    module_cmds_F77 \
16876    module_expsym_cmds_F77 \
16877    lt_cv_prog_compiler_c_o_F77 \
16878    exclude_expsyms_F77 \
16879    include_expsyms_F77; do
16880
16881    case $var in
16882    old_archive_cmds_F77 | \
16883    old_archive_from_new_cmds_F77 | \
16884    archive_cmds_F77 | \
16885    archive_expsym_cmds_F77 | \
16886    module_cmds_F77 | \
16887    module_expsym_cmds_F77 | \
16888    old_archive_from_expsyms_cmds_F77 | \
16889    export_symbols_cmds_F77 | \
16890    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16891    postinstall_cmds | postuninstall_cmds | \
16892    old_postinstall_cmds | old_postuninstall_cmds | \
16893    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16894      # Double-quote double-evaled strings.
16895      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16896      ;;
16897    *)
16898      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16899      ;;
16900    esac
16901  done
16902
16903  case $lt_echo in
16904  *'\$0 --fallback-echo"')
16905    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16906    ;;
16907  esac
16908
16909cfgfile="$ofile"
16910
16911  cat <<__EOF__ >> "$cfgfile"
16912# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16913
16914# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16915
16916# Shell to use when invoking shell scripts.
16917SHELL=$lt_SHELL
16918
16919# Whether or not to build shared libraries.
16920build_libtool_libs=$enable_shared
16921
16922# Whether or not to build static libraries.
16923build_old_libs=$enable_static
16924
16925# Whether or not to add -lc for building shared libraries.
16926build_libtool_need_lc=$archive_cmds_need_lc_F77
16927
16928# Whether or not to disallow shared libs when runtime libs are static
16929allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16930
16931# Whether or not to optimize for fast installation.
16932fast_install=$enable_fast_install
16933
16934# The host system.
16935host_alias=$host_alias
16936host=$host
16937host_os=$host_os
16938
16939# The build system.
16940build_alias=$build_alias
16941build=$build
16942build_os=$build_os
16943
16944# An echo program that does not interpret backslashes.
16945echo=$lt_echo
16946
16947# The archiver.
16948AR=$lt_AR
16949AR_FLAGS=$lt_AR_FLAGS
16950
16951# A C compiler.
16952LTCC=$lt_LTCC
16953
16954# LTCC compiler flags.
16955LTCFLAGS=$lt_LTCFLAGS
16956
16957# A language-specific compiler.
16958CC=$lt_compiler_F77
16959
16960# Is the compiler the GNU C compiler?
16961with_gcc=$GCC_F77
16962
16963# An ERE matcher.
16964EGREP=$lt_EGREP
16965
16966# The linker used to build libraries.
16967LD=$lt_LD_F77
16968
16969# Whether we need hard or soft links.
16970LN_S=$lt_LN_S
16971
16972# A BSD-compatible nm program.
16973NM=$lt_NM
16974
16975# A symbol stripping program
16976STRIP=$lt_STRIP
16977
16978# Used to examine libraries when file_magic_cmd begins "file"
16979MAGIC_CMD=$MAGIC_CMD
16980
16981# Used on cygwin: DLL creation program.
16982DLLTOOL="$DLLTOOL"
16983
16984# Used on cygwin: object dumper.
16985OBJDUMP="$OBJDUMP"
16986
16987# Used on cygwin: assembler.
16988AS="$AS"
16989
16990# The name of the directory that contains temporary libtool files.
16991objdir=$objdir
16992
16993# How to create reloadable object files.
16994reload_flag=$lt_reload_flag
16995reload_cmds=$lt_reload_cmds
16996
16997# How to pass a linker flag through the compiler.
16998wl=$lt_lt_prog_compiler_wl_F77
16999
17000# Object file suffix (normally "o").
17001objext="$ac_objext"
17002
17003# Old archive suffix (normally "a").
17004libext="$libext"
17005
17006# Shared library suffix (normally ".so").
17007shrext_cmds='$shrext_cmds'
17008
17009# Executable file suffix (normally "").
17010exeext="$exeext"
17011
17012# Additional compiler flags for building library objects.
17013pic_flag=$lt_lt_prog_compiler_pic_F77
17014pic_mode=$pic_mode
17015
17016# What is the maximum length of a command?
17017max_cmd_len=$lt_cv_sys_max_cmd_len
17018
17019# Does compiler simultaneously support -c and -o options?
17020compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17021
17022# Must we lock files when doing compilation?
17023need_locks=$lt_need_locks
17024
17025# Do we need the lib prefix for modules?
17026need_lib_prefix=$need_lib_prefix
17027
17028# Do we need a version for libraries?
17029need_version=$need_version
17030
17031# Whether dlopen is supported.
17032dlopen_support=$enable_dlopen
17033
17034# Whether dlopen of programs is supported.
17035dlopen_self=$enable_dlopen_self
17036
17037# Whether dlopen of statically linked programs is supported.
17038dlopen_self_static=$enable_dlopen_self_static
17039
17040# Compiler flag to prevent dynamic linking.
17041link_static_flag=$lt_lt_prog_compiler_static_F77
17042
17043# Compiler flag to turn off builtin functions.
17044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17045
17046# Compiler flag to allow reflexive dlopens.
17047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17048
17049# Compiler flag to generate shared objects directly from archives.
17050whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17051
17052# Compiler flag to generate thread-safe objects.
17053thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17054
17055# Library versioning type.
17056version_type=$version_type
17057
17058# Format of library name prefix.
17059libname_spec=$lt_libname_spec
17060
17061# List of archive names.  First name is the real one, the rest are links.
17062# The last name is the one that the linker finds with -lNAME.
17063library_names_spec=$lt_library_names_spec
17064
17065# The coded name of the library, if different from the real name.
17066soname_spec=$lt_soname_spec
17067
17068# Commands used to build and install an old-style archive.
17069RANLIB=$lt_RANLIB
17070old_archive_cmds=$lt_old_archive_cmds_F77
17071old_postinstall_cmds=$lt_old_postinstall_cmds
17072old_postuninstall_cmds=$lt_old_postuninstall_cmds
17073
17074# Create an old-style archive from a shared archive.
17075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17076
17077# Create a temporary old-style archive to link instead of a shared archive.
17078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17079
17080# Commands used to build and install a shared archive.
17081archive_cmds=$lt_archive_cmds_F77
17082archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17083postinstall_cmds=$lt_postinstall_cmds
17084postuninstall_cmds=$lt_postuninstall_cmds
17085
17086# Commands used to build a loadable module (assumed same as above if empty)
17087module_cmds=$lt_module_cmds_F77
17088module_expsym_cmds=$lt_module_expsym_cmds_F77
17089
17090# Commands to strip libraries.
17091old_striplib=$lt_old_striplib
17092striplib=$lt_striplib
17093
17094# Dependencies to place before the objects being linked to create a
17095# shared library.
17096predep_objects=$lt_predep_objects_F77
17097
17098# Dependencies to place after the objects being linked to create a
17099# shared library.
17100postdep_objects=$lt_postdep_objects_F77
17101
17102# Dependencies to place before the objects being linked to create a
17103# shared library.
17104predeps=$lt_predeps_F77
17105
17106# Dependencies to place after the objects being linked to create a
17107# shared library.
17108postdeps=$lt_postdeps_F77
17109
17110# The library search path used internally by the compiler when linking
17111# a shared library.
17112compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17113
17114# Method to check whether dependent libraries are shared objects.
17115deplibs_check_method=$lt_deplibs_check_method
17116
17117# Command to use when deplibs_check_method == file_magic.
17118file_magic_cmd=$lt_file_magic_cmd
17119
17120# Flag that allows shared libraries with undefined symbols to be built.
17121allow_undefined_flag=$lt_allow_undefined_flag_F77
17122
17123# Flag that forces no undefined symbols.
17124no_undefined_flag=$lt_no_undefined_flag_F77
17125
17126# Commands used to finish a libtool library installation in a directory.
17127finish_cmds=$lt_finish_cmds
17128
17129# Same as above, but a single script fragment to be evaled but not shown.
17130finish_eval=$lt_finish_eval
17131
17132# Take the output of nm and produce a listing of raw symbols and C names.
17133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17134
17135# Transform the output of nm in a proper C declaration
17136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17137
17138# Transform the output of nm in a C name address pair
17139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17140
17141# This is the shared library runtime path variable.
17142runpath_var=$runpath_var
17143
17144# This is the shared library path variable.
17145shlibpath_var=$shlibpath_var
17146
17147# Is shlibpath searched before the hard-coded library search path?
17148shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17149
17150# How to hardcode a shared library path into an executable.
17151hardcode_action=$hardcode_action_F77
17152
17153# Whether we should hardcode library paths into libraries.
17154hardcode_into_libs=$hardcode_into_libs
17155
17156# Flag to hardcode \$libdir into a binary during linking.
17157# This must work even if \$libdir does not exist.
17158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17159
17160# If ld is used when linking, flag to hardcode \$libdir into
17161# a binary during linking. This must work even if \$libdir does
17162# not exist.
17163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17164
17165# Whether we need a single -rpath flag with a separated argument.
17166hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17167
17168# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17169# resulting binary.
17170hardcode_direct=$hardcode_direct_F77
17171
17172# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17173# resulting binary.
17174hardcode_minus_L=$hardcode_minus_L_F77
17175
17176# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17177# the resulting binary.
17178hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17179
17180# Set to yes if building a shared library automatically hardcodes DIR into the library
17181# and all subsequent libraries and executables linked against it.
17182hardcode_automatic=$hardcode_automatic_F77
17183
17184# Variables whose values should be saved in libtool wrapper scripts and
17185# restored at relink time.
17186variables_saved_for_relink="$variables_saved_for_relink"
17187
17188# Whether libtool must link a program against all its dependency libraries.
17189link_all_deplibs=$link_all_deplibs_F77
17190
17191# Compile-time system search path for libraries
17192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17193
17194# Run-time system search path for libraries
17195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17196
17197# Fix the shell variable \$srcfile for the compiler.
17198fix_srcfile_path="$fix_srcfile_path_F77"
17199
17200# Set to yes if exported symbols are required.
17201always_export_symbols=$always_export_symbols_F77
17202
17203# The commands to list exported symbols.
17204export_symbols_cmds=$lt_export_symbols_cmds_F77
17205
17206# The commands to extract the exported symbol list from a shared archive.
17207extract_expsyms_cmds=$lt_extract_expsyms_cmds
17208
17209# Symbols that should not be listed in the preloaded symbols.
17210exclude_expsyms=$lt_exclude_expsyms_F77
17211
17212# Symbols that must always be exported.
17213include_expsyms=$lt_include_expsyms_F77
17214
17215# ### END LIBTOOL TAG CONFIG: $tagname
17216
17217__EOF__
17218
17219
17220else
17221  # If there is no Makefile yet, we rely on a make rule to execute
17222  # `config.status --recheck' to rerun these tests and create the
17223  # libtool script then.
17224  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17225  if test -f "$ltmain_in"; then
17226    test -f Makefile && make "$ltmain"
17227  fi
17228fi
17229
17230
17231ac_ext=c
17232ac_cpp='$CPP $CPPFLAGS'
17233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17235ac_compiler_gnu=$ac_cv_c_compiler_gnu
17236
17237CC="$lt_save_CC"
17238
17239	else
17240	  tagname=""
17241	fi
17242	;;
17243
17244      GCJ)
17245	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17246
17247
17248
17249# Source file extension for Java test sources.
17250ac_ext=java
17251
17252# Object file extension for compiled Java test sources.
17253objext=o
17254objext_GCJ=$objext
17255
17256# Code to be used in simple compile tests
17257lt_simple_compile_test_code="class foo {}\n"
17258
17259# Code to be used in simple link tests
17260lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17261
17262# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17263
17264# If no C compiler was specified, use CC.
17265LTCC=${LTCC-"$CC"}
17266
17267# If no C compiler flags were specified, use CFLAGS.
17268LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17269
17270# Allow CC to be a program name with arguments.
17271compiler=$CC
17272
17273
17274# save warnings/boilerplate of simple test code
17275ac_outfile=conftest.$ac_objext
17276printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17277eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17278_lt_compiler_boilerplate=`cat conftest.err`
17279$rm conftest*
17280
17281ac_outfile=conftest.$ac_objext
17282printf "$lt_simple_link_test_code" >conftest.$ac_ext
17283eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17284_lt_linker_boilerplate=`cat conftest.err`
17285$rm conftest*
17286
17287
17288# Allow CC to be a program name with arguments.
17289lt_save_CC="$CC"
17290CC=${GCJ-"gcj"}
17291compiler=$CC
17292compiler_GCJ=$CC
17293for cc_temp in $compiler""; do
17294  case $cc_temp in
17295    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17296    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17297    \-*) ;;
17298    *) break;;
17299  esac
17300done
17301cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17302
17303
17304# GCJ did not exist at the time GCC didn't implicitly link libc in.
17305archive_cmds_need_lc_GCJ=no
17306
17307old_archive_cmds_GCJ=$old_archive_cmds
17308
17309## CAVEAT EMPTOR:
17310## There is no encapsulation within the following macros, do not change
17311## the running order or otherwise move them around unless you know exactly
17312## what you are doing...
17313
17314lt_prog_compiler_no_builtin_flag_GCJ=
17315
17316if test "$GCC" = yes; then
17317  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17318
17319
17320echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17321echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17322if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17323  echo $ECHO_N "(cached) $ECHO_C" >&6
17324else
17325  lt_cv_prog_compiler_rtti_exceptions=no
17326  ac_outfile=conftest.$ac_objext
17327   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17328   lt_compiler_flag="-fno-rtti -fno-exceptions"
17329   # Insert the option either (1) after the last *FLAGS variable, or
17330   # (2) before a word containing "conftest.", or (3) at the end.
17331   # Note that $ac_compile itself does not contain backslashes and begins
17332   # with a dollar sign (not a hyphen), so the echo should work correctly.
17333   # The option is referenced via a variable to avoid confusing sed.
17334   lt_compile=`echo "$ac_compile" | $SED \
17335   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17336   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17337   -e 's:$: $lt_compiler_flag:'`
17338   (eval echo "\"\$as_me:17338: $lt_compile\"" >&5)
17339   (eval "$lt_compile" 2>conftest.err)
17340   ac_status=$?
17341   cat conftest.err >&5
17342   echo "$as_me:17342: \$? = $ac_status" >&5
17343   if (exit $ac_status) && test -s "$ac_outfile"; then
17344     # The compiler can only warn and ignore the option if not recognized
17345     # So say no if there are warnings other than the usual output.
17346     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17347     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17348     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17349       lt_cv_prog_compiler_rtti_exceptions=yes
17350     fi
17351   fi
17352   $rm conftest*
17353
17354fi
17355echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17356echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17357
17358if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17359    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17360else
17361    :
17362fi
17363
17364fi
17365
17366lt_prog_compiler_wl_GCJ=
17367lt_prog_compiler_pic_GCJ=
17368lt_prog_compiler_static_GCJ=
17369
17370echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17371echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17372
17373  if test "$GCC" = yes; then
17374    lt_prog_compiler_wl_GCJ='-Wl,'
17375    lt_prog_compiler_static_GCJ='-static'
17376
17377    case $host_os in
17378      aix*)
17379      # All AIX code is PIC.
17380      if test "$host_cpu" = ia64; then
17381	# AIX 5 now supports IA64 processor
17382	lt_prog_compiler_static_GCJ='-Bstatic'
17383      fi
17384      ;;
17385
17386    amigaos*)
17387      # FIXME: we need at least 68020 code to build shared libraries, but
17388      # adding the `-m68020' flag to GCC prevents building anything better,
17389      # like `-m68040'.
17390      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17391      ;;
17392
17393    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17394      # PIC is the default for these OSes.
17395      ;;
17396
17397    mingw* | pw32* | os2*)
17398      # This hack is so that the source file can tell whether it is being
17399      # built for inclusion in a dll (and should export symbols for example).
17400      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17401      ;;
17402
17403    darwin* | rhapsody*)
17404      # PIC is the default on this platform
17405      # Common symbols not allowed in MH_DYLIB files
17406      lt_prog_compiler_pic_GCJ='-fno-common'
17407      ;;
17408
17409    interix3*)
17410      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17411      # Instead, we relocate shared libraries at runtime.
17412      ;;
17413
17414    msdosdjgpp*)
17415      # Just because we use GCC doesn't mean we suddenly get shared libraries
17416      # on systems that don't support them.
17417      lt_prog_compiler_can_build_shared_GCJ=no
17418      enable_shared=no
17419      ;;
17420
17421    sysv4*MP*)
17422      if test -d /usr/nec; then
17423	lt_prog_compiler_pic_GCJ=-Kconform_pic
17424      fi
17425      ;;
17426
17427    hpux*)
17428      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17429      # not for PA HP-UX.
17430      case $host_cpu in
17431      hppa*64*|ia64*)
17432	# +Z the default
17433	;;
17434      *)
17435	lt_prog_compiler_pic_GCJ='-fPIC'
17436	;;
17437      esac
17438      ;;
17439
17440    *)
17441      lt_prog_compiler_pic_GCJ='-fPIC'
17442      ;;
17443    esac
17444  else
17445    # PORTME Check for flag to pass linker flags through the system compiler.
17446    case $host_os in
17447    aix*)
17448      lt_prog_compiler_wl_GCJ='-Wl,'
17449      if test "$host_cpu" = ia64; then
17450	# AIX 5 now supports IA64 processor
17451	lt_prog_compiler_static_GCJ='-Bstatic'
17452      else
17453	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17454      fi
17455      ;;
17456      darwin*)
17457        # PIC is the default on this platform
17458        # Common symbols not allowed in MH_DYLIB files
17459       case $cc_basename in
17460         xlc*)
17461         lt_prog_compiler_pic_GCJ='-qnocommon'
17462         lt_prog_compiler_wl_GCJ='-Wl,'
17463         ;;
17464       esac
17465       ;;
17466
17467    mingw* | pw32* | os2*)
17468      # This hack is so that the source file can tell whether it is being
17469      # built for inclusion in a dll (and should export symbols for example).
17470      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17471      ;;
17472
17473    hpux9* | hpux10* | hpux11*)
17474      lt_prog_compiler_wl_GCJ='-Wl,'
17475      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17476      # not for PA HP-UX.
17477      case $host_cpu in
17478      hppa*64*|ia64*)
17479	# +Z the default
17480	;;
17481      *)
17482	lt_prog_compiler_pic_GCJ='+Z'
17483	;;
17484      esac
17485      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17486      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17487      ;;
17488
17489    irix5* | irix6* | nonstopux*)
17490      lt_prog_compiler_wl_GCJ='-Wl,'
17491      # PIC (with -KPIC) is the default.
17492      lt_prog_compiler_static_GCJ='-non_shared'
17493      ;;
17494
17495    newsos6)
17496      lt_prog_compiler_pic_GCJ='-KPIC'
17497      lt_prog_compiler_static_GCJ='-Bstatic'
17498      ;;
17499
17500    linux*)
17501      case $cc_basename in
17502      icc* | ecc*)
17503	lt_prog_compiler_wl_GCJ='-Wl,'
17504	lt_prog_compiler_pic_GCJ='-KPIC'
17505	lt_prog_compiler_static_GCJ='-static'
17506        ;;
17507      pgcc* | pgf77* | pgf90* | pgf95*)
17508        # Portland Group compilers (*not* the Pentium gcc compiler,
17509	# which looks to be a dead project)
17510	lt_prog_compiler_wl_GCJ='-Wl,'
17511	lt_prog_compiler_pic_GCJ='-fpic'
17512	lt_prog_compiler_static_GCJ='-Bstatic'
17513        ;;
17514      ccc*)
17515        lt_prog_compiler_wl_GCJ='-Wl,'
17516        # All Alpha code is PIC.
17517        lt_prog_compiler_static_GCJ='-non_shared'
17518        ;;
17519      esac
17520      ;;
17521
17522    osf3* | osf4* | osf5*)
17523      lt_prog_compiler_wl_GCJ='-Wl,'
17524      # All OSF/1 code is PIC.
17525      lt_prog_compiler_static_GCJ='-non_shared'
17526      ;;
17527
17528    solaris*)
17529      lt_prog_compiler_pic_GCJ='-KPIC'
17530      lt_prog_compiler_static_GCJ='-Bstatic'
17531      case $cc_basename in
17532      f77* | f90* | f95*)
17533	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17534      *)
17535	lt_prog_compiler_wl_GCJ='-Wl,';;
17536      esac
17537      ;;
17538
17539    sunos4*)
17540      lt_prog_compiler_wl_GCJ='-Qoption ld '
17541      lt_prog_compiler_pic_GCJ='-PIC'
17542      lt_prog_compiler_static_GCJ='-Bstatic'
17543      ;;
17544
17545    sysv4 | sysv4.2uw2* | sysv4.3*)
17546      lt_prog_compiler_wl_GCJ='-Wl,'
17547      lt_prog_compiler_pic_GCJ='-KPIC'
17548      lt_prog_compiler_static_GCJ='-Bstatic'
17549      ;;
17550
17551    sysv4*MP*)
17552      if test -d /usr/nec ;then
17553	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17554	lt_prog_compiler_static_GCJ='-Bstatic'
17555      fi
17556      ;;
17557
17558    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17559      lt_prog_compiler_wl_GCJ='-Wl,'
17560      lt_prog_compiler_pic_GCJ='-KPIC'
17561      lt_prog_compiler_static_GCJ='-Bstatic'
17562      ;;
17563
17564    unicos*)
17565      lt_prog_compiler_wl_GCJ='-Wl,'
17566      lt_prog_compiler_can_build_shared_GCJ=no
17567      ;;
17568
17569    uts4*)
17570      lt_prog_compiler_pic_GCJ='-pic'
17571      lt_prog_compiler_static_GCJ='-Bstatic'
17572      ;;
17573
17574    *)
17575      lt_prog_compiler_can_build_shared_GCJ=no
17576      ;;
17577    esac
17578  fi
17579
17580echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17581echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17582
17583#
17584# Check to make sure the PIC flag actually works.
17585#
17586if test -n "$lt_prog_compiler_pic_GCJ"; then
17587
17588echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17589echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17590if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17591  echo $ECHO_N "(cached) $ECHO_C" >&6
17592else
17593  lt_prog_compiler_pic_works_GCJ=no
17594  ac_outfile=conftest.$ac_objext
17595   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17596   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17597   # Insert the option either (1) after the last *FLAGS variable, or
17598   # (2) before a word containing "conftest.", or (3) at the end.
17599   # Note that $ac_compile itself does not contain backslashes and begins
17600   # with a dollar sign (not a hyphen), so the echo should work correctly.
17601   # The option is referenced via a variable to avoid confusing sed.
17602   lt_compile=`echo "$ac_compile" | $SED \
17603   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17604   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17605   -e 's:$: $lt_compiler_flag:'`
17606   (eval echo "\"\$as_me:17606: $lt_compile\"" >&5)
17607   (eval "$lt_compile" 2>conftest.err)
17608   ac_status=$?
17609   cat conftest.err >&5
17610   echo "$as_me:17610: \$? = $ac_status" >&5
17611   if (exit $ac_status) && test -s "$ac_outfile"; then
17612     # The compiler can only warn and ignore the option if not recognized
17613     # So say no if there are warnings other than the usual output.
17614     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17615     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17616     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17617       lt_prog_compiler_pic_works_GCJ=yes
17618     fi
17619   fi
17620   $rm conftest*
17621
17622fi
17623echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17624echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17625
17626if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17627    case $lt_prog_compiler_pic_GCJ in
17628     "" | " "*) ;;
17629     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17630     esac
17631else
17632    lt_prog_compiler_pic_GCJ=
17633     lt_prog_compiler_can_build_shared_GCJ=no
17634fi
17635
17636fi
17637case $host_os in
17638  # For platforms which do not support PIC, -DPIC is meaningless:
17639  *djgpp*)
17640    lt_prog_compiler_pic_GCJ=
17641    ;;
17642  *)
17643    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17644    ;;
17645esac
17646
17647#
17648# Check to make sure the static flag actually works.
17649#
17650wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17651echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17652echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17653if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17654  echo $ECHO_N "(cached) $ECHO_C" >&6
17655else
17656  lt_prog_compiler_static_works_GCJ=no
17657   save_LDFLAGS="$LDFLAGS"
17658   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17659   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17660   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17661     # The linker can only warn and ignore the option if not recognized
17662     # So say no if there are warnings
17663     if test -s conftest.err; then
17664       # Append any errors to the config.log.
17665       cat conftest.err 1>&5
17666       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17667       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17668       if diff conftest.exp conftest.er2 >/dev/null; then
17669         lt_prog_compiler_static_works_GCJ=yes
17670       fi
17671     else
17672       lt_prog_compiler_static_works_GCJ=yes
17673     fi
17674   fi
17675   $rm conftest*
17676   LDFLAGS="$save_LDFLAGS"
17677
17678fi
17679echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17680echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17681
17682if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17683    :
17684else
17685    lt_prog_compiler_static_GCJ=
17686fi
17687
17688
17689echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17690echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17691if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17692  echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694  lt_cv_prog_compiler_c_o_GCJ=no
17695   $rm -r conftest 2>/dev/null
17696   mkdir conftest
17697   cd conftest
17698   mkdir out
17699   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17700
17701   lt_compiler_flag="-o out/conftest2.$ac_objext"
17702   # Insert the option either (1) after the last *FLAGS variable, or
17703   # (2) before a word containing "conftest.", or (3) at the end.
17704   # Note that $ac_compile itself does not contain backslashes and begins
17705   # with a dollar sign (not a hyphen), so the echo should work correctly.
17706   lt_compile=`echo "$ac_compile" | $SED \
17707   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17709   -e 's:$: $lt_compiler_flag:'`
17710   (eval echo "\"\$as_me:17710: $lt_compile\"" >&5)
17711   (eval "$lt_compile" 2>out/conftest.err)
17712   ac_status=$?
17713   cat out/conftest.err >&5
17714   echo "$as_me:17714: \$? = $ac_status" >&5
17715   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17716   then
17717     # The compiler can only warn and ignore the option if not recognized
17718     # So say no if there are warnings
17719     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17720     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17721     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17722       lt_cv_prog_compiler_c_o_GCJ=yes
17723     fi
17724   fi
17725   chmod u+w . 2>&5
17726   $rm conftest*
17727   # SGI C++ compiler will create directory out/ii_files/ for
17728   # template instantiation
17729   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17730   $rm out/* && rmdir out
17731   cd ..
17732   rmdir conftest
17733   $rm conftest*
17734
17735fi
17736echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17737echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17738
17739
17740hard_links="nottested"
17741if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17742  # do not overwrite the value of need_locks provided by the user
17743  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17744echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17745  hard_links=yes
17746  $rm conftest*
17747  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17748  touch conftest.a
17749  ln conftest.a conftest.b 2>&5 || hard_links=no
17750  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17751  echo "$as_me:$LINENO: result: $hard_links" >&5
17752echo "${ECHO_T}$hard_links" >&6
17753  if test "$hard_links" = no; then
17754    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17755echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17756    need_locks=warn
17757  fi
17758else
17759  need_locks=no
17760fi
17761
17762echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17763echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17764
17765  runpath_var=
17766  allow_undefined_flag_GCJ=
17767  enable_shared_with_static_runtimes_GCJ=no
17768  archive_cmds_GCJ=
17769  archive_expsym_cmds_GCJ=
17770  old_archive_From_new_cmds_GCJ=
17771  old_archive_from_expsyms_cmds_GCJ=
17772  export_dynamic_flag_spec_GCJ=
17773  whole_archive_flag_spec_GCJ=
17774  thread_safe_flag_spec_GCJ=
17775  hardcode_libdir_flag_spec_GCJ=
17776  hardcode_libdir_flag_spec_ld_GCJ=
17777  hardcode_libdir_separator_GCJ=
17778  hardcode_direct_GCJ=no
17779  hardcode_minus_L_GCJ=no
17780  hardcode_shlibpath_var_GCJ=unsupported
17781  link_all_deplibs_GCJ=unknown
17782  hardcode_automatic_GCJ=no
17783  module_cmds_GCJ=
17784  module_expsym_cmds_GCJ=
17785  always_export_symbols_GCJ=no
17786  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17787  # include_expsyms should be a list of space-separated symbols to be *always*
17788  # included in the symbol list
17789  include_expsyms_GCJ=
17790  # exclude_expsyms can be an extended regexp of symbols to exclude
17791  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17792  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17793  # as well as any symbol that contains `d'.
17794  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17795  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17796  # platforms (ab)use it in PIC code, but their linkers get confused if
17797  # the symbol is explicitly referenced.  Since portable code cannot
17798  # rely on this symbol name, it's probably fine to never include it in
17799  # preloaded symbol tables.
17800  extract_expsyms_cmds=
17801  # Just being paranoid about ensuring that cc_basename is set.
17802  for cc_temp in $compiler""; do
17803  case $cc_temp in
17804    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17805    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17806    \-*) ;;
17807    *) break;;
17808  esac
17809done
17810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17811
17812  case $host_os in
17813  cygwin* | mingw* | pw32*)
17814    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17815    # When not using gcc, we currently assume that we are using
17816    # Microsoft Visual C++.
17817    if test "$GCC" != yes; then
17818      with_gnu_ld=no
17819    fi
17820    ;;
17821  interix*)
17822    # we just hope/assume this is gcc and not c89 (= MSVC++)
17823    with_gnu_ld=yes
17824    ;;
17825  openbsd*)
17826    with_gnu_ld=no
17827    ;;
17828  esac
17829
17830  ld_shlibs_GCJ=yes
17831  if test "$with_gnu_ld" = yes; then
17832    # If archive_cmds runs LD, not CC, wlarc should be empty
17833    wlarc='${wl}'
17834
17835    # Set some defaults for GNU ld with shared library support. These
17836    # are reset later if shared libraries are not supported. Putting them
17837    # here allows them to be overridden if necessary.
17838    runpath_var=LD_RUN_PATH
17839    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17840    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17841    # ancient GNU ld didn't support --whole-archive et. al.
17842    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17843	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17844      else
17845  	whole_archive_flag_spec_GCJ=
17846    fi
17847    supports_anon_versioning=no
17848    case `$LD -v 2>/dev/null` in
17849      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17850      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17851      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17852      *\ 2.11.*) ;; # other 2.11 versions
17853      *) supports_anon_versioning=yes ;;
17854    esac
17855
17856    # See if GNU ld supports shared libraries.
17857    case $host_os in
17858    aix3* | aix4* | aix5*)
17859      # On AIX/PPC, the GNU linker is very broken
17860      if test "$host_cpu" != ia64; then
17861	ld_shlibs_GCJ=no
17862	cat <<EOF 1>&2
17863
17864*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17865*** to be unable to reliably create shared libraries on AIX.
17866*** Therefore, libtool is disabling shared libraries support.  If you
17867*** really care for shared libraries, you may want to modify your PATH
17868*** so that a non-GNU linker is found, and then restart.
17869
17870EOF
17871      fi
17872      ;;
17873
17874    amigaos*)
17875      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)'
17876      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877      hardcode_minus_L_GCJ=yes
17878
17879      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17880      # that the semantics of dynamic libraries on AmigaOS, at least up
17881      # to version 4, is to share data among multiple programs linked
17882      # with the same dynamic library.  Since this doesn't match the
17883      # behavior of shared libraries on other platforms, we can't use
17884      # them.
17885      ld_shlibs_GCJ=no
17886      ;;
17887
17888    beos*)
17889      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17890	allow_undefined_flag_GCJ=unsupported
17891	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17892	# support --undefined.  This deserves some investigation.  FIXME
17893	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17894      else
17895	ld_shlibs_GCJ=no
17896      fi
17897      ;;
17898
17899    cygwin* | mingw* | pw32*)
17900      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17901      # as there is no search path for DLLs.
17902      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17903      allow_undefined_flag_GCJ=unsupported
17904      always_export_symbols_GCJ=no
17905      enable_shared_with_static_runtimes_GCJ=yes
17906      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17907
17908      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17909        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17910	# If the export-symbols file already is a .def file (1st line
17911	# is EXPORTS), use it as is; otherwise, prepend...
17912	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17913	  cp $export_symbols $output_objdir/$soname.def;
17914	else
17915	  echo EXPORTS > $output_objdir/$soname.def;
17916	  cat $export_symbols >> $output_objdir/$soname.def;
17917	fi~
17918	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17919      else
17920	ld_shlibs_GCJ=no
17921      fi
17922      ;;
17923
17924    interix3*)
17925      hardcode_direct_GCJ=no
17926      hardcode_shlibpath_var_GCJ=no
17927      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17928      export_dynamic_flag_spec_GCJ='${wl}-E'
17929      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17930      # Instead, shared libraries are loaded at an image base (0x10000000 by
17931      # default) and relocated if they conflict, which is a slow very memory
17932      # consuming and fragmenting process.  To avoid this, we pick a random,
17933      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17934      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17935      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'
17936      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'
17937      ;;
17938
17939    linux*)
17940      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17941	tmp_addflag=
17942	case $cc_basename,$host_cpu in
17943	pgcc*)				# Portland Group C compiler
17944	  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'
17945	  tmp_addflag=' $pic_flag'
17946	  ;;
17947	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17948	  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'
17949	  tmp_addflag=' $pic_flag -Mnomain' ;;
17950	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17951	  tmp_addflag=' -i_dynamic' ;;
17952	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17953	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17954	ifc* | ifort*)			# Intel Fortran compiler
17955	  tmp_addflag=' -nofor_main' ;;
17956	esac
17957	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17958
17959	if test $supports_anon_versioning = yes; then
17960	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17961  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17962  $echo "local: *; };" >> $output_objdir/$libname.ver~
17963	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17964	fi
17965      else
17966	ld_shlibs_GCJ=no
17967      fi
17968      ;;
17969
17970    netbsd*)
17971      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17972	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17973	wlarc=
17974      else
17975	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17976	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17977      fi
17978      ;;
17979
17980    solaris*)
17981      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17982	ld_shlibs_GCJ=no
17983	cat <<EOF 1>&2
17984
17985*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17986*** create shared libraries on Solaris systems.  Therefore, libtool
17987*** is disabling shared libraries support.  We urge you to upgrade GNU
17988*** binutils to release 2.9.1 or newer.  Another option is to modify
17989*** your PATH or compiler configuration so that the native linker is
17990*** used, and then restart.
17991
17992EOF
17993      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17994	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17995	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17996      else
17997	ld_shlibs_GCJ=no
17998      fi
17999      ;;
18000
18001    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18002      case `$LD -v 2>&1` in
18003        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18004	ld_shlibs_GCJ=no
18005	cat <<_LT_EOF 1>&2
18006
18007*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18008*** reliably create shared libraries on SCO systems.  Therefore, libtool
18009*** is disabling shared libraries support.  We urge you to upgrade GNU
18010*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18011*** your PATH or compiler configuration so that the native linker is
18012*** used, and then restart.
18013
18014_LT_EOF
18015	;;
18016	*)
18017	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18018	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18019	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18020	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18021	  else
18022	    ld_shlibs_GCJ=no
18023	  fi
18024	;;
18025      esac
18026      ;;
18027
18028    sunos4*)
18029      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18030      wlarc=
18031      hardcode_direct_GCJ=yes
18032      hardcode_shlibpath_var_GCJ=no
18033      ;;
18034
18035    *)
18036      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18037	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18038	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18039      else
18040	ld_shlibs_GCJ=no
18041      fi
18042      ;;
18043    esac
18044
18045    if test "$ld_shlibs_GCJ" = no; then
18046      runpath_var=
18047      hardcode_libdir_flag_spec_GCJ=
18048      export_dynamic_flag_spec_GCJ=
18049      whole_archive_flag_spec_GCJ=
18050    fi
18051  else
18052    # PORTME fill in a description of your system's linker (not GNU ld)
18053    case $host_os in
18054    aix3*)
18055      allow_undefined_flag_GCJ=unsupported
18056      always_export_symbols_GCJ=yes
18057      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'
18058      # Note: this linker hardcodes the directories in LIBPATH if there
18059      # are no directories specified by -L.
18060      hardcode_minus_L_GCJ=yes
18061      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18062	# Neither direct hardcoding nor static linking is supported with a
18063	# broken collect2.
18064	hardcode_direct_GCJ=unsupported
18065      fi
18066      ;;
18067
18068    aix4* | aix5*)
18069      if test "$host_cpu" = ia64; then
18070	# On IA64, the linker does run time linking by default, so we don't
18071	# have to do anything special.
18072	aix_use_runtimelinking=no
18073	exp_sym_flag='-Bexport'
18074	no_entry_flag=""
18075      else
18076	# If we're using GNU nm, then we don't want the "-C" option.
18077	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18078	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18079	  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'
18080	else
18081	  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'
18082	fi
18083	aix_use_runtimelinking=no
18084
18085	# Test if we are trying to use run time linking or normal
18086	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18087	# need to do runtime linking.
18088	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18089	  for ld_flag in $LDFLAGS; do
18090  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18091  	    aix_use_runtimelinking=yes
18092  	    break
18093  	  fi
18094	  done
18095	  ;;
18096	esac
18097
18098	exp_sym_flag='-bexport'
18099	no_entry_flag='-bnoentry'
18100      fi
18101
18102      # When large executables or shared objects are built, AIX ld can
18103      # have problems creating the table of contents.  If linking a library
18104      # or program results in "error TOC overflow" add -mminimal-toc to
18105      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18106      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18107
18108      archive_cmds_GCJ=''
18109      hardcode_direct_GCJ=yes
18110      hardcode_libdir_separator_GCJ=':'
18111      link_all_deplibs_GCJ=yes
18112
18113      if test "$GCC" = yes; then
18114	case $host_os in aix4.[012]|aix4.[012].*)
18115	# We only want to do this on AIX 4.2 and lower, the check
18116	# below for broken collect2 doesn't work under 4.3+
18117	  collect2name=`${CC} -print-prog-name=collect2`
18118	  if test -f "$collect2name" && \
18119  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18120	  then
18121  	  # We have reworked collect2
18122  	  hardcode_direct_GCJ=yes
18123	  else
18124  	  # We have old collect2
18125  	  hardcode_direct_GCJ=unsupported
18126  	  # It fails to find uninstalled libraries when the uninstalled
18127  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18128  	  # to unsupported forces relinking
18129  	  hardcode_minus_L_GCJ=yes
18130  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131  	  hardcode_libdir_separator_GCJ=
18132	  fi
18133	  ;;
18134	esac
18135	shared_flag='-shared'
18136	if test "$aix_use_runtimelinking" = yes; then
18137	  shared_flag="$shared_flag "'${wl}-G'
18138	fi
18139      else
18140	# not using gcc
18141	if test "$host_cpu" = ia64; then
18142  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18143  	# chokes on -Wl,-G. The following line is correct:
18144	  shared_flag='-G'
18145	else
18146	  if test "$aix_use_runtimelinking" = yes; then
18147	    shared_flag='${wl}-G'
18148	  else
18149	    shared_flag='${wl}-bM:SRE'
18150	  fi
18151	fi
18152      fi
18153
18154      # It seems that -bexpall does not export symbols beginning with
18155      # underscore (_), so it is better to generate a list of symbols to export.
18156      always_export_symbols_GCJ=yes
18157      if test "$aix_use_runtimelinking" = yes; then
18158	# Warning - without using the other runtime loading flags (-brtl),
18159	# -berok will link without error, but may produce a broken library.
18160	allow_undefined_flag_GCJ='-berok'
18161       # Determine the default libpath from the value encoded in an empty executable.
18162       cat >conftest.$ac_ext <<_ACEOF
18163/* confdefs.h.  */
18164_ACEOF
18165cat confdefs.h >>conftest.$ac_ext
18166cat >>conftest.$ac_ext <<_ACEOF
18167/* end confdefs.h.  */
18168
18169int
18170main ()
18171{
18172
18173  ;
18174  return 0;
18175}
18176_ACEOF
18177rm -f conftest.$ac_objext conftest$ac_exeext
18178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18179  (eval $ac_link) 2>conftest.er1
18180  ac_status=$?
18181  grep -v '^ *+' conftest.er1 >conftest.err
18182  rm -f conftest.er1
18183  cat conftest.err >&5
18184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185  (exit $ac_status); } &&
18186	 { ac_try='test -z "$ac_c_werror_flag"
18187			 || test ! -s conftest.err'
18188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189  (eval $ac_try) 2>&5
18190  ac_status=$?
18191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192  (exit $ac_status); }; } &&
18193	 { ac_try='test -s conftest$ac_exeext'
18194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195  (eval $ac_try) 2>&5
18196  ac_status=$?
18197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198  (exit $ac_status); }; }; then
18199
18200aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18201}'`
18202# Check for a 64-bit object if we didn't find anything.
18203if 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; }
18204}'`; fi
18205else
18206  echo "$as_me: failed program was:" >&5
18207sed 's/^/| /' conftest.$ac_ext >&5
18208
18209fi
18210rm -f conftest.err conftest.$ac_objext \
18211      conftest$ac_exeext conftest.$ac_ext
18212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18213
18214       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18215	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"
18216       else
18217	if test "$host_cpu" = ia64; then
18218	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18219	  allow_undefined_flag_GCJ="-z nodefs"
18220	  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"
18221	else
18222	 # Determine the default libpath from the value encoded in an empty executable.
18223	 cat >conftest.$ac_ext <<_ACEOF
18224/* confdefs.h.  */
18225_ACEOF
18226cat confdefs.h >>conftest.$ac_ext
18227cat >>conftest.$ac_ext <<_ACEOF
18228/* end confdefs.h.  */
18229
18230int
18231main ()
18232{
18233
18234  ;
18235  return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
18239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18240  (eval $ac_link) 2>conftest.er1
18241  ac_status=$?
18242  grep -v '^ *+' conftest.er1 >conftest.err
18243  rm -f conftest.er1
18244  cat conftest.err >&5
18245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246  (exit $ac_status); } &&
18247	 { ac_try='test -z "$ac_c_werror_flag"
18248			 || test ! -s conftest.err'
18249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250  (eval $ac_try) 2>&5
18251  ac_status=$?
18252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253  (exit $ac_status); }; } &&
18254	 { ac_try='test -s conftest$ac_exeext'
18255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256  (eval $ac_try) 2>&5
18257  ac_status=$?
18258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259  (exit $ac_status); }; }; then
18260
18261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18262}'`
18263# Check for a 64-bit object if we didn't find anything.
18264if 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; }
18265}'`; fi
18266else
18267  echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270fi
18271rm -f conftest.err conftest.$ac_objext \
18272      conftest$ac_exeext conftest.$ac_ext
18273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18274
18275	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18276	  # Warning - without using the other run time loading flags,
18277	  # -berok will link without error, but may produce a broken library.
18278	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18279	  allow_undefined_flag_GCJ=' ${wl}-berok'
18280	  # Exported symbols can be pulled into shared objects from archives
18281	  whole_archive_flag_spec_GCJ='$convenience'
18282	  archive_cmds_need_lc_GCJ=yes
18283	  # This is similar to how AIX traditionally builds its shared libraries.
18284	  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'
18285	fi
18286      fi
18287      ;;
18288
18289    amigaos*)
18290      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)'
18291      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18292      hardcode_minus_L_GCJ=yes
18293      # see comment about different semantics on the GNU ld section
18294      ld_shlibs_GCJ=no
18295      ;;
18296
18297    bsdi[45]*)
18298      export_dynamic_flag_spec_GCJ=-rdynamic
18299      ;;
18300
18301    cygwin* | mingw* | pw32*)
18302      # When not using gcc, we currently assume that we are using
18303      # Microsoft Visual C++.
18304      # hardcode_libdir_flag_spec is actually meaningless, as there is
18305      # no search path for DLLs.
18306      hardcode_libdir_flag_spec_GCJ=' '
18307      allow_undefined_flag_GCJ=unsupported
18308      # Tell ltmain to make .lib files, not .a files.
18309      libext=lib
18310      # Tell ltmain to make .dll files, not .so files.
18311      shrext_cmds=".dll"
18312      # FIXME: Setting linknames here is a bad hack.
18313      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18314      # The linker will automatically build a .lib file if we build a DLL.
18315      old_archive_From_new_cmds_GCJ='true'
18316      # FIXME: Should let the user specify the lib program.
18317      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18318      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18319      enable_shared_with_static_runtimes_GCJ=yes
18320      ;;
18321
18322    darwin* | rhapsody*)
18323      case $host_os in
18324        rhapsody* | darwin1.[012])
18325         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18326         ;;
18327       *) # Darwin 1.3 on
18328         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18329           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18330         else
18331           case ${MACOSX_DEPLOYMENT_TARGET} in
18332             10.[012])
18333               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18334               ;;
18335             10.*)
18336               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18337               ;;
18338           esac
18339         fi
18340         ;;
18341      esac
18342      archive_cmds_need_lc_GCJ=no
18343      hardcode_direct_GCJ=no
18344      hardcode_automatic_GCJ=yes
18345      hardcode_shlibpath_var_GCJ=unsupported
18346      whole_archive_flag_spec_GCJ=''
18347      link_all_deplibs_GCJ=yes
18348    if test "$GCC" = yes ; then
18349    	output_verbose_link_cmd='echo'
18350        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18351      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18352      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18353      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}'
18354      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}'
18355    else
18356      case $cc_basename in
18357        xlc*)
18358         output_verbose_link_cmd='echo'
18359         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18360         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18361          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18362         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}'
18363          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}'
18364          ;;
18365       *)
18366         ld_shlibs_GCJ=no
18367          ;;
18368      esac
18369    fi
18370      ;;
18371
18372    dgux*)
18373      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18375      hardcode_shlibpath_var_GCJ=no
18376      ;;
18377
18378    freebsd1*)
18379      ld_shlibs_GCJ=no
18380      ;;
18381
18382    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18383    # support.  Future versions do this automatically, but an explicit c++rt0.o
18384    # does not break anything, and helps significantly (at the cost of a little
18385    # extra space).
18386    freebsd2.2*)
18387      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18388      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18389      hardcode_direct_GCJ=yes
18390      hardcode_shlibpath_var_GCJ=no
18391      ;;
18392
18393    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18394    freebsd2*)
18395      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18396      hardcode_direct_GCJ=yes
18397      hardcode_minus_L_GCJ=yes
18398      hardcode_shlibpath_var_GCJ=no
18399      ;;
18400
18401    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18402    freebsd* | kfreebsd*-gnu | dragonfly*)
18403      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18404      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18405      hardcode_direct_GCJ=yes
18406      hardcode_shlibpath_var_GCJ=no
18407      ;;
18408
18409    hpux9*)
18410      if test "$GCC" = yes; then
18411	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'
18412      else
18413	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'
18414      fi
18415      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18416      hardcode_libdir_separator_GCJ=:
18417      hardcode_direct_GCJ=yes
18418
18419      # hardcode_minus_L: Not really in the search PATH,
18420      # but as the default location of the library.
18421      hardcode_minus_L_GCJ=yes
18422      export_dynamic_flag_spec_GCJ='${wl}-E'
18423      ;;
18424
18425    hpux10*)
18426      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18427	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18428      else
18429	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18430      fi
18431      if test "$with_gnu_ld" = no; then
18432	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18433	hardcode_libdir_separator_GCJ=:
18434
18435	hardcode_direct_GCJ=yes
18436	export_dynamic_flag_spec_GCJ='${wl}-E'
18437
18438	# hardcode_minus_L: Not really in the search PATH,
18439	# but as the default location of the library.
18440	hardcode_minus_L_GCJ=yes
18441      fi
18442      ;;
18443
18444    hpux11*)
18445      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18446	case $host_cpu in
18447	hppa*64*)
18448	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18449	  ;;
18450	ia64*)
18451	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18452	  ;;
18453	*)
18454	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18455	  ;;
18456	esac
18457      else
18458	case $host_cpu in
18459	hppa*64*)
18460	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18461	  ;;
18462	ia64*)
18463	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18464	  ;;
18465	*)
18466	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18467	  ;;
18468	esac
18469      fi
18470      if test "$with_gnu_ld" = no; then
18471	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18472	hardcode_libdir_separator_GCJ=:
18473
18474	case $host_cpu in
18475	hppa*64*|ia64*)
18476	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18477	  hardcode_direct_GCJ=no
18478	  hardcode_shlibpath_var_GCJ=no
18479	  ;;
18480	*)
18481	  hardcode_direct_GCJ=yes
18482	  export_dynamic_flag_spec_GCJ='${wl}-E'
18483
18484	  # hardcode_minus_L: Not really in the search PATH,
18485	  # but as the default location of the library.
18486	  hardcode_minus_L_GCJ=yes
18487	  ;;
18488	esac
18489      fi
18490      ;;
18491
18492    irix5* | irix6* | nonstopux*)
18493      if test "$GCC" = yes; then
18494	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'
18495      else
18496	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'
18497	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18498      fi
18499      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18500      hardcode_libdir_separator_GCJ=:
18501      link_all_deplibs_GCJ=yes
18502      ;;
18503
18504    netbsd*)
18505      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18506	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18507      else
18508	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18509      fi
18510      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18511      hardcode_direct_GCJ=yes
18512      hardcode_shlibpath_var_GCJ=no
18513      ;;
18514
18515    newsos6)
18516      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517      hardcode_direct_GCJ=yes
18518      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18519      hardcode_libdir_separator_GCJ=:
18520      hardcode_shlibpath_var_GCJ=no
18521      ;;
18522
18523    openbsd*)
18524      hardcode_direct_GCJ=yes
18525      hardcode_shlibpath_var_GCJ=no
18526      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18527	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18528	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18529	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18530	export_dynamic_flag_spec_GCJ='${wl}-E'
18531      else
18532       case $host_os in
18533	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18534	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18535	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18536	   ;;
18537	 *)
18538	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18539	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18540	   ;;
18541       esac
18542      fi
18543      ;;
18544
18545    os2*)
18546      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18547      hardcode_minus_L_GCJ=yes
18548      allow_undefined_flag_GCJ=unsupported
18549      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'
18550      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18551      ;;
18552
18553    osf3*)
18554      if test "$GCC" = yes; then
18555	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18556	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'
18557      else
18558	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18559	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'
18560      fi
18561      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18562      hardcode_libdir_separator_GCJ=:
18563      ;;
18564
18565    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18566      if test "$GCC" = yes; then
18567	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18568	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'
18569	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18570      else
18571	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18572	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'
18573	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~
18574	$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'
18575
18576	# Both c and cxx compiler support -rpath directly
18577	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18578      fi
18579      hardcode_libdir_separator_GCJ=:
18580      ;;
18581
18582    solaris*)
18583      no_undefined_flag_GCJ=' -z text'
18584      if test "$GCC" = yes; then
18585	wlarc='${wl}'
18586	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18587	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18588	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18589      else
18590	wlarc=''
18591	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18592	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18593  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18594      fi
18595      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18596      hardcode_shlibpath_var_GCJ=no
18597      case $host_os in
18598      solaris2.[0-5] | solaris2.[0-5].*) ;;
18599      *)
18600 	# The compiler driver will combine linker options so we
18601 	# cannot just pass the convience library names through
18602 	# without $wl, iff we do not link with $LD.
18603 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18604 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18605 	case $wlarc in
18606 	'')
18607 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18608 	*)
18609 	  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' ;;
18610 	esac ;;
18611      esac
18612      link_all_deplibs_GCJ=yes
18613      ;;
18614
18615    sunos4*)
18616      if test "x$host_vendor" = xsequent; then
18617	# Use $CC to link under sequent, because it throws in some extra .o
18618	# files that make .init and .fini sections work.
18619	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18620      else
18621	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18622      fi
18623      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18624      hardcode_direct_GCJ=yes
18625      hardcode_minus_L_GCJ=yes
18626      hardcode_shlibpath_var_GCJ=no
18627      ;;
18628
18629    sysv4)
18630      case $host_vendor in
18631	sni)
18632	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18633	  hardcode_direct_GCJ=yes # is this really true???
18634	;;
18635	siemens)
18636	  ## LD is ld it makes a PLAMLIB
18637	  ## CC just makes a GrossModule.
18638	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18639	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18640	  hardcode_direct_GCJ=no
18641        ;;
18642	motorola)
18643	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18644	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18645	;;
18646      esac
18647      runpath_var='LD_RUN_PATH'
18648      hardcode_shlibpath_var_GCJ=no
18649      ;;
18650
18651    sysv4.3*)
18652      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18653      hardcode_shlibpath_var_GCJ=no
18654      export_dynamic_flag_spec_GCJ='-Bexport'
18655      ;;
18656
18657    sysv4*MP*)
18658      if test -d /usr/nec; then
18659	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18660	hardcode_shlibpath_var_GCJ=no
18661	runpath_var=LD_RUN_PATH
18662	hardcode_runpath_var=yes
18663	ld_shlibs_GCJ=yes
18664      fi
18665      ;;
18666
18667    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18668      no_undefined_flag_GCJ='${wl}-z,text'
18669      archive_cmds_need_lc_GCJ=no
18670      hardcode_shlibpath_var_GCJ=no
18671      runpath_var='LD_RUN_PATH'
18672
18673      if test "$GCC" = yes; then
18674	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18675	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18676      else
18677	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18678	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18679      fi
18680      ;;
18681
18682    sysv5* | sco3.2v5* | sco5v6*)
18683      # Note: We can NOT use -z defs as we might desire, because we do not
18684      # link with -lc, and that would cause any symbols used from libc to
18685      # always be unresolved, which means just about no library would
18686      # ever link correctly.  If we're not using GNU ld we use -z text
18687      # though, which does catch some bad symbols but isn't as heavy-handed
18688      # as -z defs.
18689      no_undefined_flag_GCJ='${wl}-z,text'
18690      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18691      archive_cmds_need_lc_GCJ=no
18692      hardcode_shlibpath_var_GCJ=no
18693      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18694      hardcode_libdir_separator_GCJ=':'
18695      link_all_deplibs_GCJ=yes
18696      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18697      runpath_var='LD_RUN_PATH'
18698
18699      if test "$GCC" = yes; then
18700	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18702      else
18703	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18704	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18705      fi
18706      ;;
18707
18708    uts4*)
18709      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18710      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18711      hardcode_shlibpath_var_GCJ=no
18712      ;;
18713
18714    *)
18715      ld_shlibs_GCJ=no
18716      ;;
18717    esac
18718  fi
18719
18720echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18721echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18722test "$ld_shlibs_GCJ" = no && can_build_shared=no
18723
18724#
18725# Do we need to explicitly link libc?
18726#
18727case "x$archive_cmds_need_lc_GCJ" in
18728x|xyes)
18729  # Assume -lc should be added
18730  archive_cmds_need_lc_GCJ=yes
18731
18732  if test "$enable_shared" = yes && test "$GCC" = yes; then
18733    case $archive_cmds_GCJ in
18734    *'~'*)
18735      # FIXME: we may have to deal with multi-command sequences.
18736      ;;
18737    '$CC '*)
18738      # Test whether the compiler implicitly links with -lc since on some
18739      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18740      # to ld, don't add -lc before -lgcc.
18741      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18742echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18743      $rm conftest*
18744      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18745
18746      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747  (eval $ac_compile) 2>&5
18748  ac_status=$?
18749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750  (exit $ac_status); } 2>conftest.err; then
18751        soname=conftest
18752        lib=conftest
18753        libobjs=conftest.$ac_objext
18754        deplibs=
18755        wl=$lt_prog_compiler_wl_GCJ
18756	pic_flag=$lt_prog_compiler_pic_GCJ
18757        compiler_flags=-v
18758        linker_flags=-v
18759        verstring=
18760        output_objdir=.
18761        libname=conftest
18762        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18763        allow_undefined_flag_GCJ=
18764        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18765  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18766  ac_status=$?
18767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768  (exit $ac_status); }
18769        then
18770	  archive_cmds_need_lc_GCJ=no
18771        else
18772	  archive_cmds_need_lc_GCJ=yes
18773        fi
18774        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18775      else
18776        cat conftest.err 1>&5
18777      fi
18778      $rm conftest*
18779      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18780echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18781      ;;
18782    esac
18783  fi
18784  ;;
18785esac
18786
18787echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18788echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18789library_names_spec=
18790libname_spec='lib$name'
18791soname_spec=
18792shrext_cmds=".so"
18793postinstall_cmds=
18794postuninstall_cmds=
18795finish_cmds=
18796finish_eval=
18797shlibpath_var=
18798shlibpath_overrides_runpath=unknown
18799version_type=none
18800dynamic_linker="$host_os ld.so"
18801sys_lib_dlsearch_path_spec="/lib /usr/lib"
18802if test "$GCC" = yes; then
18803  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18804  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18805    # if the path contains ";" then we assume it to be the separator
18806    # otherwise default to the standard path separator (i.e. ":") - it is
18807    # assumed that no part of a normal pathname contains ";" but that should
18808    # okay in the real world where ";" in dirpaths is itself problematic.
18809    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18810  else
18811    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18812  fi
18813else
18814  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18815fi
18816need_lib_prefix=unknown
18817hardcode_into_libs=no
18818
18819# when you set need_version to no, make sure it does not cause -set_version
18820# flags to be left without arguments
18821need_version=unknown
18822
18823case $host_os in
18824aix3*)
18825  version_type=linux
18826  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18827  shlibpath_var=LIBPATH
18828
18829  # AIX 3 has no versioning support, so we append a major version to the name.
18830  soname_spec='${libname}${release}${shared_ext}$major'
18831  ;;
18832
18833aix4* | aix5*)
18834  version_type=linux
18835  need_lib_prefix=no
18836  need_version=no
18837  hardcode_into_libs=yes
18838  if test "$host_cpu" = ia64; then
18839    # AIX 5 supports IA64
18840    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18841    shlibpath_var=LD_LIBRARY_PATH
18842  else
18843    # With GCC up to 2.95.x, collect2 would create an import file
18844    # for dependence libraries.  The import file would start with
18845    # the line `#! .'.  This would cause the generated library to
18846    # depend on `.', always an invalid library.  This was fixed in
18847    # development snapshots of GCC prior to 3.0.
18848    case $host_os in
18849      aix4 | aix4.[01] | aix4.[01].*)
18850      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18851	   echo ' yes '
18852	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18853	:
18854      else
18855	can_build_shared=no
18856      fi
18857      ;;
18858    esac
18859    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18860    # soname into executable. Probably we can add versioning support to
18861    # collect2, so additional links can be useful in future.
18862    if test "$aix_use_runtimelinking" = yes; then
18863      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18864      # instead of lib<name>.a to let people know that these are not
18865      # typical AIX shared libraries.
18866      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867    else
18868      # We preserve .a as extension for shared libraries through AIX4.2
18869      # and later when we are not doing run time linking.
18870      library_names_spec='${libname}${release}.a $libname.a'
18871      soname_spec='${libname}${release}${shared_ext}$major'
18872    fi
18873    shlibpath_var=LIBPATH
18874  fi
18875  ;;
18876
18877amigaos*)
18878  library_names_spec='$libname.ixlibrary $libname.a'
18879  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18880  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'
18881  ;;
18882
18883beos*)
18884  library_names_spec='${libname}${shared_ext}'
18885  dynamic_linker="$host_os ld.so"
18886  shlibpath_var=LIBRARY_PATH
18887  ;;
18888
18889bsdi[45]*)
18890  version_type=linux
18891  need_version=no
18892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18893  soname_spec='${libname}${release}${shared_ext}$major'
18894  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18895  shlibpath_var=LD_LIBRARY_PATH
18896  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18897  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18898  # the default ld.so.conf also contains /usr/contrib/lib and
18899  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18900  # libtool to hard-code these into programs
18901  ;;
18902
18903cygwin* | mingw* | pw32*)
18904  version_type=windows
18905  shrext_cmds=".dll"
18906  need_version=no
18907  need_lib_prefix=no
18908
18909  case $GCC,$host_os in
18910  yes,cygwin* | yes,mingw* | yes,pw32*)
18911    library_names_spec='$libname.dll.a'
18912    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18913    postinstall_cmds='base_file=`basename \${file}`~
18914      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18915      dldir=$destdir/`dirname \$dlpath`~
18916      test -d \$dldir || mkdir -p \$dldir~
18917      $install_prog $dir/$dlname \$dldir/$dlname~
18918      chmod a+x \$dldir/$dlname'
18919    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18920      dlpath=$dir/\$dldll~
18921       $rm \$dlpath'
18922    shlibpath_overrides_runpath=yes
18923
18924    case $host_os in
18925    cygwin*)
18926      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18927      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18928      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18929      ;;
18930    mingw*)
18931      # MinGW DLLs use traditional 'lib' prefix
18932      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18934      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18935        # It is most probably a Windows format PATH printed by
18936        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18937        # path with ; separators, and with drive letters. We can handle the
18938        # drive letters (cygwin fileutils understands them), so leave them,
18939        # especially as we might pass files found there to a mingw objdump,
18940        # which wouldn't understand a cygwinified path. Ahh.
18941        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18942      else
18943        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18944      fi
18945      ;;
18946    pw32*)
18947      # pw32 DLLs use 'pw' prefix rather than 'lib'
18948      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18949      ;;
18950    esac
18951    ;;
18952
18953  *)
18954    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18955    ;;
18956  esac
18957  dynamic_linker='Win32 ld.exe'
18958  # FIXME: first we should search . and the directory the executable is in
18959  shlibpath_var=PATH
18960  ;;
18961
18962darwin* | rhapsody*)
18963  dynamic_linker="$host_os dyld"
18964  version_type=darwin
18965  need_lib_prefix=no
18966  need_version=no
18967  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18968  soname_spec='${libname}${release}${major}$shared_ext'
18969  shlibpath_overrides_runpath=yes
18970  shlibpath_var=DYLD_LIBRARY_PATH
18971  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18972  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18973  if test "$GCC" = yes; then
18974    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"`
18975  else
18976    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18977  fi
18978  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18979  ;;
18980
18981dgux*)
18982  version_type=linux
18983  need_lib_prefix=no
18984  need_version=no
18985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18986  soname_spec='${libname}${release}${shared_ext}$major'
18987  shlibpath_var=LD_LIBRARY_PATH
18988  ;;
18989
18990freebsd1*)
18991  dynamic_linker=no
18992  ;;
18993
18994kfreebsd*-gnu)
18995  version_type=linux
18996  need_lib_prefix=no
18997  need_version=no
18998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18999  soname_spec='${libname}${release}${shared_ext}$major'
19000  shlibpath_var=LD_LIBRARY_PATH
19001  shlibpath_overrides_runpath=no
19002  hardcode_into_libs=yes
19003  dynamic_linker='GNU ld.so'
19004  ;;
19005
19006freebsd* | dragonfly*)
19007  # DragonFly does not have aout.  When/if they implement a new
19008  # versioning mechanism, adjust this.
19009  if test -x /usr/bin/objformat; then
19010    objformat=`/usr/bin/objformat`
19011  else
19012    case $host_os in
19013    freebsd[123]*) objformat=aout ;;
19014    *) objformat=elf ;;
19015    esac
19016  fi
19017  version_type=freebsd-$objformat
19018  case $version_type in
19019    freebsd-elf*)
19020      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19021      need_version=no
19022      need_lib_prefix=no
19023      ;;
19024    freebsd-*)
19025      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19026      need_version=yes
19027      ;;
19028  esac
19029  shlibpath_var=LD_LIBRARY_PATH
19030  case $host_os in
19031  freebsd2*)
19032    shlibpath_overrides_runpath=yes
19033    ;;
19034  freebsd3.[01]* | freebsdelf3.[01]*)
19035    shlibpath_overrides_runpath=yes
19036    hardcode_into_libs=yes
19037    ;;
19038  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19039  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19040    shlibpath_overrides_runpath=no
19041    hardcode_into_libs=yes
19042    ;;
19043  freebsd*) # from 4.6 on
19044    shlibpath_overrides_runpath=yes
19045    hardcode_into_libs=yes
19046    ;;
19047  esac
19048  ;;
19049
19050gnu*)
19051  version_type=linux
19052  need_lib_prefix=no
19053  need_version=no
19054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19055  soname_spec='${libname}${release}${shared_ext}$major'
19056  shlibpath_var=LD_LIBRARY_PATH
19057  hardcode_into_libs=yes
19058  ;;
19059
19060hpux9* | hpux10* | hpux11*)
19061  # Give a soname corresponding to the major version so that dld.sl refuses to
19062  # link against other versions.
19063  version_type=sunos
19064  need_lib_prefix=no
19065  need_version=no
19066  case $host_cpu in
19067  ia64*)
19068    shrext_cmds='.so'
19069    hardcode_into_libs=yes
19070    dynamic_linker="$host_os dld.so"
19071    shlibpath_var=LD_LIBRARY_PATH
19072    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19073    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19074    soname_spec='${libname}${release}${shared_ext}$major'
19075    if test "X$HPUX_IA64_MODE" = X32; then
19076      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19077    else
19078      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19079    fi
19080    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19081    ;;
19082   hppa*64*)
19083     shrext_cmds='.sl'
19084     hardcode_into_libs=yes
19085     dynamic_linker="$host_os dld.sl"
19086     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19087     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089     soname_spec='${libname}${release}${shared_ext}$major'
19090     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19091     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19092     ;;
19093   *)
19094    shrext_cmds='.sl'
19095    dynamic_linker="$host_os dld.sl"
19096    shlibpath_var=SHLIB_PATH
19097    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099    soname_spec='${libname}${release}${shared_ext}$major'
19100    ;;
19101  esac
19102  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19103  postinstall_cmds='chmod 555 $lib'
19104  ;;
19105
19106interix3*)
19107  version_type=linux
19108  need_lib_prefix=no
19109  need_version=no
19110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19111  soname_spec='${libname}${release}${shared_ext}$major'
19112  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19113  shlibpath_var=LD_LIBRARY_PATH
19114  shlibpath_overrides_runpath=no
19115  hardcode_into_libs=yes
19116  ;;
19117
19118irix5* | irix6* | nonstopux*)
19119  case $host_os in
19120    nonstopux*) version_type=nonstopux ;;
19121    *)
19122	if test "$lt_cv_prog_gnu_ld" = yes; then
19123		version_type=linux
19124	else
19125		version_type=irix
19126	fi ;;
19127  esac
19128  need_lib_prefix=no
19129  need_version=no
19130  soname_spec='${libname}${release}${shared_ext}$major'
19131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19132  case $host_os in
19133  irix5* | nonstopux*)
19134    libsuff= shlibsuff=
19135    ;;
19136  *)
19137    case $LD in # libtool.m4 will add one of these switches to LD
19138    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19139      libsuff= shlibsuff= libmagic=32-bit;;
19140    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19141      libsuff=32 shlibsuff=N32 libmagic=N32;;
19142    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19143      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19144    *) libsuff= shlibsuff= libmagic=never-match;;
19145    esac
19146    ;;
19147  esac
19148  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19149  shlibpath_overrides_runpath=no
19150  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19151  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19152  hardcode_into_libs=yes
19153  ;;
19154
19155# No shared lib support for Linux oldld, aout, or coff.
19156linux*oldld* | linux*aout* | linux*coff*)
19157  dynamic_linker=no
19158  ;;
19159
19160# This must be Linux ELF.
19161linux*)
19162  version_type=linux
19163  need_lib_prefix=no
19164  need_version=no
19165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19166  soname_spec='${libname}${release}${shared_ext}$major'
19167  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19168  shlibpath_var=LD_LIBRARY_PATH
19169  shlibpath_overrides_runpath=no
19170  # This implies no fast_install, which is unacceptable.
19171  # Some rework will be needed to allow for fast_install
19172  # before this can be enabled.
19173  hardcode_into_libs=yes
19174
19175  # Append ld.so.conf contents to the search path
19176  if test -f /etc/ld.so.conf; then
19177    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' ' '`
19178    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19179  fi
19180
19181  # We used to test for /lib/ld.so.1 and disable shared libraries on
19182  # powerpc, because MkLinux only supported shared libraries with the
19183  # GNU dynamic linker.  Since this was broken with cross compilers,
19184  # most powerpc-linux boxes support dynamic linking these days and
19185  # people can always --disable-shared, the test was removed, and we
19186  # assume the GNU/Linux dynamic linker is in use.
19187  dynamic_linker='GNU/Linux ld.so'
19188  ;;
19189
19190knetbsd*-gnu)
19191  version_type=linux
19192  need_lib_prefix=no
19193  need_version=no
19194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19195  soname_spec='${libname}${release}${shared_ext}$major'
19196  shlibpath_var=LD_LIBRARY_PATH
19197  shlibpath_overrides_runpath=no
19198  hardcode_into_libs=yes
19199  dynamic_linker='GNU ld.so'
19200  ;;
19201
19202netbsd*)
19203  version_type=sunos
19204  need_lib_prefix=no
19205  need_version=no
19206  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19207    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19208    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19209    dynamic_linker='NetBSD (a.out) ld.so'
19210  else
19211    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19212    soname_spec='${libname}${release}${shared_ext}$major'
19213    dynamic_linker='NetBSD ld.elf_so'
19214  fi
19215  shlibpath_var=LD_LIBRARY_PATH
19216  shlibpath_overrides_runpath=yes
19217  hardcode_into_libs=yes
19218  ;;
19219
19220newsos6)
19221  version_type=linux
19222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223  shlibpath_var=LD_LIBRARY_PATH
19224  shlibpath_overrides_runpath=yes
19225  ;;
19226
19227nto-qnx*)
19228  version_type=linux
19229  need_lib_prefix=no
19230  need_version=no
19231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232  soname_spec='${libname}${release}${shared_ext}$major'
19233  shlibpath_var=LD_LIBRARY_PATH
19234  shlibpath_overrides_runpath=yes
19235  ;;
19236
19237openbsd*)
19238  version_type=sunos
19239  sys_lib_dlsearch_path_spec="/usr/lib"
19240  need_lib_prefix=no
19241  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19242  case $host_os in
19243    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19244    *)                         need_version=no  ;;
19245  esac
19246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19247  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19248  shlibpath_var=LD_LIBRARY_PATH
19249  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19250    case $host_os in
19251      openbsd2.[89] | openbsd2.[89].*)
19252	shlibpath_overrides_runpath=no
19253	;;
19254      *)
19255	shlibpath_overrides_runpath=yes
19256	;;
19257      esac
19258  else
19259    shlibpath_overrides_runpath=yes
19260  fi
19261  ;;
19262
19263os2*)
19264  libname_spec='$name'
19265  shrext_cmds=".dll"
19266  need_lib_prefix=no
19267  library_names_spec='$libname${shared_ext} $libname.a'
19268  dynamic_linker='OS/2 ld.exe'
19269  shlibpath_var=LIBPATH
19270  ;;
19271
19272osf3* | osf4* | osf5*)
19273  version_type=osf
19274  need_lib_prefix=no
19275  need_version=no
19276  soname_spec='${libname}${release}${shared_ext}$major'
19277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19278  shlibpath_var=LD_LIBRARY_PATH
19279  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19280  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19281  ;;
19282
19283solaris*)
19284  version_type=linux
19285  need_lib_prefix=no
19286  need_version=no
19287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19288  soname_spec='${libname}${release}${shared_ext}$major'
19289  shlibpath_var=LD_LIBRARY_PATH
19290  shlibpath_overrides_runpath=yes
19291  hardcode_into_libs=yes
19292  # ldd complains unless libraries are executable
19293  postinstall_cmds='chmod +x $lib'
19294  ;;
19295
19296sunos4*)
19297  version_type=sunos
19298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19299  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19300  shlibpath_var=LD_LIBRARY_PATH
19301  shlibpath_overrides_runpath=yes
19302  if test "$with_gnu_ld" = yes; then
19303    need_lib_prefix=no
19304  fi
19305  need_version=yes
19306  ;;
19307
19308sysv4 | sysv4.3*)
19309  version_type=linux
19310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19311  soname_spec='${libname}${release}${shared_ext}$major'
19312  shlibpath_var=LD_LIBRARY_PATH
19313  case $host_vendor in
19314    sni)
19315      shlibpath_overrides_runpath=no
19316      need_lib_prefix=no
19317      export_dynamic_flag_spec='${wl}-Blargedynsym'
19318      runpath_var=LD_RUN_PATH
19319      ;;
19320    siemens)
19321      need_lib_prefix=no
19322      ;;
19323    motorola)
19324      need_lib_prefix=no
19325      need_version=no
19326      shlibpath_overrides_runpath=no
19327      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19328      ;;
19329  esac
19330  ;;
19331
19332sysv4*MP*)
19333  if test -d /usr/nec ;then
19334    version_type=linux
19335    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19336    soname_spec='$libname${shared_ext}.$major'
19337    shlibpath_var=LD_LIBRARY_PATH
19338  fi
19339  ;;
19340
19341sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19342  version_type=freebsd-elf
19343  need_lib_prefix=no
19344  need_version=no
19345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19346  soname_spec='${libname}${release}${shared_ext}$major'
19347  shlibpath_var=LD_LIBRARY_PATH
19348  hardcode_into_libs=yes
19349  if test "$with_gnu_ld" = yes; then
19350    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19351    shlibpath_overrides_runpath=no
19352  else
19353    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19354    shlibpath_overrides_runpath=yes
19355    case $host_os in
19356      sco3.2v5*)
19357        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19358	;;
19359    esac
19360  fi
19361  sys_lib_dlsearch_path_spec='/usr/lib'
19362  ;;
19363
19364uts4*)
19365  version_type=linux
19366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367  soname_spec='${libname}${release}${shared_ext}$major'
19368  shlibpath_var=LD_LIBRARY_PATH
19369  ;;
19370
19371*)
19372  dynamic_linker=no
19373  ;;
19374esac
19375echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19376echo "${ECHO_T}$dynamic_linker" >&6
19377test "$dynamic_linker" = no && can_build_shared=no
19378
19379variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19380if test "$GCC" = yes; then
19381  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19382fi
19383
19384echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19385echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19386hardcode_action_GCJ=
19387if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19388   test -n "$runpath_var_GCJ" || \
19389   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19390
19391  # We can hardcode non-existant directories.
19392  if test "$hardcode_direct_GCJ" != no &&
19393     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19394     # have to relink, otherwise we might link with an installed library
19395     # when we should be linking with a yet-to-be-installed one
19396     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19397     test "$hardcode_minus_L_GCJ" != no; then
19398    # Linking always hardcodes the temporary library directory.
19399    hardcode_action_GCJ=relink
19400  else
19401    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19402    hardcode_action_GCJ=immediate
19403  fi
19404else
19405  # We cannot hardcode anything, or else we can only hardcode existing
19406  # directories.
19407  hardcode_action_GCJ=unsupported
19408fi
19409echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19410echo "${ECHO_T}$hardcode_action_GCJ" >&6
19411
19412if test "$hardcode_action_GCJ" = relink; then
19413  # Fast installation is not supported
19414  enable_fast_install=no
19415elif test "$shlibpath_overrides_runpath" = yes ||
19416     test "$enable_shared" = no; then
19417  # Fast installation is not necessary
19418  enable_fast_install=needless
19419fi
19420
19421
19422# The else clause should only fire when bootstrapping the
19423# libtool distribution, otherwise you forgot to ship ltmain.sh
19424# with your package, and you will get complaints that there are
19425# no rules to generate ltmain.sh.
19426if test -f "$ltmain"; then
19427  # See if we are running on zsh, and set the options which allow our commands through
19428  # without removal of \ escapes.
19429  if test -n "${ZSH_VERSION+set}" ; then
19430    setopt NO_GLOB_SUBST
19431  fi
19432  # Now quote all the things that may contain metacharacters while being
19433  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19434  # variables and quote the copies for generation of the libtool script.
19435  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19436    SED SHELL STRIP \
19437    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19438    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19439    deplibs_check_method reload_flag reload_cmds need_locks \
19440    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19441    lt_cv_sys_global_symbol_to_c_name_address \
19442    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19443    old_postinstall_cmds old_postuninstall_cmds \
19444    compiler_GCJ \
19445    CC_GCJ \
19446    LD_GCJ \
19447    lt_prog_compiler_wl_GCJ \
19448    lt_prog_compiler_pic_GCJ \
19449    lt_prog_compiler_static_GCJ \
19450    lt_prog_compiler_no_builtin_flag_GCJ \
19451    export_dynamic_flag_spec_GCJ \
19452    thread_safe_flag_spec_GCJ \
19453    whole_archive_flag_spec_GCJ \
19454    enable_shared_with_static_runtimes_GCJ \
19455    old_archive_cmds_GCJ \
19456    old_archive_from_new_cmds_GCJ \
19457    predep_objects_GCJ \
19458    postdep_objects_GCJ \
19459    predeps_GCJ \
19460    postdeps_GCJ \
19461    compiler_lib_search_path_GCJ \
19462    archive_cmds_GCJ \
19463    archive_expsym_cmds_GCJ \
19464    postinstall_cmds_GCJ \
19465    postuninstall_cmds_GCJ \
19466    old_archive_from_expsyms_cmds_GCJ \
19467    allow_undefined_flag_GCJ \
19468    no_undefined_flag_GCJ \
19469    export_symbols_cmds_GCJ \
19470    hardcode_libdir_flag_spec_GCJ \
19471    hardcode_libdir_flag_spec_ld_GCJ \
19472    hardcode_libdir_separator_GCJ \
19473    hardcode_automatic_GCJ \
19474    module_cmds_GCJ \
19475    module_expsym_cmds_GCJ \
19476    lt_cv_prog_compiler_c_o_GCJ \
19477    exclude_expsyms_GCJ \
19478    include_expsyms_GCJ; do
19479
19480    case $var in
19481    old_archive_cmds_GCJ | \
19482    old_archive_from_new_cmds_GCJ | \
19483    archive_cmds_GCJ | \
19484    archive_expsym_cmds_GCJ | \
19485    module_cmds_GCJ | \
19486    module_expsym_cmds_GCJ | \
19487    old_archive_from_expsyms_cmds_GCJ | \
19488    export_symbols_cmds_GCJ | \
19489    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19490    postinstall_cmds | postuninstall_cmds | \
19491    old_postinstall_cmds | old_postuninstall_cmds | \
19492    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19493      # Double-quote double-evaled strings.
19494      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19495      ;;
19496    *)
19497      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19498      ;;
19499    esac
19500  done
19501
19502  case $lt_echo in
19503  *'\$0 --fallback-echo"')
19504    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19505    ;;
19506  esac
19507
19508cfgfile="$ofile"
19509
19510  cat <<__EOF__ >> "$cfgfile"
19511# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19512
19513# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19514
19515# Shell to use when invoking shell scripts.
19516SHELL=$lt_SHELL
19517
19518# Whether or not to build shared libraries.
19519build_libtool_libs=$enable_shared
19520
19521# Whether or not to build static libraries.
19522build_old_libs=$enable_static
19523
19524# Whether or not to add -lc for building shared libraries.
19525build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19526
19527# Whether or not to disallow shared libs when runtime libs are static
19528allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19529
19530# Whether or not to optimize for fast installation.
19531fast_install=$enable_fast_install
19532
19533# The host system.
19534host_alias=$host_alias
19535host=$host
19536host_os=$host_os
19537
19538# The build system.
19539build_alias=$build_alias
19540build=$build
19541build_os=$build_os
19542
19543# An echo program that does not interpret backslashes.
19544echo=$lt_echo
19545
19546# The archiver.
19547AR=$lt_AR
19548AR_FLAGS=$lt_AR_FLAGS
19549
19550# A C compiler.
19551LTCC=$lt_LTCC
19552
19553# LTCC compiler flags.
19554LTCFLAGS=$lt_LTCFLAGS
19555
19556# A language-specific compiler.
19557CC=$lt_compiler_GCJ
19558
19559# Is the compiler the GNU C compiler?
19560with_gcc=$GCC_GCJ
19561
19562# An ERE matcher.
19563EGREP=$lt_EGREP
19564
19565# The linker used to build libraries.
19566LD=$lt_LD_GCJ
19567
19568# Whether we need hard or soft links.
19569LN_S=$lt_LN_S
19570
19571# A BSD-compatible nm program.
19572NM=$lt_NM
19573
19574# A symbol stripping program
19575STRIP=$lt_STRIP
19576
19577# Used to examine libraries when file_magic_cmd begins "file"
19578MAGIC_CMD=$MAGIC_CMD
19579
19580# Used on cygwin: DLL creation program.
19581DLLTOOL="$DLLTOOL"
19582
19583# Used on cygwin: object dumper.
19584OBJDUMP="$OBJDUMP"
19585
19586# Used on cygwin: assembler.
19587AS="$AS"
19588
19589# The name of the directory that contains temporary libtool files.
19590objdir=$objdir
19591
19592# How to create reloadable object files.
19593reload_flag=$lt_reload_flag
19594reload_cmds=$lt_reload_cmds
19595
19596# How to pass a linker flag through the compiler.
19597wl=$lt_lt_prog_compiler_wl_GCJ
19598
19599# Object file suffix (normally "o").
19600objext="$ac_objext"
19601
19602# Old archive suffix (normally "a").
19603libext="$libext"
19604
19605# Shared library suffix (normally ".so").
19606shrext_cmds='$shrext_cmds'
19607
19608# Executable file suffix (normally "").
19609exeext="$exeext"
19610
19611# Additional compiler flags for building library objects.
19612pic_flag=$lt_lt_prog_compiler_pic_GCJ
19613pic_mode=$pic_mode
19614
19615# What is the maximum length of a command?
19616max_cmd_len=$lt_cv_sys_max_cmd_len
19617
19618# Does compiler simultaneously support -c and -o options?
19619compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19620
19621# Must we lock files when doing compilation?
19622need_locks=$lt_need_locks
19623
19624# Do we need the lib prefix for modules?
19625need_lib_prefix=$need_lib_prefix
19626
19627# Do we need a version for libraries?
19628need_version=$need_version
19629
19630# Whether dlopen is supported.
19631dlopen_support=$enable_dlopen
19632
19633# Whether dlopen of programs is supported.
19634dlopen_self=$enable_dlopen_self
19635
19636# Whether dlopen of statically linked programs is supported.
19637dlopen_self_static=$enable_dlopen_self_static
19638
19639# Compiler flag to prevent dynamic linking.
19640link_static_flag=$lt_lt_prog_compiler_static_GCJ
19641
19642# Compiler flag to turn off builtin functions.
19643no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19644
19645# Compiler flag to allow reflexive dlopens.
19646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19647
19648# Compiler flag to generate shared objects directly from archives.
19649whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19650
19651# Compiler flag to generate thread-safe objects.
19652thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19653
19654# Library versioning type.
19655version_type=$version_type
19656
19657# Format of library name prefix.
19658libname_spec=$lt_libname_spec
19659
19660# List of archive names.  First name is the real one, the rest are links.
19661# The last name is the one that the linker finds with -lNAME.
19662library_names_spec=$lt_library_names_spec
19663
19664# The coded name of the library, if different from the real name.
19665soname_spec=$lt_soname_spec
19666
19667# Commands used to build and install an old-style archive.
19668RANLIB=$lt_RANLIB
19669old_archive_cmds=$lt_old_archive_cmds_GCJ
19670old_postinstall_cmds=$lt_old_postinstall_cmds
19671old_postuninstall_cmds=$lt_old_postuninstall_cmds
19672
19673# Create an old-style archive from a shared archive.
19674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19675
19676# Create a temporary old-style archive to link instead of a shared archive.
19677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19678
19679# Commands used to build and install a shared archive.
19680archive_cmds=$lt_archive_cmds_GCJ
19681archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19682postinstall_cmds=$lt_postinstall_cmds
19683postuninstall_cmds=$lt_postuninstall_cmds
19684
19685# Commands used to build a loadable module (assumed same as above if empty)
19686module_cmds=$lt_module_cmds_GCJ
19687module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19688
19689# Commands to strip libraries.
19690old_striplib=$lt_old_striplib
19691striplib=$lt_striplib
19692
19693# Dependencies to place before the objects being linked to create a
19694# shared library.
19695predep_objects=$lt_predep_objects_GCJ
19696
19697# Dependencies to place after the objects being linked to create a
19698# shared library.
19699postdep_objects=$lt_postdep_objects_GCJ
19700
19701# Dependencies to place before the objects being linked to create a
19702# shared library.
19703predeps=$lt_predeps_GCJ
19704
19705# Dependencies to place after the objects being linked to create a
19706# shared library.
19707postdeps=$lt_postdeps_GCJ
19708
19709# The library search path used internally by the compiler when linking
19710# a shared library.
19711compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19712
19713# Method to check whether dependent libraries are shared objects.
19714deplibs_check_method=$lt_deplibs_check_method
19715
19716# Command to use when deplibs_check_method == file_magic.
19717file_magic_cmd=$lt_file_magic_cmd
19718
19719# Flag that allows shared libraries with undefined symbols to be built.
19720allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19721
19722# Flag that forces no undefined symbols.
19723no_undefined_flag=$lt_no_undefined_flag_GCJ
19724
19725# Commands used to finish a libtool library installation in a directory.
19726finish_cmds=$lt_finish_cmds
19727
19728# Same as above, but a single script fragment to be evaled but not shown.
19729finish_eval=$lt_finish_eval
19730
19731# Take the output of nm and produce a listing of raw symbols and C names.
19732global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19733
19734# Transform the output of nm in a proper C declaration
19735global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19736
19737# Transform the output of nm in a C name address pair
19738global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19739
19740# This is the shared library runtime path variable.
19741runpath_var=$runpath_var
19742
19743# This is the shared library path variable.
19744shlibpath_var=$shlibpath_var
19745
19746# Is shlibpath searched before the hard-coded library search path?
19747shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19748
19749# How to hardcode a shared library path into an executable.
19750hardcode_action=$hardcode_action_GCJ
19751
19752# Whether we should hardcode library paths into libraries.
19753hardcode_into_libs=$hardcode_into_libs
19754
19755# Flag to hardcode \$libdir into a binary during linking.
19756# This must work even if \$libdir does not exist.
19757hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19758
19759# If ld is used when linking, flag to hardcode \$libdir into
19760# a binary during linking. This must work even if \$libdir does
19761# not exist.
19762hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19763
19764# Whether we need a single -rpath flag with a separated argument.
19765hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19766
19767# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19768# resulting binary.
19769hardcode_direct=$hardcode_direct_GCJ
19770
19771# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19772# resulting binary.
19773hardcode_minus_L=$hardcode_minus_L_GCJ
19774
19775# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19776# the resulting binary.
19777hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19778
19779# Set to yes if building a shared library automatically hardcodes DIR into the library
19780# and all subsequent libraries and executables linked against it.
19781hardcode_automatic=$hardcode_automatic_GCJ
19782
19783# Variables whose values should be saved in libtool wrapper scripts and
19784# restored at relink time.
19785variables_saved_for_relink="$variables_saved_for_relink"
19786
19787# Whether libtool must link a program against all its dependency libraries.
19788link_all_deplibs=$link_all_deplibs_GCJ
19789
19790# Compile-time system search path for libraries
19791sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19792
19793# Run-time system search path for libraries
19794sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19795
19796# Fix the shell variable \$srcfile for the compiler.
19797fix_srcfile_path="$fix_srcfile_path_GCJ"
19798
19799# Set to yes if exported symbols are required.
19800always_export_symbols=$always_export_symbols_GCJ
19801
19802# The commands to list exported symbols.
19803export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19804
19805# The commands to extract the exported symbol list from a shared archive.
19806extract_expsyms_cmds=$lt_extract_expsyms_cmds
19807
19808# Symbols that should not be listed in the preloaded symbols.
19809exclude_expsyms=$lt_exclude_expsyms_GCJ
19810
19811# Symbols that must always be exported.
19812include_expsyms=$lt_include_expsyms_GCJ
19813
19814# ### END LIBTOOL TAG CONFIG: $tagname
19815
19816__EOF__
19817
19818
19819else
19820  # If there is no Makefile yet, we rely on a make rule to execute
19821  # `config.status --recheck' to rerun these tests and create the
19822  # libtool script then.
19823  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19824  if test -f "$ltmain_in"; then
19825    test -f Makefile && make "$ltmain"
19826  fi
19827fi
19828
19829
19830ac_ext=c
19831ac_cpp='$CPP $CPPFLAGS'
19832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19834ac_compiler_gnu=$ac_cv_c_compiler_gnu
19835
19836CC="$lt_save_CC"
19837
19838	else
19839	  tagname=""
19840	fi
19841	;;
19842
19843      RC)
19844
19845
19846
19847# Source file extension for RC test sources.
19848ac_ext=rc
19849
19850# Object file extension for compiled RC test sources.
19851objext=o
19852objext_RC=$objext
19853
19854# Code to be used in simple compile tests
19855lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19856
19857# Code to be used in simple link tests
19858lt_simple_link_test_code="$lt_simple_compile_test_code"
19859
19860# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19861
19862# If no C compiler was specified, use CC.
19863LTCC=${LTCC-"$CC"}
19864
19865# If no C compiler flags were specified, use CFLAGS.
19866LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19867
19868# Allow CC to be a program name with arguments.
19869compiler=$CC
19870
19871
19872# save warnings/boilerplate of simple test code
19873ac_outfile=conftest.$ac_objext
19874printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19875eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19876_lt_compiler_boilerplate=`cat conftest.err`
19877$rm conftest*
19878
19879ac_outfile=conftest.$ac_objext
19880printf "$lt_simple_link_test_code" >conftest.$ac_ext
19881eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19882_lt_linker_boilerplate=`cat conftest.err`
19883$rm conftest*
19884
19885
19886# Allow CC to be a program name with arguments.
19887lt_save_CC="$CC"
19888CC=${RC-"windres"}
19889compiler=$CC
19890compiler_RC=$CC
19891for cc_temp in $compiler""; do
19892  case $cc_temp in
19893    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19894    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19895    \-*) ;;
19896    *) break;;
19897  esac
19898done
19899cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19900
19901lt_cv_prog_compiler_c_o_RC=yes
19902
19903# The else clause should only fire when bootstrapping the
19904# libtool distribution, otherwise you forgot to ship ltmain.sh
19905# with your package, and you will get complaints that there are
19906# no rules to generate ltmain.sh.
19907if test -f "$ltmain"; then
19908  # See if we are running on zsh, and set the options which allow our commands through
19909  # without removal of \ escapes.
19910  if test -n "${ZSH_VERSION+set}" ; then
19911    setopt NO_GLOB_SUBST
19912  fi
19913  # Now quote all the things that may contain metacharacters while being
19914  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19915  # variables and quote the copies for generation of the libtool script.
19916  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19917    SED SHELL STRIP \
19918    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19919    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19920    deplibs_check_method reload_flag reload_cmds need_locks \
19921    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19922    lt_cv_sys_global_symbol_to_c_name_address \
19923    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19924    old_postinstall_cmds old_postuninstall_cmds \
19925    compiler_RC \
19926    CC_RC \
19927    LD_RC \
19928    lt_prog_compiler_wl_RC \
19929    lt_prog_compiler_pic_RC \
19930    lt_prog_compiler_static_RC \
19931    lt_prog_compiler_no_builtin_flag_RC \
19932    export_dynamic_flag_spec_RC \
19933    thread_safe_flag_spec_RC \
19934    whole_archive_flag_spec_RC \
19935    enable_shared_with_static_runtimes_RC \
19936    old_archive_cmds_RC \
19937    old_archive_from_new_cmds_RC \
19938    predep_objects_RC \
19939    postdep_objects_RC \
19940    predeps_RC \
19941    postdeps_RC \
19942    compiler_lib_search_path_RC \
19943    archive_cmds_RC \
19944    archive_expsym_cmds_RC \
19945    postinstall_cmds_RC \
19946    postuninstall_cmds_RC \
19947    old_archive_from_expsyms_cmds_RC \
19948    allow_undefined_flag_RC \
19949    no_undefined_flag_RC \
19950    export_symbols_cmds_RC \
19951    hardcode_libdir_flag_spec_RC \
19952    hardcode_libdir_flag_spec_ld_RC \
19953    hardcode_libdir_separator_RC \
19954    hardcode_automatic_RC \
19955    module_cmds_RC \
19956    module_expsym_cmds_RC \
19957    lt_cv_prog_compiler_c_o_RC \
19958    exclude_expsyms_RC \
19959    include_expsyms_RC; do
19960
19961    case $var in
19962    old_archive_cmds_RC | \
19963    old_archive_from_new_cmds_RC | \
19964    archive_cmds_RC | \
19965    archive_expsym_cmds_RC | \
19966    module_cmds_RC | \
19967    module_expsym_cmds_RC | \
19968    old_archive_from_expsyms_cmds_RC | \
19969    export_symbols_cmds_RC | \
19970    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19971    postinstall_cmds | postuninstall_cmds | \
19972    old_postinstall_cmds | old_postuninstall_cmds | \
19973    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19974      # Double-quote double-evaled strings.
19975      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19976      ;;
19977    *)
19978      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19979      ;;
19980    esac
19981  done
19982
19983  case $lt_echo in
19984  *'\$0 --fallback-echo"')
19985    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19986    ;;
19987  esac
19988
19989cfgfile="$ofile"
19990
19991  cat <<__EOF__ >> "$cfgfile"
19992# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19993
19994# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19995
19996# Shell to use when invoking shell scripts.
19997SHELL=$lt_SHELL
19998
19999# Whether or not to build shared libraries.
20000build_libtool_libs=$enable_shared
20001
20002# Whether or not to build static libraries.
20003build_old_libs=$enable_static
20004
20005# Whether or not to add -lc for building shared libraries.
20006build_libtool_need_lc=$archive_cmds_need_lc_RC
20007
20008# Whether or not to disallow shared libs when runtime libs are static
20009allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20010
20011# Whether or not to optimize for fast installation.
20012fast_install=$enable_fast_install
20013
20014# The host system.
20015host_alias=$host_alias
20016host=$host
20017host_os=$host_os
20018
20019# The build system.
20020build_alias=$build_alias
20021build=$build
20022build_os=$build_os
20023
20024# An echo program that does not interpret backslashes.
20025echo=$lt_echo
20026
20027# The archiver.
20028AR=$lt_AR
20029AR_FLAGS=$lt_AR_FLAGS
20030
20031# A C compiler.
20032LTCC=$lt_LTCC
20033
20034# LTCC compiler flags.
20035LTCFLAGS=$lt_LTCFLAGS
20036
20037# A language-specific compiler.
20038CC=$lt_compiler_RC
20039
20040# Is the compiler the GNU C compiler?
20041with_gcc=$GCC_RC
20042
20043# An ERE matcher.
20044EGREP=$lt_EGREP
20045
20046# The linker used to build libraries.
20047LD=$lt_LD_RC
20048
20049# Whether we need hard or soft links.
20050LN_S=$lt_LN_S
20051
20052# A BSD-compatible nm program.
20053NM=$lt_NM
20054
20055# A symbol stripping program
20056STRIP=$lt_STRIP
20057
20058# Used to examine libraries when file_magic_cmd begins "file"
20059MAGIC_CMD=$MAGIC_CMD
20060
20061# Used on cygwin: DLL creation program.
20062DLLTOOL="$DLLTOOL"
20063
20064# Used on cygwin: object dumper.
20065OBJDUMP="$OBJDUMP"
20066
20067# Used on cygwin: assembler.
20068AS="$AS"
20069
20070# The name of the directory that contains temporary libtool files.
20071objdir=$objdir
20072
20073# How to create reloadable object files.
20074reload_flag=$lt_reload_flag
20075reload_cmds=$lt_reload_cmds
20076
20077# How to pass a linker flag through the compiler.
20078wl=$lt_lt_prog_compiler_wl_RC
20079
20080# Object file suffix (normally "o").
20081objext="$ac_objext"
20082
20083# Old archive suffix (normally "a").
20084libext="$libext"
20085
20086# Shared library suffix (normally ".so").
20087shrext_cmds='$shrext_cmds'
20088
20089# Executable file suffix (normally "").
20090exeext="$exeext"
20091
20092# Additional compiler flags for building library objects.
20093pic_flag=$lt_lt_prog_compiler_pic_RC
20094pic_mode=$pic_mode
20095
20096# What is the maximum length of a command?
20097max_cmd_len=$lt_cv_sys_max_cmd_len
20098
20099# Does compiler simultaneously support -c and -o options?
20100compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20101
20102# Must we lock files when doing compilation?
20103need_locks=$lt_need_locks
20104
20105# Do we need the lib prefix for modules?
20106need_lib_prefix=$need_lib_prefix
20107
20108# Do we need a version for libraries?
20109need_version=$need_version
20110
20111# Whether dlopen is supported.
20112dlopen_support=$enable_dlopen
20113
20114# Whether dlopen of programs is supported.
20115dlopen_self=$enable_dlopen_self
20116
20117# Whether dlopen of statically linked programs is supported.
20118dlopen_self_static=$enable_dlopen_self_static
20119
20120# Compiler flag to prevent dynamic linking.
20121link_static_flag=$lt_lt_prog_compiler_static_RC
20122
20123# Compiler flag to turn off builtin functions.
20124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20125
20126# Compiler flag to allow reflexive dlopens.
20127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20128
20129# Compiler flag to generate shared objects directly from archives.
20130whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20131
20132# Compiler flag to generate thread-safe objects.
20133thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20134
20135# Library versioning type.
20136version_type=$version_type
20137
20138# Format of library name prefix.
20139libname_spec=$lt_libname_spec
20140
20141# List of archive names.  First name is the real one, the rest are links.
20142# The last name is the one that the linker finds with -lNAME.
20143library_names_spec=$lt_library_names_spec
20144
20145# The coded name of the library, if different from the real name.
20146soname_spec=$lt_soname_spec
20147
20148# Commands used to build and install an old-style archive.
20149RANLIB=$lt_RANLIB
20150old_archive_cmds=$lt_old_archive_cmds_RC
20151old_postinstall_cmds=$lt_old_postinstall_cmds
20152old_postuninstall_cmds=$lt_old_postuninstall_cmds
20153
20154# Create an old-style archive from a shared archive.
20155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20156
20157# Create a temporary old-style archive to link instead of a shared archive.
20158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20159
20160# Commands used to build and install a shared archive.
20161archive_cmds=$lt_archive_cmds_RC
20162archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20163postinstall_cmds=$lt_postinstall_cmds
20164postuninstall_cmds=$lt_postuninstall_cmds
20165
20166# Commands used to build a loadable module (assumed same as above if empty)
20167module_cmds=$lt_module_cmds_RC
20168module_expsym_cmds=$lt_module_expsym_cmds_RC
20169
20170# Commands to strip libraries.
20171old_striplib=$lt_old_striplib
20172striplib=$lt_striplib
20173
20174# Dependencies to place before the objects being linked to create a
20175# shared library.
20176predep_objects=$lt_predep_objects_RC
20177
20178# Dependencies to place after the objects being linked to create a
20179# shared library.
20180postdep_objects=$lt_postdep_objects_RC
20181
20182# Dependencies to place before the objects being linked to create a
20183# shared library.
20184predeps=$lt_predeps_RC
20185
20186# Dependencies to place after the objects being linked to create a
20187# shared library.
20188postdeps=$lt_postdeps_RC
20189
20190# The library search path used internally by the compiler when linking
20191# a shared library.
20192compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20193
20194# Method to check whether dependent libraries are shared objects.
20195deplibs_check_method=$lt_deplibs_check_method
20196
20197# Command to use when deplibs_check_method == file_magic.
20198file_magic_cmd=$lt_file_magic_cmd
20199
20200# Flag that allows shared libraries with undefined symbols to be built.
20201allow_undefined_flag=$lt_allow_undefined_flag_RC
20202
20203# Flag that forces no undefined symbols.
20204no_undefined_flag=$lt_no_undefined_flag_RC
20205
20206# Commands used to finish a libtool library installation in a directory.
20207finish_cmds=$lt_finish_cmds
20208
20209# Same as above, but a single script fragment to be evaled but not shown.
20210finish_eval=$lt_finish_eval
20211
20212# Take the output of nm and produce a listing of raw symbols and C names.
20213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20214
20215# Transform the output of nm in a proper C declaration
20216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20217
20218# Transform the output of nm in a C name address pair
20219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20220
20221# This is the shared library runtime path variable.
20222runpath_var=$runpath_var
20223
20224# This is the shared library path variable.
20225shlibpath_var=$shlibpath_var
20226
20227# Is shlibpath searched before the hard-coded library search path?
20228shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20229
20230# How to hardcode a shared library path into an executable.
20231hardcode_action=$hardcode_action_RC
20232
20233# Whether we should hardcode library paths into libraries.
20234hardcode_into_libs=$hardcode_into_libs
20235
20236# Flag to hardcode \$libdir into a binary during linking.
20237# This must work even if \$libdir does not exist.
20238hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20239
20240# If ld is used when linking, flag to hardcode \$libdir into
20241# a binary during linking. This must work even if \$libdir does
20242# not exist.
20243hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20244
20245# Whether we need a single -rpath flag with a separated argument.
20246hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20247
20248# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20249# resulting binary.
20250hardcode_direct=$hardcode_direct_RC
20251
20252# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20253# resulting binary.
20254hardcode_minus_L=$hardcode_minus_L_RC
20255
20256# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20257# the resulting binary.
20258hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20259
20260# Set to yes if building a shared library automatically hardcodes DIR into the library
20261# and all subsequent libraries and executables linked against it.
20262hardcode_automatic=$hardcode_automatic_RC
20263
20264# Variables whose values should be saved in libtool wrapper scripts and
20265# restored at relink time.
20266variables_saved_for_relink="$variables_saved_for_relink"
20267
20268# Whether libtool must link a program against all its dependency libraries.
20269link_all_deplibs=$link_all_deplibs_RC
20270
20271# Compile-time system search path for libraries
20272sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20273
20274# Run-time system search path for libraries
20275sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20276
20277# Fix the shell variable \$srcfile for the compiler.
20278fix_srcfile_path="$fix_srcfile_path_RC"
20279
20280# Set to yes if exported symbols are required.
20281always_export_symbols=$always_export_symbols_RC
20282
20283# The commands to list exported symbols.
20284export_symbols_cmds=$lt_export_symbols_cmds_RC
20285
20286# The commands to extract the exported symbol list from a shared archive.
20287extract_expsyms_cmds=$lt_extract_expsyms_cmds
20288
20289# Symbols that should not be listed in the preloaded symbols.
20290exclude_expsyms=$lt_exclude_expsyms_RC
20291
20292# Symbols that must always be exported.
20293include_expsyms=$lt_include_expsyms_RC
20294
20295# ### END LIBTOOL TAG CONFIG: $tagname
20296
20297__EOF__
20298
20299
20300else
20301  # If there is no Makefile yet, we rely on a make rule to execute
20302  # `config.status --recheck' to rerun these tests and create the
20303  # libtool script then.
20304  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20305  if test -f "$ltmain_in"; then
20306    test -f Makefile && make "$ltmain"
20307  fi
20308fi
20309
20310
20311ac_ext=c
20312ac_cpp='$CPP $CPPFLAGS'
20313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20315ac_compiler_gnu=$ac_cv_c_compiler_gnu
20316
20317CC="$lt_save_CC"
20318
20319	;;
20320
20321      *)
20322	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20323echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20324   { (exit 1); exit 1; }; }
20325	;;
20326      esac
20327
20328      # Append the new tag name to the list of available tags.
20329      if test -n "$tagname" ; then
20330      available_tags="$available_tags $tagname"
20331    fi
20332    fi
20333  done
20334  IFS="$lt_save_ifs"
20335
20336  # Now substitute the updated list of available tags.
20337  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20338    mv "${ofile}T" "$ofile"
20339    chmod +x "$ofile"
20340  else
20341    rm -f "${ofile}T"
20342    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20343echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20344   { (exit 1); exit 1; }; }
20345  fi
20346fi
20347
20348
20349
20350# This can be used to rebuild libtool when needed
20351LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20352
20353# Always use our own libtool.
20354LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20355
20356# Prevent multiple expansion
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20369 # AC_REQUIRE([AC_COIN_DLFCN_H])
20370
20371# NEW: If libtool exists in the directory higher up, we use that one
20372#      instead of creating a new one
20373
20374# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20375# out in front of this macro body. You'll notice that LIBTOOL is already
20376# defined here.  We'll have to count on this macro not being called if libtool
20377# already exists, or at least move the libtool fixes outside the conditional.
20378# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20379# This test is therefore removed.  -- lh, 061214 --
20380# if test "x$LIBTOOL" = x; then
20381
20382# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20393
20394
20395
20396  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20397echo "$as_me: Build is \"$build\"." >&6;}
20398  mydos2unix='| dos2unix'
20399  case $build in
20400    *-mingw*)
20401      CYGPATH_W=echo
20402      ;;
20403  esac
20404
20405  case $build in
20406    # Here we need to check if -m32 is specified.  If so, we need to correct
20407    # sys_lib_search_path_spec
20408    *-cygwin* | *-mingw*)
20409       case "$CXX" in
20410    clang* )
20411      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20412      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20413echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20414      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20415	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20416	  -e 's|libext="lib"|libext="a"|' \
20417      libtool > conftest.bla
20418      ;;
20419    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20420      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20421echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20422      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20423	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20424	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20425	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20426	  -e 's%lib /OUT:%lib -OUT:%' \
20427	  -e "s%cygpath -w%$CYGPATH_W%" \
20428	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
20429	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20430	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20431	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20432	  -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"%' \
20433      libtool > conftest.bla
20434      ;;
20435    *)
20436      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20437echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20438      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20439	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20440	  -e 's|libext="lib"|libext="a"|' \
20441      libtool > conftest.bla
20442      ;;
20443  esac
20444  mv conftest.bla libtool
20445  chmod 755 libtool
20446
20447      ;;
20448    *x86_64-*)
20449      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20450        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20451echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20452        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20453        mv conftest.bla libtool
20454        chmod 755 libtool
20455      fi
20456      ;;
20457
20458    *-solaris*)
20459       if test "$GCC" = yes && \
20460     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20461    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20462    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20463      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20464echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20465      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20466      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20467      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20468	# AC_MSG_NOTICE(Compensating for broken gcc)
20469	for lib in $fixlibtmp ; do
20470	  if test -d "${lib}${hdwisa}" ; then
20471	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20472	  fi
20473	done
20474	syslibpath64="${syslibpath64} ${fixlibtmp}"
20475      else
20476	syslibpath64="$fixlibtmp"
20477      fi
20478      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20479      mv conftest.bla libtool
20480      chmod 755 libtool
20481    fi
20482    # AC_MSG_NOTICE(Result is )
20483    # $EGREP 'sys_lib_search_path_spec=' libtool
20484  fi
20485      ;;
20486    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20487    *-darwin*)
20488      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20489echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20490      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"/' \
20491        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20492      libtool > conftest.bla
20493
20494      mv conftest.bla libtool
20495      chmod 755 libtool
20496      ;;
20497  esac
20498# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20499# the macro. -- lh, 061214 --
20500# fi
20501
20502# AC_MSG_NOTICE([End libtool initialisation.])
20503
20504# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20505  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20506  # of the shared objects
20507  RPATH_FLAGS=
20508
20509if test $enable_shared = yes; then
20510  case $build in
20511    *-linux-*)
20512      if test "$GXX" = "yes"; then
20513        RPATH_FLAGS=
20514        for dir in $abs_lib_dir; do
20515          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20516        done
20517      fi ;;
20518    *-darwin*)
20519        RPATH_FLAGS=nothing ;;
20520    *-ibm-*)
20521      case "$CXX" in
20522      xlC* | */xlC* | mpxlC* | */mpxlC*)
20523        RPATH_FLAGS=nothing ;;
20524      esac ;;
20525    *-hp-*)
20526        RPATH_FLAGS=nothing ;;
20527    *-mingw32)
20528        RPATH_FLAGS=nothing ;;
20529    *-*-solaris*)
20530        RPATH_FLAGS=
20531        for dir in $abs_lib_dir; do
20532          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20533        done
20534  esac
20535
20536  if test "$RPATH_FLAGS" = ""; then
20537    { 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
20538echo "$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;}
20539  fi
20540  if test "$RPATH_FLAGS" = "nothing"; then
20541    RPATH_FLAGS=
20542  fi
20543fi
20544
20545
20546
20547
20548else
20549
20550  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20551echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20552  # get all missing information from the config.log file
20553
20554  # output variables and defines
20555  as_save_IFS=$IFS
20556  IFS='
20557'
20558  for oneline in `cat $coin_config_dir/config.status`; do
20559    case "$oneline" in
20560         # First some automake conditionals
20561      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20562      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20563      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20564      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20565        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20566#        echo "$command"
20567        eval "$command"
20568        ;;
20569      s,@DEFS@* )
20570        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20571#        echo "$command"
20572        eval "$command"
20573        ;;
20574    esac
20575  done
20576  IFS=$as_save_IFS
20577
20578  # And some defines (assuming here that the packages base dir
20579  # doesn't have a config.h file
20580  for word in $defsline; do
20581#    echo word $word
20582    case $word in
20583      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20584        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20585#        echo dd $i
20586        echo $i >>confdefs.h
20587        ;;
20588    esac
20589  done
20590fi
20591
20592# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20593
20594# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20595if test "${enable_dependency_linking+set}" = set; then
20596  enableval="$enable_dependency_linking"
20597  dependency_linking="$enableval"
20598else
20599  dependency_linking=auto
20600fi;
20601
20602if test "$dependency_linking" = auto; then
20603  # On Cygwin and AIX, building DLLs doesn't work
20604  dependency_linking=no
20605  if test x"$coin_disable_shared" = xno; then
20606    case $build in
20607      *-cygwin* | *-mingw*)
20608        case "$CC" in
20609          clang* )
20610            dependency_linking=yes
20611            ;;
20612          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20613            dependency_linking=no
20614            ;;
20615          *gcc*)
20616            dependency_linking=yes
20617            ;;
20618          *)
20619            dependency_linking=yes
20620            ;;
20621        esac
20622        ;;
20623      *)
20624        dependency_linking=yes
20625        ;;
20626    esac
20627  fi
20628fi
20629
20630if test "$dependency_linking" = yes ;
20631then
20632  LT_LDFLAGS="-no-undefined"
20633else
20634  LT_LDFLAGS=
20635fi
20636
20637
20638
20639if test "$dependency_linking" = yes; then
20640  DEPENDENCY_LINKING_TRUE=
20641  DEPENDENCY_LINKING_FALSE='#'
20642else
20643  DEPENDENCY_LINKING_TRUE='#'
20644  DEPENDENCY_LINKING_FALSE=
20645fi
20646
20647
20648# Check if we want to set the library version
20649echo "$as_me:$LINENO: checking if library version is set" >&5
20650echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20651if test x"$coin_libversion" != x; then
20652  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20653  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20654echo "${ECHO_T}$coin_libversion" >&6
20655else
20656  echo "$as_me:$LINENO: result: no" >&5
20657echo "${ECHO_T}no" >&6
20658fi
20659
20660
20661
20662#END
20663}
20664
20665###########################################################################
20666#                       external libraries checks                         #
20667###########################################################################
20668
20669
20670
20671
20672
20673
20674
20675coin_has_zlib=no
20676
20677# Check whether --enable-zlib or --disable-zlib was given.
20678if test "${enable_zlib+set}" = set; then
20679  enableval="$enable_zlib"
20680  coin_enable_zlib=$enableval
20681else
20682  coin_enable_zlib=yes
20683fi;
20684
20685if test $coin_enable_zlib = yes; then
20686  #if test x"" = x; then
20687#  hdr="#include <zlib.h>"
20688#else
20689#  hdr=""
20690#fi
20691#AC_CHECK_HEADERS([zlib.h],[coin_has_zlib=yes],[],[$hdr])
20692
20693for ac_header in zlib.h
20694do
20695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20696if eval "test \"\${$as_ac_Header+set}\" = set"; then
20697  echo "$as_me:$LINENO: checking for $ac_header" >&5
20698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20699if eval "test \"\${$as_ac_Header+set}\" = set"; then
20700  echo $ECHO_N "(cached) $ECHO_C" >&6
20701fi
20702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20704else
20705  # Is the header compilable?
20706echo "$as_me:$LINENO: checking $ac_header usability" >&5
20707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20708cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h.  */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h.  */
20714$ac_includes_default
20715#include <$ac_header>
20716_ACEOF
20717rm -f conftest.$ac_objext
20718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20719  (eval $ac_compile) 2>conftest.er1
20720  ac_status=$?
20721  grep -v '^ *+' conftest.er1 >conftest.err
20722  rm -f conftest.er1
20723  cat conftest.err >&5
20724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725  (exit $ac_status); } &&
20726	 { ac_try='test -z "$ac_c_werror_flag"
20727			 || test ! -s conftest.err'
20728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729  (eval $ac_try) 2>&5
20730  ac_status=$?
20731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732  (exit $ac_status); }; } &&
20733	 { ac_try='test -s conftest.$ac_objext'
20734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735  (eval $ac_try) 2>&5
20736  ac_status=$?
20737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738  (exit $ac_status); }; }; then
20739  ac_header_compiler=yes
20740else
20741  echo "$as_me: failed program was:" >&5
20742sed 's/^/| /' conftest.$ac_ext >&5
20743
20744ac_header_compiler=no
20745fi
20746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20748echo "${ECHO_T}$ac_header_compiler" >&6
20749
20750# Is the header present?
20751echo "$as_me:$LINENO: checking $ac_header presence" >&5
20752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20753cat >conftest.$ac_ext <<_ACEOF
20754/* confdefs.h.  */
20755_ACEOF
20756cat confdefs.h >>conftest.$ac_ext
20757cat >>conftest.$ac_ext <<_ACEOF
20758/* end confdefs.h.  */
20759#include <$ac_header>
20760_ACEOF
20761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20763  ac_status=$?
20764  grep -v '^ *+' conftest.er1 >conftest.err
20765  rm -f conftest.er1
20766  cat conftest.err >&5
20767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768  (exit $ac_status); } >/dev/null; then
20769  if test -s conftest.err; then
20770    ac_cpp_err=$ac_c_preproc_warn_flag
20771    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20772  else
20773    ac_cpp_err=
20774  fi
20775else
20776  ac_cpp_err=yes
20777fi
20778if test -z "$ac_cpp_err"; then
20779  ac_header_preproc=yes
20780else
20781  echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784  ac_header_preproc=no
20785fi
20786rm -f conftest.err conftest.$ac_ext
20787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20788echo "${ECHO_T}$ac_header_preproc" >&6
20789
20790# So?  What about this header?
20791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20792  yes:no: )
20793    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20797    ac_header_preproc=yes
20798    ;;
20799  no:yes:* )
20800    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20802    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20803echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20804    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20806    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20807echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20808    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20810    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20812    (
20813      cat <<\_ASBOX
20814## --------------------------------------------------------------- ##
20815## Report this to http://projects.coin-or.org/BuildTools/newticket ##
20816## --------------------------------------------------------------- ##
20817_ASBOX
20818    ) |
20819      sed "s/^/$as_me: WARNING:     /" >&2
20820    ;;
20821esac
20822echo "$as_me:$LINENO: checking for $ac_header" >&5
20823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20824if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825  echo $ECHO_N "(cached) $ECHO_C" >&6
20826else
20827  eval "$as_ac_Header=\$ac_header_preproc"
20828fi
20829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20831
20832fi
20833if test `eval echo '${'$as_ac_Header'}'` = yes; then
20834  cat >>confdefs.h <<_ACEOF
20835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836_ACEOF
20837 coin_has_zlib=yes
20838fi
20839
20840done
20841
20842
20843
20844  if test $coin_has_zlib = yes; then
20845    echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
20846echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
20847if test "${ac_cv_lib_z_gzopen+set}" = set; then
20848  echo $ECHO_N "(cached) $ECHO_C" >&6
20849else
20850  ac_check_lib_save_LIBS=$LIBS
20851LIBS="-lz  $LIBS"
20852cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h.  */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h.  */
20858
20859/* Override any gcc2 internal prototype to avoid an error.  */
20860#ifdef __cplusplus
20861extern "C"
20862#endif
20863/* We use char because int might match the return type of a gcc2
20864   builtin and then its argument prototype would still apply.  */
20865char gzopen ();
20866int
20867main ()
20868{
20869gzopen ();
20870  ;
20871  return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext conftest$ac_exeext
20875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876  (eval $ac_link) 2>conftest.er1
20877  ac_status=$?
20878  grep -v '^ *+' conftest.er1 >conftest.err
20879  rm -f conftest.er1
20880  cat conftest.err >&5
20881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882  (exit $ac_status); } &&
20883	 { ac_try='test -z "$ac_c_werror_flag"
20884			 || test ! -s conftest.err'
20885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886  (eval $ac_try) 2>&5
20887  ac_status=$?
20888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889  (exit $ac_status); }; } &&
20890	 { ac_try='test -s conftest$ac_exeext'
20891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892  (eval $ac_try) 2>&5
20893  ac_status=$?
20894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895  (exit $ac_status); }; }; then
20896  ac_cv_lib_z_gzopen=yes
20897else
20898  echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901ac_cv_lib_z_gzopen=no
20902fi
20903rm -f conftest.err conftest.$ac_objext \
20904      conftest$ac_exeext conftest.$ac_ext
20905LIBS=$ac_check_lib_save_LIBS
20906fi
20907echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
20908echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
20909if test $ac_cv_lib_z_gzopen = yes; then
20910  :
20911else
20912  coin_has_zlib=no
20913fi
20914
20915  fi
20916
20917  if test $coin_has_zlib = yes; then
20918
20919                    SOPLEX_LIBS="-lz $SOPLEX_LIBS"
20920                    SOPLEX_PCLIBS="-lz $SOPLEX_PCLIBS"
20921                    SOPLEX_LIBS_INSTALLED="-lz $SOPLEX_LIBS_INSTALLED"
20922
20923
20924cat >>confdefs.h <<\_ACEOF
20925#define COIN_HAS_ZLIB 1
20926_ACEOF
20927
20928  fi
20929fi
20930
20931
20932
20933if test x$coin_has_zlib = xyes; then
20934  COIN_HAS_ZLIB_TRUE=
20935  COIN_HAS_ZLIB_FALSE='#'
20936else
20937  COIN_HAS_ZLIB_TRUE='#'
20938  COIN_HAS_ZLIB_FALSE=
20939fi
20940
20941
20942if test $coin_has_zlib = "yes"; then
20943  CXXFLAGS="$CXXFLAGS -DSOPLEX_WITH_ZLIB"
20944  SOPLEX_LIBS="-lz $SOPLEX_LIBS"
20945fi
20946
20947
20948
20949
20950
20951
20952
20953# Check whether --enable-gmp or --disable-gmp was given.
20954if test "${enable_gmp+set}" = set; then
20955  enableval="$enable_gmp"
20956  coin_enable_gmp=$enableval
20957else
20958  coin_enable_gmp=yes
20959fi;
20960
20961coin_has_gmp=no
20962if test $coin_enable_gmp = yes; then
20963  #if test x"" = x; then
20964#  hdr="#include <gmp.h>"
20965#else
20966#  hdr=""
20967#fi
20968#AC_CHECK_HEADERS([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])],[],[$hdr])
20969
20970for ac_header in gmp.h
20971do
20972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20973if eval "test \"\${$as_ac_Header+set}\" = set"; then
20974  echo "$as_me:$LINENO: checking for $ac_header" >&5
20975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20976if eval "test \"\${$as_ac_Header+set}\" = set"; then
20977  echo $ECHO_N "(cached) $ECHO_C" >&6
20978fi
20979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20981else
20982  # Is the header compilable?
20983echo "$as_me:$LINENO: checking $ac_header usability" >&5
20984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20985cat >conftest.$ac_ext <<_ACEOF
20986/* confdefs.h.  */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h.  */
20991$ac_includes_default
20992#include <$ac_header>
20993_ACEOF
20994rm -f conftest.$ac_objext
20995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996  (eval $ac_compile) 2>conftest.er1
20997  ac_status=$?
20998  grep -v '^ *+' conftest.er1 >conftest.err
20999  rm -f conftest.er1
21000  cat conftest.err >&5
21001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002  (exit $ac_status); } &&
21003	 { ac_try='test -z "$ac_c_werror_flag"
21004			 || test ! -s conftest.err'
21005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006  (eval $ac_try) 2>&5
21007  ac_status=$?
21008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009  (exit $ac_status); }; } &&
21010	 { ac_try='test -s conftest.$ac_objext'
21011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012  (eval $ac_try) 2>&5
21013  ac_status=$?
21014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015  (exit $ac_status); }; }; then
21016  ac_header_compiler=yes
21017else
21018  echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
21021ac_header_compiler=no
21022fi
21023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21025echo "${ECHO_T}$ac_header_compiler" >&6
21026
21027# Is the header present?
21028echo "$as_me:$LINENO: checking $ac_header presence" >&5
21029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21030cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h.  */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h.  */
21036#include <$ac_header>
21037_ACEOF
21038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21040  ac_status=$?
21041  grep -v '^ *+' conftest.er1 >conftest.err
21042  rm -f conftest.er1
21043  cat conftest.err >&5
21044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045  (exit $ac_status); } >/dev/null; then
21046  if test -s conftest.err; then
21047    ac_cpp_err=$ac_c_preproc_warn_flag
21048    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21049  else
21050    ac_cpp_err=
21051  fi
21052else
21053  ac_cpp_err=yes
21054fi
21055if test -z "$ac_cpp_err"; then
21056  ac_header_preproc=yes
21057else
21058  echo "$as_me: failed program was:" >&5
21059sed 's/^/| /' conftest.$ac_ext >&5
21060
21061  ac_header_preproc=no
21062fi
21063rm -f conftest.err conftest.$ac_ext
21064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065echo "${ECHO_T}$ac_header_preproc" >&6
21066
21067# So?  What about this header?
21068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069  yes:no: )
21070    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074    ac_header_preproc=yes
21075    ;;
21076  no:yes:* )
21077    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21080echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21081    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21084echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21085    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089    (
21090      cat <<\_ASBOX
21091## --------------------------------------------------------------- ##
21092## Report this to http://projects.coin-or.org/BuildTools/newticket ##
21093## --------------------------------------------------------------- ##
21094_ASBOX
21095    ) |
21096      sed "s/^/$as_me: WARNING:     /" >&2
21097    ;;
21098esac
21099echo "$as_me:$LINENO: checking for $ac_header" >&5
21100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21101if eval "test \"\${$as_ac_Header+set}\" = set"; then
21102  echo $ECHO_N "(cached) $ECHO_C" >&6
21103else
21104  eval "$as_ac_Header=\$ac_header_preproc"
21105fi
21106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21108
21109fi
21110if test `eval echo '${'$as_ac_Header'}'` = yes; then
21111  cat >>confdefs.h <<_ACEOF
21112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21113_ACEOF
21114 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
21115echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
21116if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
21117  echo $ECHO_N "(cached) $ECHO_C" >&6
21118else
21119  ac_check_lib_save_LIBS=$LIBS
21120LIBS="-lgmp  $LIBS"
21121cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h.  */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h.  */
21127
21128/* Override any gcc2 internal prototype to avoid an error.  */
21129#ifdef __cplusplus
21130extern "C"
21131#endif
21132/* We use char because int might match the return type of a gcc2
21133   builtin and then its argument prototype would still apply.  */
21134char __gmpz_init ();
21135int
21136main ()
21137{
21138__gmpz_init ();
21139  ;
21140  return 0;
21141}
21142_ACEOF
21143rm -f conftest.$ac_objext conftest$ac_exeext
21144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21145  (eval $ac_link) 2>conftest.er1
21146  ac_status=$?
21147  grep -v '^ *+' conftest.er1 >conftest.err
21148  rm -f conftest.er1
21149  cat conftest.err >&5
21150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151  (exit $ac_status); } &&
21152	 { ac_try='test -z "$ac_c_werror_flag"
21153			 || test ! -s conftest.err'
21154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155  (eval $ac_try) 2>&5
21156  ac_status=$?
21157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158  (exit $ac_status); }; } &&
21159	 { ac_try='test -s conftest$ac_exeext'
21160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161  (eval $ac_try) 2>&5
21162  ac_status=$?
21163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164  (exit $ac_status); }; }; then
21165  ac_cv_lib_gmp___gmpz_init=yes
21166else
21167  echo "$as_me: failed program was:" >&5
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
21170ac_cv_lib_gmp___gmpz_init=no
21171fi
21172rm -f conftest.err conftest.$ac_objext \
21173      conftest$ac_exeext conftest.$ac_ext
21174LIBS=$ac_check_lib_save_LIBS
21175fi
21176echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
21177echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
21178if test $ac_cv_lib_gmp___gmpz_init = yes; then
21179  coin_has_gmp=yes
21180fi
21181
21182fi
21183
21184done
21185
21186
21187
21188  if test $coin_has_gmp = yes ; then
21189
21190
21191cat >>confdefs.h <<\_ACEOF
21192#define COIN_HAS_GMP 1
21193_ACEOF
21194
21195  fi
21196fi
21197
21198if test $coin_has_gmp = yes; then
21199  CXXFLAGS="$CXXFLAGS -DSOPLEX_WITH_GMP"
21200  SOPLEX_LIBS="-lgmp $SOPLEX_LIBS"
21201  SOPLEX_PCLIBS="-lgmp $SOPLEX_PCLIBS"
21202  SOPLEX_LIBS_INSTALLED="-lgmp $SOPLEX_LIBS_INSTALLED"
21203fi
21204
21205
21206# SoPlex requires C++ 2011 standard (or -DSOPLEX_LEGACY)
21207SOPLEX_CFLAGS=
21208case "$CXX" in
21209  cl* | */cl* | CL* | */CL* ) ;;
21210  icl* | */icl* | ICL* | */ICL* )  # Intel on Windows
21211    SOPLEX_CFLAGS="-Qstd=c++0x"
21212    ;;
21213  * )  # GCC, clang, Intel on Linux, ...
21214    SOPLEX_CFLAGS="-std=c++0x"
21215    ;;
21216esac
21217CXXFLAGS="$CXXFLAGS $SOPLEX_CFLAGS"
21218
21219
21220# TODO SoPlex may not be threadsafe by default; adding -DDISABLE_VERBOSITY could help
21221
21222###########################################################################
21223#                               finish up                                 #
21224###########################################################################
21225
21226                              ac_config_files="$ac_config_files Makefile coinsoplex.pc coinsoplex-uninstalled.pc"
21227
21228
21229# dummy header file to avoid many extra compiler flags
21230          ac_config_headers="$ac_config_headers config_soplex.h"
21231
21232
21233
21234
21235
21236
21237
21238
21239echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
21240echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
21241coin_link_input_cmd="$LN_S"
21242case "$CC" in
21243  clang* ) ;;
21244  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21245    coin_link_input_cmd=cp ;;
21246esac
21247echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
21248echo "${ECHO_T}$coin_link_input_cmd" >&6
21249
21250
21251
21252if test x$coin_skip_ac_output != xyes; then
21253
21254  # library extension
21255
21256  case "$CC" in
21257    clang* )
21258         LIBEXT=a ;;
21259    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21260         LIBEXT=lib ;;
21261      *) LIBEXT=a ;;
21262  esac
21263
21264  # Define VPATH_DISTCLEANFILES to be everything that needs to be
21265  # cleaned for distclean in a vpath configuration
21266
21267  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
21268
21269  # Take out subdirectories if their configuration concluded that they
21270  # don't need to be compiled
21271  if test x"$coin_ac_skip_subdirs" != x; then
21272    new_subdirs=
21273    for i in $subdirs; do
21274      skipme=no
21275      for j in $coin_ac_skip_subdirs; do
21276        if test $i = $j; then
21277          skipme=yes;
21278        fi
21279      done
21280      if test $skipme = no; then
21281        new_subdirs="$new_subdirs $i"
21282      fi
21283    done
21284    subdirs="$new_subdirs"
21285  fi
21286
21287  # need to come before AC_OUTPUT
21288  if test x$coin_projectdir != xyes; then
21289    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
21290    echo $coin_subdirs > coin_subdirs.txt
21291  else
21292    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
21293    ABSBUILDDIR="`pwd`"
21294
21295  fi
21296
21297  cat >confcache <<\_ACEOF
21298# This file is a shell script that caches the results of configure
21299# tests run on this system so they can be shared between configure
21300# scripts and configure runs, see configure's option --config-cache.
21301# It is not useful on other systems.  If it contains results you don't
21302# want to keep, you may remove or edit it.
21303#
21304# config.status only pays attention to the cache file if you give it
21305# the --recheck option to rerun configure.
21306#
21307# `ac_cv_env_foo' variables (set or unset) will be overridden when
21308# loading this file, other *unset* `ac_cv_foo' will be assigned the
21309# following values.
21310
21311_ACEOF
21312
21313# The following way of writing the cache mishandles newlines in values,
21314# but we know of no workaround that is simple, portable, and efficient.
21315# So, don't put newlines in cache variables' values.
21316# Ultrix sh set writes to stderr and can't be redirected directly,
21317# and sets the high bit in the cache file unless we assign to the vars.
21318{
21319  (set) 2>&1 |
21320    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21321    *ac_space=\ *)
21322      # `set' does not quote correctly, so add quotes (double-quote
21323      # substitution turns \\\\ into \\, and sed turns \\ into \).
21324      sed -n \
21325	"s/'/'\\\\''/g;
21326	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21327      ;;
21328    *)
21329      # `set' quotes correctly as required by POSIX, so do not add quotes.
21330      sed -n \
21331	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21332      ;;
21333    esac;
21334} |
21335  sed '
21336     t clear
21337     : clear
21338     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21339     t end
21340     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21341     : end' >>confcache
21342if diff $cache_file confcache >/dev/null 2>&1; then :; else
21343  if test -w $cache_file; then
21344    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21345    cat confcache >$cache_file
21346  else
21347    echo "not updating unwritable cache $cache_file"
21348  fi
21349fi
21350rm -f confcache
21351
21352test "x$prefix" = xNONE && prefix=$ac_default_prefix
21353# Let make expand exec_prefix.
21354test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21355
21356# VPATH may cause trouble with some makes, so we remove $(srcdir),
21357# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21358# trailing colons and then remove the whole line if VPATH becomes empty
21359# (actually we leave an empty line to preserve line numbers).
21360if test "x$srcdir" = x.; then
21361  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21362s/:*\$(srcdir):*/:/;
21363s/:*\${srcdir}:*/:/;
21364s/:*@srcdir@:*/:/;
21365s/^\([^=]*=[	 ]*\):*/\1/;
21366s/:*$//;
21367s/^[^=]*=[	 ]*$//;
21368}'
21369fi
21370
21371DEFS=-DHAVE_CONFIG_H
21372
21373ac_libobjs=
21374ac_ltlibobjs=
21375for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21376  # 1. Remove the extension, and $U if already installed.
21377  ac_i=`echo "$ac_i" |
21378	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21379  # 2. Add them.
21380  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21381  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21382done
21383LIBOBJS=$ac_libobjs
21384
21385LTLIBOBJS=$ac_ltlibobjs
21386
21387
21388if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
21389  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
21390Usually this means the macro was only invoked conditionally." >&5
21391echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
21392Usually this means the macro was only invoked conditionally." >&2;}
21393   { (exit 1); exit 1; }; }
21394fi
21395if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
21396  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
21397Usually this means the macro was only invoked conditionally." >&5
21398echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
21399Usually this means the macro was only invoked conditionally." >&2;}
21400   { (exit 1); exit 1; }; }
21401fi
21402if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
21403  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21404Usually this means the macro was only invoked conditionally." >&5
21405echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21406Usually this means the macro was only invoked conditionally." >&2;}
21407   { (exit 1); exit 1; }; }
21408fi
21409if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
21410  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
21411Usually this means the macro was only invoked conditionally." >&5
21412echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
21413Usually this means the macro was only invoked conditionally." >&2;}
21414   { (exit 1); exit 1; }; }
21415fi
21416if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21417  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21418Usually this means the macro was only invoked conditionally." >&5
21419echo "$as_me: error: conditional \"AMDEP\" was never defined.
21420Usually this means the macro was only invoked conditionally." >&2;}
21421   { (exit 1); exit 1; }; }
21422fi
21423if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21424  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21425Usually this means the macro was only invoked conditionally." >&5
21426echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21427Usually this means the macro was only invoked conditionally." >&2;}
21428   { (exit 1); exit 1; }; }
21429fi
21430if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21431  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21432Usually this means the macro was only invoked conditionally." >&5
21433echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21434Usually this means the macro was only invoked conditionally." >&2;}
21435   { (exit 1); exit 1; }; }
21436fi
21437if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21438  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21439Usually this means the macro was only invoked conditionally." >&5
21440echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21441Usually this means the macro was only invoked conditionally." >&2;}
21442   { (exit 1); exit 1; }; }
21443fi
21444if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
21445  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
21446Usually this means the macro was only invoked conditionally." >&5
21447echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
21448Usually this means the macro was only invoked conditionally." >&2;}
21449   { (exit 1); exit 1; }; }
21450fi
21451if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
21452  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21453Usually this means the macro was only invoked conditionally." >&5
21454echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21455Usually this means the macro was only invoked conditionally." >&2;}
21456   { (exit 1); exit 1; }; }
21457fi
21458if test -z "${COIN_HAS_ZLIB_TRUE}" && test -z "${COIN_HAS_ZLIB_FALSE}"; then
21459  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ZLIB\" was never defined.
21460Usually this means the macro was only invoked conditionally." >&5
21461echo "$as_me: error: conditional \"COIN_HAS_ZLIB\" was never defined.
21462Usually this means the macro was only invoked conditionally." >&2;}
21463   { (exit 1); exit 1; }; }
21464fi
21465
21466: ${CONFIG_STATUS=./config.status}
21467ac_clean_files_save=$ac_clean_files
21468ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21469{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21470echo "$as_me: creating $CONFIG_STATUS" >&6;}
21471cat >$CONFIG_STATUS <<_ACEOF
21472#! $SHELL
21473# Generated by $as_me.
21474# Run this file to recreate the current configuration.
21475# Compiler output produced by configure, useful for debugging
21476# configure, is in config.log if it exists.
21477
21478debug=false
21479ac_cs_recheck=false
21480ac_cs_silent=false
21481SHELL=\${CONFIG_SHELL-$SHELL}
21482_ACEOF
21483
21484cat >>$CONFIG_STATUS <<\_ACEOF
21485## --------------------- ##
21486## M4sh Initialization.  ##
21487## --------------------- ##
21488
21489# Be Bourne compatible
21490if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21491  emulate sh
21492  NULLCMD=:
21493  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21494  # is contrary to our usage.  Disable this feature.
21495  alias -g '${1+"$@"}'='"$@"'
21496elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21497  set -o posix
21498fi
21499DUALCASE=1; export DUALCASE # for MKS sh
21500
21501# Support unset when possible.
21502if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21503  as_unset=unset
21504else
21505  as_unset=false
21506fi
21507
21508
21509# Work around bugs in pre-3.0 UWIN ksh.
21510$as_unset ENV MAIL MAILPATH
21511PS1='$ '
21512PS2='> '
21513PS4='+ '
21514
21515# NLS nuisances.
21516for as_var in \
21517  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21518  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21519  LC_TELEPHONE LC_TIME
21520do
21521  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21522    eval $as_var=C; export $as_var
21523  else
21524    $as_unset $as_var
21525  fi
21526done
21527
21528# Required to use basename.
21529if expr a : '\(a\)' >/dev/null 2>&1; then
21530  as_expr=expr
21531else
21532  as_expr=false
21533fi
21534
21535if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21536  as_basename=basename
21537else
21538  as_basename=false
21539fi
21540
21541
21542# Name of the executable.
21543as_me=`$as_basename "$0" ||
21544$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21545	 X"$0" : 'X\(//\)$' \| \
21546	 X"$0" : 'X\(/\)$' \| \
21547	 .     : '\(.\)' 2>/dev/null ||
21548echo X/"$0" |
21549    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21550  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21551  	  /^X\/\(\/\).*/{ s//\1/; q; }
21552  	  s/.*/./; q'`
21553
21554
21555# PATH needs CR, and LINENO needs CR and PATH.
21556# Avoid depending upon Character Ranges.
21557as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21558as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21559as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21560as_cr_digits='0123456789'
21561as_cr_alnum=$as_cr_Letters$as_cr_digits
21562
21563# The user is always right.
21564if test "${PATH_SEPARATOR+set}" != set; then
21565  echo "#! /bin/sh" >conf$$.sh
21566  echo  "exit 0"   >>conf$$.sh
21567  chmod +x conf$$.sh
21568  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21569    PATH_SEPARATOR=';'
21570  else
21571    PATH_SEPARATOR=:
21572  fi
21573  rm -f conf$$.sh
21574fi
21575
21576
21577  as_lineno_1=$LINENO
21578  as_lineno_2=$LINENO
21579  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21580  test "x$as_lineno_1" != "x$as_lineno_2" &&
21581  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21582  # Find who we are.  Look in the path if we contain no path at all
21583  # relative or not.
21584  case $0 in
21585    *[\\/]* ) as_myself=$0 ;;
21586    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21587for as_dir in $PATH
21588do
21589  IFS=$as_save_IFS
21590  test -z "$as_dir" && as_dir=.
21591  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21592done
21593
21594       ;;
21595  esac
21596  # We did not find ourselves, most probably we were run as `sh COMMAND'
21597  # in which case we are not to be found in the path.
21598  if test "x$as_myself" = x; then
21599    as_myself=$0
21600  fi
21601  if test ! -f "$as_myself"; then
21602    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21603echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21604   { (exit 1); exit 1; }; }
21605  fi
21606  case $CONFIG_SHELL in
21607  '')
21608    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21609for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21610do
21611  IFS=$as_save_IFS
21612  test -z "$as_dir" && as_dir=.
21613  for as_base in sh bash ksh sh5; do
21614	 case $as_dir in
21615	 /*)
21616	   if ("$as_dir/$as_base" -c '
21617  as_lineno_1=$LINENO
21618  as_lineno_2=$LINENO
21619  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21620  test "x$as_lineno_1" != "x$as_lineno_2" &&
21621  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21622	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21623	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21624	     CONFIG_SHELL=$as_dir/$as_base
21625	     export CONFIG_SHELL
21626	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21627	   fi;;
21628	 esac
21629       done
21630done
21631;;
21632  esac
21633
21634  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21635  # uniformly replaced by the line number.  The first 'sed' inserts a
21636  # line-number line before each line; the second 'sed' does the real
21637  # work.  The second script uses 'N' to pair each line-number line
21638  # with the numbered line, and appends trailing '-' during
21639  # substitution so that $LINENO is not a special case at line end.
21640  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21641  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21642  sed '=' <$as_myself |
21643    sed '
21644      N
21645      s,$,-,
21646      : loop
21647      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21648      t loop
21649      s,-$,,
21650      s,^['$as_cr_digits']*\n,,
21651    ' >$as_me.lineno &&
21652  chmod +x $as_me.lineno ||
21653    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21654echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21655   { (exit 1); exit 1; }; }
21656
21657  # Don't try to exec as it changes $[0], causing all sort of problems
21658  # (the dirname of $[0] is not the place where we might find the
21659  # original and so on.  Autoconf is especially sensible to this).
21660  . ./$as_me.lineno
21661  # Exit status is that of the last command.
21662  exit
21663}
21664
21665
21666case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21667  *c*,-n*) ECHO_N= ECHO_C='
21668' ECHO_T='	' ;;
21669  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21670  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21671esac
21672
21673if expr a : '\(a\)' >/dev/null 2>&1; then
21674  as_expr=expr
21675else
21676  as_expr=false
21677fi
21678
21679rm -f conf$$ conf$$.exe conf$$.file
21680echo >conf$$.file
21681if ln -s conf$$.file conf$$ 2>/dev/null; then
21682  # We could just check for DJGPP; but this test a) works b) is more generic
21683  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21684  if test -f conf$$.exe; then
21685    # Don't use ln at all; we don't have any links
21686    as_ln_s='cp -p'
21687  else
21688    as_ln_s='ln -s'
21689  fi
21690elif ln conf$$.file conf$$ 2>/dev/null; then
21691  as_ln_s=ln
21692else
21693  as_ln_s='cp -p'
21694fi
21695rm -f conf$$ conf$$.exe conf$$.file
21696
21697if mkdir -p . 2>/dev/null; then
21698  as_mkdir_p=:
21699else
21700  test -d ./-p && rmdir ./-p
21701  as_mkdir_p=false
21702fi
21703
21704as_executable_p="test -f"
21705
21706# Sed expression to map a string onto a valid CPP name.
21707as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21708
21709# Sed expression to map a string onto a valid variable name.
21710as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21711
21712
21713# IFS
21714# We need space, tab and new line, in precisely that order.
21715as_nl='
21716'
21717IFS=" 	$as_nl"
21718
21719# CDPATH.
21720$as_unset CDPATH
21721
21722exec 6>&1
21723
21724# Open the log real soon, to keep \$[0] and so on meaningful, and to
21725# report actual input values of CONFIG_FILES etc. instead of their
21726# values after options handling.  Logging --version etc. is OK.
21727exec 5>>config.log
21728{
21729  echo
21730  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21731## Running $as_me. ##
21732_ASBOX
21733} >&5
21734cat >&5 <<_CSEOF
21735
21736This file was extended by ThirdPartySoplex $as_me 1.6.1, which was
21737generated by GNU Autoconf 2.59.  Invocation command line was
21738
21739  CONFIG_FILES    = $CONFIG_FILES
21740  CONFIG_HEADERS  = $CONFIG_HEADERS
21741  CONFIG_LINKS    = $CONFIG_LINKS
21742  CONFIG_COMMANDS = $CONFIG_COMMANDS
21743  $ $0 $@
21744
21745_CSEOF
21746echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21747echo >&5
21748_ACEOF
21749
21750# Files that config.status was made for.
21751if test -n "$ac_config_files"; then
21752  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21753fi
21754
21755if test -n "$ac_config_headers"; then
21756  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21757fi
21758
21759if test -n "$ac_config_links"; then
21760  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21761fi
21762
21763if test -n "$ac_config_commands"; then
21764  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21765fi
21766
21767cat >>$CONFIG_STATUS <<\_ACEOF
21768
21769ac_cs_usage="\
21770\`$as_me' instantiates files from templates according to the
21771current configuration.
21772
21773Usage: $0 [OPTIONS] [FILE]...
21774
21775  -h, --help       print this help, then exit
21776  -V, --version    print version number, then exit
21777  -q, --quiet      do not print progress messages
21778  -d, --debug      don't remove temporary files
21779      --recheck    update $as_me by reconfiguring in the same conditions
21780  --file=FILE[:TEMPLATE]
21781		   instantiate the configuration file FILE
21782  --header=FILE[:TEMPLATE]
21783		   instantiate the configuration header FILE
21784
21785Configuration files:
21786$config_files
21787
21788Configuration headers:
21789$config_headers
21790
21791Configuration commands:
21792$config_commands
21793
21794Report bugs to <bug-autoconf@gnu.org>."
21795_ACEOF
21796
21797cat >>$CONFIG_STATUS <<_ACEOF
21798ac_cs_version="\\
21799ThirdPartySoplex config.status 1.6.1
21800configured by $0, generated by GNU Autoconf 2.59,
21801  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21802
21803Copyright (C) 2003 Free Software Foundation, Inc.
21804This config.status script is free software; the Free Software Foundation
21805gives unlimited permission to copy, distribute and modify it."
21806srcdir=$srcdir
21807INSTALL="$INSTALL"
21808_ACEOF
21809
21810cat >>$CONFIG_STATUS <<\_ACEOF
21811# If no file are specified by the user, then we need to provide default
21812# value.  By we need to know if files were specified by the user.
21813ac_need_defaults=:
21814while test $# != 0
21815do
21816  case $1 in
21817  --*=*)
21818    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21819    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21820    ac_shift=:
21821    ;;
21822  -*)
21823    ac_option=$1
21824    ac_optarg=$2
21825    ac_shift=shift
21826    ;;
21827  *) # This is not an option, so the user has probably given explicit
21828     # arguments.
21829     ac_option=$1
21830     ac_need_defaults=false;;
21831  esac
21832
21833  case $ac_option in
21834  # Handling of the options.
21835_ACEOF
21836cat >>$CONFIG_STATUS <<\_ACEOF
21837  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21838    ac_cs_recheck=: ;;
21839  --version | --vers* | -V )
21840    echo "$ac_cs_version"; exit 0 ;;
21841  --he | --h)
21842    # Conflict between --help and --header
21843    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21844Try \`$0 --help' for more information." >&5
21845echo "$as_me: error: ambiguous option: $1
21846Try \`$0 --help' for more information." >&2;}
21847   { (exit 1); exit 1; }; };;
21848  --help | --hel | -h )
21849    echo "$ac_cs_usage"; exit 0 ;;
21850  --debug | --d* | -d )
21851    debug=: ;;
21852  --file | --fil | --fi | --f )
21853    $ac_shift
21854    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21855    ac_need_defaults=false;;
21856  --header | --heade | --head | --hea )
21857    $ac_shift
21858    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21859    ac_need_defaults=false;;
21860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21862    ac_cs_silent=: ;;
21863
21864  # This is an error.
21865  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21866Try \`$0 --help' for more information." >&5
21867echo "$as_me: error: unrecognized option: $1
21868Try \`$0 --help' for more information." >&2;}
21869   { (exit 1); exit 1; }; } ;;
21870
21871  *) ac_config_targets="$ac_config_targets $1" ;;
21872
21873  esac
21874  shift
21875done
21876
21877ac_configure_extra_args=
21878
21879if $ac_cs_silent; then
21880  exec 6>/dev/null
21881  ac_configure_extra_args="$ac_configure_extra_args --silent"
21882fi
21883
21884_ACEOF
21885cat >>$CONFIG_STATUS <<_ACEOF
21886if \$ac_cs_recheck; then
21887  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21888  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21889fi
21890
21891_ACEOF
21892
21893cat >>$CONFIG_STATUS <<_ACEOF
21894#
21895# INIT-COMMANDS section.
21896#
21897
21898AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21899
21900_ACEOF
21901
21902
21903
21904cat >>$CONFIG_STATUS <<\_ACEOF
21905for ac_config_target in $ac_config_targets
21906do
21907  case "$ac_config_target" in
21908  # Handling of arguments.
21909  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21910  "coinsoplex.pc" ) CONFIG_FILES="$CONFIG_FILES coinsoplex.pc" ;;
21911  "coinsoplex-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinsoplex-uninstalled.pc" ;;
21912  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21913  "config_soplex.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_soplex.h" ;;
21914  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21915echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21916   { (exit 1); exit 1; }; };;
21917  esac
21918done
21919
21920# If the user did not use the arguments to specify the items to instantiate,
21921# then the envvar interface is used.  Set only those that are not.
21922# We use the long form for the default assignment because of an extremely
21923# bizarre bug on SunOS 4.1.3.
21924if $ac_need_defaults; then
21925  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21926  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21927  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21928fi
21929
21930# Have a temporary directory for convenience.  Make it in the build tree
21931# simply because there is no reason to put it here, and in addition,
21932# creating and moving files from /tmp can sometimes cause problems.
21933# Create a temporary directory, and hook for its removal unless debugging.
21934$debug ||
21935{
21936  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21937  trap '{ (exit 1); exit 1; }' 1 2 13 15
21938}
21939
21940# Create a (secure) tmp directory for tmp files.
21941
21942{
21943  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21944  test -n "$tmp" && test -d "$tmp"
21945}  ||
21946{
21947  tmp=./confstat$$-$RANDOM
21948  (umask 077 && mkdir $tmp)
21949} ||
21950{
21951   echo "$me: cannot create a temporary directory in ." >&2
21952   { (exit 1); exit 1; }
21953}
21954
21955_ACEOF
21956
21957cat >>$CONFIG_STATUS <<_ACEOF
21958
21959#
21960# CONFIG_FILES section.
21961#
21962
21963# No need to generate the scripts if there are no CONFIG_FILES.
21964# This happens for instance when ./config.status config.h
21965if test -n "\$CONFIG_FILES"; then
21966  # Protect against being on the right side of a sed subst in config.status.
21967  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21968   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21969s,@SHELL@,$SHELL,;t t
21970s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21971s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21972s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21973s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21974s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21975s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21976s,@exec_prefix@,$exec_prefix,;t t
21977s,@prefix@,$prefix,;t t
21978s,@program_transform_name@,$program_transform_name,;t t
21979s,@bindir@,$bindir,;t t
21980s,@sbindir@,$sbindir,;t t
21981s,@libexecdir@,$libexecdir,;t t
21982s,@datadir@,$datadir,;t t
21983s,@sysconfdir@,$sysconfdir,;t t
21984s,@sharedstatedir@,$sharedstatedir,;t t
21985s,@localstatedir@,$localstatedir,;t t
21986s,@libdir@,$libdir,;t t
21987s,@includedir@,$includedir,;t t
21988s,@oldincludedir@,$oldincludedir,;t t
21989s,@infodir@,$infodir,;t t
21990s,@mandir@,$mandir,;t t
21991s,@build_alias@,$build_alias,;t t
21992s,@host_alias@,$host_alias,;t t
21993s,@target_alias@,$target_alias,;t t
21994s,@DEFS@,$DEFS,;t t
21995s,@ECHO_C@,$ECHO_C,;t t
21996s,@ECHO_N@,$ECHO_N,;t t
21997s,@ECHO_T@,$ECHO_T,;t t
21998s,@LIBS@,$LIBS,;t t
21999s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
22000s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
22001s,@have_svnversion@,$have_svnversion,;t t
22002s,@SOPLEX_SVN_REV@,$SOPLEX_SVN_REV,;t t
22003s,@build@,$build,;t t
22004s,@build_cpu@,$build_cpu,;t t
22005s,@build_vendor@,$build_vendor,;t t
22006s,@build_os@,$build_os,;t t
22007s,@CDEFS@,$CDEFS,;t t
22008s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22009s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22010s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22011s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22012s,@CC@,$CC,;t t
22013s,@CFLAGS@,$CFLAGS,;t t
22014s,@LDFLAGS@,$LDFLAGS,;t t
22015s,@CPPFLAGS@,$CPPFLAGS,;t t
22016s,@ac_ct_CC@,$ac_ct_CC,;t t
22017s,@EXEEXT@,$EXEEXT,;t t
22018s,@OBJEXT@,$OBJEXT,;t t
22019s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22020s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22021s,@MPICC@,$MPICC,;t t
22022s,@CXXDEFS@,$CXXDEFS,;t t
22023s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22024s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22025s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22026s,@CXX@,$CXX,;t t
22027s,@CXXFLAGS@,$CXXFLAGS,;t t
22028s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22029s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22030s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22031s,@MPICXX@,$MPICXX,;t t
22032s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22033s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
22034s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
22035s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
22036s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
22037s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
22038s,@EGREP@,$EGREP,;t t
22039s,@LN_S@,$LN_S,;t t
22040s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22041s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22042s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22043s,@CYGPATH_W@,$CYGPATH_W,;t t
22044s,@PACKAGE@,$PACKAGE,;t t
22045s,@VERSION@,$VERSION,;t t
22046s,@ACLOCAL@,$ACLOCAL,;t t
22047s,@AUTOCONF@,$AUTOCONF,;t t
22048s,@AUTOMAKE@,$AUTOMAKE,;t t
22049s,@AUTOHEADER@,$AUTOHEADER,;t t
22050s,@MAKEINFO@,$MAKEINFO,;t t
22051s,@install_sh@,$install_sh,;t t
22052s,@STRIP@,$STRIP,;t t
22053s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22054s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22055s,@mkdir_p@,$mkdir_p,;t t
22056s,@AWK@,$AWK,;t t
22057s,@SET_MAKE@,$SET_MAKE,;t t
22058s,@am__leading_dot@,$am__leading_dot,;t t
22059s,@AMTAR@,$AMTAR,;t t
22060s,@am__tar@,$am__tar,;t t
22061s,@am__untar@,$am__untar,;t t
22062s,@DEPDIR@,$DEPDIR,;t t
22063s,@am__include@,$am__include,;t t
22064s,@am__quote@,$am__quote,;t t
22065s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22066s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22067s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22068s,@CCDEPMODE@,$CCDEPMODE,;t t
22069s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22070s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22071s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22072s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22073s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22074s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22075s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22076s,@MAINT@,$MAINT,;t t
22077s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22078s,@have_autoconf@,$have_autoconf,;t t
22079s,@have_automake@,$have_automake,;t t
22080s,@have_svn@,$have_svn,;t t
22081s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22082s,@AUX_DIR@,$AUX_DIR,;t t
22083s,@abs_source_dir@,$abs_source_dir,;t t
22084s,@abs_lib_dir@,$abs_lib_dir,;t t
22085s,@abs_include_dir@,$abs_include_dir,;t t
22086s,@abs_bin_dir@,$abs_bin_dir,;t t
22087s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22088s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22089s,@host@,$host,;t t
22090s,@host_cpu@,$host_cpu,;t t
22091s,@host_vendor@,$host_vendor,;t t
22092s,@host_os@,$host_os,;t t
22093s,@ECHO@,$ECHO,;t t
22094s,@AR@,$AR,;t t
22095s,@ac_ct_AR@,$ac_ct_AR,;t t
22096s,@RANLIB@,$RANLIB,;t t
22097s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22098s,@CPP@,$CPP,;t t
22099s,@CXXCPP@,$CXXCPP,;t t
22100s,@F77@,$F77,;t t
22101s,@FFLAGS@,$FFLAGS,;t t
22102s,@ac_ct_F77@,$ac_ct_F77,;t t
22103s,@LIBTOOL@,$LIBTOOL,;t t
22104s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22105s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22106s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22107s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22108s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22109s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22110s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t
22111s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t
22112s,@SOPLEX_LIBS@,$SOPLEX_LIBS,;t t
22113s,@SOPLEX_CFLAGS@,$SOPLEX_CFLAGS,;t t
22114s,@SOPLEX_PCLIBS@,$SOPLEX_PCLIBS,;t t
22115s,@LIBEXT@,$LIBEXT,;t t
22116s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22117s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22118s,@LIBOBJS@,$LIBOBJS,;t t
22119s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22120CEOF
22121
22122_ACEOF
22123
22124  cat >>$CONFIG_STATUS <<\_ACEOF
22125  # Split the substitutions into bite-sized pieces for seds with
22126  # small command number limits, like on Digital OSF/1 and HP-UX.
22127  ac_max_sed_lines=48
22128  ac_sed_frag=1 # Number of current file.
22129  ac_beg=1 # First line for current file.
22130  ac_end=$ac_max_sed_lines # Line after last line for current file.
22131  ac_more_lines=:
22132  ac_sed_cmds=
22133  while $ac_more_lines; do
22134    if test $ac_beg -gt 1; then
22135      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22136    else
22137      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22138    fi
22139    if test ! -s $tmp/subs.frag; then
22140      ac_more_lines=false
22141    else
22142      # The purpose of the label and of the branching condition is to
22143      # speed up the sed processing (if there are no `@' at all, there
22144      # is no need to browse any of the substitutions).
22145      # These are the two extra sed commands mentioned above.
22146      (echo ':t
22147  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22148      if test -z "$ac_sed_cmds"; then
22149	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22150      else
22151	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22152      fi
22153      ac_sed_frag=`expr $ac_sed_frag + 1`
22154      ac_beg=$ac_end
22155      ac_end=`expr $ac_end + $ac_max_sed_lines`
22156    fi
22157  done
22158  if test -z "$ac_sed_cmds"; then
22159    ac_sed_cmds=cat
22160  fi
22161fi # test -n "$CONFIG_FILES"
22162
22163_ACEOF
22164cat >>$CONFIG_STATUS <<\_ACEOF
22165for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22166  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22167  case $ac_file in
22168  - | *:- | *:-:* ) # input from stdin
22169	cat >$tmp/stdin
22170	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22171	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22172  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22173	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22174  * )   ac_file_in=$ac_file.in ;;
22175  esac
22176
22177  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22178  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22179$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22180	 X"$ac_file" : 'X\(//\)[^/]' \| \
22181	 X"$ac_file" : 'X\(//\)$' \| \
22182	 X"$ac_file" : 'X\(/\)' \| \
22183	 .     : '\(.\)' 2>/dev/null ||
22184echo X"$ac_file" |
22185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22186  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22187  	  /^X\(\/\/\)$/{ s//\1/; q; }
22188  	  /^X\(\/\).*/{ s//\1/; q; }
22189  	  s/.*/./; q'`
22190  { if $as_mkdir_p; then
22191    mkdir -p "$ac_dir"
22192  else
22193    as_dir="$ac_dir"
22194    as_dirs=
22195    while test ! -d "$as_dir"; do
22196      as_dirs="$as_dir $as_dirs"
22197      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22198$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22199	 X"$as_dir" : 'X\(//\)[^/]' \| \
22200	 X"$as_dir" : 'X\(//\)$' \| \
22201	 X"$as_dir" : 'X\(/\)' \| \
22202	 .     : '\(.\)' 2>/dev/null ||
22203echo X"$as_dir" |
22204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22205  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22206  	  /^X\(\/\/\)$/{ s//\1/; q; }
22207  	  /^X\(\/\).*/{ s//\1/; q; }
22208  	  s/.*/./; q'`
22209    done
22210    test ! -n "$as_dirs" || mkdir $as_dirs
22211  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22212echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22213   { (exit 1); exit 1; }; }; }
22214
22215  ac_builddir=.
22216
22217if test "$ac_dir" != .; then
22218  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22219  # A "../" for each directory in $ac_dir_suffix.
22220  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22221else
22222  ac_dir_suffix= ac_top_builddir=
22223fi
22224
22225case $srcdir in
22226  .)  # No --srcdir option.  We are building in place.
22227    ac_srcdir=.
22228    if test -z "$ac_top_builddir"; then
22229       ac_top_srcdir=.
22230    else
22231       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22232    fi ;;
22233  [\\/]* | ?:[\\/]* )  # Absolute path.
22234    ac_srcdir=$srcdir$ac_dir_suffix;
22235    ac_top_srcdir=$srcdir ;;
22236  *) # Relative path.
22237    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22238    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22239esac
22240
22241# Do not use `cd foo && pwd` to compute absolute paths, because
22242# the directories may not exist.
22243case `pwd` in
22244.) ac_abs_builddir="$ac_dir";;
22245*)
22246  case "$ac_dir" in
22247  .) ac_abs_builddir=`pwd`;;
22248  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22249  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22250  esac;;
22251esac
22252case $ac_abs_builddir in
22253.) ac_abs_top_builddir=${ac_top_builddir}.;;
22254*)
22255  case ${ac_top_builddir}. in
22256  .) ac_abs_top_builddir=$ac_abs_builddir;;
22257  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22258  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22259  esac;;
22260esac
22261case $ac_abs_builddir in
22262.) ac_abs_srcdir=$ac_srcdir;;
22263*)
22264  case $ac_srcdir in
22265  .) ac_abs_srcdir=$ac_abs_builddir;;
22266  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22267  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22268  esac;;
22269esac
22270case $ac_abs_builddir in
22271.) ac_abs_top_srcdir=$ac_top_srcdir;;
22272*)
22273  case $ac_top_srcdir in
22274  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22275  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22276  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22277  esac;;
22278esac
22279
22280
22281  case $INSTALL in
22282  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22283  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22284  esac
22285
22286  if test x"$ac_file" != x-; then
22287    { echo "$as_me:$LINENO: creating $ac_file" >&5
22288echo "$as_me: creating $ac_file" >&6;}
22289    rm -f "$ac_file"
22290  fi
22291  # Let's still pretend it is `configure' which instantiates (i.e., don't
22292  # use $as_me), people would be surprised to read:
22293  #    /* config.h.  Generated by config.status.  */
22294  if test x"$ac_file" = x-; then
22295    configure_input=
22296  else
22297    configure_input="$ac_file.  "
22298  fi
22299  configure_input=$configure_input"Generated from `echo $ac_file_in |
22300				     sed 's,.*/,,'` by configure."
22301
22302  # First look for the input files in the build tree, otherwise in the
22303  # src tree.
22304  ac_file_inputs=`IFS=:
22305    for f in $ac_file_in; do
22306      case $f in
22307      -) echo $tmp/stdin ;;
22308      [\\/$]*)
22309	 # Absolute (can't be DOS-style, as IFS=:)
22310	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22311echo "$as_me: error: cannot find input file: $f" >&2;}
22312   { (exit 1); exit 1; }; }
22313	 echo "$f";;
22314      *) # Relative
22315	 if test -f "$f"; then
22316	   # Build tree
22317	   echo "$f"
22318	 elif test -f "$srcdir/$f"; then
22319	   # Source tree
22320	   echo "$srcdir/$f"
22321	 else
22322	   # /dev/null tree
22323	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22324echo "$as_me: error: cannot find input file: $f" >&2;}
22325   { (exit 1); exit 1; }; }
22326	 fi;;
22327      esac
22328    done` || { (exit 1); exit 1; }
22329_ACEOF
22330cat >>$CONFIG_STATUS <<_ACEOF
22331  sed "$ac_vpsub
22332$extrasub
22333_ACEOF
22334cat >>$CONFIG_STATUS <<\_ACEOF
22335:t
22336/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22337s,@configure_input@,$configure_input,;t t
22338s,@srcdir@,$ac_srcdir,;t t
22339s,@abs_srcdir@,$ac_abs_srcdir,;t t
22340s,@top_srcdir@,$ac_top_srcdir,;t t
22341s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22342s,@builddir@,$ac_builddir,;t t
22343s,@abs_builddir@,$ac_abs_builddir,;t t
22344s,@top_builddir@,$ac_top_builddir,;t t
22345s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22346s,@INSTALL@,$ac_INSTALL,;t t
22347" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22348  rm -f $tmp/stdin
22349  if test x"$ac_file" != x-; then
22350    mv $tmp/out $ac_file
22351  else
22352    cat $tmp/out
22353    rm -f $tmp/out
22354  fi
22355
22356done
22357_ACEOF
22358cat >>$CONFIG_STATUS <<\_ACEOF
22359
22360#
22361# CONFIG_HEADER section.
22362#
22363
22364# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22365# NAME is the cpp macro being defined and VALUE is the value it is being given.
22366#
22367# ac_d sets the value in "#define NAME VALUE" lines.
22368ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22369ac_dB='[	 ].*$,\1#\2'
22370ac_dC=' '
22371ac_dD=',;t'
22372# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22373ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22374ac_uB='$,\1#\2define\3'
22375ac_uC=' '
22376ac_uD=',;t'
22377
22378for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22379  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22380  case $ac_file in
22381  - | *:- | *:-:* ) # input from stdin
22382	cat >$tmp/stdin
22383	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22384	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22385  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22386	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22387  * )   ac_file_in=$ac_file.in ;;
22388  esac
22389
22390  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22391echo "$as_me: creating $ac_file" >&6;}
22392
22393  # First look for the input files in the build tree, otherwise in the
22394  # src tree.
22395  ac_file_inputs=`IFS=:
22396    for f in $ac_file_in; do
22397      case $f in
22398      -) echo $tmp/stdin ;;
22399      [\\/$]*)
22400	 # Absolute (can't be DOS-style, as IFS=:)
22401	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22402echo "$as_me: error: cannot find input file: $f" >&2;}
22403   { (exit 1); exit 1; }; }
22404	 # Do quote $f, to prevent DOS paths from being IFS'd.
22405	 echo "$f";;
22406      *) # Relative
22407	 if test -f "$f"; then
22408	   # Build tree
22409	   echo "$f"
22410	 elif test -f "$srcdir/$f"; then
22411	   # Source tree
22412	   echo "$srcdir/$f"
22413	 else
22414	   # /dev/null tree
22415	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22416echo "$as_me: error: cannot find input file: $f" >&2;}
22417   { (exit 1); exit 1; }; }
22418	 fi;;
22419      esac
22420    done` || { (exit 1); exit 1; }
22421  # Remove the trailing spaces.
22422  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22423
22424_ACEOF
22425
22426# Transform confdefs.h into two sed scripts, `conftest.defines' and
22427# `conftest.undefs', that substitutes the proper values into
22428# config.h.in to produce config.h.  The first handles `#define'
22429# templates, and the second `#undef' templates.
22430# And first: Protect against being on the right side of a sed subst in
22431# config.status.  Protect against being in an unquoted here document
22432# in config.status.
22433rm -f conftest.defines conftest.undefs
22434# Using a here document instead of a string reduces the quoting nightmare.
22435# Putting comments in sed scripts is not portable.
22436#
22437# `end' is used to avoid that the second main sed command (meant for
22438# 0-ary CPP macros) applies to n-ary macro definitions.
22439# See the Autoconf documentation for `clear'.
22440cat >confdef2sed.sed <<\_ACEOF
22441s/[\\&,]/\\&/g
22442s,[\\$`],\\&,g
22443t clear
22444: clear
22445s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22446t end
22447s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22448: end
22449_ACEOF
22450# If some macros were called several times there might be several times
22451# the same #defines, which is useless.  Nevertheless, we may not want to
22452# sort them, since we want the *last* AC-DEFINE to be honored.
22453uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22454sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22455rm -f confdef2sed.sed
22456
22457# This sed command replaces #undef with comments.  This is necessary, for
22458# example, in the case of _POSIX_SOURCE, which is predefined and required
22459# on some systems where configure will not decide to define it.
22460cat >>conftest.undefs <<\_ACEOF
22461s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22462_ACEOF
22463
22464# Break up conftest.defines because some shells have a limit on the size
22465# of here documents, and old seds have small limits too (100 cmds).
22466echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22467echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22468echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22469echo '  :' >>$CONFIG_STATUS
22470rm -f conftest.tail
22471while grep . conftest.defines >/dev/null
22472do
22473  # Write a limited-size here document to $tmp/defines.sed.
22474  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22475  # Speed up: don't consider the non `#define' lines.
22476  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22477  # Work around the forget-to-reset-the-flag bug.
22478  echo 't clr' >>$CONFIG_STATUS
22479  echo ': clr' >>$CONFIG_STATUS
22480  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22481  echo 'CEOF
22482  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22483  rm -f $tmp/in
22484  mv $tmp/out $tmp/in
22485' >>$CONFIG_STATUS
22486  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22487  rm -f conftest.defines
22488  mv conftest.tail conftest.defines
22489done
22490rm -f conftest.defines
22491echo '  fi # grep' >>$CONFIG_STATUS
22492echo >>$CONFIG_STATUS
22493
22494# Break up conftest.undefs because some shells have a limit on the size
22495# of here documents, and old seds have small limits too (100 cmds).
22496echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22497rm -f conftest.tail
22498while grep . conftest.undefs >/dev/null
22499do
22500  # Write a limited-size here document to $tmp/undefs.sed.
22501  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22502  # Speed up: don't consider the non `#undef'
22503  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22504  # Work around the forget-to-reset-the-flag bug.
22505  echo 't clr' >>$CONFIG_STATUS
22506  echo ': clr' >>$CONFIG_STATUS
22507  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22508  echo 'CEOF
22509  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22510  rm -f $tmp/in
22511  mv $tmp/out $tmp/in
22512' >>$CONFIG_STATUS
22513  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22514  rm -f conftest.undefs
22515  mv conftest.tail conftest.undefs
22516done
22517rm -f conftest.undefs
22518
22519cat >>$CONFIG_STATUS <<\_ACEOF
22520  # Let's still pretend it is `configure' which instantiates (i.e., don't
22521  # use $as_me), people would be surprised to read:
22522  #    /* config.h.  Generated by config.status.  */
22523  if test x"$ac_file" = x-; then
22524    echo "/* Generated by configure.  */" >$tmp/config.h
22525  else
22526    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22527  fi
22528  cat $tmp/in >>$tmp/config.h
22529  rm -f $tmp/in
22530  if test x"$ac_file" != x-; then
22531    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22532      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22533echo "$as_me: $ac_file is unchanged" >&6;}
22534    else
22535      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537	 X"$ac_file" : 'X\(//\)[^/]' \| \
22538	 X"$ac_file" : 'X\(//\)$' \| \
22539	 X"$ac_file" : 'X\(/\)' \| \
22540	 .     : '\(.\)' 2>/dev/null ||
22541echo X"$ac_file" |
22542    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22543  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22544  	  /^X\(\/\/\)$/{ s//\1/; q; }
22545  	  /^X\(\/\).*/{ s//\1/; q; }
22546  	  s/.*/./; q'`
22547      { if $as_mkdir_p; then
22548    mkdir -p "$ac_dir"
22549  else
22550    as_dir="$ac_dir"
22551    as_dirs=
22552    while test ! -d "$as_dir"; do
22553      as_dirs="$as_dir $as_dirs"
22554      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22556	 X"$as_dir" : 'X\(//\)[^/]' \| \
22557	 X"$as_dir" : 'X\(//\)$' \| \
22558	 X"$as_dir" : 'X\(/\)' \| \
22559	 .     : '\(.\)' 2>/dev/null ||
22560echo X"$as_dir" |
22561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22562  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22563  	  /^X\(\/\/\)$/{ s//\1/; q; }
22564  	  /^X\(\/\).*/{ s//\1/; q; }
22565  	  s/.*/./; q'`
22566    done
22567    test ! -n "$as_dirs" || mkdir $as_dirs
22568  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22569echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22570   { (exit 1); exit 1; }; }; }
22571
22572      rm -f $ac_file
22573      mv $tmp/config.h $ac_file
22574    fi
22575  else
22576    cat $tmp/config.h
22577    rm -f $tmp/config.h
22578  fi
22579# Compute $ac_file's index in $config_headers.
22580_am_stamp_count=1
22581for _am_header in $config_headers :; do
22582  case $_am_header in
22583    $ac_file | $ac_file:* )
22584      break ;;
22585    * )
22586      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22587  esac
22588done
22589echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22590$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22591	 X$ac_file : 'X\(//\)[^/]' \| \
22592	 X$ac_file : 'X\(//\)$' \| \
22593	 X$ac_file : 'X\(/\)' \| \
22594	 .     : '\(.\)' 2>/dev/null ||
22595echo X$ac_file |
22596    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22597  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22598  	  /^X\(\/\/\)$/{ s//\1/; q; }
22599  	  /^X\(\/\).*/{ s//\1/; q; }
22600  	  s/.*/./; q'`/stamp-h$_am_stamp_count
22601done
22602_ACEOF
22603cat >>$CONFIG_STATUS <<\_ACEOF
22604
22605#
22606# CONFIG_COMMANDS section.
22607#
22608for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22609  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22610  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22611  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22612$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22613	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22614	 X"$ac_dest" : 'X\(//\)$' \| \
22615	 X"$ac_dest" : 'X\(/\)' \| \
22616	 .     : '\(.\)' 2>/dev/null ||
22617echo X"$ac_dest" |
22618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22619  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22620  	  /^X\(\/\/\)$/{ s//\1/; q; }
22621  	  /^X\(\/\).*/{ s//\1/; q; }
22622  	  s/.*/./; q'`
22623  { if $as_mkdir_p; then
22624    mkdir -p "$ac_dir"
22625  else
22626    as_dir="$ac_dir"
22627    as_dirs=
22628    while test ! -d "$as_dir"; do
22629      as_dirs="$as_dir $as_dirs"
22630      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632	 X"$as_dir" : 'X\(//\)[^/]' \| \
22633	 X"$as_dir" : 'X\(//\)$' \| \
22634	 X"$as_dir" : 'X\(/\)' \| \
22635	 .     : '\(.\)' 2>/dev/null ||
22636echo X"$as_dir" |
22637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22638  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22639  	  /^X\(\/\/\)$/{ s//\1/; q; }
22640  	  /^X\(\/\).*/{ s//\1/; q; }
22641  	  s/.*/./; q'`
22642    done
22643    test ! -n "$as_dirs" || mkdir $as_dirs
22644  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22645echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22646   { (exit 1); exit 1; }; }; }
22647
22648  ac_builddir=.
22649
22650if test "$ac_dir" != .; then
22651  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22652  # A "../" for each directory in $ac_dir_suffix.
22653  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22654else
22655  ac_dir_suffix= ac_top_builddir=
22656fi
22657
22658case $srcdir in
22659  .)  # No --srcdir option.  We are building in place.
22660    ac_srcdir=.
22661    if test -z "$ac_top_builddir"; then
22662       ac_top_srcdir=.
22663    else
22664       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22665    fi ;;
22666  [\\/]* | ?:[\\/]* )  # Absolute path.
22667    ac_srcdir=$srcdir$ac_dir_suffix;
22668    ac_top_srcdir=$srcdir ;;
22669  *) # Relative path.
22670    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22671    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22672esac
22673
22674# Do not use `cd foo && pwd` to compute absolute paths, because
22675# the directories may not exist.
22676case `pwd` in
22677.) ac_abs_builddir="$ac_dir";;
22678*)
22679  case "$ac_dir" in
22680  .) ac_abs_builddir=`pwd`;;
22681  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22682  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22683  esac;;
22684esac
22685case $ac_abs_builddir in
22686.) ac_abs_top_builddir=${ac_top_builddir}.;;
22687*)
22688  case ${ac_top_builddir}. in
22689  .) ac_abs_top_builddir=$ac_abs_builddir;;
22690  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22691  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22692  esac;;
22693esac
22694case $ac_abs_builddir in
22695.) ac_abs_srcdir=$ac_srcdir;;
22696*)
22697  case $ac_srcdir in
22698  .) ac_abs_srcdir=$ac_abs_builddir;;
22699  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22700  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22701  esac;;
22702esac
22703case $ac_abs_builddir in
22704.) ac_abs_top_srcdir=$ac_top_srcdir;;
22705*)
22706  case $ac_top_srcdir in
22707  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22708  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22709  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22710  esac;;
22711esac
22712
22713
22714  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22715echo "$as_me: executing $ac_dest commands" >&6;}
22716  case $ac_dest in
22717    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22718  # Strip MF so we end up with the name of the file.
22719  mf=`echo "$mf" | sed -e 's/:.*$//'`
22720  # Check whether this is an Automake generated Makefile or not.
22721  # We used to match only the files named `Makefile.in', but
22722  # some people rename them; so instead we look at the file content.
22723  # Grep'ing the first line is not enough: some people post-process
22724  # each Makefile.in and add a new line on top of each file to say so.
22725  # So let's grep whole file.
22726  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22727    dirpart=`(dirname "$mf") 2>/dev/null ||
22728$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22729	 X"$mf" : 'X\(//\)[^/]' \| \
22730	 X"$mf" : 'X\(//\)$' \| \
22731	 X"$mf" : 'X\(/\)' \| \
22732	 .     : '\(.\)' 2>/dev/null ||
22733echo X"$mf" |
22734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22735  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22736  	  /^X\(\/\/\)$/{ s//\1/; q; }
22737  	  /^X\(\/\).*/{ s//\1/; q; }
22738  	  s/.*/./; q'`
22739  else
22740    continue
22741  fi
22742  # Extract the definition of DEPDIR, am__include, and am__quote
22743  # from the Makefile without running `make'.
22744  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22745  test -z "$DEPDIR" && continue
22746  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22747  test -z "am__include" && continue
22748  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22749  # When using ansi2knr, U may be empty or an underscore; expand it
22750  U=`sed -n 's/^U = //p' < "$mf"`
22751  # Find all dependency output files, they are included files with
22752  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22753  # simplest approach to changing $(DEPDIR) to its actual value in the
22754  # expansion.
22755  for file in `sed -n "
22756    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22757       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22758    # Make sure the directory exists.
22759    test -f "$dirpart/$file" && continue
22760    fdir=`(dirname "$file") 2>/dev/null ||
22761$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22762	 X"$file" : 'X\(//\)[^/]' \| \
22763	 X"$file" : 'X\(//\)$' \| \
22764	 X"$file" : 'X\(/\)' \| \
22765	 .     : '\(.\)' 2>/dev/null ||
22766echo X"$file" |
22767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22768  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22769  	  /^X\(\/\/\)$/{ s//\1/; q; }
22770  	  /^X\(\/\).*/{ s//\1/; q; }
22771  	  s/.*/./; q'`
22772    { if $as_mkdir_p; then
22773    mkdir -p $dirpart/$fdir
22774  else
22775    as_dir=$dirpart/$fdir
22776    as_dirs=
22777    while test ! -d "$as_dir"; do
22778      as_dirs="$as_dir $as_dirs"
22779      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22781	 X"$as_dir" : 'X\(//\)[^/]' \| \
22782	 X"$as_dir" : 'X\(//\)$' \| \
22783	 X"$as_dir" : 'X\(/\)' \| \
22784	 .     : '\(.\)' 2>/dev/null ||
22785echo X"$as_dir" |
22786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22787  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22788  	  /^X\(\/\/\)$/{ s//\1/; q; }
22789  	  /^X\(\/\).*/{ s//\1/; q; }
22790  	  s/.*/./; q'`
22791    done
22792    test ! -n "$as_dirs" || mkdir $as_dirs
22793  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22794echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22795   { (exit 1); exit 1; }; }; }
22796
22797    # echo "creating $dirpart/$file"
22798    echo '# dummy' > "$dirpart/$file"
22799  done
22800done
22801 ;;
22802  esac
22803done
22804_ACEOF
22805
22806cat >>$CONFIG_STATUS <<\_ACEOF
22807
22808{ (exit 0); exit 0; }
22809_ACEOF
22810chmod +x $CONFIG_STATUS
22811ac_clean_files=$ac_clean_files_save
22812
22813
22814# configure is writing to config.log, and then calls config.status.
22815# config.status does its own redirection, appending to config.log.
22816# Unfortunately, on DOS this fails, as config.log is still kept open
22817# by configure, so config.status won't be able to write to it; its
22818# output is simply discarded.  So we exec the FD to /dev/null,
22819# effectively closing config.log, so it can be properly (re)opened and
22820# appended to by config.status.  When coming back to configure, we
22821# need to make the FD available again.
22822if test "$no_create" != yes; then
22823  ac_cs_success=:
22824  ac_config_status_args=
22825  test "$silent" = yes &&
22826    ac_config_status_args="$ac_config_status_args --quiet"
22827  exec 5>/dev/null
22828  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22829  exec 5>>config.log
22830  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22831  # would make configure fail if this is the last instruction.
22832  $ac_cs_success || { (exit 1); exit 1; }
22833fi
22834
22835
22836  if test x"$coin_vpath_link_files" = x; then : ; else
22837    lnkcmd="$coin_link_input_cmd"
22838    if test "$lnkcmd" = cp; then
22839      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
22840echo "$as_me: Copying data files for VPATH configuration" >&6;}
22841    else
22842      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
22843echo "$as_me: Creating VPATH links for data files" >&6;}
22844    fi
22845    for file in $coin_vpath_link_files; do
22846      dir=`(dirname "./$file") 2>/dev/null ||
22847$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848	 X"./$file" : 'X\(//\)[^/]' \| \
22849	 X"./$file" : 'X\(//\)$' \| \
22850	 X"./$file" : 'X\(/\)' \| \
22851	 .     : '\(.\)' 2>/dev/null ||
22852echo X"./$file" |
22853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22854  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22855  	  /^X\(\/\/\)$/{ s//\1/; q; }
22856  	  /^X\(\/\).*/{ s//\1/; q; }
22857  	  s/.*/./; q'`
22858      if test -d $dir; then : ; else
22859        { if $as_mkdir_p; then
22860    mkdir -p $dir
22861  else
22862    as_dir=$dir
22863    as_dirs=
22864    while test ! -d "$as_dir"; do
22865      as_dirs="$as_dir $as_dirs"
22866      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22867$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22868	 X"$as_dir" : 'X\(//\)[^/]' \| \
22869	 X"$as_dir" : 'X\(//\)$' \| \
22870	 X"$as_dir" : 'X\(/\)' \| \
22871	 .     : '\(.\)' 2>/dev/null ||
22872echo X"$as_dir" |
22873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22875  	  /^X\(\/\/\)$/{ s//\1/; q; }
22876  	  /^X\(\/\).*/{ s//\1/; q; }
22877  	  s/.*/./; q'`
22878    done
22879    test ! -n "$as_dirs" || mkdir $as_dirs
22880  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
22881echo "$as_me: error: cannot create directory $dir" >&2;}
22882   { (exit 1); exit 1; }; }; }
22883
22884      fi
22885      rm -f $file
22886      $lnkcmd $abs_source_dir/$file $file
22887    done
22888  fi
22889
22890  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
22891echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
22892  if test x$coin_projectdir = xyes; then
22893    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
22894echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
22895  else
22896    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
22897echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
22898  fi
22899else
22900  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
22901echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
22902fi
22903
22904
22905