1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.10.7.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76	 X"$0" : 'X\(//\)$' \| \
77	 X"$0" : 'X\(/\)$' \| \
78	 .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
82  	  /^X\/\(\/\).*/{ s//\1/; q; }
83  	  s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144	 case $as_dir in
145	 /*)
146	   if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154	     CONFIG_SHELL=$as_dir/$as_base
155	     export CONFIG_SHELL
156	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157	   fi;;
158	 esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='	' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" 	$as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.10.7'
433PACKAGE_STRING='ThirdPartyGlpk 1.10.7'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.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 GLPK_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 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_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_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.10.7 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013			  [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015			  [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.10.7:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072			  (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-dependency-linking
1079                          disable linking library dependencies into shared
1080                          libraries
1081  --disable-gmp           do not compile with GNU multiple precision library
1082  --enable-odbc           enable MathProg ODBC support [default=auto]
1083  --enable-mysql          enable MathProg MySQL support [default=auto]
1084
1085Optional Packages:
1086  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1087  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1088  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1089  --with-glpk-checklevel specify the sanity check level for project Glpk
1090  --with-coin-instdir     prefix of installation directory for precompiled
1091                          COIN packages
1092  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093  --with-pic              try to use only PIC/non-PIC objects [default=use
1094                          both]
1095  --with-tags[=TAGS]
1096                          include additional configurations [automatic]
1097
1098Some influential environment variables:
1099  CDEFS       Additional -D flags to be used when compiling C code.
1100  ADD_CFLAGS  Additional C compiler options
1101  DBG_CFLAGS  Debug C compiler options
1102  OPT_CFLAGS  Optimize C compiler options
1103  CC          C compiler command
1104  CFLAGS      C compiler flags
1105  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106              nonstandard directory <lib dir>
1107  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108              headers in a nonstandard directory <include dir>
1109  MPICC       C MPI Compiler
1110  PKG_CONFIG  path to pkg-config utility
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117
1118Use these variables to override the choices made by `configure' or to help
1119it to find libraries and programs with nonstandard names/locations.
1120
1121Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1122_ACEOF
1123fi
1124
1125if test "$ac_init_help" = "recursive"; then
1126  # If there are subdirs, report their specific --help.
1127  ac_popdir=`pwd`
1128  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129    test -d $ac_dir || continue
1130    ac_builddir=.
1131
1132if test "$ac_dir" != .; then
1133  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134  # A "../" for each directory in $ac_dir_suffix.
1135  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136else
1137  ac_dir_suffix= ac_top_builddir=
1138fi
1139
1140case $srcdir in
1141  .)  # No --srcdir option.  We are building in place.
1142    ac_srcdir=.
1143    if test -z "$ac_top_builddir"; then
1144       ac_top_srcdir=.
1145    else
1146       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147    fi ;;
1148  [\\/]* | ?:[\\/]* )  # Absolute path.
1149    ac_srcdir=$srcdir$ac_dir_suffix;
1150    ac_top_srcdir=$srcdir ;;
1151  *) # Relative path.
1152    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154esac
1155
1156# Do not use `cd foo && pwd` to compute absolute paths, because
1157# the directories may not exist.
1158case `pwd` in
1159.) ac_abs_builddir="$ac_dir";;
1160*)
1161  case "$ac_dir" in
1162  .) ac_abs_builddir=`pwd`;;
1163  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165  esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_builddir=${ac_top_builddir}.;;
1169*)
1170  case ${ac_top_builddir}. in
1171  .) ac_abs_top_builddir=$ac_abs_builddir;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_srcdir=$ac_srcdir;;
1178*)
1179  case $ac_srcdir in
1180  .) ac_abs_srcdir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_srcdir=$ac_top_srcdir;;
1187*)
1188  case $ac_top_srcdir in
1189  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192  esac;;
1193esac
1194
1195    cd $ac_dir
1196    # Check for guested configure; otherwise get Cygnus style configure.
1197    if test -f $ac_srcdir/configure.gnu; then
1198      echo
1199      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1200    elif test -f $ac_srcdir/configure; then
1201      echo
1202      $SHELL $ac_srcdir/configure  --help=recursive
1203    elif test -f $ac_srcdir/configure.ac ||
1204	   test -f $ac_srcdir/configure.in; then
1205      echo
1206      $ac_configure --help
1207    else
1208      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1209    fi
1210    cd $ac_popdir
1211  done
1212fi
1213
1214test -n "$ac_init_help" && exit 0
1215if $ac_init_version; then
1216  cat <<\_ACEOF
1217ThirdPartyGlpk configure 1.10.7
1218generated by GNU Autoconf 2.59
1219
1220Copyright (C) 2003 Free Software Foundation, Inc.
1221This configure script is free software; the Free Software Foundation
1222gives unlimited permission to copy, distribute and modify it.
1223
1224
1225Copyright 2007-2010 Stefan Vigerske and others.
1226All Rights Reserved.
1227This file is part of the open source package Coin which is distributed
1228under the Eclipse Public License.
1229_ACEOF
1230  exit 0
1231fi
1232exec 5>config.log
1233cat >&5 <<_ACEOF
1234This file contains any messages produced by compilers while
1235running configure, to aid debugging if configure makes a mistake.
1236
1237It was created by ThirdPartyGlpk $as_me 1.10.7, which was
1238generated by GNU Autoconf 2.59.  Invocation command line was
1239
1240  $ $0 $@
1241
1242_ACEOF
1243{
1244cat <<_ASUNAME
1245## --------- ##
1246## Platform. ##
1247## --------- ##
1248
1249hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1250uname -m = `(uname -m) 2>/dev/null || echo unknown`
1251uname -r = `(uname -r) 2>/dev/null || echo unknown`
1252uname -s = `(uname -s) 2>/dev/null || echo unknown`
1253uname -v = `(uname -v) 2>/dev/null || echo unknown`
1254
1255/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1256/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1257
1258/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1259/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1260/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1261hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1262/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1263/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1264/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1265
1266_ASUNAME
1267
1268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269for as_dir in $PATH
1270do
1271  IFS=$as_save_IFS
1272  test -z "$as_dir" && as_dir=.
1273  echo "PATH: $as_dir"
1274done
1275
1276} >&5
1277
1278cat >&5 <<_ACEOF
1279
1280
1281## ----------- ##
1282## Core tests. ##
1283## ----------- ##
1284
1285_ACEOF
1286
1287
1288# Keep a trace of the command line.
1289# Strip out --no-create and --no-recursion so they do not pile up.
1290# Strip out --silent because we don't want to record it for future runs.
1291# Also quote any args containing shell meta-characters.
1292# Make two passes to allow for proper duplicate-argument suppression.
1293ac_configure_args=
1294ac_configure_args0=
1295ac_configure_args1=
1296ac_sep=
1297ac_must_keep_next=false
1298for ac_pass in 1 2
1299do
1300  for ac_arg
1301  do
1302    case $ac_arg in
1303    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1304    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305    | -silent | --silent | --silen | --sile | --sil)
1306      continue ;;
1307    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1309    esac
1310    case $ac_pass in
1311    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1312    2)
1313      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1314      if test $ac_must_keep_next = true; then
1315	ac_must_keep_next=false # Got value, back to normal.
1316      else
1317	case $ac_arg in
1318	  *=* | --config-cache | -C | -disable-* | --disable-* \
1319	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1320	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1321	  | -with-* | --with-* | -without-* | --without-* | --x)
1322	    case "$ac_configure_args0 " in
1323	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1324	    esac
1325	    ;;
1326	  -* ) ac_must_keep_next=true ;;
1327	esac
1328      fi
1329      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330      # Get rid of the leading space.
1331      ac_sep=" "
1332      ;;
1333    esac
1334  done
1335done
1336$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1337$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1338
1339# When interrupted or exit'd, cleanup temporary files, and complete
1340# config.log.  We remove comments because anyway the quotes in there
1341# would cause problems or look ugly.
1342# WARNING: Be sure not to use single quotes in there, as some shells,
1343# such as our DU 5.0 friend, will then `close' the trap.
1344trap 'exit_status=$?
1345  # Save into config.log some information that might help in debugging.
1346  {
1347    echo
1348
1349    cat <<\_ASBOX
1350## ---------------- ##
1351## Cache variables. ##
1352## ---------------- ##
1353_ASBOX
1354    echo
1355    # The following way of writing the cache mishandles newlines in values,
1356{
1357  (set) 2>&1 |
1358    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1359    *ac_space=\ *)
1360      sed -n \
1361	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1362	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1363      ;;
1364    *)
1365      sed -n \
1366	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367      ;;
1368    esac;
1369}
1370    echo
1371
1372    cat <<\_ASBOX
1373## ----------------- ##
1374## Output variables. ##
1375## ----------------- ##
1376_ASBOX
1377    echo
1378    for ac_var in $ac_subst_vars
1379    do
1380      eval ac_val=$`echo $ac_var`
1381      echo "$ac_var='"'"'$ac_val'"'"'"
1382    done | sort
1383    echo
1384
1385    if test -n "$ac_subst_files"; then
1386      cat <<\_ASBOX
1387## ------------- ##
1388## Output files. ##
1389## ------------- ##
1390_ASBOX
1391      echo
1392      for ac_var in $ac_subst_files
1393      do
1394	eval ac_val=$`echo $ac_var`
1395	echo "$ac_var='"'"'$ac_val'"'"'"
1396      done | sort
1397      echo
1398    fi
1399
1400    if test -s confdefs.h; then
1401      cat <<\_ASBOX
1402## ----------- ##
1403## confdefs.h. ##
1404## ----------- ##
1405_ASBOX
1406      echo
1407      sed "/^$/d" confdefs.h | sort
1408      echo
1409    fi
1410    test "$ac_signal" != 0 &&
1411      echo "$as_me: caught signal $ac_signal"
1412    echo "$as_me: exit $exit_status"
1413  } >&5
1414  rm -f core *.core &&
1415  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1416    exit $exit_status
1417     ' 0
1418for ac_signal in 1 2 13 15; do
1419  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1420done
1421ac_signal=0
1422
1423# confdefs.h avoids OS command line length limits that DEFS can exceed.
1424rm -rf conftest* confdefs.h
1425# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1426echo >confdefs.h
1427
1428# Predefined preprocessor variables.
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_NAME "$PACKAGE_NAME"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_VERSION "$PACKAGE_VERSION"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_STRING "$PACKAGE_STRING"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1452_ACEOF
1453
1454
1455# Let the site file select an alternate cache file if it wants to.
1456# Prefer explicitly selected file to automatically selected ones.
1457if test -z "$CONFIG_SITE"; then
1458  if test "x$prefix" != xNONE; then
1459    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1460  else
1461    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1462  fi
1463fi
1464for ac_site_file in $CONFIG_SITE; do
1465  if test -r "$ac_site_file"; then
1466    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1467echo "$as_me: loading site script $ac_site_file" >&6;}
1468    sed 's/^/| /' "$ac_site_file" >&5
1469    . "$ac_site_file"
1470  fi
1471done
1472
1473if test -r "$cache_file"; then
1474  # Some versions of bash will fail to source /dev/null (special
1475  # files actually), so we avoid doing that.
1476  if test -f "$cache_file"; then
1477    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1478echo "$as_me: loading cache $cache_file" >&6;}
1479    case $cache_file in
1480      [\\/]* | ?:[\\/]* ) . $cache_file;;
1481      *)                      . ./$cache_file;;
1482    esac
1483  fi
1484else
1485  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1486echo "$as_me: creating cache $cache_file" >&6;}
1487  >$cache_file
1488fi
1489
1490# Check that the precious variables saved in the cache have kept the same
1491# value.
1492ac_cache_corrupted=false
1493for ac_var in `(set) 2>&1 |
1494	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1495  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1496  eval ac_new_set=\$ac_env_${ac_var}_set
1497  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1498  eval ac_new_val="\$ac_env_${ac_var}_value"
1499  case $ac_old_set,$ac_new_set in
1500    set,)
1501      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1502echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1503      ac_cache_corrupted=: ;;
1504    ,set)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,);;
1509    *)
1510      if test "x$ac_old_val" != "x$ac_new_val"; then
1511	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1512echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1513	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1514echo "$as_me:   former value:  $ac_old_val" >&2;}
1515	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1516echo "$as_me:   current value: $ac_new_val" >&2;}
1517	ac_cache_corrupted=:
1518      fi;;
1519  esac
1520  # Pass precious variables to config.status.
1521  if test "$ac_new_set" = set; then
1522    case $ac_new_val in
1523    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1524      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525    *) ac_arg=$ac_var=$ac_new_val ;;
1526    esac
1527    case " $ac_configure_args " in
1528      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1529      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530    esac
1531  fi
1532done
1533if $ac_cache_corrupted; then
1534  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1535echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1537echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540
1541ac_ext=c
1542ac_cpp='$CPP $CPPFLAGS'
1543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576# List one file in the package so that the configure script can test
1577# whether the package is actually there
1578
1579
1580# Where should everything be installed by default?  Here, we want it
1581# to be installed directly in 'bin', 'lib', 'include' subdirectories
1582# of the directory where configure is run.  The default would be
1583# /usr/local.
1584
1585
1586
1587# As backup, we make sure we don't loose an FLIBS if it has been set
1588# by the user
1589save_FLIBS="$FLIBS"
1590
1591# A useful makefile conditional that is always false
1592
1593
1594if false; then
1595  ALWAYS_FALSE_TRUE=
1596  ALWAYS_FALSE_FALSE='#'
1597else
1598  ALWAYS_FALSE_TRUE='#'
1599  ALWAYS_FALSE_FALSE=
1600fi
1601
1602
1603# We set the following variable so that we know later in AC_COIN_FINALIZE
1604# that we are in a project main directory
1605coin_projectdir=yes
1606
1607# Set the project's version numbers
1608
1609
1610cat >>confdefs.h <<_ACEOF
1611#define GLPK_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613
1614
1615  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1616  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1617  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1618  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1619  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1620  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1621
1622cat >>confdefs.h <<_ACEOF
1623#define GLPK_VERSION_MAJOR $coin_majorver
1624_ACEOF
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define GLPK_VERSION_MINOR $coin_minorver
1629_ACEOF
1630
1631
1632cat >>confdefs.h <<_ACEOF
1633#define GLPK_VERSION_RELEASE $coin_releasever
1634_ACEOF
1635
1636
1637  # We use the following variable to have a string with the upper case
1638  # version of the project name
1639  COIN_PRJCT=GLPK
1640
1641  # Set the project's SVN revision number. The complicated sed expression
1642  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1643  # as a single number.
1644  # Extract the first word of "svnversion", so it can be a program name with args.
1645set dummy svnversion; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_have_svnversion+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  if test -n "$have_svnversion"; then
1652  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  for ac_exec_ext in '' $ac_executable_extensions; do
1660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661    ac_cv_prog_have_svnversion="yes"
1662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663    break 2
1664  fi
1665done
1666done
1667
1668  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1669fi
1670fi
1671have_svnversion=$ac_cv_prog_have_svnversion
1672if test -n "$have_svnversion"; then
1673  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1674echo "${ECHO_T}$have_svnversion" >&6
1675else
1676  echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680  if test "x$have_svnversion" = xyes; then
1681
1682    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1683    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1684      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1685
1686cat >>confdefs.h <<_ACEOF
1687#define GLPK_SVN_REV $GLPK_SVN_REV
1688_ACEOF
1689
1690    fi
1691  fi
1692
1693
1694
1695# Capture libtool library version, if given.
1696 coin_libversion=11:7:10
1697
1698
1699
1700#############################################################################
1701#                         Standard build tool stuff                         #
1702#############################################################################
1703
1704# Get the system type
1705ac_aux_dir=
1706for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1707  if test -f $ac_dir/install-sh; then
1708    ac_aux_dir=$ac_dir
1709    ac_install_sh="$ac_aux_dir/install-sh -c"
1710    break
1711  elif test -f $ac_dir/install.sh; then
1712    ac_aux_dir=$ac_dir
1713    ac_install_sh="$ac_aux_dir/install.sh -c"
1714    break
1715  elif test -f $ac_dir/shtool; then
1716    ac_aux_dir=$ac_dir
1717    ac_install_sh="$ac_aux_dir/shtool install -c"
1718    break
1719  fi
1720done
1721if test -z "$ac_aux_dir"; then
1722  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1723echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1724   { (exit 1); exit 1; }; }
1725fi
1726ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1727ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1728ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1729
1730# Make sure we can run config.sub.
1731$ac_config_sub sun4 >/dev/null 2>&1 ||
1732  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1733echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736echo "$as_me:$LINENO: checking build system type" >&5
1737echo $ECHO_N "checking build system type... $ECHO_C" >&6
1738if test "${ac_cv_build+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  ac_cv_build_alias=$build_alias
1742test -z "$ac_cv_build_alias" &&
1743  ac_cv_build_alias=`$ac_config_guess`
1744test -z "$ac_cv_build_alias" &&
1745  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747   { (exit 1); exit 1; }; }
1748ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1749  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1750echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1751   { (exit 1); exit 1; }; }
1752
1753fi
1754echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755echo "${ECHO_T}$ac_cv_build" >&6
1756build=$ac_cv_build
1757build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1760
1761
1762
1763#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1764#and we couldn't fix it anyway
1765coin_skip_warn_cflags=yes
1766
1767# Check if user wants to produce debugging code
1768
1769echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1770echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1771
1772# Check whether --enable-debug or --disable-debug was given.
1773if test "${enable_debug+set}" = set; then
1774  enableval="$enable_debug"
1775  case "${enableval}" in
1776   yes) coin_debug_compile=true
1777        if test "${enable_shared+set}" = set; then :; else
1778          enable_shared=no
1779        fi
1780        ;;
1781   no)  coin_debug_compile=false
1782        ;;
1783   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1784echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1785   { (exit 1); exit 1; }; }
1786        ;;
1787esac
1788else
1789  coin_debug_compile=false
1790fi;
1791
1792# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1793if test "${enable_debug_glpk+set}" = set; then
1794  enableval="$enable_debug_glpk"
1795  case "${enableval}" in
1796    yes) coin_debug_compile=true
1797         ;;
1798    no)  coin_debug_compile=false
1799         ;;
1800    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1801echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1802   { (exit 1); exit 1; }; }
1803         ;;
1804 esac
1805else
1806  :
1807fi;
1808
1809 # m4_ifvaln([Glpk],
1810
1811if test $coin_debug_compile = true; then
1812  echo "$as_me:$LINENO: result: yes" >&5
1813echo "${ECHO_T}yes" >&6
1814else
1815  echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819
1820# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1821if test "${with_glpk_verbosity+set}" = set; then
1822  withval="$with_glpk_verbosity"
1823  if test "$withval" = yes; then
1824                withval=1
1825              fi
1826              coin_glpk_verbosity=$withval
1827else
1828  coin_glpk_verbosity=0
1829fi;
1830
1831cat >>confdefs.h <<_ACEOF
1832#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1833_ACEOF
1834
1835
1836
1837# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1838if test "${with_glpk_checklevel+set}" = set; then
1839  withval="$with_glpk_checklevel"
1840  if test "$withval" = yes; then
1841                withval=1
1842              fi
1843              coin_glpk_checklevel=$withval
1844else
1845  coin_glpk_checklevel=0
1846fi;
1847
1848cat >>confdefs.h <<_ACEOF
1849#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1850_ACEOF
1851
1852
1853 # m4_ifvaln([Glpk],
1854
1855
1856
1857# Get the name of the C compiler
1858
1859
1860  # for backward compatibility
1861  # Check whether --enable-doscompile or --disable-doscompile was given.
1862if test "${enable_doscompile+set}" = set; then
1863  enableval="$enable_doscompile"
1864  enable_doscompile=$enableval
1865else
1866  enable_doscompile=no
1867fi;
1868
1869  # Check whether --enable-msvc or --disable-msvc was given.
1870if test "${enable_msvc+set}" = set; then
1871  enableval="$enable_msvc"
1872  enable_msvc=$enableval
1873else
1874  enable_msvc=no
1875     if test "$enable_doscompile" = msvc ; then
1876       enable_msvc=yes
1877     elif test "$enable_doscompile" != no ; then
1878       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1879echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1880   { (exit 1); exit 1; }; }
1881     fi
1882
1883fi;
1884
1885  if test "$enable_msvc" = MD; then
1886    enable_shared=yes
1887    enable_msvc=yes
1888  fi
1889
1890  if test "$enable_msvc" = yes; then
1891    case $build in
1892      *-cygwin* | *-mingw*) ;;
1893      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1894echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1895   { (exit 1); exit 1; }; } ;;
1896    esac
1897  fi
1898
1899
1900
1901ac_ext=c
1902ac_cpp='$CPP $CPPFLAGS'
1903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906
1907
1908# For consistency, we set the C compiler to the same value of the C++
1909# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1910if test x"$CXX" != x; then
1911  case "$CXX" in
1912    clang* ) ;;
1913    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1914      if test x"$CC" = x; then
1915        CC="$CXX"
1916        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1917echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1918      fi
1919      ;;
1920  esac
1921fi
1922
1923
1924
1925
1926
1927
1928coin_has_cc=yes
1929
1930save_cflags="$CFLAGS"
1931
1932# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1933# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1934# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1935# compiler. In this case, put cc after gcc.
1936
1937case $build in
1938  *-cygwin* | *-mingw*)
1939  	     if test "$enable_msvc" = yes ; then
1940	       comps="icl cl gcc"
1941	     else
1942	       comps="gcc icl cl"
1943	     fi ;;
1944  *-*-solaris*)
1945	     # Extract the first word of "cc", so it can be a program name with args.
1946set dummy cc; ac_word=$2
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1950  echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952  if test -n "$sol_cc_compiler"; then
1953  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1954else
1955  ac_prog_rejected=no
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959  IFS=$as_save_IFS
1960  test -z "$as_dir" && as_dir=.
1961  for ac_exec_ext in '' $ac_executable_extensions; do
1962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1964       ac_prog_rejected=yes
1965       continue
1966     fi
1967    ac_cv_prog_sol_cc_compiler="cc"
1968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969    break 2
1970  fi
1971done
1972done
1973
1974if test $ac_prog_rejected = yes; then
1975  # We found a bogon in the path, so make sure we never use it.
1976  set dummy $ac_cv_prog_sol_cc_compiler
1977  shift
1978  if test $# != 0; then
1979    # We chose a different compiler from the bogus one.
1980    # However, it has the same basename, so the bogon will be chosen
1981    # first if we set sol_cc_compiler to just the basename; use the full file name.
1982    shift
1983    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1984  fi
1985fi
1986fi
1987fi
1988sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1989if test -n "$sol_cc_compiler"; then
1990  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1991echo "${ECHO_T}$sol_cc_compiler" >&6
1992else
1993  echo "$as_me:$LINENO: result: no" >&5
1994echo "${ECHO_T}no" >&6
1995fi
1996
1997	     if test "$sol_cc_compiler" = "cc" ; then
1998	       comps="cc xlc gcc pgcc icc"
1999	     else
2000	       comps="xlc gcc pgcc icc cc"
2001	     fi
2002	     ;;
2003  *-*-darwin*) comps="clang gcc cc" ;;
2004  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2005  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2006  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2007esac
2008
2009# We delete the cached value, since the test might not have been
2010# performed with our choice of compilers earlier
2011$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2012# AC_MSG_NOTICE([C compiler candidates: $comps])
2013ac_ext=c
2014ac_cpp='$CPP $CPPFLAGS'
2015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018if test -n "$ac_tool_prefix"; then
2019  for ac_prog in $comps
2020  do
2021    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_CC+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  if test -n "$CC"; then
2029  ac_cv_prog_CC="$CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  for ac_exec_ext in '' $ac_executable_extensions; do
2037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040    break 2
2041  fi
2042done
2043done
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049  echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056    test -n "$CC" && break
2057  done
2058fi
2059if test -z "$CC"; then
2060  ac_ct_CC=$CC
2061  for ac_prog in $comps
2062do
2063  # Extract the first word of "$ac_prog", so it can be a program name with args.
2064set dummy $ac_prog; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$ac_ct_CC"; then
2071  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078  for ac_exec_ext in '' $ac_executable_extensions; do
2079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080    ac_cv_prog_ac_ct_CC="$ac_prog"
2081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082    break 2
2083  fi
2084done
2085done
2086
2087fi
2088fi
2089ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090if test -n "$ac_ct_CC"; then
2091  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092echo "${ECHO_T}$ac_ct_CC" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098  test -n "$ac_ct_CC" && break
2099done
2100
2101  CC=$ac_ct_CC
2102fi
2103
2104
2105test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106See \`config.log' for more details." >&5
2107echo "$as_me: error: no acceptable C compiler found in \$PATH
2108See \`config.log' for more details." >&2;}
2109   { (exit 1); exit 1; }; }
2110
2111# Provide some information about the compiler.
2112echo "$as_me:$LINENO:" \
2113     "checking for C compiler version" >&5
2114ac_compiler=`set X $ac_compile; echo $2`
2115{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116  (eval $ac_compiler --version </dev/null >&5) 2>&5
2117  ac_status=$?
2118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119  (exit $ac_status); }
2120{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121  (eval $ac_compiler -v </dev/null >&5) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126  (eval $ac_compiler -V </dev/null >&5) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }
2130
2131cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h.  */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h.  */
2137
2138int
2139main ()
2140{
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146ac_clean_files_save=$ac_clean_files
2147ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148# Try to create an executable without -o first, disregard a.out.
2149# It will help us diagnose broken compilers, and finding out an intuition
2150# of exeext.
2151echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2152echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2153ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155  (eval $ac_link_default) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }; then
2159  # Find the output, starting from the most likely.  This scheme is
2160# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161# resort.
2162
2163# Be careful to initialize this variable, since it used to be cached.
2164# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165ac_cv_exeext=
2166# b.out is created by i960 compilers.
2167for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2168do
2169  test -f "$ac_file" || continue
2170  case $ac_file in
2171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2172	;;
2173    conftest.$ac_ext )
2174	# This is the source file.
2175	;;
2176    [ab].out )
2177	# We found the default executable, but exeext='' is most
2178	# certainly right.
2179	break;;
2180    *.* )
2181	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182	# FIXME: I believe we export ac_cv_exeext for Libtool,
2183	# but it would be cool to find out if it's true.  Does anybody
2184	# maintain Libtool? --akim.
2185	export ac_cv_exeext
2186	break;;
2187    * )
2188	break;;
2189  esac
2190done
2191else
2192  echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196See \`config.log' for more details." >&5
2197echo "$as_me: error: C compiler cannot create executables
2198See \`config.log' for more details." >&2;}
2199   { (exit 77); exit 77; }; }
2200fi
2201
2202ac_exeext=$ac_cv_exeext
2203echo "$as_me:$LINENO: result: $ac_file" >&5
2204echo "${ECHO_T}$ac_file" >&6
2205
2206# Check the compiler produces executables we can run.  If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2210# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211# If not cross compiling, check that we can run a simple program.
2212if test "$cross_compiling" != yes; then
2213  if { ac_try='./$ac_file'
2214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215  (eval $ac_try) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; }; then
2219    cross_compiling=no
2220  else
2221    if test "$cross_compiling" = maybe; then
2222	cross_compiling=yes
2223    else
2224	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2225If you meant to cross compile, use \`--host'.
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: cannot run C compiled programs.
2228If you meant to cross compile, use \`--host'.
2229See \`config.log' for more details." >&2;}
2230   { (exit 1); exit 1; }; }
2231    fi
2232  fi
2233fi
2234echo "$as_me:$LINENO: result: yes" >&5
2235echo "${ECHO_T}yes" >&6
2236
2237rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238ac_clean_files=$ac_clean_files_save
2239# Check the compiler produces executables we can run.  If not, either
2240# the compiler is broken, or we cross compile.
2241echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244echo "${ECHO_T}$cross_compiling" >&6
2245
2246echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249  (eval $ac_link) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; then
2253  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2255# work properly (i.e., refer to `conftest.exe'), while it won't with
2256# `rm'.
2257for ac_file in conftest.exe conftest conftest.*; do
2258  test -f "$ac_file" || continue
2259  case $ac_file in
2260    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262	  export ac_cv_exeext
2263	  break;;
2264    * ) break;;
2265  esac
2266done
2267else
2268  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274
2275rm -f conftest$ac_cv_exeext
2276echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277echo "${ECHO_T}$ac_cv_exeext" >&6
2278
2279rm -f conftest.$ac_ext
2280EXEEXT=$ac_cv_exeext
2281ac_exeext=$EXEEXT
2282echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284if test "${ac_cv_objext+set}" = set; then
2285  echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287  cat >conftest.$ac_ext <<_ACEOF
2288/* confdefs.h.  */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h.  */
2293
2294int
2295main ()
2296{
2297
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.o conftest.obj
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; then
2308  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2309  case $ac_file in
2310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2311    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312       break;;
2313  esac
2314done
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322See \`config.log' for more details." >&2;}
2323   { (exit 1); exit 1; }; }
2324fi
2325
2326rm -f conftest.$ac_cv_objext conftest.$ac_ext
2327fi
2328echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329echo "${ECHO_T}$ac_cv_objext" >&6
2330OBJEXT=$ac_cv_objext
2331ac_objext=$OBJEXT
2332echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2333echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2334if test "${ac_cv_c_compiler_gnu+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344int
2345main ()
2346{
2347#ifndef __GNUC__
2348       choke me
2349#endif
2350
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355rm -f conftest.$ac_objext
2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357  (eval $ac_compile) 2>conftest.er1
2358  ac_status=$?
2359  grep -v '^ *+' conftest.er1 >conftest.err
2360  rm -f conftest.er1
2361  cat conftest.err >&5
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); } &&
2364	 { ac_try='test -z "$ac_c_werror_flag"
2365			 || test ! -s conftest.err'
2366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367  (eval $ac_try) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }; } &&
2371	 { ac_try='test -s conftest.$ac_objext'
2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373  (eval $ac_try) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; }; then
2377  ac_compiler_gnu=yes
2378else
2379  echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382ac_compiler_gnu=no
2383fi
2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385ac_cv_c_compiler_gnu=$ac_compiler_gnu
2386
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2389echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2390GCC=`test $ac_compiler_gnu = yes && echo yes`
2391ac_test_CFLAGS=${CFLAGS+set}
2392ac_save_CFLAGS=$CFLAGS
2393CFLAGS="-g"
2394echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2395echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2396if test "${ac_cv_prog_cc_g+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  cat >conftest.$ac_ext <<_ACEOF
2400/* confdefs.h.  */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h.  */
2405
2406int
2407main ()
2408{
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416  (eval $ac_compile) 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423	 { ac_try='test -z "$ac_c_werror_flag"
2424			 || test ! -s conftest.err'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; } &&
2430	 { ac_try='test -s conftest.$ac_objext'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; }; then
2436  ac_cv_prog_cc_g=yes
2437else
2438  echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441ac_cv_prog_cc_g=no
2442fi
2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444fi
2445echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2446echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2447if test "$ac_test_CFLAGS" = set; then
2448  CFLAGS=$ac_save_CFLAGS
2449elif test $ac_cv_prog_cc_g = yes; then
2450  if test "$GCC" = yes; then
2451    CFLAGS="-g -O2"
2452  else
2453    CFLAGS="-g"
2454  fi
2455else
2456  if test "$GCC" = yes; then
2457    CFLAGS="-O2"
2458  else
2459    CFLAGS=
2460  fi
2461fi
2462echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2463echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2464if test "${ac_cv_prog_cc_stdc+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  ac_cv_prog_cc_stdc=no
2468ac_save_CC=$CC
2469cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h.  */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h.  */
2475#include <stdarg.h>
2476#include <stdio.h>
2477#include <sys/types.h>
2478#include <sys/stat.h>
2479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2480struct buf { int x; };
2481FILE * (*rcsopen) (struct buf *, struct stat *, int);
2482static char *e (p, i)
2483     char **p;
2484     int i;
2485{
2486  return p[i];
2487}
2488static char *f (char * (*g) (char **, int), char **p, ...)
2489{
2490  char *s;
2491  va_list v;
2492  va_start (v,p);
2493  s = g (p, va_arg (v,int));
2494  va_end (v);
2495  return s;
2496}
2497
2498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2499   function prototypes and stuff, but not '\xHH' hex character constants.
2500   These don't provoke an error unfortunately, instead are silently treated
2501   as 'x'.  The following induces an error, until -std1 is added to get
2502   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2503   array size at least.  It's necessary to write '\x00'==0 to get something
2504   that's true only with -std1.  */
2505int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2506
2507int test (int i, double x);
2508struct s1 {int (*f) (int a);};
2509struct s2 {int (*f) (double a);};
2510int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2511int argc;
2512char **argv;
2513int
2514main ()
2515{
2516return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2517  ;
2518  return 0;
2519}
2520_ACEOF
2521# Don't try gcc -ansi; that turns off useful extensions and
2522# breaks some systems' header files.
2523# AIX			-qlanglvl=ansi
2524# Ultrix and OSF/1	-std1
2525# HP-UX 10.20 and later	-Ae
2526# HP-UX older versions	-Aa -D_HPUX_SOURCE
2527# SVR4			-Xc -D__EXTENSIONS__
2528for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2529do
2530  CC="$ac_save_CC $ac_arg"
2531  rm -f conftest.$ac_objext
2532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533  (eval $ac_compile) 2>conftest.er1
2534  ac_status=$?
2535  grep -v '^ *+' conftest.er1 >conftest.err
2536  rm -f conftest.er1
2537  cat conftest.err >&5
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); } &&
2540	 { ac_try='test -z "$ac_c_werror_flag"
2541			 || test ! -s conftest.err'
2542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543  (eval $ac_try) 2>&5
2544  ac_status=$?
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); }; } &&
2547	 { ac_try='test -s conftest.$ac_objext'
2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549  (eval $ac_try) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }; }; then
2553  ac_cv_prog_cc_stdc=$ac_arg
2554break
2555else
2556  echo "$as_me: failed program was:" >&5
2557sed 's/^/| /' conftest.$ac_ext >&5
2558
2559fi
2560rm -f conftest.err conftest.$ac_objext
2561done
2562rm -f conftest.$ac_ext conftest.$ac_objext
2563CC=$ac_save_CC
2564
2565fi
2566
2567case "x$ac_cv_prog_cc_stdc" in
2568  x|xno)
2569    echo "$as_me:$LINENO: result: none needed" >&5
2570echo "${ECHO_T}none needed" >&6 ;;
2571  *)
2572    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2573echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2574    CC="$CC $ac_cv_prog_cc_stdc" ;;
2575esac
2576
2577# Some people use a C++ compiler to compile C.  Since we use `exit',
2578# in C++ we need to declare it.  In case someone uses the same compiler
2579# for both compiling C and C++ we need to have the C++ compiler decide
2580# the declaration of exit, since it's the most demanding environment.
2581cat >conftest.$ac_ext <<_ACEOF
2582#ifndef __cplusplus
2583  choke me
2584#endif
2585_ACEOF
2586rm -f conftest.$ac_objext
2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588  (eval $ac_compile) 2>conftest.er1
2589  ac_status=$?
2590  grep -v '^ *+' conftest.er1 >conftest.err
2591  rm -f conftest.er1
2592  cat conftest.err >&5
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); } &&
2595	 { ac_try='test -z "$ac_c_werror_flag"
2596			 || test ! -s conftest.err'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; } &&
2602	 { ac_try='test -s conftest.$ac_objext'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; }; then
2608  for ac_declaration in \
2609   '' \
2610   'extern "C" void std::exit (int) throw (); using std::exit;' \
2611   'extern "C" void std::exit (int); using std::exit;' \
2612   'extern "C" void exit (int) throw ();' \
2613   'extern "C" void exit (int);' \
2614   'void exit (int);'
2615do
2616  cat >conftest.$ac_ext <<_ACEOF
2617/* confdefs.h.  */
2618_ACEOF
2619cat confdefs.h >>conftest.$ac_ext
2620cat >>conftest.$ac_ext <<_ACEOF
2621/* end confdefs.h.  */
2622$ac_declaration
2623#include <stdlib.h>
2624int
2625main ()
2626{
2627exit (42);
2628  ;
2629  return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } &&
2641	 { ac_try='test -z "$ac_c_werror_flag"
2642			 || test ! -s conftest.err'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; } &&
2648	 { ac_try='test -s conftest.$ac_objext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  :
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659continue
2660fi
2661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2662  cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668$ac_declaration
2669int
2670main ()
2671{
2672exit (42);
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679  (eval $ac_compile) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686	 { ac_try='test -z "$ac_c_werror_flag"
2687			 || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693	 { ac_try='test -s conftest.$ac_objext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  break
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704fi
2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706done
2707rm -f conftest*
2708if test -n "$ac_declaration"; then
2709  echo '#ifdef __cplusplus' >>confdefs.h
2710  echo $ac_declaration      >>confdefs.h
2711  echo '#endif'             >>confdefs.h
2712fi
2713
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720ac_ext=c
2721ac_cpp='$CPP $CPPFLAGS'
2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
2726if test -z "$CC" ; then
2727  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2728echo "$as_me: error: Failed to find a C compiler!" >&2;}
2729   { (exit 1); exit 1; }; }
2730fi
2731# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2732case "$CC" in
2733  clang* ) ;;
2734  cl* | */cl* | CL* | */CL* )
2735    if test "$ac_cv_prog_cc_g" = yes ; then
2736      ac_cv_prog_cc_g=no
2737      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2738echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2739    fi ;;
2740  * )
2741    if test x"$CYGPATH_W" = x ; then
2742      CYGPATH_W=echo
2743    fi
2744    ;;
2745esac
2746CFLAGS="$save_cflags"
2747
2748# add automake conditional so we can recognize cl compiler in makefile
2749coin_cc_is_cl=false
2750case "$CC" in
2751  clang* ) ;;
2752  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2753    coin_cc_is_cl=true
2754    ;;
2755esac
2756
2757
2758if test $coin_cc_is_cl = true; then
2759  COIN_CC_IS_CL_TRUE=
2760  COIN_CC_IS_CL_FALSE='#'
2761else
2762  COIN_CC_IS_CL_TRUE='#'
2763  COIN_CC_IS_CL_FALSE=
2764fi
2765
2766
2767# Check if a project specific CFLAGS variable has been set
2768if test x$COIN_PRJCT != x; then
2769  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2770  if test x$coin_tmp = xset; then
2771    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2772  fi
2773fi
2774
2775if test x"$CFLAGS" = x; then
2776
2777  coin_add_cflags=
2778  coin_opt_cflags=
2779  coin_dbg_cflags=
2780  coin_warn_cflags=
2781
2782  if test "$GCC" = "yes"; then
2783    case "$CC" in
2784      icc* | */icc*)
2785        ;;
2786      *)
2787        coin_opt_cflags="-O3"
2788        coin_add_cflags="-pipe"
2789        coin_dbg_cflags="-g -O0"
2790        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2791    esac
2792  fi
2793  if test -z "$coin_opt_cflags"; then
2794    case $build in
2795      *-cygwin* | *-mingw*)
2796        case "$CC" in
2797          clang* ) ;;
2798          cl* | */cl* | CL* | */CL*)
2799            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2800              coin_opt_cflags='-MD -O2'
2801              coin_dbg_cflags='-MDd'
2802            else
2803              coin_opt_cflags='-MT -O2'
2804              coin_dbg_cflags='-MTd'
2805            fi
2806            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2807            ;;
2808          icl* | */icl* | ICL* | */ICL*)
2809            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2810              coin_opt_cflags='-MD -Ox'
2811              coin_dbg_cflags='-MDd -debug'
2812            else
2813              coin_opt_cflags='-MT -Ox'
2814              coin_dbg_cflags='-MTd -debug'
2815            fi
2816            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2817            ;;
2818        esac
2819        ;;
2820      *-linux-*)
2821        case "$CC" in
2822          icc* | */icc*)
2823            coin_opt_cflags="-O3 -ip -mp1"
2824            coin_add_cflags=""
2825            coin_dbg_cflags="-g"
2826            # Check if -i_dynamic is necessary (for new glibc library)
2827            CFLAGS=
2828            cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h.  */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h.  */
2834
2835int
2836main ()
2837{
2838int i=0; i++;
2839  ;
2840  return 0;
2841}
2842_ACEOF
2843rm -f conftest.$ac_objext conftest$ac_exeext
2844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845  (eval $ac_link) 2>conftest.er1
2846  ac_status=$?
2847  grep -v '^ *+' conftest.er1 >conftest.err
2848  rm -f conftest.er1
2849  cat conftest.err >&5
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); } &&
2852	 { ac_try='test -z "$ac_c_werror_flag"
2853			 || test ! -s conftest.err'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; } &&
2859	 { ac_try='test -s conftest$ac_exeext'
2860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861  (eval $ac_try) 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); }; }; then
2865  :
2866else
2867  echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870coin_add_cflags="-i_dynamic $coin_add_cflags"
2871fi
2872rm -f conftest.err conftest.$ac_objext \
2873      conftest$ac_exeext conftest.$ac_ext
2874            ;;
2875          pgcc* | */pgcc*)
2876            coin_opt_cflags="-fast"
2877            coin_add_cflags="-Kieee -pc 64"
2878            coin_dbg_cflags="-g"
2879            ;;
2880        esac
2881        ;;
2882      *-ibm-*)
2883        case "$CC" in
2884          xlc* | */xlc* | mpxlc* | */mpxlc*)
2885            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2886            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2887            coin_dbg_cflags="-g"
2888          ;;
2889        esac
2890        ;;
2891      *-hp-*)
2892        coin_opt_cflags="-O"
2893        coin_add_cflags="-Ae"
2894        coin_dbg_cflags="-g"
2895        ;;
2896      *-*-solaris*)
2897        coin_opt_cflags="-xO4"
2898        coin_dbg_cflags="-g"
2899        ;;
2900      *-sgi-*)
2901        coin_opt_cflags="-O -OPT:Olimit=0"
2902        coin_dbg_cflags="-g"
2903        ;;
2904    esac
2905  fi
2906
2907  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2908    coin_dbg_cflags="-g"
2909  fi
2910
2911  if test -z "$coin_opt_cflags"; then
2912    # Try if -O option works if nothing else is set
2913    CFLAGS="-O"
2914    cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924int i=0; i++;
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext conftest$ac_exeext
2930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931  (eval $ac_link) 2>conftest.er1
2932  ac_status=$?
2933  grep -v '^ *+' conftest.er1 >conftest.err
2934  rm -f conftest.er1
2935  cat conftest.err >&5
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); } &&
2938	 { ac_try='test -z "$ac_c_werror_flag"
2939			 || test ! -s conftest.err'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; } &&
2945	 { ac_try='test -s conftest$ac_exeext'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; }; then
2951  coin_opt_cflags="-O"
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956fi
2957rm -f conftest.err conftest.$ac_objext \
2958      conftest$ac_exeext conftest.$ac_ext
2959  fi
2960
2961  # if PM doesn't want the warning messages, take them out
2962  if test x"$coin_skip_warn_cflags" = xyes; then
2963    coin_warn_cflags=
2964  fi
2965
2966  if test x${DBG_CFLAGS+set} != xset; then
2967    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2968  fi
2969  if test x${OPT_CFLAGS+set} != xset; then
2970    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2971  fi
2972
2973  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2974  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2975
2976  if test "$coin_debug_compile" = "true"; then
2977    CFLAGS="$DBG_CFLAGS"
2978  else
2979    CFLAGS="$OPT_CFLAGS"
2980  fi
2981else
2982  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2983  if test x${DBG_CFLAGS+set} != xset; then
2984    DBG_CFLAGS="$CFLAGS"
2985  fi
2986  if test x${OPT_CFLAGS+set} != xset; then
2987    OPT_CFLAGS="$CFLAGS"
2988  fi
2989fi
2990
2991# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2992if test x$COIN_PRJCT != x; then
2993  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2994fi
2995
2996# Try if CFLAGS works
2997save_CFLAGS="$CFLAGS"
2998cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h.  */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008int i=0; i++;
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext conftest$ac_exeext
3014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3015  (eval $ac_link) 2>conftest.er1
3016  ac_status=$?
3017  grep -v '^ *+' conftest.er1 >conftest.err
3018  rm -f conftest.er1
3019  cat conftest.err >&5
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); } &&
3022	 { ac_try='test -z "$ac_c_werror_flag"
3023			 || test ! -s conftest.err'
3024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025  (eval $ac_try) 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); }; } &&
3029	 { ac_try='test -s conftest$ac_exeext'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; }; then
3035  :
3036else
3037  echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040CFLAGS=
3041fi
3042rm -f conftest.err conftest.$ac_objext \
3043      conftest$ac_exeext conftest.$ac_ext
3044if test -z "$CFLAGS"; then
3045  { 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
3046echo "$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;}
3047  CFLAGS='-O'
3048  cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058int i=0; i++;
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext conftest$ac_exeext
3064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065  (eval $ac_link) 2>conftest.er1
3066  ac_status=$?
3067  grep -v '^ *+' conftest.er1 >conftest.err
3068  rm -f conftest.er1
3069  cat conftest.err >&5
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); } &&
3072	 { ac_try='test -z "$ac_c_werror_flag"
3073			 || test ! -s conftest.err'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; } &&
3079	 { ac_try='test -s conftest$ac_exeext'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; }; then
3085  :
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090CFLAGS=
3091fi
3092rm -f conftest.err conftest.$ac_objext \
3093      conftest$ac_exeext conftest.$ac_ext
3094  if test -z "$CFLAGS"; then
3095    { 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
3096echo "$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;}
3097  fi
3098fi
3099
3100{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3101echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3102
3103
3104if test x"$MPICC" = x; then :; else
3105  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3106echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3107  CC="$MPICC"
3108fi
3109
3110# Correct the LD variable if we are using the MS or Intel-windows compiler
3111case "$CC" in
3112  clang* ) ;;
3113  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3114    LD=link
3115    ;;
3116esac
3117
3118ac_ext=c
3119ac_cpp='$CPP $CPPFLAGS'
3120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125
3126# Check if pkg-config is available (to setup addlibs file)
3127
3128
3129# Check whether --enable-pkg-config or --disable-pkg-config was given.
3130if test "${enable_pkg_config+set}" = set; then
3131  enableval="$enable_pkg_config"
3132  use_pkgconfig="$enableval"
3133else
3134  if test x$coin_cc_is_cl = xtrue; then
3135     use_pkgconfig=no
3136   else
3137     use_pkgconfig=yes
3138   fi
3139fi;
3140
3141if test $use_pkgconfig = yes ; then
3142  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3143    if test -n "$ac_tool_prefix"; then
3144  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3145set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3146echo "$as_me:$LINENO: checking for $ac_word" >&5
3147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  if test -n "$PKG_CONFIG"; then
3152  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159  for ac_exec_ext in '' $ac_executable_extensions; do
3160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166done
3167
3168fi
3169fi
3170PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3171if test -n "$PKG_CONFIG"; then
3172  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3173echo "${ECHO_T}$PKG_CONFIG" >&6
3174else
3175  echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177fi
3178
3179fi
3180if test -z "$ac_cv_prog_PKG_CONFIG"; then
3181  ac_ct_PKG_CONFIG=$PKG_CONFIG
3182  # Extract the first word of "pkg-config", so it can be a program name with args.
3183set dummy pkg-config; ac_word=$2
3184echo "$as_me:$LINENO: checking for $ac_word" >&5
3185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3187  echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189  if test -n "$ac_ct_PKG_CONFIG"; then
3190  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197  for ac_exec_ext in '' $ac_executable_extensions; do
3198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204done
3205
3206fi
3207fi
3208ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3209if test -n "$ac_ct_PKG_CONFIG"; then
3210  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3211echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3212else
3213  echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215fi
3216
3217  PKG_CONFIG=$ac_ct_PKG_CONFIG
3218else
3219  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3220fi
3221
3222  fi
3223  if test -n "$PKG_CONFIG"; then
3224    _pkg_min_version=0.16.0
3225    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3226echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3227    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3228      echo "$as_me:$LINENO: result: yes" >&5
3229echo "${ECHO_T}yes" >&6
3230    else
3231      echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6
3233      PKG_CONFIG=""
3234    fi
3235  fi
3236
3237  # check if pkg-config supports the short-errors flag
3238  if test -n "$PKG_CONFIG" && \
3239    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3240    pkg_short_errors=" --short-errors "
3241  else
3242    pkg_short_errors=""
3243  fi
3244fi
3245
3246
3247
3248if test -n "$PKG_CONFIG"; then
3249  COIN_HAS_PKGCONFIG_TRUE=
3250  COIN_HAS_PKGCONFIG_FALSE='#'
3251else
3252  COIN_HAS_PKGCONFIG_TRUE='#'
3253  COIN_HAS_PKGCONFIG_FALSE=
3254fi
3255
3256
3257
3258# assemble pkg-config search path for installed projects
3259COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3260
3261# 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
3262# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3263# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3264if test "x${prefix}" = xNONE ; then
3265  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3266else
3267  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3268fi
3269
3270
3271# Check whether --with-coin-instdir or --without-coin-instdir was given.
3272if test "${with_coin_instdir+set}" = set; then
3273  withval="$with_coin_instdir"
3274  if test -d "$withval"; then : ; else
3275     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3276echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3277   { (exit 1); exit 1; }; }
3278   fi
3279   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3280
3281fi;
3282
3283
3284
3285# assemble additional pkg-config search paths for uninstalled projects
3286if test x$coin_projectdir = xyes ; then
3287  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3288  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3289  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3290  # 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)
3291  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3292  if test -f ../coin_subdirs.txt ; then
3293    for i in `cat ../coin_subdirs.txt` ; do
3294      if test -d ../$i ; then
3295        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3296      fi
3297      if test -d ../$i/pkgconfig ; then
3298        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3299      fi
3300    done
3301  fi
3302
3303  if test -f ../../coin_subdirs.txt ; then
3304    for i in `cat ../../coin_subdirs.txt` ; do
3305      if test -d ../../$i ; then
3306        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3307      fi
3308      if test -d ../../$i/pkgconfig ; then
3309        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3310      fi
3311    done
3312  fi
3313
3314  if test -f ../../../coin_subdirs.txt ; then
3315    for i in `cat ../../../coin_subdirs.txt` ; do
3316      if test -d ../../../$i ; then
3317        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3318      fi
3319      if test -d ../../../$i/pkgconfig ; then
3320        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3321      fi
3322    done
3323  fi
3324
3325
3326fi
3327
3328if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3329  { 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
3330echo "$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;}
3331fi
3332
3333
3334
3335# Initialize automake
3336{
3337
3338
3339
3340# START
3341
3342coin_disable_shared=no
3343# Test if force_shared has been set
3344if test "x" = xforce_shared; then
3345  if test x$enable_shared = xno; then
3346    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3347echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3348   { (exit 1); exit 1; }; }
3349  fi
3350  enable_shared=yes;
3351else
3352  case $build in
3353    *-cygwin* | *-mingw*)
3354      coin_disable_shared=yes
3355      if test x"$enable_shared" = xyes; then
3356        case "$CC" in
3357          clang* )
3358            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3359echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3360            ;;
3361          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3362            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3363echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3364            ;;
3365          *gcc*)
3366            if test x"$enable_dependency_linking" = xyes; then
3367              coin_disable_shared=no
3368            else
3369              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3370echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3371            fi
3372            ;;
3373          *)
3374            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3375echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3376            ;;
3377        esac
3378      fi
3379    ;;
3380    *-aix*)
3381      coin_disable_shared=yes
3382      platform=AIX
3383      if test x"$enable_shared" = xyes; then
3384        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3385echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3386      fi
3387    ;;
3388  esac
3389fi
3390if test x"$coin_disable_shared" = xyes; then
3391  if test x"$enable_shared" = xyes; then
3392    :
3393  else
3394    # we don't disable shared, because it was not selected anyway
3395    coin_disable_shared=no
3396  fi
3397  enable_shared=no
3398fi
3399# By default, we only want the shared objects to be compiled
3400# Check whether --enable-static or --disable-static was given.
3401if test "${enable_static+set}" = set; then
3402  enableval="$enable_static"
3403  p=${PACKAGE-default}
3404    case $enableval in
3405    yes) enable_static=yes ;;
3406    no) enable_static=no ;;
3407    *)
3408     enable_static=no
3409      # Look at the argument we got.  We use all the common list separators.
3410      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3411      for pkg in $enableval; do
3412	IFS="$lt_save_ifs"
3413	if test "X$pkg" = "X$p"; then
3414	  enable_static=yes
3415	fi
3416      done
3417      IFS="$lt_save_ifs"
3418      ;;
3419    esac
3420else
3421  enable_static=no
3422fi;
3423
3424
3425
3426
3427# Initialize automake
3428echo "$as_me:$LINENO: checking for egrep" >&5
3429echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3430if test "${ac_cv_prog_egrep+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3434    then ac_cv_prog_egrep='grep -E'
3435    else ac_cv_prog_egrep='egrep'
3436    fi
3437fi
3438echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3439echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3440 EGREP=$ac_cv_prog_egrep
3441
3442
3443echo "$as_me:$LINENO: checking whether ln -s works" >&5
3444echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3445LN_S=$as_ln_s
3446if test "$LN_S" = "ln -s"; then
3447  echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449else
3450  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3451echo "${ECHO_T}no, using $LN_S" >&6
3452fi
3453
3454am__api_version="1.9"
3455# Find a good install program.  We prefer a C program (faster),
3456# so one script is as good as another.  But avoid the broken or
3457# incompatible versions:
3458# SysV /etc/install, /usr/sbin/install
3459# SunOS /usr/etc/install
3460# IRIX /sbin/install
3461# AIX /bin/install
3462# AmigaOS /C/install, which installs bootblocks on floppy discs
3463# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3466# OS/2's system install, which has a completely different semantic
3467# ./install, which can be erroneously created by make from ./install.sh.
3468echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3469echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3470if test -z "$INSTALL"; then
3471if test "${ac_cv_path_install+set}" = set; then
3472  echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479  # Account for people who put trailing slashes in PATH elements.
3480case $as_dir/ in
3481  ./ | .// | /cC/* | \
3482  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3483  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3484  /usr/ucb/* ) ;;
3485  *)
3486    # OSF1 and SCO ODT 3.0 have their own names for install.
3487    # Don't use installbsd from OSF since it installs stuff as root
3488    # by default.
3489    for ac_prog in ginstall scoinst install; do
3490      for ac_exec_ext in '' $ac_executable_extensions; do
3491	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3492	  if test $ac_prog = install &&
3493	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3494	    # AIX install.  It has an incompatible calling convention.
3495	    :
3496	  elif test $ac_prog = install &&
3497	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3498	    # program-specific install script used by HP pwplus--don't use.
3499	    :
3500	  else
3501	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3502	    break 3
3503	  fi
3504	fi
3505      done
3506    done
3507    ;;
3508esac
3509done
3510
3511
3512fi
3513  if test "${ac_cv_path_install+set}" = set; then
3514    INSTALL=$ac_cv_path_install
3515  else
3516    # As a last resort, use the slow shell script.  We don't cache a
3517    # path for INSTALL within a source directory, because that will
3518    # break other packages using the cache if that directory is
3519    # removed, or if the path is relative.
3520    INSTALL=$ac_install_sh
3521  fi
3522fi
3523echo "$as_me:$LINENO: result: $INSTALL" >&5
3524echo "${ECHO_T}$INSTALL" >&6
3525
3526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3527# It thinks the first close brace ends the variable substitution.
3528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3529
3530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3531
3532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3533
3534echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3535echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3536# Just in case
3537sleep 1
3538echo timestamp > conftest.file
3539# Do `set' in a subshell so we don't clobber the current shell's
3540# arguments.  Must try -L first in case configure is actually a
3541# symlink; some systems play weird games with the mod time of symlinks
3542# (eg FreeBSD returns the mod time of the symlink's containing
3543# directory).
3544if (
3545   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3546   if test "$*" = "X"; then
3547      # -L didn't work.
3548      set X `ls -t $srcdir/configure conftest.file`
3549   fi
3550   rm -f conftest.file
3551   if test "$*" != "X $srcdir/configure conftest.file" \
3552      && test "$*" != "X conftest.file $srcdir/configure"; then
3553
3554      # If neither matched, then we have a broken ls.  This can happen
3555      # if, for instance, CONFIG_SHELL is bash and it inherits a
3556      # broken ls alias from the environment.  This has actually
3557      # happened.  Such a system could not be considered "sane".
3558      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3559alias in your environment" >&5
3560echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3561alias in your environment" >&2;}
3562   { (exit 1); exit 1; }; }
3563   fi
3564
3565   test "$2" = conftest.file
3566   )
3567then
3568   # Ok.
3569   :
3570else
3571   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3572Check your system clock" >&5
3573echo "$as_me: error: newly created file is older than distributed files!
3574Check your system clock" >&2;}
3575   { (exit 1); exit 1; }; }
3576fi
3577echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6
3579test "$program_prefix" != NONE &&
3580  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3581# Use a double $ so make ignores it.
3582test "$program_suffix" != NONE &&
3583  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3584# Double any \ or $.  echo might interpret backslashes.
3585# By default was `s,x,x', remove it if useless.
3586cat <<\_ACEOF >conftest.sed
3587s/[\\$]/&&/g;s/;s,x,x,$//
3588_ACEOF
3589program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3590rm conftest.sed
3591
3592# expand $ac_aux_dir to an absolute path
3593am_aux_dir=`cd $ac_aux_dir && pwd`
3594
3595test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3596# Use eval to expand $SHELL
3597if eval "$MISSING --run true"; then
3598  am_missing_run="$MISSING --run "
3599else
3600  am_missing_run=
3601  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3602echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3603fi
3604
3605if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3606  # We used to keeping the `.' as first argument, in order to
3607  # allow $(mkdir_p) to be used without argument.  As in
3608  #   $(mkdir_p) $(somedir)
3609  # where $(somedir) is conditionally defined.  However this is wrong
3610  # for two reasons:
3611  #  1. if the package is installed by a user who cannot write `.'
3612  #     make install will fail,
3613  #  2. the above comment should most certainly read
3614  #     $(mkdir_p) $(DESTDIR)$(somedir)
3615  #     so it does not work when $(somedir) is undefined and
3616  #     $(DESTDIR) is not.
3617  #  To support the latter case, we have to write
3618  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3619  #  so the `.' trick is pointless.
3620  mkdir_p='mkdir -p --'
3621else
3622  # On NextStep and OpenStep, the `mkdir' command does not
3623  # recognize any option.  It will interpret all options as
3624  # directories to create, and then abort because `.' already
3625  # exists.
3626  for d in ./-p ./--version;
3627  do
3628    test -d $d && rmdir $d
3629  done
3630  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3631  if test -f "$ac_aux_dir/mkinstalldirs"; then
3632    mkdir_p='$(mkinstalldirs)'
3633  else
3634    mkdir_p='$(install_sh) -d'
3635  fi
3636fi
3637
3638for ac_prog in gawk mawk nawk awk
3639do
3640  # Extract the first word of "$ac_prog", so it can be a program name with args.
3641set dummy $ac_prog; ac_word=$2
3642echo "$as_me:$LINENO: checking for $ac_word" >&5
3643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644if test "${ac_cv_prog_AWK+set}" = set; then
3645  echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647  if test -n "$AWK"; then
3648  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3649else
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653  IFS=$as_save_IFS
3654  test -z "$as_dir" && as_dir=.
3655  for ac_exec_ext in '' $ac_executable_extensions; do
3656  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657    ac_cv_prog_AWK="$ac_prog"
3658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659    break 2
3660  fi
3661done
3662done
3663
3664fi
3665fi
3666AWK=$ac_cv_prog_AWK
3667if test -n "$AWK"; then
3668  echo "$as_me:$LINENO: result: $AWK" >&5
3669echo "${ECHO_T}$AWK" >&6
3670else
3671  echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi
3674
3675  test -n "$AWK" && break
3676done
3677
3678echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3679echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3680set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3681if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  cat >conftest.make <<\_ACEOF
3685all:
3686	@echo 'ac_maketemp="$(MAKE)"'
3687_ACEOF
3688# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3689eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3690if test -n "$ac_maketemp"; then
3691  eval ac_cv_prog_make_${ac_make}_set=yes
3692else
3693  eval ac_cv_prog_make_${ac_make}_set=no
3694fi
3695rm -f conftest.make
3696fi
3697if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3698  echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700  SET_MAKE=
3701else
3702  echo "$as_me:$LINENO: result: no" >&5
3703echo "${ECHO_T}no" >&6
3704  SET_MAKE="MAKE=${MAKE-make}"
3705fi
3706
3707rm -rf .tst 2>/dev/null
3708mkdir .tst 2>/dev/null
3709if test -d .tst; then
3710  am__leading_dot=.
3711else
3712  am__leading_dot=_
3713fi
3714rmdir .tst 2>/dev/null
3715
3716DEPDIR="${am__leading_dot}deps"
3717
3718          ac_config_commands="$ac_config_commands depfiles"
3719
3720
3721am_make=${MAKE-make}
3722cat > confinc << 'END'
3723am__doit:
3724	@echo done
3725.PHONY: am__doit
3726END
3727# If we don't find an include directive, just comment out the code.
3728echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3729echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3730am__include="#"
3731am__quote=
3732_am_result=none
3733# First try GNU make style include.
3734echo "include confinc" > confmf
3735# We grep out `Entering directory' and `Leaving directory'
3736# messages which can occur if `w' ends up in MAKEFLAGS.
3737# In particular we don't look at `^make:' because GNU make might
3738# be invoked under some other name (usually "gmake"), in which
3739# case it prints its new name instead of `make'.
3740if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3741   am__include=include
3742   am__quote=
3743   _am_result=GNU
3744fi
3745# Now try BSD make style include.
3746if test "$am__include" = "#"; then
3747   echo '.include "confinc"' > confmf
3748   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3749      am__include=.include
3750      am__quote="\""
3751      _am_result=BSD
3752   fi
3753fi
3754
3755
3756echo "$as_me:$LINENO: result: $_am_result" >&5
3757echo "${ECHO_T}$_am_result" >&6
3758rm -f confinc confmf
3759
3760# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3761if test "${enable_dependency_tracking+set}" = set; then
3762  enableval="$enable_dependency_tracking"
3763
3764fi;
3765if test "x$enable_dependency_tracking" != xno; then
3766  am_depcomp="$ac_aux_dir/depcomp"
3767  AMDEPBACKSLASH='\'
3768fi
3769
3770
3771if test "x$enable_dependency_tracking" != xno; then
3772  AMDEP_TRUE=
3773  AMDEP_FALSE='#'
3774else
3775  AMDEP_TRUE='#'
3776  AMDEP_FALSE=
3777fi
3778
3779
3780
3781
3782
3783
3784# AC_MSG_NOTICE([Beginning automake initialisation.])
3785# Stuff for automake
3786# test to see if srcdir already configured
3787if test "`cd $srcdir && pwd`" != "`pwd`" &&
3788   test -f $srcdir/config.status; then
3789  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3790echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3791   { (exit 1); exit 1; }; }
3792fi
3793
3794# test whether we have cygpath
3795if test -z "$CYGPATH_W"; then
3796  if (cygpath --version) >/dev/null 2>/dev/null; then
3797    CYGPATH_W='cygpath -w'
3798  else
3799    CYGPATH_W=echo
3800  fi
3801fi
3802
3803
3804# Define the identity of the package.
3805 PACKAGE='thirdpartyglpk'
3806 VERSION='1.10.7'
3807
3808
3809cat >>confdefs.h <<_ACEOF
3810#define PACKAGE "$PACKAGE"
3811_ACEOF
3812
3813
3814cat >>confdefs.h <<_ACEOF
3815#define VERSION "$VERSION"
3816_ACEOF
3817
3818# Some tools Automake needs.
3819
3820ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3821
3822
3823AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3824
3825
3826AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3827
3828
3829AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3830
3831
3832MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3833
3834install_sh=${install_sh-"$am_aux_dir/install-sh"}
3835
3836# Installed binaries are usually stripped using `strip' when the user
3837# run `make install-strip'.  However `strip' might not be the right
3838# tool to use in cross-compilation environments, therefore Automake
3839# will honor the `STRIP' environment variable to overrule this program.
3840if test "$cross_compiling" != no; then
3841  if test -n "$ac_tool_prefix"; then
3842  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}strip; ac_word=$2
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_STRIP+set}" = set; then
3847  echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849  if test -n "$STRIP"; then
3850  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857  for ac_exec_ext in '' $ac_executable_extensions; do
3858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861    break 2
3862  fi
3863done
3864done
3865
3866fi
3867fi
3868STRIP=$ac_cv_prog_STRIP
3869if test -n "$STRIP"; then
3870  echo "$as_me:$LINENO: result: $STRIP" >&5
3871echo "${ECHO_T}$STRIP" >&6
3872else
3873  echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
3875fi
3876
3877fi
3878if test -z "$ac_cv_prog_STRIP"; then
3879  ac_ct_STRIP=$STRIP
3880  # Extract the first word of "strip", so it can be a program name with args.
3881set dummy strip; ac_word=$2
3882echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3885  echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887  if test -n "$ac_ct_STRIP"; then
3888  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3889else
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893  IFS=$as_save_IFS
3894  test -z "$as_dir" && as_dir=.
3895  for ac_exec_ext in '' $ac_executable_extensions; do
3896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897    ac_cv_prog_ac_ct_STRIP="strip"
3898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899    break 2
3900  fi
3901done
3902done
3903
3904  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3905fi
3906fi
3907ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3908if test -n "$ac_ct_STRIP"; then
3909  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3910echo "${ECHO_T}$ac_ct_STRIP" >&6
3911else
3912  echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
3914fi
3915
3916  STRIP=$ac_ct_STRIP
3917else
3918  STRIP="$ac_cv_prog_STRIP"
3919fi
3920
3921fi
3922INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3923
3924# We need awk for the "check" target.  The system "awk" is bad on
3925# some platforms.
3926# Always define AMTAR for backward compatibility.
3927
3928AMTAR=${AMTAR-"${am_missing_run}tar"}
3929
3930am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3931
3932
3933
3934
3935depcc="$CC"   am_compiler_list=
3936
3937echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3938echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3939if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3940  echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943  # We make a subdir and do the tests there.  Otherwise we can end up
3944  # making bogus files that we don't know about and never remove.  For
3945  # instance it was reported that on HP-UX the gcc test will end up
3946  # making a dummy file named `D' -- because `-MD' means `put the output
3947  # in D'.
3948  mkdir conftest.dir
3949  # Copy depcomp to subdir because otherwise we won't find it if we're
3950  # using a relative directory.
3951  cp "$am_depcomp" conftest.dir
3952  cd conftest.dir
3953  # We will build objects and dependencies in a subdirectory because
3954  # it helps to detect inapplicable dependency modes.  For instance
3955  # both Tru64's cc and ICC support -MD to output dependencies as a
3956  # side effect of compilation, but ICC will put the dependencies in
3957  # the current directory while Tru64 will put them in the object
3958  # directory.
3959  mkdir sub
3960
3961  am_cv_CC_dependencies_compiler_type=none
3962  if test "$am_compiler_list" = ""; then
3963     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3964  fi
3965  for depmode in $am_compiler_list; do
3966    # Setup a source with many dependencies, because some compilers
3967    # like to wrap large dependency lists on column 80 (with \), and
3968    # we should not choose a depcomp mode which is confused by this.
3969    #
3970    # We need to recreate these files for each test, as the compiler may
3971    # overwrite some of them when testing with obscure command lines.
3972    # This happens at least with the AIX C compiler.
3973    : > sub/conftest.c
3974    for i in 1 2 3 4 5 6; do
3975      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3976      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3977      # Solaris 8's {/usr,}/bin/sh.
3978      touch sub/conftst$i.h
3979    done
3980    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3981
3982    case $depmode in
3983    nosideeffect)
3984      # after this tag, mechanisms are not by side-effect, so they'll
3985      # only be used when explicitly requested
3986      if test "x$enable_dependency_tracking" = xyes; then
3987	continue
3988      else
3989	break
3990      fi
3991      ;;
3992    none) break ;;
3993    esac
3994    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3995    # mode.  It turns out that the SunPro C++ compiler does not properly
3996    # handle `-M -o', and we need to detect this.
3997    if depmode=$depmode \
3998       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3999       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4000       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4001         >/dev/null 2>conftest.err &&
4002       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4003       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4004       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4005      # icc doesn't choke on unknown options, it will just issue warnings
4006      # or remarks (even with -Werror).  So we grep stderr for any message
4007      # that says an option was ignored or not supported.
4008      # When given -MP, icc 7.0 and 7.1 complain thusly:
4009      #   icc: Command line warning: ignoring option '-M'; no argument required
4010      # The diagnosis changed in icc 8.0:
4011      #   icc: Command line remark: option '-MP' not supported
4012      if (grep 'ignoring option' conftest.err ||
4013          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4014        am_cv_CC_dependencies_compiler_type=$depmode
4015        break
4016      fi
4017    fi
4018  done
4019
4020  cd ..
4021  rm -rf conftest.dir
4022else
4023  am_cv_CC_dependencies_compiler_type=none
4024fi
4025
4026fi
4027echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4028echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4029CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4030
4031
4032
4033if
4034  test "x$enable_dependency_tracking" != xno \
4035  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4036  am__fastdepCC_TRUE=
4037  am__fastdepCC_FALSE='#'
4038else
4039  am__fastdepCC_TRUE='#'
4040  am__fastdepCC_FALSE=
4041fi
4042
4043
4044
4045echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4046echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4047    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4048if test "${enable_maintainer_mode+set}" = set; then
4049  enableval="$enable_maintainer_mode"
4050  USE_MAINTAINER_MODE=$enableval
4051else
4052  USE_MAINTAINER_MODE=no
4053fi;
4054  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4055echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4056
4057
4058if test $USE_MAINTAINER_MODE = yes; then
4059  MAINTAINER_MODE_TRUE=
4060  MAINTAINER_MODE_FALSE='#'
4061else
4062  MAINTAINER_MODE_TRUE='#'
4063  MAINTAINER_MODE_FALSE=
4064fi
4065
4066  MAINT=$MAINTAINER_MODE_TRUE
4067
4068
4069
4070coin_have_externals=no
4071if test "$enable_maintainer_mode" = yes; then
4072
4073  # If maintainer mode is chosen, we make sure that the correct versions
4074  # of the tools are used, and that we know where libtool.m4 is (to
4075  # recreate acinclude.m4)
4076
4077
4078  LIBTOOLM4=
4079  # Normally, $HOME
4080  AUTOTOOLS_DFLT=$HOME
4081
4082  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4083echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4084if test "${ac_cv_use_correct_autotools+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  ac_cv_use_correct_autotools=check
4088fi
4089echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4090echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4091
4092  if test $ac_cv_use_correct_autotools = check; then
4093    ac_cv_use_correct_autotools=yes
4094    # Check if we have autoconf
4095    # Extract the first word of "autoconf", so it can be a program name with args.
4096set dummy autoconf; ac_word=$2
4097echo "$as_me:$LINENO: checking for $ac_word" >&5
4098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099if test "${ac_cv_prog_have_autoconf+set}" = set; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  if test -n "$have_autoconf"; then
4103  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4104else
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108  IFS=$as_save_IFS
4109  test -z "$as_dir" && as_dir=.
4110  for ac_exec_ext in '' $ac_executable_extensions; do
4111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112    ac_cv_prog_have_autoconf="yes"
4113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114    break 2
4115  fi
4116done
4117done
4118
4119  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4120fi
4121fi
4122have_autoconf=$ac_cv_prog_have_autoconf
4123if test -n "$have_autoconf"; then
4124  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4125echo "${ECHO_T}$have_autoconf" >&6
4126else
4127  echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6
4129fi
4130
4131    if test $have_autoconf = no; then
4132      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4133echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4134   { (exit 1); exit 1; }; }
4135    fi
4136
4137    # Check whether autoconf is the correct version
4138    correct_version='2.59'
4139    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4140    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4141echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4142    autoconf --version > confauto.out 2>&1
4143    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4144      echo "$as_me:$LINENO: result: yes" >&5
4145echo "${ECHO_T}yes" >&6
4146    else
4147      rm -f confauto.out
4148      echo "$as_me:$LINENO: result: no" >&5
4149echo "${ECHO_T}no" >&6
4150      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4151echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4152   { (exit 1); exit 1; }; }
4153    fi
4154    rm -f confauto.out
4155
4156    # Check if the executable autoconf is picked up from the correct location
4157    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4158echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4159    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4160    autoconf_dir=`cd $autoconf_dir; pwd`
4161    if test x$AUTOTOOLS_DIR = x; then
4162      want_dir=$AUTOTOOLS_DFLT/bin
4163    else
4164      want_dir=$AUTOTOOLS_DIR/bin
4165    fi
4166    if test $autoconf_dir = `cd $want_dir; pwd`; then
4167      echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
4169    else
4170      rm -f confauto.out
4171      echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4174echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4175   { (exit 1); exit 1; }; }
4176    fi
4177
4178    # Check if we have automake
4179    # Extract the first word of "automake", so it can be a program name with args.
4180set dummy automake; ac_word=$2
4181echo "$as_me:$LINENO: checking for $ac_word" >&5
4182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183if test "${ac_cv_prog_have_automake+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  if test -n "$have_automake"; then
4187  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194  for ac_exec_ext in '' $ac_executable_extensions; do
4195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196    ac_cv_prog_have_automake="yes"
4197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198    break 2
4199  fi
4200done
4201done
4202
4203  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4204fi
4205fi
4206have_automake=$ac_cv_prog_have_automake
4207if test -n "$have_automake"; then
4208  echo "$as_me:$LINENO: result: $have_automake" >&5
4209echo "${ECHO_T}$have_automake" >&6
4210else
4211  echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
4213fi
4214
4215    if test $have_automake = no; then
4216      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4217echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4218   { (exit 1); exit 1; }; }
4219    fi
4220
4221    # Check whether automake is the correct version
4222    correct_version='1.9.6'
4223    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4224    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4225echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4226    automake --version > confauto.out 2>&1
4227    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4228      echo "$as_me:$LINENO: result: yes" >&5
4229echo "${ECHO_T}yes" >&6
4230    else
4231      rm -f confauto.out
4232      echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
4234      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4235echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4236   { (exit 1); exit 1; }; }
4237    fi
4238    rm -f confauto.out
4239
4240    # Check if the executable automake is picked up from the correct location
4241    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4242echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4243    automake_dir=`which automake | sed -e 's=/automake=='`
4244    automake_dir=`cd $automake_dir; pwd`
4245    if test x$AUTOTOOLS_DIR = x; then
4246      want_dir=$AUTOTOOLS_DFLT/bin
4247    else
4248      want_dir=$AUTOTOOLS_DIR/bin
4249    fi
4250    if test $automake_dir = `cd $want_dir; pwd`; then
4251      echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
4253    else
4254      rm -f confauto.out
4255      echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
4257      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4258echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4259   { (exit 1); exit 1; }; }
4260    fi
4261
4262    # Check if this is the correct version of libtool (with escaped dots)
4263    if test x$AUTOTOOLS_DIR = x; then
4264      want_dir=$AUTOTOOLS_DFLT/share
4265    else
4266      want_dir=$AUTOTOOLS_DIR/share
4267    fi
4268    correct_version='1.5.22'
4269    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4270    if test -r $want_dir/libtool/ltmain.sh; then
4271  have_ltmain=yes
4272  :
4273else
4274  have_ltmain=no
4275  :
4276fi
4277
4278    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4279echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4280    if test $have_ltmain = yes; then
4281    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4282        echo "$as_me:$LINENO: result: yes" >&5
4283echo "${ECHO_T}yes" >&6
4284      else
4285        echo "$as_me:$LINENO: result: no" >&5
4286echo "${ECHO_T}no" >&6
4287        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4288echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4289   { (exit 1); exit 1; }; }
4290      fi
4291    else
4292      echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4295echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4296   { (exit 1); exit 1; }; }
4297    fi
4298  fi
4299
4300  # Check if we can find the libtool file
4301  if test x$AUTOTOOLS_DIR = x; then
4302    want_dir=$AUTOTOOLS_DFLT/share
4303  else
4304    want_dir=$AUTOTOOLS_DIR/share
4305  fi
4306  if test -r $want_dir/aclocal/libtool.m4; then
4307  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4308  :
4309else
4310  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4311echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4312   { (exit 1); exit 1; }; }
4313  :
4314fi
4315
4316
4317  # Check if we have an Dependencies file
4318  if test -r $srcdir/Dependencies; then
4319    coin_have_externals=yes
4320  fi
4321  # Check if subversion is installed and understands https
4322  # Extract the first word of "svn", so it can be a program name with args.
4323set dummy svn; ac_word=$2
4324echo "$as_me:$LINENO: checking for $ac_word" >&5
4325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326if test "${ac_cv_prog_have_svn+set}" = set; then
4327  echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329  if test -n "$have_svn"; then
4330  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337  for ac_exec_ext in '' $ac_executable_extensions; do
4338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339    ac_cv_prog_have_svn="yes"
4340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344done
4345
4346  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4347fi
4348fi
4349have_svn=$ac_cv_prog_have_svn
4350if test -n "$have_svn"; then
4351  echo "$as_me:$LINENO: result: $have_svn" >&5
4352echo "${ECHO_T}$have_svn" >&6
4353else
4354  echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6
4356fi
4357
4358  if test x$have_svn = xyes; then
4359    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4360echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4361if test "${ac_cv_svn_understands_https+set}" = set; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364  svn --version > confauto.out 2>&1
4365                    if $EGREP https confauto.out >/dev/null 2>&1; then
4366                      ac_cv_svn_understands_https=yes
4367                    else
4368                      ac_cv_svn_understands_https=no
4369                      have_svn=no
4370                      ac_cv_prog_have_svn=no
4371                    fi
4372                    rm -f confauto.out
4373fi
4374echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4375echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4376  fi
4377
4378  # Find the location of the BuildTools directory
4379  BUILDTOOLSDIR=
4380  if test -r $srcdir/BuildTools/coin.m4; then
4381    BUILDTOOLSDIR=$srcdir/BuildTools
4382  elif test -r $srcdir/../BuildTools/coin.m4; then
4383    BUILDTOOLSDIR=$srcdir/../BuildTools
4384  elif test -r $srcdir/../../BuildTools/coin.m4; then
4385    BUILDTOOLSDIR=$srcdir/../../BuildTools
4386  elif test -r $srcdir/../../../BuildTools/coin.m4; then
4387    BUILDTOOLSDIR=$srcdir/../../../BuildTools
4388  else
4389    { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4390echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4391   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4392  fi
4393
4394
4395  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4396  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4397    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4398  fi
4399
4400  # The following variable is set to the name of the directory where
4401  # the autotool scripts are located
4402
4403  AUX_DIR=$ac_aux_dir
4404fi
4405
4406# helpful variable for the base directory of this package
4407abs_source_dir=`cd $srcdir; pwd`
4408
4409
4410# Stuff for example Makefiles
4411if test x$prefix = xNONE; then
4412  full_prefix=$ac_default_prefix
4413else
4414  full_prefix=$prefix
4415fi
4416
4417
4418abs_lib_dir=$full_prefix/lib
4419
4420abs_include_dir=$full_prefix/include
4421
4422abs_bin_dir=$full_prefix/bin
4423
4424
4425
4426if test $coin_have_externals = yes && test x$have_svn = xyes; then
4427  HAVE_EXTERNALS_TRUE=
4428  HAVE_EXTERNALS_FALSE='#'
4429else
4430  HAVE_EXTERNALS_TRUE='#'
4431  HAVE_EXTERNALS_FALSE=
4432fi
4433
4434
4435# AC_MSG_NOTICE([End automake initialisation.])
4436
4437
4438
4439LIBTOOL=
4440if test -f ../libtool; then
4441  coin_config_dir=..
4442  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4443fi
4444if test "x$LIBTOOL" = x; then
4445  if test -f ../../libtool; then
4446    coin_config_dir=../..
4447    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4448  fi
4449fi
4450
4451if test "x$LIBTOOL" = x; then
4452# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4453  # Stuff for libtool
4454  # Check whether --enable-shared or --disable-shared was given.
4455if test "${enable_shared+set}" = set; then
4456  enableval="$enable_shared"
4457  p=${PACKAGE-default}
4458    case $enableval in
4459    yes) enable_shared=yes ;;
4460    no) enable_shared=no ;;
4461    *)
4462      enable_shared=no
4463      # Look at the argument we got.  We use all the common list separators.
4464      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4465      for pkg in $enableval; do
4466	IFS="$lt_save_ifs"
4467	if test "X$pkg" = "X$p"; then
4468	  enable_shared=yes
4469	fi
4470      done
4471      IFS="$lt_save_ifs"
4472      ;;
4473    esac
4474else
4475  enable_shared=yes
4476fi;
4477
4478# Check whether --enable-fast-install or --disable-fast-install was given.
4479if test "${enable_fast_install+set}" = set; then
4480  enableval="$enable_fast_install"
4481  p=${PACKAGE-default}
4482    case $enableval in
4483    yes) enable_fast_install=yes ;;
4484    no) enable_fast_install=no ;;
4485    *)
4486      enable_fast_install=no
4487      # Look at the argument we got.  We use all the common list separators.
4488      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4489      for pkg in $enableval; do
4490	IFS="$lt_save_ifs"
4491	if test "X$pkg" = "X$p"; then
4492	  enable_fast_install=yes
4493	fi
4494      done
4495      IFS="$lt_save_ifs"
4496      ;;
4497    esac
4498else
4499  enable_fast_install=yes
4500fi;
4501
4502echo "$as_me:$LINENO: checking host system type" >&5
4503echo $ECHO_N "checking host system type... $ECHO_C" >&6
4504if test "${ac_cv_host+set}" = set; then
4505  echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507  ac_cv_host_alias=$host_alias
4508test -z "$ac_cv_host_alias" &&
4509  ac_cv_host_alias=$ac_cv_build_alias
4510ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4511  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4512echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4513   { (exit 1); exit 1; }; }
4514
4515fi
4516echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4517echo "${ECHO_T}$ac_cv_host" >&6
4518host=$ac_cv_host
4519host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4520host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4521host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4522
4523
4524echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4525echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4526if test "${lt_cv_path_SED+set}" = set; then
4527  echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529  # Loop through the user's path and test for sed and gsed.
4530# Then use that list of sed's as ones to test for truncation.
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534  IFS=$as_save_IFS
4535  test -z "$as_dir" && as_dir=.
4536  for lt_ac_prog in sed gsed; do
4537    for ac_exec_ext in '' $ac_executable_extensions; do
4538      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4539        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4540      fi
4541    done
4542  done
4543done
4544lt_ac_max=0
4545lt_ac_count=0
4546# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4547# along with /bin/sed that truncates output.
4548for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4549  test ! -f $lt_ac_sed && continue
4550  cat /dev/null > conftest.in
4551  lt_ac_count=0
4552  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4553  # Check for GNU sed and select it if it is found.
4554  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4555    lt_cv_path_SED=$lt_ac_sed
4556    break
4557  fi
4558  while true; do
4559    cat conftest.in conftest.in >conftest.tmp
4560    mv conftest.tmp conftest.in
4561    cp conftest.in conftest.nl
4562    echo >>conftest.nl
4563    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4564    cmp -s conftest.out conftest.nl || break
4565    # 10000 chars as input seems more than enough
4566    test $lt_ac_count -gt 10 && break
4567    lt_ac_count=`expr $lt_ac_count + 1`
4568    if test $lt_ac_count -gt $lt_ac_max; then
4569      lt_ac_max=$lt_ac_count
4570      lt_cv_path_SED=$lt_ac_sed
4571    fi
4572  done
4573done
4574
4575fi
4576
4577SED=$lt_cv_path_SED
4578echo "$as_me:$LINENO: result: $SED" >&5
4579echo "${ECHO_T}$SED" >&6
4580
4581
4582# Check whether --with-gnu-ld or --without-gnu-ld was given.
4583if test "${with_gnu_ld+set}" = set; then
4584  withval="$with_gnu_ld"
4585  test "$withval" = no || with_gnu_ld=yes
4586else
4587  with_gnu_ld=no
4588fi;
4589ac_prog=ld
4590if test "$GCC" = yes; then
4591  # Check if gcc -print-prog-name=ld gives a path.
4592  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4593echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4594  case $host in
4595  *-*-mingw*)
4596    # gcc leaves a trailing carriage return which upsets mingw
4597    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4598  *)
4599    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4600  esac
4601  case $ac_prog in
4602    # Accept absolute paths.
4603    [\\/]* | ?:[\\/]*)
4604      re_direlt='/[^/][^/]*/\.\./'
4605      # Canonicalize the pathname of ld
4606      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4607      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4608	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4609      done
4610      test -z "$LD" && LD="$ac_prog"
4611      ;;
4612  "")
4613    # If it fails, then pretend we aren't using GCC.
4614    ac_prog=ld
4615    ;;
4616  *)
4617    # If it is relative, then search for the first ld in PATH.
4618    with_gnu_ld=unknown
4619    ;;
4620  esac
4621elif test "$with_gnu_ld" = yes; then
4622  echo "$as_me:$LINENO: checking for GNU ld" >&5
4623echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4624else
4625  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4626echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4627fi
4628if test "${lt_cv_path_LD+set}" = set; then
4629  echo $ECHO_N "(cached) $ECHO_C" >&6
4630else
4631  if test -z "$LD"; then
4632  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4633  for ac_dir in $PATH; do
4634    IFS="$lt_save_ifs"
4635    test -z "$ac_dir" && ac_dir=.
4636    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4637      lt_cv_path_LD="$ac_dir/$ac_prog"
4638      # Check to see if the program is GNU ld.  I'd rather use --version,
4639      # but apparently some variants of GNU ld only accept -v.
4640      # Break only if it was the GNU/non-GNU ld that we prefer.
4641      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4642      *GNU* | *'with BFD'*)
4643	test "$with_gnu_ld" != no && break
4644	;;
4645      *)
4646	test "$with_gnu_ld" != yes && break
4647	;;
4648      esac
4649    fi
4650  done
4651  IFS="$lt_save_ifs"
4652else
4653  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4654fi
4655fi
4656
4657LD="$lt_cv_path_LD"
4658if test -n "$LD"; then
4659  echo "$as_me:$LINENO: result: $LD" >&5
4660echo "${ECHO_T}$LD" >&6
4661else
4662  echo "$as_me:$LINENO: result: no" >&5
4663echo "${ECHO_T}no" >&6
4664fi
4665test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4666echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4667   { (exit 1); exit 1; }; }
4668echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4669echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4670if test "${lt_cv_prog_gnu_ld+set}" = set; then
4671  echo $ECHO_N "(cached) $ECHO_C" >&6
4672else
4673  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4674case `$LD -v 2>&1 </dev/null` in
4675*GNU* | *'with BFD'*)
4676  lt_cv_prog_gnu_ld=yes
4677  ;;
4678*)
4679  lt_cv_prog_gnu_ld=no
4680  ;;
4681esac
4682fi
4683echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4684echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4685with_gnu_ld=$lt_cv_prog_gnu_ld
4686
4687
4688echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4689echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4690if test "${lt_cv_ld_reload_flag+set}" = set; then
4691  echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693  lt_cv_ld_reload_flag='-r'
4694fi
4695echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4696echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4697reload_flag=$lt_cv_ld_reload_flag
4698case $reload_flag in
4699"" | " "*) ;;
4700*) reload_flag=" $reload_flag" ;;
4701esac
4702reload_cmds='$LD$reload_flag -o $output$reload_objs'
4703case $host_os in
4704  darwin*)
4705    if test "$GCC" = yes; then
4706      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4707    else
4708      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4709    fi
4710    ;;
4711esac
4712
4713echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4714echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4715if test "${lt_cv_path_NM+set}" = set; then
4716  echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718  if test -n "$NM"; then
4719  # Let the user override the test.
4720  lt_cv_path_NM="$NM"
4721else
4722  lt_nm_to_check="${ac_tool_prefix}nm"
4723  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4724    lt_nm_to_check="$lt_nm_to_check nm"
4725  fi
4726  for lt_tmp_nm in $lt_nm_to_check; do
4727    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4728    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4729      IFS="$lt_save_ifs"
4730      test -z "$ac_dir" && ac_dir=.
4731      tmp_nm="$ac_dir/$lt_tmp_nm"
4732      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4733	# Check to see if the nm accepts a BSD-compat flag.
4734	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4735	#   nm: unknown option "B" ignored
4736	# Tru64's nm complains that /dev/null is an invalid object file
4737	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4738	*/dev/null* | *'Invalid file or object type'*)
4739	  lt_cv_path_NM="$tmp_nm -B"
4740	  break
4741	  ;;
4742	*)
4743	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4744	  */dev/null*)
4745	    lt_cv_path_NM="$tmp_nm -p"
4746	    break
4747	    ;;
4748	  *)
4749	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4750	    continue # so that we can try to find one that supports BSD flags
4751	    ;;
4752	  esac
4753	  ;;
4754	esac
4755      fi
4756    done
4757    IFS="$lt_save_ifs"
4758  done
4759  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4760fi
4761fi
4762echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4763echo "${ECHO_T}$lt_cv_path_NM" >&6
4764NM="$lt_cv_path_NM"
4765
4766echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4767echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4768if test "${lt_cv_deplibs_check_method+set}" = set; then
4769  echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771  lt_cv_file_magic_cmd='$MAGIC_CMD'
4772lt_cv_file_magic_test_file=
4773lt_cv_deplibs_check_method='unknown'
4774# Need to set the preceding variable on all platforms that support
4775# interlibrary dependencies.
4776# 'none' -- dependencies not supported.
4777# `unknown' -- same as none, but documents that we really don't know.
4778# 'pass_all' -- all dependencies passed with no checks.
4779# 'test_compile' -- check by making test program.
4780# 'file_magic [[regex]]' -- check by looking for files in library path
4781# which responds to the $file_magic_cmd with a given extended regex.
4782# If you have `file' or equivalent on your system and you're not sure
4783# whether `pass_all' will *always* work, you probably want this one.
4784
4785case $host_os in
4786aix4* | aix5*)
4787  lt_cv_deplibs_check_method=pass_all
4788  ;;
4789
4790beos*)
4791  lt_cv_deplibs_check_method=pass_all
4792  ;;
4793
4794bsdi[45]*)
4795  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4796  lt_cv_file_magic_cmd='/usr/bin/file -L'
4797  lt_cv_file_magic_test_file=/shlib/libc.so
4798  ;;
4799
4800cygwin*)
4801  # func_win32_libid is a shell function defined in ltmain.sh
4802  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4803  lt_cv_file_magic_cmd='func_win32_libid'
4804  ;;
4805
4806mingw* | pw32*)
4807  # Base MSYS/MinGW do not provide the 'file' command needed by
4808  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4809  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4810  lt_cv_file_magic_cmd='$OBJDUMP -f'
4811  ;;
4812
4813darwin* | rhapsody*)
4814  lt_cv_deplibs_check_method=pass_all
4815  ;;
4816
4817freebsd* | kfreebsd*-gnu | dragonfly*)
4818  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4819    case $host_cpu in
4820    i*86 )
4821      # Not sure whether the presence of OpenBSD here was a mistake.
4822      # Let's accept both of them until this is cleared up.
4823      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4824      lt_cv_file_magic_cmd=/usr/bin/file
4825      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4826      ;;
4827    esac
4828  else
4829    lt_cv_deplibs_check_method=pass_all
4830  fi
4831  ;;
4832
4833gnu*)
4834  lt_cv_deplibs_check_method=pass_all
4835  ;;
4836
4837hpux10.20* | hpux11*)
4838  lt_cv_file_magic_cmd=/usr/bin/file
4839  case $host_cpu in
4840  ia64*)
4841    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4842    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4843    ;;
4844  hppa*64*)
4845    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]'
4846    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4847    ;;
4848  *)
4849    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4850    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4851    ;;
4852  esac
4853  ;;
4854
4855interix3*)
4856  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4857  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4858  ;;
4859
4860irix5* | irix6* | nonstopux*)
4861  case $LD in
4862  *-32|*"-32 ") libmagic=32-bit;;
4863  *-n32|*"-n32 ") libmagic=N32;;
4864  *-64|*"-64 ") libmagic=64-bit;;
4865  *) libmagic=never-match;;
4866  esac
4867  lt_cv_deplibs_check_method=pass_all
4868  ;;
4869
4870# This must be Linux ELF.
4871linux*)
4872  lt_cv_deplibs_check_method=pass_all
4873  ;;
4874
4875netbsd*)
4876  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4877    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4878  else
4879    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4880  fi
4881  ;;
4882
4883newos6*)
4884  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4885  lt_cv_file_magic_cmd=/usr/bin/file
4886  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4887  ;;
4888
4889nto-qnx*)
4890  lt_cv_deplibs_check_method=unknown
4891  ;;
4892
4893openbsd*)
4894  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4896  else
4897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4898  fi
4899  ;;
4900
4901osf3* | osf4* | osf5*)
4902  lt_cv_deplibs_check_method=pass_all
4903  ;;
4904
4905solaris*)
4906  lt_cv_deplibs_check_method=pass_all
4907  ;;
4908
4909sysv4 | sysv4.3*)
4910  case $host_vendor in
4911  motorola)
4912    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]'
4913    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4914    ;;
4915  ncr)
4916    lt_cv_deplibs_check_method=pass_all
4917    ;;
4918  sequent)
4919    lt_cv_file_magic_cmd='/bin/file'
4920    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4921    ;;
4922  sni)
4923    lt_cv_file_magic_cmd='/bin/file'
4924    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4925    lt_cv_file_magic_test_file=/lib/libc.so
4926    ;;
4927  siemens)
4928    lt_cv_deplibs_check_method=pass_all
4929    ;;
4930  pc)
4931    lt_cv_deplibs_check_method=pass_all
4932    ;;
4933  esac
4934  ;;
4935
4936sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4937  lt_cv_deplibs_check_method=pass_all
4938  ;;
4939esac
4940
4941fi
4942echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4943echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4944file_magic_cmd=$lt_cv_file_magic_cmd
4945deplibs_check_method=$lt_cv_deplibs_check_method
4946test -z "$deplibs_check_method" && deplibs_check_method=unknown
4947
4948
4949
4950
4951# If no C compiler was specified, use CC.
4952LTCC=${LTCC-"$CC"}
4953
4954# If no C compiler flags were specified, use CFLAGS.
4955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4956
4957# Allow CC to be a program name with arguments.
4958compiler=$CC
4959
4960# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4961if test "${enable_libtool_lock+set}" = set; then
4962  enableval="$enable_libtool_lock"
4963
4964fi;
4965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4966
4967# Some flags need to be propagated to the compiler or linker for good
4968# libtool support.
4969case $host in
4970ia64-*-hpux*)
4971  # Find out which ABI we are using.
4972  echo 'int i;' > conftest.$ac_ext
4973  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974  (eval $ac_compile) 2>&5
4975  ac_status=$?
4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977  (exit $ac_status); }; then
4978    case `/usr/bin/file conftest.$ac_objext` in
4979    *ELF-32*)
4980      HPUX_IA64_MODE="32"
4981      ;;
4982    *ELF-64*)
4983      HPUX_IA64_MODE="64"
4984      ;;
4985    esac
4986  fi
4987  rm -rf conftest*
4988  ;;
4989*-*-irix6*)
4990  # Find out which ABI we are using.
4991  echo '#line 4991 "configure"' > conftest.$ac_ext
4992  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993  (eval $ac_compile) 2>&5
4994  ac_status=$?
4995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996  (exit $ac_status); }; then
4997   if test "$lt_cv_prog_gnu_ld" = yes; then
4998    case `/usr/bin/file conftest.$ac_objext` in
4999    *32-bit*)
5000      LD="${LD-ld} -melf32bsmip"
5001      ;;
5002    *N32*)
5003      LD="${LD-ld} -melf32bmipn32"
5004      ;;
5005    *64-bit*)
5006      LD="${LD-ld} -melf64bmip"
5007      ;;
5008    esac
5009   else
5010    case `/usr/bin/file conftest.$ac_objext` in
5011    *32-bit*)
5012      LD="${LD-ld} -32"
5013      ;;
5014    *N32*)
5015      LD="${LD-ld} -n32"
5016      ;;
5017    *64-bit*)
5018      LD="${LD-ld} -64"
5019      ;;
5020    esac
5021   fi
5022  fi
5023  rm -rf conftest*
5024  ;;
5025
5026x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5027  # Find out which ABI we are using.
5028  echo 'int i;' > conftest.$ac_ext
5029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030  (eval $ac_compile) 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; then
5034    case `/usr/bin/file conftest.o` in
5035    *32-bit*)
5036      case $host in
5037        x86_64-*linux*)
5038          LD="${LD-ld} -m elf_i386"
5039          ;;
5040        ppc64-*linux*|powerpc64-*linux*)
5041          LD="${LD-ld} -m elf32ppclinux"
5042          ;;
5043        s390x-*linux*)
5044          LD="${LD-ld} -m elf_s390"
5045          ;;
5046        sparc64-*linux*)
5047          LD="${LD-ld} -m elf32_sparc"
5048          ;;
5049      esac
5050      ;;
5051    *64-bit*)
5052      case $host in
5053        x86_64-*linux*)
5054          LD="${LD-ld} -m elf_x86_64"
5055          ;;
5056        ppc*-*linux*|powerpc*-*linux*)
5057          LD="${LD-ld} -m elf64ppc"
5058          ;;
5059        s390*-*linux*)
5060          LD="${LD-ld} -m elf64_s390"
5061          ;;
5062        sparc*-*linux*)
5063          LD="${LD-ld} -m elf64_sparc"
5064          ;;
5065      esac
5066      ;;
5067    esac
5068  fi
5069  rm -rf conftest*
5070  ;;
5071
5072*-*-sco3.2v5*)
5073  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074  SAVE_CFLAGS="$CFLAGS"
5075  CFLAGS="$CFLAGS -belf"
5076  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5078if test "${lt_cv_cc_needs_belf+set}" = set; then
5079  echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081  ac_ext=c
5082ac_cpp='$CPP $CPPFLAGS'
5083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087     cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h.  */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h.  */
5093
5094int
5095main ()
5096{
5097
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102rm -f conftest.$ac_objext conftest$ac_exeext
5103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104  (eval $ac_link) 2>conftest.er1
5105  ac_status=$?
5106  grep -v '^ *+' conftest.er1 >conftest.err
5107  rm -f conftest.er1
5108  cat conftest.err >&5
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); } &&
5111	 { ac_try='test -z "$ac_c_werror_flag"
5112			 || test ! -s conftest.err'
5113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114  (eval $ac_try) 2>&5
5115  ac_status=$?
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); }; } &&
5118	 { ac_try='test -s conftest$ac_exeext'
5119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120  (eval $ac_try) 2>&5
5121  ac_status=$?
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); }; }; then
5124  lt_cv_cc_needs_belf=yes
5125else
5126  echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129lt_cv_cc_needs_belf=no
5130fi
5131rm -f conftest.err conftest.$ac_objext \
5132      conftest$ac_exeext conftest.$ac_ext
5133     ac_ext=c
5134ac_cpp='$CPP $CPPFLAGS'
5135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138
5139fi
5140echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5141echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5142  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5143    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5144    CFLAGS="$SAVE_CFLAGS"
5145  fi
5146  ;;
5147sparc*-*solaris*)
5148  # Find out which ABI we are using.
5149  echo 'int i;' > conftest.$ac_ext
5150  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151  (eval $ac_compile) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); }; then
5155    case `/usr/bin/file conftest.o` in
5156    *64-bit*)
5157      case $lt_cv_prog_gnu_ld in
5158      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5159      *)    LD="${LD-ld} -64" ;;
5160      esac
5161      ;;
5162    esac
5163  fi
5164  rm -rf conftest*
5165  ;;
5166
5167
5168esac
5169
5170need_locks="$enable_libtool_lock"
5171
5172
5173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5180# On Suns, sometimes $CPP names a directory.
5181if test -n "$CPP" && test -d "$CPP"; then
5182  CPP=
5183fi
5184if test -z "$CPP"; then
5185  if test "${ac_cv_prog_CPP+set}" = set; then
5186  echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188      # Double quotes because CPP needs to be expanded
5189    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190    do
5191      ac_preproc_ok=false
5192for ac_c_preproc_warn_flag in '' yes
5193do
5194  # Use a header file that comes with gcc, so configuring glibc
5195  # with a fresh cross-compiler works.
5196  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197  # <limits.h> exists even on freestanding compilers.
5198  # On the NeXT, cc -E runs the code through the compiler's parser,
5199  # not just through cpp. "Syntax error" is here to catch this case.
5200  cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h.  */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h.  */
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211		     Syntax error
5212_ACEOF
5213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5214  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5215  ac_status=$?
5216  grep -v '^ *+' conftest.er1 >conftest.err
5217  rm -f conftest.er1
5218  cat conftest.err >&5
5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); } >/dev/null; then
5221  if test -s conftest.err; then
5222    ac_cpp_err=$ac_c_preproc_warn_flag
5223    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5224  else
5225    ac_cpp_err=
5226  fi
5227else
5228  ac_cpp_err=yes
5229fi
5230if test -z "$ac_cpp_err"; then
5231  :
5232else
5233  echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236  # Broken: fails on valid input.
5237continue
5238fi
5239rm -f conftest.err conftest.$ac_ext
5240
5241  # OK, works on sane cases.  Now check whether non-existent headers
5242  # can be detected and how.
5243  cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h.  */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h.  */
5249#include <ac_nonexistent.h>
5250_ACEOF
5251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5252  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253  ac_status=$?
5254  grep -v '^ *+' conftest.er1 >conftest.err
5255  rm -f conftest.er1
5256  cat conftest.err >&5
5257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258  (exit $ac_status); } >/dev/null; then
5259  if test -s conftest.err; then
5260    ac_cpp_err=$ac_c_preproc_warn_flag
5261    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5262  else
5263    ac_cpp_err=
5264  fi
5265else
5266  ac_cpp_err=yes
5267fi
5268if test -z "$ac_cpp_err"; then
5269  # Broken: success on invalid input.
5270continue
5271else
5272  echo "$as_me: failed program was:" >&5
5273sed 's/^/| /' conftest.$ac_ext >&5
5274
5275  # Passes both tests.
5276ac_preproc_ok=:
5277break
5278fi
5279rm -f conftest.err conftest.$ac_ext
5280
5281done
5282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5283rm -f conftest.err conftest.$ac_ext
5284if $ac_preproc_ok; then
5285  break
5286fi
5287
5288    done
5289    ac_cv_prog_CPP=$CPP
5290
5291fi
5292  CPP=$ac_cv_prog_CPP
5293else
5294  ac_cv_prog_CPP=$CPP
5295fi
5296echo "$as_me:$LINENO: result: $CPP" >&5
5297echo "${ECHO_T}$CPP" >&6
5298ac_preproc_ok=false
5299for ac_c_preproc_warn_flag in '' yes
5300do
5301  # Use a header file that comes with gcc, so configuring glibc
5302  # with a fresh cross-compiler works.
5303  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304  # <limits.h> exists even on freestanding compilers.
5305  # On the NeXT, cc -E runs the code through the compiler's parser,
5306  # not just through cpp. "Syntax error" is here to catch this case.
5307  cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h.  */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h.  */
5313#ifdef __STDC__
5314# include <limits.h>
5315#else
5316# include <assert.h>
5317#endif
5318		     Syntax error
5319_ACEOF
5320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5322  ac_status=$?
5323  grep -v '^ *+' conftest.er1 >conftest.err
5324  rm -f conftest.er1
5325  cat conftest.err >&5
5326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327  (exit $ac_status); } >/dev/null; then
5328  if test -s conftest.err; then
5329    ac_cpp_err=$ac_c_preproc_warn_flag
5330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5331  else
5332    ac_cpp_err=
5333  fi
5334else
5335  ac_cpp_err=yes
5336fi
5337if test -z "$ac_cpp_err"; then
5338  :
5339else
5340  echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343  # Broken: fails on valid input.
5344continue
5345fi
5346rm -f conftest.err conftest.$ac_ext
5347
5348  # OK, works on sane cases.  Now check whether non-existent headers
5349  # can be detected and how.
5350  cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h.  */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h.  */
5356#include <ac_nonexistent.h>
5357_ACEOF
5358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5360  ac_status=$?
5361  grep -v '^ *+' conftest.er1 >conftest.err
5362  rm -f conftest.er1
5363  cat conftest.err >&5
5364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365  (exit $ac_status); } >/dev/null; then
5366  if test -s conftest.err; then
5367    ac_cpp_err=$ac_c_preproc_warn_flag
5368    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5369  else
5370    ac_cpp_err=
5371  fi
5372else
5373  ac_cpp_err=yes
5374fi
5375if test -z "$ac_cpp_err"; then
5376  # Broken: success on invalid input.
5377continue
5378else
5379  echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382  # Passes both tests.
5383ac_preproc_ok=:
5384break
5385fi
5386rm -f conftest.err conftest.$ac_ext
5387
5388done
5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390rm -f conftest.err conftest.$ac_ext
5391if $ac_preproc_ok; then
5392  :
5393else
5394  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5395See \`config.log' for more details." >&5
5396echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5397See \`config.log' for more details." >&2;}
5398   { (exit 1); exit 1; }; }
5399fi
5400
5401ac_ext=c
5402ac_cpp='$CPP $CPPFLAGS'
5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407
5408echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5409echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5410if test "${ac_cv_header_stdc+set}" = set; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413  cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h.  */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h.  */
5419#include <stdlib.h>
5420#include <stdarg.h>
5421#include <string.h>
5422#include <float.h>
5423
5424int
5425main ()
5426{
5427
5428  ;
5429  return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434  (eval $ac_compile) 2>conftest.er1
5435  ac_status=$?
5436  grep -v '^ *+' conftest.er1 >conftest.err
5437  rm -f conftest.er1
5438  cat conftest.err >&5
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); } &&
5441	 { ac_try='test -z "$ac_c_werror_flag"
5442			 || test ! -s conftest.err'
5443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444  (eval $ac_try) 2>&5
5445  ac_status=$?
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }; } &&
5448	 { ac_try='test -s conftest.$ac_objext'
5449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450  (eval $ac_try) 2>&5
5451  ac_status=$?
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }; }; then
5454  ac_cv_header_stdc=yes
5455else
5456  echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459ac_cv_header_stdc=no
5460fi
5461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462
5463if test $ac_cv_header_stdc = yes; then
5464  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5465  cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h.  */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h.  */
5471#include <string.h>
5472
5473_ACEOF
5474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475  $EGREP "memchr" >/dev/null 2>&1; then
5476  :
5477else
5478  ac_cv_header_stdc=no
5479fi
5480rm -f conftest*
5481
5482fi
5483
5484if test $ac_cv_header_stdc = yes; then
5485  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5486  cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h.  */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h.  */
5492#include <stdlib.h>
5493
5494_ACEOF
5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496  $EGREP "free" >/dev/null 2>&1; then
5497  :
5498else
5499  ac_cv_header_stdc=no
5500fi
5501rm -f conftest*
5502
5503fi
5504
5505if test $ac_cv_header_stdc = yes; then
5506  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5507  if test "$cross_compiling" = yes; then
5508  :
5509else
5510  cat >conftest.$ac_ext <<_ACEOF
5511/* confdefs.h.  */
5512_ACEOF
5513cat confdefs.h >>conftest.$ac_ext
5514cat >>conftest.$ac_ext <<_ACEOF
5515/* end confdefs.h.  */
5516#include <ctype.h>
5517#if ((' ' & 0x0FF) == 0x020)
5518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5520#else
5521# define ISLOWER(c) \
5522		   (('a' <= (c) && (c) <= 'i') \
5523		     || ('j' <= (c) && (c) <= 'r') \
5524		     || ('s' <= (c) && (c) <= 'z'))
5525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5526#endif
5527
5528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5529int
5530main ()
5531{
5532  int i;
5533  for (i = 0; i < 256; i++)
5534    if (XOR (islower (i), ISLOWER (i))
5535	|| toupper (i) != TOUPPER (i))
5536      exit(2);
5537  exit (0);
5538}
5539_ACEOF
5540rm -f conftest$ac_exeext
5541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542  (eval $ac_link) 2>&5
5543  ac_status=$?
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547  (eval $ac_try) 2>&5
5548  ac_status=$?
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); }; }; then
5551  :
5552else
5553  echo "$as_me: program exited with status $ac_status" >&5
5554echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557( exit $ac_status )
5558ac_cv_header_stdc=no
5559fi
5560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5561fi
5562fi
5563fi
5564echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5565echo "${ECHO_T}$ac_cv_header_stdc" >&6
5566if test $ac_cv_header_stdc = yes; then
5567
5568cat >>confdefs.h <<\_ACEOF
5569#define STDC_HEADERS 1
5570_ACEOF
5571
5572fi
5573
5574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5585		  inttypes.h stdint.h unistd.h
5586do
5587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5588echo "$as_me:$LINENO: checking for $ac_header" >&5
5589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591  echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593  cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h.  */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h.  */
5599$ac_includes_default
5600
5601#include <$ac_header>
5602_ACEOF
5603rm -f conftest.$ac_objext
5604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605  (eval $ac_compile) 2>conftest.er1
5606  ac_status=$?
5607  grep -v '^ *+' conftest.er1 >conftest.err
5608  rm -f conftest.er1
5609  cat conftest.err >&5
5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611  (exit $ac_status); } &&
5612	 { ac_try='test -z "$ac_c_werror_flag"
5613			 || test ! -s conftest.err'
5614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615  (eval $ac_try) 2>&5
5616  ac_status=$?
5617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618  (exit $ac_status); }; } &&
5619	 { ac_try='test -s conftest.$ac_objext'
5620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621  (eval $ac_try) 2>&5
5622  ac_status=$?
5623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624  (exit $ac_status); }; }; then
5625  eval "$as_ac_Header=yes"
5626else
5627  echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630eval "$as_ac_Header=no"
5631fi
5632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5636if test `eval echo '${'$as_ac_Header'}'` = yes; then
5637  cat >>confdefs.h <<_ACEOF
5638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639_ACEOF
5640
5641fi
5642
5643done
5644
5645
5646
5647for ac_header in dlfcn.h
5648do
5649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5650if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651  echo "$as_me:$LINENO: checking for $ac_header" >&5
5652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5653if eval "test \"\${$as_ac_Header+set}\" = set"; then
5654  echo $ECHO_N "(cached) $ECHO_C" >&6
5655fi
5656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5658else
5659  # Is the header compilable?
5660echo "$as_me:$LINENO: checking $ac_header usability" >&5
5661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5662cat >conftest.$ac_ext <<_ACEOF
5663/* confdefs.h.  */
5664_ACEOF
5665cat confdefs.h >>conftest.$ac_ext
5666cat >>conftest.$ac_ext <<_ACEOF
5667/* end confdefs.h.  */
5668$ac_includes_default
5669#include <$ac_header>
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673  (eval $ac_compile) 2>conftest.er1
5674  ac_status=$?
5675  grep -v '^ *+' conftest.er1 >conftest.err
5676  rm -f conftest.er1
5677  cat conftest.err >&5
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); } &&
5680	 { ac_try='test -z "$ac_c_werror_flag"
5681			 || test ! -s conftest.err'
5682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683  (eval $ac_try) 2>&5
5684  ac_status=$?
5685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); }; } &&
5687	 { ac_try='test -s conftest.$ac_objext'
5688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689  (eval $ac_try) 2>&5
5690  ac_status=$?
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); }; }; then
5693  ac_header_compiler=yes
5694else
5695  echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698ac_header_compiler=no
5699fi
5700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5702echo "${ECHO_T}$ac_header_compiler" >&6
5703
5704# Is the header present?
5705echo "$as_me:$LINENO: checking $ac_header presence" >&5
5706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5707cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h.  */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h.  */
5713#include <$ac_header>
5714_ACEOF
5715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717  ac_status=$?
5718  grep -v '^ *+' conftest.er1 >conftest.err
5719  rm -f conftest.er1
5720  cat conftest.err >&5
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); } >/dev/null; then
5723  if test -s conftest.err; then
5724    ac_cpp_err=$ac_c_preproc_warn_flag
5725    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5726  else
5727    ac_cpp_err=
5728  fi
5729else
5730  ac_cpp_err=yes
5731fi
5732if test -z "$ac_cpp_err"; then
5733  ac_header_preproc=yes
5734else
5735  echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738  ac_header_preproc=no
5739fi
5740rm -f conftest.err conftest.$ac_ext
5741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742echo "${ECHO_T}$ac_header_preproc" >&6
5743
5744# So?  What about this header?
5745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746  yes:no: )
5747    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5751    ac_header_preproc=yes
5752    ;;
5753  no:yes:* )
5754    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5756    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5757echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5758    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5760    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5761echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5764    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5766    (
5767      cat <<\_ASBOX
5768## --------------------------------------------------------------- ##
5769## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5770## --------------------------------------------------------------- ##
5771_ASBOX
5772    ) |
5773      sed "s/^/$as_me: WARNING:     /" >&2
5774    ;;
5775esac
5776echo "$as_me:$LINENO: checking for $ac_header" >&5
5777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5778if eval "test \"\${$as_ac_Header+set}\" = set"; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781  eval "$as_ac_Header=\$ac_header_preproc"
5782fi
5783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5785
5786fi
5787if test `eval echo '${'$as_ac_Header'}'` = yes; then
5788  cat >>confdefs.h <<_ACEOF
5789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5790_ACEOF
5791
5792fi
5793
5794done
5795
5796ac_ext=cc
5797ac_cpp='$CXXCPP $CPPFLAGS'
5798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5801if test -n "$ac_tool_prefix"; then
5802  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5803  do
5804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808if test "${ac_cv_prog_CXX+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  if test -n "$CXX"; then
5812  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819  for ac_exec_ext in '' $ac_executable_extensions; do
5820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826done
5827
5828fi
5829fi
5830CXX=$ac_cv_prog_CXX
5831if test -n "$CXX"; then
5832  echo "$as_me:$LINENO: result: $CXX" >&5
5833echo "${ECHO_T}$CXX" >&6
5834else
5835  echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837fi
5838
5839    test -n "$CXX" && break
5840  done
5841fi
5842if test -z "$CXX"; then
5843  ac_ct_CXX=$CXX
5844  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5845do
5846  # Extract the first word of "$ac_prog", so it can be a program name with args.
5847set dummy $ac_prog; ac_word=$2
5848echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5851  echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853  if test -n "$ac_ct_CXX"; then
5854  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861  for ac_exec_ext in '' $ac_executable_extensions; do
5862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_ac_ct_CXX="$ac_prog"
5864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868done
5869
5870fi
5871fi
5872ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5873if test -n "$ac_ct_CXX"; then
5874  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5875echo "${ECHO_T}$ac_ct_CXX" >&6
5876else
5877  echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6
5879fi
5880
5881  test -n "$ac_ct_CXX" && break
5882done
5883test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5884
5885  CXX=$ac_ct_CXX
5886fi
5887
5888
5889# Provide some information about the compiler.
5890echo "$as_me:$LINENO:" \
5891     "checking for C++ compiler version" >&5
5892ac_compiler=`set X $ac_compile; echo $2`
5893{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5894  (eval $ac_compiler --version </dev/null >&5) 2>&5
5895  ac_status=$?
5896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897  (exit $ac_status); }
5898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5899  (eval $ac_compiler -v </dev/null >&5) 2>&5
5900  ac_status=$?
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); }
5903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5904  (eval $ac_compiler -V </dev/null >&5) 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); }
5908
5909echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5910echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5911if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5912  echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914  cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h.  */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h.  */
5920
5921int
5922main ()
5923{
5924#ifndef __GNUC__
5925       choke me
5926#endif
5927
5928  ;
5929  return 0;
5930}
5931_ACEOF
5932rm -f conftest.$ac_objext
5933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934  (eval $ac_compile) 2>conftest.er1
5935  ac_status=$?
5936  grep -v '^ *+' conftest.er1 >conftest.err
5937  rm -f conftest.er1
5938  cat conftest.err >&5
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); } &&
5941	 { ac_try='test -z "$ac_cxx_werror_flag"
5942			 || test ! -s conftest.err'
5943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944  (eval $ac_try) 2>&5
5945  ac_status=$?
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); }; } &&
5948	 { ac_try='test -s conftest.$ac_objext'
5949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950  (eval $ac_try) 2>&5
5951  ac_status=$?
5952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953  (exit $ac_status); }; }; then
5954  ac_compiler_gnu=yes
5955else
5956  echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959ac_compiler_gnu=no
5960fi
5961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5963
5964fi
5965echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5966echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5967GXX=`test $ac_compiler_gnu = yes && echo yes`
5968ac_test_CXXFLAGS=${CXXFLAGS+set}
5969ac_save_CXXFLAGS=$CXXFLAGS
5970CXXFLAGS="-g"
5971echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5972echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5973if test "${ac_cv_prog_cxx_g+set}" = set; then
5974  echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976  cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h.  */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h.  */
5982
5983int
5984main ()
5985{
5986
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext
5992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993  (eval $ac_compile) 2>conftest.er1
5994  ac_status=$?
5995  grep -v '^ *+' conftest.er1 >conftest.err
5996  rm -f conftest.er1
5997  cat conftest.err >&5
5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); } &&
6000	 { ac_try='test -z "$ac_cxx_werror_flag"
6001			 || test ! -s conftest.err'
6002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003  (eval $ac_try) 2>&5
6004  ac_status=$?
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); }; } &&
6007	 { ac_try='test -s conftest.$ac_objext'
6008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009  (eval $ac_try) 2>&5
6010  ac_status=$?
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); }; }; then
6013  ac_cv_prog_cxx_g=yes
6014else
6015  echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018ac_cv_prog_cxx_g=no
6019fi
6020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
6022echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6023echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6024if test "$ac_test_CXXFLAGS" = set; then
6025  CXXFLAGS=$ac_save_CXXFLAGS
6026elif test $ac_cv_prog_cxx_g = yes; then
6027  if test "$GXX" = yes; then
6028    CXXFLAGS="-g -O2"
6029  else
6030    CXXFLAGS="-g"
6031  fi
6032else
6033  if test "$GXX" = yes; then
6034    CXXFLAGS="-O2"
6035  else
6036    CXXFLAGS=
6037  fi
6038fi
6039for ac_declaration in \
6040   '' \
6041   'extern "C" void std::exit (int) throw (); using std::exit;' \
6042   'extern "C" void std::exit (int); using std::exit;' \
6043   'extern "C" void exit (int) throw ();' \
6044   'extern "C" void exit (int);' \
6045   'void exit (int);'
6046do
6047  cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h.  */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h.  */
6053$ac_declaration
6054#include <stdlib.h>
6055int
6056main ()
6057{
6058exit (42);
6059  ;
6060  return 0;
6061}
6062_ACEOF
6063rm -f conftest.$ac_objext
6064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065  (eval $ac_compile) 2>conftest.er1
6066  ac_status=$?
6067  grep -v '^ *+' conftest.er1 >conftest.err
6068  rm -f conftest.er1
6069  cat conftest.err >&5
6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071  (exit $ac_status); } &&
6072	 { ac_try='test -z "$ac_cxx_werror_flag"
6073			 || test ! -s conftest.err'
6074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075  (eval $ac_try) 2>&5
6076  ac_status=$?
6077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078  (exit $ac_status); }; } &&
6079	 { ac_try='test -s conftest.$ac_objext'
6080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081  (eval $ac_try) 2>&5
6082  ac_status=$?
6083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); }; }; then
6085  :
6086else
6087  echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090continue
6091fi
6092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093  cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099$ac_declaration
6100int
6101main ()
6102{
6103exit (42);
6104  ;
6105  return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext
6109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110  (eval $ac_compile) 2>conftest.er1
6111  ac_status=$?
6112  grep -v '^ *+' conftest.er1 >conftest.err
6113  rm -f conftest.er1
6114  cat conftest.err >&5
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); } &&
6117	 { ac_try='test -z "$ac_cxx_werror_flag"
6118			 || test ! -s conftest.err'
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); }; } &&
6124	 { ac_try='test -s conftest.$ac_objext'
6125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126  (eval $ac_try) 2>&5
6127  ac_status=$?
6128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); }; }; then
6130  break
6131else
6132  echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
6135fi
6136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137done
6138rm -f conftest*
6139if test -n "$ac_declaration"; then
6140  echo '#ifdef __cplusplus' >>confdefs.h
6141  echo $ac_declaration      >>confdefs.h
6142  echo '#endif'             >>confdefs.h
6143fi
6144
6145ac_ext=cc
6146ac_cpp='$CXXCPP $CPPFLAGS'
6147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150
6151depcc="$CXX"  am_compiler_list=
6152
6153echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6154echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6155if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6156  echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6159  # We make a subdir and do the tests there.  Otherwise we can end up
6160  # making bogus files that we don't know about and never remove.  For
6161  # instance it was reported that on HP-UX the gcc test will end up
6162  # making a dummy file named `D' -- because `-MD' means `put the output
6163  # in D'.
6164  mkdir conftest.dir
6165  # Copy depcomp to subdir because otherwise we won't find it if we're
6166  # using a relative directory.
6167  cp "$am_depcomp" conftest.dir
6168  cd conftest.dir
6169  # We will build objects and dependencies in a subdirectory because
6170  # it helps to detect inapplicable dependency modes.  For instance
6171  # both Tru64's cc and ICC support -MD to output dependencies as a
6172  # side effect of compilation, but ICC will put the dependencies in
6173  # the current directory while Tru64 will put them in the object
6174  # directory.
6175  mkdir sub
6176
6177  am_cv_CXX_dependencies_compiler_type=none
6178  if test "$am_compiler_list" = ""; then
6179     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6180  fi
6181  for depmode in $am_compiler_list; do
6182    # Setup a source with many dependencies, because some compilers
6183    # like to wrap large dependency lists on column 80 (with \), and
6184    # we should not choose a depcomp mode which is confused by this.
6185    #
6186    # We need to recreate these files for each test, as the compiler may
6187    # overwrite some of them when testing with obscure command lines.
6188    # This happens at least with the AIX C compiler.
6189    : > sub/conftest.c
6190    for i in 1 2 3 4 5 6; do
6191      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6192      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6193      # Solaris 8's {/usr,}/bin/sh.
6194      touch sub/conftst$i.h
6195    done
6196    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6197
6198    case $depmode in
6199    nosideeffect)
6200      # after this tag, mechanisms are not by side-effect, so they'll
6201      # only be used when explicitly requested
6202      if test "x$enable_dependency_tracking" = xyes; then
6203	continue
6204      else
6205	break
6206      fi
6207      ;;
6208    none) break ;;
6209    esac
6210    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6211    # mode.  It turns out that the SunPro C++ compiler does not properly
6212    # handle `-M -o', and we need to detect this.
6213    if depmode=$depmode \
6214       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6215       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6216       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6217         >/dev/null 2>conftest.err &&
6218       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6219       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6220       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6221      # icc doesn't choke on unknown options, it will just issue warnings
6222      # or remarks (even with -Werror).  So we grep stderr for any message
6223      # that says an option was ignored or not supported.
6224      # When given -MP, icc 7.0 and 7.1 complain thusly:
6225      #   icc: Command line warning: ignoring option '-M'; no argument required
6226      # The diagnosis changed in icc 8.0:
6227      #   icc: Command line remark: option '-MP' not supported
6228      if (grep 'ignoring option' conftest.err ||
6229          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6230        am_cv_CXX_dependencies_compiler_type=$depmode
6231        break
6232      fi
6233    fi
6234  done
6235
6236  cd ..
6237  rm -rf conftest.dir
6238else
6239  am_cv_CXX_dependencies_compiler_type=none
6240fi
6241
6242fi
6243echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6244echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6245CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6246
6247
6248
6249if
6250  test "x$enable_dependency_tracking" != xno \
6251  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6252  am__fastdepCXX_TRUE=
6253  am__fastdepCXX_FALSE='#'
6254else
6255  am__fastdepCXX_TRUE='#'
6256  am__fastdepCXX_FALSE=
6257fi
6258
6259
6260
6261
6262if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6263    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6264    (test "X$CXX" != "Xg++"))) ; then
6265  ac_ext=cc
6266ac_cpp='$CXXCPP $CPPFLAGS'
6267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6270echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6271echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6272if test -z "$CXXCPP"; then
6273  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6274  echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276      # Double quotes because CXXCPP needs to be expanded
6277    for CXXCPP in "$CXX -E" "/lib/cpp"
6278    do
6279      ac_preproc_ok=false
6280for ac_cxx_preproc_warn_flag in '' yes
6281do
6282  # Use a header file that comes with gcc, so configuring glibc
6283  # with a fresh cross-compiler works.
6284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6285  # <limits.h> exists even on freestanding compilers.
6286  # On the NeXT, cc -E runs the code through the compiler's parser,
6287  # not just through cpp. "Syntax error" is here to catch this case.
6288  cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h.  */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h.  */
6294#ifdef __STDC__
6295# include <limits.h>
6296#else
6297# include <assert.h>
6298#endif
6299		     Syntax error
6300_ACEOF
6301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6302  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } >/dev/null; then
6309  if test -s conftest.err; then
6310    ac_cpp_err=$ac_cxx_preproc_warn_flag
6311    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6312  else
6313    ac_cpp_err=
6314  fi
6315else
6316  ac_cpp_err=yes
6317fi
6318if test -z "$ac_cpp_err"; then
6319  :
6320else
6321  echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324  # Broken: fails on valid input.
6325continue
6326fi
6327rm -f conftest.err conftest.$ac_ext
6328
6329  # OK, works on sane cases.  Now check whether non-existent headers
6330  # can be detected and how.
6331  cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h.  */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h.  */
6337#include <ac_nonexistent.h>
6338_ACEOF
6339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6340  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6341  ac_status=$?
6342  grep -v '^ *+' conftest.er1 >conftest.err
6343  rm -f conftest.er1
6344  cat conftest.err >&5
6345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346  (exit $ac_status); } >/dev/null; then
6347  if test -s conftest.err; then
6348    ac_cpp_err=$ac_cxx_preproc_warn_flag
6349    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6350  else
6351    ac_cpp_err=
6352  fi
6353else
6354  ac_cpp_err=yes
6355fi
6356if test -z "$ac_cpp_err"; then
6357  # Broken: success on invalid input.
6358continue
6359else
6360  echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363  # Passes both tests.
6364ac_preproc_ok=:
6365break
6366fi
6367rm -f conftest.err conftest.$ac_ext
6368
6369done
6370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6371rm -f conftest.err conftest.$ac_ext
6372if $ac_preproc_ok; then
6373  break
6374fi
6375
6376    done
6377    ac_cv_prog_CXXCPP=$CXXCPP
6378
6379fi
6380  CXXCPP=$ac_cv_prog_CXXCPP
6381else
6382  ac_cv_prog_CXXCPP=$CXXCPP
6383fi
6384echo "$as_me:$LINENO: result: $CXXCPP" >&5
6385echo "${ECHO_T}$CXXCPP" >&6
6386ac_preproc_ok=false
6387for ac_cxx_preproc_warn_flag in '' yes
6388do
6389  # Use a header file that comes with gcc, so configuring glibc
6390  # with a fresh cross-compiler works.
6391  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6392  # <limits.h> exists even on freestanding compilers.
6393  # On the NeXT, cc -E runs the code through the compiler's parser,
6394  # not just through cpp. "Syntax error" is here to catch this case.
6395  cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h.  */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h.  */
6401#ifdef __STDC__
6402# include <limits.h>
6403#else
6404# include <assert.h>
6405#endif
6406		     Syntax error
6407_ACEOF
6408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6409  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6410  ac_status=$?
6411  grep -v '^ *+' conftest.er1 >conftest.err
6412  rm -f conftest.er1
6413  cat conftest.err >&5
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); } >/dev/null; then
6416  if test -s conftest.err; then
6417    ac_cpp_err=$ac_cxx_preproc_warn_flag
6418    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6419  else
6420    ac_cpp_err=
6421  fi
6422else
6423  ac_cpp_err=yes
6424fi
6425if test -z "$ac_cpp_err"; then
6426  :
6427else
6428  echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431  # Broken: fails on valid input.
6432continue
6433fi
6434rm -f conftest.err conftest.$ac_ext
6435
6436  # OK, works on sane cases.  Now check whether non-existent headers
6437  # can be detected and how.
6438  cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h.  */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h.  */
6444#include <ac_nonexistent.h>
6445_ACEOF
6446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6447  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6448  ac_status=$?
6449  grep -v '^ *+' conftest.er1 >conftest.err
6450  rm -f conftest.er1
6451  cat conftest.err >&5
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); } >/dev/null; then
6454  if test -s conftest.err; then
6455    ac_cpp_err=$ac_cxx_preproc_warn_flag
6456    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6457  else
6458    ac_cpp_err=
6459  fi
6460else
6461  ac_cpp_err=yes
6462fi
6463if test -z "$ac_cpp_err"; then
6464  # Broken: success on invalid input.
6465continue
6466else
6467  echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470  # Passes both tests.
6471ac_preproc_ok=:
6472break
6473fi
6474rm -f conftest.err conftest.$ac_ext
6475
6476done
6477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6478rm -f conftest.err conftest.$ac_ext
6479if $ac_preproc_ok; then
6480  :
6481else
6482  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6483See \`config.log' for more details." >&5
6484echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6485See \`config.log' for more details." >&2;}
6486   { (exit 1); exit 1; }; }
6487fi
6488
6489ac_ext=cc
6490ac_cpp='$CXXCPP $CPPFLAGS'
6491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6494
6495fi
6496
6497
6498ac_ext=f
6499ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6500ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6502if test -n "$ac_tool_prefix"; then
6503  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6504  do
6505    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6507echo "$as_me:$LINENO: checking for $ac_word" >&5
6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6509if test "${ac_cv_prog_F77+set}" = set; then
6510  echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512  if test -n "$F77"; then
6513  ac_cv_prog_F77="$F77" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520  for ac_exec_ext in '' $ac_executable_extensions; do
6521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527done
6528
6529fi
6530fi
6531F77=$ac_cv_prog_F77
6532if test -n "$F77"; then
6533  echo "$as_me:$LINENO: result: $F77" >&5
6534echo "${ECHO_T}$F77" >&6
6535else
6536  echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538fi
6539
6540    test -n "$F77" && break
6541  done
6542fi
6543if test -z "$F77"; then
6544  ac_ct_F77=$F77
6545  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6546do
6547  # Extract the first word of "$ac_prog", so it can be a program name with args.
6548set dummy $ac_prog; ac_word=$2
6549echo "$as_me:$LINENO: checking for $ac_word" >&5
6550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6552  echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554  if test -n "$ac_ct_F77"; then
6555  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560  IFS=$as_save_IFS
6561  test -z "$as_dir" && as_dir=.
6562  for ac_exec_ext in '' $ac_executable_extensions; do
6563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564    ac_cv_prog_ac_ct_F77="$ac_prog"
6565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566    break 2
6567  fi
6568done
6569done
6570
6571fi
6572fi
6573ac_ct_F77=$ac_cv_prog_ac_ct_F77
6574if test -n "$ac_ct_F77"; then
6575  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6576echo "${ECHO_T}$ac_ct_F77" >&6
6577else
6578  echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6
6580fi
6581
6582  test -n "$ac_ct_F77" && break
6583done
6584
6585  F77=$ac_ct_F77
6586fi
6587
6588
6589# Provide some information about the compiler.
6590echo "$as_me:6590:" \
6591     "checking for Fortran 77 compiler version" >&5
6592ac_compiler=`set X $ac_compile; echo $2`
6593{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6594  (eval $ac_compiler --version </dev/null >&5) 2>&5
6595  ac_status=$?
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); }
6598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6599  (eval $ac_compiler -v </dev/null >&5) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }
6603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6604  (eval $ac_compiler -V </dev/null >&5) 2>&5
6605  ac_status=$?
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); }
6608rm -f a.out
6609
6610# If we don't use `.F' as extension, the preprocessor is not run on the
6611# input file.  (Note that this only needs to work for GNU compilers.)
6612ac_save_ext=$ac_ext
6613ac_ext=F
6614echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6617  echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619  cat >conftest.$ac_ext <<_ACEOF
6620      program main
6621#ifndef __GNUC__
6622       choke me
6623#endif
6624
6625      end
6626_ACEOF
6627rm -f conftest.$ac_objext
6628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629  (eval $ac_compile) 2>conftest.er1
6630  ac_status=$?
6631  grep -v '^ *+' conftest.er1 >conftest.err
6632  rm -f conftest.er1
6633  cat conftest.err >&5
6634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635  (exit $ac_status); } &&
6636	 { ac_try='test -z "$ac_f77_werror_flag"
6637			 || test ! -s conftest.err'
6638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639  (eval $ac_try) 2>&5
6640  ac_status=$?
6641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642  (exit $ac_status); }; } &&
6643	 { ac_try='test -s conftest.$ac_objext'
6644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645  (eval $ac_try) 2>&5
6646  ac_status=$?
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); }; }; then
6649  ac_compiler_gnu=yes
6650else
6651  echo "$as_me: failed program was:" >&5
6652sed 's/^/| /' conftest.$ac_ext >&5
6653
6654ac_compiler_gnu=no
6655fi
6656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6658
6659fi
6660echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6661echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6662ac_ext=$ac_save_ext
6663ac_test_FFLAGS=${FFLAGS+set}
6664ac_save_FFLAGS=$FFLAGS
6665FFLAGS=
6666echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6667echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6668if test "${ac_cv_prog_f77_g+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  FFLAGS=-g
6672cat >conftest.$ac_ext <<_ACEOF
6673      program main
6674
6675      end
6676_ACEOF
6677rm -f conftest.$ac_objext
6678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679  (eval $ac_compile) 2>conftest.er1
6680  ac_status=$?
6681  grep -v '^ *+' conftest.er1 >conftest.err
6682  rm -f conftest.er1
6683  cat conftest.err >&5
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); } &&
6686	 { ac_try='test -z "$ac_f77_werror_flag"
6687			 || test ! -s conftest.err'
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); }; } &&
6693	 { ac_try='test -s conftest.$ac_objext'
6694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695  (eval $ac_try) 2>&5
6696  ac_status=$?
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); }; }; then
6699  ac_cv_prog_f77_g=yes
6700else
6701  echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704ac_cv_prog_f77_g=no
6705fi
6706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6707
6708fi
6709echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6710echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6711if test "$ac_test_FFLAGS" = set; then
6712  FFLAGS=$ac_save_FFLAGS
6713elif test $ac_cv_prog_f77_g = yes; then
6714  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6715    FFLAGS="-g -O2"
6716  else
6717    FFLAGS="-g"
6718  fi
6719else
6720  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6721    FFLAGS="-O2"
6722  else
6723    FFLAGS=
6724  fi
6725fi
6726
6727G77=`test $ac_compiler_gnu = yes && echo yes`
6728ac_ext=c
6729ac_cpp='$CPP $CPPFLAGS'
6730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733
6734
6735
6736# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6737
6738# find the maximum length of command line arguments
6739echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6740echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6741if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6742  echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744    i=0
6745  teststring="ABCD"
6746
6747  case $build_os in
6748  msdosdjgpp*)
6749    # On DJGPP, this test can blow up pretty badly due to problems in libc
6750    # (any single argument exceeding 2000 bytes causes a buffer overrun
6751    # during glob expansion).  Even if it were fixed, the result of this
6752    # check would be larger than it should be.
6753    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6754    ;;
6755
6756  gnu*)
6757    # Under GNU Hurd, this test is not required because there is
6758    # no limit to the length of command line arguments.
6759    # Libtool will interpret -1 as no limit whatsoever
6760    lt_cv_sys_max_cmd_len=-1;
6761    ;;
6762
6763  cygwin* | mingw*)
6764    # On Win9x/ME, this test blows up -- it succeeds, but takes
6765    # about 5 minutes as the teststring grows exponentially.
6766    # Worse, since 9x/ME are not pre-emptively multitasking,
6767    # you end up with a "frozen" computer, even though with patience
6768    # the test eventually succeeds (with a max line length of 256k).
6769    # Instead, let's just punt: use the minimum linelength reported by
6770    # all of the supported platforms: 8192 (on NT/2K/XP).
6771    lt_cv_sys_max_cmd_len=8192;
6772    ;;
6773
6774  amigaos*)
6775    # On AmigaOS with pdksh, this test takes hours, literally.
6776    # So we just punt and use a minimum line length of 8192.
6777    lt_cv_sys_max_cmd_len=8192;
6778    ;;
6779
6780  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6781    # This has been around since 386BSD, at least.  Likely further.
6782    if test -x /sbin/sysctl; then
6783      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6784    elif test -x /usr/sbin/sysctl; then
6785      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6786    else
6787      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6788    fi
6789    # And add a safety zone
6790    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6791    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6792    ;;
6793
6794  interix*)
6795    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6796    lt_cv_sys_max_cmd_len=196608
6797    ;;
6798
6799  osf*)
6800    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6801    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6802    # nice to cause kernel panics so lets avoid the loop below.
6803    # First set a reasonable default.
6804    lt_cv_sys_max_cmd_len=16384
6805    #
6806    if test -x /sbin/sysconfig; then
6807      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6808        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6809      esac
6810    fi
6811    ;;
6812  sco3.2v5*)
6813    lt_cv_sys_max_cmd_len=102400
6814    ;;
6815  sysv5* | sco5v6* | sysv4.2uw2*)
6816    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6817    if test -n "$kargmax"; then
6818      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6819    else
6820      lt_cv_sys_max_cmd_len=32768
6821    fi
6822    ;;
6823  *)
6824    # If test is not a shell built-in, we'll probably end up computing a
6825    # maximum length that is only half of the actual maximum length, but
6826    # we can't tell.
6827    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6828    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6829	       = "XX$teststring") >/dev/null 2>&1 &&
6830	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6831	    lt_cv_sys_max_cmd_len=$new_result &&
6832	    test $i != 17 # 1/2 MB should be enough
6833    do
6834      i=`expr $i + 1`
6835      teststring=$teststring$teststring
6836    done
6837    teststring=
6838    # Add a significant safety factor because C++ compilers can tack on massive
6839    # amounts of additional arguments before passing them to the linker.
6840    # It appears as though 1/2 is a usable value.
6841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6842    ;;
6843  esac
6844
6845fi
6846
6847if test -n $lt_cv_sys_max_cmd_len ; then
6848  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6849echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6850else
6851  echo "$as_me:$LINENO: result: none" >&5
6852echo "${ECHO_T}none" >&6
6853fi
6854
6855
6856
6857
6858# Check for command to grab the raw symbol name followed by C symbol from nm.
6859echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6860echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6861if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6862  echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864
6865# These are sane defaults that work on at least a few old systems.
6866# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6867
6868# Character class describing NM global symbol codes.
6869symcode='[BCDEGRST]'
6870
6871# Regexp to match symbols that can be accessed directly from C.
6872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6873
6874# Transform an extracted symbol line into a proper C declaration
6875lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6876
6877# Transform an extracted symbol line into symbol name and symbol address
6878lt_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'"
6879
6880# Define system-specific variables.
6881case $host_os in
6882aix*)
6883  symcode='[BCDT]'
6884  ;;
6885cygwin* | mingw* | pw32*)
6886  symcode='[ABCDGISTW]'
6887  ;;
6888hpux*) # Its linker distinguishes data from code symbols
6889  if test "$host_cpu" = ia64; then
6890    symcode='[ABCDEGRST]'
6891  fi
6892  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6893  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'"
6894  ;;
6895linux*)
6896  if test "$host_cpu" = ia64; then
6897    symcode='[ABCDGIRSTW]'
6898    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6899    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'"
6900  fi
6901  ;;
6902irix* | nonstopux*)
6903  symcode='[BCDEGRST]'
6904  ;;
6905osf*)
6906  symcode='[BCDEGQRST]'
6907  ;;
6908solaris*)
6909  symcode='[BDRT]'
6910  ;;
6911sco3.2v5*)
6912  symcode='[DT]'
6913  ;;
6914sysv4.2uw2*)
6915  symcode='[DT]'
6916  ;;
6917sysv5* | sco5v6* | unixware* | OpenUNIX*)
6918  symcode='[ABDT]'
6919  ;;
6920sysv4)
6921  symcode='[DFNSTU]'
6922  ;;
6923esac
6924
6925# Handle CRLF in mingw tool chain
6926opt_cr=
6927case $build_os in
6928mingw*)
6929  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6930  ;;
6931esac
6932
6933# If we're using GNU nm, then use its standard symbol codes.
6934case `$NM -V 2>&1` in
6935*GNU* | *'with BFD'*)
6936  symcode='[ABCDGIRSTW]' ;;
6937esac
6938
6939# Try without a prefix undercore, then with it.
6940for ac_symprfx in "" "_"; do
6941
6942  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6943  symxfrm="\\1 $ac_symprfx\\2 \\2"
6944
6945  # Write the raw and C identifiers.
6946  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6947
6948  # Check to see that the pipe works correctly.
6949  pipe_works=no
6950
6951  rm -f conftest*
6952  cat > conftest.$ac_ext <<EOF
6953#ifdef __cplusplus
6954extern "C" {
6955#endif
6956char nm_test_var;
6957void nm_test_func(){}
6958#ifdef __cplusplus
6959}
6960#endif
6961int main(){nm_test_var='a';nm_test_func();return(0);}
6962EOF
6963
6964  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965  (eval $ac_compile) 2>&5
6966  ac_status=$?
6967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968  (exit $ac_status); }; then
6969    # Now try to grab the symbols.
6970    nlist=conftest.nm
6971    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6972  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6973  ac_status=$?
6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); } && test -s "$nlist"; then
6976      # Try sorting and uniquifying the output.
6977      if sort "$nlist" | uniq > "$nlist"T; then
6978	mv -f "$nlist"T "$nlist"
6979      else
6980	rm -f "$nlist"T
6981      fi
6982
6983      # Make sure that we snagged all the symbols we need.
6984      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6985	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6986	  cat <<EOF > conftest.$ac_ext
6987#ifdef __cplusplus
6988extern "C" {
6989#endif
6990
6991EOF
6992	  # Now generate the symbol file.
6993	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6994
6995	  cat <<EOF >> conftest.$ac_ext
6996#if defined (__STDC__) && __STDC__
6997# define lt_ptr_t void *
6998#else
6999# define lt_ptr_t char *
7000# define const
7001#endif
7002
7003/* The mapping between symbol names and symbols. */
7004const struct {
7005  const char *name;
7006  lt_ptr_t address;
7007}
7008lt_preloaded_symbols[] =
7009{
7010EOF
7011	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7012	  cat <<\EOF >> conftest.$ac_ext
7013  {0, (lt_ptr_t) 0}
7014};
7015
7016#ifdef __cplusplus
7017}
7018#endif
7019EOF
7020	  # Now try linking the two files.
7021	  mv conftest.$ac_objext conftstm.$ac_objext
7022	  lt_save_LIBS="$LIBS"
7023	  lt_save_CFLAGS="$CFLAGS"
7024	  LIBS="conftstm.$ac_objext"
7025	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7026	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027  (eval $ac_link) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7031	    pipe_works=yes
7032	  fi
7033	  LIBS="$lt_save_LIBS"
7034	  CFLAGS="$lt_save_CFLAGS"
7035	else
7036	  echo "cannot find nm_test_func in $nlist" >&5
7037	fi
7038      else
7039	echo "cannot find nm_test_var in $nlist" >&5
7040      fi
7041    else
7042      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043    fi
7044  else
7045    echo "$progname: failed program was:" >&5
7046    cat conftest.$ac_ext >&5
7047  fi
7048  rm -f conftest* conftst*
7049
7050  # Do not use the global_symbol_pipe unless it works.
7051  if test "$pipe_works" = yes; then
7052    break
7053  else
7054    lt_cv_sys_global_symbol_pipe=
7055  fi
7056done
7057
7058fi
7059
7060if test -z "$lt_cv_sys_global_symbol_pipe"; then
7061  lt_cv_sys_global_symbol_to_cdecl=
7062fi
7063if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7064  echo "$as_me:$LINENO: result: failed" >&5
7065echo "${ECHO_T}failed" >&6
7066else
7067  echo "$as_me:$LINENO: result: ok" >&5
7068echo "${ECHO_T}ok" >&6
7069fi
7070
7071echo "$as_me:$LINENO: checking for objdir" >&5
7072echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7073if test "${lt_cv_objdir+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076  rm -f .libs 2>/dev/null
7077mkdir .libs 2>/dev/null
7078if test -d .libs; then
7079  lt_cv_objdir=.libs
7080else
7081  # MS-DOS does not allow filenames that begin with a dot.
7082  lt_cv_objdir=_libs
7083fi
7084rmdir .libs 2>/dev/null
7085fi
7086echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7087echo "${ECHO_T}$lt_cv_objdir" >&6
7088objdir=$lt_cv_objdir
7089
7090
7091
7092
7093
7094case $host_os in
7095aix3*)
7096  # AIX sometimes has problems with the GCC collect2 program.  For some
7097  # reason, if we set the COLLECT_NAMES environment variable, the problems
7098  # vanish in a puff of smoke.
7099  if test "X${COLLECT_NAMES+set}" != Xset; then
7100    COLLECT_NAMES=
7101    export COLLECT_NAMES
7102  fi
7103  ;;
7104esac
7105
7106# Sed substitution that helps us do robust quoting.  It backslashifies
7107# metacharacters that are still active within double-quoted strings.
7108Xsed='sed -e 1s/^X//'
7109sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7110
7111# Same as above, but do not quote variable references.
7112double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7113
7114# Sed substitution to delay expansion of an escaped shell variable in a
7115# double_quote_subst'ed string.
7116delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7117
7118# Sed substitution to avoid accidental globbing in evaled expressions
7119no_glob_subst='s/\*/\\\*/g'
7120
7121# Constants:
7122rm="rm -f"
7123
7124# Global variables:
7125default_ofile=libtool
7126can_build_shared=yes
7127
7128# All known linkers require a `.a' archive for static linking (except MSVC,
7129# which needs '.lib').
7130libext=a
7131ltmain="$ac_aux_dir/ltmain.sh"
7132ofile="$default_ofile"
7133with_gnu_ld="$lt_cv_prog_gnu_ld"
7134
7135if test -n "$ac_tool_prefix"; then
7136  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7137set dummy ${ac_tool_prefix}ar; ac_word=$2
7138echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7140if test "${ac_cv_prog_AR+set}" = set; then
7141  echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143  if test -n "$AR"; then
7144  ac_cv_prog_AR="$AR" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149  IFS=$as_save_IFS
7150  test -z "$as_dir" && as_dir=.
7151  for ac_exec_ext in '' $ac_executable_extensions; do
7152  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153    ac_cv_prog_AR="${ac_tool_prefix}ar"
7154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155    break 2
7156  fi
7157done
7158done
7159
7160fi
7161fi
7162AR=$ac_cv_prog_AR
7163if test -n "$AR"; then
7164  echo "$as_me:$LINENO: result: $AR" >&5
7165echo "${ECHO_T}$AR" >&6
7166else
7167  echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169fi
7170
7171fi
7172if test -z "$ac_cv_prog_AR"; then
7173  ac_ct_AR=$AR
7174  # Extract the first word of "ar", so it can be a program name with args.
7175set dummy ar; ac_word=$2
7176echo "$as_me:$LINENO: checking for $ac_word" >&5
7177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7178if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7179  echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181  if test -n "$ac_ct_AR"; then
7182  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187  IFS=$as_save_IFS
7188  test -z "$as_dir" && as_dir=.
7189  for ac_exec_ext in '' $ac_executable_extensions; do
7190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191    ac_cv_prog_ac_ct_AR="ar"
7192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196done
7197
7198  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7199fi
7200fi
7201ac_ct_AR=$ac_cv_prog_ac_ct_AR
7202if test -n "$ac_ct_AR"; then
7203  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7204echo "${ECHO_T}$ac_ct_AR" >&6
7205else
7206  echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208fi
7209
7210  AR=$ac_ct_AR
7211else
7212  AR="$ac_cv_prog_AR"
7213fi
7214
7215if test -n "$ac_tool_prefix"; then
7216  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7217set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7218echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220if test "${ac_cv_prog_RANLIB+set}" = set; then
7221  echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223  if test -n "$RANLIB"; then
7224  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7225else
7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229  IFS=$as_save_IFS
7230  test -z "$as_dir" && as_dir=.
7231  for ac_exec_ext in '' $ac_executable_extensions; do
7232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235    break 2
7236  fi
7237done
7238done
7239
7240fi
7241fi
7242RANLIB=$ac_cv_prog_RANLIB
7243if test -n "$RANLIB"; then
7244  echo "$as_me:$LINENO: result: $RANLIB" >&5
7245echo "${ECHO_T}$RANLIB" >&6
7246else
7247  echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
7249fi
7250
7251fi
7252if test -z "$ac_cv_prog_RANLIB"; then
7253  ac_ct_RANLIB=$RANLIB
7254  # Extract the first word of "ranlib", so it can be a program name with args.
7255set dummy ranlib; ac_word=$2
7256echo "$as_me:$LINENO: checking for $ac_word" >&5
7257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7258if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261  if test -n "$ac_ct_RANLIB"; then
7262  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267  IFS=$as_save_IFS
7268  test -z "$as_dir" && as_dir=.
7269  for ac_exec_ext in '' $ac_executable_extensions; do
7270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271    ac_cv_prog_ac_ct_RANLIB="ranlib"
7272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276done
7277
7278  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7279fi
7280fi
7281ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7282if test -n "$ac_ct_RANLIB"; then
7283  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7284echo "${ECHO_T}$ac_ct_RANLIB" >&6
7285else
7286  echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
7288fi
7289
7290  RANLIB=$ac_ct_RANLIB
7291else
7292  RANLIB="$ac_cv_prog_RANLIB"
7293fi
7294
7295if test -n "$ac_tool_prefix"; then
7296  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7297set dummy ${ac_tool_prefix}strip; ac_word=$2
7298echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300if test "${ac_cv_prog_STRIP+set}" = set; then
7301  echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303  if test -n "$STRIP"; then
7304  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311  for ac_exec_ext in '' $ac_executable_extensions; do
7312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318done
7319
7320fi
7321fi
7322STRIP=$ac_cv_prog_STRIP
7323if test -n "$STRIP"; then
7324  echo "$as_me:$LINENO: result: $STRIP" >&5
7325echo "${ECHO_T}$STRIP" >&6
7326else
7327  echo "$as_me:$LINENO: result: no" >&5
7328echo "${ECHO_T}no" >&6
7329fi
7330
7331fi
7332if test -z "$ac_cv_prog_STRIP"; then
7333  ac_ct_STRIP=$STRIP
7334  # Extract the first word of "strip", so it can be a program name with args.
7335set dummy strip; ac_word=$2
7336echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7339  echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341  if test -n "$ac_ct_STRIP"; then
7342  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349  for ac_exec_ext in '' $ac_executable_extensions; do
7350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_prog_ac_ct_STRIP="strip"
7352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356done
7357
7358  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7359fi
7360fi
7361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7362if test -n "$ac_ct_STRIP"; then
7363  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7364echo "${ECHO_T}$ac_ct_STRIP" >&6
7365else
7366  echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6
7368fi
7369
7370  STRIP=$ac_ct_STRIP
7371else
7372  STRIP="$ac_cv_prog_STRIP"
7373fi
7374
7375
7376old_CC="$CC"
7377old_CFLAGS="$CFLAGS"
7378
7379# Set sane defaults for various variables
7380test -z "$AR" && AR=ar
7381test -z "$AR_FLAGS" && AR_FLAGS=cru
7382test -z "$AS" && AS=as
7383test -z "$CC" && CC=cc
7384test -z "$LTCC" && LTCC=$CC
7385test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7386test -z "$DLLTOOL" && DLLTOOL=dlltool
7387test -z "$LD" && LD=ld
7388test -z "$LN_S" && LN_S="ln -s"
7389test -z "$MAGIC_CMD" && MAGIC_CMD=file
7390test -z "$NM" && NM=nm
7391test -z "$SED" && SED=sed
7392test -z "$OBJDUMP" && OBJDUMP=objdump
7393test -z "$RANLIB" && RANLIB=:
7394test -z "$STRIP" && STRIP=:
7395test -z "$ac_objext" && ac_objext=o
7396
7397# Determine commands to create old-style static archives.
7398old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7399old_postinstall_cmds='chmod 644 $oldlib'
7400old_postuninstall_cmds=
7401
7402if test -n "$RANLIB"; then
7403  case $host_os in
7404  openbsd*)
7405    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7406    ;;
7407  *)
7408    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7409    ;;
7410  esac
7411  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7412fi
7413
7414for cc_temp in $compiler""; do
7415  case $cc_temp in
7416    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7417    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7418    \-*) ;;
7419    *) break;;
7420  esac
7421done
7422cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7423
7424
7425# Only perform the check for file, if the check method requires it
7426case $deplibs_check_method in
7427file_magic*)
7428  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7429    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7430echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7431if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7432  echo $ECHO_N "(cached) $ECHO_C" >&6
7433else
7434  case $MAGIC_CMD in
7435[\\/*] |  ?:[\\/]*)
7436  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7437  ;;
7438*)
7439  lt_save_MAGIC_CMD="$MAGIC_CMD"
7440  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7442  for ac_dir in $ac_dummy; do
7443    IFS="$lt_save_ifs"
7444    test -z "$ac_dir" && ac_dir=.
7445    if test -f $ac_dir/${ac_tool_prefix}file; then
7446      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7447      if test -n "$file_magic_test_file"; then
7448	case $deplibs_check_method in
7449	"file_magic "*)
7450	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7451	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7453	    $EGREP "$file_magic_regex" > /dev/null; then
7454	    :
7455	  else
7456	    cat <<EOF 1>&2
7457
7458*** Warning: the command libtool uses to detect shared libraries,
7459*** $file_magic_cmd, produces output that libtool cannot recognize.
7460*** The result is that libtool may fail to recognize shared libraries
7461*** as such.  This will affect the creation of libtool libraries that
7462*** depend on shared libraries, but programs linked with such libtool
7463*** libraries will work regardless of this problem.  Nevertheless, you
7464*** may want to report the problem to your system manager and/or to
7465*** bug-libtool@gnu.org
7466
7467EOF
7468	  fi ;;
7469	esac
7470      fi
7471      break
7472    fi
7473  done
7474  IFS="$lt_save_ifs"
7475  MAGIC_CMD="$lt_save_MAGIC_CMD"
7476  ;;
7477esac
7478fi
7479
7480MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481if test -n "$MAGIC_CMD"; then
7482  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7483echo "${ECHO_T}$MAGIC_CMD" >&6
7484else
7485  echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6
7487fi
7488
7489if test -z "$lt_cv_path_MAGIC_CMD"; then
7490  if test -n "$ac_tool_prefix"; then
7491    echo "$as_me:$LINENO: checking for file" >&5
7492echo $ECHO_N "checking for file... $ECHO_C" >&6
7493if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7494  echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496  case $MAGIC_CMD in
7497[\\/*] |  ?:[\\/]*)
7498  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7499  ;;
7500*)
7501  lt_save_MAGIC_CMD="$MAGIC_CMD"
7502  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7503  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7504  for ac_dir in $ac_dummy; do
7505    IFS="$lt_save_ifs"
7506    test -z "$ac_dir" && ac_dir=.
7507    if test -f $ac_dir/file; then
7508      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7509      if test -n "$file_magic_test_file"; then
7510	case $deplibs_check_method in
7511	"file_magic "*)
7512	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7513	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7514	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7515	    $EGREP "$file_magic_regex" > /dev/null; then
7516	    :
7517	  else
7518	    cat <<EOF 1>&2
7519
7520*** Warning: the command libtool uses to detect shared libraries,
7521*** $file_magic_cmd, produces output that libtool cannot recognize.
7522*** The result is that libtool may fail to recognize shared libraries
7523*** as such.  This will affect the creation of libtool libraries that
7524*** depend on shared libraries, but programs linked with such libtool
7525*** libraries will work regardless of this problem.  Nevertheless, you
7526*** may want to report the problem to your system manager and/or to
7527*** bug-libtool@gnu.org
7528
7529EOF
7530	  fi ;;
7531	esac
7532      fi
7533      break
7534    fi
7535  done
7536  IFS="$lt_save_ifs"
7537  MAGIC_CMD="$lt_save_MAGIC_CMD"
7538  ;;
7539esac
7540fi
7541
7542MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7543if test -n "$MAGIC_CMD"; then
7544  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7545echo "${ECHO_T}$MAGIC_CMD" >&6
7546else
7547  echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549fi
7550
7551  else
7552    MAGIC_CMD=:
7553  fi
7554fi
7555
7556  fi
7557  ;;
7558esac
7559
7560enable_dlopen=no
7561enable_win32_dll=no
7562
7563# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7564if test "${enable_libtool_lock+set}" = set; then
7565  enableval="$enable_libtool_lock"
7566
7567fi;
7568test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7569
7570
7571# Check whether --with-pic or --without-pic was given.
7572if test "${with_pic+set}" = set; then
7573  withval="$with_pic"
7574  pic_mode="$withval"
7575else
7576  pic_mode=default
7577fi;
7578test -z "$pic_mode" && pic_mode=default
7579
7580# Use C for the default configuration in the libtool script
7581tagname=
7582lt_save_CC="$CC"
7583ac_ext=c
7584ac_cpp='$CPP $CPPFLAGS'
7585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588
7589
7590# Source file extension for C test sources.
7591ac_ext=c
7592
7593# Object file extension for compiled C test sources.
7594objext=o
7595objext=$objext
7596
7597# Code to be used in simple compile tests
7598lt_simple_compile_test_code="int some_variable = 0;\n"
7599
7600# Code to be used in simple link tests
7601lt_simple_link_test_code='int main(){return(0);}\n'
7602
7603
7604# If no C compiler was specified, use CC.
7605LTCC=${LTCC-"$CC"}
7606
7607# If no C compiler flags were specified, use CFLAGS.
7608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7609
7610# Allow CC to be a program name with arguments.
7611compiler=$CC
7612
7613
7614# save warnings/boilerplate of simple test code
7615ac_outfile=conftest.$ac_objext
7616printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7617eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618_lt_compiler_boilerplate=`cat conftest.err`
7619$rm conftest*
7620
7621ac_outfile=conftest.$ac_objext
7622printf "$lt_simple_link_test_code" >conftest.$ac_ext
7623eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7624_lt_linker_boilerplate=`cat conftest.err`
7625$rm conftest*
7626
7627
7628## CAVEAT EMPTOR:
7629## There is no encapsulation within the following macros, do not change
7630## the running order or otherwise move them around unless you know exactly
7631## what you are doing...
7632
7633lt_prog_compiler_no_builtin_flag=
7634
7635if test "$GCC" = yes; then
7636  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7637
7638
7639echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7640echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7641if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7642  echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644  lt_cv_prog_compiler_rtti_exceptions=no
7645  ac_outfile=conftest.$ac_objext
7646   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7647   lt_compiler_flag="-fno-rtti -fno-exceptions"
7648   # Insert the option either (1) after the last *FLAGS variable, or
7649   # (2) before a word containing "conftest.", or (3) at the end.
7650   # Note that $ac_compile itself does not contain backslashes and begins
7651   # with a dollar sign (not a hyphen), so the echo should work correctly.
7652   # The option is referenced via a variable to avoid confusing sed.
7653   lt_compile=`echo "$ac_compile" | $SED \
7654   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7655   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7656   -e 's:$: $lt_compiler_flag:'`
7657   (eval echo "\"\$as_me:7657: $lt_compile\"" >&5)
7658   (eval "$lt_compile" 2>conftest.err)
7659   ac_status=$?
7660   cat conftest.err >&5
7661   echo "$as_me:7661: \$? = $ac_status" >&5
7662   if (exit $ac_status) && test -s "$ac_outfile"; then
7663     # The compiler can only warn and ignore the option if not recognized
7664     # So say no if there are warnings other than the usual output.
7665     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7666     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7667     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7668       lt_cv_prog_compiler_rtti_exceptions=yes
7669     fi
7670   fi
7671   $rm conftest*
7672
7673fi
7674echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7675echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7676
7677if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7678    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7679else
7680    :
7681fi
7682
7683fi
7684
7685lt_prog_compiler_wl=
7686lt_prog_compiler_pic=
7687lt_prog_compiler_static=
7688
7689echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7690echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7691
7692  if test "$GCC" = yes; then
7693    lt_prog_compiler_wl='-Wl,'
7694    lt_prog_compiler_static='-static'
7695
7696    case $host_os in
7697      aix*)
7698      # All AIX code is PIC.
7699      if test "$host_cpu" = ia64; then
7700	# AIX 5 now supports IA64 processor
7701	lt_prog_compiler_static='-Bstatic'
7702      fi
7703      ;;
7704
7705    amigaos*)
7706      # FIXME: we need at least 68020 code to build shared libraries, but
7707      # adding the `-m68020' flag to GCC prevents building anything better,
7708      # like `-m68040'.
7709      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7710      ;;
7711
7712    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7713      # PIC is the default for these OSes.
7714      ;;
7715
7716    mingw* | pw32* | os2*)
7717      # This hack is so that the source file can tell whether it is being
7718      # built for inclusion in a dll (and should export symbols for example).
7719      lt_prog_compiler_pic='-DDLL_EXPORT'
7720      ;;
7721
7722    darwin* | rhapsody*)
7723      # PIC is the default on this platform
7724      # Common symbols not allowed in MH_DYLIB files
7725      lt_prog_compiler_pic='-fno-common'
7726      ;;
7727
7728    interix3*)
7729      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7730      # Instead, we relocate shared libraries at runtime.
7731      ;;
7732
7733    msdosdjgpp*)
7734      # Just because we use GCC doesn't mean we suddenly get shared libraries
7735      # on systems that don't support them.
7736      lt_prog_compiler_can_build_shared=no
7737      enable_shared=no
7738      ;;
7739
7740    sysv4*MP*)
7741      if test -d /usr/nec; then
7742	lt_prog_compiler_pic=-Kconform_pic
7743      fi
7744      ;;
7745
7746    hpux*)
7747      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7748      # not for PA HP-UX.
7749      case $host_cpu in
7750      hppa*64*|ia64*)
7751	# +Z the default
7752	;;
7753      *)
7754	lt_prog_compiler_pic='-fPIC'
7755	;;
7756      esac
7757      ;;
7758
7759    *)
7760      lt_prog_compiler_pic='-fPIC'
7761      ;;
7762    esac
7763  else
7764    # PORTME Check for flag to pass linker flags through the system compiler.
7765    case $host_os in
7766    aix*)
7767      lt_prog_compiler_wl='-Wl,'
7768      if test "$host_cpu" = ia64; then
7769	# AIX 5 now supports IA64 processor
7770	lt_prog_compiler_static='-Bstatic'
7771      else
7772	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7773      fi
7774      ;;
7775      darwin*)
7776        # PIC is the default on this platform
7777        # Common symbols not allowed in MH_DYLIB files
7778       case $cc_basename in
7779         xlc*)
7780         lt_prog_compiler_pic='-qnocommon'
7781         lt_prog_compiler_wl='-Wl,'
7782         ;;
7783       esac
7784       ;;
7785
7786    mingw* | pw32* | os2*)
7787      # This hack is so that the source file can tell whether it is being
7788      # built for inclusion in a dll (and should export symbols for example).
7789      lt_prog_compiler_pic='-DDLL_EXPORT'
7790      ;;
7791
7792    hpux9* | hpux10* | hpux11*)
7793      lt_prog_compiler_wl='-Wl,'
7794      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7795      # not for PA HP-UX.
7796      case $host_cpu in
7797      hppa*64*|ia64*)
7798	# +Z the default
7799	;;
7800      *)
7801	lt_prog_compiler_pic='+Z'
7802	;;
7803      esac
7804      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7805      lt_prog_compiler_static='${wl}-a ${wl}archive'
7806      ;;
7807
7808    irix5* | irix6* | nonstopux*)
7809      lt_prog_compiler_wl='-Wl,'
7810      # PIC (with -KPIC) is the default.
7811      lt_prog_compiler_static='-non_shared'
7812      ;;
7813
7814    newsos6)
7815      lt_prog_compiler_pic='-KPIC'
7816      lt_prog_compiler_static='-Bstatic'
7817      ;;
7818
7819    linux*)
7820      case $cc_basename in
7821      icc* | ecc*)
7822	lt_prog_compiler_wl='-Wl,'
7823	lt_prog_compiler_pic='-KPIC'
7824	lt_prog_compiler_static='-static'
7825        ;;
7826      pgcc* | pgf77* | pgf90* | pgf95*)
7827        # Portland Group compilers (*not* the Pentium gcc compiler,
7828	# which looks to be a dead project)
7829	lt_prog_compiler_wl='-Wl,'
7830	lt_prog_compiler_pic='-fpic'
7831	lt_prog_compiler_static='-Bstatic'
7832        ;;
7833      ccc*)
7834        lt_prog_compiler_wl='-Wl,'
7835        # All Alpha code is PIC.
7836        lt_prog_compiler_static='-non_shared'
7837        ;;
7838      esac
7839      ;;
7840
7841    osf3* | osf4* | osf5*)
7842      lt_prog_compiler_wl='-Wl,'
7843      # All OSF/1 code is PIC.
7844      lt_prog_compiler_static='-non_shared'
7845      ;;
7846
7847    solaris*)
7848      lt_prog_compiler_pic='-KPIC'
7849      lt_prog_compiler_static='-Bstatic'
7850      case $cc_basename in
7851      f77* | f90* | f95*)
7852	lt_prog_compiler_wl='-Qoption ld ';;
7853      *)
7854	lt_prog_compiler_wl='-Wl,';;
7855      esac
7856      ;;
7857
7858    sunos4*)
7859      lt_prog_compiler_wl='-Qoption ld '
7860      lt_prog_compiler_pic='-PIC'
7861      lt_prog_compiler_static='-Bstatic'
7862      ;;
7863
7864    sysv4 | sysv4.2uw2* | sysv4.3*)
7865      lt_prog_compiler_wl='-Wl,'
7866      lt_prog_compiler_pic='-KPIC'
7867      lt_prog_compiler_static='-Bstatic'
7868      ;;
7869
7870    sysv4*MP*)
7871      if test -d /usr/nec ;then
7872	lt_prog_compiler_pic='-Kconform_pic'
7873	lt_prog_compiler_static='-Bstatic'
7874      fi
7875      ;;
7876
7877    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7878      lt_prog_compiler_wl='-Wl,'
7879      lt_prog_compiler_pic='-KPIC'
7880      lt_prog_compiler_static='-Bstatic'
7881      ;;
7882
7883    unicos*)
7884      lt_prog_compiler_wl='-Wl,'
7885      lt_prog_compiler_can_build_shared=no
7886      ;;
7887
7888    uts4*)
7889      lt_prog_compiler_pic='-pic'
7890      lt_prog_compiler_static='-Bstatic'
7891      ;;
7892
7893    *)
7894      lt_prog_compiler_can_build_shared=no
7895      ;;
7896    esac
7897  fi
7898
7899echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7900echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7901
7902#
7903# Check to make sure the PIC flag actually works.
7904#
7905if test -n "$lt_prog_compiler_pic"; then
7906
7907echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7908echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7909if test "${lt_prog_compiler_pic_works+set}" = set; then
7910  echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912  lt_prog_compiler_pic_works=no
7913  ac_outfile=conftest.$ac_objext
7914   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7915   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7916   # Insert the option either (1) after the last *FLAGS variable, or
7917   # (2) before a word containing "conftest.", or (3) at the end.
7918   # Note that $ac_compile itself does not contain backslashes and begins
7919   # with a dollar sign (not a hyphen), so the echo should work correctly.
7920   # The option is referenced via a variable to avoid confusing sed.
7921   lt_compile=`echo "$ac_compile" | $SED \
7922   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924   -e 's:$: $lt_compiler_flag:'`
7925   (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
7926   (eval "$lt_compile" 2>conftest.err)
7927   ac_status=$?
7928   cat conftest.err >&5
7929   echo "$as_me:7929: \$? = $ac_status" >&5
7930   if (exit $ac_status) && test -s "$ac_outfile"; then
7931     # The compiler can only warn and ignore the option if not recognized
7932     # So say no if there are warnings other than the usual output.
7933     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7934     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7936       lt_prog_compiler_pic_works=yes
7937     fi
7938   fi
7939   $rm conftest*
7940
7941fi
7942echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7943echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7944
7945if test x"$lt_prog_compiler_pic_works" = xyes; then
7946    case $lt_prog_compiler_pic in
7947     "" | " "*) ;;
7948     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7949     esac
7950else
7951    lt_prog_compiler_pic=
7952     lt_prog_compiler_can_build_shared=no
7953fi
7954
7955fi
7956case $host_os in
7957  # For platforms which do not support PIC, -DPIC is meaningless:
7958  *djgpp*)
7959    lt_prog_compiler_pic=
7960    ;;
7961  *)
7962    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7963    ;;
7964esac
7965
7966#
7967# Check to make sure the static flag actually works.
7968#
7969wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7970echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7971echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7972if test "${lt_prog_compiler_static_works+set}" = set; then
7973  echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975  lt_prog_compiler_static_works=no
7976   save_LDFLAGS="$LDFLAGS"
7977   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7978   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7979   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7980     # The linker can only warn and ignore the option if not recognized
7981     # So say no if there are warnings
7982     if test -s conftest.err; then
7983       # Append any errors to the config.log.
7984       cat conftest.err 1>&5
7985       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7986       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987       if diff conftest.exp conftest.er2 >/dev/null; then
7988         lt_prog_compiler_static_works=yes
7989       fi
7990     else
7991       lt_prog_compiler_static_works=yes
7992     fi
7993   fi
7994   $rm conftest*
7995   LDFLAGS="$save_LDFLAGS"
7996
7997fi
7998echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7999echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8000
8001if test x"$lt_prog_compiler_static_works" = xyes; then
8002    :
8003else
8004    lt_prog_compiler_static=
8005fi
8006
8007
8008echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8009echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8010if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8011  echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013  lt_cv_prog_compiler_c_o=no
8014   $rm -r conftest 2>/dev/null
8015   mkdir conftest
8016   cd conftest
8017   mkdir out
8018   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8019
8020   lt_compiler_flag="-o out/conftest2.$ac_objext"
8021   # Insert the option either (1) after the last *FLAGS variable, or
8022   # (2) before a word containing "conftest.", or (3) at the end.
8023   # Note that $ac_compile itself does not contain backslashes and begins
8024   # with a dollar sign (not a hyphen), so the echo should work correctly.
8025   lt_compile=`echo "$ac_compile" | $SED \
8026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028   -e 's:$: $lt_compiler_flag:'`
8029   (eval echo "\"\$as_me:8029: $lt_compile\"" >&5)
8030   (eval "$lt_compile" 2>out/conftest.err)
8031   ac_status=$?
8032   cat out/conftest.err >&5
8033   echo "$as_me:8033: \$? = $ac_status" >&5
8034   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8035   then
8036     # The compiler can only warn and ignore the option if not recognized
8037     # So say no if there are warnings
8038     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8039     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041       lt_cv_prog_compiler_c_o=yes
8042     fi
8043   fi
8044   chmod u+w . 2>&5
8045   $rm conftest*
8046   # SGI C++ compiler will create directory out/ii_files/ for
8047   # template instantiation
8048   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8049   $rm out/* && rmdir out
8050   cd ..
8051   rmdir conftest
8052   $rm conftest*
8053
8054fi
8055echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8056echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8057
8058
8059hard_links="nottested"
8060if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8061  # do not overwrite the value of need_locks provided by the user
8062  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8063echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8064  hard_links=yes
8065  $rm conftest*
8066  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067  touch conftest.a
8068  ln conftest.a conftest.b 2>&5 || hard_links=no
8069  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8070  echo "$as_me:$LINENO: result: $hard_links" >&5
8071echo "${ECHO_T}$hard_links" >&6
8072  if test "$hard_links" = no; then
8073    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8074echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8075    need_locks=warn
8076  fi
8077else
8078  need_locks=no
8079fi
8080
8081echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8082echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8083
8084  runpath_var=
8085  allow_undefined_flag=
8086  enable_shared_with_static_runtimes=no
8087  archive_cmds=
8088  archive_expsym_cmds=
8089  old_archive_From_new_cmds=
8090  old_archive_from_expsyms_cmds=
8091  export_dynamic_flag_spec=
8092  whole_archive_flag_spec=
8093  thread_safe_flag_spec=
8094  hardcode_libdir_flag_spec=
8095  hardcode_libdir_flag_spec_ld=
8096  hardcode_libdir_separator=
8097  hardcode_direct=no
8098  hardcode_minus_L=no
8099  hardcode_shlibpath_var=unsupported
8100  link_all_deplibs=unknown
8101  hardcode_automatic=no
8102  module_cmds=
8103  module_expsym_cmds=
8104  always_export_symbols=no
8105  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8106  # include_expsyms should be a list of space-separated symbols to be *always*
8107  # included in the symbol list
8108  include_expsyms=
8109  # exclude_expsyms can be an extended regexp of symbols to exclude
8110  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8111  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8112  # as well as any symbol that contains `d'.
8113  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8114  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8115  # platforms (ab)use it in PIC code, but their linkers get confused if
8116  # the symbol is explicitly referenced.  Since portable code cannot
8117  # rely on this symbol name, it's probably fine to never include it in
8118  # preloaded symbol tables.
8119  extract_expsyms_cmds=
8120  # Just being paranoid about ensuring that cc_basename is set.
8121  for cc_temp in $compiler""; do
8122  case $cc_temp in
8123    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8124    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8125    \-*) ;;
8126    *) break;;
8127  esac
8128done
8129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8130
8131  case $host_os in
8132  cygwin* | mingw* | pw32*)
8133    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8134    # When not using gcc, we currently assume that we are using
8135    # Microsoft Visual C++.
8136    if test "$GCC" != yes; then
8137      with_gnu_ld=no
8138    fi
8139    ;;
8140  interix*)
8141    # we just hope/assume this is gcc and not c89 (= MSVC++)
8142    with_gnu_ld=yes
8143    ;;
8144  openbsd*)
8145    with_gnu_ld=no
8146    ;;
8147  esac
8148
8149  ld_shlibs=yes
8150  if test "$with_gnu_ld" = yes; then
8151    # If archive_cmds runs LD, not CC, wlarc should be empty
8152    wlarc='${wl}'
8153
8154    # Set some defaults for GNU ld with shared library support. These
8155    # are reset later if shared libraries are not supported. Putting them
8156    # here allows them to be overridden if necessary.
8157    runpath_var=LD_RUN_PATH
8158    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8159    export_dynamic_flag_spec='${wl}--export-dynamic'
8160    # ancient GNU ld didn't support --whole-archive et. al.
8161    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8162	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8163      else
8164  	whole_archive_flag_spec=
8165    fi
8166    supports_anon_versioning=no
8167    case `$LD -v 2>/dev/null` in
8168      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8169      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8170      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8171      *\ 2.11.*) ;; # other 2.11 versions
8172      *) supports_anon_versioning=yes ;;
8173    esac
8174
8175    # See if GNU ld supports shared libraries.
8176    case $host_os in
8177    aix3* | aix4* | aix5*)
8178      # On AIX/PPC, the GNU linker is very broken
8179      if test "$host_cpu" != ia64; then
8180	ld_shlibs=no
8181	cat <<EOF 1>&2
8182
8183*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8184*** to be unable to reliably create shared libraries on AIX.
8185*** Therefore, libtool is disabling shared libraries support.  If you
8186*** really care for shared libraries, you may want to modify your PATH
8187*** so that a non-GNU linker is found, and then restart.
8188
8189EOF
8190      fi
8191      ;;
8192
8193    amigaos*)
8194      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)'
8195      hardcode_libdir_flag_spec='-L$libdir'
8196      hardcode_minus_L=yes
8197
8198      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8199      # that the semantics of dynamic libraries on AmigaOS, at least up
8200      # to version 4, is to share data among multiple programs linked
8201      # with the same dynamic library.  Since this doesn't match the
8202      # behavior of shared libraries on other platforms, we can't use
8203      # them.
8204      ld_shlibs=no
8205      ;;
8206
8207    beos*)
8208      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8209	allow_undefined_flag=unsupported
8210	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8211	# support --undefined.  This deserves some investigation.  FIXME
8212	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213      else
8214	ld_shlibs=no
8215      fi
8216      ;;
8217
8218    cygwin* | mingw* | pw32*)
8219      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8220      # as there is no search path for DLLs.
8221      hardcode_libdir_flag_spec='-L$libdir'
8222      allow_undefined_flag=unsupported
8223      always_export_symbols=no
8224      enable_shared_with_static_runtimes=yes
8225      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8226
8227      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8228        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8229	# If the export-symbols file already is a .def file (1st line
8230	# is EXPORTS), use it as is; otherwise, prepend...
8231	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8232	  cp $export_symbols $output_objdir/$soname.def;
8233	else
8234	  echo EXPORTS > $output_objdir/$soname.def;
8235	  cat $export_symbols >> $output_objdir/$soname.def;
8236	fi~
8237	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8238      else
8239	ld_shlibs=no
8240      fi
8241      ;;
8242
8243    interix3*)
8244      hardcode_direct=no
8245      hardcode_shlibpath_var=no
8246      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8247      export_dynamic_flag_spec='${wl}-E'
8248      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8249      # Instead, shared libraries are loaded at an image base (0x10000000 by
8250      # default) and relocated if they conflict, which is a slow very memory
8251      # consuming and fragmenting process.  To avoid this, we pick a random,
8252      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8253      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8254      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8255      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'
8256      ;;
8257
8258    linux*)
8259      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260	tmp_addflag=
8261	case $cc_basename,$host_cpu in
8262	pgcc*)				# Portland Group C compiler
8263	  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'
8264	  tmp_addflag=' $pic_flag'
8265	  ;;
8266	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8267	  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'
8268	  tmp_addflag=' $pic_flag -Mnomain' ;;
8269	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8270	  tmp_addflag=' -i_dynamic' ;;
8271	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8272	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8273	ifc* | ifort*)			# Intel Fortran compiler
8274	  tmp_addflag=' -nofor_main' ;;
8275	esac
8276	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277
8278	if test $supports_anon_versioning = yes; then
8279	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8280  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8281  $echo "local: *; };" >> $output_objdir/$libname.ver~
8282	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8283	fi
8284      else
8285	ld_shlibs=no
8286      fi
8287      ;;
8288
8289    netbsd*)
8290      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8291	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8292	wlarc=
8293      else
8294	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296      fi
8297      ;;
8298
8299    solaris*)
8300      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8301	ld_shlibs=no
8302	cat <<EOF 1>&2
8303
8304*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8305*** create shared libraries on Solaris systems.  Therefore, libtool
8306*** is disabling shared libraries support.  We urge you to upgrade GNU
8307*** binutils to release 2.9.1 or newer.  Another option is to modify
8308*** your PATH or compiler configuration so that the native linker is
8309*** used, and then restart.
8310
8311EOF
8312      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8313	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315      else
8316	ld_shlibs=no
8317      fi
8318      ;;
8319
8320    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8321      case `$LD -v 2>&1` in
8322        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8323	ld_shlibs=no
8324	cat <<_LT_EOF 1>&2
8325
8326*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8327*** reliably create shared libraries on SCO systems.  Therefore, libtool
8328*** is disabling shared libraries support.  We urge you to upgrade GNU
8329*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8330*** your PATH or compiler configuration so that the native linker is
8331*** used, and then restart.
8332
8333_LT_EOF
8334	;;
8335	*)
8336	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8338	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8339	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8340	  else
8341	    ld_shlibs=no
8342	  fi
8343	;;
8344      esac
8345      ;;
8346
8347    sunos4*)
8348      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8349      wlarc=
8350      hardcode_direct=yes
8351      hardcode_shlibpath_var=no
8352      ;;
8353
8354    *)
8355      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8356	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8358      else
8359	ld_shlibs=no
8360      fi
8361      ;;
8362    esac
8363
8364    if test "$ld_shlibs" = no; then
8365      runpath_var=
8366      hardcode_libdir_flag_spec=
8367      export_dynamic_flag_spec=
8368      whole_archive_flag_spec=
8369    fi
8370  else
8371    # PORTME fill in a description of your system's linker (not GNU ld)
8372    case $host_os in
8373    aix3*)
8374      allow_undefined_flag=unsupported
8375      always_export_symbols=yes
8376      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'
8377      # Note: this linker hardcodes the directories in LIBPATH if there
8378      # are no directories specified by -L.
8379      hardcode_minus_L=yes
8380      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8381	# Neither direct hardcoding nor static linking is supported with a
8382	# broken collect2.
8383	hardcode_direct=unsupported
8384      fi
8385      ;;
8386
8387    aix4* | aix5*)
8388      if test "$host_cpu" = ia64; then
8389	# On IA64, the linker does run time linking by default, so we don't
8390	# have to do anything special.
8391	aix_use_runtimelinking=no
8392	exp_sym_flag='-Bexport'
8393	no_entry_flag=""
8394      else
8395	# If we're using GNU nm, then we don't want the "-C" option.
8396	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8397	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8398	  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'
8399	else
8400	  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'
8401	fi
8402	aix_use_runtimelinking=no
8403
8404	# Test if we are trying to use run time linking or normal
8405	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8406	# need to do runtime linking.
8407	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8408	  for ld_flag in $LDFLAGS; do
8409  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8410  	    aix_use_runtimelinking=yes
8411  	    break
8412  	  fi
8413	  done
8414	  ;;
8415	esac
8416
8417	exp_sym_flag='-bexport'
8418	no_entry_flag='-bnoentry'
8419      fi
8420
8421      # When large executables or shared objects are built, AIX ld can
8422      # have problems creating the table of contents.  If linking a library
8423      # or program results in "error TOC overflow" add -mminimal-toc to
8424      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8425      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8426
8427      archive_cmds=''
8428      hardcode_direct=yes
8429      hardcode_libdir_separator=':'
8430      link_all_deplibs=yes
8431
8432      if test "$GCC" = yes; then
8433	case $host_os in aix4.[012]|aix4.[012].*)
8434	# We only want to do this on AIX 4.2 and lower, the check
8435	# below for broken collect2 doesn't work under 4.3+
8436	  collect2name=`${CC} -print-prog-name=collect2`
8437	  if test -f "$collect2name" && \
8438  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8439	  then
8440  	  # We have reworked collect2
8441  	  hardcode_direct=yes
8442	  else
8443  	  # We have old collect2
8444  	  hardcode_direct=unsupported
8445  	  # It fails to find uninstalled libraries when the uninstalled
8446  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8447  	  # to unsupported forces relinking
8448  	  hardcode_minus_L=yes
8449  	  hardcode_libdir_flag_spec='-L$libdir'
8450  	  hardcode_libdir_separator=
8451	  fi
8452	  ;;
8453	esac
8454	shared_flag='-shared'
8455	if test "$aix_use_runtimelinking" = yes; then
8456	  shared_flag="$shared_flag "'${wl}-G'
8457	fi
8458      else
8459	# not using gcc
8460	if test "$host_cpu" = ia64; then
8461  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8462  	# chokes on -Wl,-G. The following line is correct:
8463	  shared_flag='-G'
8464	else
8465	  if test "$aix_use_runtimelinking" = yes; then
8466	    shared_flag='${wl}-G'
8467	  else
8468	    shared_flag='${wl}-bM:SRE'
8469	  fi
8470	fi
8471      fi
8472
8473      # It seems that -bexpall does not export symbols beginning with
8474      # underscore (_), so it is better to generate a list of symbols to export.
8475      always_export_symbols=yes
8476      if test "$aix_use_runtimelinking" = yes; then
8477	# Warning - without using the other runtime loading flags (-brtl),
8478	# -berok will link without error, but may produce a broken library.
8479	allow_undefined_flag='-berok'
8480       # Determine the default libpath from the value encoded in an empty executable.
8481       cat >conftest.$ac_ext <<_ACEOF
8482/* confdefs.h.  */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h.  */
8487
8488int
8489main ()
8490{
8491
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496rm -f conftest.$ac_objext conftest$ac_exeext
8497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498  (eval $ac_link) 2>conftest.er1
8499  ac_status=$?
8500  grep -v '^ *+' conftest.er1 >conftest.err
8501  rm -f conftest.er1
8502  cat conftest.err >&5
8503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504  (exit $ac_status); } &&
8505	 { ac_try='test -z "$ac_c_werror_flag"
8506			 || test ! -s conftest.err'
8507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508  (eval $ac_try) 2>&5
8509  ac_status=$?
8510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511  (exit $ac_status); }; } &&
8512	 { ac_try='test -s conftest$ac_exeext'
8513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514  (eval $ac_try) 2>&5
8515  ac_status=$?
8516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517  (exit $ac_status); }; }; then
8518
8519aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8520}'`
8521# Check for a 64-bit object if we didn't find anything.
8522if 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; }
8523}'`; fi
8524else
8525  echo "$as_me: failed program was:" >&5
8526sed 's/^/| /' conftest.$ac_ext >&5
8527
8528fi
8529rm -f conftest.err conftest.$ac_objext \
8530      conftest$ac_exeext conftest.$ac_ext
8531if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8532
8533       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8534	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"
8535       else
8536	if test "$host_cpu" = ia64; then
8537	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8538	  allow_undefined_flag="-z nodefs"
8539	  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"
8540	else
8541	 # Determine the default libpath from the value encoded in an empty executable.
8542	 cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h.  */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h.  */
8548
8549int
8550main ()
8551{
8552
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext conftest$ac_exeext
8558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559  (eval $ac_link) 2>conftest.er1
8560  ac_status=$?
8561  grep -v '^ *+' conftest.er1 >conftest.err
8562  rm -f conftest.er1
8563  cat conftest.err >&5
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); } &&
8566	 { ac_try='test -z "$ac_c_werror_flag"
8567			 || test ! -s conftest.err'
8568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569  (eval $ac_try) 2>&5
8570  ac_status=$?
8571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); }; } &&
8573	 { ac_try='test -s conftest$ac_exeext'
8574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575  (eval $ac_try) 2>&5
8576  ac_status=$?
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); }; }; then
8579
8580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8581}'`
8582# Check for a 64-bit object if we didn't find anything.
8583if 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; }
8584}'`; fi
8585else
8586  echo "$as_me: failed program was:" >&5
8587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589fi
8590rm -f conftest.err conftest.$ac_objext \
8591      conftest$ac_exeext conftest.$ac_ext
8592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8593
8594	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8595	  # Warning - without using the other run time loading flags,
8596	  # -berok will link without error, but may produce a broken library.
8597	  no_undefined_flag=' ${wl}-bernotok'
8598	  allow_undefined_flag=' ${wl}-berok'
8599	  # Exported symbols can be pulled into shared objects from archives
8600	  whole_archive_flag_spec='$convenience'
8601	  archive_cmds_need_lc=yes
8602	  # This is similar to how AIX traditionally builds its shared libraries.
8603	  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'
8604	fi
8605      fi
8606      ;;
8607
8608    amigaos*)
8609      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)'
8610      hardcode_libdir_flag_spec='-L$libdir'
8611      hardcode_minus_L=yes
8612      # see comment about different semantics on the GNU ld section
8613      ld_shlibs=no
8614      ;;
8615
8616    bsdi[45]*)
8617      export_dynamic_flag_spec=-rdynamic
8618      ;;
8619
8620    cygwin* | mingw* | pw32*)
8621      # When not using gcc, we currently assume that we are using
8622      # Microsoft Visual C++.
8623      # hardcode_libdir_flag_spec is actually meaningless, as there is
8624      # no search path for DLLs.
8625      hardcode_libdir_flag_spec=' '
8626      allow_undefined_flag=unsupported
8627      # Tell ltmain to make .lib files, not .a files.
8628      libext=lib
8629      # Tell ltmain to make .dll files, not .so files.
8630      shrext_cmds=".dll"
8631      # FIXME: Setting linknames here is a bad hack.
8632      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8633      # The linker will automatically build a .lib file if we build a DLL.
8634      old_archive_From_new_cmds='true'
8635      # FIXME: Should let the user specify the lib program.
8636      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8637      fix_srcfile_path='`cygpath -w "$srcfile"`'
8638      enable_shared_with_static_runtimes=yes
8639      ;;
8640
8641    darwin* | rhapsody*)
8642      case $host_os in
8643        rhapsody* | darwin1.[012])
8644         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8645         ;;
8646       *) # Darwin 1.3 on
8647         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8648           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8649         else
8650           case ${MACOSX_DEPLOYMENT_TARGET} in
8651             10.[012])
8652               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8653               ;;
8654             10.*)
8655               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8656               ;;
8657           esac
8658         fi
8659         ;;
8660      esac
8661      archive_cmds_need_lc=no
8662      hardcode_direct=no
8663      hardcode_automatic=yes
8664      hardcode_shlibpath_var=unsupported
8665      whole_archive_flag_spec=''
8666      link_all_deplibs=yes
8667    if test "$GCC" = yes ; then
8668    	output_verbose_link_cmd='echo'
8669        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8670      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8671      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8672      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}'
8673      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}'
8674    else
8675      case $cc_basename in
8676        xlc*)
8677         output_verbose_link_cmd='echo'
8678         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8679         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8680          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8681         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}'
8682          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}'
8683          ;;
8684       *)
8685         ld_shlibs=no
8686          ;;
8687      esac
8688    fi
8689      ;;
8690
8691    dgux*)
8692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8693      hardcode_libdir_flag_spec='-L$libdir'
8694      hardcode_shlibpath_var=no
8695      ;;
8696
8697    freebsd1*)
8698      ld_shlibs=no
8699      ;;
8700
8701    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8702    # support.  Future versions do this automatically, but an explicit c++rt0.o
8703    # does not break anything, and helps significantly (at the cost of a little
8704    # extra space).
8705    freebsd2.2*)
8706      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8707      hardcode_libdir_flag_spec='-R$libdir'
8708      hardcode_direct=yes
8709      hardcode_shlibpath_var=no
8710      ;;
8711
8712    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8713    freebsd2*)
8714      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8715      hardcode_direct=yes
8716      hardcode_minus_L=yes
8717      hardcode_shlibpath_var=no
8718      ;;
8719
8720    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8721    freebsd* | kfreebsd*-gnu | dragonfly*)
8722      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8723      hardcode_libdir_flag_spec='-R$libdir'
8724      hardcode_direct=yes
8725      hardcode_shlibpath_var=no
8726      ;;
8727
8728    hpux9*)
8729      if test "$GCC" = yes; then
8730	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'
8731      else
8732	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'
8733      fi
8734      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8735      hardcode_libdir_separator=:
8736      hardcode_direct=yes
8737
8738      # hardcode_minus_L: Not really in the search PATH,
8739      # but as the default location of the library.
8740      hardcode_minus_L=yes
8741      export_dynamic_flag_spec='${wl}-E'
8742      ;;
8743
8744    hpux10*)
8745      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8746	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8747      else
8748	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8749      fi
8750      if test "$with_gnu_ld" = no; then
8751	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8752	hardcode_libdir_separator=:
8753
8754	hardcode_direct=yes
8755	export_dynamic_flag_spec='${wl}-E'
8756
8757	# hardcode_minus_L: Not really in the search PATH,
8758	# but as the default location of the library.
8759	hardcode_minus_L=yes
8760      fi
8761      ;;
8762
8763    hpux11*)
8764      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8765	case $host_cpu in
8766	hppa*64*)
8767	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8768	  ;;
8769	ia64*)
8770	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8771	  ;;
8772	*)
8773	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8774	  ;;
8775	esac
8776      else
8777	case $host_cpu in
8778	hppa*64*)
8779	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780	  ;;
8781	ia64*)
8782	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8783	  ;;
8784	*)
8785	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8786	  ;;
8787	esac
8788      fi
8789      if test "$with_gnu_ld" = no; then
8790	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8791	hardcode_libdir_separator=:
8792
8793	case $host_cpu in
8794	hppa*64*|ia64*)
8795	  hardcode_libdir_flag_spec_ld='+b $libdir'
8796	  hardcode_direct=no
8797	  hardcode_shlibpath_var=no
8798	  ;;
8799	*)
8800	  hardcode_direct=yes
8801	  export_dynamic_flag_spec='${wl}-E'
8802
8803	  # hardcode_minus_L: Not really in the search PATH,
8804	  # but as the default location of the library.
8805	  hardcode_minus_L=yes
8806	  ;;
8807	esac
8808      fi
8809      ;;
8810
8811    irix5* | irix6* | nonstopux*)
8812      if test "$GCC" = yes; then
8813	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'
8814      else
8815	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'
8816	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8817      fi
8818      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819      hardcode_libdir_separator=:
8820      link_all_deplibs=yes
8821      ;;
8822
8823    netbsd*)
8824      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8825	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8826      else
8827	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8828      fi
8829      hardcode_libdir_flag_spec='-R$libdir'
8830      hardcode_direct=yes
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    newsos6)
8835      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836      hardcode_direct=yes
8837      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8838      hardcode_libdir_separator=:
8839      hardcode_shlibpath_var=no
8840      ;;
8841
8842    openbsd*)
8843      hardcode_direct=yes
8844      hardcode_shlibpath_var=no
8845      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8846	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8847	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8848	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8849	export_dynamic_flag_spec='${wl}-E'
8850      else
8851       case $host_os in
8852	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8853	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854	   hardcode_libdir_flag_spec='-R$libdir'
8855	   ;;
8856	 *)
8857	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8858	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8859	   ;;
8860       esac
8861      fi
8862      ;;
8863
8864    os2*)
8865      hardcode_libdir_flag_spec='-L$libdir'
8866      hardcode_minus_L=yes
8867      allow_undefined_flag=unsupported
8868      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'
8869      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8870      ;;
8871
8872    osf3*)
8873      if test "$GCC" = yes; then
8874	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8875	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'
8876      else
8877	allow_undefined_flag=' -expect_unresolved \*'
8878	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'
8879      fi
8880      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881      hardcode_libdir_separator=:
8882      ;;
8883
8884    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8885      if test "$GCC" = yes; then
8886	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8887	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'
8888	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889      else
8890	allow_undefined_flag=' -expect_unresolved \*'
8891	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'
8892	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8893	$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'
8894
8895	# Both c and cxx compiler support -rpath directly
8896	hardcode_libdir_flag_spec='-rpath $libdir'
8897      fi
8898      hardcode_libdir_separator=:
8899      ;;
8900
8901    solaris*)
8902      no_undefined_flag=' -z text'
8903      if test "$GCC" = yes; then
8904	wlarc='${wl}'
8905	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8907	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8908      else
8909	wlarc=''
8910	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8912  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8913      fi
8914      hardcode_libdir_flag_spec='-R$libdir'
8915      hardcode_shlibpath_var=no
8916      case $host_os in
8917      solaris2.[0-5] | solaris2.[0-5].*) ;;
8918      *)
8919 	# The compiler driver will combine linker options so we
8920 	# cannot just pass the convience library names through
8921 	# without $wl, iff we do not link with $LD.
8922 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8923 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8924 	case $wlarc in
8925 	'')
8926 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8927 	*)
8928 	  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' ;;
8929 	esac ;;
8930      esac
8931      link_all_deplibs=yes
8932      ;;
8933
8934    sunos4*)
8935      if test "x$host_vendor" = xsequent; then
8936	# Use $CC to link under sequent, because it throws in some extra .o
8937	# files that make .init and .fini sections work.
8938	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8939      else
8940	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8941      fi
8942      hardcode_libdir_flag_spec='-L$libdir'
8943      hardcode_direct=yes
8944      hardcode_minus_L=yes
8945      hardcode_shlibpath_var=no
8946      ;;
8947
8948    sysv4)
8949      case $host_vendor in
8950	sni)
8951	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952	  hardcode_direct=yes # is this really true???
8953	;;
8954	siemens)
8955	  ## LD is ld it makes a PLAMLIB
8956	  ## CC just makes a GrossModule.
8957	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8958	  reload_cmds='$CC -r -o $output$reload_objs'
8959	  hardcode_direct=no
8960        ;;
8961	motorola)
8962	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8964	;;
8965      esac
8966      runpath_var='LD_RUN_PATH'
8967      hardcode_shlibpath_var=no
8968      ;;
8969
8970    sysv4.3*)
8971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972      hardcode_shlibpath_var=no
8973      export_dynamic_flag_spec='-Bexport'
8974      ;;
8975
8976    sysv4*MP*)
8977      if test -d /usr/nec; then
8978	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979	hardcode_shlibpath_var=no
8980	runpath_var=LD_RUN_PATH
8981	hardcode_runpath_var=yes
8982	ld_shlibs=yes
8983      fi
8984      ;;
8985
8986    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8987      no_undefined_flag='${wl}-z,text'
8988      archive_cmds_need_lc=no
8989      hardcode_shlibpath_var=no
8990      runpath_var='LD_RUN_PATH'
8991
8992      if test "$GCC" = yes; then
8993	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8994	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8995      else
8996	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8997	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8998      fi
8999      ;;
9000
9001    sysv5* | sco3.2v5* | sco5v6*)
9002      # Note: We can NOT use -z defs as we might desire, because we do not
9003      # link with -lc, and that would cause any symbols used from libc to
9004      # always be unresolved, which means just about no library would
9005      # ever link correctly.  If we're not using GNU ld we use -z text
9006      # though, which does catch some bad symbols but isn't as heavy-handed
9007      # as -z defs.
9008      no_undefined_flag='${wl}-z,text'
9009      allow_undefined_flag='${wl}-z,nodefs'
9010      archive_cmds_need_lc=no
9011      hardcode_shlibpath_var=no
9012      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9013      hardcode_libdir_separator=':'
9014      link_all_deplibs=yes
9015      export_dynamic_flag_spec='${wl}-Bexport'
9016      runpath_var='LD_RUN_PATH'
9017
9018      if test "$GCC" = yes; then
9019	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9020	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021      else
9022	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024      fi
9025      ;;
9026
9027    uts4*)
9028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029      hardcode_libdir_flag_spec='-L$libdir'
9030      hardcode_shlibpath_var=no
9031      ;;
9032
9033    *)
9034      ld_shlibs=no
9035      ;;
9036    esac
9037  fi
9038
9039echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9040echo "${ECHO_T}$ld_shlibs" >&6
9041test "$ld_shlibs" = no && can_build_shared=no
9042
9043#
9044# Do we need to explicitly link libc?
9045#
9046case "x$archive_cmds_need_lc" in
9047x|xyes)
9048  # Assume -lc should be added
9049  archive_cmds_need_lc=yes
9050
9051  if test "$enable_shared" = yes && test "$GCC" = yes; then
9052    case $archive_cmds in
9053    *'~'*)
9054      # FIXME: we may have to deal with multi-command sequences.
9055      ;;
9056    '$CC '*)
9057      # Test whether the compiler implicitly links with -lc since on some
9058      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9059      # to ld, don't add -lc before -lgcc.
9060      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9061echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9062      $rm conftest*
9063      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9064
9065      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066  (eval $ac_compile) 2>&5
9067  ac_status=$?
9068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069  (exit $ac_status); } 2>conftest.err; then
9070        soname=conftest
9071        lib=conftest
9072        libobjs=conftest.$ac_objext
9073        deplibs=
9074        wl=$lt_prog_compiler_wl
9075	pic_flag=$lt_prog_compiler_pic
9076        compiler_flags=-v
9077        linker_flags=-v
9078        verstring=
9079        output_objdir=.
9080        libname=conftest
9081        lt_save_allow_undefined_flag=$allow_undefined_flag
9082        allow_undefined_flag=
9083        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9084  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9085  ac_status=$?
9086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087  (exit $ac_status); }
9088        then
9089	  archive_cmds_need_lc=no
9090        else
9091	  archive_cmds_need_lc=yes
9092        fi
9093        allow_undefined_flag=$lt_save_allow_undefined_flag
9094      else
9095        cat conftest.err 1>&5
9096      fi
9097      $rm conftest*
9098      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9099echo "${ECHO_T}$archive_cmds_need_lc" >&6
9100      ;;
9101    esac
9102  fi
9103  ;;
9104esac
9105
9106echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9107echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9108library_names_spec=
9109libname_spec='lib$name'
9110soname_spec=
9111shrext_cmds=".so"
9112postinstall_cmds=
9113postuninstall_cmds=
9114finish_cmds=
9115finish_eval=
9116shlibpath_var=
9117shlibpath_overrides_runpath=unknown
9118version_type=none
9119dynamic_linker="$host_os ld.so"
9120sys_lib_dlsearch_path_spec="/lib /usr/lib"
9121if test "$GCC" = yes; then
9122  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9124    # if the path contains ";" then we assume it to be the separator
9125    # otherwise default to the standard path separator (i.e. ":") - it is
9126    # assumed that no part of a normal pathname contains ";" but that should
9127    # okay in the real world where ";" in dirpaths is itself problematic.
9128    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9129  else
9130    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9131  fi
9132else
9133  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9134fi
9135need_lib_prefix=unknown
9136hardcode_into_libs=no
9137
9138# when you set need_version to no, make sure it does not cause -set_version
9139# flags to be left without arguments
9140need_version=unknown
9141
9142case $host_os in
9143aix3*)
9144  version_type=linux
9145  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9146  shlibpath_var=LIBPATH
9147
9148  # AIX 3 has no versioning support, so we append a major version to the name.
9149  soname_spec='${libname}${release}${shared_ext}$major'
9150  ;;
9151
9152aix4* | aix5*)
9153  version_type=linux
9154  need_lib_prefix=no
9155  need_version=no
9156  hardcode_into_libs=yes
9157  if test "$host_cpu" = ia64; then
9158    # AIX 5 supports IA64
9159    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9160    shlibpath_var=LD_LIBRARY_PATH
9161  else
9162    # With GCC up to 2.95.x, collect2 would create an import file
9163    # for dependence libraries.  The import file would start with
9164    # the line `#! .'.  This would cause the generated library to
9165    # depend on `.', always an invalid library.  This was fixed in
9166    # development snapshots of GCC prior to 3.0.
9167    case $host_os in
9168      aix4 | aix4.[01] | aix4.[01].*)
9169      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9170	   echo ' yes '
9171	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9172	:
9173      else
9174	can_build_shared=no
9175      fi
9176      ;;
9177    esac
9178    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9179    # soname into executable. Probably we can add versioning support to
9180    # collect2, so additional links can be useful in future.
9181    if test "$aix_use_runtimelinking" = yes; then
9182      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9183      # instead of lib<name>.a to let people know that these are not
9184      # typical AIX shared libraries.
9185      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186    else
9187      # We preserve .a as extension for shared libraries through AIX4.2
9188      # and later when we are not doing run time linking.
9189      library_names_spec='${libname}${release}.a $libname.a'
9190      soname_spec='${libname}${release}${shared_ext}$major'
9191    fi
9192    shlibpath_var=LIBPATH
9193  fi
9194  ;;
9195
9196amigaos*)
9197  library_names_spec='$libname.ixlibrary $libname.a'
9198  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9199  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'
9200  ;;
9201
9202beos*)
9203  library_names_spec='${libname}${shared_ext}'
9204  dynamic_linker="$host_os ld.so"
9205  shlibpath_var=LIBRARY_PATH
9206  ;;
9207
9208bsdi[45]*)
9209  version_type=linux
9210  need_version=no
9211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212  soname_spec='${libname}${release}${shared_ext}$major'
9213  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9214  shlibpath_var=LD_LIBRARY_PATH
9215  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9216  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9217  # the default ld.so.conf also contains /usr/contrib/lib and
9218  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9219  # libtool to hard-code these into programs
9220  ;;
9221
9222cygwin* | mingw* | pw32*)
9223  version_type=windows
9224  shrext_cmds=".dll"
9225  need_version=no
9226  need_lib_prefix=no
9227
9228  case $GCC,$host_os in
9229  yes,cygwin* | yes,mingw* | yes,pw32*)
9230    library_names_spec='$libname.dll.a'
9231    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9232    postinstall_cmds='base_file=`basename \${file}`~
9233      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9234      dldir=$destdir/`dirname \$dlpath`~
9235      test -d \$dldir || mkdir -p \$dldir~
9236      $install_prog $dir/$dlname \$dldir/$dlname~
9237      chmod a+x \$dldir/$dlname'
9238    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9239      dlpath=$dir/\$dldll~
9240       $rm \$dlpath'
9241    shlibpath_overrides_runpath=yes
9242
9243    case $host_os in
9244    cygwin*)
9245      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9246      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9248      ;;
9249    mingw*)
9250      # MinGW DLLs use traditional 'lib' prefix
9251      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9252      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9253      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9254        # It is most probably a Windows format PATH printed by
9255        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9256        # path with ; separators, and with drive letters. We can handle the
9257        # drive letters (cygwin fileutils understands them), so leave them,
9258        # especially as we might pass files found there to a mingw objdump,
9259        # which wouldn't understand a cygwinified path. Ahh.
9260        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9261      else
9262        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9263      fi
9264      ;;
9265    pw32*)
9266      # pw32 DLLs use 'pw' prefix rather than 'lib'
9267      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9268      ;;
9269    esac
9270    ;;
9271
9272  *)
9273    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9274    ;;
9275  esac
9276  dynamic_linker='Win32 ld.exe'
9277  # FIXME: first we should search . and the directory the executable is in
9278  shlibpath_var=PATH
9279  ;;
9280
9281darwin* | rhapsody*)
9282  dynamic_linker="$host_os dyld"
9283  version_type=darwin
9284  need_lib_prefix=no
9285  need_version=no
9286  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9287  soname_spec='${libname}${release}${major}$shared_ext'
9288  shlibpath_overrides_runpath=yes
9289  shlibpath_var=DYLD_LIBRARY_PATH
9290  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9291  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9292  if test "$GCC" = yes; then
9293    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"`
9294  else
9295    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9296  fi
9297  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9298  ;;
9299
9300dgux*)
9301  version_type=linux
9302  need_lib_prefix=no
9303  need_version=no
9304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9305  soname_spec='${libname}${release}${shared_ext}$major'
9306  shlibpath_var=LD_LIBRARY_PATH
9307  ;;
9308
9309freebsd1*)
9310  dynamic_linker=no
9311  ;;
9312
9313kfreebsd*-gnu)
9314  version_type=linux
9315  need_lib_prefix=no
9316  need_version=no
9317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9318  soname_spec='${libname}${release}${shared_ext}$major'
9319  shlibpath_var=LD_LIBRARY_PATH
9320  shlibpath_overrides_runpath=no
9321  hardcode_into_libs=yes
9322  dynamic_linker='GNU ld.so'
9323  ;;
9324
9325freebsd* | dragonfly*)
9326  # DragonFly does not have aout.  When/if they implement a new
9327  # versioning mechanism, adjust this.
9328  if test -x /usr/bin/objformat; then
9329    objformat=`/usr/bin/objformat`
9330  else
9331    case $host_os in
9332    freebsd[123]*) objformat=aout ;;
9333    *) objformat=elf ;;
9334    esac
9335  fi
9336  version_type=freebsd-$objformat
9337  case $version_type in
9338    freebsd-elf*)
9339      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340      need_version=no
9341      need_lib_prefix=no
9342      ;;
9343    freebsd-*)
9344      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9345      need_version=yes
9346      ;;
9347  esac
9348  shlibpath_var=LD_LIBRARY_PATH
9349  case $host_os in
9350  freebsd2*)
9351    shlibpath_overrides_runpath=yes
9352    ;;
9353  freebsd3.[01]* | freebsdelf3.[01]*)
9354    shlibpath_overrides_runpath=yes
9355    hardcode_into_libs=yes
9356    ;;
9357  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9358  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9359    shlibpath_overrides_runpath=no
9360    hardcode_into_libs=yes
9361    ;;
9362  freebsd*) # from 4.6 on
9363    shlibpath_overrides_runpath=yes
9364    hardcode_into_libs=yes
9365    ;;
9366  esac
9367  ;;
9368
9369gnu*)
9370  version_type=linux
9371  need_lib_prefix=no
9372  need_version=no
9373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9374  soname_spec='${libname}${release}${shared_ext}$major'
9375  shlibpath_var=LD_LIBRARY_PATH
9376  hardcode_into_libs=yes
9377  ;;
9378
9379hpux9* | hpux10* | hpux11*)
9380  # Give a soname corresponding to the major version so that dld.sl refuses to
9381  # link against other versions.
9382  version_type=sunos
9383  need_lib_prefix=no
9384  need_version=no
9385  case $host_cpu in
9386  ia64*)
9387    shrext_cmds='.so'
9388    hardcode_into_libs=yes
9389    dynamic_linker="$host_os dld.so"
9390    shlibpath_var=LD_LIBRARY_PATH
9391    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393    soname_spec='${libname}${release}${shared_ext}$major'
9394    if test "X$HPUX_IA64_MODE" = X32; then
9395      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9396    else
9397      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9398    fi
9399    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9400    ;;
9401   hppa*64*)
9402     shrext_cmds='.sl'
9403     hardcode_into_libs=yes
9404     dynamic_linker="$host_os dld.sl"
9405     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9406     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408     soname_spec='${libname}${release}${shared_ext}$major'
9409     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9411     ;;
9412   *)
9413    shrext_cmds='.sl'
9414    dynamic_linker="$host_os dld.sl"
9415    shlibpath_var=SHLIB_PATH
9416    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418    soname_spec='${libname}${release}${shared_ext}$major'
9419    ;;
9420  esac
9421  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9422  postinstall_cmds='chmod 555 $lib'
9423  ;;
9424
9425interix3*)
9426  version_type=linux
9427  need_lib_prefix=no
9428  need_version=no
9429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430  soname_spec='${libname}${release}${shared_ext}$major'
9431  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  shlibpath_overrides_runpath=no
9434  hardcode_into_libs=yes
9435  ;;
9436
9437irix5* | irix6* | nonstopux*)
9438  case $host_os in
9439    nonstopux*) version_type=nonstopux ;;
9440    *)
9441	if test "$lt_cv_prog_gnu_ld" = yes; then
9442		version_type=linux
9443	else
9444		version_type=irix
9445	fi ;;
9446  esac
9447  need_lib_prefix=no
9448  need_version=no
9449  soname_spec='${libname}${release}${shared_ext}$major'
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9451  case $host_os in
9452  irix5* | nonstopux*)
9453    libsuff= shlibsuff=
9454    ;;
9455  *)
9456    case $LD in # libtool.m4 will add one of these switches to LD
9457    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9458      libsuff= shlibsuff= libmagic=32-bit;;
9459    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9460      libsuff=32 shlibsuff=N32 libmagic=N32;;
9461    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9462      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9463    *) libsuff= shlibsuff= libmagic=never-match;;
9464    esac
9465    ;;
9466  esac
9467  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9468  shlibpath_overrides_runpath=no
9469  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9470  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9471  hardcode_into_libs=yes
9472  ;;
9473
9474# No shared lib support for Linux oldld, aout, or coff.
9475linux*oldld* | linux*aout* | linux*coff*)
9476  dynamic_linker=no
9477  ;;
9478
9479# This must be Linux ELF.
9480linux*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  shlibpath_overrides_runpath=no
9489  # This implies no fast_install, which is unacceptable.
9490  # Some rework will be needed to allow for fast_install
9491  # before this can be enabled.
9492  hardcode_into_libs=yes
9493
9494  # Append ld.so.conf contents to the search path
9495  if test -f /etc/ld.so.conf; then
9496    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' ' '`
9497    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9498  fi
9499
9500  # We used to test for /lib/ld.so.1 and disable shared libraries on
9501  # powerpc, because MkLinux only supported shared libraries with the
9502  # GNU dynamic linker.  Since this was broken with cross compilers,
9503  # most powerpc-linux boxes support dynamic linking these days and
9504  # people can always --disable-shared, the test was removed, and we
9505  # assume the GNU/Linux dynamic linker is in use.
9506  dynamic_linker='GNU/Linux ld.so'
9507  ;;
9508
9509knetbsd*-gnu)
9510  version_type=linux
9511  need_lib_prefix=no
9512  need_version=no
9513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514  soname_spec='${libname}${release}${shared_ext}$major'
9515  shlibpath_var=LD_LIBRARY_PATH
9516  shlibpath_overrides_runpath=no
9517  hardcode_into_libs=yes
9518  dynamic_linker='GNU ld.so'
9519  ;;
9520
9521netbsd*)
9522  version_type=sunos
9523  need_lib_prefix=no
9524  need_version=no
9525  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9528    dynamic_linker='NetBSD (a.out) ld.so'
9529  else
9530    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9531    soname_spec='${libname}${release}${shared_ext}$major'
9532    dynamic_linker='NetBSD ld.elf_so'
9533  fi
9534  shlibpath_var=LD_LIBRARY_PATH
9535  shlibpath_overrides_runpath=yes
9536  hardcode_into_libs=yes
9537  ;;
9538
9539newsos6)
9540  version_type=linux
9541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  shlibpath_overrides_runpath=yes
9544  ;;
9545
9546nto-qnx*)
9547  version_type=linux
9548  need_lib_prefix=no
9549  need_version=no
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551  soname_spec='${libname}${release}${shared_ext}$major'
9552  shlibpath_var=LD_LIBRARY_PATH
9553  shlibpath_overrides_runpath=yes
9554  ;;
9555
9556openbsd*)
9557  version_type=sunos
9558  sys_lib_dlsearch_path_spec="/usr/lib"
9559  need_lib_prefix=no
9560  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9561  case $host_os in
9562    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9563    *)                         need_version=no  ;;
9564  esac
9565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9567  shlibpath_var=LD_LIBRARY_PATH
9568  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569    case $host_os in
9570      openbsd2.[89] | openbsd2.[89].*)
9571	shlibpath_overrides_runpath=no
9572	;;
9573      *)
9574	shlibpath_overrides_runpath=yes
9575	;;
9576      esac
9577  else
9578    shlibpath_overrides_runpath=yes
9579  fi
9580  ;;
9581
9582os2*)
9583  libname_spec='$name'
9584  shrext_cmds=".dll"
9585  need_lib_prefix=no
9586  library_names_spec='$libname${shared_ext} $libname.a'
9587  dynamic_linker='OS/2 ld.exe'
9588  shlibpath_var=LIBPATH
9589  ;;
9590
9591osf3* | osf4* | osf5*)
9592  version_type=osf
9593  need_lib_prefix=no
9594  need_version=no
9595  soname_spec='${libname}${release}${shared_ext}$major'
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597  shlibpath_var=LD_LIBRARY_PATH
9598  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9599  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9600  ;;
9601
9602solaris*)
9603  version_type=linux
9604  need_lib_prefix=no
9605  need_version=no
9606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607  soname_spec='${libname}${release}${shared_ext}$major'
9608  shlibpath_var=LD_LIBRARY_PATH
9609  shlibpath_overrides_runpath=yes
9610  hardcode_into_libs=yes
9611  # ldd complains unless libraries are executable
9612  postinstall_cmds='chmod +x $lib'
9613  ;;
9614
9615sunos4*)
9616  version_type=sunos
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9619  shlibpath_var=LD_LIBRARY_PATH
9620  shlibpath_overrides_runpath=yes
9621  if test "$with_gnu_ld" = yes; then
9622    need_lib_prefix=no
9623  fi
9624  need_version=yes
9625  ;;
9626
9627sysv4 | sysv4.3*)
9628  version_type=linux
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  case $host_vendor in
9633    sni)
9634      shlibpath_overrides_runpath=no
9635      need_lib_prefix=no
9636      export_dynamic_flag_spec='${wl}-Blargedynsym'
9637      runpath_var=LD_RUN_PATH
9638      ;;
9639    siemens)
9640      need_lib_prefix=no
9641      ;;
9642    motorola)
9643      need_lib_prefix=no
9644      need_version=no
9645      shlibpath_overrides_runpath=no
9646      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9647      ;;
9648  esac
9649  ;;
9650
9651sysv4*MP*)
9652  if test -d /usr/nec ;then
9653    version_type=linux
9654    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9655    soname_spec='$libname${shared_ext}.$major'
9656    shlibpath_var=LD_LIBRARY_PATH
9657  fi
9658  ;;
9659
9660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9661  version_type=freebsd-elf
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  hardcode_into_libs=yes
9668  if test "$with_gnu_ld" = yes; then
9669    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9670    shlibpath_overrides_runpath=no
9671  else
9672    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9673    shlibpath_overrides_runpath=yes
9674    case $host_os in
9675      sco3.2v5*)
9676        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9677	;;
9678    esac
9679  fi
9680  sys_lib_dlsearch_path_spec='/usr/lib'
9681  ;;
9682
9683uts4*)
9684  version_type=linux
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686  soname_spec='${libname}${release}${shared_ext}$major'
9687  shlibpath_var=LD_LIBRARY_PATH
9688  ;;
9689
9690*)
9691  dynamic_linker=no
9692  ;;
9693esac
9694echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9695echo "${ECHO_T}$dynamic_linker" >&6
9696test "$dynamic_linker" = no && can_build_shared=no
9697
9698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699if test "$GCC" = yes; then
9700  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9701fi
9702
9703echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9704echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9705hardcode_action=
9706if test -n "$hardcode_libdir_flag_spec" || \
9707   test -n "$runpath_var" || \
9708   test "X$hardcode_automatic" = "Xyes" ; then
9709
9710  # We can hardcode non-existant directories.
9711  if test "$hardcode_direct" != no &&
9712     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9713     # have to relink, otherwise we might link with an installed library
9714     # when we should be linking with a yet-to-be-installed one
9715     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9716     test "$hardcode_minus_L" != no; then
9717    # Linking always hardcodes the temporary library directory.
9718    hardcode_action=relink
9719  else
9720    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9721    hardcode_action=immediate
9722  fi
9723else
9724  # We cannot hardcode anything, or else we can only hardcode existing
9725  # directories.
9726  hardcode_action=unsupported
9727fi
9728echo "$as_me:$LINENO: result: $hardcode_action" >&5
9729echo "${ECHO_T}$hardcode_action" >&6
9730
9731if test "$hardcode_action" = relink; then
9732  # Fast installation is not supported
9733  enable_fast_install=no
9734elif test "$shlibpath_overrides_runpath" = yes ||
9735     test "$enable_shared" = no; then
9736  # Fast installation is not necessary
9737  enable_fast_install=needless
9738fi
9739
9740striplib=
9741old_striplib=
9742echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9743echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9744if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9745  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9746  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9747  echo "$as_me:$LINENO: result: yes" >&5
9748echo "${ECHO_T}yes" >&6
9749else
9750# FIXME - insert some real tests, host_os isn't really good enough
9751  case $host_os in
9752   darwin*)
9753       if test -n "$STRIP" ; then
9754         striplib="$STRIP -x"
9755         echo "$as_me:$LINENO: result: yes" >&5
9756echo "${ECHO_T}yes" >&6
9757       else
9758  echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760fi
9761       ;;
9762   *)
9763  echo "$as_me:$LINENO: result: no" >&5
9764echo "${ECHO_T}no" >&6
9765    ;;
9766  esac
9767fi
9768
9769if test "x$enable_dlopen" != xyes; then
9770  enable_dlopen=unknown
9771  enable_dlopen_self=unknown
9772  enable_dlopen_self_static=unknown
9773else
9774  lt_cv_dlopen=no
9775  lt_cv_dlopen_libs=
9776
9777  case $host_os in
9778  beos*)
9779    lt_cv_dlopen="load_add_on"
9780    lt_cv_dlopen_libs=
9781    lt_cv_dlopen_self=yes
9782    ;;
9783
9784  mingw* | pw32*)
9785    lt_cv_dlopen="LoadLibrary"
9786    lt_cv_dlopen_libs=
9787   ;;
9788
9789  cygwin*)
9790    lt_cv_dlopen="dlopen"
9791    lt_cv_dlopen_libs=
9792   ;;
9793
9794  darwin*)
9795  # if libdl is installed we need to link against it
9796    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9797echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9798if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9799  echo $ECHO_N "(cached) $ECHO_C" >&6
9800else
9801  ac_check_lib_save_LIBS=$LIBS
9802LIBS="-ldl  $LIBS"
9803cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h.  */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h.  */
9809
9810/* Override any gcc2 internal prototype to avoid an error.  */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814/* We use char because int might match the return type of a gcc2
9815   builtin and then its argument prototype would still apply.  */
9816char dlopen ();
9817int
9818main ()
9819{
9820dlopen ();
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext conftest$ac_exeext
9826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827  (eval $ac_link) 2>conftest.er1
9828  ac_status=$?
9829  grep -v '^ *+' conftest.er1 >conftest.err
9830  rm -f conftest.er1
9831  cat conftest.err >&5
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } &&
9834	 { ac_try='test -z "$ac_c_werror_flag"
9835			 || test ! -s conftest.err'
9836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837  (eval $ac_try) 2>&5
9838  ac_status=$?
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); }; } &&
9841	 { ac_try='test -s conftest$ac_exeext'
9842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843  (eval $ac_try) 2>&5
9844  ac_status=$?
9845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846  (exit $ac_status); }; }; then
9847  ac_cv_lib_dl_dlopen=yes
9848else
9849  echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852ac_cv_lib_dl_dlopen=no
9853fi
9854rm -f conftest.err conftest.$ac_objext \
9855      conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9859echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9860if test $ac_cv_lib_dl_dlopen = yes; then
9861  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9862else
9863
9864    lt_cv_dlopen="dyld"
9865    lt_cv_dlopen_libs=
9866    lt_cv_dlopen_self=yes
9867
9868fi
9869
9870   ;;
9871
9872  *)
9873    echo "$as_me:$LINENO: checking for shl_load" >&5
9874echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9875if test "${ac_cv_func_shl_load+set}" = set; then
9876  echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878  cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h.  */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
9883/* end confdefs.h.  */
9884/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9885   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9886#define shl_load innocuous_shl_load
9887
9888/* System header to define __stub macros and hopefully few prototypes,
9889    which can conflict with char shl_load (); below.
9890    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9891    <limits.h> exists even on freestanding compilers.  */
9892
9893#ifdef __STDC__
9894# include <limits.h>
9895#else
9896# include <assert.h>
9897#endif
9898
9899#undef shl_load
9900
9901/* Override any gcc2 internal prototype to avoid an error.  */
9902#ifdef __cplusplus
9903extern "C"
9904{
9905#endif
9906/* We use char because int might match the return type of a gcc2
9907   builtin and then its argument prototype would still apply.  */
9908char shl_load ();
9909/* The GNU C library defines this for functions which it implements
9910    to always fail with ENOSYS.  Some functions are actually named
9911    something starting with __ and the normal name is an alias.  */
9912#if defined (__stub_shl_load) || defined (__stub___shl_load)
9913choke me
9914#else
9915char (*f) () = shl_load;
9916#endif
9917#ifdef __cplusplus
9918}
9919#endif
9920
9921int
9922main ()
9923{
9924return f != shl_load;
9925  ;
9926  return 0;
9927}
9928_ACEOF
9929rm -f conftest.$ac_objext conftest$ac_exeext
9930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931  (eval $ac_link) 2>conftest.er1
9932  ac_status=$?
9933  grep -v '^ *+' conftest.er1 >conftest.err
9934  rm -f conftest.er1
9935  cat conftest.err >&5
9936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937  (exit $ac_status); } &&
9938	 { ac_try='test -z "$ac_c_werror_flag"
9939			 || test ! -s conftest.err'
9940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941  (eval $ac_try) 2>&5
9942  ac_status=$?
9943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944  (exit $ac_status); }; } &&
9945	 { ac_try='test -s conftest$ac_exeext'
9946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947  (eval $ac_try) 2>&5
9948  ac_status=$?
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); }; }; then
9951  ac_cv_func_shl_load=yes
9952else
9953  echo "$as_me: failed program was:" >&5
9954sed 's/^/| /' conftest.$ac_ext >&5
9955
9956ac_cv_func_shl_load=no
9957fi
9958rm -f conftest.err conftest.$ac_objext \
9959      conftest$ac_exeext conftest.$ac_ext
9960fi
9961echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9962echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9963if test $ac_cv_func_shl_load = yes; then
9964  lt_cv_dlopen="shl_load"
9965else
9966  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9967echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9968if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9969  echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971  ac_check_lib_save_LIBS=$LIBS
9972LIBS="-ldld  $LIBS"
9973cat >conftest.$ac_ext <<_ACEOF
9974/* confdefs.h.  */
9975_ACEOF
9976cat confdefs.h >>conftest.$ac_ext
9977cat >>conftest.$ac_ext <<_ACEOF
9978/* end confdefs.h.  */
9979
9980/* Override any gcc2 internal prototype to avoid an error.  */
9981#ifdef __cplusplus
9982extern "C"
9983#endif
9984/* We use char because int might match the return type of a gcc2
9985   builtin and then its argument prototype would still apply.  */
9986char shl_load ();
9987int
9988main ()
9989{
9990shl_load ();
9991  ;
9992  return 0;
9993}
9994_ACEOF
9995rm -f conftest.$ac_objext conftest$ac_exeext
9996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997  (eval $ac_link) 2>conftest.er1
9998  ac_status=$?
9999  grep -v '^ *+' conftest.er1 >conftest.err
10000  rm -f conftest.er1
10001  cat conftest.err >&5
10002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); } &&
10004	 { ac_try='test -z "$ac_c_werror_flag"
10005			 || test ! -s conftest.err'
10006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007  (eval $ac_try) 2>&5
10008  ac_status=$?
10009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010  (exit $ac_status); }; } &&
10011	 { ac_try='test -s conftest$ac_exeext'
10012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013  (eval $ac_try) 2>&5
10014  ac_status=$?
10015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016  (exit $ac_status); }; }; then
10017  ac_cv_lib_dld_shl_load=yes
10018else
10019  echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022ac_cv_lib_dld_shl_load=no
10023fi
10024rm -f conftest.err conftest.$ac_objext \
10025      conftest$ac_exeext conftest.$ac_ext
10026LIBS=$ac_check_lib_save_LIBS
10027fi
10028echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10029echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10030if test $ac_cv_lib_dld_shl_load = yes; then
10031  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10032else
10033  echo "$as_me:$LINENO: checking for dlopen" >&5
10034echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10035if test "${ac_cv_func_dlopen+set}" = set; then
10036  echo $ECHO_N "(cached) $ECHO_C" >&6
10037else
10038  cat >conftest.$ac_ext <<_ACEOF
10039/* confdefs.h.  */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h.  */
10044/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10045   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10046#define dlopen innocuous_dlopen
10047
10048/* System header to define __stub macros and hopefully few prototypes,
10049    which can conflict with char dlopen (); below.
10050    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10051    <limits.h> exists even on freestanding compilers.  */
10052
10053#ifdef __STDC__
10054# include <limits.h>
10055#else
10056# include <assert.h>
10057#endif
10058
10059#undef dlopen
10060
10061/* Override any gcc2 internal prototype to avoid an error.  */
10062#ifdef __cplusplus
10063extern "C"
10064{
10065#endif
10066/* We use char because int might match the return type of a gcc2
10067   builtin and then its argument prototype would still apply.  */
10068char dlopen ();
10069/* The GNU C library defines this for functions which it implements
10070    to always fail with ENOSYS.  Some functions are actually named
10071    something starting with __ and the normal name is an alias.  */
10072#if defined (__stub_dlopen) || defined (__stub___dlopen)
10073choke me
10074#else
10075char (*f) () = dlopen;
10076#endif
10077#ifdef __cplusplus
10078}
10079#endif
10080
10081int
10082main ()
10083{
10084return f != dlopen;
10085  ;
10086  return 0;
10087}
10088_ACEOF
10089rm -f conftest.$ac_objext conftest$ac_exeext
10090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091  (eval $ac_link) 2>conftest.er1
10092  ac_status=$?
10093  grep -v '^ *+' conftest.er1 >conftest.err
10094  rm -f conftest.er1
10095  cat conftest.err >&5
10096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097  (exit $ac_status); } &&
10098	 { ac_try='test -z "$ac_c_werror_flag"
10099			 || test ! -s conftest.err'
10100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101  (eval $ac_try) 2>&5
10102  ac_status=$?
10103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104  (exit $ac_status); }; } &&
10105	 { ac_try='test -s conftest$ac_exeext'
10106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107  (eval $ac_try) 2>&5
10108  ac_status=$?
10109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110  (exit $ac_status); }; }; then
10111  ac_cv_func_dlopen=yes
10112else
10113  echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116ac_cv_func_dlopen=no
10117fi
10118rm -f conftest.err conftest.$ac_objext \
10119      conftest$ac_exeext conftest.$ac_ext
10120fi
10121echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10122echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10123if test $ac_cv_func_dlopen = yes; then
10124  lt_cv_dlopen="dlopen"
10125else
10126  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10127echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10128if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10129  echo $ECHO_N "(cached) $ECHO_C" >&6
10130else
10131  ac_check_lib_save_LIBS=$LIBS
10132LIBS="-ldl  $LIBS"
10133cat >conftest.$ac_ext <<_ACEOF
10134/* confdefs.h.  */
10135_ACEOF
10136cat confdefs.h >>conftest.$ac_ext
10137cat >>conftest.$ac_ext <<_ACEOF
10138/* end confdefs.h.  */
10139
10140/* Override any gcc2 internal prototype to avoid an error.  */
10141#ifdef __cplusplus
10142extern "C"
10143#endif
10144/* We use char because int might match the return type of a gcc2
10145   builtin and then its argument prototype would still apply.  */
10146char dlopen ();
10147int
10148main ()
10149{
10150dlopen ();
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155rm -f conftest.$ac_objext conftest$ac_exeext
10156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157  (eval $ac_link) 2>conftest.er1
10158  ac_status=$?
10159  grep -v '^ *+' conftest.er1 >conftest.err
10160  rm -f conftest.er1
10161  cat conftest.err >&5
10162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163  (exit $ac_status); } &&
10164	 { ac_try='test -z "$ac_c_werror_flag"
10165			 || test ! -s conftest.err'
10166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167  (eval $ac_try) 2>&5
10168  ac_status=$?
10169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170  (exit $ac_status); }; } &&
10171	 { ac_try='test -s conftest$ac_exeext'
10172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173  (eval $ac_try) 2>&5
10174  ac_status=$?
10175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); }; }; then
10177  ac_cv_lib_dl_dlopen=yes
10178else
10179  echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182ac_cv_lib_dl_dlopen=no
10183fi
10184rm -f conftest.err conftest.$ac_objext \
10185      conftest$ac_exeext conftest.$ac_ext
10186LIBS=$ac_check_lib_save_LIBS
10187fi
10188echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10189echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10190if test $ac_cv_lib_dl_dlopen = yes; then
10191  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10192else
10193  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10194echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10195if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10196  echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198  ac_check_lib_save_LIBS=$LIBS
10199LIBS="-lsvld  $LIBS"
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h.  */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h.  */
10206
10207/* Override any gcc2 internal prototype to avoid an error.  */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211/* We use char because int might match the return type of a gcc2
10212   builtin and then its argument prototype would still apply.  */
10213char dlopen ();
10214int
10215main ()
10216{
10217dlopen ();
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224  (eval $ac_link) 2>conftest.er1
10225  ac_status=$?
10226  grep -v '^ *+' conftest.er1 >conftest.err
10227  rm -f conftest.er1
10228  cat conftest.err >&5
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); } &&
10231	 { ac_try='test -z "$ac_c_werror_flag"
10232			 || test ! -s conftest.err'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; } &&
10238	 { ac_try='test -s conftest$ac_exeext'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; }; then
10244  ac_cv_lib_svld_dlopen=yes
10245else
10246  echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249ac_cv_lib_svld_dlopen=no
10250fi
10251rm -f conftest.err conftest.$ac_objext \
10252      conftest$ac_exeext conftest.$ac_ext
10253LIBS=$ac_check_lib_save_LIBS
10254fi
10255echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10256echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10257if test $ac_cv_lib_svld_dlopen = yes; then
10258  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10259else
10260  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10261echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10262if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10263  echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265  ac_check_lib_save_LIBS=$LIBS
10266LIBS="-ldld  $LIBS"
10267cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h.  */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h.  */
10273
10274/* Override any gcc2 internal prototype to avoid an error.  */
10275#ifdef __cplusplus
10276extern "C"
10277#endif
10278/* We use char because int might match the return type of a gcc2
10279   builtin and then its argument prototype would still apply.  */
10280char dld_link ();
10281int
10282main ()
10283{
10284dld_link ();
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext conftest$ac_exeext
10290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291  (eval $ac_link) 2>conftest.er1
10292  ac_status=$?
10293  grep -v '^ *+' conftest.er1 >conftest.err
10294  rm -f conftest.er1
10295  cat conftest.err >&5
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); } &&
10298	 { ac_try='test -z "$ac_c_werror_flag"
10299			 || test ! -s conftest.err'
10300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301  (eval $ac_try) 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); }; } &&
10305	 { ac_try='test -s conftest$ac_exeext'
10306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307  (eval $ac_try) 2>&5
10308  ac_status=$?
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); }; }; then
10311  ac_cv_lib_dld_dld_link=yes
10312else
10313  echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316ac_cv_lib_dld_dld_link=no
10317fi
10318rm -f conftest.err conftest.$ac_objext \
10319      conftest$ac_exeext conftest.$ac_ext
10320LIBS=$ac_check_lib_save_LIBS
10321fi
10322echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10323echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10324if test $ac_cv_lib_dld_dld_link = yes; then
10325  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10326fi
10327
10328
10329fi
10330
10331
10332fi
10333
10334
10335fi
10336
10337
10338fi
10339
10340
10341fi
10342
10343    ;;
10344  esac
10345
10346  if test "x$lt_cv_dlopen" != xno; then
10347    enable_dlopen=yes
10348  else
10349    enable_dlopen=no
10350  fi
10351
10352  case $lt_cv_dlopen in
10353  dlopen)
10354    save_CPPFLAGS="$CPPFLAGS"
10355    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10356
10357    save_LDFLAGS="$LDFLAGS"
10358    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10359
10360    save_LIBS="$LIBS"
10361    LIBS="$lt_cv_dlopen_libs $LIBS"
10362
10363    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10364echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10365if test "${lt_cv_dlopen_self+set}" = set; then
10366  echo $ECHO_N "(cached) $ECHO_C" >&6
10367else
10368  	  if test "$cross_compiling" = yes; then :
10369  lt_cv_dlopen_self=cross
10370else
10371  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10372  lt_status=$lt_dlunknown
10373  cat > conftest.$ac_ext <<EOF
10374#line 10374 "configure"
10375#include "confdefs.h"
10376
10377#if HAVE_DLFCN_H
10378#include <dlfcn.h>
10379#endif
10380
10381#include <stdio.h>
10382
10383#ifdef RTLD_GLOBAL
10384#  define LT_DLGLOBAL		RTLD_GLOBAL
10385#else
10386#  ifdef DL_GLOBAL
10387#    define LT_DLGLOBAL		DL_GLOBAL
10388#  else
10389#    define LT_DLGLOBAL		0
10390#  endif
10391#endif
10392
10393/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10394   find out it does not work in some platform. */
10395#ifndef LT_DLLAZY_OR_NOW
10396#  ifdef RTLD_LAZY
10397#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10398#  else
10399#    ifdef DL_LAZY
10400#      define LT_DLLAZY_OR_NOW		DL_LAZY
10401#    else
10402#      ifdef RTLD_NOW
10403#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10404#      else
10405#        ifdef DL_NOW
10406#          define LT_DLLAZY_OR_NOW	DL_NOW
10407#        else
10408#          define LT_DLLAZY_OR_NOW	0
10409#        endif
10410#      endif
10411#    endif
10412#  endif
10413#endif
10414
10415#ifdef __cplusplus
10416extern "C" void exit (int);
10417#endif
10418
10419void fnord() { int i=42;}
10420int main ()
10421{
10422  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10423  int status = $lt_dlunknown;
10424
10425  if (self)
10426    {
10427      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10428      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10429      /* dlclose (self); */
10430    }
10431  else
10432    puts (dlerror ());
10433
10434    exit (status);
10435}
10436EOF
10437  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438  (eval $ac_link) 2>&5
10439  ac_status=$?
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10442    (./conftest; exit; ) >&5 2>/dev/null
10443    lt_status=$?
10444    case x$lt_status in
10445      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10446      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10447      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10448    esac
10449  else :
10450    # compilation failed
10451    lt_cv_dlopen_self=no
10452  fi
10453fi
10454rm -fr conftest*
10455
10456
10457fi
10458echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10459echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10460
10461    if test "x$lt_cv_dlopen_self" = xyes; then
10462      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10463      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10464echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10465if test "${lt_cv_dlopen_self_static+set}" = set; then
10466  echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468  	  if test "$cross_compiling" = yes; then :
10469  lt_cv_dlopen_self_static=cross
10470else
10471  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10472  lt_status=$lt_dlunknown
10473  cat > conftest.$ac_ext <<EOF
10474#line 10474 "configure"
10475#include "confdefs.h"
10476
10477#if HAVE_DLFCN_H
10478#include <dlfcn.h>
10479#endif
10480
10481#include <stdio.h>
10482
10483#ifdef RTLD_GLOBAL
10484#  define LT_DLGLOBAL		RTLD_GLOBAL
10485#else
10486#  ifdef DL_GLOBAL
10487#    define LT_DLGLOBAL		DL_GLOBAL
10488#  else
10489#    define LT_DLGLOBAL		0
10490#  endif
10491#endif
10492
10493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10494   find out it does not work in some platform. */
10495#ifndef LT_DLLAZY_OR_NOW
10496#  ifdef RTLD_LAZY
10497#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10498#  else
10499#    ifdef DL_LAZY
10500#      define LT_DLLAZY_OR_NOW		DL_LAZY
10501#    else
10502#      ifdef RTLD_NOW
10503#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10504#      else
10505#        ifdef DL_NOW
10506#          define LT_DLLAZY_OR_NOW	DL_NOW
10507#        else
10508#          define LT_DLLAZY_OR_NOW	0
10509#        endif
10510#      endif
10511#    endif
10512#  endif
10513#endif
10514
10515#ifdef __cplusplus
10516extern "C" void exit (int);
10517#endif
10518
10519void fnord() { int i=42;}
10520int main ()
10521{
10522  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10523  int status = $lt_dlunknown;
10524
10525  if (self)
10526    {
10527      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10528      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10529      /* dlclose (self); */
10530    }
10531  else
10532    puts (dlerror ());
10533
10534    exit (status);
10535}
10536EOF
10537  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538  (eval $ac_link) 2>&5
10539  ac_status=$?
10540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10542    (./conftest; exit; ) >&5 2>/dev/null
10543    lt_status=$?
10544    case x$lt_status in
10545      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10546      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10547      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10548    esac
10549  else :
10550    # compilation failed
10551    lt_cv_dlopen_self_static=no
10552  fi
10553fi
10554rm -fr conftest*
10555
10556
10557fi
10558echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10559echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10560    fi
10561
10562    CPPFLAGS="$save_CPPFLAGS"
10563    LDFLAGS="$save_LDFLAGS"
10564    LIBS="$save_LIBS"
10565    ;;
10566  esac
10567
10568  case $lt_cv_dlopen_self in
10569  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10570  *) enable_dlopen_self=unknown ;;
10571  esac
10572
10573  case $lt_cv_dlopen_self_static in
10574  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10575  *) enable_dlopen_self_static=unknown ;;
10576  esac
10577fi
10578
10579
10580# Report which library types will actually be built
10581echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10582echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10583echo "$as_me:$LINENO: result: $can_build_shared" >&5
10584echo "${ECHO_T}$can_build_shared" >&6
10585
10586echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10587echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10588test "$can_build_shared" = "no" && enable_shared=no
10589
10590# On AIX, shared libraries and static libraries use the same namespace, and
10591# are all built from PIC.
10592case $host_os in
10593aix3*)
10594  test "$enable_shared" = yes && enable_static=no
10595  if test -n "$RANLIB"; then
10596    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10597    postinstall_cmds='$RANLIB $lib'
10598  fi
10599  ;;
10600
10601aix4* | aix5*)
10602  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10603    test "$enable_shared" = yes && enable_static=no
10604  fi
10605    ;;
10606esac
10607echo "$as_me:$LINENO: result: $enable_shared" >&5
10608echo "${ECHO_T}$enable_shared" >&6
10609
10610echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10611echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10612# Make sure either enable_shared or enable_static is yes.
10613test "$enable_shared" = yes || enable_static=yes
10614echo "$as_me:$LINENO: result: $enable_static" >&5
10615echo "${ECHO_T}$enable_static" >&6
10616
10617# The else clause should only fire when bootstrapping the
10618# libtool distribution, otherwise you forgot to ship ltmain.sh
10619# with your package, and you will get complaints that there are
10620# no rules to generate ltmain.sh.
10621if test -f "$ltmain"; then
10622  # See if we are running on zsh, and set the options which allow our commands through
10623  # without removal of \ escapes.
10624  if test -n "${ZSH_VERSION+set}" ; then
10625    setopt NO_GLOB_SUBST
10626  fi
10627  # Now quote all the things that may contain metacharacters while being
10628  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10629  # variables and quote the copies for generation of the libtool script.
10630  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10631    SED SHELL STRIP \
10632    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10633    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10634    deplibs_check_method reload_flag reload_cmds need_locks \
10635    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10636    lt_cv_sys_global_symbol_to_c_name_address \
10637    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10638    old_postinstall_cmds old_postuninstall_cmds \
10639    compiler \
10640    CC \
10641    LD \
10642    lt_prog_compiler_wl \
10643    lt_prog_compiler_pic \
10644    lt_prog_compiler_static \
10645    lt_prog_compiler_no_builtin_flag \
10646    export_dynamic_flag_spec \
10647    thread_safe_flag_spec \
10648    whole_archive_flag_spec \
10649    enable_shared_with_static_runtimes \
10650    old_archive_cmds \
10651    old_archive_from_new_cmds \
10652    predep_objects \
10653    postdep_objects \
10654    predeps \
10655    postdeps \
10656    compiler_lib_search_path \
10657    archive_cmds \
10658    archive_expsym_cmds \
10659    postinstall_cmds \
10660    postuninstall_cmds \
10661    old_archive_from_expsyms_cmds \
10662    allow_undefined_flag \
10663    no_undefined_flag \
10664    export_symbols_cmds \
10665    hardcode_libdir_flag_spec \
10666    hardcode_libdir_flag_spec_ld \
10667    hardcode_libdir_separator \
10668    hardcode_automatic \
10669    module_cmds \
10670    module_expsym_cmds \
10671    lt_cv_prog_compiler_c_o \
10672    exclude_expsyms \
10673    include_expsyms; do
10674
10675    case $var in
10676    old_archive_cmds | \
10677    old_archive_from_new_cmds | \
10678    archive_cmds | \
10679    archive_expsym_cmds | \
10680    module_cmds | \
10681    module_expsym_cmds | \
10682    old_archive_from_expsyms_cmds | \
10683    export_symbols_cmds | \
10684    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10685    postinstall_cmds | postuninstall_cmds | \
10686    old_postinstall_cmds | old_postuninstall_cmds | \
10687    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10688      # Double-quote double-evaled strings.
10689      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10690      ;;
10691    *)
10692      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10693      ;;
10694    esac
10695  done
10696
10697  case $lt_echo in
10698  *'\$0 --fallback-echo"')
10699    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10700    ;;
10701  esac
10702
10703cfgfile="${ofile}T"
10704  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10705  $rm -f "$cfgfile"
10706  { echo "$as_me:$LINENO: creating $ofile" >&5
10707echo "$as_me: creating $ofile" >&6;}
10708
10709  cat <<__EOF__ >> "$cfgfile"
10710#! $SHELL
10711
10712# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10713# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10714# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10715#
10716# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10717# Free Software Foundation, Inc.
10718#
10719# This file is part of GNU Libtool:
10720# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10721#
10722# This program is free software; you can redistribute it and/or modify
10723# it under the terms of the GNU General Public License as published by
10724# the Free Software Foundation; either version 2 of the License, or
10725# (at your option) any later version.
10726#
10727# This program is distributed in the hope that it will be useful, but
10728# WITHOUT ANY WARRANTY; without even the implied warranty of
10729# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10730# General Public License for more details.
10731#
10732# You should have received a copy of the GNU General Public License
10733# along with this program; if not, write to the Free Software
10734# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10735#
10736# As a special exception to the GNU General Public License, if you
10737# distribute this file as part of a program that contains a
10738# configuration script generated by Autoconf, you may include it under
10739# the same distribution terms that you use for the rest of that program.
10740
10741# A sed program that does not truncate output.
10742SED=$lt_SED
10743
10744# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10745Xsed="$SED -e 1s/^X//"
10746
10747# The HP-UX ksh and POSIX shell print the target directory to stdout
10748# if CDPATH is set.
10749(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10750
10751# The names of the tagged configurations supported by this script.
10752available_tags=
10753
10754# ### BEGIN LIBTOOL CONFIG
10755
10756# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10757
10758# Shell to use when invoking shell scripts.
10759SHELL=$lt_SHELL
10760
10761# Whether or not to build shared libraries.
10762build_libtool_libs=$enable_shared
10763
10764# Whether or not to build static libraries.
10765build_old_libs=$enable_static
10766
10767# Whether or not to add -lc for building shared libraries.
10768build_libtool_need_lc=$archive_cmds_need_lc
10769
10770# Whether or not to disallow shared libs when runtime libs are static
10771allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10772
10773# Whether or not to optimize for fast installation.
10774fast_install=$enable_fast_install
10775
10776# The host system.
10777host_alias=$host_alias
10778host=$host
10779host_os=$host_os
10780
10781# The build system.
10782build_alias=$build_alias
10783build=$build
10784build_os=$build_os
10785
10786# An echo program that does not interpret backslashes.
10787echo=$lt_echo
10788
10789# The archiver.
10790AR=$lt_AR
10791AR_FLAGS=$lt_AR_FLAGS
10792
10793# A C compiler.
10794LTCC=$lt_LTCC
10795
10796# LTCC compiler flags.
10797LTCFLAGS=$lt_LTCFLAGS
10798
10799# A language-specific compiler.
10800CC=$lt_compiler
10801
10802# Is the compiler the GNU C compiler?
10803with_gcc=$GCC
10804
10805# An ERE matcher.
10806EGREP=$lt_EGREP
10807
10808# The linker used to build libraries.
10809LD=$lt_LD
10810
10811# Whether we need hard or soft links.
10812LN_S=$lt_LN_S
10813
10814# A BSD-compatible nm program.
10815NM=$lt_NM
10816
10817# A symbol stripping program
10818STRIP=$lt_STRIP
10819
10820# Used to examine libraries when file_magic_cmd begins "file"
10821MAGIC_CMD=$MAGIC_CMD
10822
10823# Used on cygwin: DLL creation program.
10824DLLTOOL="$DLLTOOL"
10825
10826# Used on cygwin: object dumper.
10827OBJDUMP="$OBJDUMP"
10828
10829# Used on cygwin: assembler.
10830AS="$AS"
10831
10832# The name of the directory that contains temporary libtool files.
10833objdir=$objdir
10834
10835# How to create reloadable object files.
10836reload_flag=$lt_reload_flag
10837reload_cmds=$lt_reload_cmds
10838
10839# How to pass a linker flag through the compiler.
10840wl=$lt_lt_prog_compiler_wl
10841
10842# Object file suffix (normally "o").
10843objext="$ac_objext"
10844
10845# Old archive suffix (normally "a").
10846libext="$libext"
10847
10848# Shared library suffix (normally ".so").
10849shrext_cmds='$shrext_cmds'
10850
10851# Executable file suffix (normally "").
10852exeext="$exeext"
10853
10854# Additional compiler flags for building library objects.
10855pic_flag=$lt_lt_prog_compiler_pic
10856pic_mode=$pic_mode
10857
10858# What is the maximum length of a command?
10859max_cmd_len=$lt_cv_sys_max_cmd_len
10860
10861# Does compiler simultaneously support -c and -o options?
10862compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10863
10864# Must we lock files when doing compilation?
10865need_locks=$lt_need_locks
10866
10867# Do we need the lib prefix for modules?
10868need_lib_prefix=$need_lib_prefix
10869
10870# Do we need a version for libraries?
10871need_version=$need_version
10872
10873# Whether dlopen is supported.
10874dlopen_support=$enable_dlopen
10875
10876# Whether dlopen of programs is supported.
10877dlopen_self=$enable_dlopen_self
10878
10879# Whether dlopen of statically linked programs is supported.
10880dlopen_self_static=$enable_dlopen_self_static
10881
10882# Compiler flag to prevent dynamic linking.
10883link_static_flag=$lt_lt_prog_compiler_static
10884
10885# Compiler flag to turn off builtin functions.
10886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10887
10888# Compiler flag to allow reflexive dlopens.
10889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10890
10891# Compiler flag to generate shared objects directly from archives.
10892whole_archive_flag_spec=$lt_whole_archive_flag_spec
10893
10894# Compiler flag to generate thread-safe objects.
10895thread_safe_flag_spec=$lt_thread_safe_flag_spec
10896
10897# Library versioning type.
10898version_type=$version_type
10899
10900# Format of library name prefix.
10901libname_spec=$lt_libname_spec
10902
10903# List of archive names.  First name is the real one, the rest are links.
10904# The last name is the one that the linker finds with -lNAME.
10905library_names_spec=$lt_library_names_spec
10906
10907# The coded name of the library, if different from the real name.
10908soname_spec=$lt_soname_spec
10909
10910# Commands used to build and install an old-style archive.
10911RANLIB=$lt_RANLIB
10912old_archive_cmds=$lt_old_archive_cmds
10913old_postinstall_cmds=$lt_old_postinstall_cmds
10914old_postuninstall_cmds=$lt_old_postuninstall_cmds
10915
10916# Create an old-style archive from a shared archive.
10917old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10918
10919# Create a temporary old-style archive to link instead of a shared archive.
10920old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10921
10922# Commands used to build and install a shared archive.
10923archive_cmds=$lt_archive_cmds
10924archive_expsym_cmds=$lt_archive_expsym_cmds
10925postinstall_cmds=$lt_postinstall_cmds
10926postuninstall_cmds=$lt_postuninstall_cmds
10927
10928# Commands used to build a loadable module (assumed same as above if empty)
10929module_cmds=$lt_module_cmds
10930module_expsym_cmds=$lt_module_expsym_cmds
10931
10932# Commands to strip libraries.
10933old_striplib=$lt_old_striplib
10934striplib=$lt_striplib
10935
10936# Dependencies to place before the objects being linked to create a
10937# shared library.
10938predep_objects=$lt_predep_objects
10939
10940# Dependencies to place after the objects being linked to create a
10941# shared library.
10942postdep_objects=$lt_postdep_objects
10943
10944# Dependencies to place before the objects being linked to create a
10945# shared library.
10946predeps=$lt_predeps
10947
10948# Dependencies to place after the objects being linked to create a
10949# shared library.
10950postdeps=$lt_postdeps
10951
10952# The library search path used internally by the compiler when linking
10953# a shared library.
10954compiler_lib_search_path=$lt_compiler_lib_search_path
10955
10956# Method to check whether dependent libraries are shared objects.
10957deplibs_check_method=$lt_deplibs_check_method
10958
10959# Command to use when deplibs_check_method == file_magic.
10960file_magic_cmd=$lt_file_magic_cmd
10961
10962# Flag that allows shared libraries with undefined symbols to be built.
10963allow_undefined_flag=$lt_allow_undefined_flag
10964
10965# Flag that forces no undefined symbols.
10966no_undefined_flag=$lt_no_undefined_flag
10967
10968# Commands used to finish a libtool library installation in a directory.
10969finish_cmds=$lt_finish_cmds
10970
10971# Same as above, but a single script fragment to be evaled but not shown.
10972finish_eval=$lt_finish_eval
10973
10974# Take the output of nm and produce a listing of raw symbols and C names.
10975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10976
10977# Transform the output of nm in a proper C declaration
10978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10979
10980# Transform the output of nm in a C name address pair
10981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10982
10983# This is the shared library runtime path variable.
10984runpath_var=$runpath_var
10985
10986# This is the shared library path variable.
10987shlibpath_var=$shlibpath_var
10988
10989# Is shlibpath searched before the hard-coded library search path?
10990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10991
10992# How to hardcode a shared library path into an executable.
10993hardcode_action=$hardcode_action
10994
10995# Whether we should hardcode library paths into libraries.
10996hardcode_into_libs=$hardcode_into_libs
10997
10998# Flag to hardcode \$libdir into a binary during linking.
10999# This must work even if \$libdir does not exist.
11000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11001
11002# If ld is used when linking, flag to hardcode \$libdir into
11003# a binary during linking. This must work even if \$libdir does
11004# not exist.
11005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11006
11007# Whether we need a single -rpath flag with a separated argument.
11008hardcode_libdir_separator=$lt_hardcode_libdir_separator
11009
11010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11011# resulting binary.
11012hardcode_direct=$hardcode_direct
11013
11014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11015# resulting binary.
11016hardcode_minus_L=$hardcode_minus_L
11017
11018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11019# the resulting binary.
11020hardcode_shlibpath_var=$hardcode_shlibpath_var
11021
11022# Set to yes if building a shared library automatically hardcodes DIR into the library
11023# and all subsequent libraries and executables linked against it.
11024hardcode_automatic=$hardcode_automatic
11025
11026# Variables whose values should be saved in libtool wrapper scripts and
11027# restored at relink time.
11028variables_saved_for_relink="$variables_saved_for_relink"
11029
11030# Whether libtool must link a program against all its dependency libraries.
11031link_all_deplibs=$link_all_deplibs
11032
11033# Compile-time system search path for libraries
11034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11035
11036# Run-time system search path for libraries
11037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11038
11039# Fix the shell variable \$srcfile for the compiler.
11040fix_srcfile_path="$fix_srcfile_path"
11041
11042# Set to yes if exported symbols are required.
11043always_export_symbols=$always_export_symbols
11044
11045# The commands to list exported symbols.
11046export_symbols_cmds=$lt_export_symbols_cmds
11047
11048# The commands to extract the exported symbol list from a shared archive.
11049extract_expsyms_cmds=$lt_extract_expsyms_cmds
11050
11051# Symbols that should not be listed in the preloaded symbols.
11052exclude_expsyms=$lt_exclude_expsyms
11053
11054# Symbols that must always be exported.
11055include_expsyms=$lt_include_expsyms
11056
11057# ### END LIBTOOL CONFIG
11058
11059__EOF__
11060
11061
11062  case $host_os in
11063  aix3*)
11064    cat <<\EOF >> "$cfgfile"
11065
11066# AIX sometimes has problems with the GCC collect2 program.  For some
11067# reason, if we set the COLLECT_NAMES environment variable, the problems
11068# vanish in a puff of smoke.
11069if test "X${COLLECT_NAMES+set}" != Xset; then
11070  COLLECT_NAMES=
11071  export COLLECT_NAMES
11072fi
11073EOF
11074    ;;
11075  esac
11076
11077  # We use sed instead of cat because bash on DJGPP gets confused if
11078  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11079  # text mode, it properly converts lines to CR/LF.  This bash problem
11080  # is reportedly fixed, but why not run on old versions too?
11081  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11082
11083  mv -f "$cfgfile" "$ofile" || \
11084    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11085  chmod +x "$ofile"
11086
11087else
11088  # If there is no Makefile yet, we rely on a make rule to execute
11089  # `config.status --recheck' to rerun these tests and create the
11090  # libtool script then.
11091  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11092  if test -f "$ltmain_in"; then
11093    test -f Makefile && make "$ltmain"
11094  fi
11095fi
11096
11097
11098ac_ext=c
11099ac_cpp='$CPP $CPPFLAGS'
11100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11102ac_compiler_gnu=$ac_cv_c_compiler_gnu
11103
11104CC="$lt_save_CC"
11105
11106
11107# Check whether --with-tags or --without-tags was given.
11108if test "${with_tags+set}" = set; then
11109  withval="$with_tags"
11110  tagnames="$withval"
11111fi;
11112
11113if test -f "$ltmain" && test -n "$tagnames"; then
11114  if test ! -f "${ofile}"; then
11115    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11116echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11117  fi
11118
11119  if test -z "$LTCC"; then
11120    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11121    if test -z "$LTCC"; then
11122      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11123echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11124    else
11125      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11126echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11127    fi
11128  fi
11129  if test -z "$LTCFLAGS"; then
11130    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11131  fi
11132
11133  # Extract list of available tagged configurations in $ofile.
11134  # Note that this assumes the entire list is on one line.
11135  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11136
11137  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11138  for tagname in $tagnames; do
11139    IFS="$lt_save_ifs"
11140    # Check whether tagname contains only valid characters
11141    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11142    "") ;;
11143    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11144echo "$as_me: error: invalid tag name: $tagname" >&2;}
11145   { (exit 1); exit 1; }; }
11146	;;
11147    esac
11148
11149    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11150    then
11151      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11152echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11153   { (exit 1); exit 1; }; }
11154    fi
11155
11156    # Update the list of available tags.
11157    if test -n "$tagname"; then
11158      echo appending configuration tag \"$tagname\" to $ofile
11159
11160      case $tagname in
11161      CXX)
11162	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11163	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11164	    (test "X$CXX" != "Xg++"))) ; then
11165	  ac_ext=cc
11166ac_cpp='$CXXCPP $CPPFLAGS'
11167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170
11171
11172
11173
11174archive_cmds_need_lc_CXX=no
11175allow_undefined_flag_CXX=
11176always_export_symbols_CXX=no
11177archive_expsym_cmds_CXX=
11178export_dynamic_flag_spec_CXX=
11179hardcode_direct_CXX=no
11180hardcode_libdir_flag_spec_CXX=
11181hardcode_libdir_flag_spec_ld_CXX=
11182hardcode_libdir_separator_CXX=
11183hardcode_minus_L_CXX=no
11184hardcode_shlibpath_var_CXX=unsupported
11185hardcode_automatic_CXX=no
11186module_cmds_CXX=
11187module_expsym_cmds_CXX=
11188link_all_deplibs_CXX=unknown
11189old_archive_cmds_CXX=$old_archive_cmds
11190no_undefined_flag_CXX=
11191whole_archive_flag_spec_CXX=
11192enable_shared_with_static_runtimes_CXX=no
11193
11194# Dependencies to place before and after the object being linked:
11195predep_objects_CXX=
11196postdep_objects_CXX=
11197predeps_CXX=
11198postdeps_CXX=
11199compiler_lib_search_path_CXX=
11200
11201# Source file extension for C++ test sources.
11202ac_ext=cpp
11203
11204# Object file extension for compiled C++ test sources.
11205objext=o
11206objext_CXX=$objext
11207
11208# Code to be used in simple compile tests
11209lt_simple_compile_test_code="int some_variable = 0;\n"
11210
11211# Code to be used in simple link tests
11212lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11213
11214# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11215
11216# If no C compiler was specified, use CC.
11217LTCC=${LTCC-"$CC"}
11218
11219# If no C compiler flags were specified, use CFLAGS.
11220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11221
11222# Allow CC to be a program name with arguments.
11223compiler=$CC
11224
11225
11226# save warnings/boilerplate of simple test code
11227ac_outfile=conftest.$ac_objext
11228printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11230_lt_compiler_boilerplate=`cat conftest.err`
11231$rm conftest*
11232
11233ac_outfile=conftest.$ac_objext
11234printf "$lt_simple_link_test_code" >conftest.$ac_ext
11235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11236_lt_linker_boilerplate=`cat conftest.err`
11237$rm conftest*
11238
11239
11240# Allow CC to be a program name with arguments.
11241lt_save_CC=$CC
11242lt_save_LD=$LD
11243lt_save_GCC=$GCC
11244GCC=$GXX
11245lt_save_with_gnu_ld=$with_gnu_ld
11246lt_save_path_LD=$lt_cv_path_LD
11247if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11248  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11249else
11250  $as_unset lt_cv_prog_gnu_ld
11251fi
11252if test -n "${lt_cv_path_LDCXX+set}"; then
11253  lt_cv_path_LD=$lt_cv_path_LDCXX
11254else
11255  $as_unset lt_cv_path_LD
11256fi
11257test -z "${LDCXX+set}" || LD=$LDCXX
11258CC=${CXX-"c++"}
11259compiler=$CC
11260compiler_CXX=$CC
11261for cc_temp in $compiler""; do
11262  case $cc_temp in
11263    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11264    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11265    \-*) ;;
11266    *) break;;
11267  esac
11268done
11269cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11270
11271
11272# We don't want -fno-exception wen compiling C++ code, so set the
11273# no_builtin_flag separately
11274if test "$GXX" = yes; then
11275  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11276else
11277  lt_prog_compiler_no_builtin_flag_CXX=
11278fi
11279
11280if test "$GXX" = yes; then
11281  # Set up default GNU C++ configuration
11282
11283
11284# Check whether --with-gnu-ld or --without-gnu-ld was given.
11285if test "${with_gnu_ld+set}" = set; then
11286  withval="$with_gnu_ld"
11287  test "$withval" = no || with_gnu_ld=yes
11288else
11289  with_gnu_ld=no
11290fi;
11291ac_prog=ld
11292if test "$GCC" = yes; then
11293  # Check if gcc -print-prog-name=ld gives a path.
11294  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11295echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11296  case $host in
11297  *-*-mingw*)
11298    # gcc leaves a trailing carriage return which upsets mingw
11299    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11300  *)
11301    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11302  esac
11303  case $ac_prog in
11304    # Accept absolute paths.
11305    [\\/]* | ?:[\\/]*)
11306      re_direlt='/[^/][^/]*/\.\./'
11307      # Canonicalize the pathname of ld
11308      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11309      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11310	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11311      done
11312      test -z "$LD" && LD="$ac_prog"
11313      ;;
11314  "")
11315    # If it fails, then pretend we aren't using GCC.
11316    ac_prog=ld
11317    ;;
11318  *)
11319    # If it is relative, then search for the first ld in PATH.
11320    with_gnu_ld=unknown
11321    ;;
11322  esac
11323elif test "$with_gnu_ld" = yes; then
11324  echo "$as_me:$LINENO: checking for GNU ld" >&5
11325echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11326else
11327  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11328echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11329fi
11330if test "${lt_cv_path_LD+set}" = set; then
11331  echo $ECHO_N "(cached) $ECHO_C" >&6
11332else
11333  if test -z "$LD"; then
11334  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11335  for ac_dir in $PATH; do
11336    IFS="$lt_save_ifs"
11337    test -z "$ac_dir" && ac_dir=.
11338    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11339      lt_cv_path_LD="$ac_dir/$ac_prog"
11340      # Check to see if the program is GNU ld.  I'd rather use --version,
11341      # but apparently some variants of GNU ld only accept -v.
11342      # Break only if it was the GNU/non-GNU ld that we prefer.
11343      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11344      *GNU* | *'with BFD'*)
11345	test "$with_gnu_ld" != no && break
11346	;;
11347      *)
11348	test "$with_gnu_ld" != yes && break
11349	;;
11350      esac
11351    fi
11352  done
11353  IFS="$lt_save_ifs"
11354else
11355  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11356fi
11357fi
11358
11359LD="$lt_cv_path_LD"
11360if test -n "$LD"; then
11361  echo "$as_me:$LINENO: result: $LD" >&5
11362echo "${ECHO_T}$LD" >&6
11363else
11364  echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
11366fi
11367test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11368echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11369   { (exit 1); exit 1; }; }
11370echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11371echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11372if test "${lt_cv_prog_gnu_ld+set}" = set; then
11373  echo $ECHO_N "(cached) $ECHO_C" >&6
11374else
11375  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11376case `$LD -v 2>&1 </dev/null` in
11377*GNU* | *'with BFD'*)
11378  lt_cv_prog_gnu_ld=yes
11379  ;;
11380*)
11381  lt_cv_prog_gnu_ld=no
11382  ;;
11383esac
11384fi
11385echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11386echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11387with_gnu_ld=$lt_cv_prog_gnu_ld
11388
11389
11390
11391  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11392  # archiving commands below assume that GNU ld is being used.
11393  if test "$with_gnu_ld" = yes; then
11394    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11395    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'
11396
11397    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11398    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11399
11400    # If archive_cmds runs LD, not CC, wlarc should be empty
11401    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11402    #     investigate it a little bit more. (MM)
11403    wlarc='${wl}'
11404
11405    # ancient GNU ld didn't support --whole-archive et. al.
11406    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11407	grep 'no-whole-archive' > /dev/null; then
11408      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11409    else
11410      whole_archive_flag_spec_CXX=
11411    fi
11412  else
11413    with_gnu_ld=no
11414    wlarc=
11415
11416    # A generic and very simple default shared library creation
11417    # command for GNU C++ for the case where it uses the native
11418    # linker, instead of GNU ld.  If possible, this setting should
11419    # overridden to take advantage of the native linker features on
11420    # the platform it is being used on.
11421    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11422  fi
11423
11424  # Commands to make compiler produce verbose output that lists
11425  # what "hidden" libraries, object files and flags are used when
11426  # linking a shared library.
11427  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11428
11429else
11430  GXX=no
11431  with_gnu_ld=no
11432  wlarc=
11433fi
11434
11435# PORTME: fill in a description of your system's C++ link characteristics
11436echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11437echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11438ld_shlibs_CXX=yes
11439case $host_os in
11440  aix3*)
11441    # FIXME: insert proper C++ library support
11442    ld_shlibs_CXX=no
11443    ;;
11444  aix4* | aix5*)
11445    if test "$host_cpu" = ia64; then
11446      # On IA64, the linker does run time linking by default, so we don't
11447      # have to do anything special.
11448      aix_use_runtimelinking=no
11449      exp_sym_flag='-Bexport'
11450      no_entry_flag=""
11451    else
11452      aix_use_runtimelinking=no
11453
11454      # Test if we are trying to use run time linking or normal
11455      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11456      # need to do runtime linking.
11457      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11458	for ld_flag in $LDFLAGS; do
11459	  case $ld_flag in
11460	  *-brtl*)
11461	    aix_use_runtimelinking=yes
11462	    break
11463	    ;;
11464	  esac
11465	done
11466	;;
11467      esac
11468
11469      exp_sym_flag='-bexport'
11470      no_entry_flag='-bnoentry'
11471    fi
11472
11473    # When large executables or shared objects are built, AIX ld can
11474    # have problems creating the table of contents.  If linking a library
11475    # or program results in "error TOC overflow" add -mminimal-toc to
11476    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11477    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11478
11479    archive_cmds_CXX=''
11480    hardcode_direct_CXX=yes
11481    hardcode_libdir_separator_CXX=':'
11482    link_all_deplibs_CXX=yes
11483
11484    if test "$GXX" = yes; then
11485      case $host_os in aix4.[012]|aix4.[012].*)
11486      # We only want to do this on AIX 4.2 and lower, the check
11487      # below for broken collect2 doesn't work under 4.3+
11488	collect2name=`${CC} -print-prog-name=collect2`
11489	if test -f "$collect2name" && \
11490	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11491	then
11492	  # We have reworked collect2
11493	  hardcode_direct_CXX=yes
11494	else
11495	  # We have old collect2
11496	  hardcode_direct_CXX=unsupported
11497	  # It fails to find uninstalled libraries when the uninstalled
11498	  # path is not listed in the libpath.  Setting hardcode_minus_L
11499	  # to unsupported forces relinking
11500	  hardcode_minus_L_CXX=yes
11501	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11502	  hardcode_libdir_separator_CXX=
11503	fi
11504	;;
11505      esac
11506      shared_flag='-shared'
11507      if test "$aix_use_runtimelinking" = yes; then
11508	shared_flag="$shared_flag "'${wl}-G'
11509      fi
11510    else
11511      # not using gcc
11512      if test "$host_cpu" = ia64; then
11513	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11514	# chokes on -Wl,-G. The following line is correct:
11515	shared_flag='-G'
11516      else
11517	if test "$aix_use_runtimelinking" = yes; then
11518	  shared_flag='${wl}-G'
11519	else
11520	  shared_flag='${wl}-bM:SRE'
11521	fi
11522      fi
11523    fi
11524
11525    # It seems that -bexpall does not export symbols beginning with
11526    # underscore (_), so it is better to generate a list of symbols to export.
11527    always_export_symbols_CXX=yes
11528    if test "$aix_use_runtimelinking" = yes; then
11529      # Warning - without using the other runtime loading flags (-brtl),
11530      # -berok will link without error, but may produce a broken library.
11531      allow_undefined_flag_CXX='-berok'
11532      # Determine the default libpath from the value encoded in an empty executable.
11533      cat >conftest.$ac_ext <<_ACEOF
11534/* confdefs.h.  */
11535_ACEOF
11536cat confdefs.h >>conftest.$ac_ext
11537cat >>conftest.$ac_ext <<_ACEOF
11538/* end confdefs.h.  */
11539
11540int
11541main ()
11542{
11543
11544  ;
11545  return 0;
11546}
11547_ACEOF
11548rm -f conftest.$ac_objext conftest$ac_exeext
11549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550  (eval $ac_link) 2>conftest.er1
11551  ac_status=$?
11552  grep -v '^ *+' conftest.er1 >conftest.err
11553  rm -f conftest.er1
11554  cat conftest.err >&5
11555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556  (exit $ac_status); } &&
11557	 { ac_try='test -z "$ac_cxx_werror_flag"
11558			 || test ! -s conftest.err'
11559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560  (eval $ac_try) 2>&5
11561  ac_status=$?
11562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563  (exit $ac_status); }; } &&
11564	 { ac_try='test -s conftest$ac_exeext'
11565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566  (eval $ac_try) 2>&5
11567  ac_status=$?
11568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569  (exit $ac_status); }; }; then
11570
11571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11572}'`
11573# Check for a 64-bit object if we didn't find anything.
11574if 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; }
11575}'`; fi
11576else
11577  echo "$as_me: failed program was:" >&5
11578sed 's/^/| /' conftest.$ac_ext >&5
11579
11580fi
11581rm -f conftest.err conftest.$ac_objext \
11582      conftest$ac_exeext conftest.$ac_ext
11583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11584
11585      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11586
11587      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"
11588     else
11589      if test "$host_cpu" = ia64; then
11590	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11591	allow_undefined_flag_CXX="-z nodefs"
11592	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"
11593      else
11594	# Determine the default libpath from the value encoded in an empty executable.
11595	cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h.  */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h.  */
11601
11602int
11603main ()
11604{
11605
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612  (eval $ac_link) 2>conftest.er1
11613  ac_status=$?
11614  grep -v '^ *+' conftest.er1 >conftest.err
11615  rm -f conftest.er1
11616  cat conftest.err >&5
11617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618  (exit $ac_status); } &&
11619	 { ac_try='test -z "$ac_cxx_werror_flag"
11620			 || test ! -s conftest.err'
11621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622  (eval $ac_try) 2>&5
11623  ac_status=$?
11624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625  (exit $ac_status); }; } &&
11626	 { ac_try='test -s conftest$ac_exeext'
11627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628  (eval $ac_try) 2>&5
11629  ac_status=$?
11630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631  (exit $ac_status); }; }; then
11632
11633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11634}'`
11635# Check for a 64-bit object if we didn't find anything.
11636if 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; }
11637}'`; fi
11638else
11639  echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642fi
11643rm -f conftest.err conftest.$ac_objext \
11644      conftest$ac_exeext conftest.$ac_ext
11645if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11646
11647	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11648	# Warning - without using the other run time loading flags,
11649	# -berok will link without error, but may produce a broken library.
11650	no_undefined_flag_CXX=' ${wl}-bernotok'
11651	allow_undefined_flag_CXX=' ${wl}-berok'
11652	# Exported symbols can be pulled into shared objects from archives
11653	whole_archive_flag_spec_CXX='$convenience'
11654	archive_cmds_need_lc_CXX=yes
11655	# This is similar to how AIX traditionally builds its shared libraries.
11656	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'
11657      fi
11658    fi
11659    ;;
11660
11661  beos*)
11662    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11663      allow_undefined_flag_CXX=unsupported
11664      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11665      # support --undefined.  This deserves some investigation.  FIXME
11666      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11667    else
11668      ld_shlibs_CXX=no
11669    fi
11670    ;;
11671
11672  chorus*)
11673    case $cc_basename in
11674      *)
11675	# FIXME: insert proper C++ library support
11676	ld_shlibs_CXX=no
11677	;;
11678    esac
11679    ;;
11680
11681  cygwin* | mingw* | pw32*)
11682    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11683    # as there is no search path for DLLs.
11684    hardcode_libdir_flag_spec_CXX='-L$libdir'
11685    allow_undefined_flag_CXX=unsupported
11686    always_export_symbols_CXX=no
11687    enable_shared_with_static_runtimes_CXX=yes
11688
11689    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11690      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'
11691      # If the export-symbols file already is a .def file (1st line
11692      # is EXPORTS), use it as is; otherwise, prepend...
11693      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11694	cp $export_symbols $output_objdir/$soname.def;
11695      else
11696	echo EXPORTS > $output_objdir/$soname.def;
11697	cat $export_symbols >> $output_objdir/$soname.def;
11698      fi~
11699      $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'
11700    else
11701      ld_shlibs_CXX=no
11702    fi
11703  ;;
11704      darwin* | rhapsody*)
11705        case $host_os in
11706        rhapsody* | darwin1.[012])
11707         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11708         ;;
11709       *) # Darwin 1.3 on
11710         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11711           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11712         else
11713           case ${MACOSX_DEPLOYMENT_TARGET} in
11714             10.[012])
11715               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11716               ;;
11717             10.*)
11718               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11719               ;;
11720           esac
11721         fi
11722         ;;
11723        esac
11724      archive_cmds_need_lc_CXX=no
11725      hardcode_direct_CXX=no
11726      hardcode_automatic_CXX=yes
11727      hardcode_shlibpath_var_CXX=unsupported
11728      whole_archive_flag_spec_CXX=''
11729      link_all_deplibs_CXX=yes
11730
11731    if test "$GXX" = yes ; then
11732      lt_int_apple_cc_single_mod=no
11733      output_verbose_link_cmd='echo'
11734      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11735       lt_int_apple_cc_single_mod=yes
11736      fi
11737      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11738       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11739      else
11740          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'
11741        fi
11742        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11743        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11744          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11745            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}'
11746          else
11747            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}'
11748          fi
11749            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}'
11750      else
11751      case $cc_basename in
11752        xlc*)
11753         output_verbose_link_cmd='echo'
11754          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'
11755          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11756          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11757          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}'
11758          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}'
11759          ;;
11760       *)
11761         ld_shlibs_CXX=no
11762          ;;
11763      esac
11764      fi
11765        ;;
11766
11767  dgux*)
11768    case $cc_basename in
11769      ec++*)
11770	# FIXME: insert proper C++ library support
11771	ld_shlibs_CXX=no
11772	;;
11773      ghcx*)
11774	# Green Hills C++ Compiler
11775	# FIXME: insert proper C++ library support
11776	ld_shlibs_CXX=no
11777	;;
11778      *)
11779	# FIXME: insert proper C++ library support
11780	ld_shlibs_CXX=no
11781	;;
11782    esac
11783    ;;
11784  freebsd[12]*)
11785    # C++ shared libraries reported to be fairly broken before switch to ELF
11786    ld_shlibs_CXX=no
11787    ;;
11788  freebsd-elf*)
11789    archive_cmds_need_lc_CXX=no
11790    ;;
11791  freebsd* | kfreebsd*-gnu | dragonfly*)
11792    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11793    # conventions
11794    ld_shlibs_CXX=yes
11795    ;;
11796  gnu*)
11797    ;;
11798  hpux9*)
11799    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11800    hardcode_libdir_separator_CXX=:
11801    export_dynamic_flag_spec_CXX='${wl}-E'
11802    hardcode_direct_CXX=yes
11803    hardcode_minus_L_CXX=yes # Not in the search PATH,
11804				# but as the default
11805				# location of the library.
11806
11807    case $cc_basename in
11808    CC*)
11809      # FIXME: insert proper C++ library support
11810      ld_shlibs_CXX=no
11811      ;;
11812    aCC*)
11813      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'
11814      # Commands to make compiler produce verbose output that lists
11815      # what "hidden" libraries, object files and flags are used when
11816      # linking a shared library.
11817      #
11818      # There doesn't appear to be a way to prevent this compiler from
11819      # explicitly linking system object files so we need to strip them
11820      # from the output so that they don't get included in the library
11821      # dependencies.
11822      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'
11823      ;;
11824    *)
11825      if test "$GXX" = yes; then
11826        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'
11827      else
11828        # FIXME: insert proper C++ library support
11829        ld_shlibs_CXX=no
11830      fi
11831      ;;
11832    esac
11833    ;;
11834  hpux10*|hpux11*)
11835    if test $with_gnu_ld = no; then
11836      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11837      hardcode_libdir_separator_CXX=:
11838
11839      case $host_cpu in
11840      hppa*64*|ia64*)
11841	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11842        ;;
11843      *)
11844	export_dynamic_flag_spec_CXX='${wl}-E'
11845        ;;
11846      esac
11847    fi
11848    case $host_cpu in
11849    hppa*64*|ia64*)
11850      hardcode_direct_CXX=no
11851      hardcode_shlibpath_var_CXX=no
11852      ;;
11853    *)
11854      hardcode_direct_CXX=yes
11855      hardcode_minus_L_CXX=yes # Not in the search PATH,
11856					      # but as the default
11857					      # location of the library.
11858      ;;
11859    esac
11860
11861    case $cc_basename in
11862      CC*)
11863	# FIXME: insert proper C++ library support
11864	ld_shlibs_CXX=no
11865	;;
11866      aCC*)
11867	case $host_cpu in
11868	hppa*64*)
11869	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870	  ;;
11871	ia64*)
11872	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873	  ;;
11874	*)
11875	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876	  ;;
11877	esac
11878	# Commands to make compiler produce verbose output that lists
11879	# what "hidden" libraries, object files and flags are used when
11880	# linking a shared library.
11881	#
11882	# There doesn't appear to be a way to prevent this compiler from
11883	# explicitly linking system object files so we need to strip them
11884	# from the output so that they don't get included in the library
11885	# dependencies.
11886	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'
11887	;;
11888      *)
11889	if test "$GXX" = yes; then
11890	  if test $with_gnu_ld = no; then
11891	    case $host_cpu in
11892	    hppa*64*)
11893	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11894	      ;;
11895	    ia64*)
11896	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897	      ;;
11898	    *)
11899	      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'
11900	      ;;
11901	    esac
11902	  fi
11903	else
11904	  # FIXME: insert proper C++ library support
11905	  ld_shlibs_CXX=no
11906	fi
11907	;;
11908    esac
11909    ;;
11910  interix3*)
11911    hardcode_direct_CXX=no
11912    hardcode_shlibpath_var_CXX=no
11913    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11914    export_dynamic_flag_spec_CXX='${wl}-E'
11915    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11916    # Instead, shared libraries are loaded at an image base (0x10000000 by
11917    # default) and relocated if they conflict, which is a slow very memory
11918    # consuming and fragmenting process.  To avoid this, we pick a random,
11919    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11920    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11921    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'
11922    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'
11923    ;;
11924  irix5* | irix6*)
11925    case $cc_basename in
11926      CC*)
11927	# SGI C++
11928	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'
11929
11930	# Archives containing C++ object files must be created using
11931	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11932	# necessary to make sure instantiated templates are included
11933	# in the archive.
11934	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11935	;;
11936      *)
11937	if test "$GXX" = yes; then
11938	  if test "$with_gnu_ld" = no; then
11939	    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'
11940	  else
11941	    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'
11942	  fi
11943	fi
11944	link_all_deplibs_CXX=yes
11945	;;
11946    esac
11947    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11948    hardcode_libdir_separator_CXX=:
11949    ;;
11950  linux*)
11951    case $cc_basename in
11952      KCC*)
11953	# Kuck and Associates, Inc. (KAI) C++ Compiler
11954
11955	# KCC will only create a shared library if the output file
11956	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11957	# to its proper name (with version) after linking.
11958	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'
11959	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'
11960	# Commands to make compiler produce verbose output that lists
11961	# what "hidden" libraries, object files and flags are used when
11962	# linking a shared library.
11963	#
11964	# There doesn't appear to be a way to prevent this compiler from
11965	# explicitly linking system object files so we need to strip them
11966	# from the output so that they don't get included in the library
11967	# dependencies.
11968	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'
11969
11970	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11971	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11972
11973	# Archives containing C++ object files must be created using
11974	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11975	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11976	;;
11977      icpc*)
11978	# Intel C++
11979	with_gnu_ld=yes
11980	# version 8.0 and above of icpc choke on multiply defined symbols
11981	# if we add $predep_objects and $postdep_objects, however 7.1 and
11982	# earlier do not add the objects themselves.
11983	case `$CC -V 2>&1` in
11984	*"Version 7."*)
11985  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11986  	  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'
11987	  ;;
11988	*)  # Version 8.0 or newer
11989	  tmp_idyn=
11990	  case $host_cpu in
11991	    ia64*) tmp_idyn=' -i_dynamic';;
11992	  esac
11993  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11994	  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'
11995	  ;;
11996	esac
11997	archive_cmds_need_lc_CXX=no
11998	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11999	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12000	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12001	;;
12002      pgCC*)
12003        # Portland Group C++ compiler
12004	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12005  	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'
12006
12007	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12008	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12009	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'
12010        ;;
12011      cxx*)
12012	# Compaq C++
12013	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12014	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'
12015
12016	runpath_var=LD_RUN_PATH
12017	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12018	hardcode_libdir_separator_CXX=:
12019
12020	# Commands to make compiler produce verbose output that lists
12021	# what "hidden" libraries, object files and flags are used when
12022	# linking a shared library.
12023	#
12024	# There doesn't appear to be a way to prevent this compiler from
12025	# explicitly linking system object files so we need to strip them
12026	# from the output so that they don't get included in the library
12027	# dependencies.
12028	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'
12029	;;
12030    esac
12031    ;;
12032  lynxos*)
12033    # FIXME: insert proper C++ library support
12034    ld_shlibs_CXX=no
12035    ;;
12036  m88k*)
12037    # FIXME: insert proper C++ library support
12038    ld_shlibs_CXX=no
12039    ;;
12040  mvs*)
12041    case $cc_basename in
12042      cxx*)
12043	# FIXME: insert proper C++ library support
12044	ld_shlibs_CXX=no
12045	;;
12046      *)
12047	# FIXME: insert proper C++ library support
12048	ld_shlibs_CXX=no
12049	;;
12050    esac
12051    ;;
12052  netbsd*)
12053    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12054      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12055      wlarc=
12056      hardcode_libdir_flag_spec_CXX='-R$libdir'
12057      hardcode_direct_CXX=yes
12058      hardcode_shlibpath_var_CXX=no
12059    fi
12060    # Workaround some broken pre-1.5 toolchains
12061    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12062    ;;
12063  openbsd2*)
12064    # C++ shared libraries are fairly broken
12065    ld_shlibs_CXX=no
12066    ;;
12067  openbsd*)
12068    hardcode_direct_CXX=yes
12069    hardcode_shlibpath_var_CXX=no
12070    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12071    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12072    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12073      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12074      export_dynamic_flag_spec_CXX='${wl}-E'
12075      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12076    fi
12077    output_verbose_link_cmd='echo'
12078    ;;
12079  osf3*)
12080    case $cc_basename in
12081      KCC*)
12082	# Kuck and Associates, Inc. (KAI) C++ Compiler
12083
12084	# KCC will only create a shared library if the output file
12085	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12086	# to its proper name (with version) after linking.
12087	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'
12088
12089	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12090	hardcode_libdir_separator_CXX=:
12091
12092	# Archives containing C++ object files must be created using
12093	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12094	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12095
12096	;;
12097      RCC*)
12098	# Rational C++ 2.4.1
12099	# FIXME: insert proper C++ library support
12100	ld_shlibs_CXX=no
12101	;;
12102      cxx*)
12103	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12104	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'
12105
12106	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12107	hardcode_libdir_separator_CXX=:
12108
12109	# Commands to make compiler produce verbose output that lists
12110	# what "hidden" libraries, object files and flags are used when
12111	# linking a shared library.
12112	#
12113	# There doesn't appear to be a way to prevent this compiler from
12114	# explicitly linking system object files so we need to strip them
12115	# from the output so that they don't get included in the library
12116	# dependencies.
12117	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'
12118	;;
12119      *)
12120	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12121	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12122	  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'
12123
12124	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12125	  hardcode_libdir_separator_CXX=:
12126
12127	  # Commands to make compiler produce verbose output that lists
12128	  # what "hidden" libraries, object files and flags are used when
12129	  # linking a shared library.
12130	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12131
12132	else
12133	  # FIXME: insert proper C++ library support
12134	  ld_shlibs_CXX=no
12135	fi
12136	;;
12137    esac
12138    ;;
12139  osf4* | osf5*)
12140    case $cc_basename in
12141      KCC*)
12142	# Kuck and Associates, Inc. (KAI) C++ Compiler
12143
12144	# KCC will only create a shared library if the output file
12145	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12146	# to its proper name (with version) after linking.
12147	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'
12148
12149	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12150	hardcode_libdir_separator_CXX=:
12151
12152	# Archives containing C++ object files must be created using
12153	# the KAI C++ compiler.
12154	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12155	;;
12156      RCC*)
12157	# Rational C++ 2.4.1
12158	# FIXME: insert proper C++ library support
12159	ld_shlibs_CXX=no
12160	;;
12161      cxx*)
12162	allow_undefined_flag_CXX=' -expect_unresolved \*'
12163	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'
12164	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12165	  echo "-hidden">> $lib.exp~
12166	  $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~
12167	  $rm $lib.exp'
12168
12169	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12170	hardcode_libdir_separator_CXX=:
12171
12172	# Commands to make compiler produce verbose output that lists
12173	# what "hidden" libraries, object files and flags are used when
12174	# linking a shared library.
12175	#
12176	# There doesn't appear to be a way to prevent this compiler from
12177	# explicitly linking system object files so we need to strip them
12178	# from the output so that they don't get included in the library
12179	# dependencies.
12180	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'
12181	;;
12182      *)
12183	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12184	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12185	 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'
12186
12187	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12188	  hardcode_libdir_separator_CXX=:
12189
12190	  # Commands to make compiler produce verbose output that lists
12191	  # what "hidden" libraries, object files and flags are used when
12192	  # linking a shared library.
12193	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12194
12195	else
12196	  # FIXME: insert proper C++ library support
12197	  ld_shlibs_CXX=no
12198	fi
12199	;;
12200    esac
12201    ;;
12202  psos*)
12203    # FIXME: insert proper C++ library support
12204    ld_shlibs_CXX=no
12205    ;;
12206  sunos4*)
12207    case $cc_basename in
12208      CC*)
12209	# Sun C++ 4.x
12210	# FIXME: insert proper C++ library support
12211	ld_shlibs_CXX=no
12212	;;
12213      lcc*)
12214	# Lucid
12215	# FIXME: insert proper C++ library support
12216	ld_shlibs_CXX=no
12217	;;
12218      *)
12219	# FIXME: insert proper C++ library support
12220	ld_shlibs_CXX=no
12221	;;
12222    esac
12223    ;;
12224  solaris*)
12225    case $cc_basename in
12226      CC*)
12227	# Sun C++ 4.2, 5.x and Centerline C++
12228        archive_cmds_need_lc_CXX=yes
12229	no_undefined_flag_CXX=' -zdefs'
12230	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12231	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12232	$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'
12233
12234	hardcode_libdir_flag_spec_CXX='-R$libdir'
12235	hardcode_shlibpath_var_CXX=no
12236	case $host_os in
12237	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12238	  *)
12239	    # The C++ compiler is used as linker so we must use $wl
12240	    # flag to pass the commands to the underlying system
12241	    # linker. We must also pass each convience library through
12242	    # to the system linker between allextract/defaultextract.
12243	    # The C++ compiler will combine linker options so we
12244	    # cannot just pass the convience library names through
12245	    # without $wl.
12246	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12247	    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'
12248	    ;;
12249	esac
12250	link_all_deplibs_CXX=yes
12251
12252	output_verbose_link_cmd='echo'
12253
12254	# Archives containing C++ object files must be created using
12255	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12256	# necessary to make sure instantiated templates are included
12257	# in the archive.
12258	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12259	;;
12260      gcx*)
12261	# Green Hills C++ Compiler
12262	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12263
12264	# The C++ compiler must be used to create the archive.
12265	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12266	;;
12267      *)
12268	# GNU C++ compiler with Solaris linker
12269	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12270	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12271	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12272	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12273	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12274		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12275
12276	    # Commands to make compiler produce verbose output that lists
12277	    # what "hidden" libraries, object files and flags are used when
12278	    # linking a shared library.
12279	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12280	  else
12281	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12282	    # platform.
12283	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12284	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12285		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12286
12287	    # Commands to make compiler produce verbose output that lists
12288	    # what "hidden" libraries, object files and flags are used when
12289	    # linking a shared library.
12290	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12291	  fi
12292
12293	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12294	fi
12295	;;
12296    esac
12297    ;;
12298  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12299    no_undefined_flag_CXX='${wl}-z,text'
12300    archive_cmds_need_lc_CXX=no
12301    hardcode_shlibpath_var_CXX=no
12302    runpath_var='LD_RUN_PATH'
12303
12304    case $cc_basename in
12305      CC*)
12306	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12307	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12308	;;
12309      *)
12310	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312	;;
12313    esac
12314    ;;
12315  sysv5* | sco3.2v5* | sco5v6*)
12316    # Note: We can NOT use -z defs as we might desire, because we do not
12317    # link with -lc, and that would cause any symbols used from libc to
12318    # always be unresolved, which means just about no library would
12319    # ever link correctly.  If we're not using GNU ld we use -z text
12320    # though, which does catch some bad symbols but isn't as heavy-handed
12321    # as -z defs.
12322    # For security reasons, it is highly recommended that you always
12323    # use absolute paths for naming shared libraries, and exclude the
12324    # DT_RUNPATH tag from executables and libraries.  But doing so
12325    # requires that you compile everything twice, which is a pain.
12326    # So that behaviour is only enabled if SCOABSPATH is set to a
12327    # non-empty value in the environment.  Most likely only useful for
12328    # creating official distributions of packages.
12329    # This is a hack until libtool officially supports absolute path
12330    # names for shared libraries.
12331    no_undefined_flag_CXX='${wl}-z,text'
12332    allow_undefined_flag_CXX='${wl}-z,nodefs'
12333    archive_cmds_need_lc_CXX=no
12334    hardcode_shlibpath_var_CXX=no
12335    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12336    hardcode_libdir_separator_CXX=':'
12337    link_all_deplibs_CXX=yes
12338    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12339    runpath_var='LD_RUN_PATH'
12340
12341    case $cc_basename in
12342      CC*)
12343	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12344	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12345	;;
12346      *)
12347	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12348	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349	;;
12350    esac
12351    ;;
12352  tandem*)
12353    case $cc_basename in
12354      NCC*)
12355	# NonStop-UX NCC 3.20
12356	# FIXME: insert proper C++ library support
12357	ld_shlibs_CXX=no
12358	;;
12359      *)
12360	# FIXME: insert proper C++ library support
12361	ld_shlibs_CXX=no
12362	;;
12363    esac
12364    ;;
12365  vxworks*)
12366    # FIXME: insert proper C++ library support
12367    ld_shlibs_CXX=no
12368    ;;
12369  *)
12370    # FIXME: insert proper C++ library support
12371    ld_shlibs_CXX=no
12372    ;;
12373esac
12374echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12375echo "${ECHO_T}$ld_shlibs_CXX" >&6
12376test "$ld_shlibs_CXX" = no && can_build_shared=no
12377
12378GCC_CXX="$GXX"
12379LD_CXX="$LD"
12380
12381## CAVEAT EMPTOR:
12382## There is no encapsulation within the following macros, do not change
12383## the running order or otherwise move them around unless you know exactly
12384## what you are doing...
12385
12386cat > conftest.$ac_ext <<EOF
12387class Foo
12388{
12389public:
12390  Foo (void) { a = 0; }
12391private:
12392  int a;
12393};
12394EOF
12395
12396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397  (eval $ac_compile) 2>&5
12398  ac_status=$?
12399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400  (exit $ac_status); }; then
12401  # Parse the compiler output and extract the necessary
12402  # objects, libraries and library flags.
12403
12404  # Sentinel used to keep track of whether or not we are before
12405  # the conftest object file.
12406  pre_test_object_deps_done=no
12407
12408  # The `*' in the case matches for architectures that use `case' in
12409  # $output_verbose_cmd can trigger glob expansion during the loop
12410  # eval without this substitution.
12411  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12412
12413  for p in `eval $output_verbose_link_cmd`; do
12414    case $p in
12415
12416    -L* | -R* | -l*)
12417       # Some compilers place space between "-{L,R}" and the path.
12418       # Remove the space.
12419       if test $p = "-L" \
12420	  || test $p = "-R"; then
12421	 prev=$p
12422	 continue
12423       else
12424	 prev=
12425       fi
12426
12427       if test "$pre_test_object_deps_done" = no; then
12428	 case $p in
12429	 -L* | -R*)
12430	   # Internal compiler library paths should come after those
12431	   # provided the user.  The postdeps already come after the
12432	   # user supplied libs so there is no need to process them.
12433	   if test -z "$compiler_lib_search_path_CXX"; then
12434	     compiler_lib_search_path_CXX="${prev}${p}"
12435	   else
12436	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12437	   fi
12438	   ;;
12439	 # The "-l" case would never come before the object being
12440	 # linked, so don't bother handling this case.
12441	 esac
12442       else
12443	 if test -z "$postdeps_CXX"; then
12444	   postdeps_CXX="${prev}${p}"
12445	 else
12446	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12447	 fi
12448       fi
12449       ;;
12450
12451    *.$objext)
12452       # This assumes that the test object file only shows up
12453       # once in the compiler output.
12454       if test "$p" = "conftest.$objext"; then
12455	 pre_test_object_deps_done=yes
12456	 continue
12457       fi
12458
12459       if test "$pre_test_object_deps_done" = no; then
12460	 if test -z "$predep_objects_CXX"; then
12461	   predep_objects_CXX="$p"
12462	 else
12463	   predep_objects_CXX="$predep_objects_CXX $p"
12464	 fi
12465       else
12466	 if test -z "$postdep_objects_CXX"; then
12467	   postdep_objects_CXX="$p"
12468	 else
12469	   postdep_objects_CXX="$postdep_objects_CXX $p"
12470	 fi
12471       fi
12472       ;;
12473
12474    *) ;; # Ignore the rest.
12475
12476    esac
12477  done
12478
12479  # Clean up.
12480  rm -f a.out a.exe
12481else
12482  echo "libtool.m4: error: problem compiling CXX test program"
12483fi
12484
12485$rm -f confest.$objext
12486
12487# PORTME: override above test on systems where it is broken
12488case $host_os in
12489interix3*)
12490  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12491  # hack all around it, let's just trust "g++" to DTRT.
12492  predep_objects_CXX=
12493  postdep_objects_CXX=
12494  postdeps_CXX=
12495  ;;
12496
12497solaris*)
12498  case $cc_basename in
12499  CC*)
12500    # Adding this requires a known-good setup of shared libraries for
12501    # Sun compiler versions before 5.6, else PIC objects from an old
12502    # archive will be linked into the output, leading to subtle bugs.
12503    postdeps_CXX='-lCstd -lCrun'
12504    ;;
12505  esac
12506  ;;
12507esac
12508
12509
12510case " $postdeps_CXX " in
12511*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12512esac
12513
12514lt_prog_compiler_wl_CXX=
12515lt_prog_compiler_pic_CXX=
12516lt_prog_compiler_static_CXX=
12517
12518echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12519echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12520
12521  # C++ specific cases for pic, static, wl, etc.
12522  if test "$GXX" = yes; then
12523    lt_prog_compiler_wl_CXX='-Wl,'
12524    lt_prog_compiler_static_CXX='-static'
12525
12526    case $host_os in
12527    aix*)
12528      # All AIX code is PIC.
12529      if test "$host_cpu" = ia64; then
12530	# AIX 5 now supports IA64 processor
12531	lt_prog_compiler_static_CXX='-Bstatic'
12532      fi
12533      ;;
12534    amigaos*)
12535      # FIXME: we need at least 68020 code to build shared libraries, but
12536      # adding the `-m68020' flag to GCC prevents building anything better,
12537      # like `-m68040'.
12538      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12539      ;;
12540    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12541      # PIC is the default for these OSes.
12542      ;;
12543    mingw* | os2* | pw32*)
12544      # This hack is so that the source file can tell whether it is being
12545      # built for inclusion in a dll (and should export symbols for example).
12546      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12547      ;;
12548    darwin* | rhapsody*)
12549      # PIC is the default on this platform
12550      # Common symbols not allowed in MH_DYLIB files
12551      lt_prog_compiler_pic_CXX='-fno-common'
12552      ;;
12553    *djgpp*)
12554      # DJGPP does not support shared libraries at all
12555      lt_prog_compiler_pic_CXX=
12556      ;;
12557    interix3*)
12558      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12559      # Instead, we relocate shared libraries at runtime.
12560      ;;
12561    sysv4*MP*)
12562      if test -d /usr/nec; then
12563	lt_prog_compiler_pic_CXX=-Kconform_pic
12564      fi
12565      ;;
12566    hpux*)
12567      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12568      # not for PA HP-UX.
12569      case $host_cpu in
12570      hppa*64*|ia64*)
12571	;;
12572      *)
12573	lt_prog_compiler_pic_CXX='-fPIC'
12574	;;
12575      esac
12576      ;;
12577    *)
12578      lt_prog_compiler_pic_CXX='-fPIC'
12579      ;;
12580    esac
12581  else
12582    case $host_os in
12583      aix4* | aix5*)
12584	# All AIX code is PIC.
12585	if test "$host_cpu" = ia64; then
12586	  # AIX 5 now supports IA64 processor
12587	  lt_prog_compiler_static_CXX='-Bstatic'
12588	else
12589	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12590	fi
12591	;;
12592      chorus*)
12593	case $cc_basename in
12594	cxch68*)
12595	  # Green Hills C++ Compiler
12596	  # _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"
12597	  ;;
12598	esac
12599	;;
12600       darwin*)
12601         # PIC is the default on this platform
12602         # Common symbols not allowed in MH_DYLIB files
12603         case $cc_basename in
12604           xlc*)
12605           lt_prog_compiler_pic_CXX='-qnocommon'
12606           lt_prog_compiler_wl_CXX='-Wl,'
12607           ;;
12608         esac
12609       ;;
12610      dgux*)
12611	case $cc_basename in
12612	  ec++*)
12613	    lt_prog_compiler_pic_CXX='-KPIC'
12614	    ;;
12615	  ghcx*)
12616	    # Green Hills C++ Compiler
12617	    lt_prog_compiler_pic_CXX='-pic'
12618	    ;;
12619	  *)
12620	    ;;
12621	esac
12622	;;
12623      freebsd* | kfreebsd*-gnu | dragonfly*)
12624	# FreeBSD uses GNU C++
12625	;;
12626      hpux9* | hpux10* | hpux11*)
12627	case $cc_basename in
12628	  CC*)
12629	    lt_prog_compiler_wl_CXX='-Wl,'
12630	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12631	    if test "$host_cpu" != ia64; then
12632	      lt_prog_compiler_pic_CXX='+Z'
12633	    fi
12634	    ;;
12635	  aCC*)
12636	    lt_prog_compiler_wl_CXX='-Wl,'
12637	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12638	    case $host_cpu in
12639	    hppa*64*|ia64*)
12640	      # +Z the default
12641	      ;;
12642	    *)
12643	      lt_prog_compiler_pic_CXX='+Z'
12644	      ;;
12645	    esac
12646	    ;;
12647	  *)
12648	    ;;
12649	esac
12650	;;
12651      interix*)
12652	# This is c89, which is MS Visual C++ (no shared libs)
12653	# Anyone wants to do a port?
12654	;;
12655      irix5* | irix6* | nonstopux*)
12656	case $cc_basename in
12657	  CC*)
12658	    lt_prog_compiler_wl_CXX='-Wl,'
12659	    lt_prog_compiler_static_CXX='-non_shared'
12660	    # CC pic flag -KPIC is the default.
12661	    ;;
12662	  *)
12663	    ;;
12664	esac
12665	;;
12666      linux*)
12667	case $cc_basename in
12668	  KCC*)
12669	    # KAI C++ Compiler
12670	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12671	    lt_prog_compiler_pic_CXX='-fPIC'
12672	    ;;
12673	  icpc* | ecpc*)
12674	    # Intel C++
12675	    lt_prog_compiler_wl_CXX='-Wl,'
12676	    lt_prog_compiler_pic_CXX='-KPIC'
12677	    lt_prog_compiler_static_CXX='-static'
12678	    ;;
12679	  pgCC*)
12680	    # Portland Group C++ compiler.
12681	    lt_prog_compiler_wl_CXX='-Wl,'
12682	    lt_prog_compiler_pic_CXX='-fpic'
12683	    lt_prog_compiler_static_CXX='-Bstatic'
12684	    ;;
12685	  cxx*)
12686	    # Compaq C++
12687	    # Make sure the PIC flag is empty.  It appears that all Alpha
12688	    # Linux and Compaq Tru64 Unix objects are PIC.
12689	    lt_prog_compiler_pic_CXX=
12690	    lt_prog_compiler_static_CXX='-non_shared'
12691	    ;;
12692	  *)
12693	    ;;
12694	esac
12695	;;
12696      lynxos*)
12697	;;
12698      m88k*)
12699	;;
12700      mvs*)
12701	case $cc_basename in
12702	  cxx*)
12703	    lt_prog_compiler_pic_CXX='-W c,exportall'
12704	    ;;
12705	  *)
12706	    ;;
12707	esac
12708	;;
12709      netbsd*)
12710	;;
12711      osf3* | osf4* | osf5*)
12712	case $cc_basename in
12713	  KCC*)
12714	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12715	    ;;
12716	  RCC*)
12717	    # Rational C++ 2.4.1
12718	    lt_prog_compiler_pic_CXX='-pic'
12719	    ;;
12720	  cxx*)
12721	    # Digital/Compaq C++
12722	    lt_prog_compiler_wl_CXX='-Wl,'
12723	    # Make sure the PIC flag is empty.  It appears that all Alpha
12724	    # Linux and Compaq Tru64 Unix objects are PIC.
12725	    lt_prog_compiler_pic_CXX=
12726	    lt_prog_compiler_static_CXX='-non_shared'
12727	    ;;
12728	  *)
12729	    ;;
12730	esac
12731	;;
12732      psos*)
12733	;;
12734      solaris*)
12735	case $cc_basename in
12736	  CC*)
12737	    # Sun C++ 4.2, 5.x and Centerline C++
12738	    lt_prog_compiler_pic_CXX='-KPIC'
12739	    lt_prog_compiler_static_CXX='-Bstatic'
12740	    lt_prog_compiler_wl_CXX='-Qoption ld '
12741	    ;;
12742	  gcx*)
12743	    # Green Hills C++ Compiler
12744	    lt_prog_compiler_pic_CXX='-PIC'
12745	    ;;
12746	  *)
12747	    ;;
12748	esac
12749	;;
12750      sunos4*)
12751	case $cc_basename in
12752	  CC*)
12753	    # Sun C++ 4.x
12754	    lt_prog_compiler_pic_CXX='-pic'
12755	    lt_prog_compiler_static_CXX='-Bstatic'
12756	    ;;
12757	  lcc*)
12758	    # Lucid
12759	    lt_prog_compiler_pic_CXX='-pic'
12760	    ;;
12761	  *)
12762	    ;;
12763	esac
12764	;;
12765      tandem*)
12766	case $cc_basename in
12767	  NCC*)
12768	    # NonStop-UX NCC 3.20
12769	    lt_prog_compiler_pic_CXX='-KPIC'
12770	    ;;
12771	  *)
12772	    ;;
12773	esac
12774	;;
12775      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12776	case $cc_basename in
12777	  CC*)
12778	    lt_prog_compiler_wl_CXX='-Wl,'
12779	    lt_prog_compiler_pic_CXX='-KPIC'
12780	    lt_prog_compiler_static_CXX='-Bstatic'
12781	    ;;
12782	esac
12783	;;
12784      vxworks*)
12785	;;
12786      *)
12787	lt_prog_compiler_can_build_shared_CXX=no
12788	;;
12789    esac
12790  fi
12791
12792echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12793echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12794
12795#
12796# Check to make sure the PIC flag actually works.
12797#
12798if test -n "$lt_prog_compiler_pic_CXX"; then
12799
12800echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12802if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12803  echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805  lt_prog_compiler_pic_works_CXX=no
12806  ac_outfile=conftest.$ac_objext
12807   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12808   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12809   # Insert the option either (1) after the last *FLAGS variable, or
12810   # (2) before a word containing "conftest.", or (3) at the end.
12811   # Note that $ac_compile itself does not contain backslashes and begins
12812   # with a dollar sign (not a hyphen), so the echo should work correctly.
12813   # The option is referenced via a variable to avoid confusing sed.
12814   lt_compile=`echo "$ac_compile" | $SED \
12815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817   -e 's:$: $lt_compiler_flag:'`
12818   (eval echo "\"\$as_me:12818: $lt_compile\"" >&5)
12819   (eval "$lt_compile" 2>conftest.err)
12820   ac_status=$?
12821   cat conftest.err >&5
12822   echo "$as_me:12822: \$? = $ac_status" >&5
12823   if (exit $ac_status) && test -s "$ac_outfile"; then
12824     # The compiler can only warn and ignore the option if not recognized
12825     # So say no if there are warnings other than the usual output.
12826     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12827     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12828     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12829       lt_prog_compiler_pic_works_CXX=yes
12830     fi
12831   fi
12832   $rm conftest*
12833
12834fi
12835echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12836echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12837
12838if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12839    case $lt_prog_compiler_pic_CXX in
12840     "" | " "*) ;;
12841     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12842     esac
12843else
12844    lt_prog_compiler_pic_CXX=
12845     lt_prog_compiler_can_build_shared_CXX=no
12846fi
12847
12848fi
12849case $host_os in
12850  # For platforms which do not support PIC, -DPIC is meaningless:
12851  *djgpp*)
12852    lt_prog_compiler_pic_CXX=
12853    ;;
12854  *)
12855    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12856    ;;
12857esac
12858
12859#
12860# Check to make sure the static flag actually works.
12861#
12862wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12863echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12864echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12865if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12866  echo $ECHO_N "(cached) $ECHO_C" >&6
12867else
12868  lt_prog_compiler_static_works_CXX=no
12869   save_LDFLAGS="$LDFLAGS"
12870   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12871   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12872   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12873     # The linker can only warn and ignore the option if not recognized
12874     # So say no if there are warnings
12875     if test -s conftest.err; then
12876       # Append any errors to the config.log.
12877       cat conftest.err 1>&5
12878       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12879       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12880       if diff conftest.exp conftest.er2 >/dev/null; then
12881         lt_prog_compiler_static_works_CXX=yes
12882       fi
12883     else
12884       lt_prog_compiler_static_works_CXX=yes
12885     fi
12886   fi
12887   $rm conftest*
12888   LDFLAGS="$save_LDFLAGS"
12889
12890fi
12891echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12892echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12893
12894if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12895    :
12896else
12897    lt_prog_compiler_static_CXX=
12898fi
12899
12900
12901echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12903if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12904  echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906  lt_cv_prog_compiler_c_o_CXX=no
12907   $rm -r conftest 2>/dev/null
12908   mkdir conftest
12909   cd conftest
12910   mkdir out
12911   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12912
12913   lt_compiler_flag="-o out/conftest2.$ac_objext"
12914   # Insert the option either (1) after the last *FLAGS variable, or
12915   # (2) before a word containing "conftest.", or (3) at the end.
12916   # Note that $ac_compile itself does not contain backslashes and begins
12917   # with a dollar sign (not a hyphen), so the echo should work correctly.
12918   lt_compile=`echo "$ac_compile" | $SED \
12919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12921   -e 's:$: $lt_compiler_flag:'`
12922   (eval echo "\"\$as_me:12922: $lt_compile\"" >&5)
12923   (eval "$lt_compile" 2>out/conftest.err)
12924   ac_status=$?
12925   cat out/conftest.err >&5
12926   echo "$as_me:12926: \$? = $ac_status" >&5
12927   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12928   then
12929     # The compiler can only warn and ignore the option if not recognized
12930     # So say no if there are warnings
12931     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12932     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12933     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12934       lt_cv_prog_compiler_c_o_CXX=yes
12935     fi
12936   fi
12937   chmod u+w . 2>&5
12938   $rm conftest*
12939   # SGI C++ compiler will create directory out/ii_files/ for
12940   # template instantiation
12941   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12942   $rm out/* && rmdir out
12943   cd ..
12944   rmdir conftest
12945   $rm conftest*
12946
12947fi
12948echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12949echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12950
12951
12952hard_links="nottested"
12953if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12954  # do not overwrite the value of need_locks provided by the user
12955  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12956echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12957  hard_links=yes
12958  $rm conftest*
12959  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12960  touch conftest.a
12961  ln conftest.a conftest.b 2>&5 || hard_links=no
12962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12963  echo "$as_me:$LINENO: result: $hard_links" >&5
12964echo "${ECHO_T}$hard_links" >&6
12965  if test "$hard_links" = no; then
12966    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12967echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12968    need_locks=warn
12969  fi
12970else
12971  need_locks=no
12972fi
12973
12974echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12975echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12976
12977  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12978  case $host_os in
12979  aix4* | aix5*)
12980    # If we're using GNU nm, then we don't want the "-C" option.
12981    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12982    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12983      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'
12984    else
12985      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'
12986    fi
12987    ;;
12988  pw32*)
12989    export_symbols_cmds_CXX="$ltdll_cmds"
12990  ;;
12991  cygwin* | mingw*)
12992    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'
12993  ;;
12994  *)
12995    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12996  ;;
12997  esac
12998
12999echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13000echo "${ECHO_T}$ld_shlibs_CXX" >&6
13001test "$ld_shlibs_CXX" = no && can_build_shared=no
13002
13003#
13004# Do we need to explicitly link libc?
13005#
13006case "x$archive_cmds_need_lc_CXX" in
13007x|xyes)
13008  # Assume -lc should be added
13009  archive_cmds_need_lc_CXX=yes
13010
13011  if test "$enable_shared" = yes && test "$GCC" = yes; then
13012    case $archive_cmds_CXX in
13013    *'~'*)
13014      # FIXME: we may have to deal with multi-command sequences.
13015      ;;
13016    '$CC '*)
13017      # Test whether the compiler implicitly links with -lc since on some
13018      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13019      # to ld, don't add -lc before -lgcc.
13020      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13021echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13022      $rm conftest*
13023      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13024
13025      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026  (eval $ac_compile) 2>&5
13027  ac_status=$?
13028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029  (exit $ac_status); } 2>conftest.err; then
13030        soname=conftest
13031        lib=conftest
13032        libobjs=conftest.$ac_objext
13033        deplibs=
13034        wl=$lt_prog_compiler_wl_CXX
13035	pic_flag=$lt_prog_compiler_pic_CXX
13036        compiler_flags=-v
13037        linker_flags=-v
13038        verstring=
13039        output_objdir=.
13040        libname=conftest
13041        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13042        allow_undefined_flag_CXX=
13043        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13044  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13045  ac_status=$?
13046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047  (exit $ac_status); }
13048        then
13049	  archive_cmds_need_lc_CXX=no
13050        else
13051	  archive_cmds_need_lc_CXX=yes
13052        fi
13053        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13054      else
13055        cat conftest.err 1>&5
13056      fi
13057      $rm conftest*
13058      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13059echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13060      ;;
13061    esac
13062  fi
13063  ;;
13064esac
13065
13066echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13067echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13068library_names_spec=
13069libname_spec='lib$name'
13070soname_spec=
13071shrext_cmds=".so"
13072postinstall_cmds=
13073postuninstall_cmds=
13074finish_cmds=
13075finish_eval=
13076shlibpath_var=
13077shlibpath_overrides_runpath=unknown
13078version_type=none
13079dynamic_linker="$host_os ld.so"
13080sys_lib_dlsearch_path_spec="/lib /usr/lib"
13081if test "$GCC" = yes; then
13082  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13083  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13084    # if the path contains ";" then we assume it to be the separator
13085    # otherwise default to the standard path separator (i.e. ":") - it is
13086    # assumed that no part of a normal pathname contains ";" but that should
13087    # okay in the real world where ";" in dirpaths is itself problematic.
13088    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13089  else
13090    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13091  fi
13092else
13093  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13094fi
13095need_lib_prefix=unknown
13096hardcode_into_libs=no
13097
13098# when you set need_version to no, make sure it does not cause -set_version
13099# flags to be left without arguments
13100need_version=unknown
13101
13102case $host_os in
13103aix3*)
13104  version_type=linux
13105  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13106  shlibpath_var=LIBPATH
13107
13108  # AIX 3 has no versioning support, so we append a major version to the name.
13109  soname_spec='${libname}${release}${shared_ext}$major'
13110  ;;
13111
13112aix4* | aix5*)
13113  version_type=linux
13114  need_lib_prefix=no
13115  need_version=no
13116  hardcode_into_libs=yes
13117  if test "$host_cpu" = ia64; then
13118    # AIX 5 supports IA64
13119    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13120    shlibpath_var=LD_LIBRARY_PATH
13121  else
13122    # With GCC up to 2.95.x, collect2 would create an import file
13123    # for dependence libraries.  The import file would start with
13124    # the line `#! .'.  This would cause the generated library to
13125    # depend on `.', always an invalid library.  This was fixed in
13126    # development snapshots of GCC prior to 3.0.
13127    case $host_os in
13128      aix4 | aix4.[01] | aix4.[01].*)
13129      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13130	   echo ' yes '
13131	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13132	:
13133      else
13134	can_build_shared=no
13135      fi
13136      ;;
13137    esac
13138    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13139    # soname into executable. Probably we can add versioning support to
13140    # collect2, so additional links can be useful in future.
13141    if test "$aix_use_runtimelinking" = yes; then
13142      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13143      # instead of lib<name>.a to let people know that these are not
13144      # typical AIX shared libraries.
13145      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13146    else
13147      # We preserve .a as extension for shared libraries through AIX4.2
13148      # and later when we are not doing run time linking.
13149      library_names_spec='${libname}${release}.a $libname.a'
13150      soname_spec='${libname}${release}${shared_ext}$major'
13151    fi
13152    shlibpath_var=LIBPATH
13153  fi
13154  ;;
13155
13156amigaos*)
13157  library_names_spec='$libname.ixlibrary $libname.a'
13158  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13159  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'
13160  ;;
13161
13162beos*)
13163  library_names_spec='${libname}${shared_ext}'
13164  dynamic_linker="$host_os ld.so"
13165  shlibpath_var=LIBRARY_PATH
13166  ;;
13167
13168bsdi[45]*)
13169  version_type=linux
13170  need_version=no
13171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172  soname_spec='${libname}${release}${shared_ext}$major'
13173  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13174  shlibpath_var=LD_LIBRARY_PATH
13175  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13176  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13177  # the default ld.so.conf also contains /usr/contrib/lib and
13178  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13179  # libtool to hard-code these into programs
13180  ;;
13181
13182cygwin* | mingw* | pw32*)
13183  version_type=windows
13184  shrext_cmds=".dll"
13185  need_version=no
13186  need_lib_prefix=no
13187
13188  case $GCC,$host_os in
13189  yes,cygwin* | yes,mingw* | yes,pw32*)
13190    library_names_spec='$libname.dll.a'
13191    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13192    postinstall_cmds='base_file=`basename \${file}`~
13193      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13194      dldir=$destdir/`dirname \$dlpath`~
13195      test -d \$dldir || mkdir -p \$dldir~
13196      $install_prog $dir/$dlname \$dldir/$dlname~
13197      chmod a+x \$dldir/$dlname'
13198    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13199      dlpath=$dir/\$dldll~
13200       $rm \$dlpath'
13201    shlibpath_overrides_runpath=yes
13202
13203    case $host_os in
13204    cygwin*)
13205      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13206      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13207      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13208      ;;
13209    mingw*)
13210      # MinGW DLLs use traditional 'lib' prefix
13211      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13212      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13213      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13214        # It is most probably a Windows format PATH printed by
13215        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13216        # path with ; separators, and with drive letters. We can handle the
13217        # drive letters (cygwin fileutils understands them), so leave them,
13218        # especially as we might pass files found there to a mingw objdump,
13219        # which wouldn't understand a cygwinified path. Ahh.
13220        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13221      else
13222        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13223      fi
13224      ;;
13225    pw32*)
13226      # pw32 DLLs use 'pw' prefix rather than 'lib'
13227      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13228      ;;
13229    esac
13230    ;;
13231
13232  *)
13233    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13234    ;;
13235  esac
13236  dynamic_linker='Win32 ld.exe'
13237  # FIXME: first we should search . and the directory the executable is in
13238  shlibpath_var=PATH
13239  ;;
13240
13241darwin* | rhapsody*)
13242  dynamic_linker="$host_os dyld"
13243  version_type=darwin
13244  need_lib_prefix=no
13245  need_version=no
13246  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13247  soname_spec='${libname}${release}${major}$shared_ext'
13248  shlibpath_overrides_runpath=yes
13249  shlibpath_var=DYLD_LIBRARY_PATH
13250  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13251  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13252  if test "$GCC" = yes; then
13253    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"`
13254  else
13255    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13256  fi
13257  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13258  ;;
13259
13260dgux*)
13261  version_type=linux
13262  need_lib_prefix=no
13263  need_version=no
13264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13265  soname_spec='${libname}${release}${shared_ext}$major'
13266  shlibpath_var=LD_LIBRARY_PATH
13267  ;;
13268
13269freebsd1*)
13270  dynamic_linker=no
13271  ;;
13272
13273kfreebsd*-gnu)
13274  version_type=linux
13275  need_lib_prefix=no
13276  need_version=no
13277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13278  soname_spec='${libname}${release}${shared_ext}$major'
13279  shlibpath_var=LD_LIBRARY_PATH
13280  shlibpath_overrides_runpath=no
13281  hardcode_into_libs=yes
13282  dynamic_linker='GNU ld.so'
13283  ;;
13284
13285freebsd* | dragonfly*)
13286  # DragonFly does not have aout.  When/if they implement a new
13287  # versioning mechanism, adjust this.
13288  if test -x /usr/bin/objformat; then
13289    objformat=`/usr/bin/objformat`
13290  else
13291    case $host_os in
13292    freebsd[123]*) objformat=aout ;;
13293    *) objformat=elf ;;
13294    esac
13295  fi
13296  version_type=freebsd-$objformat
13297  case $version_type in
13298    freebsd-elf*)
13299      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13300      need_version=no
13301      need_lib_prefix=no
13302      ;;
13303    freebsd-*)
13304      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13305      need_version=yes
13306      ;;
13307  esac
13308  shlibpath_var=LD_LIBRARY_PATH
13309  case $host_os in
13310  freebsd2*)
13311    shlibpath_overrides_runpath=yes
13312    ;;
13313  freebsd3.[01]* | freebsdelf3.[01]*)
13314    shlibpath_overrides_runpath=yes
13315    hardcode_into_libs=yes
13316    ;;
13317  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13318  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13319    shlibpath_overrides_runpath=no
13320    hardcode_into_libs=yes
13321    ;;
13322  freebsd*) # from 4.6 on
13323    shlibpath_overrides_runpath=yes
13324    hardcode_into_libs=yes
13325    ;;
13326  esac
13327  ;;
13328
13329gnu*)
13330  version_type=linux
13331  need_lib_prefix=no
13332  need_version=no
13333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13334  soname_spec='${libname}${release}${shared_ext}$major'
13335  shlibpath_var=LD_LIBRARY_PATH
13336  hardcode_into_libs=yes
13337  ;;
13338
13339hpux9* | hpux10* | hpux11*)
13340  # Give a soname corresponding to the major version so that dld.sl refuses to
13341  # link against other versions.
13342  version_type=sunos
13343  need_lib_prefix=no
13344  need_version=no
13345  case $host_cpu in
13346  ia64*)
13347    shrext_cmds='.so'
13348    hardcode_into_libs=yes
13349    dynamic_linker="$host_os dld.so"
13350    shlibpath_var=LD_LIBRARY_PATH
13351    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353    soname_spec='${libname}${release}${shared_ext}$major'
13354    if test "X$HPUX_IA64_MODE" = X32; then
13355      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13356    else
13357      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13358    fi
13359    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13360    ;;
13361   hppa*64*)
13362     shrext_cmds='.sl'
13363     hardcode_into_libs=yes
13364     dynamic_linker="$host_os dld.sl"
13365     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13366     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368     soname_spec='${libname}${release}${shared_ext}$major'
13369     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13371     ;;
13372   *)
13373    shrext_cmds='.sl'
13374    dynamic_linker="$host_os dld.sl"
13375    shlibpath_var=SHLIB_PATH
13376    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13377    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378    soname_spec='${libname}${release}${shared_ext}$major'
13379    ;;
13380  esac
13381  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13382  postinstall_cmds='chmod 555 $lib'
13383  ;;
13384
13385interix3*)
13386  version_type=linux
13387  need_lib_prefix=no
13388  need_version=no
13389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13390  soname_spec='${libname}${release}${shared_ext}$major'
13391  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13392  shlibpath_var=LD_LIBRARY_PATH
13393  shlibpath_overrides_runpath=no
13394  hardcode_into_libs=yes
13395  ;;
13396
13397irix5* | irix6* | nonstopux*)
13398  case $host_os in
13399    nonstopux*) version_type=nonstopux ;;
13400    *)
13401	if test "$lt_cv_prog_gnu_ld" = yes; then
13402		version_type=linux
13403	else
13404		version_type=irix
13405	fi ;;
13406  esac
13407  need_lib_prefix=no
13408  need_version=no
13409  soname_spec='${libname}${release}${shared_ext}$major'
13410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13411  case $host_os in
13412  irix5* | nonstopux*)
13413    libsuff= shlibsuff=
13414    ;;
13415  *)
13416    case $LD in # libtool.m4 will add one of these switches to LD
13417    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13418      libsuff= shlibsuff= libmagic=32-bit;;
13419    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13420      libsuff=32 shlibsuff=N32 libmagic=N32;;
13421    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13422      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13423    *) libsuff= shlibsuff= libmagic=never-match;;
13424    esac
13425    ;;
13426  esac
13427  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13428  shlibpath_overrides_runpath=no
13429  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13430  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13431  hardcode_into_libs=yes
13432  ;;
13433
13434# No shared lib support for Linux oldld, aout, or coff.
13435linux*oldld* | linux*aout* | linux*coff*)
13436  dynamic_linker=no
13437  ;;
13438
13439# This must be Linux ELF.
13440linux*)
13441  version_type=linux
13442  need_lib_prefix=no
13443  need_version=no
13444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445  soname_spec='${libname}${release}${shared_ext}$major'
13446  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13447  shlibpath_var=LD_LIBRARY_PATH
13448  shlibpath_overrides_runpath=no
13449  # This implies no fast_install, which is unacceptable.
13450  # Some rework will be needed to allow for fast_install
13451  # before this can be enabled.
13452  hardcode_into_libs=yes
13453
13454  # Append ld.so.conf contents to the search path
13455  if test -f /etc/ld.so.conf; then
13456    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' ' '`
13457    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13458  fi
13459
13460  # We used to test for /lib/ld.so.1 and disable shared libraries on
13461  # powerpc, because MkLinux only supported shared libraries with the
13462  # GNU dynamic linker.  Since this was broken with cross compilers,
13463  # most powerpc-linux boxes support dynamic linking these days and
13464  # people can always --disable-shared, the test was removed, and we
13465  # assume the GNU/Linux dynamic linker is in use.
13466  dynamic_linker='GNU/Linux ld.so'
13467  ;;
13468
13469knetbsd*-gnu)
13470  version_type=linux
13471  need_lib_prefix=no
13472  need_version=no
13473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13474  soname_spec='${libname}${release}${shared_ext}$major'
13475  shlibpath_var=LD_LIBRARY_PATH
13476  shlibpath_overrides_runpath=no
13477  hardcode_into_libs=yes
13478  dynamic_linker='GNU ld.so'
13479  ;;
13480
13481netbsd*)
13482  version_type=sunos
13483  need_lib_prefix=no
13484  need_version=no
13485  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13486    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13487    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13488    dynamic_linker='NetBSD (a.out) ld.so'
13489  else
13490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13491    soname_spec='${libname}${release}${shared_ext}$major'
13492    dynamic_linker='NetBSD ld.elf_so'
13493  fi
13494  shlibpath_var=LD_LIBRARY_PATH
13495  shlibpath_overrides_runpath=yes
13496  hardcode_into_libs=yes
13497  ;;
13498
13499newsos6)
13500  version_type=linux
13501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502  shlibpath_var=LD_LIBRARY_PATH
13503  shlibpath_overrides_runpath=yes
13504  ;;
13505
13506nto-qnx*)
13507  version_type=linux
13508  need_lib_prefix=no
13509  need_version=no
13510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511  soname_spec='${libname}${release}${shared_ext}$major'
13512  shlibpath_var=LD_LIBRARY_PATH
13513  shlibpath_overrides_runpath=yes
13514  ;;
13515
13516openbsd*)
13517  version_type=sunos
13518  sys_lib_dlsearch_path_spec="/usr/lib"
13519  need_lib_prefix=no
13520  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13521  case $host_os in
13522    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13523    *)                         need_version=no  ;;
13524  esac
13525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13526  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13527  shlibpath_var=LD_LIBRARY_PATH
13528  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13529    case $host_os in
13530      openbsd2.[89] | openbsd2.[89].*)
13531	shlibpath_overrides_runpath=no
13532	;;
13533      *)
13534	shlibpath_overrides_runpath=yes
13535	;;
13536      esac
13537  else
13538    shlibpath_overrides_runpath=yes
13539  fi
13540  ;;
13541
13542os2*)
13543  libname_spec='$name'
13544  shrext_cmds=".dll"
13545  need_lib_prefix=no
13546  library_names_spec='$libname${shared_ext} $libname.a'
13547  dynamic_linker='OS/2 ld.exe'
13548  shlibpath_var=LIBPATH
13549  ;;
13550
13551osf3* | osf4* | osf5*)
13552  version_type=osf
13553  need_lib_prefix=no
13554  need_version=no
13555  soname_spec='${libname}${release}${shared_ext}$major'
13556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13557  shlibpath_var=LD_LIBRARY_PATH
13558  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13559  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13560  ;;
13561
13562solaris*)
13563  version_type=linux
13564  need_lib_prefix=no
13565  need_version=no
13566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567  soname_spec='${libname}${release}${shared_ext}$major'
13568  shlibpath_var=LD_LIBRARY_PATH
13569  shlibpath_overrides_runpath=yes
13570  hardcode_into_libs=yes
13571  # ldd complains unless libraries are executable
13572  postinstall_cmds='chmod +x $lib'
13573  ;;
13574
13575sunos4*)
13576  version_type=sunos
13577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13578  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  shlibpath_overrides_runpath=yes
13581  if test "$with_gnu_ld" = yes; then
13582    need_lib_prefix=no
13583  fi
13584  need_version=yes
13585  ;;
13586
13587sysv4 | sysv4.3*)
13588  version_type=linux
13589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590  soname_spec='${libname}${release}${shared_ext}$major'
13591  shlibpath_var=LD_LIBRARY_PATH
13592  case $host_vendor in
13593    sni)
13594      shlibpath_overrides_runpath=no
13595      need_lib_prefix=no
13596      export_dynamic_flag_spec='${wl}-Blargedynsym'
13597      runpath_var=LD_RUN_PATH
13598      ;;
13599    siemens)
13600      need_lib_prefix=no
13601      ;;
13602    motorola)
13603      need_lib_prefix=no
13604      need_version=no
13605      shlibpath_overrides_runpath=no
13606      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13607      ;;
13608  esac
13609  ;;
13610
13611sysv4*MP*)
13612  if test -d /usr/nec ;then
13613    version_type=linux
13614    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13615    soname_spec='$libname${shared_ext}.$major'
13616    shlibpath_var=LD_LIBRARY_PATH
13617  fi
13618  ;;
13619
13620sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13621  version_type=freebsd-elf
13622  need_lib_prefix=no
13623  need_version=no
13624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13625  soname_spec='${libname}${release}${shared_ext}$major'
13626  shlibpath_var=LD_LIBRARY_PATH
13627  hardcode_into_libs=yes
13628  if test "$with_gnu_ld" = yes; then
13629    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13630    shlibpath_overrides_runpath=no
13631  else
13632    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13633    shlibpath_overrides_runpath=yes
13634    case $host_os in
13635      sco3.2v5*)
13636        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13637	;;
13638    esac
13639  fi
13640  sys_lib_dlsearch_path_spec='/usr/lib'
13641  ;;
13642
13643uts4*)
13644  version_type=linux
13645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646  soname_spec='${libname}${release}${shared_ext}$major'
13647  shlibpath_var=LD_LIBRARY_PATH
13648  ;;
13649
13650*)
13651  dynamic_linker=no
13652  ;;
13653esac
13654echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13655echo "${ECHO_T}$dynamic_linker" >&6
13656test "$dynamic_linker" = no && can_build_shared=no
13657
13658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13659if test "$GCC" = yes; then
13660  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13661fi
13662
13663echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13664echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13665hardcode_action_CXX=
13666if test -n "$hardcode_libdir_flag_spec_CXX" || \
13667   test -n "$runpath_var_CXX" || \
13668   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13669
13670  # We can hardcode non-existant directories.
13671  if test "$hardcode_direct_CXX" != no &&
13672     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13673     # have to relink, otherwise we might link with an installed library
13674     # when we should be linking with a yet-to-be-installed one
13675     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13676     test "$hardcode_minus_L_CXX" != no; then
13677    # Linking always hardcodes the temporary library directory.
13678    hardcode_action_CXX=relink
13679  else
13680    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13681    hardcode_action_CXX=immediate
13682  fi
13683else
13684  # We cannot hardcode anything, or else we can only hardcode existing
13685  # directories.
13686  hardcode_action_CXX=unsupported
13687fi
13688echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13689echo "${ECHO_T}$hardcode_action_CXX" >&6
13690
13691if test "$hardcode_action_CXX" = relink; then
13692  # Fast installation is not supported
13693  enable_fast_install=no
13694elif test "$shlibpath_overrides_runpath" = yes ||
13695     test "$enable_shared" = no; then
13696  # Fast installation is not necessary
13697  enable_fast_install=needless
13698fi
13699
13700
13701# The else clause should only fire when bootstrapping the
13702# libtool distribution, otherwise you forgot to ship ltmain.sh
13703# with your package, and you will get complaints that there are
13704# no rules to generate ltmain.sh.
13705if test -f "$ltmain"; then
13706  # See if we are running on zsh, and set the options which allow our commands through
13707  # without removal of \ escapes.
13708  if test -n "${ZSH_VERSION+set}" ; then
13709    setopt NO_GLOB_SUBST
13710  fi
13711  # Now quote all the things that may contain metacharacters while being
13712  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13713  # variables and quote the copies for generation of the libtool script.
13714  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13715    SED SHELL STRIP \
13716    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13717    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13718    deplibs_check_method reload_flag reload_cmds need_locks \
13719    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13720    lt_cv_sys_global_symbol_to_c_name_address \
13721    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13722    old_postinstall_cmds old_postuninstall_cmds \
13723    compiler_CXX \
13724    CC_CXX \
13725    LD_CXX \
13726    lt_prog_compiler_wl_CXX \
13727    lt_prog_compiler_pic_CXX \
13728    lt_prog_compiler_static_CXX \
13729    lt_prog_compiler_no_builtin_flag_CXX \
13730    export_dynamic_flag_spec_CXX \
13731    thread_safe_flag_spec_CXX \
13732    whole_archive_flag_spec_CXX \
13733    enable_shared_with_static_runtimes_CXX \
13734    old_archive_cmds_CXX \
13735    old_archive_from_new_cmds_CXX \
13736    predep_objects_CXX \
13737    postdep_objects_CXX \
13738    predeps_CXX \
13739    postdeps_CXX \
13740    compiler_lib_search_path_CXX \
13741    archive_cmds_CXX \
13742    archive_expsym_cmds_CXX \
13743    postinstall_cmds_CXX \
13744    postuninstall_cmds_CXX \
13745    old_archive_from_expsyms_cmds_CXX \
13746    allow_undefined_flag_CXX \
13747    no_undefined_flag_CXX \
13748    export_symbols_cmds_CXX \
13749    hardcode_libdir_flag_spec_CXX \
13750    hardcode_libdir_flag_spec_ld_CXX \
13751    hardcode_libdir_separator_CXX \
13752    hardcode_automatic_CXX \
13753    module_cmds_CXX \
13754    module_expsym_cmds_CXX \
13755    lt_cv_prog_compiler_c_o_CXX \
13756    exclude_expsyms_CXX \
13757    include_expsyms_CXX; do
13758
13759    case $var in
13760    old_archive_cmds_CXX | \
13761    old_archive_from_new_cmds_CXX | \
13762    archive_cmds_CXX | \
13763    archive_expsym_cmds_CXX | \
13764    module_cmds_CXX | \
13765    module_expsym_cmds_CXX | \
13766    old_archive_from_expsyms_cmds_CXX | \
13767    export_symbols_cmds_CXX | \
13768    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13769    postinstall_cmds | postuninstall_cmds | \
13770    old_postinstall_cmds | old_postuninstall_cmds | \
13771    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13772      # Double-quote double-evaled strings.
13773      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13774      ;;
13775    *)
13776      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13777      ;;
13778    esac
13779  done
13780
13781  case $lt_echo in
13782  *'\$0 --fallback-echo"')
13783    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13784    ;;
13785  esac
13786
13787cfgfile="$ofile"
13788
13789  cat <<__EOF__ >> "$cfgfile"
13790# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13791
13792# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13793
13794# Shell to use when invoking shell scripts.
13795SHELL=$lt_SHELL
13796
13797# Whether or not to build shared libraries.
13798build_libtool_libs=$enable_shared
13799
13800# Whether or not to build static libraries.
13801build_old_libs=$enable_static
13802
13803# Whether or not to add -lc for building shared libraries.
13804build_libtool_need_lc=$archive_cmds_need_lc_CXX
13805
13806# Whether or not to disallow shared libs when runtime libs are static
13807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13808
13809# Whether or not to optimize for fast installation.
13810fast_install=$enable_fast_install
13811
13812# The host system.
13813host_alias=$host_alias
13814host=$host
13815host_os=$host_os
13816
13817# The build system.
13818build_alias=$build_alias
13819build=$build
13820build_os=$build_os
13821
13822# An echo program that does not interpret backslashes.
13823echo=$lt_echo
13824
13825# The archiver.
13826AR=$lt_AR
13827AR_FLAGS=$lt_AR_FLAGS
13828
13829# A C compiler.
13830LTCC=$lt_LTCC
13831
13832# LTCC compiler flags.
13833LTCFLAGS=$lt_LTCFLAGS
13834
13835# A language-specific compiler.
13836CC=$lt_compiler_CXX
13837
13838# Is the compiler the GNU C compiler?
13839with_gcc=$GCC_CXX
13840
13841# An ERE matcher.
13842EGREP=$lt_EGREP
13843
13844# The linker used to build libraries.
13845LD=$lt_LD_CXX
13846
13847# Whether we need hard or soft links.
13848LN_S=$lt_LN_S
13849
13850# A BSD-compatible nm program.
13851NM=$lt_NM
13852
13853# A symbol stripping program
13854STRIP=$lt_STRIP
13855
13856# Used to examine libraries when file_magic_cmd begins "file"
13857MAGIC_CMD=$MAGIC_CMD
13858
13859# Used on cygwin: DLL creation program.
13860DLLTOOL="$DLLTOOL"
13861
13862# Used on cygwin: object dumper.
13863OBJDUMP="$OBJDUMP"
13864
13865# Used on cygwin: assembler.
13866AS="$AS"
13867
13868# The name of the directory that contains temporary libtool files.
13869objdir=$objdir
13870
13871# How to create reloadable object files.
13872reload_flag=$lt_reload_flag
13873reload_cmds=$lt_reload_cmds
13874
13875# How to pass a linker flag through the compiler.
13876wl=$lt_lt_prog_compiler_wl_CXX
13877
13878# Object file suffix (normally "o").
13879objext="$ac_objext"
13880
13881# Old archive suffix (normally "a").
13882libext="$libext"
13883
13884# Shared library suffix (normally ".so").
13885shrext_cmds='$shrext_cmds'
13886
13887# Executable file suffix (normally "").
13888exeext="$exeext"
13889
13890# Additional compiler flags for building library objects.
13891pic_flag=$lt_lt_prog_compiler_pic_CXX
13892pic_mode=$pic_mode
13893
13894# What is the maximum length of a command?
13895max_cmd_len=$lt_cv_sys_max_cmd_len
13896
13897# Does compiler simultaneously support -c and -o options?
13898compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13899
13900# Must we lock files when doing compilation?
13901need_locks=$lt_need_locks
13902
13903# Do we need the lib prefix for modules?
13904need_lib_prefix=$need_lib_prefix
13905
13906# Do we need a version for libraries?
13907need_version=$need_version
13908
13909# Whether dlopen is supported.
13910dlopen_support=$enable_dlopen
13911
13912# Whether dlopen of programs is supported.
13913dlopen_self=$enable_dlopen_self
13914
13915# Whether dlopen of statically linked programs is supported.
13916dlopen_self_static=$enable_dlopen_self_static
13917
13918# Compiler flag to prevent dynamic linking.
13919link_static_flag=$lt_lt_prog_compiler_static_CXX
13920
13921# Compiler flag to turn off builtin functions.
13922no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13923
13924# Compiler flag to allow reflexive dlopens.
13925export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13926
13927# Compiler flag to generate shared objects directly from archives.
13928whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13929
13930# Compiler flag to generate thread-safe objects.
13931thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13932
13933# Library versioning type.
13934version_type=$version_type
13935
13936# Format of library name prefix.
13937libname_spec=$lt_libname_spec
13938
13939# List of archive names.  First name is the real one, the rest are links.
13940# The last name is the one that the linker finds with -lNAME.
13941library_names_spec=$lt_library_names_spec
13942
13943# The coded name of the library, if different from the real name.
13944soname_spec=$lt_soname_spec
13945
13946# Commands used to build and install an old-style archive.
13947RANLIB=$lt_RANLIB
13948old_archive_cmds=$lt_old_archive_cmds_CXX
13949old_postinstall_cmds=$lt_old_postinstall_cmds
13950old_postuninstall_cmds=$lt_old_postuninstall_cmds
13951
13952# Create an old-style archive from a shared archive.
13953old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13954
13955# Create a temporary old-style archive to link instead of a shared archive.
13956old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13957
13958# Commands used to build and install a shared archive.
13959archive_cmds=$lt_archive_cmds_CXX
13960archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13961postinstall_cmds=$lt_postinstall_cmds
13962postuninstall_cmds=$lt_postuninstall_cmds
13963
13964# Commands used to build a loadable module (assumed same as above if empty)
13965module_cmds=$lt_module_cmds_CXX
13966module_expsym_cmds=$lt_module_expsym_cmds_CXX
13967
13968# Commands to strip libraries.
13969old_striplib=$lt_old_striplib
13970striplib=$lt_striplib
13971
13972# Dependencies to place before the objects being linked to create a
13973# shared library.
13974predep_objects=$lt_predep_objects_CXX
13975
13976# Dependencies to place after the objects being linked to create a
13977# shared library.
13978postdep_objects=$lt_postdep_objects_CXX
13979
13980# Dependencies to place before the objects being linked to create a
13981# shared library.
13982predeps=$lt_predeps_CXX
13983
13984# Dependencies to place after the objects being linked to create a
13985# shared library.
13986postdeps=$lt_postdeps_CXX
13987
13988# The library search path used internally by the compiler when linking
13989# a shared library.
13990compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13991
13992# Method to check whether dependent libraries are shared objects.
13993deplibs_check_method=$lt_deplibs_check_method
13994
13995# Command to use when deplibs_check_method == file_magic.
13996file_magic_cmd=$lt_file_magic_cmd
13997
13998# Flag that allows shared libraries with undefined symbols to be built.
13999allow_undefined_flag=$lt_allow_undefined_flag_CXX
14000
14001# Flag that forces no undefined symbols.
14002no_undefined_flag=$lt_no_undefined_flag_CXX
14003
14004# Commands used to finish a libtool library installation in a directory.
14005finish_cmds=$lt_finish_cmds
14006
14007# Same as above, but a single script fragment to be evaled but not shown.
14008finish_eval=$lt_finish_eval
14009
14010# Take the output of nm and produce a listing of raw symbols and C names.
14011global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14012
14013# Transform the output of nm in a proper C declaration
14014global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14015
14016# Transform the output of nm in a C name address pair
14017global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14018
14019# This is the shared library runtime path variable.
14020runpath_var=$runpath_var
14021
14022# This is the shared library path variable.
14023shlibpath_var=$shlibpath_var
14024
14025# Is shlibpath searched before the hard-coded library search path?
14026shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14027
14028# How to hardcode a shared library path into an executable.
14029hardcode_action=$hardcode_action_CXX
14030
14031# Whether we should hardcode library paths into libraries.
14032hardcode_into_libs=$hardcode_into_libs
14033
14034# Flag to hardcode \$libdir into a binary during linking.
14035# This must work even if \$libdir does not exist.
14036hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14037
14038# If ld is used when linking, flag to hardcode \$libdir into
14039# a binary during linking. This must work even if \$libdir does
14040# not exist.
14041hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14042
14043# Whether we need a single -rpath flag with a separated argument.
14044hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14045
14046# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14047# resulting binary.
14048hardcode_direct=$hardcode_direct_CXX
14049
14050# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14051# resulting binary.
14052hardcode_minus_L=$hardcode_minus_L_CXX
14053
14054# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14055# the resulting binary.
14056hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14057
14058# Set to yes if building a shared library automatically hardcodes DIR into the library
14059# and all subsequent libraries and executables linked against it.
14060hardcode_automatic=$hardcode_automatic_CXX
14061
14062# Variables whose values should be saved in libtool wrapper scripts and
14063# restored at relink time.
14064variables_saved_for_relink="$variables_saved_for_relink"
14065
14066# Whether libtool must link a program against all its dependency libraries.
14067link_all_deplibs=$link_all_deplibs_CXX
14068
14069# Compile-time system search path for libraries
14070sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14071
14072# Run-time system search path for libraries
14073sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14074
14075# Fix the shell variable \$srcfile for the compiler.
14076fix_srcfile_path="$fix_srcfile_path_CXX"
14077
14078# Set to yes if exported symbols are required.
14079always_export_symbols=$always_export_symbols_CXX
14080
14081# The commands to list exported symbols.
14082export_symbols_cmds=$lt_export_symbols_cmds_CXX
14083
14084# The commands to extract the exported symbol list from a shared archive.
14085extract_expsyms_cmds=$lt_extract_expsyms_cmds
14086
14087# Symbols that should not be listed in the preloaded symbols.
14088exclude_expsyms=$lt_exclude_expsyms_CXX
14089
14090# Symbols that must always be exported.
14091include_expsyms=$lt_include_expsyms_CXX
14092
14093# ### END LIBTOOL TAG CONFIG: $tagname
14094
14095__EOF__
14096
14097
14098else
14099  # If there is no Makefile yet, we rely on a make rule to execute
14100  # `config.status --recheck' to rerun these tests and create the
14101  # libtool script then.
14102  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14103  if test -f "$ltmain_in"; then
14104    test -f Makefile && make "$ltmain"
14105  fi
14106fi
14107
14108
14109ac_ext=c
14110ac_cpp='$CPP $CPPFLAGS'
14111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14113ac_compiler_gnu=$ac_cv_c_compiler_gnu
14114
14115CC=$lt_save_CC
14116LDCXX=$LD
14117LD=$lt_save_LD
14118GCC=$lt_save_GCC
14119with_gnu_ldcxx=$with_gnu_ld
14120with_gnu_ld=$lt_save_with_gnu_ld
14121lt_cv_path_LDCXX=$lt_cv_path_LD
14122lt_cv_path_LD=$lt_save_path_LD
14123lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14124lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14125
14126	else
14127	  tagname=""
14128	fi
14129	;;
14130
14131      F77)
14132	if test -n "$F77" && test "X$F77" != "Xno"; then
14133
14134ac_ext=f
14135ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14136ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14137ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14138
14139
14140archive_cmds_need_lc_F77=no
14141allow_undefined_flag_F77=
14142always_export_symbols_F77=no
14143archive_expsym_cmds_F77=
14144export_dynamic_flag_spec_F77=
14145hardcode_direct_F77=no
14146hardcode_libdir_flag_spec_F77=
14147hardcode_libdir_flag_spec_ld_F77=
14148hardcode_libdir_separator_F77=
14149hardcode_minus_L_F77=no
14150hardcode_automatic_F77=no
14151module_cmds_F77=
14152module_expsym_cmds_F77=
14153link_all_deplibs_F77=unknown
14154old_archive_cmds_F77=$old_archive_cmds
14155no_undefined_flag_F77=
14156whole_archive_flag_spec_F77=
14157enable_shared_with_static_runtimes_F77=no
14158
14159# Source file extension for f77 test sources.
14160ac_ext=f
14161
14162# Object file extension for compiled f77 test sources.
14163objext=o
14164objext_F77=$objext
14165
14166# Code to be used in simple compile tests
14167lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14168
14169# Code to be used in simple link tests
14170lt_simple_link_test_code="      program t\n      end\n"
14171
14172# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14173
14174# If no C compiler was specified, use CC.
14175LTCC=${LTCC-"$CC"}
14176
14177# If no C compiler flags were specified, use CFLAGS.
14178LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14179
14180# Allow CC to be a program name with arguments.
14181compiler=$CC
14182
14183
14184# save warnings/boilerplate of simple test code
14185ac_outfile=conftest.$ac_objext
14186printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14187eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14188_lt_compiler_boilerplate=`cat conftest.err`
14189$rm conftest*
14190
14191ac_outfile=conftest.$ac_objext
14192printf "$lt_simple_link_test_code" >conftest.$ac_ext
14193eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14194_lt_linker_boilerplate=`cat conftest.err`
14195$rm conftest*
14196
14197
14198# Allow CC to be a program name with arguments.
14199lt_save_CC="$CC"
14200CC=${F77-"f77"}
14201compiler=$CC
14202compiler_F77=$CC
14203for cc_temp in $compiler""; do
14204  case $cc_temp in
14205    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14206    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14207    \-*) ;;
14208    *) break;;
14209  esac
14210done
14211cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14212
14213
14214echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14215echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14216echo "$as_me:$LINENO: result: $can_build_shared" >&5
14217echo "${ECHO_T}$can_build_shared" >&6
14218
14219echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14220echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14221test "$can_build_shared" = "no" && enable_shared=no
14222
14223# On AIX, shared libraries and static libraries use the same namespace, and
14224# are all built from PIC.
14225case $host_os in
14226aix3*)
14227  test "$enable_shared" = yes && enable_static=no
14228  if test -n "$RANLIB"; then
14229    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14230    postinstall_cmds='$RANLIB $lib'
14231  fi
14232  ;;
14233aix4* | aix5*)
14234  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14235    test "$enable_shared" = yes && enable_static=no
14236  fi
14237  ;;
14238esac
14239echo "$as_me:$LINENO: result: $enable_shared" >&5
14240echo "${ECHO_T}$enable_shared" >&6
14241
14242echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14243echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14244# Make sure either enable_shared or enable_static is yes.
14245test "$enable_shared" = yes || enable_static=yes
14246echo "$as_me:$LINENO: result: $enable_static" >&5
14247echo "${ECHO_T}$enable_static" >&6
14248
14249GCC_F77="$G77"
14250LD_F77="$LD"
14251
14252lt_prog_compiler_wl_F77=
14253lt_prog_compiler_pic_F77=
14254lt_prog_compiler_static_F77=
14255
14256echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14258
14259  if test "$GCC" = yes; then
14260    lt_prog_compiler_wl_F77='-Wl,'
14261    lt_prog_compiler_static_F77='-static'
14262
14263    case $host_os in
14264      aix*)
14265      # All AIX code is PIC.
14266      if test "$host_cpu" = ia64; then
14267	# AIX 5 now supports IA64 processor
14268	lt_prog_compiler_static_F77='-Bstatic'
14269      fi
14270      ;;
14271
14272    amigaos*)
14273      # FIXME: we need at least 68020 code to build shared libraries, but
14274      # adding the `-m68020' flag to GCC prevents building anything better,
14275      # like `-m68040'.
14276      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14277      ;;
14278
14279    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14280      # PIC is the default for these OSes.
14281      ;;
14282
14283    mingw* | pw32* | os2*)
14284      # This hack is so that the source file can tell whether it is being
14285      # built for inclusion in a dll (and should export symbols for example).
14286      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14287      ;;
14288
14289    darwin* | rhapsody*)
14290      # PIC is the default on this platform
14291      # Common symbols not allowed in MH_DYLIB files
14292      lt_prog_compiler_pic_F77='-fno-common'
14293      ;;
14294
14295    interix3*)
14296      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14297      # Instead, we relocate shared libraries at runtime.
14298      ;;
14299
14300    msdosdjgpp*)
14301      # Just because we use GCC doesn't mean we suddenly get shared libraries
14302      # on systems that don't support them.
14303      lt_prog_compiler_can_build_shared_F77=no
14304      enable_shared=no
14305      ;;
14306
14307    sysv4*MP*)
14308      if test -d /usr/nec; then
14309	lt_prog_compiler_pic_F77=-Kconform_pic
14310      fi
14311      ;;
14312
14313    hpux*)
14314      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14315      # not for PA HP-UX.
14316      case $host_cpu in
14317      hppa*64*|ia64*)
14318	# +Z the default
14319	;;
14320      *)
14321	lt_prog_compiler_pic_F77='-fPIC'
14322	;;
14323      esac
14324      ;;
14325
14326    *)
14327      lt_prog_compiler_pic_F77='-fPIC'
14328      ;;
14329    esac
14330  else
14331    # PORTME Check for flag to pass linker flags through the system compiler.
14332    case $host_os in
14333    aix*)
14334      lt_prog_compiler_wl_F77='-Wl,'
14335      if test "$host_cpu" = ia64; then
14336	# AIX 5 now supports IA64 processor
14337	lt_prog_compiler_static_F77='-Bstatic'
14338      else
14339	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14340      fi
14341      ;;
14342      darwin*)
14343        # PIC is the default on this platform
14344        # Common symbols not allowed in MH_DYLIB files
14345       case $cc_basename in
14346         xlc*)
14347         lt_prog_compiler_pic_F77='-qnocommon'
14348         lt_prog_compiler_wl_F77='-Wl,'
14349         ;;
14350       esac
14351       ;;
14352
14353    mingw* | pw32* | os2*)
14354      # This hack is so that the source file can tell whether it is being
14355      # built for inclusion in a dll (and should export symbols for example).
14356      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14357      ;;
14358
14359    hpux9* | hpux10* | hpux11*)
14360      lt_prog_compiler_wl_F77='-Wl,'
14361      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14362      # not for PA HP-UX.
14363      case $host_cpu in
14364      hppa*64*|ia64*)
14365	# +Z the default
14366	;;
14367      *)
14368	lt_prog_compiler_pic_F77='+Z'
14369	;;
14370      esac
14371      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14372      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14373      ;;
14374
14375    irix5* | irix6* | nonstopux*)
14376      lt_prog_compiler_wl_F77='-Wl,'
14377      # PIC (with -KPIC) is the default.
14378      lt_prog_compiler_static_F77='-non_shared'
14379      ;;
14380
14381    newsos6)
14382      lt_prog_compiler_pic_F77='-KPIC'
14383      lt_prog_compiler_static_F77='-Bstatic'
14384      ;;
14385
14386    linux*)
14387      case $cc_basename in
14388      icc* | ecc*)
14389	lt_prog_compiler_wl_F77='-Wl,'
14390	lt_prog_compiler_pic_F77='-KPIC'
14391	lt_prog_compiler_static_F77='-static'
14392        ;;
14393      pgcc* | pgf77* | pgf90* | pgf95*)
14394        # Portland Group compilers (*not* the Pentium gcc compiler,
14395	# which looks to be a dead project)
14396	lt_prog_compiler_wl_F77='-Wl,'
14397	lt_prog_compiler_pic_F77='-fpic'
14398	lt_prog_compiler_static_F77='-Bstatic'
14399        ;;
14400      ccc*)
14401        lt_prog_compiler_wl_F77='-Wl,'
14402        # All Alpha code is PIC.
14403        lt_prog_compiler_static_F77='-non_shared'
14404        ;;
14405      esac
14406      ;;
14407
14408    osf3* | osf4* | osf5*)
14409      lt_prog_compiler_wl_F77='-Wl,'
14410      # All OSF/1 code is PIC.
14411      lt_prog_compiler_static_F77='-non_shared'
14412      ;;
14413
14414    solaris*)
14415      lt_prog_compiler_pic_F77='-KPIC'
14416      lt_prog_compiler_static_F77='-Bstatic'
14417      case $cc_basename in
14418      f77* | f90* | f95*)
14419	lt_prog_compiler_wl_F77='-Qoption ld ';;
14420      *)
14421	lt_prog_compiler_wl_F77='-Wl,';;
14422      esac
14423      ;;
14424
14425    sunos4*)
14426      lt_prog_compiler_wl_F77='-Qoption ld '
14427      lt_prog_compiler_pic_F77='-PIC'
14428      lt_prog_compiler_static_F77='-Bstatic'
14429      ;;
14430
14431    sysv4 | sysv4.2uw2* | sysv4.3*)
14432      lt_prog_compiler_wl_F77='-Wl,'
14433      lt_prog_compiler_pic_F77='-KPIC'
14434      lt_prog_compiler_static_F77='-Bstatic'
14435      ;;
14436
14437    sysv4*MP*)
14438      if test -d /usr/nec ;then
14439	lt_prog_compiler_pic_F77='-Kconform_pic'
14440	lt_prog_compiler_static_F77='-Bstatic'
14441      fi
14442      ;;
14443
14444    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14445      lt_prog_compiler_wl_F77='-Wl,'
14446      lt_prog_compiler_pic_F77='-KPIC'
14447      lt_prog_compiler_static_F77='-Bstatic'
14448      ;;
14449
14450    unicos*)
14451      lt_prog_compiler_wl_F77='-Wl,'
14452      lt_prog_compiler_can_build_shared_F77=no
14453      ;;
14454
14455    uts4*)
14456      lt_prog_compiler_pic_F77='-pic'
14457      lt_prog_compiler_static_F77='-Bstatic'
14458      ;;
14459
14460    *)
14461      lt_prog_compiler_can_build_shared_F77=no
14462      ;;
14463    esac
14464  fi
14465
14466echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14467echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14468
14469#
14470# Check to make sure the PIC flag actually works.
14471#
14472if test -n "$lt_prog_compiler_pic_F77"; then
14473
14474echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14475echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14476if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14477  echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479  lt_prog_compiler_pic_works_F77=no
14480  ac_outfile=conftest.$ac_objext
14481   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14482   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14483   # Insert the option either (1) after the last *FLAGS variable, or
14484   # (2) before a word containing "conftest.", or (3) at the end.
14485   # Note that $ac_compile itself does not contain backslashes and begins
14486   # with a dollar sign (not a hyphen), so the echo should work correctly.
14487   # The option is referenced via a variable to avoid confusing sed.
14488   lt_compile=`echo "$ac_compile" | $SED \
14489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14491   -e 's:$: $lt_compiler_flag:'`
14492   (eval echo "\"\$as_me:14492: $lt_compile\"" >&5)
14493   (eval "$lt_compile" 2>conftest.err)
14494   ac_status=$?
14495   cat conftest.err >&5
14496   echo "$as_me:14496: \$? = $ac_status" >&5
14497   if (exit $ac_status) && test -s "$ac_outfile"; then
14498     # The compiler can only warn and ignore the option if not recognized
14499     # So say no if there are warnings other than the usual output.
14500     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14501     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14502     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14503       lt_prog_compiler_pic_works_F77=yes
14504     fi
14505   fi
14506   $rm conftest*
14507
14508fi
14509echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14510echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14511
14512if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14513    case $lt_prog_compiler_pic_F77 in
14514     "" | " "*) ;;
14515     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14516     esac
14517else
14518    lt_prog_compiler_pic_F77=
14519     lt_prog_compiler_can_build_shared_F77=no
14520fi
14521
14522fi
14523case $host_os in
14524  # For platforms which do not support PIC, -DPIC is meaningless:
14525  *djgpp*)
14526    lt_prog_compiler_pic_F77=
14527    ;;
14528  *)
14529    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14530    ;;
14531esac
14532
14533#
14534# Check to make sure the static flag actually works.
14535#
14536wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14537echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14538echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14539if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14540  echo $ECHO_N "(cached) $ECHO_C" >&6
14541else
14542  lt_prog_compiler_static_works_F77=no
14543   save_LDFLAGS="$LDFLAGS"
14544   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14545   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14546   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14547     # The linker can only warn and ignore the option if not recognized
14548     # So say no if there are warnings
14549     if test -s conftest.err; then
14550       # Append any errors to the config.log.
14551       cat conftest.err 1>&5
14552       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14553       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14554       if diff conftest.exp conftest.er2 >/dev/null; then
14555         lt_prog_compiler_static_works_F77=yes
14556       fi
14557     else
14558       lt_prog_compiler_static_works_F77=yes
14559     fi
14560   fi
14561   $rm conftest*
14562   LDFLAGS="$save_LDFLAGS"
14563
14564fi
14565echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14566echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14567
14568if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14569    :
14570else
14571    lt_prog_compiler_static_F77=
14572fi
14573
14574
14575echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14576echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14577if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14578  echo $ECHO_N "(cached) $ECHO_C" >&6
14579else
14580  lt_cv_prog_compiler_c_o_F77=no
14581   $rm -r conftest 2>/dev/null
14582   mkdir conftest
14583   cd conftest
14584   mkdir out
14585   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14586
14587   lt_compiler_flag="-o out/conftest2.$ac_objext"
14588   # Insert the option either (1) after the last *FLAGS variable, or
14589   # (2) before a word containing "conftest.", or (3) at the end.
14590   # Note that $ac_compile itself does not contain backslashes and begins
14591   # with a dollar sign (not a hyphen), so the echo should work correctly.
14592   lt_compile=`echo "$ac_compile" | $SED \
14593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14595   -e 's:$: $lt_compiler_flag:'`
14596   (eval echo "\"\$as_me:14596: $lt_compile\"" >&5)
14597   (eval "$lt_compile" 2>out/conftest.err)
14598   ac_status=$?
14599   cat out/conftest.err >&5
14600   echo "$as_me:14600: \$? = $ac_status" >&5
14601   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14602   then
14603     # The compiler can only warn and ignore the option if not recognized
14604     # So say no if there are warnings
14605     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14606     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14607     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14608       lt_cv_prog_compiler_c_o_F77=yes
14609     fi
14610   fi
14611   chmod u+w . 2>&5
14612   $rm conftest*
14613   # SGI C++ compiler will create directory out/ii_files/ for
14614   # template instantiation
14615   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14616   $rm out/* && rmdir out
14617   cd ..
14618   rmdir conftest
14619   $rm conftest*
14620
14621fi
14622echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14623echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14624
14625
14626hard_links="nottested"
14627if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14628  # do not overwrite the value of need_locks provided by the user
14629  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14630echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14631  hard_links=yes
14632  $rm conftest*
14633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14634  touch conftest.a
14635  ln conftest.a conftest.b 2>&5 || hard_links=no
14636  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14637  echo "$as_me:$LINENO: result: $hard_links" >&5
14638echo "${ECHO_T}$hard_links" >&6
14639  if test "$hard_links" = no; then
14640    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14641echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14642    need_locks=warn
14643  fi
14644else
14645  need_locks=no
14646fi
14647
14648echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14649echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14650
14651  runpath_var=
14652  allow_undefined_flag_F77=
14653  enable_shared_with_static_runtimes_F77=no
14654  archive_cmds_F77=
14655  archive_expsym_cmds_F77=
14656  old_archive_From_new_cmds_F77=
14657  old_archive_from_expsyms_cmds_F77=
14658  export_dynamic_flag_spec_F77=
14659  whole_archive_flag_spec_F77=
14660  thread_safe_flag_spec_F77=
14661  hardcode_libdir_flag_spec_F77=
14662  hardcode_libdir_flag_spec_ld_F77=
14663  hardcode_libdir_separator_F77=
14664  hardcode_direct_F77=no
14665  hardcode_minus_L_F77=no
14666  hardcode_shlibpath_var_F77=unsupported
14667  link_all_deplibs_F77=unknown
14668  hardcode_automatic_F77=no
14669  module_cmds_F77=
14670  module_expsym_cmds_F77=
14671  always_export_symbols_F77=no
14672  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14673  # include_expsyms should be a list of space-separated symbols to be *always*
14674  # included in the symbol list
14675  include_expsyms_F77=
14676  # exclude_expsyms can be an extended regexp of symbols to exclude
14677  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14678  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14679  # as well as any symbol that contains `d'.
14680  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14681  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14682  # platforms (ab)use it in PIC code, but their linkers get confused if
14683  # the symbol is explicitly referenced.  Since portable code cannot
14684  # rely on this symbol name, it's probably fine to never include it in
14685  # preloaded symbol tables.
14686  extract_expsyms_cmds=
14687  # Just being paranoid about ensuring that cc_basename is set.
14688  for cc_temp in $compiler""; do
14689  case $cc_temp in
14690    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14691    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14692    \-*) ;;
14693    *) break;;
14694  esac
14695done
14696cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14697
14698  case $host_os in
14699  cygwin* | mingw* | pw32*)
14700    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14701    # When not using gcc, we currently assume that we are using
14702    # Microsoft Visual C++.
14703    if test "$GCC" != yes; then
14704      with_gnu_ld=no
14705    fi
14706    ;;
14707  interix*)
14708    # we just hope/assume this is gcc and not c89 (= MSVC++)
14709    with_gnu_ld=yes
14710    ;;
14711  openbsd*)
14712    with_gnu_ld=no
14713    ;;
14714  esac
14715
14716  ld_shlibs_F77=yes
14717  if test "$with_gnu_ld" = yes; then
14718    # If archive_cmds runs LD, not CC, wlarc should be empty
14719    wlarc='${wl}'
14720
14721    # Set some defaults for GNU ld with shared library support. These
14722    # are reset later if shared libraries are not supported. Putting them
14723    # here allows them to be overridden if necessary.
14724    runpath_var=LD_RUN_PATH
14725    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14726    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14727    # ancient GNU ld didn't support --whole-archive et. al.
14728    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14729	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14730      else
14731  	whole_archive_flag_spec_F77=
14732    fi
14733    supports_anon_versioning=no
14734    case `$LD -v 2>/dev/null` in
14735      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14736      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14737      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14738      *\ 2.11.*) ;; # other 2.11 versions
14739      *) supports_anon_versioning=yes ;;
14740    esac
14741
14742    # See if GNU ld supports shared libraries.
14743    case $host_os in
14744    aix3* | aix4* | aix5*)
14745      # On AIX/PPC, the GNU linker is very broken
14746      if test "$host_cpu" != ia64; then
14747	ld_shlibs_F77=no
14748	cat <<EOF 1>&2
14749
14750*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14751*** to be unable to reliably create shared libraries on AIX.
14752*** Therefore, libtool is disabling shared libraries support.  If you
14753*** really care for shared libraries, you may want to modify your PATH
14754*** so that a non-GNU linker is found, and then restart.
14755
14756EOF
14757      fi
14758      ;;
14759
14760    amigaos*)
14761      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)'
14762      hardcode_libdir_flag_spec_F77='-L$libdir'
14763      hardcode_minus_L_F77=yes
14764
14765      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14766      # that the semantics of dynamic libraries on AmigaOS, at least up
14767      # to version 4, is to share data among multiple programs linked
14768      # with the same dynamic library.  Since this doesn't match the
14769      # behavior of shared libraries on other platforms, we can't use
14770      # them.
14771      ld_shlibs_F77=no
14772      ;;
14773
14774    beos*)
14775      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14776	allow_undefined_flag_F77=unsupported
14777	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14778	# support --undefined.  This deserves some investigation.  FIXME
14779	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14780      else
14781	ld_shlibs_F77=no
14782      fi
14783      ;;
14784
14785    cygwin* | mingw* | pw32*)
14786      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14787      # as there is no search path for DLLs.
14788      hardcode_libdir_flag_spec_F77='-L$libdir'
14789      allow_undefined_flag_F77=unsupported
14790      always_export_symbols_F77=no
14791      enable_shared_with_static_runtimes_F77=yes
14792      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14793
14794      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14795        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14796	# If the export-symbols file already is a .def file (1st line
14797	# is EXPORTS), use it as is; otherwise, prepend...
14798	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14799	  cp $export_symbols $output_objdir/$soname.def;
14800	else
14801	  echo EXPORTS > $output_objdir/$soname.def;
14802	  cat $export_symbols >> $output_objdir/$soname.def;
14803	fi~
14804	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14805      else
14806	ld_shlibs_F77=no
14807      fi
14808      ;;
14809
14810    interix3*)
14811      hardcode_direct_F77=no
14812      hardcode_shlibpath_var_F77=no
14813      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14814      export_dynamic_flag_spec_F77='${wl}-E'
14815      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14816      # Instead, shared libraries are loaded at an image base (0x10000000 by
14817      # default) and relocated if they conflict, which is a slow very memory
14818      # consuming and fragmenting process.  To avoid this, we pick a random,
14819      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14820      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14821      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'
14822      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'
14823      ;;
14824
14825    linux*)
14826      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14827	tmp_addflag=
14828	case $cc_basename,$host_cpu in
14829	pgcc*)				# Portland Group C compiler
14830	  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'
14831	  tmp_addflag=' $pic_flag'
14832	  ;;
14833	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14834	  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'
14835	  tmp_addflag=' $pic_flag -Mnomain' ;;
14836	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14837	  tmp_addflag=' -i_dynamic' ;;
14838	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14839	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14840	ifc* | ifort*)			# Intel Fortran compiler
14841	  tmp_addflag=' -nofor_main' ;;
14842	esac
14843	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14844
14845	if test $supports_anon_versioning = yes; then
14846	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14847  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14848  $echo "local: *; };" >> $output_objdir/$libname.ver~
14849	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14850	fi
14851      else
14852	ld_shlibs_F77=no
14853      fi
14854      ;;
14855
14856    netbsd*)
14857      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14858	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14859	wlarc=
14860      else
14861	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14863      fi
14864      ;;
14865
14866    solaris*)
14867      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14868	ld_shlibs_F77=no
14869	cat <<EOF 1>&2
14870
14871*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14872*** create shared libraries on Solaris systems.  Therefore, libtool
14873*** is disabling shared libraries support.  We urge you to upgrade GNU
14874*** binutils to release 2.9.1 or newer.  Another option is to modify
14875*** your PATH or compiler configuration so that the native linker is
14876*** used, and then restart.
14877
14878EOF
14879      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14880	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14881	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14882      else
14883	ld_shlibs_F77=no
14884      fi
14885      ;;
14886
14887    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14888      case `$LD -v 2>&1` in
14889        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14890	ld_shlibs_F77=no
14891	cat <<_LT_EOF 1>&2
14892
14893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14894*** reliably create shared libraries on SCO systems.  Therefore, libtool
14895*** is disabling shared libraries support.  We urge you to upgrade GNU
14896*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14897*** your PATH or compiler configuration so that the native linker is
14898*** used, and then restart.
14899
14900_LT_EOF
14901	;;
14902	*)
14903	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14904	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14905	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14906	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14907	  else
14908	    ld_shlibs_F77=no
14909	  fi
14910	;;
14911      esac
14912      ;;
14913
14914    sunos4*)
14915      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14916      wlarc=
14917      hardcode_direct_F77=yes
14918      hardcode_shlibpath_var_F77=no
14919      ;;
14920
14921    *)
14922      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14923	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14924	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925      else
14926	ld_shlibs_F77=no
14927      fi
14928      ;;
14929    esac
14930
14931    if test "$ld_shlibs_F77" = no; then
14932      runpath_var=
14933      hardcode_libdir_flag_spec_F77=
14934      export_dynamic_flag_spec_F77=
14935      whole_archive_flag_spec_F77=
14936    fi
14937  else
14938    # PORTME fill in a description of your system's linker (not GNU ld)
14939    case $host_os in
14940    aix3*)
14941      allow_undefined_flag_F77=unsupported
14942      always_export_symbols_F77=yes
14943      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'
14944      # Note: this linker hardcodes the directories in LIBPATH if there
14945      # are no directories specified by -L.
14946      hardcode_minus_L_F77=yes
14947      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14948	# Neither direct hardcoding nor static linking is supported with a
14949	# broken collect2.
14950	hardcode_direct_F77=unsupported
14951      fi
14952      ;;
14953
14954    aix4* | aix5*)
14955      if test "$host_cpu" = ia64; then
14956	# On IA64, the linker does run time linking by default, so we don't
14957	# have to do anything special.
14958	aix_use_runtimelinking=no
14959	exp_sym_flag='-Bexport'
14960	no_entry_flag=""
14961      else
14962	# If we're using GNU nm, then we don't want the "-C" option.
14963	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14964	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14965	  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'
14966	else
14967	  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'
14968	fi
14969	aix_use_runtimelinking=no
14970
14971	# Test if we are trying to use run time linking or normal
14972	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14973	# need to do runtime linking.
14974	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14975	  for ld_flag in $LDFLAGS; do
14976  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14977  	    aix_use_runtimelinking=yes
14978  	    break
14979  	  fi
14980	  done
14981	  ;;
14982	esac
14983
14984	exp_sym_flag='-bexport'
14985	no_entry_flag='-bnoentry'
14986      fi
14987
14988      # When large executables or shared objects are built, AIX ld can
14989      # have problems creating the table of contents.  If linking a library
14990      # or program results in "error TOC overflow" add -mminimal-toc to
14991      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14992      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14993
14994      archive_cmds_F77=''
14995      hardcode_direct_F77=yes
14996      hardcode_libdir_separator_F77=':'
14997      link_all_deplibs_F77=yes
14998
14999      if test "$GCC" = yes; then
15000	case $host_os in aix4.[012]|aix4.[012].*)
15001	# We only want to do this on AIX 4.2 and lower, the check
15002	# below for broken collect2 doesn't work under 4.3+
15003	  collect2name=`${CC} -print-prog-name=collect2`
15004	  if test -f "$collect2name" && \
15005  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15006	  then
15007  	  # We have reworked collect2
15008  	  hardcode_direct_F77=yes
15009	  else
15010  	  # We have old collect2
15011  	  hardcode_direct_F77=unsupported
15012  	  # It fails to find uninstalled libraries when the uninstalled
15013  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15014  	  # to unsupported forces relinking
15015  	  hardcode_minus_L_F77=yes
15016  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15017  	  hardcode_libdir_separator_F77=
15018	  fi
15019	  ;;
15020	esac
15021	shared_flag='-shared'
15022	if test "$aix_use_runtimelinking" = yes; then
15023	  shared_flag="$shared_flag "'${wl}-G'
15024	fi
15025      else
15026	# not using gcc
15027	if test "$host_cpu" = ia64; then
15028  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15029  	# chokes on -Wl,-G. The following line is correct:
15030	  shared_flag='-G'
15031	else
15032	  if test "$aix_use_runtimelinking" = yes; then
15033	    shared_flag='${wl}-G'
15034	  else
15035	    shared_flag='${wl}-bM:SRE'
15036	  fi
15037	fi
15038      fi
15039
15040      # It seems that -bexpall does not export symbols beginning with
15041      # underscore (_), so it is better to generate a list of symbols to export.
15042      always_export_symbols_F77=yes
15043      if test "$aix_use_runtimelinking" = yes; then
15044	# Warning - without using the other runtime loading flags (-brtl),
15045	# -berok will link without error, but may produce a broken library.
15046	allow_undefined_flag_F77='-berok'
15047       # Determine the default libpath from the value encoded in an empty executable.
15048       cat >conftest.$ac_ext <<_ACEOF
15049      program main
15050
15051      end
15052_ACEOF
15053rm -f conftest.$ac_objext conftest$ac_exeext
15054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055  (eval $ac_link) 2>conftest.er1
15056  ac_status=$?
15057  grep -v '^ *+' conftest.er1 >conftest.err
15058  rm -f conftest.er1
15059  cat conftest.err >&5
15060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061  (exit $ac_status); } &&
15062	 { ac_try='test -z "$ac_f77_werror_flag"
15063			 || test ! -s conftest.err'
15064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065  (eval $ac_try) 2>&5
15066  ac_status=$?
15067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068  (exit $ac_status); }; } &&
15069	 { ac_try='test -s conftest$ac_exeext'
15070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071  (eval $ac_try) 2>&5
15072  ac_status=$?
15073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074  (exit $ac_status); }; }; then
15075
15076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15077}'`
15078# Check for a 64-bit object if we didn't find anything.
15079if 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; }
15080}'`; fi
15081else
15082  echo "$as_me: failed program was:" >&5
15083sed 's/^/| /' conftest.$ac_ext >&5
15084
15085fi
15086rm -f conftest.err conftest.$ac_objext \
15087      conftest$ac_exeext conftest.$ac_ext
15088if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15089
15090       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15091	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"
15092       else
15093	if test "$host_cpu" = ia64; then
15094	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15095	  allow_undefined_flag_F77="-z nodefs"
15096	  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"
15097	else
15098	 # Determine the default libpath from the value encoded in an empty executable.
15099	 cat >conftest.$ac_ext <<_ACEOF
15100      program main
15101
15102      end
15103_ACEOF
15104rm -f conftest.$ac_objext conftest$ac_exeext
15105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106  (eval $ac_link) 2>conftest.er1
15107  ac_status=$?
15108  grep -v '^ *+' conftest.er1 >conftest.err
15109  rm -f conftest.er1
15110  cat conftest.err >&5
15111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112  (exit $ac_status); } &&
15113	 { ac_try='test -z "$ac_f77_werror_flag"
15114			 || test ! -s conftest.err'
15115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116  (eval $ac_try) 2>&5
15117  ac_status=$?
15118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119  (exit $ac_status); }; } &&
15120	 { ac_try='test -s conftest$ac_exeext'
15121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122  (eval $ac_try) 2>&5
15123  ac_status=$?
15124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125  (exit $ac_status); }; }; then
15126
15127aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15128}'`
15129# Check for a 64-bit object if we didn't find anything.
15130if 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; }
15131}'`; fi
15132else
15133  echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136fi
15137rm -f conftest.err conftest.$ac_objext \
15138      conftest$ac_exeext conftest.$ac_ext
15139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15140
15141	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15142	  # Warning - without using the other run time loading flags,
15143	  # -berok will link without error, but may produce a broken library.
15144	  no_undefined_flag_F77=' ${wl}-bernotok'
15145	  allow_undefined_flag_F77=' ${wl}-berok'
15146	  # Exported symbols can be pulled into shared objects from archives
15147	  whole_archive_flag_spec_F77='$convenience'
15148	  archive_cmds_need_lc_F77=yes
15149	  # This is similar to how AIX traditionally builds its shared libraries.
15150	  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'
15151	fi
15152      fi
15153      ;;
15154
15155    amigaos*)
15156      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)'
15157      hardcode_libdir_flag_spec_F77='-L$libdir'
15158      hardcode_minus_L_F77=yes
15159      # see comment about different semantics on the GNU ld section
15160      ld_shlibs_F77=no
15161      ;;
15162
15163    bsdi[45]*)
15164      export_dynamic_flag_spec_F77=-rdynamic
15165      ;;
15166
15167    cygwin* | mingw* | pw32*)
15168      # When not using gcc, we currently assume that we are using
15169      # Microsoft Visual C++.
15170      # hardcode_libdir_flag_spec is actually meaningless, as there is
15171      # no search path for DLLs.
15172      hardcode_libdir_flag_spec_F77=' '
15173      allow_undefined_flag_F77=unsupported
15174      # Tell ltmain to make .lib files, not .a files.
15175      libext=lib
15176      # Tell ltmain to make .dll files, not .so files.
15177      shrext_cmds=".dll"
15178      # FIXME: Setting linknames here is a bad hack.
15179      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15180      # The linker will automatically build a .lib file if we build a DLL.
15181      old_archive_From_new_cmds_F77='true'
15182      # FIXME: Should let the user specify the lib program.
15183      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15184      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15185      enable_shared_with_static_runtimes_F77=yes
15186      ;;
15187
15188    darwin* | rhapsody*)
15189      case $host_os in
15190        rhapsody* | darwin1.[012])
15191         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15192         ;;
15193       *) # Darwin 1.3 on
15194         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15195           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15196         else
15197           case ${MACOSX_DEPLOYMENT_TARGET} in
15198             10.[012])
15199               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15200               ;;
15201             10.*)
15202               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15203               ;;
15204           esac
15205         fi
15206         ;;
15207      esac
15208      archive_cmds_need_lc_F77=no
15209      hardcode_direct_F77=no
15210      hardcode_automatic_F77=yes
15211      hardcode_shlibpath_var_F77=unsupported
15212      whole_archive_flag_spec_F77=''
15213      link_all_deplibs_F77=yes
15214    if test "$GCC" = yes ; then
15215    	output_verbose_link_cmd='echo'
15216        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15217      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15218      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15219      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}'
15220      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}'
15221    else
15222      case $cc_basename in
15223        xlc*)
15224         output_verbose_link_cmd='echo'
15225         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15226         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15227          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15228         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}'
15229          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}'
15230          ;;
15231       *)
15232         ld_shlibs_F77=no
15233          ;;
15234      esac
15235    fi
15236      ;;
15237
15238    dgux*)
15239      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15240      hardcode_libdir_flag_spec_F77='-L$libdir'
15241      hardcode_shlibpath_var_F77=no
15242      ;;
15243
15244    freebsd1*)
15245      ld_shlibs_F77=no
15246      ;;
15247
15248    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15249    # support.  Future versions do this automatically, but an explicit c++rt0.o
15250    # does not break anything, and helps significantly (at the cost of a little
15251    # extra space).
15252    freebsd2.2*)
15253      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15254      hardcode_libdir_flag_spec_F77='-R$libdir'
15255      hardcode_direct_F77=yes
15256      hardcode_shlibpath_var_F77=no
15257      ;;
15258
15259    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15260    freebsd2*)
15261      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15262      hardcode_direct_F77=yes
15263      hardcode_minus_L_F77=yes
15264      hardcode_shlibpath_var_F77=no
15265      ;;
15266
15267    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15268    freebsd* | kfreebsd*-gnu | dragonfly*)
15269      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15270      hardcode_libdir_flag_spec_F77='-R$libdir'
15271      hardcode_direct_F77=yes
15272      hardcode_shlibpath_var_F77=no
15273      ;;
15274
15275    hpux9*)
15276      if test "$GCC" = yes; then
15277	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'
15278      else
15279	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'
15280      fi
15281      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15282      hardcode_libdir_separator_F77=:
15283      hardcode_direct_F77=yes
15284
15285      # hardcode_minus_L: Not really in the search PATH,
15286      # but as the default location of the library.
15287      hardcode_minus_L_F77=yes
15288      export_dynamic_flag_spec_F77='${wl}-E'
15289      ;;
15290
15291    hpux10*)
15292      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15293	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15294      else
15295	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15296      fi
15297      if test "$with_gnu_ld" = no; then
15298	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15299	hardcode_libdir_separator_F77=:
15300
15301	hardcode_direct_F77=yes
15302	export_dynamic_flag_spec_F77='${wl}-E'
15303
15304	# hardcode_minus_L: Not really in the search PATH,
15305	# but as the default location of the library.
15306	hardcode_minus_L_F77=yes
15307      fi
15308      ;;
15309
15310    hpux11*)
15311      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15312	case $host_cpu in
15313	hppa*64*)
15314	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15315	  ;;
15316	ia64*)
15317	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15318	  ;;
15319	*)
15320	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15321	  ;;
15322	esac
15323      else
15324	case $host_cpu in
15325	hppa*64*)
15326	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15327	  ;;
15328	ia64*)
15329	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15330	  ;;
15331	*)
15332	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15333	  ;;
15334	esac
15335      fi
15336      if test "$with_gnu_ld" = no; then
15337	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15338	hardcode_libdir_separator_F77=:
15339
15340	case $host_cpu in
15341	hppa*64*|ia64*)
15342	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15343	  hardcode_direct_F77=no
15344	  hardcode_shlibpath_var_F77=no
15345	  ;;
15346	*)
15347	  hardcode_direct_F77=yes
15348	  export_dynamic_flag_spec_F77='${wl}-E'
15349
15350	  # hardcode_minus_L: Not really in the search PATH,
15351	  # but as the default location of the library.
15352	  hardcode_minus_L_F77=yes
15353	  ;;
15354	esac
15355      fi
15356      ;;
15357
15358    irix5* | irix6* | nonstopux*)
15359      if test "$GCC" = yes; then
15360	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'
15361      else
15362	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'
15363	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15364      fi
15365      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366      hardcode_libdir_separator_F77=:
15367      link_all_deplibs_F77=yes
15368      ;;
15369
15370    netbsd*)
15371      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15372	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15373      else
15374	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15375      fi
15376      hardcode_libdir_flag_spec_F77='-R$libdir'
15377      hardcode_direct_F77=yes
15378      hardcode_shlibpath_var_F77=no
15379      ;;
15380
15381    newsos6)
15382      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15383      hardcode_direct_F77=yes
15384      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15385      hardcode_libdir_separator_F77=:
15386      hardcode_shlibpath_var_F77=no
15387      ;;
15388
15389    openbsd*)
15390      hardcode_direct_F77=yes
15391      hardcode_shlibpath_var_F77=no
15392      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15393	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15394	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15395	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15396	export_dynamic_flag_spec_F77='${wl}-E'
15397      else
15398       case $host_os in
15399	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15400	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15401	   hardcode_libdir_flag_spec_F77='-R$libdir'
15402	   ;;
15403	 *)
15404	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15405	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15406	   ;;
15407       esac
15408      fi
15409      ;;
15410
15411    os2*)
15412      hardcode_libdir_flag_spec_F77='-L$libdir'
15413      hardcode_minus_L_F77=yes
15414      allow_undefined_flag_F77=unsupported
15415      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'
15416      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15417      ;;
15418
15419    osf3*)
15420      if test "$GCC" = yes; then
15421	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15422	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'
15423      else
15424	allow_undefined_flag_F77=' -expect_unresolved \*'
15425	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'
15426      fi
15427      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15428      hardcode_libdir_separator_F77=:
15429      ;;
15430
15431    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15432      if test "$GCC" = yes; then
15433	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15434	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'
15435	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15436      else
15437	allow_undefined_flag_F77=' -expect_unresolved \*'
15438	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'
15439	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~
15440	$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'
15441
15442	# Both c and cxx compiler support -rpath directly
15443	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15444      fi
15445      hardcode_libdir_separator_F77=:
15446      ;;
15447
15448    solaris*)
15449      no_undefined_flag_F77=' -z text'
15450      if test "$GCC" = yes; then
15451	wlarc='${wl}'
15452	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15453	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15454	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15455      else
15456	wlarc=''
15457	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15458	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15459  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15460      fi
15461      hardcode_libdir_flag_spec_F77='-R$libdir'
15462      hardcode_shlibpath_var_F77=no
15463      case $host_os in
15464      solaris2.[0-5] | solaris2.[0-5].*) ;;
15465      *)
15466 	# The compiler driver will combine linker options so we
15467 	# cannot just pass the convience library names through
15468 	# without $wl, iff we do not link with $LD.
15469 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15470 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15471 	case $wlarc in
15472 	'')
15473 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15474 	*)
15475 	  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' ;;
15476 	esac ;;
15477      esac
15478      link_all_deplibs_F77=yes
15479      ;;
15480
15481    sunos4*)
15482      if test "x$host_vendor" = xsequent; then
15483	# Use $CC to link under sequent, because it throws in some extra .o
15484	# files that make .init and .fini sections work.
15485	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15486      else
15487	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15488      fi
15489      hardcode_libdir_flag_spec_F77='-L$libdir'
15490      hardcode_direct_F77=yes
15491      hardcode_minus_L_F77=yes
15492      hardcode_shlibpath_var_F77=no
15493      ;;
15494
15495    sysv4)
15496      case $host_vendor in
15497	sni)
15498	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499	  hardcode_direct_F77=yes # is this really true???
15500	;;
15501	siemens)
15502	  ## LD is ld it makes a PLAMLIB
15503	  ## CC just makes a GrossModule.
15504	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15505	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15506	  hardcode_direct_F77=no
15507        ;;
15508	motorola)
15509	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15511	;;
15512      esac
15513      runpath_var='LD_RUN_PATH'
15514      hardcode_shlibpath_var_F77=no
15515      ;;
15516
15517    sysv4.3*)
15518      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519      hardcode_shlibpath_var_F77=no
15520      export_dynamic_flag_spec_F77='-Bexport'
15521      ;;
15522
15523    sysv4*MP*)
15524      if test -d /usr/nec; then
15525	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526	hardcode_shlibpath_var_F77=no
15527	runpath_var=LD_RUN_PATH
15528	hardcode_runpath_var=yes
15529	ld_shlibs_F77=yes
15530      fi
15531      ;;
15532
15533    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15534      no_undefined_flag_F77='${wl}-z,text'
15535      archive_cmds_need_lc_F77=no
15536      hardcode_shlibpath_var_F77=no
15537      runpath_var='LD_RUN_PATH'
15538
15539      if test "$GCC" = yes; then
15540	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15541	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15542      else
15543	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15544	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15545      fi
15546      ;;
15547
15548    sysv5* | sco3.2v5* | sco5v6*)
15549      # Note: We can NOT use -z defs as we might desire, because we do not
15550      # link with -lc, and that would cause any symbols used from libc to
15551      # always be unresolved, which means just about no library would
15552      # ever link correctly.  If we're not using GNU ld we use -z text
15553      # though, which does catch some bad symbols but isn't as heavy-handed
15554      # as -z defs.
15555      no_undefined_flag_F77='${wl}-z,text'
15556      allow_undefined_flag_F77='${wl}-z,nodefs'
15557      archive_cmds_need_lc_F77=no
15558      hardcode_shlibpath_var_F77=no
15559      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15560      hardcode_libdir_separator_F77=':'
15561      link_all_deplibs_F77=yes
15562      export_dynamic_flag_spec_F77='${wl}-Bexport'
15563      runpath_var='LD_RUN_PATH'
15564
15565      if test "$GCC" = yes; then
15566	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15567	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15568      else
15569	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15570	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15571      fi
15572      ;;
15573
15574    uts4*)
15575      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576      hardcode_libdir_flag_spec_F77='-L$libdir'
15577      hardcode_shlibpath_var_F77=no
15578      ;;
15579
15580    *)
15581      ld_shlibs_F77=no
15582      ;;
15583    esac
15584  fi
15585
15586echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15587echo "${ECHO_T}$ld_shlibs_F77" >&6
15588test "$ld_shlibs_F77" = no && can_build_shared=no
15589
15590#
15591# Do we need to explicitly link libc?
15592#
15593case "x$archive_cmds_need_lc_F77" in
15594x|xyes)
15595  # Assume -lc should be added
15596  archive_cmds_need_lc_F77=yes
15597
15598  if test "$enable_shared" = yes && test "$GCC" = yes; then
15599    case $archive_cmds_F77 in
15600    *'~'*)
15601      # FIXME: we may have to deal with multi-command sequences.
15602      ;;
15603    '$CC '*)
15604      # Test whether the compiler implicitly links with -lc since on some
15605      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15606      # to ld, don't add -lc before -lgcc.
15607      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15609      $rm conftest*
15610      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15611
15612      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613  (eval $ac_compile) 2>&5
15614  ac_status=$?
15615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616  (exit $ac_status); } 2>conftest.err; then
15617        soname=conftest
15618        lib=conftest
15619        libobjs=conftest.$ac_objext
15620        deplibs=
15621        wl=$lt_prog_compiler_wl_F77
15622	pic_flag=$lt_prog_compiler_pic_F77
15623        compiler_flags=-v
15624        linker_flags=-v
15625        verstring=
15626        output_objdir=.
15627        libname=conftest
15628        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15629        allow_undefined_flag_F77=
15630        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15631  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15632  ac_status=$?
15633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634  (exit $ac_status); }
15635        then
15636	  archive_cmds_need_lc_F77=no
15637        else
15638	  archive_cmds_need_lc_F77=yes
15639        fi
15640        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15641      else
15642        cat conftest.err 1>&5
15643      fi
15644      $rm conftest*
15645      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15646echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15647      ;;
15648    esac
15649  fi
15650  ;;
15651esac
15652
15653echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15654echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15655library_names_spec=
15656libname_spec='lib$name'
15657soname_spec=
15658shrext_cmds=".so"
15659postinstall_cmds=
15660postuninstall_cmds=
15661finish_cmds=
15662finish_eval=
15663shlibpath_var=
15664shlibpath_overrides_runpath=unknown
15665version_type=none
15666dynamic_linker="$host_os ld.so"
15667sys_lib_dlsearch_path_spec="/lib /usr/lib"
15668if test "$GCC" = yes; then
15669  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15670  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15671    # if the path contains ";" then we assume it to be the separator
15672    # otherwise default to the standard path separator (i.e. ":") - it is
15673    # assumed that no part of a normal pathname contains ";" but that should
15674    # okay in the real world where ";" in dirpaths is itself problematic.
15675    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15676  else
15677    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15678  fi
15679else
15680  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15681fi
15682need_lib_prefix=unknown
15683hardcode_into_libs=no
15684
15685# when you set need_version to no, make sure it does not cause -set_version
15686# flags to be left without arguments
15687need_version=unknown
15688
15689case $host_os in
15690aix3*)
15691  version_type=linux
15692  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15693  shlibpath_var=LIBPATH
15694
15695  # AIX 3 has no versioning support, so we append a major version to the name.
15696  soname_spec='${libname}${release}${shared_ext}$major'
15697  ;;
15698
15699aix4* | aix5*)
15700  version_type=linux
15701  need_lib_prefix=no
15702  need_version=no
15703  hardcode_into_libs=yes
15704  if test "$host_cpu" = ia64; then
15705    # AIX 5 supports IA64
15706    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15707    shlibpath_var=LD_LIBRARY_PATH
15708  else
15709    # With GCC up to 2.95.x, collect2 would create an import file
15710    # for dependence libraries.  The import file would start with
15711    # the line `#! .'.  This would cause the generated library to
15712    # depend on `.', always an invalid library.  This was fixed in
15713    # development snapshots of GCC prior to 3.0.
15714    case $host_os in
15715      aix4 | aix4.[01] | aix4.[01].*)
15716      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15717	   echo ' yes '
15718	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15719	:
15720      else
15721	can_build_shared=no
15722      fi
15723      ;;
15724    esac
15725    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15726    # soname into executable. Probably we can add versioning support to
15727    # collect2, so additional links can be useful in future.
15728    if test "$aix_use_runtimelinking" = yes; then
15729      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15730      # instead of lib<name>.a to let people know that these are not
15731      # typical AIX shared libraries.
15732      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733    else
15734      # We preserve .a as extension for shared libraries through AIX4.2
15735      # and later when we are not doing run time linking.
15736      library_names_spec='${libname}${release}.a $libname.a'
15737      soname_spec='${libname}${release}${shared_ext}$major'
15738    fi
15739    shlibpath_var=LIBPATH
15740  fi
15741  ;;
15742
15743amigaos*)
15744  library_names_spec='$libname.ixlibrary $libname.a'
15745  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15746  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'
15747  ;;
15748
15749beos*)
15750  library_names_spec='${libname}${shared_ext}'
15751  dynamic_linker="$host_os ld.so"
15752  shlibpath_var=LIBRARY_PATH
15753  ;;
15754
15755bsdi[45]*)
15756  version_type=linux
15757  need_version=no
15758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759  soname_spec='${libname}${release}${shared_ext}$major'
15760  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15761  shlibpath_var=LD_LIBRARY_PATH
15762  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15763  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15764  # the default ld.so.conf also contains /usr/contrib/lib and
15765  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15766  # libtool to hard-code these into programs
15767  ;;
15768
15769cygwin* | mingw* | pw32*)
15770  version_type=windows
15771  shrext_cmds=".dll"
15772  need_version=no
15773  need_lib_prefix=no
15774
15775  case $GCC,$host_os in
15776  yes,cygwin* | yes,mingw* | yes,pw32*)
15777    library_names_spec='$libname.dll.a'
15778    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15779    postinstall_cmds='base_file=`basename \${file}`~
15780      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15781      dldir=$destdir/`dirname \$dlpath`~
15782      test -d \$dldir || mkdir -p \$dldir~
15783      $install_prog $dir/$dlname \$dldir/$dlname~
15784      chmod a+x \$dldir/$dlname'
15785    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15786      dlpath=$dir/\$dldll~
15787       $rm \$dlpath'
15788    shlibpath_overrides_runpath=yes
15789
15790    case $host_os in
15791    cygwin*)
15792      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15793      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15794      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15795      ;;
15796    mingw*)
15797      # MinGW DLLs use traditional 'lib' prefix
15798      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15799      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15800      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15801        # It is most probably a Windows format PATH printed by
15802        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15803        # path with ; separators, and with drive letters. We can handle the
15804        # drive letters (cygwin fileutils understands them), so leave them,
15805        # especially as we might pass files found there to a mingw objdump,
15806        # which wouldn't understand a cygwinified path. Ahh.
15807        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15808      else
15809        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15810      fi
15811      ;;
15812    pw32*)
15813      # pw32 DLLs use 'pw' prefix rather than 'lib'
15814      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15815      ;;
15816    esac
15817    ;;
15818
15819  *)
15820    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15821    ;;
15822  esac
15823  dynamic_linker='Win32 ld.exe'
15824  # FIXME: first we should search . and the directory the executable is in
15825  shlibpath_var=PATH
15826  ;;
15827
15828darwin* | rhapsody*)
15829  dynamic_linker="$host_os dyld"
15830  version_type=darwin
15831  need_lib_prefix=no
15832  need_version=no
15833  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15834  soname_spec='${libname}${release}${major}$shared_ext'
15835  shlibpath_overrides_runpath=yes
15836  shlibpath_var=DYLD_LIBRARY_PATH
15837  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15838  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15839  if test "$GCC" = yes; then
15840    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"`
15841  else
15842    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15843  fi
15844  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15845  ;;
15846
15847dgux*)
15848  version_type=linux
15849  need_lib_prefix=no
15850  need_version=no
15851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15852  soname_spec='${libname}${release}${shared_ext}$major'
15853  shlibpath_var=LD_LIBRARY_PATH
15854  ;;
15855
15856freebsd1*)
15857  dynamic_linker=no
15858  ;;
15859
15860kfreebsd*-gnu)
15861  version_type=linux
15862  need_lib_prefix=no
15863  need_version=no
15864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15865  soname_spec='${libname}${release}${shared_ext}$major'
15866  shlibpath_var=LD_LIBRARY_PATH
15867  shlibpath_overrides_runpath=no
15868  hardcode_into_libs=yes
15869  dynamic_linker='GNU ld.so'
15870  ;;
15871
15872freebsd* | dragonfly*)
15873  # DragonFly does not have aout.  When/if they implement a new
15874  # versioning mechanism, adjust this.
15875  if test -x /usr/bin/objformat; then
15876    objformat=`/usr/bin/objformat`
15877  else
15878    case $host_os in
15879    freebsd[123]*) objformat=aout ;;
15880    *) objformat=elf ;;
15881    esac
15882  fi
15883  version_type=freebsd-$objformat
15884  case $version_type in
15885    freebsd-elf*)
15886      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15887      need_version=no
15888      need_lib_prefix=no
15889      ;;
15890    freebsd-*)
15891      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15892      need_version=yes
15893      ;;
15894  esac
15895  shlibpath_var=LD_LIBRARY_PATH
15896  case $host_os in
15897  freebsd2*)
15898    shlibpath_overrides_runpath=yes
15899    ;;
15900  freebsd3.[01]* | freebsdelf3.[01]*)
15901    shlibpath_overrides_runpath=yes
15902    hardcode_into_libs=yes
15903    ;;
15904  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15905  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15906    shlibpath_overrides_runpath=no
15907    hardcode_into_libs=yes
15908    ;;
15909  freebsd*) # from 4.6 on
15910    shlibpath_overrides_runpath=yes
15911    hardcode_into_libs=yes
15912    ;;
15913  esac
15914  ;;
15915
15916gnu*)
15917  version_type=linux
15918  need_lib_prefix=no
15919  need_version=no
15920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15921  soname_spec='${libname}${release}${shared_ext}$major'
15922  shlibpath_var=LD_LIBRARY_PATH
15923  hardcode_into_libs=yes
15924  ;;
15925
15926hpux9* | hpux10* | hpux11*)
15927  # Give a soname corresponding to the major version so that dld.sl refuses to
15928  # link against other versions.
15929  version_type=sunos
15930  need_lib_prefix=no
15931  need_version=no
15932  case $host_cpu in
15933  ia64*)
15934    shrext_cmds='.so'
15935    hardcode_into_libs=yes
15936    dynamic_linker="$host_os dld.so"
15937    shlibpath_var=LD_LIBRARY_PATH
15938    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940    soname_spec='${libname}${release}${shared_ext}$major'
15941    if test "X$HPUX_IA64_MODE" = X32; then
15942      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15943    else
15944      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15945    fi
15946    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15947    ;;
15948   hppa*64*)
15949     shrext_cmds='.sl'
15950     hardcode_into_libs=yes
15951     dynamic_linker="$host_os dld.sl"
15952     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15953     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955     soname_spec='${libname}${release}${shared_ext}$major'
15956     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15958     ;;
15959   *)
15960    shrext_cmds='.sl'
15961    dynamic_linker="$host_os dld.sl"
15962    shlibpath_var=SHLIB_PATH
15963    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965    soname_spec='${libname}${release}${shared_ext}$major'
15966    ;;
15967  esac
15968  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15969  postinstall_cmds='chmod 555 $lib'
15970  ;;
15971
15972interix3*)
15973  version_type=linux
15974  need_lib_prefix=no
15975  need_version=no
15976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15977  soname_spec='${libname}${release}${shared_ext}$major'
15978  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15979  shlibpath_var=LD_LIBRARY_PATH
15980  shlibpath_overrides_runpath=no
15981  hardcode_into_libs=yes
15982  ;;
15983
15984irix5* | irix6* | nonstopux*)
15985  case $host_os in
15986    nonstopux*) version_type=nonstopux ;;
15987    *)
15988	if test "$lt_cv_prog_gnu_ld" = yes; then
15989		version_type=linux
15990	else
15991		version_type=irix
15992	fi ;;
15993  esac
15994  need_lib_prefix=no
15995  need_version=no
15996  soname_spec='${libname}${release}${shared_ext}$major'
15997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15998  case $host_os in
15999  irix5* | nonstopux*)
16000    libsuff= shlibsuff=
16001    ;;
16002  *)
16003    case $LD in # libtool.m4 will add one of these switches to LD
16004    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16005      libsuff= shlibsuff= libmagic=32-bit;;
16006    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16007      libsuff=32 shlibsuff=N32 libmagic=N32;;
16008    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16009      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16010    *) libsuff= shlibsuff= libmagic=never-match;;
16011    esac
16012    ;;
16013  esac
16014  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16015  shlibpath_overrides_runpath=no
16016  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16017  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16018  hardcode_into_libs=yes
16019  ;;
16020
16021# No shared lib support for Linux oldld, aout, or coff.
16022linux*oldld* | linux*aout* | linux*coff*)
16023  dynamic_linker=no
16024  ;;
16025
16026# This must be Linux ELF.
16027linux*)
16028  version_type=linux
16029  need_lib_prefix=no
16030  need_version=no
16031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032  soname_spec='${libname}${release}${shared_ext}$major'
16033  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16034  shlibpath_var=LD_LIBRARY_PATH
16035  shlibpath_overrides_runpath=no
16036  # This implies no fast_install, which is unacceptable.
16037  # Some rework will be needed to allow for fast_install
16038  # before this can be enabled.
16039  hardcode_into_libs=yes
16040
16041  # Append ld.so.conf contents to the search path
16042  if test -f /etc/ld.so.conf; then
16043    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' ' '`
16044    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16045  fi
16046
16047  # We used to test for /lib/ld.so.1 and disable shared libraries on
16048  # powerpc, because MkLinux only supported shared libraries with the
16049  # GNU dynamic linker.  Since this was broken with cross compilers,
16050  # most powerpc-linux boxes support dynamic linking these days and
16051  # people can always --disable-shared, the test was removed, and we
16052  # assume the GNU/Linux dynamic linker is in use.
16053  dynamic_linker='GNU/Linux ld.so'
16054  ;;
16055
16056knetbsd*-gnu)
16057  version_type=linux
16058  need_lib_prefix=no
16059  need_version=no
16060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16061  soname_spec='${libname}${release}${shared_ext}$major'
16062  shlibpath_var=LD_LIBRARY_PATH
16063  shlibpath_overrides_runpath=no
16064  hardcode_into_libs=yes
16065  dynamic_linker='GNU ld.so'
16066  ;;
16067
16068netbsd*)
16069  version_type=sunos
16070  need_lib_prefix=no
16071  need_version=no
16072  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16073    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16074    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16075    dynamic_linker='NetBSD (a.out) ld.so'
16076  else
16077    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16078    soname_spec='${libname}${release}${shared_ext}$major'
16079    dynamic_linker='NetBSD ld.elf_so'
16080  fi
16081  shlibpath_var=LD_LIBRARY_PATH
16082  shlibpath_overrides_runpath=yes
16083  hardcode_into_libs=yes
16084  ;;
16085
16086newsos6)
16087  version_type=linux
16088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16089  shlibpath_var=LD_LIBRARY_PATH
16090  shlibpath_overrides_runpath=yes
16091  ;;
16092
16093nto-qnx*)
16094  version_type=linux
16095  need_lib_prefix=no
16096  need_version=no
16097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098  soname_spec='${libname}${release}${shared_ext}$major'
16099  shlibpath_var=LD_LIBRARY_PATH
16100  shlibpath_overrides_runpath=yes
16101  ;;
16102
16103openbsd*)
16104  version_type=sunos
16105  sys_lib_dlsearch_path_spec="/usr/lib"
16106  need_lib_prefix=no
16107  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16108  case $host_os in
16109    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16110    *)                         need_version=no  ;;
16111  esac
16112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16113  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16114  shlibpath_var=LD_LIBRARY_PATH
16115  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16116    case $host_os in
16117      openbsd2.[89] | openbsd2.[89].*)
16118	shlibpath_overrides_runpath=no
16119	;;
16120      *)
16121	shlibpath_overrides_runpath=yes
16122	;;
16123      esac
16124  else
16125    shlibpath_overrides_runpath=yes
16126  fi
16127  ;;
16128
16129os2*)
16130  libname_spec='$name'
16131  shrext_cmds=".dll"
16132  need_lib_prefix=no
16133  library_names_spec='$libname${shared_ext} $libname.a'
16134  dynamic_linker='OS/2 ld.exe'
16135  shlibpath_var=LIBPATH
16136  ;;
16137
16138osf3* | osf4* | osf5*)
16139  version_type=osf
16140  need_lib_prefix=no
16141  need_version=no
16142  soname_spec='${libname}${release}${shared_ext}$major'
16143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144  shlibpath_var=LD_LIBRARY_PATH
16145  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16146  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16147  ;;
16148
16149solaris*)
16150  version_type=linux
16151  need_lib_prefix=no
16152  need_version=no
16153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154  soname_spec='${libname}${release}${shared_ext}$major'
16155  shlibpath_var=LD_LIBRARY_PATH
16156  shlibpath_overrides_runpath=yes
16157  hardcode_into_libs=yes
16158  # ldd complains unless libraries are executable
16159  postinstall_cmds='chmod +x $lib'
16160  ;;
16161
16162sunos4*)
16163  version_type=sunos
16164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16165  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16166  shlibpath_var=LD_LIBRARY_PATH
16167  shlibpath_overrides_runpath=yes
16168  if test "$with_gnu_ld" = yes; then
16169    need_lib_prefix=no
16170  fi
16171  need_version=yes
16172  ;;
16173
16174sysv4 | sysv4.3*)
16175  version_type=linux
16176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16177  soname_spec='${libname}${release}${shared_ext}$major'
16178  shlibpath_var=LD_LIBRARY_PATH
16179  case $host_vendor in
16180    sni)
16181      shlibpath_overrides_runpath=no
16182      need_lib_prefix=no
16183      export_dynamic_flag_spec='${wl}-Blargedynsym'
16184      runpath_var=LD_RUN_PATH
16185      ;;
16186    siemens)
16187      need_lib_prefix=no
16188      ;;
16189    motorola)
16190      need_lib_prefix=no
16191      need_version=no
16192      shlibpath_overrides_runpath=no
16193      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16194      ;;
16195  esac
16196  ;;
16197
16198sysv4*MP*)
16199  if test -d /usr/nec ;then
16200    version_type=linux
16201    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16202    soname_spec='$libname${shared_ext}.$major'
16203    shlibpath_var=LD_LIBRARY_PATH
16204  fi
16205  ;;
16206
16207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16208  version_type=freebsd-elf
16209  need_lib_prefix=no
16210  need_version=no
16211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16212  soname_spec='${libname}${release}${shared_ext}$major'
16213  shlibpath_var=LD_LIBRARY_PATH
16214  hardcode_into_libs=yes
16215  if test "$with_gnu_ld" = yes; then
16216    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16217    shlibpath_overrides_runpath=no
16218  else
16219    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16220    shlibpath_overrides_runpath=yes
16221    case $host_os in
16222      sco3.2v5*)
16223        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16224	;;
16225    esac
16226  fi
16227  sys_lib_dlsearch_path_spec='/usr/lib'
16228  ;;
16229
16230uts4*)
16231  version_type=linux
16232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233  soname_spec='${libname}${release}${shared_ext}$major'
16234  shlibpath_var=LD_LIBRARY_PATH
16235  ;;
16236
16237*)
16238  dynamic_linker=no
16239  ;;
16240esac
16241echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16242echo "${ECHO_T}$dynamic_linker" >&6
16243test "$dynamic_linker" = no && can_build_shared=no
16244
16245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16246if test "$GCC" = yes; then
16247  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16248fi
16249
16250echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16251echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16252hardcode_action_F77=
16253if test -n "$hardcode_libdir_flag_spec_F77" || \
16254   test -n "$runpath_var_F77" || \
16255   test "X$hardcode_automatic_F77" = "Xyes" ; then
16256
16257  # We can hardcode non-existant directories.
16258  if test "$hardcode_direct_F77" != no &&
16259     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16260     # have to relink, otherwise we might link with an installed library
16261     # when we should be linking with a yet-to-be-installed one
16262     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16263     test "$hardcode_minus_L_F77" != no; then
16264    # Linking always hardcodes the temporary library directory.
16265    hardcode_action_F77=relink
16266  else
16267    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16268    hardcode_action_F77=immediate
16269  fi
16270else
16271  # We cannot hardcode anything, or else we can only hardcode existing
16272  # directories.
16273  hardcode_action_F77=unsupported
16274fi
16275echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16276echo "${ECHO_T}$hardcode_action_F77" >&6
16277
16278if test "$hardcode_action_F77" = relink; then
16279  # Fast installation is not supported
16280  enable_fast_install=no
16281elif test "$shlibpath_overrides_runpath" = yes ||
16282     test "$enable_shared" = no; then
16283  # Fast installation is not necessary
16284  enable_fast_install=needless
16285fi
16286
16287
16288# The else clause should only fire when bootstrapping the
16289# libtool distribution, otherwise you forgot to ship ltmain.sh
16290# with your package, and you will get complaints that there are
16291# no rules to generate ltmain.sh.
16292if test -f "$ltmain"; then
16293  # See if we are running on zsh, and set the options which allow our commands through
16294  # without removal of \ escapes.
16295  if test -n "${ZSH_VERSION+set}" ; then
16296    setopt NO_GLOB_SUBST
16297  fi
16298  # Now quote all the things that may contain metacharacters while being
16299  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16300  # variables and quote the copies for generation of the libtool script.
16301  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16302    SED SHELL STRIP \
16303    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16304    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16305    deplibs_check_method reload_flag reload_cmds need_locks \
16306    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16307    lt_cv_sys_global_symbol_to_c_name_address \
16308    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16309    old_postinstall_cmds old_postuninstall_cmds \
16310    compiler_F77 \
16311    CC_F77 \
16312    LD_F77 \
16313    lt_prog_compiler_wl_F77 \
16314    lt_prog_compiler_pic_F77 \
16315    lt_prog_compiler_static_F77 \
16316    lt_prog_compiler_no_builtin_flag_F77 \
16317    export_dynamic_flag_spec_F77 \
16318    thread_safe_flag_spec_F77 \
16319    whole_archive_flag_spec_F77 \
16320    enable_shared_with_static_runtimes_F77 \
16321    old_archive_cmds_F77 \
16322    old_archive_from_new_cmds_F77 \
16323    predep_objects_F77 \
16324    postdep_objects_F77 \
16325    predeps_F77 \
16326    postdeps_F77 \
16327    compiler_lib_search_path_F77 \
16328    archive_cmds_F77 \
16329    archive_expsym_cmds_F77 \
16330    postinstall_cmds_F77 \
16331    postuninstall_cmds_F77 \
16332    old_archive_from_expsyms_cmds_F77 \
16333    allow_undefined_flag_F77 \
16334    no_undefined_flag_F77 \
16335    export_symbols_cmds_F77 \
16336    hardcode_libdir_flag_spec_F77 \
16337    hardcode_libdir_flag_spec_ld_F77 \
16338    hardcode_libdir_separator_F77 \
16339    hardcode_automatic_F77 \
16340    module_cmds_F77 \
16341    module_expsym_cmds_F77 \
16342    lt_cv_prog_compiler_c_o_F77 \
16343    exclude_expsyms_F77 \
16344    include_expsyms_F77; do
16345
16346    case $var in
16347    old_archive_cmds_F77 | \
16348    old_archive_from_new_cmds_F77 | \
16349    archive_cmds_F77 | \
16350    archive_expsym_cmds_F77 | \
16351    module_cmds_F77 | \
16352    module_expsym_cmds_F77 | \
16353    old_archive_from_expsyms_cmds_F77 | \
16354    export_symbols_cmds_F77 | \
16355    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16356    postinstall_cmds | postuninstall_cmds | \
16357    old_postinstall_cmds | old_postuninstall_cmds | \
16358    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16359      # Double-quote double-evaled strings.
16360      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16361      ;;
16362    *)
16363      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16364      ;;
16365    esac
16366  done
16367
16368  case $lt_echo in
16369  *'\$0 --fallback-echo"')
16370    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16371    ;;
16372  esac
16373
16374cfgfile="$ofile"
16375
16376  cat <<__EOF__ >> "$cfgfile"
16377# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16378
16379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16380
16381# Shell to use when invoking shell scripts.
16382SHELL=$lt_SHELL
16383
16384# Whether or not to build shared libraries.
16385build_libtool_libs=$enable_shared
16386
16387# Whether or not to build static libraries.
16388build_old_libs=$enable_static
16389
16390# Whether or not to add -lc for building shared libraries.
16391build_libtool_need_lc=$archive_cmds_need_lc_F77
16392
16393# Whether or not to disallow shared libs when runtime libs are static
16394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16395
16396# Whether or not to optimize for fast installation.
16397fast_install=$enable_fast_install
16398
16399# The host system.
16400host_alias=$host_alias
16401host=$host
16402host_os=$host_os
16403
16404# The build system.
16405build_alias=$build_alias
16406build=$build
16407build_os=$build_os
16408
16409# An echo program that does not interpret backslashes.
16410echo=$lt_echo
16411
16412# The archiver.
16413AR=$lt_AR
16414AR_FLAGS=$lt_AR_FLAGS
16415
16416# A C compiler.
16417LTCC=$lt_LTCC
16418
16419# LTCC compiler flags.
16420LTCFLAGS=$lt_LTCFLAGS
16421
16422# A language-specific compiler.
16423CC=$lt_compiler_F77
16424
16425# Is the compiler the GNU C compiler?
16426with_gcc=$GCC_F77
16427
16428# An ERE matcher.
16429EGREP=$lt_EGREP
16430
16431# The linker used to build libraries.
16432LD=$lt_LD_F77
16433
16434# Whether we need hard or soft links.
16435LN_S=$lt_LN_S
16436
16437# A BSD-compatible nm program.
16438NM=$lt_NM
16439
16440# A symbol stripping program
16441STRIP=$lt_STRIP
16442
16443# Used to examine libraries when file_magic_cmd begins "file"
16444MAGIC_CMD=$MAGIC_CMD
16445
16446# Used on cygwin: DLL creation program.
16447DLLTOOL="$DLLTOOL"
16448
16449# Used on cygwin: object dumper.
16450OBJDUMP="$OBJDUMP"
16451
16452# Used on cygwin: assembler.
16453AS="$AS"
16454
16455# The name of the directory that contains temporary libtool files.
16456objdir=$objdir
16457
16458# How to create reloadable object files.
16459reload_flag=$lt_reload_flag
16460reload_cmds=$lt_reload_cmds
16461
16462# How to pass a linker flag through the compiler.
16463wl=$lt_lt_prog_compiler_wl_F77
16464
16465# Object file suffix (normally "o").
16466objext="$ac_objext"
16467
16468# Old archive suffix (normally "a").
16469libext="$libext"
16470
16471# Shared library suffix (normally ".so").
16472shrext_cmds='$shrext_cmds'
16473
16474# Executable file suffix (normally "").
16475exeext="$exeext"
16476
16477# Additional compiler flags for building library objects.
16478pic_flag=$lt_lt_prog_compiler_pic_F77
16479pic_mode=$pic_mode
16480
16481# What is the maximum length of a command?
16482max_cmd_len=$lt_cv_sys_max_cmd_len
16483
16484# Does compiler simultaneously support -c and -o options?
16485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16486
16487# Must we lock files when doing compilation?
16488need_locks=$lt_need_locks
16489
16490# Do we need the lib prefix for modules?
16491need_lib_prefix=$need_lib_prefix
16492
16493# Do we need a version for libraries?
16494need_version=$need_version
16495
16496# Whether dlopen is supported.
16497dlopen_support=$enable_dlopen
16498
16499# Whether dlopen of programs is supported.
16500dlopen_self=$enable_dlopen_self
16501
16502# Whether dlopen of statically linked programs is supported.
16503dlopen_self_static=$enable_dlopen_self_static
16504
16505# Compiler flag to prevent dynamic linking.
16506link_static_flag=$lt_lt_prog_compiler_static_F77
16507
16508# Compiler flag to turn off builtin functions.
16509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16510
16511# Compiler flag to allow reflexive dlopens.
16512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16513
16514# Compiler flag to generate shared objects directly from archives.
16515whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16516
16517# Compiler flag to generate thread-safe objects.
16518thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16519
16520# Library versioning type.
16521version_type=$version_type
16522
16523# Format of library name prefix.
16524libname_spec=$lt_libname_spec
16525
16526# List of archive names.  First name is the real one, the rest are links.
16527# The last name is the one that the linker finds with -lNAME.
16528library_names_spec=$lt_library_names_spec
16529
16530# The coded name of the library, if different from the real name.
16531soname_spec=$lt_soname_spec
16532
16533# Commands used to build and install an old-style archive.
16534RANLIB=$lt_RANLIB
16535old_archive_cmds=$lt_old_archive_cmds_F77
16536old_postinstall_cmds=$lt_old_postinstall_cmds
16537old_postuninstall_cmds=$lt_old_postuninstall_cmds
16538
16539# Create an old-style archive from a shared archive.
16540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16541
16542# Create a temporary old-style archive to link instead of a shared archive.
16543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16544
16545# Commands used to build and install a shared archive.
16546archive_cmds=$lt_archive_cmds_F77
16547archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16548postinstall_cmds=$lt_postinstall_cmds
16549postuninstall_cmds=$lt_postuninstall_cmds
16550
16551# Commands used to build a loadable module (assumed same as above if empty)
16552module_cmds=$lt_module_cmds_F77
16553module_expsym_cmds=$lt_module_expsym_cmds_F77
16554
16555# Commands to strip libraries.
16556old_striplib=$lt_old_striplib
16557striplib=$lt_striplib
16558
16559# Dependencies to place before the objects being linked to create a
16560# shared library.
16561predep_objects=$lt_predep_objects_F77
16562
16563# Dependencies to place after the objects being linked to create a
16564# shared library.
16565postdep_objects=$lt_postdep_objects_F77
16566
16567# Dependencies to place before the objects being linked to create a
16568# shared library.
16569predeps=$lt_predeps_F77
16570
16571# Dependencies to place after the objects being linked to create a
16572# shared library.
16573postdeps=$lt_postdeps_F77
16574
16575# The library search path used internally by the compiler when linking
16576# a shared library.
16577compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16578
16579# Method to check whether dependent libraries are shared objects.
16580deplibs_check_method=$lt_deplibs_check_method
16581
16582# Command to use when deplibs_check_method == file_magic.
16583file_magic_cmd=$lt_file_magic_cmd
16584
16585# Flag that allows shared libraries with undefined symbols to be built.
16586allow_undefined_flag=$lt_allow_undefined_flag_F77
16587
16588# Flag that forces no undefined symbols.
16589no_undefined_flag=$lt_no_undefined_flag_F77
16590
16591# Commands used to finish a libtool library installation in a directory.
16592finish_cmds=$lt_finish_cmds
16593
16594# Same as above, but a single script fragment to be evaled but not shown.
16595finish_eval=$lt_finish_eval
16596
16597# Take the output of nm and produce a listing of raw symbols and C names.
16598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16599
16600# Transform the output of nm in a proper C declaration
16601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16602
16603# Transform the output of nm in a C name address pair
16604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16605
16606# This is the shared library runtime path variable.
16607runpath_var=$runpath_var
16608
16609# This is the shared library path variable.
16610shlibpath_var=$shlibpath_var
16611
16612# Is shlibpath searched before the hard-coded library search path?
16613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16614
16615# How to hardcode a shared library path into an executable.
16616hardcode_action=$hardcode_action_F77
16617
16618# Whether we should hardcode library paths into libraries.
16619hardcode_into_libs=$hardcode_into_libs
16620
16621# Flag to hardcode \$libdir into a binary during linking.
16622# This must work even if \$libdir does not exist.
16623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16624
16625# If ld is used when linking, flag to hardcode \$libdir into
16626# a binary during linking. This must work even if \$libdir does
16627# not exist.
16628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16629
16630# Whether we need a single -rpath flag with a separated argument.
16631hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16632
16633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16634# resulting binary.
16635hardcode_direct=$hardcode_direct_F77
16636
16637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16638# resulting binary.
16639hardcode_minus_L=$hardcode_minus_L_F77
16640
16641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16642# the resulting binary.
16643hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16644
16645# Set to yes if building a shared library automatically hardcodes DIR into the library
16646# and all subsequent libraries and executables linked against it.
16647hardcode_automatic=$hardcode_automatic_F77
16648
16649# Variables whose values should be saved in libtool wrapper scripts and
16650# restored at relink time.
16651variables_saved_for_relink="$variables_saved_for_relink"
16652
16653# Whether libtool must link a program against all its dependency libraries.
16654link_all_deplibs=$link_all_deplibs_F77
16655
16656# Compile-time system search path for libraries
16657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16658
16659# Run-time system search path for libraries
16660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16661
16662# Fix the shell variable \$srcfile for the compiler.
16663fix_srcfile_path="$fix_srcfile_path_F77"
16664
16665# Set to yes if exported symbols are required.
16666always_export_symbols=$always_export_symbols_F77
16667
16668# The commands to list exported symbols.
16669export_symbols_cmds=$lt_export_symbols_cmds_F77
16670
16671# The commands to extract the exported symbol list from a shared archive.
16672extract_expsyms_cmds=$lt_extract_expsyms_cmds
16673
16674# Symbols that should not be listed in the preloaded symbols.
16675exclude_expsyms=$lt_exclude_expsyms_F77
16676
16677# Symbols that must always be exported.
16678include_expsyms=$lt_include_expsyms_F77
16679
16680# ### END LIBTOOL TAG CONFIG: $tagname
16681
16682__EOF__
16683
16684
16685else
16686  # If there is no Makefile yet, we rely on a make rule to execute
16687  # `config.status --recheck' to rerun these tests and create the
16688  # libtool script then.
16689  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16690  if test -f "$ltmain_in"; then
16691    test -f Makefile && make "$ltmain"
16692  fi
16693fi
16694
16695
16696ac_ext=c
16697ac_cpp='$CPP $CPPFLAGS'
16698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702CC="$lt_save_CC"
16703
16704	else
16705	  tagname=""
16706	fi
16707	;;
16708
16709      GCJ)
16710	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16711
16712
16713
16714# Source file extension for Java test sources.
16715ac_ext=java
16716
16717# Object file extension for compiled Java test sources.
16718objext=o
16719objext_GCJ=$objext
16720
16721# Code to be used in simple compile tests
16722lt_simple_compile_test_code="class foo {}\n"
16723
16724# Code to be used in simple link tests
16725lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16726
16727# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16728
16729# If no C compiler was specified, use CC.
16730LTCC=${LTCC-"$CC"}
16731
16732# If no C compiler flags were specified, use CFLAGS.
16733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16734
16735# Allow CC to be a program name with arguments.
16736compiler=$CC
16737
16738
16739# save warnings/boilerplate of simple test code
16740ac_outfile=conftest.$ac_objext
16741printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16743_lt_compiler_boilerplate=`cat conftest.err`
16744$rm conftest*
16745
16746ac_outfile=conftest.$ac_objext
16747printf "$lt_simple_link_test_code" >conftest.$ac_ext
16748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16749_lt_linker_boilerplate=`cat conftest.err`
16750$rm conftest*
16751
16752
16753# Allow CC to be a program name with arguments.
16754lt_save_CC="$CC"
16755CC=${GCJ-"gcj"}
16756compiler=$CC
16757compiler_GCJ=$CC
16758for cc_temp in $compiler""; do
16759  case $cc_temp in
16760    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16761    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16762    \-*) ;;
16763    *) break;;
16764  esac
16765done
16766cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16767
16768
16769# GCJ did not exist at the time GCC didn't implicitly link libc in.
16770archive_cmds_need_lc_GCJ=no
16771
16772old_archive_cmds_GCJ=$old_archive_cmds
16773
16774## CAVEAT EMPTOR:
16775## There is no encapsulation within the following macros, do not change
16776## the running order or otherwise move them around unless you know exactly
16777## what you are doing...
16778
16779lt_prog_compiler_no_builtin_flag_GCJ=
16780
16781if test "$GCC" = yes; then
16782  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16783
16784
16785echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16786echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16787if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16788  echo $ECHO_N "(cached) $ECHO_C" >&6
16789else
16790  lt_cv_prog_compiler_rtti_exceptions=no
16791  ac_outfile=conftest.$ac_objext
16792   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16793   lt_compiler_flag="-fno-rtti -fno-exceptions"
16794   # Insert the option either (1) after the last *FLAGS variable, or
16795   # (2) before a word containing "conftest.", or (3) at the end.
16796   # Note that $ac_compile itself does not contain backslashes and begins
16797   # with a dollar sign (not a hyphen), so the echo should work correctly.
16798   # The option is referenced via a variable to avoid confusing sed.
16799   lt_compile=`echo "$ac_compile" | $SED \
16800   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16801   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16802   -e 's:$: $lt_compiler_flag:'`
16803   (eval echo "\"\$as_me:16803: $lt_compile\"" >&5)
16804   (eval "$lt_compile" 2>conftest.err)
16805   ac_status=$?
16806   cat conftest.err >&5
16807   echo "$as_me:16807: \$? = $ac_status" >&5
16808   if (exit $ac_status) && test -s "$ac_outfile"; then
16809     # The compiler can only warn and ignore the option if not recognized
16810     # So say no if there are warnings other than the usual output.
16811     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16812     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16813     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16814       lt_cv_prog_compiler_rtti_exceptions=yes
16815     fi
16816   fi
16817   $rm conftest*
16818
16819fi
16820echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16821echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16822
16823if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16824    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16825else
16826    :
16827fi
16828
16829fi
16830
16831lt_prog_compiler_wl_GCJ=
16832lt_prog_compiler_pic_GCJ=
16833lt_prog_compiler_static_GCJ=
16834
16835echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16837
16838  if test "$GCC" = yes; then
16839    lt_prog_compiler_wl_GCJ='-Wl,'
16840    lt_prog_compiler_static_GCJ='-static'
16841
16842    case $host_os in
16843      aix*)
16844      # All AIX code is PIC.
16845      if test "$host_cpu" = ia64; then
16846	# AIX 5 now supports IA64 processor
16847	lt_prog_compiler_static_GCJ='-Bstatic'
16848      fi
16849      ;;
16850
16851    amigaos*)
16852      # FIXME: we need at least 68020 code to build shared libraries, but
16853      # adding the `-m68020' flag to GCC prevents building anything better,
16854      # like `-m68040'.
16855      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16856      ;;
16857
16858    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16859      # PIC is the default for these OSes.
16860      ;;
16861
16862    mingw* | pw32* | os2*)
16863      # This hack is so that the source file can tell whether it is being
16864      # built for inclusion in a dll (and should export symbols for example).
16865      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16866      ;;
16867
16868    darwin* | rhapsody*)
16869      # PIC is the default on this platform
16870      # Common symbols not allowed in MH_DYLIB files
16871      lt_prog_compiler_pic_GCJ='-fno-common'
16872      ;;
16873
16874    interix3*)
16875      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16876      # Instead, we relocate shared libraries at runtime.
16877      ;;
16878
16879    msdosdjgpp*)
16880      # Just because we use GCC doesn't mean we suddenly get shared libraries
16881      # on systems that don't support them.
16882      lt_prog_compiler_can_build_shared_GCJ=no
16883      enable_shared=no
16884      ;;
16885
16886    sysv4*MP*)
16887      if test -d /usr/nec; then
16888	lt_prog_compiler_pic_GCJ=-Kconform_pic
16889      fi
16890      ;;
16891
16892    hpux*)
16893      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16894      # not for PA HP-UX.
16895      case $host_cpu in
16896      hppa*64*|ia64*)
16897	# +Z the default
16898	;;
16899      *)
16900	lt_prog_compiler_pic_GCJ='-fPIC'
16901	;;
16902      esac
16903      ;;
16904
16905    *)
16906      lt_prog_compiler_pic_GCJ='-fPIC'
16907      ;;
16908    esac
16909  else
16910    # PORTME Check for flag to pass linker flags through the system compiler.
16911    case $host_os in
16912    aix*)
16913      lt_prog_compiler_wl_GCJ='-Wl,'
16914      if test "$host_cpu" = ia64; then
16915	# AIX 5 now supports IA64 processor
16916	lt_prog_compiler_static_GCJ='-Bstatic'
16917      else
16918	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16919      fi
16920      ;;
16921      darwin*)
16922        # PIC is the default on this platform
16923        # Common symbols not allowed in MH_DYLIB files
16924       case $cc_basename in
16925         xlc*)
16926         lt_prog_compiler_pic_GCJ='-qnocommon'
16927         lt_prog_compiler_wl_GCJ='-Wl,'
16928         ;;
16929       esac
16930       ;;
16931
16932    mingw* | pw32* | os2*)
16933      # This hack is so that the source file can tell whether it is being
16934      # built for inclusion in a dll (and should export symbols for example).
16935      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16936      ;;
16937
16938    hpux9* | hpux10* | hpux11*)
16939      lt_prog_compiler_wl_GCJ='-Wl,'
16940      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16941      # not for PA HP-UX.
16942      case $host_cpu in
16943      hppa*64*|ia64*)
16944	# +Z the default
16945	;;
16946      *)
16947	lt_prog_compiler_pic_GCJ='+Z'
16948	;;
16949      esac
16950      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16951      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16952      ;;
16953
16954    irix5* | irix6* | nonstopux*)
16955      lt_prog_compiler_wl_GCJ='-Wl,'
16956      # PIC (with -KPIC) is the default.
16957      lt_prog_compiler_static_GCJ='-non_shared'
16958      ;;
16959
16960    newsos6)
16961      lt_prog_compiler_pic_GCJ='-KPIC'
16962      lt_prog_compiler_static_GCJ='-Bstatic'
16963      ;;
16964
16965    linux*)
16966      case $cc_basename in
16967      icc* | ecc*)
16968	lt_prog_compiler_wl_GCJ='-Wl,'
16969	lt_prog_compiler_pic_GCJ='-KPIC'
16970	lt_prog_compiler_static_GCJ='-static'
16971        ;;
16972      pgcc* | pgf77* | pgf90* | pgf95*)
16973        # Portland Group compilers (*not* the Pentium gcc compiler,
16974	# which looks to be a dead project)
16975	lt_prog_compiler_wl_GCJ='-Wl,'
16976	lt_prog_compiler_pic_GCJ='-fpic'
16977	lt_prog_compiler_static_GCJ='-Bstatic'
16978        ;;
16979      ccc*)
16980        lt_prog_compiler_wl_GCJ='-Wl,'
16981        # All Alpha code is PIC.
16982        lt_prog_compiler_static_GCJ='-non_shared'
16983        ;;
16984      esac
16985      ;;
16986
16987    osf3* | osf4* | osf5*)
16988      lt_prog_compiler_wl_GCJ='-Wl,'
16989      # All OSF/1 code is PIC.
16990      lt_prog_compiler_static_GCJ='-non_shared'
16991      ;;
16992
16993    solaris*)
16994      lt_prog_compiler_pic_GCJ='-KPIC'
16995      lt_prog_compiler_static_GCJ='-Bstatic'
16996      case $cc_basename in
16997      f77* | f90* | f95*)
16998	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16999      *)
17000	lt_prog_compiler_wl_GCJ='-Wl,';;
17001      esac
17002      ;;
17003
17004    sunos4*)
17005      lt_prog_compiler_wl_GCJ='-Qoption ld '
17006      lt_prog_compiler_pic_GCJ='-PIC'
17007      lt_prog_compiler_static_GCJ='-Bstatic'
17008      ;;
17009
17010    sysv4 | sysv4.2uw2* | sysv4.3*)
17011      lt_prog_compiler_wl_GCJ='-Wl,'
17012      lt_prog_compiler_pic_GCJ='-KPIC'
17013      lt_prog_compiler_static_GCJ='-Bstatic'
17014      ;;
17015
17016    sysv4*MP*)
17017      if test -d /usr/nec ;then
17018	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17019	lt_prog_compiler_static_GCJ='-Bstatic'
17020      fi
17021      ;;
17022
17023    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17024      lt_prog_compiler_wl_GCJ='-Wl,'
17025      lt_prog_compiler_pic_GCJ='-KPIC'
17026      lt_prog_compiler_static_GCJ='-Bstatic'
17027      ;;
17028
17029    unicos*)
17030      lt_prog_compiler_wl_GCJ='-Wl,'
17031      lt_prog_compiler_can_build_shared_GCJ=no
17032      ;;
17033
17034    uts4*)
17035      lt_prog_compiler_pic_GCJ='-pic'
17036      lt_prog_compiler_static_GCJ='-Bstatic'
17037      ;;
17038
17039    *)
17040      lt_prog_compiler_can_build_shared_GCJ=no
17041      ;;
17042    esac
17043  fi
17044
17045echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17046echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17047
17048#
17049# Check to make sure the PIC flag actually works.
17050#
17051if test -n "$lt_prog_compiler_pic_GCJ"; then
17052
17053echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17054echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17055if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17056  echo $ECHO_N "(cached) $ECHO_C" >&6
17057else
17058  lt_prog_compiler_pic_works_GCJ=no
17059  ac_outfile=conftest.$ac_objext
17060   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17061   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17062   # Insert the option either (1) after the last *FLAGS variable, or
17063   # (2) before a word containing "conftest.", or (3) at the end.
17064   # Note that $ac_compile itself does not contain backslashes and begins
17065   # with a dollar sign (not a hyphen), so the echo should work correctly.
17066   # The option is referenced via a variable to avoid confusing sed.
17067   lt_compile=`echo "$ac_compile" | $SED \
17068   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17069   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17070   -e 's:$: $lt_compiler_flag:'`
17071   (eval echo "\"\$as_me:17071: $lt_compile\"" >&5)
17072   (eval "$lt_compile" 2>conftest.err)
17073   ac_status=$?
17074   cat conftest.err >&5
17075   echo "$as_me:17075: \$? = $ac_status" >&5
17076   if (exit $ac_status) && test -s "$ac_outfile"; then
17077     # The compiler can only warn and ignore the option if not recognized
17078     # So say no if there are warnings other than the usual output.
17079     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17080     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17081     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17082       lt_prog_compiler_pic_works_GCJ=yes
17083     fi
17084   fi
17085   $rm conftest*
17086
17087fi
17088echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17089echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17090
17091if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17092    case $lt_prog_compiler_pic_GCJ in
17093     "" | " "*) ;;
17094     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17095     esac
17096else
17097    lt_prog_compiler_pic_GCJ=
17098     lt_prog_compiler_can_build_shared_GCJ=no
17099fi
17100
17101fi
17102case $host_os in
17103  # For platforms which do not support PIC, -DPIC is meaningless:
17104  *djgpp*)
17105    lt_prog_compiler_pic_GCJ=
17106    ;;
17107  *)
17108    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17109    ;;
17110esac
17111
17112#
17113# Check to make sure the static flag actually works.
17114#
17115wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17116echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17117echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17118if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17119  echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121  lt_prog_compiler_static_works_GCJ=no
17122   save_LDFLAGS="$LDFLAGS"
17123   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17124   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17125   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17126     # The linker can only warn and ignore the option if not recognized
17127     # So say no if there are warnings
17128     if test -s conftest.err; then
17129       # Append any errors to the config.log.
17130       cat conftest.err 1>&5
17131       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17132       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17133       if diff conftest.exp conftest.er2 >/dev/null; then
17134         lt_prog_compiler_static_works_GCJ=yes
17135       fi
17136     else
17137       lt_prog_compiler_static_works_GCJ=yes
17138     fi
17139   fi
17140   $rm conftest*
17141   LDFLAGS="$save_LDFLAGS"
17142
17143fi
17144echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17145echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17146
17147if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17148    :
17149else
17150    lt_prog_compiler_static_GCJ=
17151fi
17152
17153
17154echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17155echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17156if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17157  echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159  lt_cv_prog_compiler_c_o_GCJ=no
17160   $rm -r conftest 2>/dev/null
17161   mkdir conftest
17162   cd conftest
17163   mkdir out
17164   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17165
17166   lt_compiler_flag="-o out/conftest2.$ac_objext"
17167   # Insert the option either (1) after the last *FLAGS variable, or
17168   # (2) before a word containing "conftest.", or (3) at the end.
17169   # Note that $ac_compile itself does not contain backslashes and begins
17170   # with a dollar sign (not a hyphen), so the echo should work correctly.
17171   lt_compile=`echo "$ac_compile" | $SED \
17172   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17173   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17174   -e 's:$: $lt_compiler_flag:'`
17175   (eval echo "\"\$as_me:17175: $lt_compile\"" >&5)
17176   (eval "$lt_compile" 2>out/conftest.err)
17177   ac_status=$?
17178   cat out/conftest.err >&5
17179   echo "$as_me:17179: \$? = $ac_status" >&5
17180   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17181   then
17182     # The compiler can only warn and ignore the option if not recognized
17183     # So say no if there are warnings
17184     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17185     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17186     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17187       lt_cv_prog_compiler_c_o_GCJ=yes
17188     fi
17189   fi
17190   chmod u+w . 2>&5
17191   $rm conftest*
17192   # SGI C++ compiler will create directory out/ii_files/ for
17193   # template instantiation
17194   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17195   $rm out/* && rmdir out
17196   cd ..
17197   rmdir conftest
17198   $rm conftest*
17199
17200fi
17201echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17202echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17203
17204
17205hard_links="nottested"
17206if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17207  # do not overwrite the value of need_locks provided by the user
17208  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17209echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17210  hard_links=yes
17211  $rm conftest*
17212  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17213  touch conftest.a
17214  ln conftest.a conftest.b 2>&5 || hard_links=no
17215  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17216  echo "$as_me:$LINENO: result: $hard_links" >&5
17217echo "${ECHO_T}$hard_links" >&6
17218  if test "$hard_links" = no; then
17219    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17220echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17221    need_locks=warn
17222  fi
17223else
17224  need_locks=no
17225fi
17226
17227echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17228echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17229
17230  runpath_var=
17231  allow_undefined_flag_GCJ=
17232  enable_shared_with_static_runtimes_GCJ=no
17233  archive_cmds_GCJ=
17234  archive_expsym_cmds_GCJ=
17235  old_archive_From_new_cmds_GCJ=
17236  old_archive_from_expsyms_cmds_GCJ=
17237  export_dynamic_flag_spec_GCJ=
17238  whole_archive_flag_spec_GCJ=
17239  thread_safe_flag_spec_GCJ=
17240  hardcode_libdir_flag_spec_GCJ=
17241  hardcode_libdir_flag_spec_ld_GCJ=
17242  hardcode_libdir_separator_GCJ=
17243  hardcode_direct_GCJ=no
17244  hardcode_minus_L_GCJ=no
17245  hardcode_shlibpath_var_GCJ=unsupported
17246  link_all_deplibs_GCJ=unknown
17247  hardcode_automatic_GCJ=no
17248  module_cmds_GCJ=
17249  module_expsym_cmds_GCJ=
17250  always_export_symbols_GCJ=no
17251  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17252  # include_expsyms should be a list of space-separated symbols to be *always*
17253  # included in the symbol list
17254  include_expsyms_GCJ=
17255  # exclude_expsyms can be an extended regexp of symbols to exclude
17256  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17257  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17258  # as well as any symbol that contains `d'.
17259  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17260  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17261  # platforms (ab)use it in PIC code, but their linkers get confused if
17262  # the symbol is explicitly referenced.  Since portable code cannot
17263  # rely on this symbol name, it's probably fine to never include it in
17264  # preloaded symbol tables.
17265  extract_expsyms_cmds=
17266  # Just being paranoid about ensuring that cc_basename is set.
17267  for cc_temp in $compiler""; do
17268  case $cc_temp in
17269    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17270    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17271    \-*) ;;
17272    *) break;;
17273  esac
17274done
17275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17276
17277  case $host_os in
17278  cygwin* | mingw* | pw32*)
17279    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17280    # When not using gcc, we currently assume that we are using
17281    # Microsoft Visual C++.
17282    if test "$GCC" != yes; then
17283      with_gnu_ld=no
17284    fi
17285    ;;
17286  interix*)
17287    # we just hope/assume this is gcc and not c89 (= MSVC++)
17288    with_gnu_ld=yes
17289    ;;
17290  openbsd*)
17291    with_gnu_ld=no
17292    ;;
17293  esac
17294
17295  ld_shlibs_GCJ=yes
17296  if test "$with_gnu_ld" = yes; then
17297    # If archive_cmds runs LD, not CC, wlarc should be empty
17298    wlarc='${wl}'
17299
17300    # Set some defaults for GNU ld with shared library support. These
17301    # are reset later if shared libraries are not supported. Putting them
17302    # here allows them to be overridden if necessary.
17303    runpath_var=LD_RUN_PATH
17304    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17305    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17306    # ancient GNU ld didn't support --whole-archive et. al.
17307    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17308	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17309      else
17310  	whole_archive_flag_spec_GCJ=
17311    fi
17312    supports_anon_versioning=no
17313    case `$LD -v 2>/dev/null` in
17314      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17315      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17316      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17317      *\ 2.11.*) ;; # other 2.11 versions
17318      *) supports_anon_versioning=yes ;;
17319    esac
17320
17321    # See if GNU ld supports shared libraries.
17322    case $host_os in
17323    aix3* | aix4* | aix5*)
17324      # On AIX/PPC, the GNU linker is very broken
17325      if test "$host_cpu" != ia64; then
17326	ld_shlibs_GCJ=no
17327	cat <<EOF 1>&2
17328
17329*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17330*** to be unable to reliably create shared libraries on AIX.
17331*** Therefore, libtool is disabling shared libraries support.  If you
17332*** really care for shared libraries, you may want to modify your PATH
17333*** so that a non-GNU linker is found, and then restart.
17334
17335EOF
17336      fi
17337      ;;
17338
17339    amigaos*)
17340      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)'
17341      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17342      hardcode_minus_L_GCJ=yes
17343
17344      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17345      # that the semantics of dynamic libraries on AmigaOS, at least up
17346      # to version 4, is to share data among multiple programs linked
17347      # with the same dynamic library.  Since this doesn't match the
17348      # behavior of shared libraries on other platforms, we can't use
17349      # them.
17350      ld_shlibs_GCJ=no
17351      ;;
17352
17353    beos*)
17354      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17355	allow_undefined_flag_GCJ=unsupported
17356	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17357	# support --undefined.  This deserves some investigation.  FIXME
17358	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17359      else
17360	ld_shlibs_GCJ=no
17361      fi
17362      ;;
17363
17364    cygwin* | mingw* | pw32*)
17365      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17366      # as there is no search path for DLLs.
17367      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368      allow_undefined_flag_GCJ=unsupported
17369      always_export_symbols_GCJ=no
17370      enable_shared_with_static_runtimes_GCJ=yes
17371      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17372
17373      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17374        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17375	# If the export-symbols file already is a .def file (1st line
17376	# is EXPORTS), use it as is; otherwise, prepend...
17377	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17378	  cp $export_symbols $output_objdir/$soname.def;
17379	else
17380	  echo EXPORTS > $output_objdir/$soname.def;
17381	  cat $export_symbols >> $output_objdir/$soname.def;
17382	fi~
17383	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17384      else
17385	ld_shlibs_GCJ=no
17386      fi
17387      ;;
17388
17389    interix3*)
17390      hardcode_direct_GCJ=no
17391      hardcode_shlibpath_var_GCJ=no
17392      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17393      export_dynamic_flag_spec_GCJ='${wl}-E'
17394      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17395      # Instead, shared libraries are loaded at an image base (0x10000000 by
17396      # default) and relocated if they conflict, which is a slow very memory
17397      # consuming and fragmenting process.  To avoid this, we pick a random,
17398      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17399      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17400      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'
17401      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'
17402      ;;
17403
17404    linux*)
17405      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17406	tmp_addflag=
17407	case $cc_basename,$host_cpu in
17408	pgcc*)				# Portland Group C compiler
17409	  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'
17410	  tmp_addflag=' $pic_flag'
17411	  ;;
17412	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17413	  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'
17414	  tmp_addflag=' $pic_flag -Mnomain' ;;
17415	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17416	  tmp_addflag=' -i_dynamic' ;;
17417	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17418	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17419	ifc* | ifort*)			# Intel Fortran compiler
17420	  tmp_addflag=' -nofor_main' ;;
17421	esac
17422	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17423
17424	if test $supports_anon_versioning = yes; then
17425	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17426  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17427  $echo "local: *; };" >> $output_objdir/$libname.ver~
17428	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17429	fi
17430      else
17431	ld_shlibs_GCJ=no
17432      fi
17433      ;;
17434
17435    netbsd*)
17436      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17437	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17438	wlarc=
17439      else
17440	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17441	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17442      fi
17443      ;;
17444
17445    solaris*)
17446      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17447	ld_shlibs_GCJ=no
17448	cat <<EOF 1>&2
17449
17450*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17451*** create shared libraries on Solaris systems.  Therefore, libtool
17452*** is disabling shared libraries support.  We urge you to upgrade GNU
17453*** binutils to release 2.9.1 or newer.  Another option is to modify
17454*** your PATH or compiler configuration so that the native linker is
17455*** used, and then restart.
17456
17457EOF
17458      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17459	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17460	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17461      else
17462	ld_shlibs_GCJ=no
17463      fi
17464      ;;
17465
17466    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17467      case `$LD -v 2>&1` in
17468        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17469	ld_shlibs_GCJ=no
17470	cat <<_LT_EOF 1>&2
17471
17472*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17473*** reliably create shared libraries on SCO systems.  Therefore, libtool
17474*** is disabling shared libraries support.  We urge you to upgrade GNU
17475*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17476*** your PATH or compiler configuration so that the native linker is
17477*** used, and then restart.
17478
17479_LT_EOF
17480	;;
17481	*)
17482	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17483	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17484	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17485	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17486	  else
17487	    ld_shlibs_GCJ=no
17488	  fi
17489	;;
17490      esac
17491      ;;
17492
17493    sunos4*)
17494      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17495      wlarc=
17496      hardcode_direct_GCJ=yes
17497      hardcode_shlibpath_var_GCJ=no
17498      ;;
17499
17500    *)
17501      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17502	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17503	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17504      else
17505	ld_shlibs_GCJ=no
17506      fi
17507      ;;
17508    esac
17509
17510    if test "$ld_shlibs_GCJ" = no; then
17511      runpath_var=
17512      hardcode_libdir_flag_spec_GCJ=
17513      export_dynamic_flag_spec_GCJ=
17514      whole_archive_flag_spec_GCJ=
17515    fi
17516  else
17517    # PORTME fill in a description of your system's linker (not GNU ld)
17518    case $host_os in
17519    aix3*)
17520      allow_undefined_flag_GCJ=unsupported
17521      always_export_symbols_GCJ=yes
17522      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'
17523      # Note: this linker hardcodes the directories in LIBPATH if there
17524      # are no directories specified by -L.
17525      hardcode_minus_L_GCJ=yes
17526      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17527	# Neither direct hardcoding nor static linking is supported with a
17528	# broken collect2.
17529	hardcode_direct_GCJ=unsupported
17530      fi
17531      ;;
17532
17533    aix4* | aix5*)
17534      if test "$host_cpu" = ia64; then
17535	# On IA64, the linker does run time linking by default, so we don't
17536	# have to do anything special.
17537	aix_use_runtimelinking=no
17538	exp_sym_flag='-Bexport'
17539	no_entry_flag=""
17540      else
17541	# If we're using GNU nm, then we don't want the "-C" option.
17542	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17543	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17544	  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'
17545	else
17546	  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'
17547	fi
17548	aix_use_runtimelinking=no
17549
17550	# Test if we are trying to use run time linking or normal
17551	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17552	# need to do runtime linking.
17553	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17554	  for ld_flag in $LDFLAGS; do
17555  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17556  	    aix_use_runtimelinking=yes
17557  	    break
17558  	  fi
17559	  done
17560	  ;;
17561	esac
17562
17563	exp_sym_flag='-bexport'
17564	no_entry_flag='-bnoentry'
17565      fi
17566
17567      # When large executables or shared objects are built, AIX ld can
17568      # have problems creating the table of contents.  If linking a library
17569      # or program results in "error TOC overflow" add -mminimal-toc to
17570      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17571      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17572
17573      archive_cmds_GCJ=''
17574      hardcode_direct_GCJ=yes
17575      hardcode_libdir_separator_GCJ=':'
17576      link_all_deplibs_GCJ=yes
17577
17578      if test "$GCC" = yes; then
17579	case $host_os in aix4.[012]|aix4.[012].*)
17580	# We only want to do this on AIX 4.2 and lower, the check
17581	# below for broken collect2 doesn't work under 4.3+
17582	  collect2name=`${CC} -print-prog-name=collect2`
17583	  if test -f "$collect2name" && \
17584  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17585	  then
17586  	  # We have reworked collect2
17587  	  hardcode_direct_GCJ=yes
17588	  else
17589  	  # We have old collect2
17590  	  hardcode_direct_GCJ=unsupported
17591  	  # It fails to find uninstalled libraries when the uninstalled
17592  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17593  	  # to unsupported forces relinking
17594  	  hardcode_minus_L_GCJ=yes
17595  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17596  	  hardcode_libdir_separator_GCJ=
17597	  fi
17598	  ;;
17599	esac
17600	shared_flag='-shared'
17601	if test "$aix_use_runtimelinking" = yes; then
17602	  shared_flag="$shared_flag "'${wl}-G'
17603	fi
17604      else
17605	# not using gcc
17606	if test "$host_cpu" = ia64; then
17607  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17608  	# chokes on -Wl,-G. The following line is correct:
17609	  shared_flag='-G'
17610	else
17611	  if test "$aix_use_runtimelinking" = yes; then
17612	    shared_flag='${wl}-G'
17613	  else
17614	    shared_flag='${wl}-bM:SRE'
17615	  fi
17616	fi
17617      fi
17618
17619      # It seems that -bexpall does not export symbols beginning with
17620      # underscore (_), so it is better to generate a list of symbols to export.
17621      always_export_symbols_GCJ=yes
17622      if test "$aix_use_runtimelinking" = yes; then
17623	# Warning - without using the other runtime loading flags (-brtl),
17624	# -berok will link without error, but may produce a broken library.
17625	allow_undefined_flag_GCJ='-berok'
17626       # Determine the default libpath from the value encoded in an empty executable.
17627       cat >conftest.$ac_ext <<_ACEOF
17628/* confdefs.h.  */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h.  */
17633
17634int
17635main ()
17636{
17637
17638  ;
17639  return 0;
17640}
17641_ACEOF
17642rm -f conftest.$ac_objext conftest$ac_exeext
17643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644  (eval $ac_link) 2>conftest.er1
17645  ac_status=$?
17646  grep -v '^ *+' conftest.er1 >conftest.err
17647  rm -f conftest.er1
17648  cat conftest.err >&5
17649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650  (exit $ac_status); } &&
17651	 { ac_try='test -z "$ac_c_werror_flag"
17652			 || test ! -s conftest.err'
17653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654  (eval $ac_try) 2>&5
17655  ac_status=$?
17656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657  (exit $ac_status); }; } &&
17658	 { ac_try='test -s conftest$ac_exeext'
17659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660  (eval $ac_try) 2>&5
17661  ac_status=$?
17662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663  (exit $ac_status); }; }; then
17664
17665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17666}'`
17667# Check for a 64-bit object if we didn't find anything.
17668if 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; }
17669}'`; fi
17670else
17671  echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674fi
17675rm -f conftest.err conftest.$ac_objext \
17676      conftest$ac_exeext conftest.$ac_ext
17677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17678
17679       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17680	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"
17681       else
17682	if test "$host_cpu" = ia64; then
17683	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17684	  allow_undefined_flag_GCJ="-z nodefs"
17685	  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"
17686	else
17687	 # Determine the default libpath from the value encoded in an empty executable.
17688	 cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h.  */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h.  */
17694
17695int
17696main ()
17697{
17698
17699  ;
17700  return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext conftest$ac_exeext
17704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705  (eval $ac_link) 2>conftest.er1
17706  ac_status=$?
17707  grep -v '^ *+' conftest.er1 >conftest.err
17708  rm -f conftest.er1
17709  cat conftest.err >&5
17710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711  (exit $ac_status); } &&
17712	 { ac_try='test -z "$ac_c_werror_flag"
17713			 || test ! -s conftest.err'
17714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715  (eval $ac_try) 2>&5
17716  ac_status=$?
17717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718  (exit $ac_status); }; } &&
17719	 { ac_try='test -s conftest$ac_exeext'
17720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721  (eval $ac_try) 2>&5
17722  ac_status=$?
17723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724  (exit $ac_status); }; }; then
17725
17726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17727}'`
17728# Check for a 64-bit object if we didn't find anything.
17729if 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; }
17730}'`; fi
17731else
17732  echo "$as_me: failed program was:" >&5
17733sed 's/^/| /' conftest.$ac_ext >&5
17734
17735fi
17736rm -f conftest.err conftest.$ac_objext \
17737      conftest$ac_exeext conftest.$ac_ext
17738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17739
17740	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17741	  # Warning - without using the other run time loading flags,
17742	  # -berok will link without error, but may produce a broken library.
17743	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17744	  allow_undefined_flag_GCJ=' ${wl}-berok'
17745	  # Exported symbols can be pulled into shared objects from archives
17746	  whole_archive_flag_spec_GCJ='$convenience'
17747	  archive_cmds_need_lc_GCJ=yes
17748	  # This is similar to how AIX traditionally builds its shared libraries.
17749	  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'
17750	fi
17751      fi
17752      ;;
17753
17754    amigaos*)
17755      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)'
17756      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17757      hardcode_minus_L_GCJ=yes
17758      # see comment about different semantics on the GNU ld section
17759      ld_shlibs_GCJ=no
17760      ;;
17761
17762    bsdi[45]*)
17763      export_dynamic_flag_spec_GCJ=-rdynamic
17764      ;;
17765
17766    cygwin* | mingw* | pw32*)
17767      # When not using gcc, we currently assume that we are using
17768      # Microsoft Visual C++.
17769      # hardcode_libdir_flag_spec is actually meaningless, as there is
17770      # no search path for DLLs.
17771      hardcode_libdir_flag_spec_GCJ=' '
17772      allow_undefined_flag_GCJ=unsupported
17773      # Tell ltmain to make .lib files, not .a files.
17774      libext=lib
17775      # Tell ltmain to make .dll files, not .so files.
17776      shrext_cmds=".dll"
17777      # FIXME: Setting linknames here is a bad hack.
17778      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17779      # The linker will automatically build a .lib file if we build a DLL.
17780      old_archive_From_new_cmds_GCJ='true'
17781      # FIXME: Should let the user specify the lib program.
17782      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17783      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17784      enable_shared_with_static_runtimes_GCJ=yes
17785      ;;
17786
17787    darwin* | rhapsody*)
17788      case $host_os in
17789        rhapsody* | darwin1.[012])
17790         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17791         ;;
17792       *) # Darwin 1.3 on
17793         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17794           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17795         else
17796           case ${MACOSX_DEPLOYMENT_TARGET} in
17797             10.[012])
17798               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17799               ;;
17800             10.*)
17801               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17802               ;;
17803           esac
17804         fi
17805         ;;
17806      esac
17807      archive_cmds_need_lc_GCJ=no
17808      hardcode_direct_GCJ=no
17809      hardcode_automatic_GCJ=yes
17810      hardcode_shlibpath_var_GCJ=unsupported
17811      whole_archive_flag_spec_GCJ=''
17812      link_all_deplibs_GCJ=yes
17813    if test "$GCC" = yes ; then
17814    	output_verbose_link_cmd='echo'
17815        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17816      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17817      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17818      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}'
17819      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}'
17820    else
17821      case $cc_basename in
17822        xlc*)
17823         output_verbose_link_cmd='echo'
17824         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17825         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17826          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17827         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}'
17828          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}'
17829          ;;
17830       *)
17831         ld_shlibs_GCJ=no
17832          ;;
17833      esac
17834    fi
17835      ;;
17836
17837    dgux*)
17838      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17839      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17840      hardcode_shlibpath_var_GCJ=no
17841      ;;
17842
17843    freebsd1*)
17844      ld_shlibs_GCJ=no
17845      ;;
17846
17847    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17848    # support.  Future versions do this automatically, but an explicit c++rt0.o
17849    # does not break anything, and helps significantly (at the cost of a little
17850    # extra space).
17851    freebsd2.2*)
17852      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17853      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17854      hardcode_direct_GCJ=yes
17855      hardcode_shlibpath_var_GCJ=no
17856      ;;
17857
17858    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17859    freebsd2*)
17860      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17861      hardcode_direct_GCJ=yes
17862      hardcode_minus_L_GCJ=yes
17863      hardcode_shlibpath_var_GCJ=no
17864      ;;
17865
17866    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17867    freebsd* | kfreebsd*-gnu | dragonfly*)
17868      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17869      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17870      hardcode_direct_GCJ=yes
17871      hardcode_shlibpath_var_GCJ=no
17872      ;;
17873
17874    hpux9*)
17875      if test "$GCC" = yes; then
17876	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'
17877      else
17878	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'
17879      fi
17880      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17881      hardcode_libdir_separator_GCJ=:
17882      hardcode_direct_GCJ=yes
17883
17884      # hardcode_minus_L: Not really in the search PATH,
17885      # but as the default location of the library.
17886      hardcode_minus_L_GCJ=yes
17887      export_dynamic_flag_spec_GCJ='${wl}-E'
17888      ;;
17889
17890    hpux10*)
17891      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17892	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17893      else
17894	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17895      fi
17896      if test "$with_gnu_ld" = no; then
17897	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17898	hardcode_libdir_separator_GCJ=:
17899
17900	hardcode_direct_GCJ=yes
17901	export_dynamic_flag_spec_GCJ='${wl}-E'
17902
17903	# hardcode_minus_L: Not really in the search PATH,
17904	# but as the default location of the library.
17905	hardcode_minus_L_GCJ=yes
17906      fi
17907      ;;
17908
17909    hpux11*)
17910      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17911	case $host_cpu in
17912	hppa*64*)
17913	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17914	  ;;
17915	ia64*)
17916	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17917	  ;;
17918	*)
17919	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17920	  ;;
17921	esac
17922      else
17923	case $host_cpu in
17924	hppa*64*)
17925	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17926	  ;;
17927	ia64*)
17928	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17929	  ;;
17930	*)
17931	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17932	  ;;
17933	esac
17934      fi
17935      if test "$with_gnu_ld" = no; then
17936	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17937	hardcode_libdir_separator_GCJ=:
17938
17939	case $host_cpu in
17940	hppa*64*|ia64*)
17941	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17942	  hardcode_direct_GCJ=no
17943	  hardcode_shlibpath_var_GCJ=no
17944	  ;;
17945	*)
17946	  hardcode_direct_GCJ=yes
17947	  export_dynamic_flag_spec_GCJ='${wl}-E'
17948
17949	  # hardcode_minus_L: Not really in the search PATH,
17950	  # but as the default location of the library.
17951	  hardcode_minus_L_GCJ=yes
17952	  ;;
17953	esac
17954      fi
17955      ;;
17956
17957    irix5* | irix6* | nonstopux*)
17958      if test "$GCC" = yes; then
17959	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'
17960      else
17961	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'
17962	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17963      fi
17964      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17965      hardcode_libdir_separator_GCJ=:
17966      link_all_deplibs_GCJ=yes
17967      ;;
17968
17969    netbsd*)
17970      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17971	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17972      else
17973	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17974      fi
17975      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17976      hardcode_direct_GCJ=yes
17977      hardcode_shlibpath_var_GCJ=no
17978      ;;
17979
17980    newsos6)
17981      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17982      hardcode_direct_GCJ=yes
17983      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17984      hardcode_libdir_separator_GCJ=:
17985      hardcode_shlibpath_var_GCJ=no
17986      ;;
17987
17988    openbsd*)
17989      hardcode_direct_GCJ=yes
17990      hardcode_shlibpath_var_GCJ=no
17991      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17992	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17993	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17994	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17995	export_dynamic_flag_spec_GCJ='${wl}-E'
17996      else
17997       case $host_os in
17998	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17999	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18000	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18001	   ;;
18002	 *)
18003	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18004	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18005	   ;;
18006       esac
18007      fi
18008      ;;
18009
18010    os2*)
18011      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18012      hardcode_minus_L_GCJ=yes
18013      allow_undefined_flag_GCJ=unsupported
18014      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'
18015      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18016      ;;
18017
18018    osf3*)
18019      if test "$GCC" = yes; then
18020	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18021	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'
18022      else
18023	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18024	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'
18025      fi
18026      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18027      hardcode_libdir_separator_GCJ=:
18028      ;;
18029
18030    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18031      if test "$GCC" = yes; then
18032	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18033	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'
18034	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18035      else
18036	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18037	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'
18038	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~
18039	$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'
18040
18041	# Both c and cxx compiler support -rpath directly
18042	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18043      fi
18044      hardcode_libdir_separator_GCJ=:
18045      ;;
18046
18047    solaris*)
18048      no_undefined_flag_GCJ=' -z text'
18049      if test "$GCC" = yes; then
18050	wlarc='${wl}'
18051	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18052	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18053	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18054      else
18055	wlarc=''
18056	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18058  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18059      fi
18060      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061      hardcode_shlibpath_var_GCJ=no
18062      case $host_os in
18063      solaris2.[0-5] | solaris2.[0-5].*) ;;
18064      *)
18065 	# The compiler driver will combine linker options so we
18066 	# cannot just pass the convience library names through
18067 	# without $wl, iff we do not link with $LD.
18068 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18069 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18070 	case $wlarc in
18071 	'')
18072 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18073 	*)
18074 	  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' ;;
18075 	esac ;;
18076      esac
18077      link_all_deplibs_GCJ=yes
18078      ;;
18079
18080    sunos4*)
18081      if test "x$host_vendor" = xsequent; then
18082	# Use $CC to link under sequent, because it throws in some extra .o
18083	# files that make .init and .fini sections work.
18084	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18085      else
18086	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18087      fi
18088      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18089      hardcode_direct_GCJ=yes
18090      hardcode_minus_L_GCJ=yes
18091      hardcode_shlibpath_var_GCJ=no
18092      ;;
18093
18094    sysv4)
18095      case $host_vendor in
18096	sni)
18097	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18098	  hardcode_direct_GCJ=yes # is this really true???
18099	;;
18100	siemens)
18101	  ## LD is ld it makes a PLAMLIB
18102	  ## CC just makes a GrossModule.
18103	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18104	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18105	  hardcode_direct_GCJ=no
18106        ;;
18107	motorola)
18108	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18109	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18110	;;
18111      esac
18112      runpath_var='LD_RUN_PATH'
18113      hardcode_shlibpath_var_GCJ=no
18114      ;;
18115
18116    sysv4.3*)
18117      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18118      hardcode_shlibpath_var_GCJ=no
18119      export_dynamic_flag_spec_GCJ='-Bexport'
18120      ;;
18121
18122    sysv4*MP*)
18123      if test -d /usr/nec; then
18124	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18125	hardcode_shlibpath_var_GCJ=no
18126	runpath_var=LD_RUN_PATH
18127	hardcode_runpath_var=yes
18128	ld_shlibs_GCJ=yes
18129      fi
18130      ;;
18131
18132    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18133      no_undefined_flag_GCJ='${wl}-z,text'
18134      archive_cmds_need_lc_GCJ=no
18135      hardcode_shlibpath_var_GCJ=no
18136      runpath_var='LD_RUN_PATH'
18137
18138      if test "$GCC" = yes; then
18139	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18141      else
18142	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18143	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18144      fi
18145      ;;
18146
18147    sysv5* | sco3.2v5* | sco5v6*)
18148      # Note: We can NOT use -z defs as we might desire, because we do not
18149      # link with -lc, and that would cause any symbols used from libc to
18150      # always be unresolved, which means just about no library would
18151      # ever link correctly.  If we're not using GNU ld we use -z text
18152      # though, which does catch some bad symbols but isn't as heavy-handed
18153      # as -z defs.
18154      no_undefined_flag_GCJ='${wl}-z,text'
18155      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18156      archive_cmds_need_lc_GCJ=no
18157      hardcode_shlibpath_var_GCJ=no
18158      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18159      hardcode_libdir_separator_GCJ=':'
18160      link_all_deplibs_GCJ=yes
18161      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18162      runpath_var='LD_RUN_PATH'
18163
18164      if test "$GCC" = yes; then
18165	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18166	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18167      else
18168	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18169	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18170      fi
18171      ;;
18172
18173    uts4*)
18174      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18175      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18176      hardcode_shlibpath_var_GCJ=no
18177      ;;
18178
18179    *)
18180      ld_shlibs_GCJ=no
18181      ;;
18182    esac
18183  fi
18184
18185echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18186echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18187test "$ld_shlibs_GCJ" = no && can_build_shared=no
18188
18189#
18190# Do we need to explicitly link libc?
18191#
18192case "x$archive_cmds_need_lc_GCJ" in
18193x|xyes)
18194  # Assume -lc should be added
18195  archive_cmds_need_lc_GCJ=yes
18196
18197  if test "$enable_shared" = yes && test "$GCC" = yes; then
18198    case $archive_cmds_GCJ in
18199    *'~'*)
18200      # FIXME: we may have to deal with multi-command sequences.
18201      ;;
18202    '$CC '*)
18203      # Test whether the compiler implicitly links with -lc since on some
18204      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18205      # to ld, don't add -lc before -lgcc.
18206      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18207echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18208      $rm conftest*
18209      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18210
18211      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18212  (eval $ac_compile) 2>&5
18213  ac_status=$?
18214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215  (exit $ac_status); } 2>conftest.err; then
18216        soname=conftest
18217        lib=conftest
18218        libobjs=conftest.$ac_objext
18219        deplibs=
18220        wl=$lt_prog_compiler_wl_GCJ
18221	pic_flag=$lt_prog_compiler_pic_GCJ
18222        compiler_flags=-v
18223        linker_flags=-v
18224        verstring=
18225        output_objdir=.
18226        libname=conftest
18227        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18228        allow_undefined_flag_GCJ=
18229        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18230  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18231  ac_status=$?
18232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233  (exit $ac_status); }
18234        then
18235	  archive_cmds_need_lc_GCJ=no
18236        else
18237	  archive_cmds_need_lc_GCJ=yes
18238        fi
18239        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18240      else
18241        cat conftest.err 1>&5
18242      fi
18243      $rm conftest*
18244      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18245echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18246      ;;
18247    esac
18248  fi
18249  ;;
18250esac
18251
18252echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18253echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18254library_names_spec=
18255libname_spec='lib$name'
18256soname_spec=
18257shrext_cmds=".so"
18258postinstall_cmds=
18259postuninstall_cmds=
18260finish_cmds=
18261finish_eval=
18262shlibpath_var=
18263shlibpath_overrides_runpath=unknown
18264version_type=none
18265dynamic_linker="$host_os ld.so"
18266sys_lib_dlsearch_path_spec="/lib /usr/lib"
18267if test "$GCC" = yes; then
18268  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18269  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18270    # if the path contains ";" then we assume it to be the separator
18271    # otherwise default to the standard path separator (i.e. ":") - it is
18272    # assumed that no part of a normal pathname contains ";" but that should
18273    # okay in the real world where ";" in dirpaths is itself problematic.
18274    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18275  else
18276    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18277  fi
18278else
18279  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18280fi
18281need_lib_prefix=unknown
18282hardcode_into_libs=no
18283
18284# when you set need_version to no, make sure it does not cause -set_version
18285# flags to be left without arguments
18286need_version=unknown
18287
18288case $host_os in
18289aix3*)
18290  version_type=linux
18291  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18292  shlibpath_var=LIBPATH
18293
18294  # AIX 3 has no versioning support, so we append a major version to the name.
18295  soname_spec='${libname}${release}${shared_ext}$major'
18296  ;;
18297
18298aix4* | aix5*)
18299  version_type=linux
18300  need_lib_prefix=no
18301  need_version=no
18302  hardcode_into_libs=yes
18303  if test "$host_cpu" = ia64; then
18304    # AIX 5 supports IA64
18305    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18306    shlibpath_var=LD_LIBRARY_PATH
18307  else
18308    # With GCC up to 2.95.x, collect2 would create an import file
18309    # for dependence libraries.  The import file would start with
18310    # the line `#! .'.  This would cause the generated library to
18311    # depend on `.', always an invalid library.  This was fixed in
18312    # development snapshots of GCC prior to 3.0.
18313    case $host_os in
18314      aix4 | aix4.[01] | aix4.[01].*)
18315      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18316	   echo ' yes '
18317	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18318	:
18319      else
18320	can_build_shared=no
18321      fi
18322      ;;
18323    esac
18324    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18325    # soname into executable. Probably we can add versioning support to
18326    # collect2, so additional links can be useful in future.
18327    if test "$aix_use_runtimelinking" = yes; then
18328      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18329      # instead of lib<name>.a to let people know that these are not
18330      # typical AIX shared libraries.
18331      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332    else
18333      # We preserve .a as extension for shared libraries through AIX4.2
18334      # and later when we are not doing run time linking.
18335      library_names_spec='${libname}${release}.a $libname.a'
18336      soname_spec='${libname}${release}${shared_ext}$major'
18337    fi
18338    shlibpath_var=LIBPATH
18339  fi
18340  ;;
18341
18342amigaos*)
18343  library_names_spec='$libname.ixlibrary $libname.a'
18344  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18345  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'
18346  ;;
18347
18348beos*)
18349  library_names_spec='${libname}${shared_ext}'
18350  dynamic_linker="$host_os ld.so"
18351  shlibpath_var=LIBRARY_PATH
18352  ;;
18353
18354bsdi[45]*)
18355  version_type=linux
18356  need_version=no
18357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358  soname_spec='${libname}${release}${shared_ext}$major'
18359  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18360  shlibpath_var=LD_LIBRARY_PATH
18361  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18362  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18363  # the default ld.so.conf also contains /usr/contrib/lib and
18364  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18365  # libtool to hard-code these into programs
18366  ;;
18367
18368cygwin* | mingw* | pw32*)
18369  version_type=windows
18370  shrext_cmds=".dll"
18371  need_version=no
18372  need_lib_prefix=no
18373
18374  case $GCC,$host_os in
18375  yes,cygwin* | yes,mingw* | yes,pw32*)
18376    library_names_spec='$libname.dll.a'
18377    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18378    postinstall_cmds='base_file=`basename \${file}`~
18379      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18380      dldir=$destdir/`dirname \$dlpath`~
18381      test -d \$dldir || mkdir -p \$dldir~
18382      $install_prog $dir/$dlname \$dldir/$dlname~
18383      chmod a+x \$dldir/$dlname'
18384    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18385      dlpath=$dir/\$dldll~
18386       $rm \$dlpath'
18387    shlibpath_overrides_runpath=yes
18388
18389    case $host_os in
18390    cygwin*)
18391      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18392      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18393      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18394      ;;
18395    mingw*)
18396      # MinGW DLLs use traditional 'lib' prefix
18397      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18398      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18399      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18400        # It is most probably a Windows format PATH printed by
18401        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18402        # path with ; separators, and with drive letters. We can handle the
18403        # drive letters (cygwin fileutils understands them), so leave them,
18404        # especially as we might pass files found there to a mingw objdump,
18405        # which wouldn't understand a cygwinified path. Ahh.
18406        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18407      else
18408        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18409      fi
18410      ;;
18411    pw32*)
18412      # pw32 DLLs use 'pw' prefix rather than 'lib'
18413      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18414      ;;
18415    esac
18416    ;;
18417
18418  *)
18419    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18420    ;;
18421  esac
18422  dynamic_linker='Win32 ld.exe'
18423  # FIXME: first we should search . and the directory the executable is in
18424  shlibpath_var=PATH
18425  ;;
18426
18427darwin* | rhapsody*)
18428  dynamic_linker="$host_os dyld"
18429  version_type=darwin
18430  need_lib_prefix=no
18431  need_version=no
18432  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18433  soname_spec='${libname}${release}${major}$shared_ext'
18434  shlibpath_overrides_runpath=yes
18435  shlibpath_var=DYLD_LIBRARY_PATH
18436  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18437  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18438  if test "$GCC" = yes; then
18439    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"`
18440  else
18441    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18442  fi
18443  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18444  ;;
18445
18446dgux*)
18447  version_type=linux
18448  need_lib_prefix=no
18449  need_version=no
18450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18451  soname_spec='${libname}${release}${shared_ext}$major'
18452  shlibpath_var=LD_LIBRARY_PATH
18453  ;;
18454
18455freebsd1*)
18456  dynamic_linker=no
18457  ;;
18458
18459kfreebsd*-gnu)
18460  version_type=linux
18461  need_lib_prefix=no
18462  need_version=no
18463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18464  soname_spec='${libname}${release}${shared_ext}$major'
18465  shlibpath_var=LD_LIBRARY_PATH
18466  shlibpath_overrides_runpath=no
18467  hardcode_into_libs=yes
18468  dynamic_linker='GNU ld.so'
18469  ;;
18470
18471freebsd* | dragonfly*)
18472  # DragonFly does not have aout.  When/if they implement a new
18473  # versioning mechanism, adjust this.
18474  if test -x /usr/bin/objformat; then
18475    objformat=`/usr/bin/objformat`
18476  else
18477    case $host_os in
18478    freebsd[123]*) objformat=aout ;;
18479    *) objformat=elf ;;
18480    esac
18481  fi
18482  version_type=freebsd-$objformat
18483  case $version_type in
18484    freebsd-elf*)
18485      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18486      need_version=no
18487      need_lib_prefix=no
18488      ;;
18489    freebsd-*)
18490      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18491      need_version=yes
18492      ;;
18493  esac
18494  shlibpath_var=LD_LIBRARY_PATH
18495  case $host_os in
18496  freebsd2*)
18497    shlibpath_overrides_runpath=yes
18498    ;;
18499  freebsd3.[01]* | freebsdelf3.[01]*)
18500    shlibpath_overrides_runpath=yes
18501    hardcode_into_libs=yes
18502    ;;
18503  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18504  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18505    shlibpath_overrides_runpath=no
18506    hardcode_into_libs=yes
18507    ;;
18508  freebsd*) # from 4.6 on
18509    shlibpath_overrides_runpath=yes
18510    hardcode_into_libs=yes
18511    ;;
18512  esac
18513  ;;
18514
18515gnu*)
18516  version_type=linux
18517  need_lib_prefix=no
18518  need_version=no
18519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18520  soname_spec='${libname}${release}${shared_ext}$major'
18521  shlibpath_var=LD_LIBRARY_PATH
18522  hardcode_into_libs=yes
18523  ;;
18524
18525hpux9* | hpux10* | hpux11*)
18526  # Give a soname corresponding to the major version so that dld.sl refuses to
18527  # link against other versions.
18528  version_type=sunos
18529  need_lib_prefix=no
18530  need_version=no
18531  case $host_cpu in
18532  ia64*)
18533    shrext_cmds='.so'
18534    hardcode_into_libs=yes
18535    dynamic_linker="$host_os dld.so"
18536    shlibpath_var=LD_LIBRARY_PATH
18537    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539    soname_spec='${libname}${release}${shared_ext}$major'
18540    if test "X$HPUX_IA64_MODE" = X32; then
18541      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18542    else
18543      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18544    fi
18545    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18546    ;;
18547   hppa*64*)
18548     shrext_cmds='.sl'
18549     hardcode_into_libs=yes
18550     dynamic_linker="$host_os dld.sl"
18551     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554     soname_spec='${libname}${release}${shared_ext}$major'
18555     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18556     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18557     ;;
18558   *)
18559    shrext_cmds='.sl'
18560    dynamic_linker="$host_os dld.sl"
18561    shlibpath_var=SHLIB_PATH
18562    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18564    soname_spec='${libname}${release}${shared_ext}$major'
18565    ;;
18566  esac
18567  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18568  postinstall_cmds='chmod 555 $lib'
18569  ;;
18570
18571interix3*)
18572  version_type=linux
18573  need_lib_prefix=no
18574  need_version=no
18575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18576  soname_spec='${libname}${release}${shared_ext}$major'
18577  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18578  shlibpath_var=LD_LIBRARY_PATH
18579  shlibpath_overrides_runpath=no
18580  hardcode_into_libs=yes
18581  ;;
18582
18583irix5* | irix6* | nonstopux*)
18584  case $host_os in
18585    nonstopux*) version_type=nonstopux ;;
18586    *)
18587	if test "$lt_cv_prog_gnu_ld" = yes; then
18588		version_type=linux
18589	else
18590		version_type=irix
18591	fi ;;
18592  esac
18593  need_lib_prefix=no
18594  need_version=no
18595  soname_spec='${libname}${release}${shared_ext}$major'
18596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18597  case $host_os in
18598  irix5* | nonstopux*)
18599    libsuff= shlibsuff=
18600    ;;
18601  *)
18602    case $LD in # libtool.m4 will add one of these switches to LD
18603    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18604      libsuff= shlibsuff= libmagic=32-bit;;
18605    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18606      libsuff=32 shlibsuff=N32 libmagic=N32;;
18607    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18608      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18609    *) libsuff= shlibsuff= libmagic=never-match;;
18610    esac
18611    ;;
18612  esac
18613  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18614  shlibpath_overrides_runpath=no
18615  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18616  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18617  hardcode_into_libs=yes
18618  ;;
18619
18620# No shared lib support for Linux oldld, aout, or coff.
18621linux*oldld* | linux*aout* | linux*coff*)
18622  dynamic_linker=no
18623  ;;
18624
18625# This must be Linux ELF.
18626linux*)
18627  version_type=linux
18628  need_lib_prefix=no
18629  need_version=no
18630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631  soname_spec='${libname}${release}${shared_ext}$major'
18632  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18633  shlibpath_var=LD_LIBRARY_PATH
18634  shlibpath_overrides_runpath=no
18635  # This implies no fast_install, which is unacceptable.
18636  # Some rework will be needed to allow for fast_install
18637  # before this can be enabled.
18638  hardcode_into_libs=yes
18639
18640  # Append ld.so.conf contents to the search path
18641  if test -f /etc/ld.so.conf; then
18642    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' ' '`
18643    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18644  fi
18645
18646  # We used to test for /lib/ld.so.1 and disable shared libraries on
18647  # powerpc, because MkLinux only supported shared libraries with the
18648  # GNU dynamic linker.  Since this was broken with cross compilers,
18649  # most powerpc-linux boxes support dynamic linking these days and
18650  # people can always --disable-shared, the test was removed, and we
18651  # assume the GNU/Linux dynamic linker is in use.
18652  dynamic_linker='GNU/Linux ld.so'
18653  ;;
18654
18655knetbsd*-gnu)
18656  version_type=linux
18657  need_lib_prefix=no
18658  need_version=no
18659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18660  soname_spec='${libname}${release}${shared_ext}$major'
18661  shlibpath_var=LD_LIBRARY_PATH
18662  shlibpath_overrides_runpath=no
18663  hardcode_into_libs=yes
18664  dynamic_linker='GNU ld.so'
18665  ;;
18666
18667netbsd*)
18668  version_type=sunos
18669  need_lib_prefix=no
18670  need_version=no
18671  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18673    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18674    dynamic_linker='NetBSD (a.out) ld.so'
18675  else
18676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18677    soname_spec='${libname}${release}${shared_ext}$major'
18678    dynamic_linker='NetBSD ld.elf_so'
18679  fi
18680  shlibpath_var=LD_LIBRARY_PATH
18681  shlibpath_overrides_runpath=yes
18682  hardcode_into_libs=yes
18683  ;;
18684
18685newsos6)
18686  version_type=linux
18687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688  shlibpath_var=LD_LIBRARY_PATH
18689  shlibpath_overrides_runpath=yes
18690  ;;
18691
18692nto-qnx*)
18693  version_type=linux
18694  need_lib_prefix=no
18695  need_version=no
18696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697  soname_spec='${libname}${release}${shared_ext}$major'
18698  shlibpath_var=LD_LIBRARY_PATH
18699  shlibpath_overrides_runpath=yes
18700  ;;
18701
18702openbsd*)
18703  version_type=sunos
18704  sys_lib_dlsearch_path_spec="/usr/lib"
18705  need_lib_prefix=no
18706  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18707  case $host_os in
18708    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18709    *)                         need_version=no  ;;
18710  esac
18711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18712  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18713  shlibpath_var=LD_LIBRARY_PATH
18714  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18715    case $host_os in
18716      openbsd2.[89] | openbsd2.[89].*)
18717	shlibpath_overrides_runpath=no
18718	;;
18719      *)
18720	shlibpath_overrides_runpath=yes
18721	;;
18722      esac
18723  else
18724    shlibpath_overrides_runpath=yes
18725  fi
18726  ;;
18727
18728os2*)
18729  libname_spec='$name'
18730  shrext_cmds=".dll"
18731  need_lib_prefix=no
18732  library_names_spec='$libname${shared_ext} $libname.a'
18733  dynamic_linker='OS/2 ld.exe'
18734  shlibpath_var=LIBPATH
18735  ;;
18736
18737osf3* | osf4* | osf5*)
18738  version_type=osf
18739  need_lib_prefix=no
18740  need_version=no
18741  soname_spec='${libname}${release}${shared_ext}$major'
18742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743  shlibpath_var=LD_LIBRARY_PATH
18744  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18745  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18746  ;;
18747
18748solaris*)
18749  version_type=linux
18750  need_lib_prefix=no
18751  need_version=no
18752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753  soname_spec='${libname}${release}${shared_ext}$major'
18754  shlibpath_var=LD_LIBRARY_PATH
18755  shlibpath_overrides_runpath=yes
18756  hardcode_into_libs=yes
18757  # ldd complains unless libraries are executable
18758  postinstall_cmds='chmod +x $lib'
18759  ;;
18760
18761sunos4*)
18762  version_type=sunos
18763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18765  shlibpath_var=LD_LIBRARY_PATH
18766  shlibpath_overrides_runpath=yes
18767  if test "$with_gnu_ld" = yes; then
18768    need_lib_prefix=no
18769  fi
18770  need_version=yes
18771  ;;
18772
18773sysv4 | sysv4.3*)
18774  version_type=linux
18775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776  soname_spec='${libname}${release}${shared_ext}$major'
18777  shlibpath_var=LD_LIBRARY_PATH
18778  case $host_vendor in
18779    sni)
18780      shlibpath_overrides_runpath=no
18781      need_lib_prefix=no
18782      export_dynamic_flag_spec='${wl}-Blargedynsym'
18783      runpath_var=LD_RUN_PATH
18784      ;;
18785    siemens)
18786      need_lib_prefix=no
18787      ;;
18788    motorola)
18789      need_lib_prefix=no
18790      need_version=no
18791      shlibpath_overrides_runpath=no
18792      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18793      ;;
18794  esac
18795  ;;
18796
18797sysv4*MP*)
18798  if test -d /usr/nec ;then
18799    version_type=linux
18800    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18801    soname_spec='$libname${shared_ext}.$major'
18802    shlibpath_var=LD_LIBRARY_PATH
18803  fi
18804  ;;
18805
18806sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18807  version_type=freebsd-elf
18808  need_lib_prefix=no
18809  need_version=no
18810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18811  soname_spec='${libname}${release}${shared_ext}$major'
18812  shlibpath_var=LD_LIBRARY_PATH
18813  hardcode_into_libs=yes
18814  if test "$with_gnu_ld" = yes; then
18815    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18816    shlibpath_overrides_runpath=no
18817  else
18818    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18819    shlibpath_overrides_runpath=yes
18820    case $host_os in
18821      sco3.2v5*)
18822        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18823	;;
18824    esac
18825  fi
18826  sys_lib_dlsearch_path_spec='/usr/lib'
18827  ;;
18828
18829uts4*)
18830  version_type=linux
18831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18832  soname_spec='${libname}${release}${shared_ext}$major'
18833  shlibpath_var=LD_LIBRARY_PATH
18834  ;;
18835
18836*)
18837  dynamic_linker=no
18838  ;;
18839esac
18840echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18841echo "${ECHO_T}$dynamic_linker" >&6
18842test "$dynamic_linker" = no && can_build_shared=no
18843
18844variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18845if test "$GCC" = yes; then
18846  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18847fi
18848
18849echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18850echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18851hardcode_action_GCJ=
18852if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18853   test -n "$runpath_var_GCJ" || \
18854   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18855
18856  # We can hardcode non-existant directories.
18857  if test "$hardcode_direct_GCJ" != no &&
18858     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18859     # have to relink, otherwise we might link with an installed library
18860     # when we should be linking with a yet-to-be-installed one
18861     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18862     test "$hardcode_minus_L_GCJ" != no; then
18863    # Linking always hardcodes the temporary library directory.
18864    hardcode_action_GCJ=relink
18865  else
18866    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18867    hardcode_action_GCJ=immediate
18868  fi
18869else
18870  # We cannot hardcode anything, or else we can only hardcode existing
18871  # directories.
18872  hardcode_action_GCJ=unsupported
18873fi
18874echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18875echo "${ECHO_T}$hardcode_action_GCJ" >&6
18876
18877if test "$hardcode_action_GCJ" = relink; then
18878  # Fast installation is not supported
18879  enable_fast_install=no
18880elif test "$shlibpath_overrides_runpath" = yes ||
18881     test "$enable_shared" = no; then
18882  # Fast installation is not necessary
18883  enable_fast_install=needless
18884fi
18885
18886
18887# The else clause should only fire when bootstrapping the
18888# libtool distribution, otherwise you forgot to ship ltmain.sh
18889# with your package, and you will get complaints that there are
18890# no rules to generate ltmain.sh.
18891if test -f "$ltmain"; then
18892  # See if we are running on zsh, and set the options which allow our commands through
18893  # without removal of \ escapes.
18894  if test -n "${ZSH_VERSION+set}" ; then
18895    setopt NO_GLOB_SUBST
18896  fi
18897  # Now quote all the things that may contain metacharacters while being
18898  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18899  # variables and quote the copies for generation of the libtool script.
18900  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18901    SED SHELL STRIP \
18902    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18903    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18904    deplibs_check_method reload_flag reload_cmds need_locks \
18905    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18906    lt_cv_sys_global_symbol_to_c_name_address \
18907    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18908    old_postinstall_cmds old_postuninstall_cmds \
18909    compiler_GCJ \
18910    CC_GCJ \
18911    LD_GCJ \
18912    lt_prog_compiler_wl_GCJ \
18913    lt_prog_compiler_pic_GCJ \
18914    lt_prog_compiler_static_GCJ \
18915    lt_prog_compiler_no_builtin_flag_GCJ \
18916    export_dynamic_flag_spec_GCJ \
18917    thread_safe_flag_spec_GCJ \
18918    whole_archive_flag_spec_GCJ \
18919    enable_shared_with_static_runtimes_GCJ \
18920    old_archive_cmds_GCJ \
18921    old_archive_from_new_cmds_GCJ \
18922    predep_objects_GCJ \
18923    postdep_objects_GCJ \
18924    predeps_GCJ \
18925    postdeps_GCJ \
18926    compiler_lib_search_path_GCJ \
18927    archive_cmds_GCJ \
18928    archive_expsym_cmds_GCJ \
18929    postinstall_cmds_GCJ \
18930    postuninstall_cmds_GCJ \
18931    old_archive_from_expsyms_cmds_GCJ \
18932    allow_undefined_flag_GCJ \
18933    no_undefined_flag_GCJ \
18934    export_symbols_cmds_GCJ \
18935    hardcode_libdir_flag_spec_GCJ \
18936    hardcode_libdir_flag_spec_ld_GCJ \
18937    hardcode_libdir_separator_GCJ \
18938    hardcode_automatic_GCJ \
18939    module_cmds_GCJ \
18940    module_expsym_cmds_GCJ \
18941    lt_cv_prog_compiler_c_o_GCJ \
18942    exclude_expsyms_GCJ \
18943    include_expsyms_GCJ; do
18944
18945    case $var in
18946    old_archive_cmds_GCJ | \
18947    old_archive_from_new_cmds_GCJ | \
18948    archive_cmds_GCJ | \
18949    archive_expsym_cmds_GCJ | \
18950    module_cmds_GCJ | \
18951    module_expsym_cmds_GCJ | \
18952    old_archive_from_expsyms_cmds_GCJ | \
18953    export_symbols_cmds_GCJ | \
18954    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18955    postinstall_cmds | postuninstall_cmds | \
18956    old_postinstall_cmds | old_postuninstall_cmds | \
18957    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18958      # Double-quote double-evaled strings.
18959      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18960      ;;
18961    *)
18962      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18963      ;;
18964    esac
18965  done
18966
18967  case $lt_echo in
18968  *'\$0 --fallback-echo"')
18969    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18970    ;;
18971  esac
18972
18973cfgfile="$ofile"
18974
18975  cat <<__EOF__ >> "$cfgfile"
18976# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18977
18978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18979
18980# Shell to use when invoking shell scripts.
18981SHELL=$lt_SHELL
18982
18983# Whether or not to build shared libraries.
18984build_libtool_libs=$enable_shared
18985
18986# Whether or not to build static libraries.
18987build_old_libs=$enable_static
18988
18989# Whether or not to add -lc for building shared libraries.
18990build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18991
18992# Whether or not to disallow shared libs when runtime libs are static
18993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18994
18995# Whether or not to optimize for fast installation.
18996fast_install=$enable_fast_install
18997
18998# The host system.
18999host_alias=$host_alias
19000host=$host
19001host_os=$host_os
19002
19003# The build system.
19004build_alias=$build_alias
19005build=$build
19006build_os=$build_os
19007
19008# An echo program that does not interpret backslashes.
19009echo=$lt_echo
19010
19011# The archiver.
19012AR=$lt_AR
19013AR_FLAGS=$lt_AR_FLAGS
19014
19015# A C compiler.
19016LTCC=$lt_LTCC
19017
19018# LTCC compiler flags.
19019LTCFLAGS=$lt_LTCFLAGS
19020
19021# A language-specific compiler.
19022CC=$lt_compiler_GCJ
19023
19024# Is the compiler the GNU C compiler?
19025with_gcc=$GCC_GCJ
19026
19027# An ERE matcher.
19028EGREP=$lt_EGREP
19029
19030# The linker used to build libraries.
19031LD=$lt_LD_GCJ
19032
19033# Whether we need hard or soft links.
19034LN_S=$lt_LN_S
19035
19036# A BSD-compatible nm program.
19037NM=$lt_NM
19038
19039# A symbol stripping program
19040STRIP=$lt_STRIP
19041
19042# Used to examine libraries when file_magic_cmd begins "file"
19043MAGIC_CMD=$MAGIC_CMD
19044
19045# Used on cygwin: DLL creation program.
19046DLLTOOL="$DLLTOOL"
19047
19048# Used on cygwin: object dumper.
19049OBJDUMP="$OBJDUMP"
19050
19051# Used on cygwin: assembler.
19052AS="$AS"
19053
19054# The name of the directory that contains temporary libtool files.
19055objdir=$objdir
19056
19057# How to create reloadable object files.
19058reload_flag=$lt_reload_flag
19059reload_cmds=$lt_reload_cmds
19060
19061# How to pass a linker flag through the compiler.
19062wl=$lt_lt_prog_compiler_wl_GCJ
19063
19064# Object file suffix (normally "o").
19065objext="$ac_objext"
19066
19067# Old archive suffix (normally "a").
19068libext="$libext"
19069
19070# Shared library suffix (normally ".so").
19071shrext_cmds='$shrext_cmds'
19072
19073# Executable file suffix (normally "").
19074exeext="$exeext"
19075
19076# Additional compiler flags for building library objects.
19077pic_flag=$lt_lt_prog_compiler_pic_GCJ
19078pic_mode=$pic_mode
19079
19080# What is the maximum length of a command?
19081max_cmd_len=$lt_cv_sys_max_cmd_len
19082
19083# Does compiler simultaneously support -c and -o options?
19084compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19085
19086# Must we lock files when doing compilation?
19087need_locks=$lt_need_locks
19088
19089# Do we need the lib prefix for modules?
19090need_lib_prefix=$need_lib_prefix
19091
19092# Do we need a version for libraries?
19093need_version=$need_version
19094
19095# Whether dlopen is supported.
19096dlopen_support=$enable_dlopen
19097
19098# Whether dlopen of programs is supported.
19099dlopen_self=$enable_dlopen_self
19100
19101# Whether dlopen of statically linked programs is supported.
19102dlopen_self_static=$enable_dlopen_self_static
19103
19104# Compiler flag to prevent dynamic linking.
19105link_static_flag=$lt_lt_prog_compiler_static_GCJ
19106
19107# Compiler flag to turn off builtin functions.
19108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19109
19110# Compiler flag to allow reflexive dlopens.
19111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19112
19113# Compiler flag to generate shared objects directly from archives.
19114whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19115
19116# Compiler flag to generate thread-safe objects.
19117thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19118
19119# Library versioning type.
19120version_type=$version_type
19121
19122# Format of library name prefix.
19123libname_spec=$lt_libname_spec
19124
19125# List of archive names.  First name is the real one, the rest are links.
19126# The last name is the one that the linker finds with -lNAME.
19127library_names_spec=$lt_library_names_spec
19128
19129# The coded name of the library, if different from the real name.
19130soname_spec=$lt_soname_spec
19131
19132# Commands used to build and install an old-style archive.
19133RANLIB=$lt_RANLIB
19134old_archive_cmds=$lt_old_archive_cmds_GCJ
19135old_postinstall_cmds=$lt_old_postinstall_cmds
19136old_postuninstall_cmds=$lt_old_postuninstall_cmds
19137
19138# Create an old-style archive from a shared archive.
19139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19140
19141# Create a temporary old-style archive to link instead of a shared archive.
19142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19143
19144# Commands used to build and install a shared archive.
19145archive_cmds=$lt_archive_cmds_GCJ
19146archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19147postinstall_cmds=$lt_postinstall_cmds
19148postuninstall_cmds=$lt_postuninstall_cmds
19149
19150# Commands used to build a loadable module (assumed same as above if empty)
19151module_cmds=$lt_module_cmds_GCJ
19152module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19153
19154# Commands to strip libraries.
19155old_striplib=$lt_old_striplib
19156striplib=$lt_striplib
19157
19158# Dependencies to place before the objects being linked to create a
19159# shared library.
19160predep_objects=$lt_predep_objects_GCJ
19161
19162# Dependencies to place after the objects being linked to create a
19163# shared library.
19164postdep_objects=$lt_postdep_objects_GCJ
19165
19166# Dependencies to place before the objects being linked to create a
19167# shared library.
19168predeps=$lt_predeps_GCJ
19169
19170# Dependencies to place after the objects being linked to create a
19171# shared library.
19172postdeps=$lt_postdeps_GCJ
19173
19174# The library search path used internally by the compiler when linking
19175# a shared library.
19176compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19177
19178# Method to check whether dependent libraries are shared objects.
19179deplibs_check_method=$lt_deplibs_check_method
19180
19181# Command to use when deplibs_check_method == file_magic.
19182file_magic_cmd=$lt_file_magic_cmd
19183
19184# Flag that allows shared libraries with undefined symbols to be built.
19185allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19186
19187# Flag that forces no undefined symbols.
19188no_undefined_flag=$lt_no_undefined_flag_GCJ
19189
19190# Commands used to finish a libtool library installation in a directory.
19191finish_cmds=$lt_finish_cmds
19192
19193# Same as above, but a single script fragment to be evaled but not shown.
19194finish_eval=$lt_finish_eval
19195
19196# Take the output of nm and produce a listing of raw symbols and C names.
19197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19198
19199# Transform the output of nm in a proper C declaration
19200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19201
19202# Transform the output of nm in a C name address pair
19203global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19204
19205# This is the shared library runtime path variable.
19206runpath_var=$runpath_var
19207
19208# This is the shared library path variable.
19209shlibpath_var=$shlibpath_var
19210
19211# Is shlibpath searched before the hard-coded library search path?
19212shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19213
19214# How to hardcode a shared library path into an executable.
19215hardcode_action=$hardcode_action_GCJ
19216
19217# Whether we should hardcode library paths into libraries.
19218hardcode_into_libs=$hardcode_into_libs
19219
19220# Flag to hardcode \$libdir into a binary during linking.
19221# This must work even if \$libdir does not exist.
19222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19223
19224# If ld is used when linking, flag to hardcode \$libdir into
19225# a binary during linking. This must work even if \$libdir does
19226# not exist.
19227hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19228
19229# Whether we need a single -rpath flag with a separated argument.
19230hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19231
19232# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19233# resulting binary.
19234hardcode_direct=$hardcode_direct_GCJ
19235
19236# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19237# resulting binary.
19238hardcode_minus_L=$hardcode_minus_L_GCJ
19239
19240# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19241# the resulting binary.
19242hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19243
19244# Set to yes if building a shared library automatically hardcodes DIR into the library
19245# and all subsequent libraries and executables linked against it.
19246hardcode_automatic=$hardcode_automatic_GCJ
19247
19248# Variables whose values should be saved in libtool wrapper scripts and
19249# restored at relink time.
19250variables_saved_for_relink="$variables_saved_for_relink"
19251
19252# Whether libtool must link a program against all its dependency libraries.
19253link_all_deplibs=$link_all_deplibs_GCJ
19254
19255# Compile-time system search path for libraries
19256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19257
19258# Run-time system search path for libraries
19259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19260
19261# Fix the shell variable \$srcfile for the compiler.
19262fix_srcfile_path="$fix_srcfile_path_GCJ"
19263
19264# Set to yes if exported symbols are required.
19265always_export_symbols=$always_export_symbols_GCJ
19266
19267# The commands to list exported symbols.
19268export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19269
19270# The commands to extract the exported symbol list from a shared archive.
19271extract_expsyms_cmds=$lt_extract_expsyms_cmds
19272
19273# Symbols that should not be listed in the preloaded symbols.
19274exclude_expsyms=$lt_exclude_expsyms_GCJ
19275
19276# Symbols that must always be exported.
19277include_expsyms=$lt_include_expsyms_GCJ
19278
19279# ### END LIBTOOL TAG CONFIG: $tagname
19280
19281__EOF__
19282
19283
19284else
19285  # If there is no Makefile yet, we rely on a make rule to execute
19286  # `config.status --recheck' to rerun these tests and create the
19287  # libtool script then.
19288  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19289  if test -f "$ltmain_in"; then
19290    test -f Makefile && make "$ltmain"
19291  fi
19292fi
19293
19294
19295ac_ext=c
19296ac_cpp='$CPP $CPPFLAGS'
19297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299ac_compiler_gnu=$ac_cv_c_compiler_gnu
19300
19301CC="$lt_save_CC"
19302
19303	else
19304	  tagname=""
19305	fi
19306	;;
19307
19308      RC)
19309
19310
19311
19312# Source file extension for RC test sources.
19313ac_ext=rc
19314
19315# Object file extension for compiled RC test sources.
19316objext=o
19317objext_RC=$objext
19318
19319# Code to be used in simple compile tests
19320lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19321
19322# Code to be used in simple link tests
19323lt_simple_link_test_code="$lt_simple_compile_test_code"
19324
19325# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19326
19327# If no C compiler was specified, use CC.
19328LTCC=${LTCC-"$CC"}
19329
19330# If no C compiler flags were specified, use CFLAGS.
19331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19332
19333# Allow CC to be a program name with arguments.
19334compiler=$CC
19335
19336
19337# save warnings/boilerplate of simple test code
19338ac_outfile=conftest.$ac_objext
19339printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19340eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19341_lt_compiler_boilerplate=`cat conftest.err`
19342$rm conftest*
19343
19344ac_outfile=conftest.$ac_objext
19345printf "$lt_simple_link_test_code" >conftest.$ac_ext
19346eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19347_lt_linker_boilerplate=`cat conftest.err`
19348$rm conftest*
19349
19350
19351# Allow CC to be a program name with arguments.
19352lt_save_CC="$CC"
19353CC=${RC-"windres"}
19354compiler=$CC
19355compiler_RC=$CC
19356for cc_temp in $compiler""; do
19357  case $cc_temp in
19358    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19359    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19360    \-*) ;;
19361    *) break;;
19362  esac
19363done
19364cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19365
19366lt_cv_prog_compiler_c_o_RC=yes
19367
19368# The else clause should only fire when bootstrapping the
19369# libtool distribution, otherwise you forgot to ship ltmain.sh
19370# with your package, and you will get complaints that there are
19371# no rules to generate ltmain.sh.
19372if test -f "$ltmain"; then
19373  # See if we are running on zsh, and set the options which allow our commands through
19374  # without removal of \ escapes.
19375  if test -n "${ZSH_VERSION+set}" ; then
19376    setopt NO_GLOB_SUBST
19377  fi
19378  # Now quote all the things that may contain metacharacters while being
19379  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19380  # variables and quote the copies for generation of the libtool script.
19381  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19382    SED SHELL STRIP \
19383    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19384    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19385    deplibs_check_method reload_flag reload_cmds need_locks \
19386    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19387    lt_cv_sys_global_symbol_to_c_name_address \
19388    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19389    old_postinstall_cmds old_postuninstall_cmds \
19390    compiler_RC \
19391    CC_RC \
19392    LD_RC \
19393    lt_prog_compiler_wl_RC \
19394    lt_prog_compiler_pic_RC \
19395    lt_prog_compiler_static_RC \
19396    lt_prog_compiler_no_builtin_flag_RC \
19397    export_dynamic_flag_spec_RC \
19398    thread_safe_flag_spec_RC \
19399    whole_archive_flag_spec_RC \
19400    enable_shared_with_static_runtimes_RC \
19401    old_archive_cmds_RC \
19402    old_archive_from_new_cmds_RC \
19403    predep_objects_RC \
19404    postdep_objects_RC \
19405    predeps_RC \
19406    postdeps_RC \
19407    compiler_lib_search_path_RC \
19408    archive_cmds_RC \
19409    archive_expsym_cmds_RC \
19410    postinstall_cmds_RC \
19411    postuninstall_cmds_RC \
19412    old_archive_from_expsyms_cmds_RC \
19413    allow_undefined_flag_RC \
19414    no_undefined_flag_RC \
19415    export_symbols_cmds_RC \
19416    hardcode_libdir_flag_spec_RC \
19417    hardcode_libdir_flag_spec_ld_RC \
19418    hardcode_libdir_separator_RC \
19419    hardcode_automatic_RC \
19420    module_cmds_RC \
19421    module_expsym_cmds_RC \
19422    lt_cv_prog_compiler_c_o_RC \
19423    exclude_expsyms_RC \
19424    include_expsyms_RC; do
19425
19426    case $var in
19427    old_archive_cmds_RC | \
19428    old_archive_from_new_cmds_RC | \
19429    archive_cmds_RC | \
19430    archive_expsym_cmds_RC | \
19431    module_cmds_RC | \
19432    module_expsym_cmds_RC | \
19433    old_archive_from_expsyms_cmds_RC | \
19434    export_symbols_cmds_RC | \
19435    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19436    postinstall_cmds | postuninstall_cmds | \
19437    old_postinstall_cmds | old_postuninstall_cmds | \
19438    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19439      # Double-quote double-evaled strings.
19440      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19441      ;;
19442    *)
19443      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19444      ;;
19445    esac
19446  done
19447
19448  case $lt_echo in
19449  *'\$0 --fallback-echo"')
19450    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19451    ;;
19452  esac
19453
19454cfgfile="$ofile"
19455
19456  cat <<__EOF__ >> "$cfgfile"
19457# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19458
19459# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19460
19461# Shell to use when invoking shell scripts.
19462SHELL=$lt_SHELL
19463
19464# Whether or not to build shared libraries.
19465build_libtool_libs=$enable_shared
19466
19467# Whether or not to build static libraries.
19468build_old_libs=$enable_static
19469
19470# Whether or not to add -lc for building shared libraries.
19471build_libtool_need_lc=$archive_cmds_need_lc_RC
19472
19473# Whether or not to disallow shared libs when runtime libs are static
19474allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19475
19476# Whether or not to optimize for fast installation.
19477fast_install=$enable_fast_install
19478
19479# The host system.
19480host_alias=$host_alias
19481host=$host
19482host_os=$host_os
19483
19484# The build system.
19485build_alias=$build_alias
19486build=$build
19487build_os=$build_os
19488
19489# An echo program that does not interpret backslashes.
19490echo=$lt_echo
19491
19492# The archiver.
19493AR=$lt_AR
19494AR_FLAGS=$lt_AR_FLAGS
19495
19496# A C compiler.
19497LTCC=$lt_LTCC
19498
19499# LTCC compiler flags.
19500LTCFLAGS=$lt_LTCFLAGS
19501
19502# A language-specific compiler.
19503CC=$lt_compiler_RC
19504
19505# Is the compiler the GNU C compiler?
19506with_gcc=$GCC_RC
19507
19508# An ERE matcher.
19509EGREP=$lt_EGREP
19510
19511# The linker used to build libraries.
19512LD=$lt_LD_RC
19513
19514# Whether we need hard or soft links.
19515LN_S=$lt_LN_S
19516
19517# A BSD-compatible nm program.
19518NM=$lt_NM
19519
19520# A symbol stripping program
19521STRIP=$lt_STRIP
19522
19523# Used to examine libraries when file_magic_cmd begins "file"
19524MAGIC_CMD=$MAGIC_CMD
19525
19526# Used on cygwin: DLL creation program.
19527DLLTOOL="$DLLTOOL"
19528
19529# Used on cygwin: object dumper.
19530OBJDUMP="$OBJDUMP"
19531
19532# Used on cygwin: assembler.
19533AS="$AS"
19534
19535# The name of the directory that contains temporary libtool files.
19536objdir=$objdir
19537
19538# How to create reloadable object files.
19539reload_flag=$lt_reload_flag
19540reload_cmds=$lt_reload_cmds
19541
19542# How to pass a linker flag through the compiler.
19543wl=$lt_lt_prog_compiler_wl_RC
19544
19545# Object file suffix (normally "o").
19546objext="$ac_objext"
19547
19548# Old archive suffix (normally "a").
19549libext="$libext"
19550
19551# Shared library suffix (normally ".so").
19552shrext_cmds='$shrext_cmds'
19553
19554# Executable file suffix (normally "").
19555exeext="$exeext"
19556
19557# Additional compiler flags for building library objects.
19558pic_flag=$lt_lt_prog_compiler_pic_RC
19559pic_mode=$pic_mode
19560
19561# What is the maximum length of a command?
19562max_cmd_len=$lt_cv_sys_max_cmd_len
19563
19564# Does compiler simultaneously support -c and -o options?
19565compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19566
19567# Must we lock files when doing compilation?
19568need_locks=$lt_need_locks
19569
19570# Do we need the lib prefix for modules?
19571need_lib_prefix=$need_lib_prefix
19572
19573# Do we need a version for libraries?
19574need_version=$need_version
19575
19576# Whether dlopen is supported.
19577dlopen_support=$enable_dlopen
19578
19579# Whether dlopen of programs is supported.
19580dlopen_self=$enable_dlopen_self
19581
19582# Whether dlopen of statically linked programs is supported.
19583dlopen_self_static=$enable_dlopen_self_static
19584
19585# Compiler flag to prevent dynamic linking.
19586link_static_flag=$lt_lt_prog_compiler_static_RC
19587
19588# Compiler flag to turn off builtin functions.
19589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19590
19591# Compiler flag to allow reflexive dlopens.
19592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19593
19594# Compiler flag to generate shared objects directly from archives.
19595whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19596
19597# Compiler flag to generate thread-safe objects.
19598thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19599
19600# Library versioning type.
19601version_type=$version_type
19602
19603# Format of library name prefix.
19604libname_spec=$lt_libname_spec
19605
19606# List of archive names.  First name is the real one, the rest are links.
19607# The last name is the one that the linker finds with -lNAME.
19608library_names_spec=$lt_library_names_spec
19609
19610# The coded name of the library, if different from the real name.
19611soname_spec=$lt_soname_spec
19612
19613# Commands used to build and install an old-style archive.
19614RANLIB=$lt_RANLIB
19615old_archive_cmds=$lt_old_archive_cmds_RC
19616old_postinstall_cmds=$lt_old_postinstall_cmds
19617old_postuninstall_cmds=$lt_old_postuninstall_cmds
19618
19619# Create an old-style archive from a shared archive.
19620old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19621
19622# Create a temporary old-style archive to link instead of a shared archive.
19623old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19624
19625# Commands used to build and install a shared archive.
19626archive_cmds=$lt_archive_cmds_RC
19627archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19628postinstall_cmds=$lt_postinstall_cmds
19629postuninstall_cmds=$lt_postuninstall_cmds
19630
19631# Commands used to build a loadable module (assumed same as above if empty)
19632module_cmds=$lt_module_cmds_RC
19633module_expsym_cmds=$lt_module_expsym_cmds_RC
19634
19635# Commands to strip libraries.
19636old_striplib=$lt_old_striplib
19637striplib=$lt_striplib
19638
19639# Dependencies to place before the objects being linked to create a
19640# shared library.
19641predep_objects=$lt_predep_objects_RC
19642
19643# Dependencies to place after the objects being linked to create a
19644# shared library.
19645postdep_objects=$lt_postdep_objects_RC
19646
19647# Dependencies to place before the objects being linked to create a
19648# shared library.
19649predeps=$lt_predeps_RC
19650
19651# Dependencies to place after the objects being linked to create a
19652# shared library.
19653postdeps=$lt_postdeps_RC
19654
19655# The library search path used internally by the compiler when linking
19656# a shared library.
19657compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19658
19659# Method to check whether dependent libraries are shared objects.
19660deplibs_check_method=$lt_deplibs_check_method
19661
19662# Command to use when deplibs_check_method == file_magic.
19663file_magic_cmd=$lt_file_magic_cmd
19664
19665# Flag that allows shared libraries with undefined symbols to be built.
19666allow_undefined_flag=$lt_allow_undefined_flag_RC
19667
19668# Flag that forces no undefined symbols.
19669no_undefined_flag=$lt_no_undefined_flag_RC
19670
19671# Commands used to finish a libtool library installation in a directory.
19672finish_cmds=$lt_finish_cmds
19673
19674# Same as above, but a single script fragment to be evaled but not shown.
19675finish_eval=$lt_finish_eval
19676
19677# Take the output of nm and produce a listing of raw symbols and C names.
19678global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19679
19680# Transform the output of nm in a proper C declaration
19681global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19682
19683# Transform the output of nm in a C name address pair
19684global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19685
19686# This is the shared library runtime path variable.
19687runpath_var=$runpath_var
19688
19689# This is the shared library path variable.
19690shlibpath_var=$shlibpath_var
19691
19692# Is shlibpath searched before the hard-coded library search path?
19693shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19694
19695# How to hardcode a shared library path into an executable.
19696hardcode_action=$hardcode_action_RC
19697
19698# Whether we should hardcode library paths into libraries.
19699hardcode_into_libs=$hardcode_into_libs
19700
19701# Flag to hardcode \$libdir into a binary during linking.
19702# This must work even if \$libdir does not exist.
19703hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19704
19705# If ld is used when linking, flag to hardcode \$libdir into
19706# a binary during linking. This must work even if \$libdir does
19707# not exist.
19708hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19709
19710# Whether we need a single -rpath flag with a separated argument.
19711hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19712
19713# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19714# resulting binary.
19715hardcode_direct=$hardcode_direct_RC
19716
19717# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19718# resulting binary.
19719hardcode_minus_L=$hardcode_minus_L_RC
19720
19721# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19722# the resulting binary.
19723hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19724
19725# Set to yes if building a shared library automatically hardcodes DIR into the library
19726# and all subsequent libraries and executables linked against it.
19727hardcode_automatic=$hardcode_automatic_RC
19728
19729# Variables whose values should be saved in libtool wrapper scripts and
19730# restored at relink time.
19731variables_saved_for_relink="$variables_saved_for_relink"
19732
19733# Whether libtool must link a program against all its dependency libraries.
19734link_all_deplibs=$link_all_deplibs_RC
19735
19736# Compile-time system search path for libraries
19737sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19738
19739# Run-time system search path for libraries
19740sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19741
19742# Fix the shell variable \$srcfile for the compiler.
19743fix_srcfile_path="$fix_srcfile_path_RC"
19744
19745# Set to yes if exported symbols are required.
19746always_export_symbols=$always_export_symbols_RC
19747
19748# The commands to list exported symbols.
19749export_symbols_cmds=$lt_export_symbols_cmds_RC
19750
19751# The commands to extract the exported symbol list from a shared archive.
19752extract_expsyms_cmds=$lt_extract_expsyms_cmds
19753
19754# Symbols that should not be listed in the preloaded symbols.
19755exclude_expsyms=$lt_exclude_expsyms_RC
19756
19757# Symbols that must always be exported.
19758include_expsyms=$lt_include_expsyms_RC
19759
19760# ### END LIBTOOL TAG CONFIG: $tagname
19761
19762__EOF__
19763
19764
19765else
19766  # If there is no Makefile yet, we rely on a make rule to execute
19767  # `config.status --recheck' to rerun these tests and create the
19768  # libtool script then.
19769  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19770  if test -f "$ltmain_in"; then
19771    test -f Makefile && make "$ltmain"
19772  fi
19773fi
19774
19775
19776ac_ext=c
19777ac_cpp='$CPP $CPPFLAGS'
19778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780ac_compiler_gnu=$ac_cv_c_compiler_gnu
19781
19782CC="$lt_save_CC"
19783
19784	;;
19785
19786      *)
19787	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19788echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19789   { (exit 1); exit 1; }; }
19790	;;
19791      esac
19792
19793      # Append the new tag name to the list of available tags.
19794      if test -n "$tagname" ; then
19795      available_tags="$available_tags $tagname"
19796    fi
19797    fi
19798  done
19799  IFS="$lt_save_ifs"
19800
19801  # Now substitute the updated list of available tags.
19802  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19803    mv "${ofile}T" "$ofile"
19804    chmod +x "$ofile"
19805  else
19806    rm -f "${ofile}T"
19807    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19808echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19809   { (exit 1); exit 1; }; }
19810  fi
19811fi
19812
19813
19814
19815# This can be used to rebuild libtool when needed
19816LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19817
19818# Always use our own libtool.
19819LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19820
19821# Prevent multiple expansion
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
19834 # AC_REQUIRE([AC_COIN_DLFCN_H])
19835
19836# NEW: If libtool exists in the directory higher up, we use that one
19837#      instead of creating a new one
19838
19839# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
19840# out in front of this macro body. You'll notice that LIBTOOL is already
19841# defined here.  We'll have to count on this macro not being called if libtool
19842# already exists, or at least move the libtool fixes outside the conditional.
19843# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
19844# This test is therefore removed.  -- lh, 061214 --
19845# if test "x$LIBTOOL" = x; then
19846
19847# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
19858
19859
19860
19861  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
19862echo "$as_me: Build is \"$build\"." >&6;}
19863  # Extract the first word of "dos2unix", so it can be a program name with args.
19864set dummy dos2unix; ac_word=$2
19865echo "$as_me:$LINENO: checking for $ac_word" >&5
19866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19867if test "${ac_cv_prog_dos2unix+set}" = set; then
19868  echo $ECHO_N "(cached) $ECHO_C" >&6
19869else
19870  if test -n "$dos2unix"; then
19871  ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
19872else
19873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874for as_dir in $PATH
19875do
19876  IFS=$as_save_IFS
19877  test -z "$as_dir" && as_dir=.
19878  for ac_exec_ext in '' $ac_executable_extensions; do
19879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880    ac_cv_prog_dos2unix="dos2unix"
19881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19882    break 2
19883  fi
19884done
19885done
19886
19887fi
19888fi
19889dos2unix=$ac_cv_prog_dos2unix
19890if test -n "$dos2unix"; then
19891  echo "$as_me:$LINENO: result: $dos2unix" >&5
19892echo "${ECHO_T}$dos2unix" >&6
19893else
19894  echo "$as_me:$LINENO: result: no" >&5
19895echo "${ECHO_T}no" >&6
19896fi
19897
19898  if test "$dos2unix" = dos2unix ; then
19899    mydos2unix="| dos2unix"
19900  fi
19901  case $build in
19902    *-mingw*)
19903      CYGPATH_W=echo
19904      ;;
19905  esac
19906
19907  case $build in
19908    # Here we need to check if -m32 is specified.  If so, we need to correct
19909    # sys_lib_search_path_spec
19910    *-cygwin* | *-mingw*)
19911       case "$CXX" in
19912    clang* )
19913      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
19914      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
19915echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
19916      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19917	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
19918	  -e 's|libext="lib"|libext="a"|' \
19919      libtool > conftest.bla
19920      ;;
19921    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
19922      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
19923echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
19924      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19925	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19926	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
19927	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
19928	  -e 's%lib /OUT:%lib -OUT:%' \
19929	  -e "s%cygpath -w%$CYGPATH_W%" \
19930	  -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%' \
19931	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
19932	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
19933	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
19934	  -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"%' \
19935      libtool > conftest.bla
19936      ;;
19937    *)
19938      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
19939echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
19940      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19941	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
19942	  -e 's|libext="lib"|libext="a"|' \
19943      libtool > conftest.bla
19944      ;;
19945  esac
19946  mv conftest.bla libtool
19947  chmod 755 libtool
19948
19949      ;;
19950    *x86_64-*)
19951      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
19952        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
19953echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
19954        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
19955        mv conftest.bla libtool
19956        chmod 755 libtool
19957      fi
19958      ;;
19959
19960    *-solaris*)
19961       if test "$GCC" = yes && \
19962     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
19963    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
19964    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
19965      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
19966echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
19967      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
19968      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
19969      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
19970	# AC_MSG_NOTICE(Compensating for broken gcc)
19971	for lib in $fixlibtmp ; do
19972	  if test -d "${lib}${hdwisa}" ; then
19973	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
19974	  fi
19975	done
19976	syslibpath64="${syslibpath64} ${fixlibtmp}"
19977      else
19978	syslibpath64="$fixlibtmp"
19979      fi
19980      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
19981      mv conftest.bla libtool
19982      chmod 755 libtool
19983    fi
19984    # AC_MSG_NOTICE(Result is )
19985    # $EGREP 'sys_lib_search_path_spec=' libtool
19986  fi
19987      ;;
19988    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
19989    *-darwin*)
19990      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
19991echo "$as_me: Applying patches to libtool for Darwin" >&6;}
19992      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"/' \
19993        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
19994      libtool > conftest.bla
19995
19996      mv conftest.bla libtool
19997      chmod 755 libtool
19998      ;;
19999  esac
20000# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20001# the macro. -- lh, 061214 --
20002# fi
20003
20004# AC_MSG_NOTICE([End libtool initialisation.])
20005
20006# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20007  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20008  # of the shared objects
20009  RPATH_FLAGS=
20010
20011if test $enable_shared = yes; then
20012  case $build in
20013    *-linux-*)
20014      if test "$GXX" = "yes"; then
20015        RPATH_FLAGS=
20016        for dir in $abs_lib_dir; do
20017          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20018        done
20019      fi ;;
20020    *-darwin*)
20021        RPATH_FLAGS=nothing ;;
20022    *-ibm-*)
20023      case "$CXX" in
20024      xlC* | */xlC* | mpxlC* | */mpxlC*)
20025        RPATH_FLAGS=nothing ;;
20026      esac ;;
20027    *-hp-*)
20028        RPATH_FLAGS=nothing ;;
20029    *-mingw32)
20030        RPATH_FLAGS=nothing ;;
20031    *-*-solaris*)
20032        RPATH_FLAGS=
20033        for dir in $abs_lib_dir; do
20034          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20035        done
20036  esac
20037
20038  if test "$RPATH_FLAGS" = ""; then
20039    { 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
20040echo "$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;}
20041  fi
20042  if test "$RPATH_FLAGS" = "nothing"; then
20043    RPATH_FLAGS=
20044  fi
20045fi
20046
20047
20048
20049
20050else
20051
20052  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20053echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20054  # get all missing information from the config.log file
20055
20056  # output variables and defines
20057  as_save_IFS=$IFS
20058  IFS='
20059'
20060  for oneline in `cat $coin_config_dir/config.status`; do
20061    case "$oneline" in
20062         # First some automake conditionals
20063      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20064      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20065      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20066      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20067        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20068#        echo "$command"
20069        eval "$command"
20070        ;;
20071      s,@DEFS@* )
20072        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20073#        echo "$command"
20074        eval "$command"
20075        ;;
20076    esac
20077  done
20078  IFS=$as_save_IFS
20079
20080  # And some defines (assuming here that the packages base dir
20081  # doesn't have a config.h file
20082  for word in $defsline; do
20083#    echo word $word
20084    case $word in
20085      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20086        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20087#        echo dd $i
20088        echo $i >>confdefs.h
20089        ;;
20090    esac
20091  done
20092fi
20093
20094# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20095
20096# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20097if test "${enable_dependency_linking+set}" = set; then
20098  enableval="$enable_dependency_linking"
20099  dependency_linking="$enableval"
20100else
20101  dependency_linking=auto
20102fi;
20103
20104if test "$dependency_linking" = auto; then
20105  # On Cygwin and AIX, building DLLs doesn't work
20106  dependency_linking=no
20107  if test x"$coin_disable_shared" = xno; then
20108    case $build in
20109      *-cygwin* | *-mingw*)
20110        case "$CC" in
20111          clang* )
20112            dependency_linking=yes
20113            ;;
20114          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20115            dependency_linking=no
20116            ;;
20117          *gcc*)
20118            dependency_linking=yes
20119            ;;
20120          *)
20121            dependency_linking=yes
20122            ;;
20123        esac
20124        ;;
20125      *)
20126        dependency_linking=yes
20127        ;;
20128    esac
20129  fi
20130fi
20131
20132if test "$dependency_linking" = yes ;
20133then
20134  LT_LDFLAGS="-no-undefined"
20135else
20136  LT_LDFLAGS=
20137fi
20138
20139
20140
20141if test "$dependency_linking" = yes; then
20142  DEPENDENCY_LINKING_TRUE=
20143  DEPENDENCY_LINKING_FALSE='#'
20144else
20145  DEPENDENCY_LINKING_TRUE='#'
20146  DEPENDENCY_LINKING_FALSE=
20147fi
20148
20149
20150# Check if we want to set the library version
20151echo "$as_me:$LINENO: checking if library version is set" >&5
20152echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20153if test x"$coin_libversion" != x; then
20154  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20155  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20156echo "${ECHO_T}$coin_libversion" >&6
20157else
20158  echo "$as_me:$LINENO: result: no" >&5
20159echo "${ECHO_T}no" >&6
20160fi
20161
20162
20163
20164#END
20165}
20166
20167###########################################################################
20168#                            check GLPK version                           #
20169###########################################################################
20170
20171echo "$as_me:$LINENO: checking GLPK version" >&5
20172echo $ECHO_N "checking GLPK version... $ECHO_C" >&6
20173glpkmajorver=`awk '/define GLP_MAJOR_VERSION/ {print $3}' $srcdir/glpk/src/glpk.h`
20174glpkminorver=`awk '/define GLP_MINOR_VERSION/ {print $3}' $srcdir/glpk/src/glpk.h`
20175echo "$as_me:$LINENO: result: ${glpkmajorver}.${glpkminorver}" >&5
20176echo "${ECHO_T}${glpkmajorver}.${glpkminorver}" >&6
20177if test x$glpkmajorver != x4 || test x$glpkminorver != x48 ; then
20178  { { echo "$as_me:$LINENO: error: \"Incorrect GLPK version. This build system is made for GLPK 4.48. Please update by rerunning get.GLPK\"" >&5
20179echo "$as_me: error: \"Incorrect GLPK version. This build system is made for GLPK 4.48. Please update by rerunning get.GLPK\"" >&2;}
20180   { (exit 1); exit 1; }; }
20181fi
20182
20183
20184
20185###########################################################################
20186#                 Other packages and C functions                          #
20187###########################################################################
20188
20189ac_ext=c
20190ac_cpp='$CPP $CPPFLAGS'
20191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20193ac_compiler_gnu=$ac_cv_c_compiler_gnu
20194
20195
20196
20197
20198
20199
20200
20201
20202# Check whether --enable-gmp or --disable-gmp was given.
20203if test "${enable_gmp+set}" = set; then
20204  enableval="$enable_gmp"
20205  coin_enable_gmp=$enableval
20206else
20207  coin_enable_gmp=yes
20208fi;
20209
20210coin_has_gmp=no
20211if test $coin_enable_gmp = yes; then
20212  #if test x"" = x; then
20213#  hdr="#include <gmp.h>"
20214#else
20215#  hdr=""
20216#fi
20217#AC_CHECK_HEADERS([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])],[],[$hdr])
20218
20219for ac_header in gmp.h
20220do
20221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20222if eval "test \"\${$as_ac_Header+set}\" = set"; then
20223  echo "$as_me:$LINENO: checking for $ac_header" >&5
20224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20225if eval "test \"\${$as_ac_Header+set}\" = set"; then
20226  echo $ECHO_N "(cached) $ECHO_C" >&6
20227fi
20228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20230else
20231  # Is the header compilable?
20232echo "$as_me:$LINENO: checking $ac_header usability" >&5
20233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20234cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h.  */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h.  */
20240$ac_includes_default
20241#include <$ac_header>
20242_ACEOF
20243rm -f conftest.$ac_objext
20244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245  (eval $ac_compile) 2>conftest.er1
20246  ac_status=$?
20247  grep -v '^ *+' conftest.er1 >conftest.err
20248  rm -f conftest.er1
20249  cat conftest.err >&5
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); } &&
20252	 { ac_try='test -z "$ac_c_werror_flag"
20253			 || test ! -s conftest.err'
20254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255  (eval $ac_try) 2>&5
20256  ac_status=$?
20257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258  (exit $ac_status); }; } &&
20259	 { ac_try='test -s conftest.$ac_objext'
20260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261  (eval $ac_try) 2>&5
20262  ac_status=$?
20263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264  (exit $ac_status); }; }; then
20265  ac_header_compiler=yes
20266else
20267  echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270ac_header_compiler=no
20271fi
20272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20274echo "${ECHO_T}$ac_header_compiler" >&6
20275
20276# Is the header present?
20277echo "$as_me:$LINENO: checking $ac_header presence" >&5
20278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20279cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h.  */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h.  */
20285#include <$ac_header>
20286_ACEOF
20287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20288  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20289  ac_status=$?
20290  grep -v '^ *+' conftest.er1 >conftest.err
20291  rm -f conftest.er1
20292  cat conftest.err >&5
20293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294  (exit $ac_status); } >/dev/null; then
20295  if test -s conftest.err; then
20296    ac_cpp_err=$ac_c_preproc_warn_flag
20297    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20298  else
20299    ac_cpp_err=
20300  fi
20301else
20302  ac_cpp_err=yes
20303fi
20304if test -z "$ac_cpp_err"; then
20305  ac_header_preproc=yes
20306else
20307  echo "$as_me: failed program was:" >&5
20308sed 's/^/| /' conftest.$ac_ext >&5
20309
20310  ac_header_preproc=no
20311fi
20312rm -f conftest.err conftest.$ac_ext
20313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20314echo "${ECHO_T}$ac_header_preproc" >&6
20315
20316# So?  What about this header?
20317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20318  yes:no: )
20319    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20321    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20323    ac_header_preproc=yes
20324    ;;
20325  no:yes:* )
20326    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20328    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20329echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20330    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20332    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20333echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20334    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20336    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20338    (
20339      cat <<\_ASBOX
20340## --------------------------------------------------------------- ##
20341## Report this to http://projects.coin-or.org/BuildTools/newticket ##
20342## --------------------------------------------------------------- ##
20343_ASBOX
20344    ) |
20345      sed "s/^/$as_me: WARNING:     /" >&2
20346    ;;
20347esac
20348echo "$as_me:$LINENO: checking for $ac_header" >&5
20349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20350if eval "test \"\${$as_ac_Header+set}\" = set"; then
20351  echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353  eval "$as_ac_Header=\$ac_header_preproc"
20354fi
20355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20357
20358fi
20359if test `eval echo '${'$as_ac_Header'}'` = yes; then
20360  cat >>confdefs.h <<_ACEOF
20361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20362_ACEOF
20363 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
20364echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
20365if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
20366  echo $ECHO_N "(cached) $ECHO_C" >&6
20367else
20368  ac_check_lib_save_LIBS=$LIBS
20369LIBS="-lgmp  $LIBS"
20370cat >conftest.$ac_ext <<_ACEOF
20371/* confdefs.h.  */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h.  */
20376
20377/* Override any gcc2 internal prototype to avoid an error.  */
20378#ifdef __cplusplus
20379extern "C"
20380#endif
20381/* We use char because int might match the return type of a gcc2
20382   builtin and then its argument prototype would still apply.  */
20383char __gmpz_init ();
20384int
20385main ()
20386{
20387__gmpz_init ();
20388  ;
20389  return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext conftest$ac_exeext
20393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20394  (eval $ac_link) 2>conftest.er1
20395  ac_status=$?
20396  grep -v '^ *+' conftest.er1 >conftest.err
20397  rm -f conftest.er1
20398  cat conftest.err >&5
20399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); } &&
20401	 { ac_try='test -z "$ac_c_werror_flag"
20402			 || test ! -s conftest.err'
20403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404  (eval $ac_try) 2>&5
20405  ac_status=$?
20406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407  (exit $ac_status); }; } &&
20408	 { ac_try='test -s conftest$ac_exeext'
20409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410  (eval $ac_try) 2>&5
20411  ac_status=$?
20412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413  (exit $ac_status); }; }; then
20414  ac_cv_lib_gmp___gmpz_init=yes
20415else
20416  echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419ac_cv_lib_gmp___gmpz_init=no
20420fi
20421rm -f conftest.err conftest.$ac_objext \
20422      conftest$ac_exeext conftest.$ac_ext
20423LIBS=$ac_check_lib_save_LIBS
20424fi
20425echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
20426echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
20427if test $ac_cv_lib_gmp___gmpz_init = yes; then
20428  coin_has_gmp=yes
20429fi
20430
20431fi
20432
20433done
20434
20435
20436
20437  if test $coin_has_gmp = yes ; then
20438
20439                    GLPK_LIBS="-lgmp $GLPK_LIBS"
20440                    GLPK_PCLIBS="-lgmp $GLPK_PCLIBS"
20441                    GLPK_LIBS_INSTALLED="-lgmp $GLPK_LIBS_INSTALLED"
20442
20443
20444cat >>confdefs.h <<\_ACEOF
20445#define COIN_HAS_GMP 1
20446_ACEOF
20447
20448  fi
20449fi
20450
20451if test $coin_has_gmp = yes; then
20452
20453cat >>confdefs.h <<\_ACEOF
20454#define HAVE_GMP 1
20455_ACEOF
20456
20457fi
20458
20459echo "$as_me:$LINENO: checking for vsnprintf" >&5
20460echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
20461if test "${ac_cv_func_vsnprintf+set}" = set; then
20462  echo $ECHO_N "(cached) $ECHO_C" >&6
20463else
20464  cat >conftest.$ac_ext <<_ACEOF
20465/* confdefs.h.  */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h.  */
20470/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
20471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20472#define vsnprintf innocuous_vsnprintf
20473
20474/* System header to define __stub macros and hopefully few prototypes,
20475    which can conflict with char vsnprintf (); below.
20476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20477    <limits.h> exists even on freestanding compilers.  */
20478
20479#ifdef __STDC__
20480# include <limits.h>
20481#else
20482# include <assert.h>
20483#endif
20484
20485#undef vsnprintf
20486
20487/* Override any gcc2 internal prototype to avoid an error.  */
20488#ifdef __cplusplus
20489extern "C"
20490{
20491#endif
20492/* We use char because int might match the return type of a gcc2
20493   builtin and then its argument prototype would still apply.  */
20494char vsnprintf ();
20495/* The GNU C library defines this for functions which it implements
20496    to always fail with ENOSYS.  Some functions are actually named
20497    something starting with __ and the normal name is an alias.  */
20498#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
20499choke me
20500#else
20501char (*f) () = vsnprintf;
20502#endif
20503#ifdef __cplusplus
20504}
20505#endif
20506
20507int
20508main ()
20509{
20510return f != vsnprintf;
20511  ;
20512  return 0;
20513}
20514_ACEOF
20515rm -f conftest.$ac_objext conftest$ac_exeext
20516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20517  (eval $ac_link) 2>conftest.er1
20518  ac_status=$?
20519  grep -v '^ *+' conftest.er1 >conftest.err
20520  rm -f conftest.er1
20521  cat conftest.err >&5
20522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523  (exit $ac_status); } &&
20524	 { ac_try='test -z "$ac_c_werror_flag"
20525			 || test ! -s conftest.err'
20526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527  (eval $ac_try) 2>&5
20528  ac_status=$?
20529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530  (exit $ac_status); }; } &&
20531	 { ac_try='test -s conftest$ac_exeext'
20532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533  (eval $ac_try) 2>&5
20534  ac_status=$?
20535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); }; }; then
20537  ac_cv_func_vsnprintf=yes
20538else
20539  echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542ac_cv_func_vsnprintf=no
20543fi
20544rm -f conftest.err conftest.$ac_objext \
20545      conftest$ac_exeext conftest.$ac_ext
20546fi
20547echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
20548echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
20549
20550
20551ac_ext=c
20552ac_cpp='$CPP $CPPFLAGS'
20553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556
20557
20558
20559
20560if test $coin_cc_is_cl != true ; then
20561
20562    GLPK_LIBS="-lm $GLPK_LIBS"
20563    GLPK_PCLIBS="-lm $GLPK_PCLIBS"
20564    GLPK_LIBS_INSTALLED="-lm $GLPK_LIBS_INSTALLED"
20565
20566fi
20567
20568
20569
20570###########################################################################
20571#                     Database connectivity                               #
20572###########################################################################
20573
20574#whether we have any means to load shared libraries
20575enable_dl=no
20576
20577ac_ext=c
20578ac_cpp='$CPP $CPPFLAGS'
20579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581ac_compiler_gnu=$ac_cv_c_compiler_gnu
20582
20583
20584#if test x"" = x; then
20585#  hdr="#include <dlfcn.h>"
20586#else
20587#  hdr=""
20588#fi
20589#AC_CHECK_HEADERS([dlfcn.h],[enable_dl=yes],[],[$hdr])
20590
20591for ac_header in dlfcn.h
20592do
20593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20594if eval "test \"\${$as_ac_Header+set}\" = set"; then
20595  echo "$as_me:$LINENO: checking for $ac_header" >&5
20596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20597if eval "test \"\${$as_ac_Header+set}\" = set"; then
20598  echo $ECHO_N "(cached) $ECHO_C" >&6
20599fi
20600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20602else
20603  # Is the header compilable?
20604echo "$as_me:$LINENO: checking $ac_header usability" >&5
20605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20606cat >conftest.$ac_ext <<_ACEOF
20607/* confdefs.h.  */
20608_ACEOF
20609cat confdefs.h >>conftest.$ac_ext
20610cat >>conftest.$ac_ext <<_ACEOF
20611/* end confdefs.h.  */
20612$ac_includes_default
20613#include <$ac_header>
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617  (eval $ac_compile) 2>conftest.er1
20618  ac_status=$?
20619  grep -v '^ *+' conftest.er1 >conftest.err
20620  rm -f conftest.er1
20621  cat conftest.err >&5
20622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623  (exit $ac_status); } &&
20624	 { ac_try='test -z "$ac_c_werror_flag"
20625			 || test ! -s conftest.err'
20626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627  (eval $ac_try) 2>&5
20628  ac_status=$?
20629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630  (exit $ac_status); }; } &&
20631	 { ac_try='test -s conftest.$ac_objext'
20632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633  (eval $ac_try) 2>&5
20634  ac_status=$?
20635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636  (exit $ac_status); }; }; then
20637  ac_header_compiler=yes
20638else
20639  echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
20642ac_header_compiler=no
20643fi
20644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20646echo "${ECHO_T}$ac_header_compiler" >&6
20647
20648# Is the header present?
20649echo "$as_me:$LINENO: checking $ac_header presence" >&5
20650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20651cat >conftest.$ac_ext <<_ACEOF
20652/* confdefs.h.  */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h.  */
20657#include <$ac_header>
20658_ACEOF
20659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20661  ac_status=$?
20662  grep -v '^ *+' conftest.er1 >conftest.err
20663  rm -f conftest.er1
20664  cat conftest.err >&5
20665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666  (exit $ac_status); } >/dev/null; then
20667  if test -s conftest.err; then
20668    ac_cpp_err=$ac_c_preproc_warn_flag
20669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20670  else
20671    ac_cpp_err=
20672  fi
20673else
20674  ac_cpp_err=yes
20675fi
20676if test -z "$ac_cpp_err"; then
20677  ac_header_preproc=yes
20678else
20679  echo "$as_me: failed program was:" >&5
20680sed 's/^/| /' conftest.$ac_ext >&5
20681
20682  ac_header_preproc=no
20683fi
20684rm -f conftest.err conftest.$ac_ext
20685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20686echo "${ECHO_T}$ac_header_preproc" >&6
20687
20688# So?  What about this header?
20689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690  yes:no: )
20691    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20693    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20695    ac_header_preproc=yes
20696    ;;
20697  no:yes:* )
20698    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20700    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20701echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20702    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20704    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20705echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20706    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20708    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20710    (
20711      cat <<\_ASBOX
20712## --------------------------------------------------------------- ##
20713## Report this to http://projects.coin-or.org/BuildTools/newticket ##
20714## --------------------------------------------------------------- ##
20715_ASBOX
20716    ) |
20717      sed "s/^/$as_me: WARNING:     /" >&2
20718    ;;
20719esac
20720echo "$as_me:$LINENO: checking for $ac_header" >&5
20721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20722if eval "test \"\${$as_ac_Header+set}\" = set"; then
20723  echo $ECHO_N "(cached) $ECHO_C" >&6
20724else
20725  eval "$as_ac_Header=\$ac_header_preproc"
20726fi
20727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20729
20730fi
20731if test `eval echo '${'$as_ac_Header'}'` = yes; then
20732  cat >>confdefs.h <<_ACEOF
20733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20734_ACEOF
20735 enable_dl=yes
20736fi
20737
20738done
20739
20740
20741if test "$enable_dl" = "yes"; then
20742  #if dlfcn.h is there, check also if libdl is there; if so, set corresponding define for GLPK
20743  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20744echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20745if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20746  echo $ECHO_N "(cached) $ECHO_C" >&6
20747else
20748  ac_check_lib_save_LIBS=$LIBS
20749LIBS="-ldl  $LIBS"
20750cat >conftest.$ac_ext <<_ACEOF
20751/* confdefs.h.  */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h.  */
20756
20757/* Override any gcc2 internal prototype to avoid an error.  */
20758#ifdef __cplusplus
20759extern "C"
20760#endif
20761/* We use char because int might match the return type of a gcc2
20762   builtin and then its argument prototype would still apply.  */
20763char dlopen ();
20764int
20765main ()
20766{
20767dlopen ();
20768  ;
20769  return 0;
20770}
20771_ACEOF
20772rm -f conftest.$ac_objext conftest$ac_exeext
20773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20774  (eval $ac_link) 2>conftest.er1
20775  ac_status=$?
20776  grep -v '^ *+' conftest.er1 >conftest.err
20777  rm -f conftest.er1
20778  cat conftest.err >&5
20779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780  (exit $ac_status); } &&
20781	 { ac_try='test -z "$ac_c_werror_flag"
20782			 || test ! -s conftest.err'
20783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784  (eval $ac_try) 2>&5
20785  ac_status=$?
20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787  (exit $ac_status); }; } &&
20788	 { ac_try='test -s conftest$ac_exeext'
20789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790  (eval $ac_try) 2>&5
20791  ac_status=$?
20792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793  (exit $ac_status); }; }; then
20794  ac_cv_lib_dl_dlopen=yes
20795else
20796  echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799ac_cv_lib_dl_dlopen=no
20800fi
20801rm -f conftest.err conftest.$ac_objext \
20802      conftest$ac_exeext conftest.$ac_ext
20803LIBS=$ac_check_lib_save_LIBS
20804fi
20805echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20806echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20807if test $ac_cv_lib_dl_dlopen = yes; then
20808
20809cat >>confdefs.h <<\_ACEOF
20810#define HAVE_DLFCN 1
20811_ACEOF
20812
20813else
20814  enable_dl=no
20815fi
20816
20817  if test $enable_dl = yes; then
20818    GLPK_LIBS="-ldl $GLPK_LIBS"
20819    GLPK_PCLIBS="-ldl $GLPK_PCLIBS"
20820  fi
20821fi
20822
20823if test "$enable_dl" = "no"; then
20824  #if test x"" = x; then
20825#  hdr="#include <ltdl.h>"
20826#else
20827#  hdr=""
20828#fi
20829#AC_CHECK_HEADERS([ltdl.h],[enable_dl=yes],[],[$hdr])
20830
20831for ac_header in ltdl.h
20832do
20833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20834if eval "test \"\${$as_ac_Header+set}\" = set"; then
20835  echo "$as_me:$LINENO: checking for $ac_header" >&5
20836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20837if eval "test \"\${$as_ac_Header+set}\" = set"; then
20838  echo $ECHO_N "(cached) $ECHO_C" >&6
20839fi
20840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20842else
20843  # Is the header compilable?
20844echo "$as_me:$LINENO: checking $ac_header usability" >&5
20845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20846cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h.  */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h.  */
20852$ac_includes_default
20853#include <$ac_header>
20854_ACEOF
20855rm -f conftest.$ac_objext
20856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20857  (eval $ac_compile) 2>conftest.er1
20858  ac_status=$?
20859  grep -v '^ *+' conftest.er1 >conftest.err
20860  rm -f conftest.er1
20861  cat conftest.err >&5
20862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863  (exit $ac_status); } &&
20864	 { ac_try='test -z "$ac_c_werror_flag"
20865			 || test ! -s conftest.err'
20866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867  (eval $ac_try) 2>&5
20868  ac_status=$?
20869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870  (exit $ac_status); }; } &&
20871	 { ac_try='test -s conftest.$ac_objext'
20872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873  (eval $ac_try) 2>&5
20874  ac_status=$?
20875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876  (exit $ac_status); }; }; then
20877  ac_header_compiler=yes
20878else
20879  echo "$as_me: failed program was:" >&5
20880sed 's/^/| /' conftest.$ac_ext >&5
20881
20882ac_header_compiler=no
20883fi
20884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20886echo "${ECHO_T}$ac_header_compiler" >&6
20887
20888# Is the header present?
20889echo "$as_me:$LINENO: checking $ac_header presence" >&5
20890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20891cat >conftest.$ac_ext <<_ACEOF
20892/* confdefs.h.  */
20893_ACEOF
20894cat confdefs.h >>conftest.$ac_ext
20895cat >>conftest.$ac_ext <<_ACEOF
20896/* end confdefs.h.  */
20897#include <$ac_header>
20898_ACEOF
20899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20900  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20901  ac_status=$?
20902  grep -v '^ *+' conftest.er1 >conftest.err
20903  rm -f conftest.er1
20904  cat conftest.err >&5
20905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906  (exit $ac_status); } >/dev/null; then
20907  if test -s conftest.err; then
20908    ac_cpp_err=$ac_c_preproc_warn_flag
20909    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20910  else
20911    ac_cpp_err=
20912  fi
20913else
20914  ac_cpp_err=yes
20915fi
20916if test -z "$ac_cpp_err"; then
20917  ac_header_preproc=yes
20918else
20919  echo "$as_me: failed program was:" >&5
20920sed 's/^/| /' conftest.$ac_ext >&5
20921
20922  ac_header_preproc=no
20923fi
20924rm -f conftest.err conftest.$ac_ext
20925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20926echo "${ECHO_T}$ac_header_preproc" >&6
20927
20928# So?  What about this header?
20929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20930  yes:no: )
20931    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20933    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20935    ac_header_preproc=yes
20936    ;;
20937  no:yes:* )
20938    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20940    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20941echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20942    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20944    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20945echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20946    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20948    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20950    (
20951      cat <<\_ASBOX
20952## --------------------------------------------------------------- ##
20953## Report this to http://projects.coin-or.org/BuildTools/newticket ##
20954## --------------------------------------------------------------- ##
20955_ASBOX
20956    ) |
20957      sed "s/^/$as_me: WARNING:     /" >&2
20958    ;;
20959esac
20960echo "$as_me:$LINENO: checking for $ac_header" >&5
20961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20962if eval "test \"\${$as_ac_Header+set}\" = set"; then
20963  echo $ECHO_N "(cached) $ECHO_C" >&6
20964else
20965  eval "$as_ac_Header=\$ac_header_preproc"
20966fi
20967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20969
20970fi
20971if test `eval echo '${'$as_ac_Header'}'` = yes; then
20972  cat >>confdefs.h <<_ACEOF
20973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20974_ACEOF
20975 enable_dl=yes
20976fi
20977
20978done
20979
20980
20981  if test "$enable_dl" = "yes"; then
20982    #if ltdl.h is there, check also if libltdl is there; if so, set corresponding define for GLPK
20983    echo "$as_me:$LINENO: checking for lt_dlopen in -lldtl" >&5
20984echo $ECHO_N "checking for lt_dlopen in -lldtl... $ECHO_C" >&6
20985if test "${ac_cv_lib_ldtl_lt_dlopen+set}" = set; then
20986  echo $ECHO_N "(cached) $ECHO_C" >&6
20987else
20988  ac_check_lib_save_LIBS=$LIBS
20989LIBS="-lldtl  $LIBS"
20990cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h.  */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h.  */
20996
20997/* Override any gcc2 internal prototype to avoid an error.  */
20998#ifdef __cplusplus
20999extern "C"
21000#endif
21001/* We use char because int might match the return type of a gcc2
21002   builtin and then its argument prototype would still apply.  */
21003char lt_dlopen ();
21004int
21005main ()
21006{
21007lt_dlopen ();
21008  ;
21009  return 0;
21010}
21011_ACEOF
21012rm -f conftest.$ac_objext conftest$ac_exeext
21013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014  (eval $ac_link) 2>conftest.er1
21015  ac_status=$?
21016  grep -v '^ *+' conftest.er1 >conftest.err
21017  rm -f conftest.er1
21018  cat conftest.err >&5
21019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020  (exit $ac_status); } &&
21021	 { ac_try='test -z "$ac_c_werror_flag"
21022			 || test ! -s conftest.err'
21023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024  (eval $ac_try) 2>&5
21025  ac_status=$?
21026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027  (exit $ac_status); }; } &&
21028	 { ac_try='test -s conftest$ac_exeext'
21029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030  (eval $ac_try) 2>&5
21031  ac_status=$?
21032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033  (exit $ac_status); }; }; then
21034  ac_cv_lib_ldtl_lt_dlopen=yes
21035else
21036  echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039ac_cv_lib_ldtl_lt_dlopen=no
21040fi
21041rm -f conftest.err conftest.$ac_objext \
21042      conftest$ac_exeext conftest.$ac_ext
21043LIBS=$ac_check_lib_save_LIBS
21044fi
21045echo "$as_me:$LINENO: result: $ac_cv_lib_ldtl_lt_dlopen" >&5
21046echo "${ECHO_T}$ac_cv_lib_ldtl_lt_dlopen" >&6
21047if test $ac_cv_lib_ldtl_lt_dlopen = yes; then
21048
21049cat >>confdefs.h <<\_ACEOF
21050#define HAVE_LTDL 1
21051_ACEOF
21052
21053else
21054  enable_dl=no
21055fi
21056
21057    if test $enable_dl = yes; then
21058      GLPK_LIBS="-lltdl $GLPK_LIBS"
21059      GLPK_PCLIBS="-lltdl $GLPK_PCLIBS"
21060    fi
21061  fi
21062fi
21063
21064if test "$enable_dl" = "no"; then
21065  #if test x"" = x; then
21066#  hdr="#include <windows.h>"
21067#else
21068#  hdr=""
21069#fi
21070#AC_CHECK_HEADERS([windows.h],[enable_dl=yes],[],[$hdr])
21071
21072for ac_header in windows.h
21073do
21074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21075if eval "test \"\${$as_ac_Header+set}\" = set"; then
21076  echo "$as_me:$LINENO: checking for $ac_header" >&5
21077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21078if eval "test \"\${$as_ac_Header+set}\" = set"; then
21079  echo $ECHO_N "(cached) $ECHO_C" >&6
21080fi
21081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21083else
21084  # Is the header compilable?
21085echo "$as_me:$LINENO: checking $ac_header usability" >&5
21086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21087cat >conftest.$ac_ext <<_ACEOF
21088/* confdefs.h.  */
21089_ACEOF
21090cat confdefs.h >>conftest.$ac_ext
21091cat >>conftest.$ac_ext <<_ACEOF
21092/* end confdefs.h.  */
21093$ac_includes_default
21094#include <$ac_header>
21095_ACEOF
21096rm -f conftest.$ac_objext
21097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21098  (eval $ac_compile) 2>conftest.er1
21099  ac_status=$?
21100  grep -v '^ *+' conftest.er1 >conftest.err
21101  rm -f conftest.er1
21102  cat conftest.err >&5
21103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104  (exit $ac_status); } &&
21105	 { ac_try='test -z "$ac_c_werror_flag"
21106			 || test ! -s conftest.err'
21107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108  (eval $ac_try) 2>&5
21109  ac_status=$?
21110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111  (exit $ac_status); }; } &&
21112	 { ac_try='test -s conftest.$ac_objext'
21113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114  (eval $ac_try) 2>&5
21115  ac_status=$?
21116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117  (exit $ac_status); }; }; then
21118  ac_header_compiler=yes
21119else
21120  echo "$as_me: failed program was:" >&5
21121sed 's/^/| /' conftest.$ac_ext >&5
21122
21123ac_header_compiler=no
21124fi
21125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21127echo "${ECHO_T}$ac_header_compiler" >&6
21128
21129# Is the header present?
21130echo "$as_me:$LINENO: checking $ac_header presence" >&5
21131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21132cat >conftest.$ac_ext <<_ACEOF
21133/* confdefs.h.  */
21134_ACEOF
21135cat confdefs.h >>conftest.$ac_ext
21136cat >>conftest.$ac_ext <<_ACEOF
21137/* end confdefs.h.  */
21138#include <$ac_header>
21139_ACEOF
21140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21141  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21142  ac_status=$?
21143  grep -v '^ *+' conftest.er1 >conftest.err
21144  rm -f conftest.er1
21145  cat conftest.err >&5
21146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147  (exit $ac_status); } >/dev/null; then
21148  if test -s conftest.err; then
21149    ac_cpp_err=$ac_c_preproc_warn_flag
21150    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21151  else
21152    ac_cpp_err=
21153  fi
21154else
21155  ac_cpp_err=yes
21156fi
21157if test -z "$ac_cpp_err"; then
21158  ac_header_preproc=yes
21159else
21160  echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
21162
21163  ac_header_preproc=no
21164fi
21165rm -f conftest.err conftest.$ac_ext
21166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21167echo "${ECHO_T}$ac_header_preproc" >&6
21168
21169# So?  What about this header?
21170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21171  yes:no: )
21172    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21176    ac_header_preproc=yes
21177    ;;
21178  no:yes:* )
21179    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21181    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21182echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21183    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21185    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21186echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21189    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21191    (
21192      cat <<\_ASBOX
21193## --------------------------------------------------------------- ##
21194## Report this to http://projects.coin-or.org/BuildTools/newticket ##
21195## --------------------------------------------------------------- ##
21196_ASBOX
21197    ) |
21198      sed "s/^/$as_me: WARNING:     /" >&2
21199    ;;
21200esac
21201echo "$as_me:$LINENO: checking for $ac_header" >&5
21202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21203if eval "test \"\${$as_ac_Header+set}\" = set"; then
21204  echo $ECHO_N "(cached) $ECHO_C" >&6
21205else
21206  eval "$as_ac_Header=\$ac_header_preproc"
21207fi
21208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21210
21211fi
21212if test `eval echo '${'$as_ac_Header'}'` = yes; then
21213  cat >>confdefs.h <<_ACEOF
21214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21215_ACEOF
21216 enable_dl=yes
21217fi
21218
21219done
21220
21221
21222  if test "$enable_dl" = "yes"; then
21223
21224cat >>confdefs.h <<\_ACEOF
21225#define __WOE__ 1
21226_ACEOF
21227
21228  fi
21229fi
21230
21231# Check whether --enable-odbc or --disable-odbc was given.
21232if test "${enable_odbc+set}" = set; then
21233  enableval="$enable_odbc"
21234  case $enableval in
21235     yes | unix)
21236       #if test x"" = x; then
21237#  hdr="#include <sql.h>"
21238#else
21239#  hdr=""
21240#fi
21241#AC_CHECK_HEADERS([sql.h],[],[AC_MSG_ERROR(["need sql.h to enable ODBC support"])],[$hdr])
21242
21243for ac_header in sql.h
21244do
21245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21246if eval "test \"\${$as_ac_Header+set}\" = set"; then
21247  echo "$as_me:$LINENO: checking for $ac_header" >&5
21248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21249if eval "test \"\${$as_ac_Header+set}\" = set"; then
21250  echo $ECHO_N "(cached) $ECHO_C" >&6
21251fi
21252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21254else
21255  # Is the header compilable?
21256echo "$as_me:$LINENO: checking $ac_header usability" >&5
21257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21258cat >conftest.$ac_ext <<_ACEOF
21259/* confdefs.h.  */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h.  */
21264$ac_includes_default
21265#include <$ac_header>
21266_ACEOF
21267rm -f conftest.$ac_objext
21268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21269  (eval $ac_compile) 2>conftest.er1
21270  ac_status=$?
21271  grep -v '^ *+' conftest.er1 >conftest.err
21272  rm -f conftest.er1
21273  cat conftest.err >&5
21274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275  (exit $ac_status); } &&
21276	 { ac_try='test -z "$ac_c_werror_flag"
21277			 || test ! -s conftest.err'
21278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279  (eval $ac_try) 2>&5
21280  ac_status=$?
21281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282  (exit $ac_status); }; } &&
21283	 { ac_try='test -s conftest.$ac_objext'
21284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285  (eval $ac_try) 2>&5
21286  ac_status=$?
21287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288  (exit $ac_status); }; }; then
21289  ac_header_compiler=yes
21290else
21291  echo "$as_me: failed program was:" >&5
21292sed 's/^/| /' conftest.$ac_ext >&5
21293
21294ac_header_compiler=no
21295fi
21296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298echo "${ECHO_T}$ac_header_compiler" >&6
21299
21300# Is the header present?
21301echo "$as_me:$LINENO: checking $ac_header presence" >&5
21302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21303cat >conftest.$ac_ext <<_ACEOF
21304/* confdefs.h.  */
21305_ACEOF
21306cat confdefs.h >>conftest.$ac_ext
21307cat >>conftest.$ac_ext <<_ACEOF
21308/* end confdefs.h.  */
21309#include <$ac_header>
21310_ACEOF
21311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21313  ac_status=$?
21314  grep -v '^ *+' conftest.er1 >conftest.err
21315  rm -f conftest.er1
21316  cat conftest.err >&5
21317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318  (exit $ac_status); } >/dev/null; then
21319  if test -s conftest.err; then
21320    ac_cpp_err=$ac_c_preproc_warn_flag
21321    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21322  else
21323    ac_cpp_err=
21324  fi
21325else
21326  ac_cpp_err=yes
21327fi
21328if test -z "$ac_cpp_err"; then
21329  ac_header_preproc=yes
21330else
21331  echo "$as_me: failed program was:" >&5
21332sed 's/^/| /' conftest.$ac_ext >&5
21333
21334  ac_header_preproc=no
21335fi
21336rm -f conftest.err conftest.$ac_ext
21337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338echo "${ECHO_T}$ac_header_preproc" >&6
21339
21340# So?  What about this header?
21341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342  yes:no: )
21343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21347    ac_header_preproc=yes
21348    ;;
21349  no:yes:* )
21350    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21353echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21354    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21356    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21357echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21360    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21362    (
21363      cat <<\_ASBOX
21364## --------------------------------------------------------------- ##
21365## Report this to http://projects.coin-or.org/BuildTools/newticket ##
21366## --------------------------------------------------------------- ##
21367_ASBOX
21368    ) |
21369      sed "s/^/$as_me: WARNING:     /" >&2
21370    ;;
21371esac
21372echo "$as_me:$LINENO: checking for $ac_header" >&5
21373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21374if eval "test \"\${$as_ac_Header+set}\" = set"; then
21375  echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377  eval "$as_ac_Header=\$ac_header_preproc"
21378fi
21379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21381
21382fi
21383if test `eval echo '${'$as_ac_Header'}'` = yes; then
21384  cat >>confdefs.h <<_ACEOF
21385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21386_ACEOF
21387
21388else
21389  { { echo "$as_me:$LINENO: error: \"need sql.h to enable ODBC support\"" >&5
21390echo "$as_me: error: \"need sql.h to enable ODBC support\"" >&2;}
21391   { (exit 1); exit 1; }; }
21392fi
21393
21394done
21395
21396
21397       enable_odbc="$enableval"
21398     ;;
21399     no)
21400       enable_odbc="no"
21401     ;;
21402     *)
21403       { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-odbc" >&5
21404echo "$as_me: error: invalid value '$enableval' for --enable-odbc" >&2;}
21405   { (exit 1); exit 1; }; }
21406     ;;
21407   esac
21408else
21409  #if test x"" = x; then
21410#  hdr="#include <sql.h>"
21411#else
21412#  hdr=""
21413#fi
21414#AC_CHECK_HEADERS([sql.h],[enable_odbc=yes],[enable_odbc=no],[$hdr])
21415
21416for ac_header in sql.h
21417do
21418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419if eval "test \"\${$as_ac_Header+set}\" = set"; then
21420  echo "$as_me:$LINENO: checking for $ac_header" >&5
21421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21422if eval "test \"\${$as_ac_Header+set}\" = set"; then
21423  echo $ECHO_N "(cached) $ECHO_C" >&6
21424fi
21425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21427else
21428  # Is the header compilable?
21429echo "$as_me:$LINENO: checking $ac_header usability" >&5
21430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21431cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h.  */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h.  */
21437$ac_includes_default
21438#include <$ac_header>
21439_ACEOF
21440rm -f conftest.$ac_objext
21441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21442  (eval $ac_compile) 2>conftest.er1
21443  ac_status=$?
21444  grep -v '^ *+' conftest.er1 >conftest.err
21445  rm -f conftest.er1
21446  cat conftest.err >&5
21447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448  (exit $ac_status); } &&
21449	 { ac_try='test -z "$ac_c_werror_flag"
21450			 || test ! -s conftest.err'
21451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452  (eval $ac_try) 2>&5
21453  ac_status=$?
21454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455  (exit $ac_status); }; } &&
21456	 { ac_try='test -s conftest.$ac_objext'
21457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458  (eval $ac_try) 2>&5
21459  ac_status=$?
21460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461  (exit $ac_status); }; }; then
21462  ac_header_compiler=yes
21463else
21464  echo "$as_me: failed program was:" >&5
21465sed 's/^/| /' conftest.$ac_ext >&5
21466
21467ac_header_compiler=no
21468fi
21469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21471echo "${ECHO_T}$ac_header_compiler" >&6
21472
21473# Is the header present?
21474echo "$as_me:$LINENO: checking $ac_header presence" >&5
21475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21476cat >conftest.$ac_ext <<_ACEOF
21477/* confdefs.h.  */
21478_ACEOF
21479cat confdefs.h >>conftest.$ac_ext
21480cat >>conftest.$ac_ext <<_ACEOF
21481/* end confdefs.h.  */
21482#include <$ac_header>
21483_ACEOF
21484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21485  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21486  ac_status=$?
21487  grep -v '^ *+' conftest.er1 >conftest.err
21488  rm -f conftest.er1
21489  cat conftest.err >&5
21490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491  (exit $ac_status); } >/dev/null; then
21492  if test -s conftest.err; then
21493    ac_cpp_err=$ac_c_preproc_warn_flag
21494    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21495  else
21496    ac_cpp_err=
21497  fi
21498else
21499  ac_cpp_err=yes
21500fi
21501if test -z "$ac_cpp_err"; then
21502  ac_header_preproc=yes
21503else
21504  echo "$as_me: failed program was:" >&5
21505sed 's/^/| /' conftest.$ac_ext >&5
21506
21507  ac_header_preproc=no
21508fi
21509rm -f conftest.err conftest.$ac_ext
21510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511echo "${ECHO_T}$ac_header_preproc" >&6
21512
21513# So?  What about this header?
21514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515  yes:no: )
21516    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520    ac_header_preproc=yes
21521    ;;
21522  no:yes:* )
21523    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21526echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21527    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21530echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21531    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21535    (
21536      cat <<\_ASBOX
21537## --------------------------------------------------------------- ##
21538## Report this to http://projects.coin-or.org/BuildTools/newticket ##
21539## --------------------------------------------------------------- ##
21540_ASBOX
21541    ) |
21542      sed "s/^/$as_me: WARNING:     /" >&2
21543    ;;
21544esac
21545echo "$as_me:$LINENO: checking for $ac_header" >&5
21546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21547if eval "test \"\${$as_ac_Header+set}\" = set"; then
21548  echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550  eval "$as_ac_Header=\$ac_header_preproc"
21551fi
21552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21554
21555fi
21556if test `eval echo '${'$as_ac_Header'}'` = yes; then
21557  cat >>confdefs.h <<_ACEOF
21558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21559_ACEOF
21560 enable_odbc=yes
21561else
21562  enable_odbc=no
21563fi
21564
21565done
21566
21567
21568
21569fi;
21570
21571# Check whether --enable-mysql or --disable-mysql was given.
21572if test "${enable_mysql+set}" = set; then
21573  enableval="$enable_mysql"
21574  case $enableval in
21575     yes)
21576       #if test x"" = x; then
21577#  hdr="#include <mysql.h mysql/mysql.h>"
21578#else
21579#  hdr=""
21580#fi
21581#AC_CHECK_HEADERS([mysql.h mysql/mysql.h],[],[AC_MSG_ERROR(["need mysql.h to enable MySQL support"])],[$hdr])
21582
21583
21584for ac_header in mysql.h mysql/mysql.h
21585do
21586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21587if eval "test \"\${$as_ac_Header+set}\" = set"; then
21588  echo "$as_me:$LINENO: checking for $ac_header" >&5
21589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21590if eval "test \"\${$as_ac_Header+set}\" = set"; then
21591  echo $ECHO_N "(cached) $ECHO_C" >&6
21592fi
21593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21595else
21596  # Is the header compilable?
21597echo "$as_me:$LINENO: checking $ac_header usability" >&5
21598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21599cat >conftest.$ac_ext <<_ACEOF
21600/* confdefs.h.  */
21601_ACEOF
21602cat confdefs.h >>conftest.$ac_ext
21603cat >>conftest.$ac_ext <<_ACEOF
21604/* end confdefs.h.  */
21605$ac_includes_default
21606#include <$ac_header>
21607_ACEOF
21608rm -f conftest.$ac_objext
21609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21610  (eval $ac_compile) 2>conftest.er1
21611  ac_status=$?
21612  grep -v '^ *+' conftest.er1 >conftest.err
21613  rm -f conftest.er1
21614  cat conftest.err >&5
21615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616  (exit $ac_status); } &&
21617	 { ac_try='test -z "$ac_c_werror_flag"
21618			 || test ! -s conftest.err'
21619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620  (eval $ac_try) 2>&5
21621  ac_status=$?
21622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623  (exit $ac_status); }; } &&
21624	 { ac_try='test -s conftest.$ac_objext'
21625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626  (eval $ac_try) 2>&5
21627  ac_status=$?
21628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629  (exit $ac_status); }; }; then
21630  ac_header_compiler=yes
21631else
21632  echo "$as_me: failed program was:" >&5
21633sed 's/^/| /' conftest.$ac_ext >&5
21634
21635ac_header_compiler=no
21636fi
21637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21639echo "${ECHO_T}$ac_header_compiler" >&6
21640
21641# Is the header present?
21642echo "$as_me:$LINENO: checking $ac_header presence" >&5
21643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21644cat >conftest.$ac_ext <<_ACEOF
21645/* confdefs.h.  */
21646_ACEOF
21647cat confdefs.h >>conftest.$ac_ext
21648cat >>conftest.$ac_ext <<_ACEOF
21649/* end confdefs.h.  */
21650#include <$ac_header>
21651_ACEOF
21652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21654  ac_status=$?
21655  grep -v '^ *+' conftest.er1 >conftest.err
21656  rm -f conftest.er1
21657  cat conftest.err >&5
21658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659  (exit $ac_status); } >/dev/null; then
21660  if test -s conftest.err; then
21661    ac_cpp_err=$ac_c_preproc_warn_flag
21662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21663  else
21664    ac_cpp_err=
21665  fi
21666else
21667  ac_cpp_err=yes
21668fi
21669if test -z "$ac_cpp_err"; then
21670  ac_header_preproc=yes
21671else
21672  echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5
21674
21675  ac_header_preproc=no
21676fi
21677rm -f conftest.err conftest.$ac_ext
21678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679echo "${ECHO_T}$ac_header_preproc" >&6
21680
21681# So?  What about this header?
21682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683  yes:no: )
21684    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21688    ac_header_preproc=yes
21689    ;;
21690  no:yes:* )
21691    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21693    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21694echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21695    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21697    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21698echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21699    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21701    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21703    (
21704      cat <<\_ASBOX
21705## --------------------------------------------------------------- ##
21706## Report this to http://projects.coin-or.org/BuildTools/newticket ##
21707## --------------------------------------------------------------- ##
21708_ASBOX
21709    ) |
21710      sed "s/^/$as_me: WARNING:     /" >&2
21711    ;;
21712esac
21713echo "$as_me:$LINENO: checking for $ac_header" >&5
21714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21715if eval "test \"\${$as_ac_Header+set}\" = set"; then
21716  echo $ECHO_N "(cached) $ECHO_C" >&6
21717else
21718  eval "$as_ac_Header=\$ac_header_preproc"
21719fi
21720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21722
21723fi
21724if test `eval echo '${'$as_ac_Header'}'` = yes; then
21725  cat >>confdefs.h <<_ACEOF
21726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21727_ACEOF
21728
21729else
21730  { { echo "$as_me:$LINENO: error: \"need mysql.h to enable MySQL support\"" >&5
21731echo "$as_me: error: \"need mysql.h to enable MySQL support\"" >&2;}
21732   { (exit 1); exit 1; }; }
21733fi
21734
21735done
21736
21737
21738       enable_mysql="$enableval"
21739     ;;
21740     no)
21741       enable_mysql="no"
21742     ;;
21743     *)
21744       { { echo "$as_me:$LINENO: error: invalid value '$enableval' for --enable-mysql" >&5
21745echo "$as_me: error: invalid value '$enableval' for --enable-mysql" >&2;}
21746   { (exit 1); exit 1; }; }
21747     ;;
21748   esac
21749else
21750  #if test x"" = x; then
21751#  hdr="#include <mysql.h mysql/mysql.h>"
21752#else
21753#  hdr=""
21754#fi
21755#AC_CHECK_HEADERS([mysql.h mysql/mysql.h],[enable_mysql=yes],[enable_mysql=no],[$hdr])
21756
21757
21758for ac_header in mysql.h mysql/mysql.h
21759do
21760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21761if eval "test \"\${$as_ac_Header+set}\" = set"; then
21762  echo "$as_me:$LINENO: checking for $ac_header" >&5
21763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21764if eval "test \"\${$as_ac_Header+set}\" = set"; then
21765  echo $ECHO_N "(cached) $ECHO_C" >&6
21766fi
21767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21769else
21770  # Is the header compilable?
21771echo "$as_me:$LINENO: checking $ac_header usability" >&5
21772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21773cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h.  */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h.  */
21779$ac_includes_default
21780#include <$ac_header>
21781_ACEOF
21782rm -f conftest.$ac_objext
21783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21784  (eval $ac_compile) 2>conftest.er1
21785  ac_status=$?
21786  grep -v '^ *+' conftest.er1 >conftest.err
21787  rm -f conftest.er1
21788  cat conftest.err >&5
21789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790  (exit $ac_status); } &&
21791	 { ac_try='test -z "$ac_c_werror_flag"
21792			 || test ! -s conftest.err'
21793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794  (eval $ac_try) 2>&5
21795  ac_status=$?
21796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797  (exit $ac_status); }; } &&
21798	 { ac_try='test -s conftest.$ac_objext'
21799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800  (eval $ac_try) 2>&5
21801  ac_status=$?
21802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803  (exit $ac_status); }; }; then
21804  ac_header_compiler=yes
21805else
21806  echo "$as_me: failed program was:" >&5
21807sed 's/^/| /' conftest.$ac_ext >&5
21808
21809ac_header_compiler=no
21810fi
21811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813echo "${ECHO_T}$ac_header_compiler" >&6
21814
21815# Is the header present?
21816echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21818cat >conftest.$ac_ext <<_ACEOF
21819/* confdefs.h.  */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h.  */
21824#include <$ac_header>
21825_ACEOF
21826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21828  ac_status=$?
21829  grep -v '^ *+' conftest.er1 >conftest.err
21830  rm -f conftest.er1
21831  cat conftest.err >&5
21832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833  (exit $ac_status); } >/dev/null; then
21834  if test -s conftest.err; then
21835    ac_cpp_err=$ac_c_preproc_warn_flag
21836    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21837  else
21838    ac_cpp_err=
21839  fi
21840else
21841  ac_cpp_err=yes
21842fi
21843if test -z "$ac_cpp_err"; then
21844  ac_header_preproc=yes
21845else
21846  echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849  ac_header_preproc=no
21850fi
21851rm -f conftest.err conftest.$ac_ext
21852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21853echo "${ECHO_T}$ac_header_preproc" >&6
21854
21855# So?  What about this header?
21856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21857  yes:no: )
21858    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21862    ac_header_preproc=yes
21863    ;;
21864  no:yes:* )
21865    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21867    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21868echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21869    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21871    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21872echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21875    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21877    (
21878      cat <<\_ASBOX
21879## --------------------------------------------------------------- ##
21880## Report this to http://projects.coin-or.org/BuildTools/newticket ##
21881## --------------------------------------------------------------- ##
21882_ASBOX
21883    ) |
21884      sed "s/^/$as_me: WARNING:     /" >&2
21885    ;;
21886esac
21887echo "$as_me:$LINENO: checking for $ac_header" >&5
21888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21889if eval "test \"\${$as_ac_Header+set}\" = set"; then
21890  echo $ECHO_N "(cached) $ECHO_C" >&6
21891else
21892  eval "$as_ac_Header=\$ac_header_preproc"
21893fi
21894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21896
21897fi
21898if test `eval echo '${'$as_ac_Header'}'` = yes; then
21899  cat >>confdefs.h <<_ACEOF
21900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21901_ACEOF
21902 enable_mysql=yes
21903else
21904  enable_mysql=no
21905fi
21906
21907done
21908
21909
21910
21911fi;
21912
21913ac_ext=c
21914ac_cpp='$CPP $CPPFLAGS'
21915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21917ac_compiler_gnu=$ac_cv_c_compiler_gnu
21918
21919
21920if test "$enable_dl" = "yes" && ( test "$enable_odbc" = "yes" || test "$enable_odbc" = "unix"); then
21921  echo "$as_me:$LINENO: checking checking name of ODBC library" >&5
21922echo $ECHO_N "checking checking name of ODBC library... $ECHO_C" >&6
21923  case $build in
21924    *-cygwin* |  *-mingw32*)
21925       case "$CC" in
21926         *cl* )
21927            odbclibname="odbc32.dll"
21928         ;;
21929         *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows?
21930            if test "$enable_odbc" = "yes"; then
21931              odbclibname="libiodbc.dll"
21932            else
21933              odbclibname="libodbc.dll"
21934            fi
21935         ;;
21936       esac
21937    ;;
21938    *-mingw64*)
21939       case "$CC" in
21940         *cl* )
21941            odbclibname="odbc64.dll"
21942         ;;
21943         *) #FIXME: what are the correct library names for using ODBC with gnu compiler under Windows?
21944            if test "$enable_odbc" = "yes"; then
21945              odbclibname="libiodbc.dll"
21946            else
21947              odbclibname="libodbc.dll"
21948            fi
21949         ;;
21950       esac
21951    ;;
21952    *-darwin*)
21953       if test "$enable_odbc" = "yes"; then
21954          odbclibname="libiodbc.dylib"
21955       else
21956          odbclibname="libodbc.dylib"
21957       fi
21958    ;;
21959    *)
21960       if test "$enable_odbc" = "yes"; then
21961          odbclibname="libiodbc.so"
21962       else
21963          odbclibname="libodbc.so"
21964       fi
21965    ;;
21966  esac
21967
21968
21969cat >>confdefs.h <<_ACEOF
21970#define ODBC_DLNAME "$odbclibname"
21971_ACEOF
21972
21973  echo "$as_me:$LINENO: result: $odbclibname" >&5
21974echo "${ECHO_T}$odbclibname" >&6
21975fi
21976
21977if test "$enable_dl" = "yes" && test "$enable_mysql" = "yes" ; then
21978  echo "$as_me:$LINENO: checking checking name of MySQL library" >&5
21979echo $ECHO_N "checking checking name of MySQL library... $ECHO_C" >&6
21980  case $build in
21981    *-cygwin* |  *-mingw*)
21982       case "$CC" in
21983         *cl* )
21984            mysqllibname="libmysql.dll"
21985         ;;
21986         *) #FIXME: what is the correct library name for using MySQL with gnu compiler under Windows?
21987            mysqllibname="libmysqlclient.dll"
21988            CFLAGS="-I/usr/include/mysql $CFLAGS"
21989         ;;
21990       esac
21991    ;;
21992    *-darwin*)
21993       mysqllibname="libmysqlclient.dylib"
21994       CFLAGS="-I/usr/include/mysql $CFLAGS"
21995    ;;
21996    *)
21997       mysqllibname="libmysqlclient.so"
21998       CFLAGS="-I/usr/include/mysql $CFLAGS"
21999    ;;
22000  esac
22001
22002
22003cat >>confdefs.h <<_ACEOF
22004#define MYSQL_DLNAME "$mysqllibname"
22005_ACEOF
22006
22007  echo "$as_me:$LINENO: result: $mysqllibname" >&5
22008echo "${ECHO_T}$mysqllibname" >&6
22009fi
22010
22011GLPKDIR=glpk
22012
22013
22014                              ac_config_files="$ac_config_files Makefile coinglpk.pc coinglpk-uninstalled.pc"
22015
22016          ac_config_headers="$ac_config_headers config_glpk.h"
22017
22018
22019
22020
22021
22022
22023
22024
22025echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22026echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22027coin_link_input_cmd="$LN_S"
22028case "$CC" in
22029  clang* ) ;;
22030  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22031    coin_link_input_cmd=cp ;;
22032esac
22033echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22034echo "${ECHO_T}$coin_link_input_cmd" >&6
22035
22036
22037
22038if test x$coin_skip_ac_output != xyes; then
22039
22040  # library extension
22041
22042  case "$CC" in
22043    clang* )
22044         LIBEXT=a ;;
22045    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22046         LIBEXT=lib ;;
22047      *) LIBEXT=a ;;
22048  esac
22049
22050  # Define VPATH_DISTCLEANFILES to be everything that needs to be
22051  # cleaned for distclean in a vpath configuration
22052
22053  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22054
22055  # Take out subdirectories if their configuration concluded that they
22056  # don't need to be compiled
22057  if test x"$coin_ac_skip_subdirs" != x; then
22058    new_subdirs=
22059    for i in $subdirs; do
22060      skipme=no
22061      for j in $coin_ac_skip_subdirs; do
22062        if test $i = $j; then
22063          skipme=yes;
22064        fi
22065      done
22066      if test $skipme = no; then
22067        new_subdirs="$new_subdirs $i"
22068      fi
22069    done
22070    subdirs="$new_subdirs"
22071  fi
22072
22073  # need to come before AC_OUTPUT
22074  if test x$coin_projectdir != xyes; then
22075    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22076    echo $coin_subdirs > coin_subdirs.txt
22077  else
22078    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22079    ABSBUILDDIR="`pwd`"
22080
22081  fi
22082
22083  cat >confcache <<\_ACEOF
22084# This file is a shell script that caches the results of configure
22085# tests run on this system so they can be shared between configure
22086# scripts and configure runs, see configure's option --config-cache.
22087# It is not useful on other systems.  If it contains results you don't
22088# want to keep, you may remove or edit it.
22089#
22090# config.status only pays attention to the cache file if you give it
22091# the --recheck option to rerun configure.
22092#
22093# `ac_cv_env_foo' variables (set or unset) will be overridden when
22094# loading this file, other *unset* `ac_cv_foo' will be assigned the
22095# following values.
22096
22097_ACEOF
22098
22099# The following way of writing the cache mishandles newlines in values,
22100# but we know of no workaround that is simple, portable, and efficient.
22101# So, don't put newlines in cache variables' values.
22102# Ultrix sh set writes to stderr and can't be redirected directly,
22103# and sets the high bit in the cache file unless we assign to the vars.
22104{
22105  (set) 2>&1 |
22106    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22107    *ac_space=\ *)
22108      # `set' does not quote correctly, so add quotes (double-quote
22109      # substitution turns \\\\ into \\, and sed turns \\ into \).
22110      sed -n \
22111	"s/'/'\\\\''/g;
22112	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22113      ;;
22114    *)
22115      # `set' quotes correctly as required by POSIX, so do not add quotes.
22116      sed -n \
22117	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22118      ;;
22119    esac;
22120} |
22121  sed '
22122     t clear
22123     : clear
22124     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22125     t end
22126     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22127     : end' >>confcache
22128if diff $cache_file confcache >/dev/null 2>&1; then :; else
22129  if test -w $cache_file; then
22130    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22131    cat confcache >$cache_file
22132  else
22133    echo "not updating unwritable cache $cache_file"
22134  fi
22135fi
22136rm -f confcache
22137
22138test "x$prefix" = xNONE && prefix=$ac_default_prefix
22139# Let make expand exec_prefix.
22140test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22141
22142# VPATH may cause trouble with some makes, so we remove $(srcdir),
22143# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22144# trailing colons and then remove the whole line if VPATH becomes empty
22145# (actually we leave an empty line to preserve line numbers).
22146if test "x$srcdir" = x.; then
22147  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22148s/:*\$(srcdir):*/:/;
22149s/:*\${srcdir}:*/:/;
22150s/:*@srcdir@:*/:/;
22151s/^\([^=]*=[	 ]*\):*/\1/;
22152s/:*$//;
22153s/^[^=]*=[	 ]*$//;
22154}'
22155fi
22156
22157DEFS=-DHAVE_CONFIG_H
22158
22159ac_libobjs=
22160ac_ltlibobjs=
22161for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22162  # 1. Remove the extension, and $U if already installed.
22163  ac_i=`echo "$ac_i" |
22164	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22165  # 2. Add them.
22166  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22167  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22168done
22169LIBOBJS=$ac_libobjs
22170
22171LTLIBOBJS=$ac_ltlibobjs
22172
22173
22174if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
22175  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
22176Usually this means the macro was only invoked conditionally." >&5
22177echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
22178Usually this means the macro was only invoked conditionally." >&2;}
22179   { (exit 1); exit 1; }; }
22180fi
22181if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22182  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22183Usually this means the macro was only invoked conditionally." >&5
22184echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22185Usually this means the macro was only invoked conditionally." >&2;}
22186   { (exit 1); exit 1; }; }
22187fi
22188if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
22189  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
22190Usually this means the macro was only invoked conditionally." >&5
22191echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
22192Usually this means the macro was only invoked conditionally." >&2;}
22193   { (exit 1); exit 1; }; }
22194fi
22195if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22196  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22197Usually this means the macro was only invoked conditionally." >&5
22198echo "$as_me: error: conditional \"AMDEP\" was never defined.
22199Usually this means the macro was only invoked conditionally." >&2;}
22200   { (exit 1); exit 1; }; }
22201fi
22202if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22203  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22204Usually this means the macro was only invoked conditionally." >&5
22205echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22206Usually this means the macro was only invoked conditionally." >&2;}
22207   { (exit 1); exit 1; }; }
22208fi
22209if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22210  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22211Usually this means the macro was only invoked conditionally." >&5
22212echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22213Usually this means the macro was only invoked conditionally." >&2;}
22214   { (exit 1); exit 1; }; }
22215fi
22216if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22217  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22218Usually this means the macro was only invoked conditionally." >&5
22219echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22220Usually this means the macro was only invoked conditionally." >&2;}
22221   { (exit 1); exit 1; }; }
22222fi
22223if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22224  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22225Usually this means the macro was only invoked conditionally." >&5
22226echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22227Usually this means the macro was only invoked conditionally." >&2;}
22228   { (exit 1); exit 1; }; }
22229fi
22230if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22231  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22232Usually this means the macro was only invoked conditionally." >&5
22233echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22234Usually this means the macro was only invoked conditionally." >&2;}
22235   { (exit 1); exit 1; }; }
22236fi
22237
22238: ${CONFIG_STATUS=./config.status}
22239ac_clean_files_save=$ac_clean_files
22240ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22241{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22242echo "$as_me: creating $CONFIG_STATUS" >&6;}
22243cat >$CONFIG_STATUS <<_ACEOF
22244#! $SHELL
22245# Generated by $as_me.
22246# Run this file to recreate the current configuration.
22247# Compiler output produced by configure, useful for debugging
22248# configure, is in config.log if it exists.
22249
22250debug=false
22251ac_cs_recheck=false
22252ac_cs_silent=false
22253SHELL=\${CONFIG_SHELL-$SHELL}
22254_ACEOF
22255
22256cat >>$CONFIG_STATUS <<\_ACEOF
22257## --------------------- ##
22258## M4sh Initialization.  ##
22259## --------------------- ##
22260
22261# Be Bourne compatible
22262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22263  emulate sh
22264  NULLCMD=:
22265  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22266  # is contrary to our usage.  Disable this feature.
22267  alias -g '${1+"$@"}'='"$@"'
22268elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22269  set -o posix
22270fi
22271DUALCASE=1; export DUALCASE # for MKS sh
22272
22273# Support unset when possible.
22274if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22275  as_unset=unset
22276else
22277  as_unset=false
22278fi
22279
22280
22281# Work around bugs in pre-3.0 UWIN ksh.
22282$as_unset ENV MAIL MAILPATH
22283PS1='$ '
22284PS2='> '
22285PS4='+ '
22286
22287# NLS nuisances.
22288for as_var in \
22289  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22290  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22291  LC_TELEPHONE LC_TIME
22292do
22293  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22294    eval $as_var=C; export $as_var
22295  else
22296    $as_unset $as_var
22297  fi
22298done
22299
22300# Required to use basename.
22301if expr a : '\(a\)' >/dev/null 2>&1; then
22302  as_expr=expr
22303else
22304  as_expr=false
22305fi
22306
22307if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22308  as_basename=basename
22309else
22310  as_basename=false
22311fi
22312
22313
22314# Name of the executable.
22315as_me=`$as_basename "$0" ||
22316$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22317	 X"$0" : 'X\(//\)$' \| \
22318	 X"$0" : 'X\(/\)$' \| \
22319	 .     : '\(.\)' 2>/dev/null ||
22320echo X/"$0" |
22321    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22322  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22323  	  /^X\/\(\/\).*/{ s//\1/; q; }
22324  	  s/.*/./; q'`
22325
22326
22327# PATH needs CR, and LINENO needs CR and PATH.
22328# Avoid depending upon Character Ranges.
22329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22332as_cr_digits='0123456789'
22333as_cr_alnum=$as_cr_Letters$as_cr_digits
22334
22335# The user is always right.
22336if test "${PATH_SEPARATOR+set}" != set; then
22337  echo "#! /bin/sh" >conf$$.sh
22338  echo  "exit 0"   >>conf$$.sh
22339  chmod +x conf$$.sh
22340  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22341    PATH_SEPARATOR=';'
22342  else
22343    PATH_SEPARATOR=:
22344  fi
22345  rm -f conf$$.sh
22346fi
22347
22348
22349  as_lineno_1=$LINENO
22350  as_lineno_2=$LINENO
22351  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22352  test "x$as_lineno_1" != "x$as_lineno_2" &&
22353  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22354  # Find who we are.  Look in the path if we contain no path at all
22355  # relative or not.
22356  case $0 in
22357    *[\\/]* ) as_myself=$0 ;;
22358    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22359for as_dir in $PATH
22360do
22361  IFS=$as_save_IFS
22362  test -z "$as_dir" && as_dir=.
22363  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22364done
22365
22366       ;;
22367  esac
22368  # We did not find ourselves, most probably we were run as `sh COMMAND'
22369  # in which case we are not to be found in the path.
22370  if test "x$as_myself" = x; then
22371    as_myself=$0
22372  fi
22373  if test ! -f "$as_myself"; then
22374    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22375echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22376   { (exit 1); exit 1; }; }
22377  fi
22378  case $CONFIG_SHELL in
22379  '')
22380    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22381for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22382do
22383  IFS=$as_save_IFS
22384  test -z "$as_dir" && as_dir=.
22385  for as_base in sh bash ksh sh5; do
22386	 case $as_dir in
22387	 /*)
22388	   if ("$as_dir/$as_base" -c '
22389  as_lineno_1=$LINENO
22390  as_lineno_2=$LINENO
22391  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22392  test "x$as_lineno_1" != "x$as_lineno_2" &&
22393  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22394	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22395	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22396	     CONFIG_SHELL=$as_dir/$as_base
22397	     export CONFIG_SHELL
22398	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22399	   fi;;
22400	 esac
22401       done
22402done
22403;;
22404  esac
22405
22406  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22407  # uniformly replaced by the line number.  The first 'sed' inserts a
22408  # line-number line before each line; the second 'sed' does the real
22409  # work.  The second script uses 'N' to pair each line-number line
22410  # with the numbered line, and appends trailing '-' during
22411  # substitution so that $LINENO is not a special case at line end.
22412  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22413  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22414  sed '=' <$as_myself |
22415    sed '
22416      N
22417      s,$,-,
22418      : loop
22419      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22420      t loop
22421      s,-$,,
22422      s,^['$as_cr_digits']*\n,,
22423    ' >$as_me.lineno &&
22424  chmod +x $as_me.lineno ||
22425    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22426echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22427   { (exit 1); exit 1; }; }
22428
22429  # Don't try to exec as it changes $[0], causing all sort of problems
22430  # (the dirname of $[0] is not the place where we might find the
22431  # original and so on.  Autoconf is especially sensible to this).
22432  . ./$as_me.lineno
22433  # Exit status is that of the last command.
22434  exit
22435}
22436
22437
22438case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22439  *c*,-n*) ECHO_N= ECHO_C='
22440' ECHO_T='	' ;;
22441  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22442  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22443esac
22444
22445if expr a : '\(a\)' >/dev/null 2>&1; then
22446  as_expr=expr
22447else
22448  as_expr=false
22449fi
22450
22451rm -f conf$$ conf$$.exe conf$$.file
22452echo >conf$$.file
22453if ln -s conf$$.file conf$$ 2>/dev/null; then
22454  # We could just check for DJGPP; but this test a) works b) is more generic
22455  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22456  if test -f conf$$.exe; then
22457    # Don't use ln at all; we don't have any links
22458    as_ln_s='cp -p'
22459  else
22460    as_ln_s='ln -s'
22461  fi
22462elif ln conf$$.file conf$$ 2>/dev/null; then
22463  as_ln_s=ln
22464else
22465  as_ln_s='cp -p'
22466fi
22467rm -f conf$$ conf$$.exe conf$$.file
22468
22469if mkdir -p . 2>/dev/null; then
22470  as_mkdir_p=:
22471else
22472  test -d ./-p && rmdir ./-p
22473  as_mkdir_p=false
22474fi
22475
22476as_executable_p="test -f"
22477
22478# Sed expression to map a string onto a valid CPP name.
22479as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22480
22481# Sed expression to map a string onto a valid variable name.
22482as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22483
22484
22485# IFS
22486# We need space, tab and new line, in precisely that order.
22487as_nl='
22488'
22489IFS=" 	$as_nl"
22490
22491# CDPATH.
22492$as_unset CDPATH
22493
22494exec 6>&1
22495
22496# Open the log real soon, to keep \$[0] and so on meaningful, and to
22497# report actual input values of CONFIG_FILES etc. instead of their
22498# values after options handling.  Logging --version etc. is OK.
22499exec 5>>config.log
22500{
22501  echo
22502  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22503## Running $as_me. ##
22504_ASBOX
22505} >&5
22506cat >&5 <<_CSEOF
22507
22508This file was extended by ThirdPartyGlpk $as_me 1.10.7, which was
22509generated by GNU Autoconf 2.59.  Invocation command line was
22510
22511  CONFIG_FILES    = $CONFIG_FILES
22512  CONFIG_HEADERS  = $CONFIG_HEADERS
22513  CONFIG_LINKS    = $CONFIG_LINKS
22514  CONFIG_COMMANDS = $CONFIG_COMMANDS
22515  $ $0 $@
22516
22517_CSEOF
22518echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22519echo >&5
22520_ACEOF
22521
22522# Files that config.status was made for.
22523if test -n "$ac_config_files"; then
22524  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22525fi
22526
22527if test -n "$ac_config_headers"; then
22528  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22529fi
22530
22531if test -n "$ac_config_links"; then
22532  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22533fi
22534
22535if test -n "$ac_config_commands"; then
22536  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22537fi
22538
22539cat >>$CONFIG_STATUS <<\_ACEOF
22540
22541ac_cs_usage="\
22542\`$as_me' instantiates files from templates according to the
22543current configuration.
22544
22545Usage: $0 [OPTIONS] [FILE]...
22546
22547  -h, --help       print this help, then exit
22548  -V, --version    print version number, then exit
22549  -q, --quiet      do not print progress messages
22550  -d, --debug      don't remove temporary files
22551      --recheck    update $as_me by reconfiguring in the same conditions
22552  --file=FILE[:TEMPLATE]
22553		   instantiate the configuration file FILE
22554  --header=FILE[:TEMPLATE]
22555		   instantiate the configuration header FILE
22556
22557Configuration files:
22558$config_files
22559
22560Configuration headers:
22561$config_headers
22562
22563Configuration commands:
22564$config_commands
22565
22566Report bugs to <bug-autoconf@gnu.org>."
22567_ACEOF
22568
22569cat >>$CONFIG_STATUS <<_ACEOF
22570ac_cs_version="\\
22571ThirdPartyGlpk config.status 1.10.7
22572configured by $0, generated by GNU Autoconf 2.59,
22573  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22574
22575Copyright (C) 2003 Free Software Foundation, Inc.
22576This config.status script is free software; the Free Software Foundation
22577gives unlimited permission to copy, distribute and modify it."
22578srcdir=$srcdir
22579INSTALL="$INSTALL"
22580_ACEOF
22581
22582cat >>$CONFIG_STATUS <<\_ACEOF
22583# If no file are specified by the user, then we need to provide default
22584# value.  By we need to know if files were specified by the user.
22585ac_need_defaults=:
22586while test $# != 0
22587do
22588  case $1 in
22589  --*=*)
22590    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22591    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22592    ac_shift=:
22593    ;;
22594  -*)
22595    ac_option=$1
22596    ac_optarg=$2
22597    ac_shift=shift
22598    ;;
22599  *) # This is not an option, so the user has probably given explicit
22600     # arguments.
22601     ac_option=$1
22602     ac_need_defaults=false;;
22603  esac
22604
22605  case $ac_option in
22606  # Handling of the options.
22607_ACEOF
22608cat >>$CONFIG_STATUS <<\_ACEOF
22609  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22610    ac_cs_recheck=: ;;
22611  --version | --vers* | -V )
22612    echo "$ac_cs_version"; exit 0 ;;
22613  --he | --h)
22614    # Conflict between --help and --header
22615    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22616Try \`$0 --help' for more information." >&5
22617echo "$as_me: error: ambiguous option: $1
22618Try \`$0 --help' for more information." >&2;}
22619   { (exit 1); exit 1; }; };;
22620  --help | --hel | -h )
22621    echo "$ac_cs_usage"; exit 0 ;;
22622  --debug | --d* | -d )
22623    debug=: ;;
22624  --file | --fil | --fi | --f )
22625    $ac_shift
22626    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22627    ac_need_defaults=false;;
22628  --header | --heade | --head | --hea )
22629    $ac_shift
22630    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22631    ac_need_defaults=false;;
22632  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22633  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22634    ac_cs_silent=: ;;
22635
22636  # This is an error.
22637  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22638Try \`$0 --help' for more information." >&5
22639echo "$as_me: error: unrecognized option: $1
22640Try \`$0 --help' for more information." >&2;}
22641   { (exit 1); exit 1; }; } ;;
22642
22643  *) ac_config_targets="$ac_config_targets $1" ;;
22644
22645  esac
22646  shift
22647done
22648
22649ac_configure_extra_args=
22650
22651if $ac_cs_silent; then
22652  exec 6>/dev/null
22653  ac_configure_extra_args="$ac_configure_extra_args --silent"
22654fi
22655
22656_ACEOF
22657cat >>$CONFIG_STATUS <<_ACEOF
22658if \$ac_cs_recheck; then
22659  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22660  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22661fi
22662
22663_ACEOF
22664
22665cat >>$CONFIG_STATUS <<_ACEOF
22666#
22667# INIT-COMMANDS section.
22668#
22669
22670AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22671
22672_ACEOF
22673
22674
22675
22676cat >>$CONFIG_STATUS <<\_ACEOF
22677for ac_config_target in $ac_config_targets
22678do
22679  case "$ac_config_target" in
22680  # Handling of arguments.
22681  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22682  "coinglpk.pc" ) CONFIG_FILES="$CONFIG_FILES coinglpk.pc" ;;
22683  "coinglpk-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinglpk-uninstalled.pc" ;;
22684  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22685  "config_glpk.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_glpk.h" ;;
22686  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22687echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22688   { (exit 1); exit 1; }; };;
22689  esac
22690done
22691
22692# If the user did not use the arguments to specify the items to instantiate,
22693# then the envvar interface is used.  Set only those that are not.
22694# We use the long form for the default assignment because of an extremely
22695# bizarre bug on SunOS 4.1.3.
22696if $ac_need_defaults; then
22697  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22698  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22699  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22700fi
22701
22702# Have a temporary directory for convenience.  Make it in the build tree
22703# simply because there is no reason to put it here, and in addition,
22704# creating and moving files from /tmp can sometimes cause problems.
22705# Create a temporary directory, and hook for its removal unless debugging.
22706$debug ||
22707{
22708  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22709  trap '{ (exit 1); exit 1; }' 1 2 13 15
22710}
22711
22712# Create a (secure) tmp directory for tmp files.
22713
22714{
22715  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22716  test -n "$tmp" && test -d "$tmp"
22717}  ||
22718{
22719  tmp=./confstat$$-$RANDOM
22720  (umask 077 && mkdir $tmp)
22721} ||
22722{
22723   echo "$me: cannot create a temporary directory in ." >&2
22724   { (exit 1); exit 1; }
22725}
22726
22727_ACEOF
22728
22729cat >>$CONFIG_STATUS <<_ACEOF
22730
22731#
22732# CONFIG_FILES section.
22733#
22734
22735# No need to generate the scripts if there are no CONFIG_FILES.
22736# This happens for instance when ./config.status config.h
22737if test -n "\$CONFIG_FILES"; then
22738  # Protect against being on the right side of a sed subst in config.status.
22739  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22740   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22741s,@SHELL@,$SHELL,;t t
22742s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22743s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22744s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22745s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22746s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22747s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22748s,@exec_prefix@,$exec_prefix,;t t
22749s,@prefix@,$prefix,;t t
22750s,@program_transform_name@,$program_transform_name,;t t
22751s,@bindir@,$bindir,;t t
22752s,@sbindir@,$sbindir,;t t
22753s,@libexecdir@,$libexecdir,;t t
22754s,@datadir@,$datadir,;t t
22755s,@sysconfdir@,$sysconfdir,;t t
22756s,@sharedstatedir@,$sharedstatedir,;t t
22757s,@localstatedir@,$localstatedir,;t t
22758s,@libdir@,$libdir,;t t
22759s,@includedir@,$includedir,;t t
22760s,@oldincludedir@,$oldincludedir,;t t
22761s,@infodir@,$infodir,;t t
22762s,@mandir@,$mandir,;t t
22763s,@build_alias@,$build_alias,;t t
22764s,@host_alias@,$host_alias,;t t
22765s,@target_alias@,$target_alias,;t t
22766s,@DEFS@,$DEFS,;t t
22767s,@ECHO_C@,$ECHO_C,;t t
22768s,@ECHO_N@,$ECHO_N,;t t
22769s,@ECHO_T@,$ECHO_T,;t t
22770s,@LIBS@,$LIBS,;t t
22771s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
22772s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
22773s,@have_svnversion@,$have_svnversion,;t t
22774s,@GLPK_SVN_REV@,$GLPK_SVN_REV,;t t
22775s,@build@,$build,;t t
22776s,@build_cpu@,$build_cpu,;t t
22777s,@build_vendor@,$build_vendor,;t t
22778s,@build_os@,$build_os,;t t
22779s,@CDEFS@,$CDEFS,;t t
22780s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22781s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22782s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22783s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22784s,@CC@,$CC,;t t
22785s,@CFLAGS@,$CFLAGS,;t t
22786s,@LDFLAGS@,$LDFLAGS,;t t
22787s,@CPPFLAGS@,$CPPFLAGS,;t t
22788s,@ac_ct_CC@,$ac_ct_CC,;t t
22789s,@EXEEXT@,$EXEEXT,;t t
22790s,@OBJEXT@,$OBJEXT,;t t
22791s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22792s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22793s,@MPICC@,$MPICC,;t t
22794s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22795s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
22796s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
22797s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
22798s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
22799s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
22800s,@EGREP@,$EGREP,;t t
22801s,@LN_S@,$LN_S,;t t
22802s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22803s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22804s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22805s,@CYGPATH_W@,$CYGPATH_W,;t t
22806s,@PACKAGE@,$PACKAGE,;t t
22807s,@VERSION@,$VERSION,;t t
22808s,@ACLOCAL@,$ACLOCAL,;t t
22809s,@AUTOCONF@,$AUTOCONF,;t t
22810s,@AUTOMAKE@,$AUTOMAKE,;t t
22811s,@AUTOHEADER@,$AUTOHEADER,;t t
22812s,@MAKEINFO@,$MAKEINFO,;t t
22813s,@install_sh@,$install_sh,;t t
22814s,@STRIP@,$STRIP,;t t
22815s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22816s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22817s,@mkdir_p@,$mkdir_p,;t t
22818s,@AWK@,$AWK,;t t
22819s,@SET_MAKE@,$SET_MAKE,;t t
22820s,@am__leading_dot@,$am__leading_dot,;t t
22821s,@AMTAR@,$AMTAR,;t t
22822s,@am__tar@,$am__tar,;t t
22823s,@am__untar@,$am__untar,;t t
22824s,@DEPDIR@,$DEPDIR,;t t
22825s,@am__include@,$am__include,;t t
22826s,@am__quote@,$am__quote,;t t
22827s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22828s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22829s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22830s,@CCDEPMODE@,$CCDEPMODE,;t t
22831s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22832s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22833s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22834s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22835s,@MAINT@,$MAINT,;t t
22836s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22837s,@have_autoconf@,$have_autoconf,;t t
22838s,@have_automake@,$have_automake,;t t
22839s,@have_svn@,$have_svn,;t t
22840s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22841s,@AUX_DIR@,$AUX_DIR,;t t
22842s,@abs_source_dir@,$abs_source_dir,;t t
22843s,@abs_lib_dir@,$abs_lib_dir,;t t
22844s,@abs_include_dir@,$abs_include_dir,;t t
22845s,@abs_bin_dir@,$abs_bin_dir,;t t
22846s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22847s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22848s,@host@,$host,;t t
22849s,@host_cpu@,$host_cpu,;t t
22850s,@host_vendor@,$host_vendor,;t t
22851s,@host_os@,$host_os,;t t
22852s,@ECHO@,$ECHO,;t t
22853s,@AR@,$AR,;t t
22854s,@ac_ct_AR@,$ac_ct_AR,;t t
22855s,@RANLIB@,$RANLIB,;t t
22856s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22857s,@CPP@,$CPP,;t t
22858s,@CXX@,$CXX,;t t
22859s,@CXXFLAGS@,$CXXFLAGS,;t t
22860s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22861s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22862s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22863s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22864s,@CXXCPP@,$CXXCPP,;t t
22865s,@F77@,$F77,;t t
22866s,@FFLAGS@,$FFLAGS,;t t
22867s,@ac_ct_F77@,$ac_ct_F77,;t t
22868s,@LIBTOOL@,$LIBTOOL,;t t
22869s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22870s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22871s,@dos2unix@,$dos2unix,;t t
22872s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22873s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22874s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22875s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22876s,@glpkmajorver@,$glpkmajorver,;t t
22877s,@glpkminorver@,$glpkminorver,;t t
22878s,@GLPKDIR@,$GLPKDIR,;t t
22879s,@GLPK_PCLIBS@,$GLPK_PCLIBS,;t t
22880s,@LIBEXT@,$LIBEXT,;t t
22881s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22882s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22883s,@LIBOBJS@,$LIBOBJS,;t t
22884s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22885CEOF
22886
22887_ACEOF
22888
22889  cat >>$CONFIG_STATUS <<\_ACEOF
22890  # Split the substitutions into bite-sized pieces for seds with
22891  # small command number limits, like on Digital OSF/1 and HP-UX.
22892  ac_max_sed_lines=48
22893  ac_sed_frag=1 # Number of current file.
22894  ac_beg=1 # First line for current file.
22895  ac_end=$ac_max_sed_lines # Line after last line for current file.
22896  ac_more_lines=:
22897  ac_sed_cmds=
22898  while $ac_more_lines; do
22899    if test $ac_beg -gt 1; then
22900      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22901    else
22902      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22903    fi
22904    if test ! -s $tmp/subs.frag; then
22905      ac_more_lines=false
22906    else
22907      # The purpose of the label and of the branching condition is to
22908      # speed up the sed processing (if there are no `@' at all, there
22909      # is no need to browse any of the substitutions).
22910      # These are the two extra sed commands mentioned above.
22911      (echo ':t
22912  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22913      if test -z "$ac_sed_cmds"; then
22914	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22915      else
22916	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22917      fi
22918      ac_sed_frag=`expr $ac_sed_frag + 1`
22919      ac_beg=$ac_end
22920      ac_end=`expr $ac_end + $ac_max_sed_lines`
22921    fi
22922  done
22923  if test -z "$ac_sed_cmds"; then
22924    ac_sed_cmds=cat
22925  fi
22926fi # test -n "$CONFIG_FILES"
22927
22928_ACEOF
22929cat >>$CONFIG_STATUS <<\_ACEOF
22930for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22931  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22932  case $ac_file in
22933  - | *:- | *:-:* ) # input from stdin
22934	cat >$tmp/stdin
22935	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22936	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22937  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22938	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22939  * )   ac_file_in=$ac_file.in ;;
22940  esac
22941
22942  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22943  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22945	 X"$ac_file" : 'X\(//\)[^/]' \| \
22946	 X"$ac_file" : 'X\(//\)$' \| \
22947	 X"$ac_file" : 'X\(/\)' \| \
22948	 .     : '\(.\)' 2>/dev/null ||
22949echo X"$ac_file" |
22950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22951  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22952  	  /^X\(\/\/\)$/{ s//\1/; q; }
22953  	  /^X\(\/\).*/{ s//\1/; q; }
22954  	  s/.*/./; q'`
22955  { if $as_mkdir_p; then
22956    mkdir -p "$ac_dir"
22957  else
22958    as_dir="$ac_dir"
22959    as_dirs=
22960    while test ! -d "$as_dir"; do
22961      as_dirs="$as_dir $as_dirs"
22962      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22964	 X"$as_dir" : 'X\(//\)[^/]' \| \
22965	 X"$as_dir" : 'X\(//\)$' \| \
22966	 X"$as_dir" : 'X\(/\)' \| \
22967	 .     : '\(.\)' 2>/dev/null ||
22968echo X"$as_dir" |
22969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22970  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22971  	  /^X\(\/\/\)$/{ s//\1/; q; }
22972  	  /^X\(\/\).*/{ s//\1/; q; }
22973  	  s/.*/./; q'`
22974    done
22975    test ! -n "$as_dirs" || mkdir $as_dirs
22976  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22977echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22978   { (exit 1); exit 1; }; }; }
22979
22980  ac_builddir=.
22981
22982if test "$ac_dir" != .; then
22983  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22984  # A "../" for each directory in $ac_dir_suffix.
22985  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22986else
22987  ac_dir_suffix= ac_top_builddir=
22988fi
22989
22990case $srcdir in
22991  .)  # No --srcdir option.  We are building in place.
22992    ac_srcdir=.
22993    if test -z "$ac_top_builddir"; then
22994       ac_top_srcdir=.
22995    else
22996       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22997    fi ;;
22998  [\\/]* | ?:[\\/]* )  # Absolute path.
22999    ac_srcdir=$srcdir$ac_dir_suffix;
23000    ac_top_srcdir=$srcdir ;;
23001  *) # Relative path.
23002    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23003    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23004esac
23005
23006# Do not use `cd foo && pwd` to compute absolute paths, because
23007# the directories may not exist.
23008case `pwd` in
23009.) ac_abs_builddir="$ac_dir";;
23010*)
23011  case "$ac_dir" in
23012  .) ac_abs_builddir=`pwd`;;
23013  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23014  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23015  esac;;
23016esac
23017case $ac_abs_builddir in
23018.) ac_abs_top_builddir=${ac_top_builddir}.;;
23019*)
23020  case ${ac_top_builddir}. in
23021  .) ac_abs_top_builddir=$ac_abs_builddir;;
23022  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23023  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23024  esac;;
23025esac
23026case $ac_abs_builddir in
23027.) ac_abs_srcdir=$ac_srcdir;;
23028*)
23029  case $ac_srcdir in
23030  .) ac_abs_srcdir=$ac_abs_builddir;;
23031  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23032  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23033  esac;;
23034esac
23035case $ac_abs_builddir in
23036.) ac_abs_top_srcdir=$ac_top_srcdir;;
23037*)
23038  case $ac_top_srcdir in
23039  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23040  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23041  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23042  esac;;
23043esac
23044
23045
23046  case $INSTALL in
23047  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23048  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23049  esac
23050
23051  if test x"$ac_file" != x-; then
23052    { echo "$as_me:$LINENO: creating $ac_file" >&5
23053echo "$as_me: creating $ac_file" >&6;}
23054    rm -f "$ac_file"
23055  fi
23056  # Let's still pretend it is `configure' which instantiates (i.e., don't
23057  # use $as_me), people would be surprised to read:
23058  #    /* config.h.  Generated by config.status.  */
23059  if test x"$ac_file" = x-; then
23060    configure_input=
23061  else
23062    configure_input="$ac_file.  "
23063  fi
23064  configure_input=$configure_input"Generated from `echo $ac_file_in |
23065				     sed 's,.*/,,'` by configure."
23066
23067  # First look for the input files in the build tree, otherwise in the
23068  # src tree.
23069  ac_file_inputs=`IFS=:
23070    for f in $ac_file_in; do
23071      case $f in
23072      -) echo $tmp/stdin ;;
23073      [\\/$]*)
23074	 # Absolute (can't be DOS-style, as IFS=:)
23075	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23076echo "$as_me: error: cannot find input file: $f" >&2;}
23077   { (exit 1); exit 1; }; }
23078	 echo "$f";;
23079      *) # Relative
23080	 if test -f "$f"; then
23081	   # Build tree
23082	   echo "$f"
23083	 elif test -f "$srcdir/$f"; then
23084	   # Source tree
23085	   echo "$srcdir/$f"
23086	 else
23087	   # /dev/null tree
23088	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23089echo "$as_me: error: cannot find input file: $f" >&2;}
23090   { (exit 1); exit 1; }; }
23091	 fi;;
23092      esac
23093    done` || { (exit 1); exit 1; }
23094_ACEOF
23095cat >>$CONFIG_STATUS <<_ACEOF
23096  sed "$ac_vpsub
23097$extrasub
23098_ACEOF
23099cat >>$CONFIG_STATUS <<\_ACEOF
23100:t
23101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23102s,@configure_input@,$configure_input,;t t
23103s,@srcdir@,$ac_srcdir,;t t
23104s,@abs_srcdir@,$ac_abs_srcdir,;t t
23105s,@top_srcdir@,$ac_top_srcdir,;t t
23106s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23107s,@builddir@,$ac_builddir,;t t
23108s,@abs_builddir@,$ac_abs_builddir,;t t
23109s,@top_builddir@,$ac_top_builddir,;t t
23110s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23111s,@INSTALL@,$ac_INSTALL,;t t
23112" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23113  rm -f $tmp/stdin
23114  if test x"$ac_file" != x-; then
23115    mv $tmp/out $ac_file
23116  else
23117    cat $tmp/out
23118    rm -f $tmp/out
23119  fi
23120
23121done
23122_ACEOF
23123cat >>$CONFIG_STATUS <<\_ACEOF
23124
23125#
23126# CONFIG_HEADER section.
23127#
23128
23129# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23130# NAME is the cpp macro being defined and VALUE is the value it is being given.
23131#
23132# ac_d sets the value in "#define NAME VALUE" lines.
23133ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23134ac_dB='[	 ].*$,\1#\2'
23135ac_dC=' '
23136ac_dD=',;t'
23137# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23138ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23139ac_uB='$,\1#\2define\3'
23140ac_uC=' '
23141ac_uD=',;t'
23142
23143for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23144  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23145  case $ac_file in
23146  - | *:- | *:-:* ) # input from stdin
23147	cat >$tmp/stdin
23148	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23149	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23150  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23151	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23152  * )   ac_file_in=$ac_file.in ;;
23153  esac
23154
23155  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23156echo "$as_me: creating $ac_file" >&6;}
23157
23158  # First look for the input files in the build tree, otherwise in the
23159  # src tree.
23160  ac_file_inputs=`IFS=:
23161    for f in $ac_file_in; do
23162      case $f in
23163      -) echo $tmp/stdin ;;
23164      [\\/$]*)
23165	 # Absolute (can't be DOS-style, as IFS=:)
23166	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23167echo "$as_me: error: cannot find input file: $f" >&2;}
23168   { (exit 1); exit 1; }; }
23169	 # Do quote $f, to prevent DOS paths from being IFS'd.
23170	 echo "$f";;
23171      *) # Relative
23172	 if test -f "$f"; then
23173	   # Build tree
23174	   echo "$f"
23175	 elif test -f "$srcdir/$f"; then
23176	   # Source tree
23177	   echo "$srcdir/$f"
23178	 else
23179	   # /dev/null tree
23180	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23181echo "$as_me: error: cannot find input file: $f" >&2;}
23182   { (exit 1); exit 1; }; }
23183	 fi;;
23184      esac
23185    done` || { (exit 1); exit 1; }
23186  # Remove the trailing spaces.
23187  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23188
23189_ACEOF
23190
23191# Transform confdefs.h into two sed scripts, `conftest.defines' and
23192# `conftest.undefs', that substitutes the proper values into
23193# config.h.in to produce config.h.  The first handles `#define'
23194# templates, and the second `#undef' templates.
23195# And first: Protect against being on the right side of a sed subst in
23196# config.status.  Protect against being in an unquoted here document
23197# in config.status.
23198rm -f conftest.defines conftest.undefs
23199# Using a here document instead of a string reduces the quoting nightmare.
23200# Putting comments in sed scripts is not portable.
23201#
23202# `end' is used to avoid that the second main sed command (meant for
23203# 0-ary CPP macros) applies to n-ary macro definitions.
23204# See the Autoconf documentation for `clear'.
23205cat >confdef2sed.sed <<\_ACEOF
23206s/[\\&,]/\\&/g
23207s,[\\$`],\\&,g
23208t clear
23209: clear
23210s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23211t end
23212s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23213: end
23214_ACEOF
23215# If some macros were called several times there might be several times
23216# the same #defines, which is useless.  Nevertheless, we may not want to
23217# sort them, since we want the *last* AC-DEFINE to be honored.
23218uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23219sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23220rm -f confdef2sed.sed
23221
23222# This sed command replaces #undef with comments.  This is necessary, for
23223# example, in the case of _POSIX_SOURCE, which is predefined and required
23224# on some systems where configure will not decide to define it.
23225cat >>conftest.undefs <<\_ACEOF
23226s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23227_ACEOF
23228
23229# Break up conftest.defines because some shells have a limit on the size
23230# of here documents, and old seds have small limits too (100 cmds).
23231echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23232echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23233echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23234echo '  :' >>$CONFIG_STATUS
23235rm -f conftest.tail
23236while grep . conftest.defines >/dev/null
23237do
23238  # Write a limited-size here document to $tmp/defines.sed.
23239  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23240  # Speed up: don't consider the non `#define' lines.
23241  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23242  # Work around the forget-to-reset-the-flag bug.
23243  echo 't clr' >>$CONFIG_STATUS
23244  echo ': clr' >>$CONFIG_STATUS
23245  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23246  echo 'CEOF
23247  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23248  rm -f $tmp/in
23249  mv $tmp/out $tmp/in
23250' >>$CONFIG_STATUS
23251  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23252  rm -f conftest.defines
23253  mv conftest.tail conftest.defines
23254done
23255rm -f conftest.defines
23256echo '  fi # grep' >>$CONFIG_STATUS
23257echo >>$CONFIG_STATUS
23258
23259# Break up conftest.undefs because some shells have a limit on the size
23260# of here documents, and old seds have small limits too (100 cmds).
23261echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23262rm -f conftest.tail
23263while grep . conftest.undefs >/dev/null
23264do
23265  # Write a limited-size here document to $tmp/undefs.sed.
23266  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23267  # Speed up: don't consider the non `#undef'
23268  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23269  # Work around the forget-to-reset-the-flag bug.
23270  echo 't clr' >>$CONFIG_STATUS
23271  echo ': clr' >>$CONFIG_STATUS
23272  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23273  echo 'CEOF
23274  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23275  rm -f $tmp/in
23276  mv $tmp/out $tmp/in
23277' >>$CONFIG_STATUS
23278  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23279  rm -f conftest.undefs
23280  mv conftest.tail conftest.undefs
23281done
23282rm -f conftest.undefs
23283
23284cat >>$CONFIG_STATUS <<\_ACEOF
23285  # Let's still pretend it is `configure' which instantiates (i.e., don't
23286  # use $as_me), people would be surprised to read:
23287  #    /* config.h.  Generated by config.status.  */
23288  if test x"$ac_file" = x-; then
23289    echo "/* Generated by configure.  */" >$tmp/config.h
23290  else
23291    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23292  fi
23293  cat $tmp/in >>$tmp/config.h
23294  rm -f $tmp/in
23295  if test x"$ac_file" != x-; then
23296    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23297      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23298echo "$as_me: $ac_file is unchanged" >&6;}
23299    else
23300      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23302	 X"$ac_file" : 'X\(//\)[^/]' \| \
23303	 X"$ac_file" : 'X\(//\)$' \| \
23304	 X"$ac_file" : 'X\(/\)' \| \
23305	 .     : '\(.\)' 2>/dev/null ||
23306echo X"$ac_file" |
23307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23308  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23309  	  /^X\(\/\/\)$/{ s//\1/; q; }
23310  	  /^X\(\/\).*/{ s//\1/; q; }
23311  	  s/.*/./; q'`
23312      { if $as_mkdir_p; then
23313    mkdir -p "$ac_dir"
23314  else
23315    as_dir="$ac_dir"
23316    as_dirs=
23317    while test ! -d "$as_dir"; do
23318      as_dirs="$as_dir $as_dirs"
23319      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23321	 X"$as_dir" : 'X\(//\)[^/]' \| \
23322	 X"$as_dir" : 'X\(//\)$' \| \
23323	 X"$as_dir" : 'X\(/\)' \| \
23324	 .     : '\(.\)' 2>/dev/null ||
23325echo X"$as_dir" |
23326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23327  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23328  	  /^X\(\/\/\)$/{ s//\1/; q; }
23329  	  /^X\(\/\).*/{ s//\1/; q; }
23330  	  s/.*/./; q'`
23331    done
23332    test ! -n "$as_dirs" || mkdir $as_dirs
23333  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23334echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23335   { (exit 1); exit 1; }; }; }
23336
23337      rm -f $ac_file
23338      mv $tmp/config.h $ac_file
23339    fi
23340  else
23341    cat $tmp/config.h
23342    rm -f $tmp/config.h
23343  fi
23344# Compute $ac_file's index in $config_headers.
23345_am_stamp_count=1
23346for _am_header in $config_headers :; do
23347  case $_am_header in
23348    $ac_file | $ac_file:* )
23349      break ;;
23350    * )
23351      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23352  esac
23353done
23354echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23355$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23356	 X$ac_file : 'X\(//\)[^/]' \| \
23357	 X$ac_file : 'X\(//\)$' \| \
23358	 X$ac_file : 'X\(/\)' \| \
23359	 .     : '\(.\)' 2>/dev/null ||
23360echo X$ac_file |
23361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23362  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23363  	  /^X\(\/\/\)$/{ s//\1/; q; }
23364  	  /^X\(\/\).*/{ s//\1/; q; }
23365  	  s/.*/./; q'`/stamp-h$_am_stamp_count
23366done
23367_ACEOF
23368cat >>$CONFIG_STATUS <<\_ACEOF
23369
23370#
23371# CONFIG_COMMANDS section.
23372#
23373for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23374  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23375  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23376  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23377$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23378	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23379	 X"$ac_dest" : 'X\(//\)$' \| \
23380	 X"$ac_dest" : 'X\(/\)' \| \
23381	 .     : '\(.\)' 2>/dev/null ||
23382echo X"$ac_dest" |
23383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23384  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23385  	  /^X\(\/\/\)$/{ s//\1/; q; }
23386  	  /^X\(\/\).*/{ s//\1/; q; }
23387  	  s/.*/./; q'`
23388  { if $as_mkdir_p; then
23389    mkdir -p "$ac_dir"
23390  else
23391    as_dir="$ac_dir"
23392    as_dirs=
23393    while test ! -d "$as_dir"; do
23394      as_dirs="$as_dir $as_dirs"
23395      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23397	 X"$as_dir" : 'X\(//\)[^/]' \| \
23398	 X"$as_dir" : 'X\(//\)$' \| \
23399	 X"$as_dir" : 'X\(/\)' \| \
23400	 .     : '\(.\)' 2>/dev/null ||
23401echo X"$as_dir" |
23402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23403  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23404  	  /^X\(\/\/\)$/{ s//\1/; q; }
23405  	  /^X\(\/\).*/{ s//\1/; q; }
23406  	  s/.*/./; q'`
23407    done
23408    test ! -n "$as_dirs" || mkdir $as_dirs
23409  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23410echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23411   { (exit 1); exit 1; }; }; }
23412
23413  ac_builddir=.
23414
23415if test "$ac_dir" != .; then
23416  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23417  # A "../" for each directory in $ac_dir_suffix.
23418  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23419else
23420  ac_dir_suffix= ac_top_builddir=
23421fi
23422
23423case $srcdir in
23424  .)  # No --srcdir option.  We are building in place.
23425    ac_srcdir=.
23426    if test -z "$ac_top_builddir"; then
23427       ac_top_srcdir=.
23428    else
23429       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23430    fi ;;
23431  [\\/]* | ?:[\\/]* )  # Absolute path.
23432    ac_srcdir=$srcdir$ac_dir_suffix;
23433    ac_top_srcdir=$srcdir ;;
23434  *) # Relative path.
23435    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23436    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23437esac
23438
23439# Do not use `cd foo && pwd` to compute absolute paths, because
23440# the directories may not exist.
23441case `pwd` in
23442.) ac_abs_builddir="$ac_dir";;
23443*)
23444  case "$ac_dir" in
23445  .) ac_abs_builddir=`pwd`;;
23446  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23447  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23448  esac;;
23449esac
23450case $ac_abs_builddir in
23451.) ac_abs_top_builddir=${ac_top_builddir}.;;
23452*)
23453  case ${ac_top_builddir}. in
23454  .) ac_abs_top_builddir=$ac_abs_builddir;;
23455  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23456  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23457  esac;;
23458esac
23459case $ac_abs_builddir in
23460.) ac_abs_srcdir=$ac_srcdir;;
23461*)
23462  case $ac_srcdir in
23463  .) ac_abs_srcdir=$ac_abs_builddir;;
23464  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23465  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23466  esac;;
23467esac
23468case $ac_abs_builddir in
23469.) ac_abs_top_srcdir=$ac_top_srcdir;;
23470*)
23471  case $ac_top_srcdir in
23472  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23473  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23474  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23475  esac;;
23476esac
23477
23478
23479  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23480echo "$as_me: executing $ac_dest commands" >&6;}
23481  case $ac_dest in
23482    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23483  # Strip MF so we end up with the name of the file.
23484  mf=`echo "$mf" | sed -e 's/:.*$//'`
23485  # Check whether this is an Automake generated Makefile or not.
23486  # We used to match only the files named `Makefile.in', but
23487  # some people rename them; so instead we look at the file content.
23488  # Grep'ing the first line is not enough: some people post-process
23489  # each Makefile.in and add a new line on top of each file to say so.
23490  # So let's grep whole file.
23491  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23492    dirpart=`(dirname "$mf") 2>/dev/null ||
23493$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23494	 X"$mf" : 'X\(//\)[^/]' \| \
23495	 X"$mf" : 'X\(//\)$' \| \
23496	 X"$mf" : 'X\(/\)' \| \
23497	 .     : '\(.\)' 2>/dev/null ||
23498echo X"$mf" |
23499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23500  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23501  	  /^X\(\/\/\)$/{ s//\1/; q; }
23502  	  /^X\(\/\).*/{ s//\1/; q; }
23503  	  s/.*/./; q'`
23504  else
23505    continue
23506  fi
23507  # Extract the definition of DEPDIR, am__include, and am__quote
23508  # from the Makefile without running `make'.
23509  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23510  test -z "$DEPDIR" && continue
23511  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23512  test -z "am__include" && continue
23513  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23514  # When using ansi2knr, U may be empty or an underscore; expand it
23515  U=`sed -n 's/^U = //p' < "$mf"`
23516  # Find all dependency output files, they are included files with
23517  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23518  # simplest approach to changing $(DEPDIR) to its actual value in the
23519  # expansion.
23520  for file in `sed -n "
23521    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23522       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23523    # Make sure the directory exists.
23524    test -f "$dirpart/$file" && continue
23525    fdir=`(dirname "$file") 2>/dev/null ||
23526$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23527	 X"$file" : 'X\(//\)[^/]' \| \
23528	 X"$file" : 'X\(//\)$' \| \
23529	 X"$file" : 'X\(/\)' \| \
23530	 .     : '\(.\)' 2>/dev/null ||
23531echo X"$file" |
23532    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23533  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23534  	  /^X\(\/\/\)$/{ s//\1/; q; }
23535  	  /^X\(\/\).*/{ s//\1/; q; }
23536  	  s/.*/./; q'`
23537    { if $as_mkdir_p; then
23538    mkdir -p $dirpart/$fdir
23539  else
23540    as_dir=$dirpart/$fdir
23541    as_dirs=
23542    while test ! -d "$as_dir"; do
23543      as_dirs="$as_dir $as_dirs"
23544      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23546	 X"$as_dir" : 'X\(//\)[^/]' \| \
23547	 X"$as_dir" : 'X\(//\)$' \| \
23548	 X"$as_dir" : 'X\(/\)' \| \
23549	 .     : '\(.\)' 2>/dev/null ||
23550echo X"$as_dir" |
23551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23552  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23553  	  /^X\(\/\/\)$/{ s//\1/; q; }
23554  	  /^X\(\/\).*/{ s//\1/; q; }
23555  	  s/.*/./; q'`
23556    done
23557    test ! -n "$as_dirs" || mkdir $as_dirs
23558  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23559echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23560   { (exit 1); exit 1; }; }; }
23561
23562    # echo "creating $dirpart/$file"
23563    echo '# dummy' > "$dirpart/$file"
23564  done
23565done
23566 ;;
23567  esac
23568done
23569_ACEOF
23570
23571cat >>$CONFIG_STATUS <<\_ACEOF
23572
23573{ (exit 0); exit 0; }
23574_ACEOF
23575chmod +x $CONFIG_STATUS
23576ac_clean_files=$ac_clean_files_save
23577
23578
23579# configure is writing to config.log, and then calls config.status.
23580# config.status does its own redirection, appending to config.log.
23581# Unfortunately, on DOS this fails, as config.log is still kept open
23582# by configure, so config.status won't be able to write to it; its
23583# output is simply discarded.  So we exec the FD to /dev/null,
23584# effectively closing config.log, so it can be properly (re)opened and
23585# appended to by config.status.  When coming back to configure, we
23586# need to make the FD available again.
23587if test "$no_create" != yes; then
23588  ac_cs_success=:
23589  ac_config_status_args=
23590  test "$silent" = yes &&
23591    ac_config_status_args="$ac_config_status_args --quiet"
23592  exec 5>/dev/null
23593  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23594  exec 5>>config.log
23595  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23596  # would make configure fail if this is the last instruction.
23597  $ac_cs_success || { (exit 1); exit 1; }
23598fi
23599
23600
23601  if test x"$coin_vpath_link_files" = x; then : ; else
23602    lnkcmd="$coin_link_input_cmd"
23603    if test "$lnkcmd" = cp; then
23604      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23605echo "$as_me: Copying data files for VPATH configuration" >&6;}
23606    else
23607      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23608echo "$as_me: Creating VPATH links for data files" >&6;}
23609    fi
23610    for file in $coin_vpath_link_files; do
23611      dir=`(dirname "./$file") 2>/dev/null ||
23612$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23613	 X"./$file" : 'X\(//\)[^/]' \| \
23614	 X"./$file" : 'X\(//\)$' \| \
23615	 X"./$file" : 'X\(/\)' \| \
23616	 .     : '\(.\)' 2>/dev/null ||
23617echo X"./$file" |
23618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23619  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23620  	  /^X\(\/\/\)$/{ s//\1/; q; }
23621  	  /^X\(\/\).*/{ s//\1/; q; }
23622  	  s/.*/./; q'`
23623      if test -d $dir; then : ; else
23624        { if $as_mkdir_p; then
23625    mkdir -p $dir
23626  else
23627    as_dir=$dir
23628    as_dirs=
23629    while test ! -d "$as_dir"; do
23630      as_dirs="$as_dir $as_dirs"
23631      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633	 X"$as_dir" : 'X\(//\)[^/]' \| \
23634	 X"$as_dir" : 'X\(//\)$' \| \
23635	 X"$as_dir" : 'X\(/\)' \| \
23636	 .     : '\(.\)' 2>/dev/null ||
23637echo X"$as_dir" |
23638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23639  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23640  	  /^X\(\/\/\)$/{ s//\1/; q; }
23641  	  /^X\(\/\).*/{ s//\1/; q; }
23642  	  s/.*/./; q'`
23643    done
23644    test ! -n "$as_dirs" || mkdir $as_dirs
23645  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23646echo "$as_me: error: cannot create directory $dir" >&2;}
23647   { (exit 1); exit 1; }; }; }
23648
23649      fi
23650      rm -f $file
23651      $lnkcmd $abs_source_dir/$file $file
23652    done
23653  fi
23654
23655  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23656echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23657  if test x$coin_projectdir = xyes; then
23658    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23659echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23660  else
23661    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23662echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23663  fi
23664else
23665  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23666echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23667fi
23668
23669
23670