1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for SYMPHONY 5.6.17.
4#
5# Report bugs to <symphony@list.coin-or.org>.
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# /*===========================================================================*/
13# /*                                                                           */
14# /* This file is part of the SYMPHONY MILP Solver Framework.                  */
15# /*                                                                           */
16# /* SYMPHONY was jointly developed by Ted Ralphs (ted@lehigh.edu) and         */
17# /* Laci Ladanyi (ladanyi@us.ibm.com).                                        */
18# /*                                                                           */
19# /* (c) Copyright 2000-2019 Ted Ralphs. All Rights Reserved.                  */
20# /*                                                                           */
21# /* This software is licensed under the Eclipse Public License. Please see    */
22# /* accompanying file for terms.                                              */
23# /*                                                                           */
24# /*===========================================================================*/
25#
26## --------------------- ##
27## M4sh Initialization.  ##
28## --------------------- ##
29
30# Be Bourne compatible
31if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32  emulate sh
33  NULLCMD=:
34  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35  # is contrary to our usage.  Disable this feature.
36  alias -g '${1+"$@"}'='"$@"'
37elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38  set -o posix
39fi
40DUALCASE=1; export DUALCASE # for MKS sh
41
42# Support unset when possible.
43if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44  as_unset=unset
45else
46  as_unset=false
47fi
48
49
50# Work around bugs in pre-3.0 UWIN ksh.
51$as_unset ENV MAIL MAILPATH
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# NLS nuisances.
57for as_var in \
58  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
59  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
60  LC_TELEPHONE LC_TIME
61do
62  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
63    eval $as_var=C; export $as_var
64  else
65    $as_unset $as_var
66  fi
67done
68
69# Required to use basename.
70if expr a : '\(a\)' >/dev/null 2>&1; then
71  as_expr=expr
72else
73  as_expr=false
74fi
75
76if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
77  as_basename=basename
78else
79  as_basename=false
80fi
81
82
83# Name of the executable.
84as_me=`$as_basename "$0" ||
85$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
86	 X"$0" : 'X\(//\)$' \| \
87	 X"$0" : 'X\(/\)$' \| \
88	 .     : '\(.\)' 2>/dev/null ||
89echo X/"$0" |
90    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
91  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
92  	  /^X\/\(\/\).*/{ s//\1/; q; }
93  	  s/.*/./; q'`
94
95
96# PATH needs CR, and LINENO needs CR and PATH.
97# Avoid depending upon Character Ranges.
98as_cr_letters='abcdefghijklmnopqrstuvwxyz'
99as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
100as_cr_Letters=$as_cr_letters$as_cr_LETTERS
101as_cr_digits='0123456789'
102as_cr_alnum=$as_cr_Letters$as_cr_digits
103
104# The user is always right.
105if test "${PATH_SEPARATOR+set}" != set; then
106  echo "#! /bin/sh" >conf$$.sh
107  echo  "exit 0"   >>conf$$.sh
108  chmod +x conf$$.sh
109  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
110    PATH_SEPARATOR=';'
111  else
112    PATH_SEPARATOR=:
113  fi
114  rm -f conf$$.sh
115fi
116
117
118  as_lineno_1=$LINENO
119  as_lineno_2=$LINENO
120  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
121  test "x$as_lineno_1" != "x$as_lineno_2" &&
122  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
123  # Find who we are.  Look in the path if we contain no path at all
124  # relative or not.
125  case $0 in
126    *[\\/]* ) as_myself=$0 ;;
127    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in $PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
133done
134
135       ;;
136  esac
137  # We did not find ourselves, most probably we were run as `sh COMMAND'
138  # in which case we are not to be found in the path.
139  if test "x$as_myself" = x; then
140    as_myself=$0
141  fi
142  if test ! -f "$as_myself"; then
143    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
144   { (exit 1); exit 1; }; }
145  fi
146  case $CONFIG_SHELL in
147  '')
148    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
149for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
150do
151  IFS=$as_save_IFS
152  test -z "$as_dir" && as_dir=.
153  for as_base in sh bash ksh sh5; do
154	 case $as_dir in
155	 /*)
156	   if ("$as_dir/$as_base" -c '
157  as_lineno_1=$LINENO
158  as_lineno_2=$LINENO
159  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
160  test "x$as_lineno_1" != "x$as_lineno_2" &&
161  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
162	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
163	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
164	     CONFIG_SHELL=$as_dir/$as_base
165	     export CONFIG_SHELL
166	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
167	   fi;;
168	 esac
169       done
170done
171;;
172  esac
173
174  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
175  # uniformly replaced by the line number.  The first 'sed' inserts a
176  # line-number line before each line; the second 'sed' does the real
177  # work.  The second script uses 'N' to pair each line-number line
178  # with the numbered line, and appends trailing '-' during
179  # substitution so that $LINENO is not a special case at line end.
180  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
181  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
182  sed '=' <$as_myself |
183    sed '
184      N
185      s,$,-,
186      : loop
187      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
188      t loop
189      s,-$,,
190      s,^['$as_cr_digits']*\n,,
191    ' >$as_me.lineno &&
192  chmod +x $as_me.lineno ||
193    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
194   { (exit 1); exit 1; }; }
195
196  # Don't try to exec as it changes $[0], causing all sort of problems
197  # (the dirname of $[0] is not the place where we might find the
198  # original and so on.  Autoconf is especially sensible to this).
199  . ./$as_me.lineno
200  # Exit status is that of the last command.
201  exit
202}
203
204
205case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
206  *c*,-n*) ECHO_N= ECHO_C='
207' ECHO_T='	' ;;
208  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
209  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
210esac
211
212if expr a : '\(a\)' >/dev/null 2>&1; then
213  as_expr=expr
214else
215  as_expr=false
216fi
217
218rm -f conf$$ conf$$.exe conf$$.file
219echo >conf$$.file
220if ln -s conf$$.file conf$$ 2>/dev/null; then
221  # We could just check for DJGPP; but this test a) works b) is more generic
222  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
223  if test -f conf$$.exe; then
224    # Don't use ln at all; we don't have any links
225    as_ln_s='cp -p'
226  else
227    as_ln_s='ln -s'
228  fi
229elif ln conf$$.file conf$$ 2>/dev/null; then
230  as_ln_s=ln
231else
232  as_ln_s='cp -p'
233fi
234rm -f conf$$ conf$$.exe conf$$.file
235
236if mkdir -p . 2>/dev/null; then
237  as_mkdir_p=:
238else
239  test -d ./-p && rmdir ./-p
240  as_mkdir_p=false
241fi
242
243as_executable_p="test -f"
244
245# Sed expression to map a string onto a valid CPP name.
246as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
247
248# Sed expression to map a string onto a valid variable name.
249as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
250
251
252# IFS
253# We need space, tab and new line, in precisely that order.
254as_nl='
255'
256IFS=" 	$as_nl"
257
258# CDPATH.
259$as_unset CDPATH
260
261
262
263# Check that we are running under the correct shell.
264SHELL=${CONFIG_SHELL-/bin/sh}
265
266case X$ECHO in
267X*--fallback-echo)
268  # Remove one level of quotation (which was required for Make).
269  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
270  ;;
271esac
272
273echo=${ECHO-echo}
274if test "X$1" = X--no-reexec; then
275  # Discard the --no-reexec flag, and continue.
276  shift
277elif test "X$1" = X--fallback-echo; then
278  # Avoid inline document here, it may be left over
279  :
280elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
281  # Yippee, $echo works!
282  :
283else
284  # Restart under the correct shell.
285  exec $SHELL "$0" --no-reexec ${1+"$@"}
286fi
287
288if test "X$1" = X--fallback-echo; then
289  # used as fallback echo
290  shift
291  cat <<EOF
292$*
293EOF
294  exit 0
295fi
296
297# The HP-UX ksh and POSIX shell print the target directory to stdout
298# if CDPATH is set.
299(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
300
301if test -z "$ECHO"; then
302if test "X${echo_test_string+set}" != Xset; then
303# find a string as large as possible, as long as the shell can cope with it
304  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
305    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
306    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
307       echo_test_string=`eval $cmd` &&
308       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
309    then
310      break
311    fi
312  done
313fi
314
315if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
316   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
317   test "X$echo_testing_string" = "X$echo_test_string"; then
318  :
319else
320  # The Solaris, AIX, and Digital Unix default echo programs unquote
321  # backslashes.  This makes it impossible to quote backslashes using
322  #   echo "$something" | sed 's/\\/\\\\/g'
323  #
324  # So, first we look for a working echo in the user's PATH.
325
326  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
327  for dir in $PATH /usr/ucb; do
328    IFS="$lt_save_ifs"
329    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
330       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
331       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
332       test "X$echo_testing_string" = "X$echo_test_string"; then
333      echo="$dir/echo"
334      break
335    fi
336  done
337  IFS="$lt_save_ifs"
338
339  if test "X$echo" = Xecho; then
340    # We didn't find a better echo, so look for alternatives.
341    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
342       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
343       test "X$echo_testing_string" = "X$echo_test_string"; then
344      # This shell has a builtin print -r that does the trick.
345      echo='print -r'
346    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
347	 test "X$CONFIG_SHELL" != X/bin/ksh; then
348      # If we have ksh, try running configure again with it.
349      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
350      export ORIGINAL_CONFIG_SHELL
351      CONFIG_SHELL=/bin/ksh
352      export CONFIG_SHELL
353      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
354    else
355      # Try using printf.
356      echo='printf %s\n'
357      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
358	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
359	 test "X$echo_testing_string" = "X$echo_test_string"; then
360	# Cool, printf works
361	:
362      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
367	export CONFIG_SHELL
368	SHELL="$CONFIG_SHELL"
369	export SHELL
370	echo="$CONFIG_SHELL $0 --fallback-echo"
371      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
372	   test "X$echo_testing_string" = 'X\t' &&
373	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
374	   test "X$echo_testing_string" = "X$echo_test_string"; then
375	echo="$CONFIG_SHELL $0 --fallback-echo"
376      else
377	# maybe with a smaller string...
378	prev=:
379
380	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
381	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
382	  then
383	    break
384	  fi
385	  prev="$cmd"
386	done
387
388	if test "$prev" != 'sed 50q "$0"'; then
389	  echo_test_string=`eval $prev`
390	  export echo_test_string
391	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
392	else
393	  # Oops.  We lost completely, so just stick with echo.
394	  echo=echo
395	fi
396      fi
397    fi
398  fi
399fi
400fi
401
402# Copy echo and quote the copy suitably for passing to libtool from
403# the Makefile, instead of quoting the original, which is used later.
404ECHO=$echo
405if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
406   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
407fi
408
409
410
411
412tagnames=${tagnames+${tagnames},}CXX
413
414tagnames=${tagnames+${tagnames},}F77
415
416# Name of the host.
417# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
418# so uname gets run too.
419ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
420
421exec 6>&1
422
423#
424# Initializations.
425#
426ac_default_prefix=/usr/local
427ac_config_libobj_dir=.
428cross_compiling=no
429subdirs=
430MFLAGS=
431MAKEFLAGS=
432SHELL=${CONFIG_SHELL-/bin/sh}
433
434# Maximum number of lines to put in a shell here document.
435# This variable seems obsolete.  It should probably be removed, and
436# only ac_max_sed_lines should be used.
437: ${ac_max_here_lines=38}
438
439# Identity of this package.
440PACKAGE_NAME='SYMPHONY'
441PACKAGE_TARNAME='symphony'
442PACKAGE_VERSION='5.6.17'
443PACKAGE_STRING='SYMPHONY 5.6.17'
444PACKAGE_BUGREPORT='symphony@list.coin-or.org'
445
446ac_unique_file="include/symphony.h"
447ac_default_prefix=`pwd`
448# Factoring default headers for most tests.
449ac_includes_default="\
450#include <stdio.h>
451#if HAVE_SYS_TYPES_H
452# include <sys/types.h>
453#endif
454#if HAVE_SYS_STAT_H
455# include <sys/stat.h>
456#endif
457#if STDC_HEADERS
458# include <stdlib.h>
459# include <stddef.h>
460#else
461# if HAVE_STDLIB_H
462#  include <stdlib.h>
463# endif
464#endif
465#if HAVE_STRING_H
466# if !STDC_HEADERS && HAVE_MEMORY_H
467#  include <memory.h>
468# endif
469# include <string.h>
470#endif
471#if HAVE_STRINGS_H
472# include <strings.h>
473#endif
474#if HAVE_INTTYPES_H
475# include <inttypes.h>
476#else
477# if HAVE_STDINT_H
478#  include <stdint.h>
479# endif
480#endif
481#if HAVE_UNISTD_H
482# include <unistd.h>
483#endif"
484
485ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SYMPHONY_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_HAS_READLINE_TRUE COIN_HAS_READLINE_FALSE PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED SYMPHONYLIB_CFLAGS SYMPHONYLIB_LIBS SYMPHONYLIB_PCLIBS SYMPHONYLIB_PCREQUIRES SYMPHONYLIB_DEPENDENCIES SYMPHONYLIB_CFLAGS_INSTALLED SYMPHONYLIB_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CGL_LIBS CGL_CFLAGS CGL_DATA CGL_DEPENDENCIES CGL_LIBS_INSTALLED CGL_CFLAGS_INSTALLED CGL_DATA_INSTALLED COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE CLP_LP_SOLVER_TRUE CLP_LP_SOLVER_FALSE GLPK_LP_SOLVER_TRUE GLPK_LP_SOLVER_FALSE OSL_LP_SOLVER_TRUE OSL_LP_SOLVER_FALSE CPLEX_LP_SOLVER_TRUE CPLEX_LP_SOLVER_FALSE SOPLEX_LP_SOLVER_TRUE SOPLEX_LP_SOLVER_FALSE XPRESS_LP_SOLVER_TRUE XPRESS_LP_SOLVER_FALSE USE_CGL_CUTS_TRUE USE_CGL_CUTS_FALSE USE_GMPL_TRUE USE_GMPL_FALSE SENSITIVITY_ANALYSIS_TRUE SENSITIVITY_ANALYSIS_FALSE ROOT_NODE_ONLY_TRUE ROOT_NODE_ONLY_FALSE COMPILE_FRAC_BRANCHING_TRUE COMPILE_FRAC_BRANCHING_FALSE DO_TESTS_TRUE DO_TESTS_FALSE TM_BASIS_TESTS_TRUE TM_BASIS_TESTS_FALSE TRACE_PATH_TRUE TRACE_PATH_FALSE CHECK_CUT_VALIDITY_TRUE CHECK_CUT_VALIDITY_FALSE STATISTICS_TRUE STATISTICS_FALSE PSEUDO_COSTS_TRUE PSEUDO_COSTS_FALSE DRAWGRAPH_TRUE DRAWGRAPH_FALSE STATICEXE_TRUE STATICEXE_FALSE SIGHANDLER_TRUE SIGHANDLER_FALSE SYM_WITH_APPL_TRUE SYM_WITH_APPL_FALSE PVMINCDIR PVMLIB COIN_HAS_PVM_TRUE COIN_HAS_PVM_FALSE SYM_COMPILE_IN_CG_TRUE SYM_COMPILE_IN_CG_FALSE SYM_COMPILE_IN_CP_TRUE SYM_COMPILE_IN_CP_FALSE SYM_COMPILE_IN_LP_TRUE SYM_COMPILE_IN_LP_FALSE SYM_COMPILE_IN_TM_TRUE SYM_COMPILE_IN_TM_FALSE SYM_PARALLEL_TRUE SYM_PARALLEL_FALSE WHATTOMAKELIBS WHATTOINSTALLLIBS WHATTOMAKEBINS LPEXT CPEXT TMEXT MASTEREXT OPENMP_TRUE OPENMP_FALSE SYM_OPENMP_FLAGS SYM_OPENMP_LIBS SYMINCDIR SYMSRCDIR SYMDEFS SYMPDEFS ARCH COIN_HAS_CLP SYMAPPLDIR CLLCFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
486ac_subst_files=''
487
488# Initialize some variables set by options.
489ac_init_help=
490ac_init_version=false
491# The variables have the same names as the options, with
492# dashes changed to underlines.
493cache_file=/dev/null
494exec_prefix=NONE
495no_create=
496no_recursion=
497prefix=NONE
498program_prefix=NONE
499program_suffix=NONE
500program_transform_name=s,x,x,
501silent=
502site=
503srcdir=
504verbose=
505x_includes=NONE
506x_libraries=NONE
507
508# Installation directory options.
509# These are left unexpanded so users can "make install exec_prefix=/foo"
510# and all the variables that are supposed to be based on exec_prefix
511# by default will actually change.
512# Use braces instead of parens because sh, perl, etc. also accept them.
513bindir='${exec_prefix}/bin'
514sbindir='${exec_prefix}/sbin'
515libexecdir='${exec_prefix}/libexec'
516datadir='${prefix}/share'
517sysconfdir='${prefix}/etc'
518sharedstatedir='${prefix}/com'
519localstatedir='${prefix}/var'
520libdir='${exec_prefix}/lib'
521includedir='${prefix}/include'
522oldincludedir='/usr/include'
523infodir='${prefix}/info'
524mandir='${prefix}/man'
525
526ac_prev=
527for ac_option
528do
529  # If the previous option needs an argument, assign it.
530  if test -n "$ac_prev"; then
531    eval "$ac_prev=\$ac_option"
532    ac_prev=
533    continue
534  fi
535
536  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
537
538  # Accept the important Cygnus configure options, so we can diagnose typos.
539
540  case $ac_option in
541
542  -bindir | --bindir | --bindi | --bind | --bin | --bi)
543    ac_prev=bindir ;;
544  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
545    bindir=$ac_optarg ;;
546
547  -build | --build | --buil | --bui | --bu)
548    ac_prev=build_alias ;;
549  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
550    build_alias=$ac_optarg ;;
551
552  -cache-file | --cache-file | --cache-fil | --cache-fi \
553  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
554    ac_prev=cache_file ;;
555  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
556  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
557    cache_file=$ac_optarg ;;
558
559  --config-cache | -C)
560    cache_file=config.cache ;;
561
562  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
563    ac_prev=datadir ;;
564  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
565  | --da=*)
566    datadir=$ac_optarg ;;
567
568  -disable-* | --disable-*)
569    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
570    # Reject names that are not valid shell variable names.
571    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573   { (exit 1); exit 1; }; }
574    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575    eval "enable_$ac_feature=no" ;;
576
577  -enable-* | --enable-*)
578    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
579    # Reject names that are not valid shell variable names.
580    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
581      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
582   { (exit 1); exit 1; }; }
583    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
584    case $ac_option in
585      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
586      *) ac_optarg=yes ;;
587    esac
588    eval "enable_$ac_feature='$ac_optarg'" ;;
589
590  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
591  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
592  | --exec | --exe | --ex)
593    ac_prev=exec_prefix ;;
594  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
595  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
596  | --exec=* | --exe=* | --ex=*)
597    exec_prefix=$ac_optarg ;;
598
599  -gas | --gas | --ga | --g)
600    # Obsolete; use --with-gas.
601    with_gas=yes ;;
602
603  -help | --help | --hel | --he | -h)
604    ac_init_help=long ;;
605  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
606    ac_init_help=recursive ;;
607  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
608    ac_init_help=short ;;
609
610  -host | --host | --hos | --ho)
611    ac_prev=host_alias ;;
612  -host=* | --host=* | --hos=* | --ho=*)
613    host_alias=$ac_optarg ;;
614
615  -includedir | --includedir | --includedi | --included | --include \
616  | --includ | --inclu | --incl | --inc)
617    ac_prev=includedir ;;
618  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
619  | --includ=* | --inclu=* | --incl=* | --inc=*)
620    includedir=$ac_optarg ;;
621
622  -infodir | --infodir | --infodi | --infod | --info | --inf)
623    ac_prev=infodir ;;
624  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
625    infodir=$ac_optarg ;;
626
627  -libdir | --libdir | --libdi | --libd)
628    ac_prev=libdir ;;
629  -libdir=* | --libdir=* | --libdi=* | --libd=*)
630    libdir=$ac_optarg ;;
631
632  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
633  | --libexe | --libex | --libe)
634    ac_prev=libexecdir ;;
635  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
636  | --libexe=* | --libex=* | --libe=*)
637    libexecdir=$ac_optarg ;;
638
639  -localstatedir | --localstatedir | --localstatedi | --localstated \
640  | --localstate | --localstat | --localsta | --localst \
641  | --locals | --local | --loca | --loc | --lo)
642    ac_prev=localstatedir ;;
643  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
644  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
645  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
646    localstatedir=$ac_optarg ;;
647
648  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
649    ac_prev=mandir ;;
650  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
651    mandir=$ac_optarg ;;
652
653  -nfp | --nfp | --nf)
654    # Obsolete; use --without-fp.
655    with_fp=no ;;
656
657  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
658  | --no-cr | --no-c | -n)
659    no_create=yes ;;
660
661  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
662  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
663    no_recursion=yes ;;
664
665  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
666  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
667  | --oldin | --oldi | --old | --ol | --o)
668    ac_prev=oldincludedir ;;
669  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
670  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
671  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
672    oldincludedir=$ac_optarg ;;
673
674  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
675    ac_prev=prefix ;;
676  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
677    prefix=$ac_optarg ;;
678
679  -program-prefix | --program-prefix | --program-prefi | --program-pref \
680  | --program-pre | --program-pr | --program-p)
681    ac_prev=program_prefix ;;
682  -program-prefix=* | --program-prefix=* | --program-prefi=* \
683  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
684    program_prefix=$ac_optarg ;;
685
686  -program-suffix | --program-suffix | --program-suffi | --program-suff \
687  | --program-suf | --program-su | --program-s)
688    ac_prev=program_suffix ;;
689  -program-suffix=* | --program-suffix=* | --program-suffi=* \
690  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
691    program_suffix=$ac_optarg ;;
692
693  -program-transform-name | --program-transform-name \
694  | --program-transform-nam | --program-transform-na \
695  | --program-transform-n | --program-transform- \
696  | --program-transform | --program-transfor \
697  | --program-transfo | --program-transf \
698  | --program-trans | --program-tran \
699  | --progr-tra | --program-tr | --program-t)
700    ac_prev=program_transform_name ;;
701  -program-transform-name=* | --program-transform-name=* \
702  | --program-transform-nam=* | --program-transform-na=* \
703  | --program-transform-n=* | --program-transform-=* \
704  | --program-transform=* | --program-transfor=* \
705  | --program-transfo=* | --program-transf=* \
706  | --program-trans=* | --program-tran=* \
707  | --progr-tra=* | --program-tr=* | --program-t=*)
708    program_transform_name=$ac_optarg ;;
709
710  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
711  | -silent | --silent | --silen | --sile | --sil)
712    silent=yes ;;
713
714  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
715    ac_prev=sbindir ;;
716  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
717  | --sbi=* | --sb=*)
718    sbindir=$ac_optarg ;;
719
720  -sharedstatedir | --sharedstatedir | --sharedstatedi \
721  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
722  | --sharedst | --shareds | --shared | --share | --shar \
723  | --sha | --sh)
724    ac_prev=sharedstatedir ;;
725  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
726  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
727  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
728  | --sha=* | --sh=*)
729    sharedstatedir=$ac_optarg ;;
730
731  -site | --site | --sit)
732    ac_prev=site ;;
733  -site=* | --site=* | --sit=*)
734    site=$ac_optarg ;;
735
736  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
737    ac_prev=srcdir ;;
738  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
739    srcdir=$ac_optarg ;;
740
741  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
742  | --syscon | --sysco | --sysc | --sys | --sy)
743    ac_prev=sysconfdir ;;
744  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
745  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
746    sysconfdir=$ac_optarg ;;
747
748  -target | --target | --targe | --targ | --tar | --ta | --t)
749    ac_prev=target_alias ;;
750  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
751    target_alias=$ac_optarg ;;
752
753  -v | -verbose | --verbose | --verbos | --verbo | --verb)
754    verbose=yes ;;
755
756  -version | --version | --versio | --versi | --vers | -V)
757    ac_init_version=: ;;
758
759  -with-* | --with-*)
760    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
761    # Reject names that are not valid shell variable names.
762    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763      { echo "$as_me: error: invalid package name: $ac_package" >&2
764   { (exit 1); exit 1; }; }
765    ac_package=`echo $ac_package| sed 's/-/_/g'`
766    case $ac_option in
767      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
768      *) ac_optarg=yes ;;
769    esac
770    eval "with_$ac_package='$ac_optarg'" ;;
771
772  -without-* | --without-*)
773    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
774    # Reject names that are not valid shell variable names.
775    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
776      { echo "$as_me: error: invalid package name: $ac_package" >&2
777   { (exit 1); exit 1; }; }
778    ac_package=`echo $ac_package | sed 's/-/_/g'`
779    eval "with_$ac_package=no" ;;
780
781  --x)
782    # Obsolete; use --with-x.
783    with_x=yes ;;
784
785  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
786  | --x-incl | --x-inc | --x-in | --x-i)
787    ac_prev=x_includes ;;
788  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
789  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
790    x_includes=$ac_optarg ;;
791
792  -x-libraries | --x-libraries | --x-librarie | --x-librari \
793  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
794    ac_prev=x_libraries ;;
795  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
796  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
797    x_libraries=$ac_optarg ;;
798
799  -*) { echo "$as_me: error: unrecognized option: $ac_option
800Try \`$0 --help' for more information." >&2
801   { (exit 1); exit 1; }; }
802    ;;
803
804  *=*)
805    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
806    # Reject names that are not valid shell variable names.
807    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
808      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
809   { (exit 1); exit 1; }; }
810    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
811    eval "$ac_envvar='$ac_optarg'"
812    export $ac_envvar ;;
813
814  *)
815    # FIXME: should be removed in autoconf 3.0.
816    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
817    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
818      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
819    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
820    ;;
821
822  esac
823done
824
825if test -n "$ac_prev"; then
826  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
827  { echo "$as_me: error: missing argument to $ac_option" >&2
828   { (exit 1); exit 1; }; }
829fi
830
831# Be sure to have absolute paths.
832for ac_var in exec_prefix prefix
833do
834  eval ac_val=$`echo $ac_var`
835  case $ac_val in
836    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
837    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838   { (exit 1); exit 1; }; };;
839  esac
840done
841
842# Be sure to have absolute paths.
843for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
844	      localstatedir libdir includedir oldincludedir infodir mandir
845do
846  eval ac_val=$`echo $ac_var`
847  case $ac_val in
848    [\\/$]* | ?:[\\/]* ) ;;
849    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
850   { (exit 1); exit 1; }; };;
851  esac
852done
853
854# There might be people who depend on the old broken behavior: `$host'
855# used to hold the argument of --host etc.
856# FIXME: To remove some day.
857build=$build_alias
858host=$host_alias
859target=$target_alias
860
861# FIXME: To remove some day.
862if test "x$host_alias" != x; then
863  if test "x$build_alias" = x; then
864    cross_compiling=maybe
865    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
866    If a cross compiler is detected then cross compile mode will be used." >&2
867  elif test "x$build_alias" != "x$host_alias"; then
868    cross_compiling=yes
869  fi
870fi
871
872ac_tool_prefix=
873test -n "$host_alias" && ac_tool_prefix=$host_alias-
874
875test "$silent" = yes && exec 6>/dev/null
876
877
878# Find the source files, if location was not specified.
879if test -z "$srcdir"; then
880  ac_srcdir_defaulted=yes
881  # Try the directory containing this script, then its parent.
882  ac_confdir=`(dirname "$0") 2>/dev/null ||
883$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
884	 X"$0" : 'X\(//\)[^/]' \| \
885	 X"$0" : 'X\(//\)$' \| \
886	 X"$0" : 'X\(/\)' \| \
887	 .     : '\(.\)' 2>/dev/null ||
888echo X"$0" |
889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
890  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
891  	  /^X\(\/\/\)$/{ s//\1/; q; }
892  	  /^X\(\/\).*/{ s//\1/; q; }
893  	  s/.*/./; q'`
894  srcdir=$ac_confdir
895  if test ! -r $srcdir/$ac_unique_file; then
896    srcdir=..
897  fi
898else
899  ac_srcdir_defaulted=no
900fi
901if test ! -r $srcdir/$ac_unique_file; then
902  if test "$ac_srcdir_defaulted" = yes; then
903    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
904   { (exit 1); exit 1; }; }
905  else
906    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
907   { (exit 1); exit 1; }; }
908  fi
909fi
910(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
911  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
912   { (exit 1); exit 1; }; }
913srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
914ac_env_build_alias_set=${build_alias+set}
915ac_env_build_alias_value=$build_alias
916ac_cv_env_build_alias_set=${build_alias+set}
917ac_cv_env_build_alias_value=$build_alias
918ac_env_host_alias_set=${host_alias+set}
919ac_env_host_alias_value=$host_alias
920ac_cv_env_host_alias_set=${host_alias+set}
921ac_cv_env_host_alias_value=$host_alias
922ac_env_target_alias_set=${target_alias+set}
923ac_env_target_alias_value=$target_alias
924ac_cv_env_target_alias_set=${target_alias+set}
925ac_cv_env_target_alias_value=$target_alias
926ac_env_CDEFS_set=${CDEFS+set}
927ac_env_CDEFS_value=$CDEFS
928ac_cv_env_CDEFS_set=${CDEFS+set}
929ac_cv_env_CDEFS_value=$CDEFS
930ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
931ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
932ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
933ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
934ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
935ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
936ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
937ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
938ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
939ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
940ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
941ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
942ac_env_CC_set=${CC+set}
943ac_env_CC_value=$CC
944ac_cv_env_CC_set=${CC+set}
945ac_cv_env_CC_value=$CC
946ac_env_CFLAGS_set=${CFLAGS+set}
947ac_env_CFLAGS_value=$CFLAGS
948ac_cv_env_CFLAGS_set=${CFLAGS+set}
949ac_cv_env_CFLAGS_value=$CFLAGS
950ac_env_LDFLAGS_set=${LDFLAGS+set}
951ac_env_LDFLAGS_value=$LDFLAGS
952ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
953ac_cv_env_LDFLAGS_value=$LDFLAGS
954ac_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_env_CPPFLAGS_value=$CPPFLAGS
956ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
957ac_cv_env_CPPFLAGS_value=$CPPFLAGS
958ac_env_MPICC_set=${MPICC+set}
959ac_env_MPICC_value=$MPICC
960ac_cv_env_MPICC_set=${MPICC+set}
961ac_cv_env_MPICC_value=$MPICC
962ac_env_CXXDEFS_set=${CXXDEFS+set}
963ac_env_CXXDEFS_value=$CXXDEFS
964ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
965ac_cv_env_CXXDEFS_value=$CXXDEFS
966ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
967ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
968ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
969ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
970ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
971ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
972ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
973ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
974ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
975ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
976ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
977ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
978ac_env_CXX_set=${CXX+set}
979ac_env_CXX_value=$CXX
980ac_cv_env_CXX_set=${CXX+set}
981ac_cv_env_CXX_value=$CXX
982ac_env_CXXFLAGS_set=${CXXFLAGS+set}
983ac_env_CXXFLAGS_value=$CXXFLAGS
984ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_cv_env_CXXFLAGS_value=$CXXFLAGS
986ac_env_MPICXX_set=${MPICXX+set}
987ac_env_MPICXX_value=$MPICXX
988ac_cv_env_MPICXX_set=${MPICXX+set}
989ac_cv_env_MPICXX_value=$MPICXX
990ac_env_CPP_set=${CPP+set}
991ac_env_CPP_value=$CPP
992ac_cv_env_CPP_set=${CPP+set}
993ac_cv_env_CPP_value=$CPP
994ac_env_CXXCPP_set=${CXXCPP+set}
995ac_env_CXXCPP_value=$CXXCPP
996ac_cv_env_CXXCPP_set=${CXXCPP+set}
997ac_cv_env_CXXCPP_value=$CXXCPP
998ac_env_F77_set=${F77+set}
999ac_env_F77_value=$F77
1000ac_cv_env_F77_set=${F77+set}
1001ac_cv_env_F77_value=$F77
1002ac_env_FFLAGS_set=${FFLAGS+set}
1003ac_env_FFLAGS_value=$FFLAGS
1004ac_cv_env_FFLAGS_set=${FFLAGS+set}
1005ac_cv_env_FFLAGS_value=$FFLAGS
1006ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1007ac_env_PKG_CONFIG_value=$PKG_CONFIG
1008ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1009ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1010
1011#
1012# Report the --help message.
1013#
1014if test "$ac_init_help" = "long"; then
1015  # Omit some internal or obsolete options to make the list less imposing.
1016  # This message is too long to be a string in the A/UX 3.1 sh.
1017  cat <<_ACEOF
1018\`configure' configures SYMPHONY 5.6.17 to adapt to many kinds of systems.
1019
1020Usage: $0 [OPTION]... [VAR=VALUE]...
1021
1022To assign environment variables (e.g., CC, CFLAGS...), specify them as
1023VAR=VALUE.  See below for descriptions of some of the useful variables.
1024
1025Defaults for the options are specified in brackets.
1026
1027Configuration:
1028  -h, --help              display this help and exit
1029      --help=short        display options specific to this package
1030      --help=recursive    display the short help of all the included packages
1031  -V, --version           display version information and exit
1032  -q, --quiet, --silent   do not print \`checking...' messages
1033      --cache-file=FILE   cache test results in FILE [disabled]
1034  -C, --config-cache      alias for \`--cache-file=config.cache'
1035  -n, --no-create         do not create output files
1036      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1037
1038_ACEOF
1039
1040  cat <<_ACEOF
1041Installation directories:
1042  --prefix=PREFIX         install architecture-independent files in PREFIX
1043			  [$ac_default_prefix]
1044  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1045			  [PREFIX]
1046
1047By default, \`make install' will install all the files in
1048\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1049an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1050for instance \`--prefix=\$HOME'.
1051
1052For better control, use the options below.
1053
1054Fine tuning of the installation directories:
1055  --bindir=DIR           user executables [EPREFIX/bin]
1056  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1057  --libexecdir=DIR       program executables [EPREFIX/libexec]
1058  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1059  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1060  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1061  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1062  --libdir=DIR           object code libraries [EPREFIX/lib]
1063  --includedir=DIR       C header files [PREFIX/include]
1064  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1065  --infodir=DIR          info documentation [PREFIX/info]
1066  --mandir=DIR           man documentation [PREFIX/man]
1067_ACEOF
1068
1069  cat <<\_ACEOF
1070
1071Program names:
1072  --program-prefix=PREFIX            prepend PREFIX to installed program names
1073  --program-suffix=SUFFIX            append SUFFIX to installed program names
1074  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1075
1076System types:
1077  --build=BUILD     configure for building on BUILD [guessed]
1078  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1079_ACEOF
1080fi
1081
1082if test -n "$ac_init_help"; then
1083  case $ac_init_help in
1084     short | recursive ) echo "Configuration of SYMPHONY 5.6.17:";;
1085   esac
1086  cat <<\_ACEOF
1087
1088Optional Features:
1089  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1090  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1091  --enable-debug          compile all projects with debug options tests
1092                          (implies --disable-shared)
1093  --enable-debug-symphony compile project SYMPHONY with debug compiler flags
1094
1095  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1096  --enable-static[=PKGS]
1097                          build static libraries [default=no]
1098  --disable-dependency-tracking  speeds up one-time build
1099  --enable-dependency-tracking   do not reject slow dependency extractors
1100  --enable-maintainer-mode  enable make rules and dependencies not useful
1101			  (and sometimes confusing) to the casual installer
1102  --enable-shared[=PKGS]
1103                          build shared libraries [default=yes]
1104  --enable-fast-install[=PKGS]
1105                          optimize for fast installation [default=yes]
1106  --disable-libtool-lock  avoid locking (might break parallel builds)
1107  --disable-dependency-linking
1108                          disable linking library dependencies into shared
1109                          libraries
1110  --enable-gnu-packages   compile with GNU packages (disabled by default)
1111  --disable-pkg-config    disable use of pkg-config (if available)
1112  --disable-interpackage-dependencies
1113                          disables deduction of Makefile dependencies from
1114                          package linker flags
1115  --disable-cgl-cuts      disable generic cut generation
1116  --enable-sensitivity-analysis
1117                          compile in the sensitivity analysis features
1118  --enable-root-only      option to only process the root node
1119  --enable-frac-branching whether to compile in the fractional branching
1120                          option
1121  --enable-tests          whether to perform additional sanity checks (for
1122                          debugging purposes)
1123  --enable-tm-tests       more tests...
1124  --enable-trace-path     additional debugging options
1125  --enable-cut-check      additional debugging options
1126  --enable-statistics     additional statistics
1127  --enable-pseudo-costs   enable some experimental pseudo-cost branching stuff
1128  --enable-draw-graph     enable IGD graph drawing application
1129  --enable-static-executable
1130                          create a complete static executable
1131  --disable-signal-handler
1132                          disable signal handler
1133  --disable-pvm-libcheck skip the link check at configuration time
1134  --enable-openmp         compile in OpenMP features
1135
1136Optional Packages:
1137  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1138  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1139  --with-symphony-verbosity
1140                          specify the debug verbosity level for project
1141                          SYMPHONY
1142  --with-symphony-checklevel
1143                          specify the sanity check level for project SYMPHONY
1144  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1145  --with-pic              try to use only PIC/non-PIC objects [default=use
1146                          both]
1147  --with-tags[=TAGS]
1148                          include additional configurations [automatic]
1149  --with-coin-instdir     prefix of installation directory for precompiled
1150                          COIN packages
1151
1152  --with-coindepend-lib linker flags for using package CoinDepend
1153  --with-coindepend-incdir
1154                          directory with header files for using package
1155                          CoinDepend
1156  --with-coindepend-datadir
1157                          directory with data files for using package
1158                          CoinDepend
1159  --with-clp-lib linker flags for using package Clp
1160  --with-clp-incdir directory with header files for using package Clp
1161  --with-clp-datadir directory with data files for using package Clp
1162  --with-dylp-lib linker flags for using package DyLP
1163  --with-dylp-incdir directory with header files for using package DyLP
1164  --with-dylp-datadir directory with data files for using package DyLP
1165  --with-vol-lib linker flags for using package Vol
1166  --with-vol-incdir directory with header files for using package Vol
1167  --with-vol-datadir directory with data files for using package Vol
1168  --with-cgl-lib linker flags for using package Cgl
1169  --with-cgl-incdir directory with header files for using package Cgl
1170  --with-cgl-datadir directory with data files for using package Cgl
1171  --with-ositests-lib linker flags for using package OsiTests
1172  --with-ositests-incdir directory with header files for using package
1173                          OsiTests
1174  --with-ositests-datadir directory with data files for using package OsiTests
1175  --with-sample-lib linker flags for using package Sample
1176  --with-sample-incdir directory with header files for using package Sample
1177  --with-sample-datadir directory with data files for using package Sample
1178  --with-netlib-lib linker flags for using package Netlib
1179  --with-netlib-incdir directory with header files for using package Netlib
1180  --with-netlib-datadir directory with data files for using package Netlib
1181  --with-miplib3-lib linker flags for using package Miplib3
1182  --with-miplib3-incdir directory with header files for using package Miplib3
1183  --with-miplib3-datadir directory with data files for using package Miplib3
1184  --with-cpx-lib linker flags for using package Cpx
1185  --with-cpx-incdir directory with header files for using package Cpx
1186  --with-cpx-datadir directory with data files for using package Cpx
1187  --with-glpk-lib linker flags for using package Glpk
1188  --with-glpk-incdir directory with header files for using package Glpk
1189  --with-glpk-datadir directory with data files for using package Glpk
1190  --with-msk-lib linker flags for using package Msk
1191  --with-msk-incdir directory with header files for using package Msk
1192  --with-msk-datadir directory with data files for using package Msk
1193  --with-xpr-lib linker flags for using package Xpr
1194  --with-xpr-incdir directory with header files for using package Xpr
1195  --with-xpr-datadir directory with data files for using package Xpr
1196  --with-lp-solver[=lpsolver]
1197                          specify the LP solver in small letters(default
1198                          lpsolver=clp)
1199  --with-gmpl             compile with GMPL reader
1200  --with-application      compile the application library
1201  --with-pvm-incdir specify the header file directory for library Pvm
1202  --with-pvm-lib specify the flags used to link with the library Pvm
1203  --with-pvm              compile in distributed parallel mode (assuming that
1204                          pvm is installed and the variable PVM_ROOT is
1205                          defined.)
1206  --without-cg            compile without cut generator module(default=yes)
1207  --without-cp            compile without cut pool module(defualt=yes)
1208  --without-lp            compile without LP solver module(default=yes)
1209  --without-tm            compile without tree manager module (default=yes)
1210
1211Some influential environment variables:
1212  CDEFS       Additional -D flags to be used when compiling C code.
1213  ADD_CFLAGS  Additional C compiler options
1214  DBG_CFLAGS  Debug C compiler options
1215  OPT_CFLAGS  Optimize C compiler options
1216  CC          C compiler command
1217  CFLAGS      C compiler flags
1218  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1219              nonstandard directory <lib dir>
1220  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1221              headers in a nonstandard directory <include dir>
1222  MPICC       C MPI Compiler
1223  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1224  ADD_CXXFLAGS
1225              Additional C++ compiler options
1226  DBG_CXXFLAGS
1227              Debug C++ compiler options
1228  OPT_CXXFLAGS
1229              Optimize C++ compiler options
1230  CXX         C++ compiler command
1231  CXXFLAGS    C++ compiler flags
1232  MPICXX      C++ MPI Compiler
1233  CPP         C preprocessor
1234  CXXCPP      C++ preprocessor
1235  F77         Fortran 77 compiler command
1236  FFLAGS      Fortran 77 compiler flags
1237  PKG_CONFIG  path to pkg-config utility
1238
1239Use these variables to override the choices made by `configure' or to help
1240it to find libraries and programs with nonstandard names/locations.
1241
1242Report bugs to <symphony@list.coin-or.org>.
1243_ACEOF
1244fi
1245
1246if test "$ac_init_help" = "recursive"; then
1247  # If there are subdirs, report their specific --help.
1248  ac_popdir=`pwd`
1249  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1250    test -d $ac_dir || continue
1251    ac_builddir=.
1252
1253if test "$ac_dir" != .; then
1254  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1255  # A "../" for each directory in $ac_dir_suffix.
1256  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1257else
1258  ac_dir_suffix= ac_top_builddir=
1259fi
1260
1261case $srcdir in
1262  .)  # No --srcdir option.  We are building in place.
1263    ac_srcdir=.
1264    if test -z "$ac_top_builddir"; then
1265       ac_top_srcdir=.
1266    else
1267       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1268    fi ;;
1269  [\\/]* | ?:[\\/]* )  # Absolute path.
1270    ac_srcdir=$srcdir$ac_dir_suffix;
1271    ac_top_srcdir=$srcdir ;;
1272  *) # Relative path.
1273    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1274    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1275esac
1276
1277# Do not use `cd foo && pwd` to compute absolute paths, because
1278# the directories may not exist.
1279case `pwd` in
1280.) ac_abs_builddir="$ac_dir";;
1281*)
1282  case "$ac_dir" in
1283  .) ac_abs_builddir=`pwd`;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1285  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1286  esac;;
1287esac
1288case $ac_abs_builddir in
1289.) ac_abs_top_builddir=${ac_top_builddir}.;;
1290*)
1291  case ${ac_top_builddir}. in
1292  .) ac_abs_top_builddir=$ac_abs_builddir;;
1293  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1294  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1295  esac;;
1296esac
1297case $ac_abs_builddir in
1298.) ac_abs_srcdir=$ac_srcdir;;
1299*)
1300  case $ac_srcdir in
1301  .) ac_abs_srcdir=$ac_abs_builddir;;
1302  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1303  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1304  esac;;
1305esac
1306case $ac_abs_builddir in
1307.) ac_abs_top_srcdir=$ac_top_srcdir;;
1308*)
1309  case $ac_top_srcdir in
1310  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1311  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1312  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1313  esac;;
1314esac
1315
1316    cd $ac_dir
1317    # Check for guested configure; otherwise get Cygnus style configure.
1318    if test -f $ac_srcdir/configure.gnu; then
1319      echo
1320      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1321    elif test -f $ac_srcdir/configure; then
1322      echo
1323      $SHELL $ac_srcdir/configure  --help=recursive
1324    elif test -f $ac_srcdir/configure.ac ||
1325	   test -f $ac_srcdir/configure.in; then
1326      echo
1327      $ac_configure --help
1328    else
1329      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1330    fi
1331    cd $ac_popdir
1332  done
1333fi
1334
1335test -n "$ac_init_help" && exit 0
1336if $ac_init_version; then
1337  cat <<\_ACEOF
1338SYMPHONY configure 5.6.17
1339generated by GNU Autoconf 2.59
1340
1341Copyright (C) 2003 Free Software Foundation, Inc.
1342This configure script is free software; the Free Software Foundation
1343gives unlimited permission to copy, distribute and modify it.
1344
1345
1346/*===========================================================================*/
1347/*                                                                           */
1348/* This file is part of the SYMPHONY MILP Solver Framework.                  */
1349/*                                                                           */
1350/* SYMPHONY was jointly developed by Ted Ralphs (ted@lehigh.edu) and         */
1351/* Laci Ladanyi (ladanyi@us.ibm.com).                                        */
1352/*                                                                           */
1353/* (c) Copyright 2000-2019 Ted Ralphs. All Rights Reserved.                  */
1354/*                                                                           */
1355/* This software is licensed under the Eclipse Public License. Please see    */
1356/* accompanying file for terms.                                              */
1357/*                                                                           */
1358/*===========================================================================*/
1359
1360_ACEOF
1361  exit 0
1362fi
1363exec 5>config.log
1364cat >&5 <<_ACEOF
1365This file contains any messages produced by compilers while
1366running configure, to aid debugging if configure makes a mistake.
1367
1368It was created by SYMPHONY $as_me 5.6.17, which was
1369generated by GNU Autoconf 2.59.  Invocation command line was
1370
1371  $ $0 $@
1372
1373_ACEOF
1374{
1375cat <<_ASUNAME
1376## --------- ##
1377## Platform. ##
1378## --------- ##
1379
1380hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1381uname -m = `(uname -m) 2>/dev/null || echo unknown`
1382uname -r = `(uname -r) 2>/dev/null || echo unknown`
1383uname -s = `(uname -s) 2>/dev/null || echo unknown`
1384uname -v = `(uname -v) 2>/dev/null || echo unknown`
1385
1386/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1387/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1388
1389/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1390/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1391/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1392hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1393/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1394/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1395/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1396
1397_ASUNAME
1398
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402  IFS=$as_save_IFS
1403  test -z "$as_dir" && as_dir=.
1404  echo "PATH: $as_dir"
1405done
1406
1407} >&5
1408
1409cat >&5 <<_ACEOF
1410
1411
1412## ----------- ##
1413## Core tests. ##
1414## ----------- ##
1415
1416_ACEOF
1417
1418
1419# Keep a trace of the command line.
1420# Strip out --no-create and --no-recursion so they do not pile up.
1421# Strip out --silent because we don't want to record it for future runs.
1422# Also quote any args containing shell meta-characters.
1423# Make two passes to allow for proper duplicate-argument suppression.
1424ac_configure_args=
1425ac_configure_args0=
1426ac_configure_args1=
1427ac_sep=
1428ac_must_keep_next=false
1429for ac_pass in 1 2
1430do
1431  for ac_arg
1432  do
1433    case $ac_arg in
1434    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1435    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436    | -silent | --silent | --silen | --sile | --sil)
1437      continue ;;
1438    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1439      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1440    esac
1441    case $ac_pass in
1442    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1443    2)
1444      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1445      if test $ac_must_keep_next = true; then
1446	ac_must_keep_next=false # Got value, back to normal.
1447      else
1448	case $ac_arg in
1449	  *=* | --config-cache | -C | -disable-* | --disable-* \
1450	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1451	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1452	  | -with-* | --with-* | -without-* | --without-* | --x)
1453	    case "$ac_configure_args0 " in
1454	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1455	    esac
1456	    ;;
1457	  -* ) ac_must_keep_next=true ;;
1458	esac
1459      fi
1460      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1461      # Get rid of the leading space.
1462      ac_sep=" "
1463      ;;
1464    esac
1465  done
1466done
1467$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1468$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1469
1470# When interrupted or exit'd, cleanup temporary files, and complete
1471# config.log.  We remove comments because anyway the quotes in there
1472# would cause problems or look ugly.
1473# WARNING: Be sure not to use single quotes in there, as some shells,
1474# such as our DU 5.0 friend, will then `close' the trap.
1475trap 'exit_status=$?
1476  # Save into config.log some information that might help in debugging.
1477  {
1478    echo
1479
1480    cat <<\_ASBOX
1481## ---------------- ##
1482## Cache variables. ##
1483## ---------------- ##
1484_ASBOX
1485    echo
1486    # The following way of writing the cache mishandles newlines in values,
1487{
1488  (set) 2>&1 |
1489    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1490    *ac_space=\ *)
1491      sed -n \
1492	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1493	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1494      ;;
1495    *)
1496      sed -n \
1497	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1498      ;;
1499    esac;
1500}
1501    echo
1502
1503    cat <<\_ASBOX
1504## ----------------- ##
1505## Output variables. ##
1506## ----------------- ##
1507_ASBOX
1508    echo
1509    for ac_var in $ac_subst_vars
1510    do
1511      eval ac_val=$`echo $ac_var`
1512      echo "$ac_var='"'"'$ac_val'"'"'"
1513    done | sort
1514    echo
1515
1516    if test -n "$ac_subst_files"; then
1517      cat <<\_ASBOX
1518## ------------- ##
1519## Output files. ##
1520## ------------- ##
1521_ASBOX
1522      echo
1523      for ac_var in $ac_subst_files
1524      do
1525	eval ac_val=$`echo $ac_var`
1526	echo "$ac_var='"'"'$ac_val'"'"'"
1527      done | sort
1528      echo
1529    fi
1530
1531    if test -s confdefs.h; then
1532      cat <<\_ASBOX
1533## ----------- ##
1534## confdefs.h. ##
1535## ----------- ##
1536_ASBOX
1537      echo
1538      sed "/^$/d" confdefs.h | sort
1539      echo
1540    fi
1541    test "$ac_signal" != 0 &&
1542      echo "$as_me: caught signal $ac_signal"
1543    echo "$as_me: exit $exit_status"
1544  } >&5
1545  rm -f core *.core &&
1546  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1547    exit $exit_status
1548     ' 0
1549for ac_signal in 1 2 13 15; do
1550  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1551done
1552ac_signal=0
1553
1554# confdefs.h avoids OS command line length limits that DEFS can exceed.
1555rm -rf conftest* confdefs.h
1556# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1557echo >confdefs.h
1558
1559# Predefined preprocessor variables.
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE_NAME "$PACKAGE_NAME"
1563_ACEOF
1564
1565
1566cat >>confdefs.h <<_ACEOF
1567#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1568_ACEOF
1569
1570
1571cat >>confdefs.h <<_ACEOF
1572#define PACKAGE_VERSION "$PACKAGE_VERSION"
1573_ACEOF
1574
1575
1576cat >>confdefs.h <<_ACEOF
1577#define PACKAGE_STRING "$PACKAGE_STRING"
1578_ACEOF
1579
1580
1581cat >>confdefs.h <<_ACEOF
1582#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1583_ACEOF
1584
1585
1586# Let the site file select an alternate cache file if it wants to.
1587# Prefer explicitly selected file to automatically selected ones.
1588if test -z "$CONFIG_SITE"; then
1589  if test "x$prefix" != xNONE; then
1590    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1591  else
1592    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1593  fi
1594fi
1595for ac_site_file in $CONFIG_SITE; do
1596  if test -r "$ac_site_file"; then
1597    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1598echo "$as_me: loading site script $ac_site_file" >&6;}
1599    sed 's/^/| /' "$ac_site_file" >&5
1600    . "$ac_site_file"
1601  fi
1602done
1603
1604if test -r "$cache_file"; then
1605  # Some versions of bash will fail to source /dev/null (special
1606  # files actually), so we avoid doing that.
1607  if test -f "$cache_file"; then
1608    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1609echo "$as_me: loading cache $cache_file" >&6;}
1610    case $cache_file in
1611      [\\/]* | ?:[\\/]* ) . $cache_file;;
1612      *)                      . ./$cache_file;;
1613    esac
1614  fi
1615else
1616  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1617echo "$as_me: creating cache $cache_file" >&6;}
1618  >$cache_file
1619fi
1620
1621# Check that the precious variables saved in the cache have kept the same
1622# value.
1623ac_cache_corrupted=false
1624for ac_var in `(set) 2>&1 |
1625	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1626  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1627  eval ac_new_set=\$ac_env_${ac_var}_set
1628  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1629  eval ac_new_val="\$ac_env_${ac_var}_value"
1630  case $ac_old_set,$ac_new_set in
1631    set,)
1632      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1633echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1634      ac_cache_corrupted=: ;;
1635    ,set)
1636      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1637echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1638      ac_cache_corrupted=: ;;
1639    ,);;
1640    *)
1641      if test "x$ac_old_val" != "x$ac_new_val"; then
1642	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1643echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1644	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1645echo "$as_me:   former value:  $ac_old_val" >&2;}
1646	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1647echo "$as_me:   current value: $ac_new_val" >&2;}
1648	ac_cache_corrupted=:
1649      fi;;
1650  esac
1651  # Pass precious variables to config.status.
1652  if test "$ac_new_set" = set; then
1653    case $ac_new_val in
1654    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1655      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1656    *) ac_arg=$ac_var=$ac_new_val ;;
1657    esac
1658    case " $ac_configure_args " in
1659      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1660      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1661    esac
1662  fi
1663done
1664if $ac_cache_corrupted; then
1665  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1666echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1667  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1668echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1669   { (exit 1); exit 1; }; }
1670fi
1671
1672ac_ext=c
1673ac_cpp='$CPP $CPPFLAGS'
1674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1676ac_compiler_gnu=$ac_cv_c_compiler_gnu
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707# List one file in the package so that the configure script can test
1708# whether the package is actually there
1709
1710
1711# Where should everything be installed by default?  Here, we want it
1712# to be installed directly in 'bin', 'lib', 'include' subdirectories
1713# of the directory where configure is run.  The default would be
1714# /usr/local.
1715
1716
1717#############################################################################
1718#                         Standard build tool stuff                         #
1719#############################################################################
1720
1721# Get the system type
1722ac_aux_dir=
1723for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1724  if test -f $ac_dir/install-sh; then
1725    ac_aux_dir=$ac_dir
1726    ac_install_sh="$ac_aux_dir/install-sh -c"
1727    break
1728  elif test -f $ac_dir/install.sh; then
1729    ac_aux_dir=$ac_dir
1730    ac_install_sh="$ac_aux_dir/install.sh -c"
1731    break
1732  elif test -f $ac_dir/shtool; then
1733    ac_aux_dir=$ac_dir
1734    ac_install_sh="$ac_aux_dir/shtool install -c"
1735    break
1736  fi
1737done
1738if test -z "$ac_aux_dir"; then
1739  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1740echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1741   { (exit 1); exit 1; }; }
1742fi
1743ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1744ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1745ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1746
1747# Make sure we can run config.sub.
1748$ac_config_sub sun4 >/dev/null 2>&1 ||
1749  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1750echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1751   { (exit 1); exit 1; }; }
1752
1753echo "$as_me:$LINENO: checking build system type" >&5
1754echo $ECHO_N "checking build system type... $ECHO_C" >&6
1755if test "${ac_cv_build+set}" = set; then
1756  echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758  ac_cv_build_alias=$build_alias
1759test -z "$ac_cv_build_alias" &&
1760  ac_cv_build_alias=`$ac_config_guess`
1761test -z "$ac_cv_build_alias" &&
1762  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1763echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1764   { (exit 1); exit 1; }; }
1765ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1766  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1767echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770fi
1771echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1772echo "${ECHO_T}$ac_cv_build" >&6
1773build=$ac_cv_build
1774build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1775build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1776build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1777
1778
1779
1780# If this project depends on external projects, the Externals file in
1781# the source root directory contains definition of where to find those
1782# externals.  The following macro ensures that those externals are
1783# retrieved by svn if they are not there yet.
1784
1785# As backup, we make sure we don't loose an FLIBS if it has been set
1786# by the user
1787save_FLIBS="$FLIBS"
1788
1789# A useful makefile conditional that is always false
1790
1791
1792if false; then
1793  ALWAYS_FALSE_TRUE=
1794  ALWAYS_FALSE_FALSE='#'
1795else
1796  ALWAYS_FALSE_TRUE='#'
1797  ALWAYS_FALSE_FALSE=
1798fi
1799
1800
1801# We set the following variable so that we know later in AC_COIN_FINALIZE
1802# that we are in a project main directory
1803coin_projectdir=yes
1804
1805# Set the project's version numbers
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define SYMPHONY_VERSION "$PACKAGE_VERSION"
1810_ACEOF
1811
1812
1813  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1814  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1815  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1816  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1817  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1818  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1819
1820cat >>confdefs.h <<_ACEOF
1821#define SYMPHONY_VERSION_MAJOR $coin_majorver
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define SYMPHONY_VERSION_MINOR $coin_minorver
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define SYMPHONY_VERSION_RELEASE $coin_releasever
1832_ACEOF
1833
1834
1835  # We use the following variable to have a string with the upper case
1836  # version of the project name
1837  COIN_PRJCT=SYMPHONY
1838
1839  # Set the project's SVN revision number. The complicated sed expression
1840  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1841  # as a single number.
1842  # Extract the first word of "svnversion", so it can be a program name with args.
1843set dummy svnversion; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_have_svnversion+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  if test -n "$have_svnversion"; then
1850  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855  IFS=$as_save_IFS
1856  test -z "$as_dir" && as_dir=.
1857  for ac_exec_ext in '' $ac_executable_extensions; do
1858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859    ac_cv_prog_have_svnversion="yes"
1860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861    break 2
1862  fi
1863done
1864done
1865
1866  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1867fi
1868fi
1869have_svnversion=$ac_cv_prog_have_svnversion
1870if test -n "$have_svnversion"; then
1871  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1872echo "${ECHO_T}$have_svnversion" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878  if test "x$have_svnversion" = xyes; then
1879
1880    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1881    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1882      SYMPHONY_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1883
1884cat >>confdefs.h <<_ACEOF
1885#define SYMPHONY_SVN_REV $SYMPHONY_SVN_REV
1886_ACEOF
1887
1888    fi
1889  fi
1890
1891
1892
1893# Capture libtool library version, if given.
1894 coin_libversion=9:17:6
1895
1896
1897
1898
1899# Check if user wants to produce debugging code
1900
1901echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1902echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1903
1904# Check whether --enable-debug or --disable-debug was given.
1905if test "${enable_debug+set}" = set; then
1906  enableval="$enable_debug"
1907  case "${enableval}" in
1908   yes) coin_debug_compile=true
1909        if test "${enable_shared+set}" = set; then :; else
1910          enable_shared=no
1911        fi
1912        ;;
1913   no)  coin_debug_compile=false
1914        ;;
1915   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1916echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1917   { (exit 1); exit 1; }; }
1918        ;;
1919esac
1920else
1921  coin_debug_compile=false
1922fi;
1923
1924# Check whether --enable-debug-symphony or --disable-debug-symphony was given.
1925if test "${enable_debug_symphony+set}" = set; then
1926  enableval="$enable_debug_symphony"
1927  case "${enableval}" in
1928    yes) coin_debug_compile=true
1929         ;;
1930    no)  coin_debug_compile=false
1931         ;;
1932    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-symphony" >&5
1933echo "$as_me: error: bad value ${enableval} for --enable-debug-symphony" >&2;}
1934   { (exit 1); exit 1; }; }
1935         ;;
1936 esac
1937else
1938  :
1939fi;
1940
1941 # m4_ifvaln([SYMPHONY],
1942
1943if test $coin_debug_compile = true; then
1944  echo "$as_me:$LINENO: result: yes" >&5
1945echo "${ECHO_T}yes" >&6
1946else
1947  echo "$as_me:$LINENO: result: no" >&5
1948echo "${ECHO_T}no" >&6
1949fi
1950
1951
1952# Check whether --with-symphony-verbosity or --without-symphony-verbosity was given.
1953if test "${with_symphony_verbosity+set}" = set; then
1954  withval="$with_symphony_verbosity"
1955  if test "$withval" = yes; then
1956                withval=1
1957              fi
1958              coin_symphony_verbosity=$withval
1959else
1960  coin_symphony_verbosity=0
1961fi;
1962
1963cat >>confdefs.h <<_ACEOF
1964#define COIN_SYMPHONY_VERBOSITY $coin_symphony_verbosity
1965_ACEOF
1966
1967
1968
1969# Check whether --with-symphony-checklevel or --without-symphony-checklevel was given.
1970if test "${with_symphony_checklevel+set}" = set; then
1971  withval="$with_symphony_checklevel"
1972  if test "$withval" = yes; then
1973                withval=1
1974              fi
1975              coin_symphony_checklevel=$withval
1976else
1977  coin_symphony_checklevel=0
1978fi;
1979
1980cat >>confdefs.h <<_ACEOF
1981#define COIN_SYMPHONY_CHECKLEVEL $coin_symphony_checklevel
1982_ACEOF
1983
1984
1985 # m4_ifvaln([SYMPHONY],
1986
1987
1988
1989# Get the name of the C++ compiler and appropriate compiler options
1990
1991
1992  # for backward compatibility
1993  # Check whether --enable-doscompile or --disable-doscompile was given.
1994if test "${enable_doscompile+set}" = set; then
1995  enableval="$enable_doscompile"
1996  enable_doscompile=$enableval
1997else
1998  enable_doscompile=no
1999fi;
2000
2001  # Check whether --enable-msvc or --disable-msvc was given.
2002if test "${enable_msvc+set}" = set; then
2003  enableval="$enable_msvc"
2004  enable_msvc=$enableval
2005else
2006  enable_msvc=no
2007     if test "$enable_doscompile" = msvc ; then
2008       enable_msvc=yes
2009     elif test "$enable_doscompile" != no ; then
2010       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
2011echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
2012   { (exit 1); exit 1; }; }
2013     fi
2014
2015fi;
2016
2017  if test "$enable_msvc" = MD; then
2018    enable_shared=yes
2019    enable_msvc=yes
2020  fi
2021
2022  if test "$enable_msvc" = yes; then
2023    case $build in
2024      *-cygwin* | *-mingw*) ;;
2025      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
2026echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
2027   { (exit 1); exit 1; }; } ;;
2028    esac
2029  fi
2030
2031
2032
2033ac_ext=c
2034ac_cpp='$CPP $CPPFLAGS'
2035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040# For consistency, we set the C compiler to the same value of the C++
2041# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2042if test x"$CXX" != x; then
2043  case "$CXX" in
2044    clang* ) ;;
2045    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2046      if test x"$CC" = x; then
2047        CC="$CXX"
2048        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2049echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2050      fi
2051      ;;
2052  esac
2053fi
2054
2055
2056
2057
2058
2059
2060coin_has_cc=yes
2061
2062save_cflags="$CFLAGS"
2063
2064# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2065# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2066# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2067# compiler. In this case, put cc after gcc.
2068
2069case $build in
2070  *-cygwin* | *-mingw*)
2071  	     if test "$enable_msvc" = yes ; then
2072	       comps="icl cl gcc"
2073	     else
2074	       comps="gcc icl cl"
2075	     fi ;;
2076  *-*-solaris*)
2077	     # Extract the first word of "cc", so it can be a program name with args.
2078set dummy cc; ac_word=$2
2079echo "$as_me:$LINENO: checking for $ac_word" >&5
2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2082  echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084  if test -n "$sol_cc_compiler"; then
2085  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2086else
2087  ac_prog_rejected=no
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091  IFS=$as_save_IFS
2092  test -z "$as_dir" && as_dir=.
2093  for ac_exec_ext in '' $ac_executable_extensions; do
2094  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2096       ac_prog_rejected=yes
2097       continue
2098     fi
2099    ac_cv_prog_sol_cc_compiler="cc"
2100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101    break 2
2102  fi
2103done
2104done
2105
2106if test $ac_prog_rejected = yes; then
2107  # We found a bogon in the path, so make sure we never use it.
2108  set dummy $ac_cv_prog_sol_cc_compiler
2109  shift
2110  if test $# != 0; then
2111    # We chose a different compiler from the bogus one.
2112    # However, it has the same basename, so the bogon will be chosen
2113    # first if we set sol_cc_compiler to just the basename; use the full file name.
2114    shift
2115    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2116  fi
2117fi
2118fi
2119fi
2120sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2121if test -n "$sol_cc_compiler"; then
2122  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2123echo "${ECHO_T}$sol_cc_compiler" >&6
2124else
2125  echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6
2127fi
2128
2129	     if test "$sol_cc_compiler" = "cc" ; then
2130	       comps="cc xlc gcc pgcc icc"
2131	     else
2132	       comps="xlc gcc pgcc icc cc"
2133	     fi
2134	     ;;
2135  *-*-darwin*) comps="clang gcc cc" ;;
2136  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2137  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2138  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2139esac
2140
2141# We delete the cached value, since the test might not have been
2142# performed with our choice of compilers earlier
2143$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2144# AC_MSG_NOTICE([C compiler candidates: $comps])
2145ac_ext=c
2146ac_cpp='$CPP $CPPFLAGS'
2147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150if test -n "$ac_tool_prefix"; then
2151  for ac_prog in $comps
2152  do
2153    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2154set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2155echo "$as_me:$LINENO: checking for $ac_word" >&5
2156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157if test "${ac_cv_prog_CC+set}" = set; then
2158  echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160  if test -n "$CC"; then
2161  ac_cv_prog_CC="$CC" # Let the user override the test.
2162else
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166  IFS=$as_save_IFS
2167  test -z "$as_dir" && as_dir=.
2168  for ac_exec_ext in '' $ac_executable_extensions; do
2169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172    break 2
2173  fi
2174done
2175done
2176
2177fi
2178fi
2179CC=$ac_cv_prog_CC
2180if test -n "$CC"; then
2181  echo "$as_me:$LINENO: result: $CC" >&5
2182echo "${ECHO_T}$CC" >&6
2183else
2184  echo "$as_me:$LINENO: result: no" >&5
2185echo "${ECHO_T}no" >&6
2186fi
2187
2188    test -n "$CC" && break
2189  done
2190fi
2191if test -z "$CC"; then
2192  ac_ct_CC=$CC
2193  for ac_prog in $comps
2194do
2195  # Extract the first word of "$ac_prog", so it can be a program name with args.
2196set dummy $ac_prog; ac_word=$2
2197echo "$as_me:$LINENO: checking for $ac_word" >&5
2198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200  echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202  if test -n "$ac_ct_CC"; then
2203  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204else
2205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206for as_dir in $PATH
2207do
2208  IFS=$as_save_IFS
2209  test -z "$as_dir" && as_dir=.
2210  for ac_exec_ext in '' $ac_executable_extensions; do
2211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212    ac_cv_prog_ac_ct_CC="$ac_prog"
2213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214    break 2
2215  fi
2216done
2217done
2218
2219fi
2220fi
2221ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222if test -n "$ac_ct_CC"; then
2223  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224echo "${ECHO_T}$ac_ct_CC" >&6
2225else
2226  echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6
2228fi
2229
2230  test -n "$ac_ct_CC" && break
2231done
2232
2233  CC=$ac_ct_CC
2234fi
2235
2236
2237test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: no acceptable C compiler found in \$PATH
2240See \`config.log' for more details." >&2;}
2241   { (exit 1); exit 1; }; }
2242
2243# Provide some information about the compiler.
2244echo "$as_me:$LINENO:" \
2245     "checking for C compiler version" >&5
2246ac_compiler=`set X $ac_compile; echo $2`
2247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2248  (eval $ac_compiler --version </dev/null >&5) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }
2252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2253  (eval $ac_compiler -v </dev/null >&5) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }
2257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2258  (eval $ac_compiler -V </dev/null >&5) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }
2262
2263cat >conftest.$ac_ext <<_ACEOF
2264/* confdefs.h.  */
2265_ACEOF
2266cat confdefs.h >>conftest.$ac_ext
2267cat >>conftest.$ac_ext <<_ACEOF
2268/* end confdefs.h.  */
2269
2270int
2271main ()
2272{
2273
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278ac_clean_files_save=$ac_clean_files
2279ac_clean_files="$ac_clean_files a.out a.exe b.out"
2280# Try to create an executable without -o first, disregard a.out.
2281# It will help us diagnose broken compilers, and finding out an intuition
2282# of exeext.
2283echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2284echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2285ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2286if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2287  (eval $ac_link_default) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); }; then
2291  # Find the output, starting from the most likely.  This scheme is
2292# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2293# resort.
2294
2295# Be careful to initialize this variable, since it used to be cached.
2296# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2297ac_cv_exeext=
2298# b.out is created by i960 compilers.
2299for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2300do
2301  test -f "$ac_file" || continue
2302  case $ac_file in
2303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2304	;;
2305    conftest.$ac_ext )
2306	# This is the source file.
2307	;;
2308    [ab].out )
2309	# We found the default executable, but exeext='' is most
2310	# certainly right.
2311	break;;
2312    *.* )
2313	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314	# FIXME: I believe we export ac_cv_exeext for Libtool,
2315	# but it would be cool to find out if it's true.  Does anybody
2316	# maintain Libtool? --akim.
2317	export ac_cv_exeext
2318	break;;
2319    * )
2320	break;;
2321  esac
2322done
2323else
2324  echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: C compiler cannot create executables
2330See \`config.log' for more details." >&2;}
2331   { (exit 77); exit 77; }; }
2332fi
2333
2334ac_exeext=$ac_cv_exeext
2335echo "$as_me:$LINENO: result: $ac_file" >&5
2336echo "${ECHO_T}$ac_file" >&6
2337
2338# Check the compiler produces executables we can run.  If not, either
2339# the compiler is broken, or we cross compile.
2340echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2341echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2342# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2343# If not cross compiling, check that we can run a simple program.
2344if test "$cross_compiling" != yes; then
2345  if { ac_try='./$ac_file'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; }; then
2351    cross_compiling=no
2352  else
2353    if test "$cross_compiling" = maybe; then
2354	cross_compiling=yes
2355    else
2356	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2357If you meant to cross compile, use \`--host'.
2358See \`config.log' for more details." >&5
2359echo "$as_me: error: cannot run C compiled programs.
2360If you meant to cross compile, use \`--host'.
2361See \`config.log' for more details." >&2;}
2362   { (exit 1); exit 1; }; }
2363    fi
2364  fi
2365fi
2366echo "$as_me:$LINENO: result: yes" >&5
2367echo "${ECHO_T}yes" >&6
2368
2369rm -f a.out a.exe conftest$ac_cv_exeext b.out
2370ac_clean_files=$ac_clean_files_save
2371# Check the compiler produces executables we can run.  If not, either
2372# the compiler is broken, or we cross compile.
2373echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2374echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2375echo "$as_me:$LINENO: result: $cross_compiling" >&5
2376echo "${ECHO_T}$cross_compiling" >&6
2377
2378echo "$as_me:$LINENO: checking for suffix of executables" >&5
2379echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381  (eval $ac_link) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; then
2385  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2386# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2387# work properly (i.e., refer to `conftest.exe'), while it won't with
2388# `rm'.
2389for ac_file in conftest.exe conftest conftest.*; do
2390  test -f "$ac_file" || continue
2391  case $ac_file in
2392    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2393    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394	  export ac_cv_exeext
2395	  break;;
2396    * ) break;;
2397  esac
2398done
2399else
2400  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2401See \`config.log' for more details." >&5
2402echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2403See \`config.log' for more details." >&2;}
2404   { (exit 1); exit 1; }; }
2405fi
2406
2407rm -f conftest$ac_cv_exeext
2408echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2409echo "${ECHO_T}$ac_cv_exeext" >&6
2410
2411rm -f conftest.$ac_ext
2412EXEEXT=$ac_cv_exeext
2413ac_exeext=$EXEEXT
2414echo "$as_me:$LINENO: checking for suffix of object files" >&5
2415echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2416if test "${ac_cv_objext+set}" = set; then
2417  echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419  cat >conftest.$ac_ext <<_ACEOF
2420/* confdefs.h.  */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h.  */
2425
2426int
2427main ()
2428{
2429
2430  ;
2431  return 0;
2432}
2433_ACEOF
2434rm -f conftest.o conftest.obj
2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436  (eval $ac_compile) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; then
2440  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2441  case $ac_file in
2442    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2443    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2444       break;;
2445  esac
2446done
2447else
2448  echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2452See \`config.log' for more details." >&5
2453echo "$as_me: error: cannot compute suffix of object files: cannot compile
2454See \`config.log' for more details." >&2;}
2455   { (exit 1); exit 1; }; }
2456fi
2457
2458rm -f conftest.$ac_cv_objext conftest.$ac_ext
2459fi
2460echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2461echo "${ECHO_T}$ac_cv_objext" >&6
2462OBJEXT=$ac_cv_objext
2463ac_objext=$OBJEXT
2464echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2465echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2466if test "${ac_cv_c_compiler_gnu+set}" = set; then
2467  echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469  cat >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
2476int
2477main ()
2478{
2479#ifndef __GNUC__
2480       choke me
2481#endif
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489  (eval $ac_compile) 2>conftest.er1
2490  ac_status=$?
2491  grep -v '^ *+' conftest.er1 >conftest.err
2492  rm -f conftest.er1
2493  cat conftest.err >&5
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); } &&
2496	 { ac_try='test -z "$ac_c_werror_flag"
2497			 || test ! -s conftest.err'
2498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499  (eval $ac_try) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; } &&
2503	 { ac_try='test -s conftest.$ac_objext'
2504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505  (eval $ac_try) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; }; then
2509  ac_compiler_gnu=yes
2510else
2511  echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514ac_compiler_gnu=no
2515fi
2516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517ac_cv_c_compiler_gnu=$ac_compiler_gnu
2518
2519fi
2520echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2521echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2522GCC=`test $ac_compiler_gnu = yes && echo yes`
2523ac_test_CFLAGS=${CFLAGS+set}
2524ac_save_CFLAGS=$CFLAGS
2525CFLAGS="-g"
2526echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2528if test "${ac_cv_prog_cc_g+set}" = set; then
2529  echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531  cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h.  */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h.  */
2537
2538int
2539main ()
2540{
2541
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548  (eval $ac_compile) 2>conftest.er1
2549  ac_status=$?
2550  grep -v '^ *+' conftest.er1 >conftest.err
2551  rm -f conftest.er1
2552  cat conftest.err >&5
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); } &&
2555	 { ac_try='test -z "$ac_c_werror_flag"
2556			 || test ! -s conftest.err'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; } &&
2562	 { ac_try='test -s conftest.$ac_objext'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; }; then
2568  ac_cv_prog_cc_g=yes
2569else
2570  echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573ac_cv_prog_cc_g=no
2574fi
2575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2578echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2579if test "$ac_test_CFLAGS" = set; then
2580  CFLAGS=$ac_save_CFLAGS
2581elif test $ac_cv_prog_cc_g = yes; then
2582  if test "$GCC" = yes; then
2583    CFLAGS="-g -O2"
2584  else
2585    CFLAGS="-g"
2586  fi
2587else
2588  if test "$GCC" = yes; then
2589    CFLAGS="-O2"
2590  else
2591    CFLAGS=
2592  fi
2593fi
2594echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2595echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2596if test "${ac_cv_prog_cc_stdc+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  ac_cv_prog_cc_stdc=no
2600ac_save_CC=$CC
2601cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h.  */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h.  */
2607#include <stdarg.h>
2608#include <stdio.h>
2609#include <sys/types.h>
2610#include <sys/stat.h>
2611/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2612struct buf { int x; };
2613FILE * (*rcsopen) (struct buf *, struct stat *, int);
2614static char *e (p, i)
2615     char **p;
2616     int i;
2617{
2618  return p[i];
2619}
2620static char *f (char * (*g) (char **, int), char **p, ...)
2621{
2622  char *s;
2623  va_list v;
2624  va_start (v,p);
2625  s = g (p, va_arg (v,int));
2626  va_end (v);
2627  return s;
2628}
2629
2630/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2631   function prototypes and stuff, but not '\xHH' hex character constants.
2632   These don't provoke an error unfortunately, instead are silently treated
2633   as 'x'.  The following induces an error, until -std1 is added to get
2634   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2635   array size at least.  It's necessary to write '\x00'==0 to get something
2636   that's true only with -std1.  */
2637int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2638
2639int test (int i, double x);
2640struct s1 {int (*f) (int a);};
2641struct s2 {int (*f) (double a);};
2642int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2643int argc;
2644char **argv;
2645int
2646main ()
2647{
2648return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2649  ;
2650  return 0;
2651}
2652_ACEOF
2653# Don't try gcc -ansi; that turns off useful extensions and
2654# breaks some systems' header files.
2655# AIX			-qlanglvl=ansi
2656# Ultrix and OSF/1	-std1
2657# HP-UX 10.20 and later	-Ae
2658# HP-UX older versions	-Aa -D_HPUX_SOURCE
2659# SVR4			-Xc -D__EXTENSIONS__
2660for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661do
2662  CC="$ac_save_CC $ac_arg"
2663  rm -f conftest.$ac_objext
2664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665  (eval $ac_compile) 2>conftest.er1
2666  ac_status=$?
2667  grep -v '^ *+' conftest.er1 >conftest.err
2668  rm -f conftest.er1
2669  cat conftest.err >&5
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); } &&
2672	 { ac_try='test -z "$ac_c_werror_flag"
2673			 || test ! -s conftest.err'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; } &&
2679	 { ac_try='test -s conftest.$ac_objext'
2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681  (eval $ac_try) 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; }; then
2685  ac_cv_prog_cc_stdc=$ac_arg
2686break
2687else
2688  echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691fi
2692rm -f conftest.err conftest.$ac_objext
2693done
2694rm -f conftest.$ac_ext conftest.$ac_objext
2695CC=$ac_save_CC
2696
2697fi
2698
2699case "x$ac_cv_prog_cc_stdc" in
2700  x|xno)
2701    echo "$as_me:$LINENO: result: none needed" >&5
2702echo "${ECHO_T}none needed" >&6 ;;
2703  *)
2704    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2705echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2706    CC="$CC $ac_cv_prog_cc_stdc" ;;
2707esac
2708
2709# Some people use a C++ compiler to compile C.  Since we use `exit',
2710# in C++ we need to declare it.  In case someone uses the same compiler
2711# for both compiling C and C++ we need to have the C++ compiler decide
2712# the declaration of exit, since it's the most demanding environment.
2713cat >conftest.$ac_ext <<_ACEOF
2714#ifndef __cplusplus
2715  choke me
2716#endif
2717_ACEOF
2718rm -f conftest.$ac_objext
2719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720  (eval $ac_compile) 2>conftest.er1
2721  ac_status=$?
2722  grep -v '^ *+' conftest.er1 >conftest.err
2723  rm -f conftest.er1
2724  cat conftest.err >&5
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); } &&
2727	 { ac_try='test -z "$ac_c_werror_flag"
2728			 || test ! -s conftest.err'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; } &&
2734	 { ac_try='test -s conftest.$ac_objext'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; }; then
2740  for ac_declaration in \
2741   '' \
2742   'extern "C" void std::exit (int) throw (); using std::exit;' \
2743   'extern "C" void std::exit (int); using std::exit;' \
2744   'extern "C" void exit (int) throw ();' \
2745   'extern "C" void exit (int);' \
2746   'void exit (int);'
2747do
2748  cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754$ac_declaration
2755#include <stdlib.h>
2756int
2757main ()
2758{
2759exit (42);
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766  (eval $ac_compile) 2>conftest.er1
2767  ac_status=$?
2768  grep -v '^ *+' conftest.er1 >conftest.err
2769  rm -f conftest.er1
2770  cat conftest.err >&5
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); } &&
2773	 { ac_try='test -z "$ac_c_werror_flag"
2774			 || test ! -s conftest.err'
2775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776  (eval $ac_try) 2>&5
2777  ac_status=$?
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); }; } &&
2780	 { ac_try='test -s conftest.$ac_objext'
2781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782  (eval $ac_try) 2>&5
2783  ac_status=$?
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); }; }; then
2786  :
2787else
2788  echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
2790
2791continue
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794  cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h.  */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h.  */
2800$ac_declaration
2801int
2802main ()
2803{
2804exit (42);
2805  ;
2806  return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811  (eval $ac_compile) 2>conftest.er1
2812  ac_status=$?
2813  grep -v '^ *+' conftest.er1 >conftest.err
2814  rm -f conftest.er1
2815  cat conftest.err >&5
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); } &&
2818	 { ac_try='test -z "$ac_c_werror_flag"
2819			 || test ! -s conftest.err'
2820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821  (eval $ac_try) 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; } &&
2825	 { ac_try='test -s conftest.$ac_objext'
2826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827  (eval $ac_try) 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }; }; then
2831  break
2832else
2833  echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836fi
2837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838done
2839rm -f conftest*
2840if test -n "$ac_declaration"; then
2841  echo '#ifdef __cplusplus' >>confdefs.h
2842  echo $ac_declaration      >>confdefs.h
2843  echo '#endif'             >>confdefs.h
2844fi
2845
2846else
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850fi
2851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857
2858if test -z "$CC" ; then
2859  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2860echo "$as_me: error: Failed to find a C compiler!" >&2;}
2861   { (exit 1); exit 1; }; }
2862fi
2863# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2864case "$CC" in
2865  clang* ) ;;
2866  cl* | */cl* | CL* | */CL* )
2867    if test "$ac_cv_prog_cc_g" = yes ; then
2868      ac_cv_prog_cc_g=no
2869      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2870echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2871    fi ;;
2872  * )
2873    if test x"$CYGPATH_W" = x ; then
2874      CYGPATH_W=echo
2875    fi
2876    ;;
2877esac
2878CFLAGS="$save_cflags"
2879
2880# add automake conditional so we can recognize cl compiler in makefile
2881coin_cc_is_cl=false
2882case "$CC" in
2883  clang* ) ;;
2884  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2885    coin_cc_is_cl=true
2886    ;;
2887esac
2888
2889
2890if test $coin_cc_is_cl = true; then
2891  COIN_CC_IS_CL_TRUE=
2892  COIN_CC_IS_CL_FALSE='#'
2893else
2894  COIN_CC_IS_CL_TRUE='#'
2895  COIN_CC_IS_CL_FALSE=
2896fi
2897
2898
2899# Check if a project specific CFLAGS variable has been set
2900if test x$COIN_PRJCT != x; then
2901  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2902  if test x$coin_tmp = xset; then
2903    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2904  fi
2905fi
2906
2907if test x"$CFLAGS" = x; then
2908
2909  coin_add_cflags=
2910  coin_opt_cflags=
2911  coin_dbg_cflags=
2912  coin_warn_cflags=
2913
2914  if test "$GCC" = "yes"; then
2915    case "$CC" in
2916      icc* | */icc*)
2917        ;;
2918      *)
2919        coin_opt_cflags="-O3"
2920        coin_add_cflags="-pipe"
2921        coin_dbg_cflags="-g -O0"
2922        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2923    esac
2924  fi
2925  if test -z "$coin_opt_cflags"; then
2926    case $build in
2927      *-cygwin* | *-mingw*)
2928        case "$CC" in
2929          clang* ) ;;
2930          cl* | */cl* | CL* | */CL*)
2931            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2932              coin_opt_cflags='-MD -O2'
2933              coin_dbg_cflags='-MDd'
2934            else
2935              coin_opt_cflags='-MT -O2'
2936              coin_dbg_cflags='-MTd'
2937            fi
2938            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2939            ;;
2940          icl* | */icl* | ICL* | */ICL*)
2941            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2942              coin_opt_cflags='-MD -Ox'
2943              coin_dbg_cflags='-MDd -debug'
2944            else
2945              coin_opt_cflags='-MT -Ox'
2946              coin_dbg_cflags='-MTd -debug'
2947            fi
2948            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2949            ;;
2950        esac
2951        ;;
2952      *-linux-*)
2953        case "$CC" in
2954          icc* | */icc*)
2955            coin_opt_cflags="-O3 -ip -mp1"
2956            coin_add_cflags=""
2957            coin_dbg_cflags="-g"
2958            # Check if -i_dynamic is necessary (for new glibc library)
2959            CFLAGS=
2960            cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h.  */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h.  */
2966
2967int
2968main ()
2969{
2970int i=0; i++;
2971  ;
2972  return 0;
2973}
2974_ACEOF
2975rm -f conftest.$ac_objext conftest$ac_exeext
2976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2977  (eval $ac_link) 2>conftest.er1
2978  ac_status=$?
2979  grep -v '^ *+' conftest.er1 >conftest.err
2980  rm -f conftest.er1
2981  cat conftest.err >&5
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } &&
2984	 { ac_try='test -z "$ac_c_werror_flag"
2985			 || test ! -s conftest.err'
2986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987  (eval $ac_try) 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; } &&
2991	 { ac_try='test -s conftest$ac_exeext'
2992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993  (eval $ac_try) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }; }; then
2997  :
2998else
2999  echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002coin_add_cflags="-i_dynamic $coin_add_cflags"
3003fi
3004rm -f conftest.err conftest.$ac_objext \
3005      conftest$ac_exeext conftest.$ac_ext
3006            ;;
3007          pgcc* | */pgcc*)
3008            coin_opt_cflags="-fast"
3009            coin_add_cflags="-Kieee -pc 64"
3010            coin_dbg_cflags="-g"
3011            ;;
3012        esac
3013        ;;
3014      *-ibm-*)
3015        case "$CC" in
3016          xlc* | */xlc* | mpxlc* | */mpxlc*)
3017            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3018            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3019            coin_dbg_cflags="-g"
3020          ;;
3021        esac
3022        ;;
3023      *-hp-*)
3024        coin_opt_cflags="-O"
3025        coin_add_cflags="-Ae"
3026        coin_dbg_cflags="-g"
3027        ;;
3028      *-*-solaris*)
3029        coin_opt_cflags="-xO4"
3030        coin_dbg_cflags="-g"
3031        ;;
3032      *-sgi-*)
3033        coin_opt_cflags="-O -OPT:Olimit=0"
3034        coin_dbg_cflags="-g"
3035        ;;
3036    esac
3037  fi
3038
3039  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3040    coin_dbg_cflags="-g"
3041  fi
3042
3043  if test -z "$coin_opt_cflags"; then
3044    # Try if -O option works if nothing else is set
3045    CFLAGS="-O"
3046    cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h.  */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h.  */
3052
3053int
3054main ()
3055{
3056int i=0; i++;
3057  ;
3058  return 0;
3059}
3060_ACEOF
3061rm -f conftest.$ac_objext conftest$ac_exeext
3062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063  (eval $ac_link) 2>conftest.er1
3064  ac_status=$?
3065  grep -v '^ *+' conftest.er1 >conftest.err
3066  rm -f conftest.er1
3067  cat conftest.err >&5
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); } &&
3070	 { ac_try='test -z "$ac_c_werror_flag"
3071			 || test ! -s conftest.err'
3072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073  (eval $ac_try) 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }; } &&
3077	 { ac_try='test -s conftest$ac_exeext'
3078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079  (eval $ac_try) 2>&5
3080  ac_status=$?
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); }; }; then
3083  coin_opt_cflags="-O"
3084else
3085  echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088fi
3089rm -f conftest.err conftest.$ac_objext \
3090      conftest$ac_exeext conftest.$ac_ext
3091  fi
3092
3093  # if PM doesn't want the warning messages, take them out
3094  if test x"$coin_skip_warn_cflags" = xyes; then
3095    coin_warn_cflags=
3096  fi
3097
3098  if test x${DBG_CFLAGS+set} != xset; then
3099    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3100  fi
3101  if test x${OPT_CFLAGS+set} != xset; then
3102    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3103  fi
3104
3105  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3106  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3107
3108  if test "$coin_debug_compile" = "true"; then
3109    CFLAGS="$DBG_CFLAGS"
3110  else
3111    CFLAGS="$OPT_CFLAGS"
3112  fi
3113else
3114  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3115  if test x${DBG_CFLAGS+set} != xset; then
3116    DBG_CFLAGS="$CFLAGS"
3117  fi
3118  if test x${OPT_CFLAGS+set} != xset; then
3119    OPT_CFLAGS="$CFLAGS"
3120  fi
3121fi
3122
3123# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3124if test x$COIN_PRJCT != x; then
3125  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3126fi
3127
3128# Try if CFLAGS works
3129save_CFLAGS="$CFLAGS"
3130cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140int i=0; i++;
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext conftest$ac_exeext
3146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147  (eval $ac_link) 2>conftest.er1
3148  ac_status=$?
3149  grep -v '^ *+' conftest.er1 >conftest.err
3150  rm -f conftest.er1
3151  cat conftest.err >&5
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); } &&
3154	 { ac_try='test -z "$ac_c_werror_flag"
3155			 || test ! -s conftest.err'
3156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157  (eval $ac_try) 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; } &&
3161	 { ac_try='test -s conftest$ac_exeext'
3162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163  (eval $ac_try) 2>&5
3164  ac_status=$?
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); }; }; then
3167  :
3168else
3169  echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172CFLAGS=
3173fi
3174rm -f conftest.err conftest.$ac_objext \
3175      conftest$ac_exeext conftest.$ac_ext
3176if test -z "$CFLAGS"; then
3177  { 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
3178echo "$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;}
3179  CFLAGS='-O'
3180  cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h.  */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h.  */
3186
3187int
3188main ()
3189{
3190int i=0; i++;
3191  ;
3192  return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext conftest$ac_exeext
3196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3197  (eval $ac_link) 2>conftest.er1
3198  ac_status=$?
3199  grep -v '^ *+' conftest.er1 >conftest.err
3200  rm -f conftest.er1
3201  cat conftest.err >&5
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); } &&
3204	 { ac_try='test -z "$ac_c_werror_flag"
3205			 || test ! -s conftest.err'
3206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207  (eval $ac_try) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }; } &&
3211	 { ac_try='test -s conftest$ac_exeext'
3212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213  (eval $ac_try) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }; }; then
3217  :
3218else
3219  echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222CFLAGS=
3223fi
3224rm -f conftest.err conftest.$ac_objext \
3225      conftest$ac_exeext conftest.$ac_ext
3226  if test -z "$CFLAGS"; then
3227    { 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
3228echo "$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;}
3229  fi
3230fi
3231
3232{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3233echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3234
3235
3236if test x"$MPICC" = x; then :; else
3237  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3238echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3239  CC="$MPICC"
3240fi
3241
3242# Correct the LD variable if we are using the MS or Intel-windows compiler
3243case "$CC" in
3244  clang* ) ;;
3245  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3246    LD=link
3247    ;;
3248esac
3249
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255
3256
3257
3258 #Let's try if that overcomes configuration problem with VC++ 6.0
3259
3260ac_ext=cc
3261ac_cpp='$CXXCPP $CPPFLAGS'
3262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3265
3266
3267
3268
3269
3270
3271
3272coin_has_cxx=yes
3273
3274save_cxxflags="$CXXFLAGS"
3275# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3276case $build in
3277  *-cygwin* | *-mingw*)
3278      if test "$enable_msvc" = yes ; then
3279         comps="icl cl g++"
3280      else
3281         comps="g++ icl cl"
3282      fi ;;
3283  *-*-solaris*)
3284  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3285  *-darwin*) comps="clang++ g++ c++ CC" ;;
3286  *-linux-gnu*)
3287             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3288          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3289esac
3290
3291# We delete the cached value, since the test might not have been
3292# performed with our choice of compilers earlier
3293$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3294# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300if test -n "$ac_tool_prefix"; then
3301  for ac_prog in $CCC $comps
3302  do
3303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_prog_CXX+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  if test -n "$CXX"; then
3311  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318  for ac_exec_ext in '' $ac_executable_extensions; do
3319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325done
3326
3327fi
3328fi
3329CXX=$ac_cv_prog_CXX
3330if test -n "$CXX"; then
3331  echo "$as_me:$LINENO: result: $CXX" >&5
3332echo "${ECHO_T}$CXX" >&6
3333else
3334  echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336fi
3337
3338    test -n "$CXX" && break
3339  done
3340fi
3341if test -z "$CXX"; then
3342  ac_ct_CXX=$CXX
3343  for ac_prog in $CCC $comps
3344do
3345  # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347echo "$as_me:$LINENO: checking for $ac_word" >&5
3348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  if test -n "$ac_ct_CXX"; then
3353  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360  for ac_exec_ext in '' $ac_executable_extensions; do
3361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_ac_ct_CXX="$ac_prog"
3363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367done
3368
3369fi
3370fi
3371ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3372if test -n "$ac_ct_CXX"; then
3373  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3374echo "${ECHO_T}$ac_ct_CXX" >&6
3375else
3376  echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi
3379
3380  test -n "$ac_ct_CXX" && break
3381done
3382test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3383
3384  CXX=$ac_ct_CXX
3385fi
3386
3387
3388# Provide some information about the compiler.
3389echo "$as_me:$LINENO:" \
3390     "checking for C++ compiler version" >&5
3391ac_compiler=`set X $ac_compile; echo $2`
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3393  (eval $ac_compiler --version </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3398  (eval $ac_compiler -v </dev/null >&5) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3403  (eval $ac_compiler -V </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407
3408echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3411  echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413  cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423#ifndef __GNUC__
3424       choke me
3425#endif
3426
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431rm -f conftest.$ac_objext
3432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433  (eval $ac_compile) 2>conftest.er1
3434  ac_status=$?
3435  grep -v '^ *+' conftest.er1 >conftest.err
3436  rm -f conftest.er1
3437  cat conftest.err >&5
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); } &&
3440	 { ac_try='test -z "$ac_cxx_werror_flag"
3441			 || test ! -s conftest.err'
3442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443  (eval $ac_try) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }; } &&
3447	 { ac_try='test -s conftest.$ac_objext'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; }; then
3453  ac_compiler_gnu=yes
3454else
3455  echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458ac_compiler_gnu=no
3459fi
3460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3462
3463fi
3464echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3465echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3466GXX=`test $ac_compiler_gnu = yes && echo yes`
3467ac_test_CXXFLAGS=${CXXFLAGS+set}
3468ac_save_CXXFLAGS=$CXXFLAGS
3469CXXFLAGS="-g"
3470echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3471echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3472if test "${ac_cv_prog_cxx_g+set}" = set; then
3473  echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475  cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481
3482int
3483main ()
3484{
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499	 { ac_try='test -z "$ac_cxx_werror_flag"
3500			 || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506	 { ac_try='test -s conftest.$ac_objext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  ac_cv_prog_cxx_g=yes
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_cv_prog_cxx_g=no
3518fi
3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520fi
3521echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3522echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3523if test "$ac_test_CXXFLAGS" = set; then
3524  CXXFLAGS=$ac_save_CXXFLAGS
3525elif test $ac_cv_prog_cxx_g = yes; then
3526  if test "$GXX" = yes; then
3527    CXXFLAGS="-g -O2"
3528  else
3529    CXXFLAGS="-g"
3530  fi
3531else
3532  if test "$GXX" = yes; then
3533    CXXFLAGS="-O2"
3534  else
3535    CXXFLAGS=
3536  fi
3537fi
3538for ac_declaration in \
3539   '' \
3540   'extern "C" void std::exit (int) throw (); using std::exit;' \
3541   'extern "C" void std::exit (int); using std::exit;' \
3542   'extern "C" void exit (int) throw ();' \
3543   'extern "C" void exit (int);' \
3544   'void exit (int);'
3545do
3546  cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552$ac_declaration
3553#include <stdlib.h>
3554int
3555main ()
3556{
3557exit (42);
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562rm -f conftest.$ac_objext
3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564  (eval $ac_compile) 2>conftest.er1
3565  ac_status=$?
3566  grep -v '^ *+' conftest.er1 >conftest.err
3567  rm -f conftest.er1
3568  cat conftest.err >&5
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); } &&
3571	 { ac_try='test -z "$ac_cxx_werror_flag"
3572			 || test ! -s conftest.err'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; } &&
3578	 { ac_try='test -s conftest.$ac_objext'
3579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580  (eval $ac_try) 2>&5
3581  ac_status=$?
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); }; }; then
3584  :
3585else
3586  echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592  cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h.  */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h.  */
3598$ac_declaration
3599int
3600main ()
3601{
3602exit (42);
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609  (eval $ac_compile) 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } &&
3616	 { ac_try='test -z "$ac_cxx_werror_flag"
3617			 || test ! -s conftest.err'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; } &&
3623	 { ac_try='test -s conftest.$ac_objext'
3624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625  (eval $ac_try) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  break
3630else
3631  echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634fi
3635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636done
3637rm -f conftest*
3638if test -n "$ac_declaration"; then
3639  echo '#ifdef __cplusplus' >>confdefs.h
3640  echo $ac_declaration      >>confdefs.h
3641  echo '#endif'             >>confdefs.h
3642fi
3643
3644ac_ext=cc
3645ac_cpp='$CXXCPP $CPPFLAGS'
3646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649
3650
3651#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3652#thus, we test here whether $CXX is actually working
3653ac_ext=cc
3654ac_cpp='$CXXCPP $CPPFLAGS'
3655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3658
3659echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3660echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3661cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h.  */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h.  */
3667
3668int
3669main ()
3670{
3671int i=0;
3672  ;
3673  return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678  (eval $ac_compile) 2>conftest.er1
3679  ac_status=$?
3680  grep -v '^ *+' conftest.er1 >conftest.err
3681  rm -f conftest.er1
3682  cat conftest.err >&5
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); } &&
3685	 { ac_try='test -z "$ac_cxx_werror_flag"
3686			 || test ! -s conftest.err'
3687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688  (eval $ac_try) 2>&5
3689  ac_status=$?
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); }; } &&
3692	 { ac_try='test -s conftest.$ac_objext'
3693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694  (eval $ac_try) 2>&5
3695  ac_status=$?
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); }; }; then
3698  echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700else
3701  echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3707echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3708   { (exit 1); exit 1; }; }
3709
3710fi
3711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712ac_ext=cc
3713ac_cpp='$CXXCPP $CPPFLAGS'
3714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3717
3718
3719coin_cxx_is_cl=false
3720# It seems that we need to cleanup something here for the Windows
3721case "$CXX" in
3722  clang* | */clang*) ;;
3723  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3724    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3725    mv confdefs.hh confdefs.h
3726    coin_cxx_is_cl=true
3727    ;;
3728esac
3729
3730# add automake conditional so we can recognize cl compiler in makefile
3731
3732
3733if test $coin_cxx_is_cl = true; then
3734  COIN_CXX_IS_CL_TRUE=
3735  COIN_CXX_IS_CL_FALSE='#'
3736else
3737  COIN_CXX_IS_CL_TRUE='#'
3738  COIN_CXX_IS_CL_FALSE=
3739fi
3740
3741
3742# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3743case "$CXX" in
3744  clang* ) ;;
3745  cl* | */cl* | CL* | */CL* )
3746    if test "$ac_cv_prog_cxx_g" = yes ; then
3747      ac_cv_prog_cxx_g=no
3748      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3749echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3750    fi ;;
3751  * )
3752    if test x"$CYGPATH_W" = x ; then
3753      CYGPATH_W=echo
3754    fi
3755    ;;
3756esac
3757CXXFLAGS="$save_cxxflags"
3758
3759# Check if a project specific CXXFLAGS variable has been set
3760if test x$COIN_PRJCT != x; then
3761  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3762  if test x$coin_tmp = xset; then
3763    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3764  fi
3765fi
3766
3767if test x"$CXXFLAGS" = x; then
3768
3769# ToDo decide whether we want -DNDEBUG for optimization
3770  coin_add_cxxflags=
3771  coin_opt_cxxflags=
3772  coin_dbg_cxxflags=
3773  coin_warn_cxxflags=
3774
3775  if test "$GXX" = "yes"; then
3776    case "$CXX" in
3777      icpc* | */icpc*)
3778        ;;
3779      *)
3780# ToDo decide about unroll-loops
3781        coin_opt_cxxflags="-O3"
3782        coin_add_cxxflags="-pipe"
3783        coin_dbg_cxxflags="-g -O0"
3784        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3785    esac
3786  fi
3787
3788# Note that we do not need to cover GCC in the following tests.
3789
3790  if test -z "$coin_opt_cxxflags"; then
3791    case $build in
3792      *-cygwin* | *-mingw*)
3793        case "$CXX" in
3794          clang* ) ;;
3795          cl* | */cl* | CL* | */CL*)
3796            # The MT and MTd options are mutually exclusive
3797            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3798               coin_opt_cxxflags='-MD -O2'
3799               coin_dbg_cxxflags='-MDd'
3800            else
3801               coin_opt_cxxflags='-MT -O2'
3802               coin_dbg_cxxflags='-MTd'
3803            fi
3804            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3805            ;;
3806          icl* | */icl* | ICL* | */ICL*)
3807          # The MT and MTd options are mutually exclusive
3808            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3809              coin_opt_cxxflags='-MD -Ox'
3810              coin_dbg_cxxflags='-MDd -debug'
3811            else
3812              coin_opt_cxxflags='-MT -Ox'
3813              coin_dbg_cxxflags='-MTd -debug'
3814            fi
3815            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3816            ;;
3817        esac
3818        ;;
3819      *-linux-*)
3820        case "$CXX" in
3821          icpc* | */icpc*)
3822            coin_opt_cxxflags="-O3 -ip -mp1"
3823            coin_add_cxxflags=""
3824            coin_dbg_cxxflags="-g"
3825            # Check if -i_dynamic is necessary (for new glibc library)
3826            CXXFLAGS=
3827            cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h.  */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h.  */
3833
3834int
3835main ()
3836{
3837int i=0; i++;
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844  (eval $ac_link) 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } &&
3851	 { ac_try='test -z "$ac_cxx_werror_flag"
3852			 || test ! -s conftest.err'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; } &&
3858	 { ac_try='test -s conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  :
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3870fi
3871rm -f conftest.err conftest.$ac_objext \
3872      conftest$ac_exeext conftest.$ac_ext
3873            ;;
3874          pgCC* | */pgCC*)
3875            coin_opt_cxxflags="-fast"
3876            coin_add_cxxflags="-Kieee -pc 64"
3877            coin_dbg_cxxflags="-g"
3878            ;;
3879        esac
3880        ;;
3881      *-ibm-*)
3882        case "$CXX" in
3883          xlC* | */xlC* | mpxlC* | */mpxlC*)
3884            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3885            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3886            coin_dbg_cxxflags="-g"
3887            ;;
3888        esac
3889        ;;
3890      *-hp-*)
3891        case "$CXX" in
3892          aCC* | */aCC* )
3893            coin_opt_cxxflags="-O"
3894            coin_add_cxxflags="-AA"
3895            coin_dbg_cxxflags="-g"
3896            ;;
3897        esac
3898        ;;
3899      *-*-solaris*)
3900          coin_opt_cxxflags="-O4"
3901          coin_dbg_cxxflags="-g"
3902        ;;
3903    esac
3904  fi
3905
3906# Generic flag settings. If these don't work, add a case above.
3907
3908  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3909    coin_dbg_cxxflags="-g"
3910  fi
3911
3912  if test -z "$coin_opt_cxxflags"; then
3913    # Try if -O option works if nothing else is set
3914    CXXFLAGS=-O
3915    cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925int i=0; i++;
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext conftest$ac_exeext
3931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932  (eval $ac_link) 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } &&
3939	 { ac_try='test -z "$ac_cxx_werror_flag"
3940			 || test ! -s conftest.err'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; } &&
3946	 { ac_try='test -s conftest$ac_exeext'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; }; then
3952  coin_opt_cxxflags="-O"
3953else
3954  echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957fi
3958rm -f conftest.err conftest.$ac_objext \
3959      conftest$ac_exeext conftest.$ac_ext
3960  fi
3961
3962  # if PM doesn't want the warning messages, take them out
3963  if test x"$coin_skip_warn_cxxflags" = xyes; then
3964    coin_warn_cxxflags=
3965  fi
3966
3967# Do final setup of flags based on values determined above.
3968
3969  if test x${DBG_CXXFLAGS+set} != xset; then
3970    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3971  fi
3972  if test x${OPT_CXXFLAGS+set} != xset; then
3973    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3974  fi
3975
3976  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3977  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3978
3979  if test "$coin_debug_compile" = "true"; then
3980    CXXFLAGS="$DBG_CXXFLAGS"
3981  else
3982    CXXFLAGS="$OPT_CXXFLAGS"
3983  fi
3984
3985# Handle the case where CXXFLAGS was set externally.
3986else
3987  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3988  if test x${DBG_CXXFLAGS+set} != xset; then
3989    DBG_CXXFLAGS="$CXXFLAGS"
3990  fi
3991  if test x${OPT_CXXFLAGS+set} != xset; then
3992    OPT_CXXFLAGS="$CXXFLAGS"
3993  fi
3994fi
3995
3996# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3997if test x$COIN_PRJCT != x; then
3998  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3999fi
4000
4001# Try if CXXFLAGS works
4002save_CXXFLAGS="$CXXFLAGS"
4003cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h.  */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h.  */
4009
4010int
4011main ()
4012{
4013int i=0; i++;
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018rm -f conftest.$ac_objext conftest$ac_exeext
4019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020  (eval $ac_link) 2>conftest.er1
4021  ac_status=$?
4022  grep -v '^ *+' conftest.er1 >conftest.err
4023  rm -f conftest.er1
4024  cat conftest.err >&5
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); } &&
4027	 { ac_try='test -z "$ac_cxx_werror_flag"
4028			 || test ! -s conftest.err'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; } &&
4034	 { ac_try='test -s conftest$ac_exeext'
4035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036  (eval $ac_try) 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }; }; then
4040  :
4041else
4042  echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045CXXFLAGS=
4046fi
4047rm -f conftest.err conftest.$ac_objext \
4048      conftest$ac_exeext conftest.$ac_ext
4049if test -z "$CXXFLAGS"; then
4050  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
4051echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
4052  CXXFLAGS='-O'
4053  cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h.  */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h.  */
4059
4060int
4061main ()
4062{
4063int i=0; i++;
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068rm -f conftest.$ac_objext conftest$ac_exeext
4069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070  (eval $ac_link) 2>conftest.er1
4071  ac_status=$?
4072  grep -v '^ *+' conftest.er1 >conftest.err
4073  rm -f conftest.er1
4074  cat conftest.err >&5
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); } &&
4077	 { ac_try='test -z "$ac_cxx_werror_flag"
4078			 || test ! -s conftest.err'
4079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080  (eval $ac_try) 2>&5
4081  ac_status=$?
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); }; } &&
4084	 { ac_try='test -s conftest$ac_exeext'
4085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086  (eval $ac_try) 2>&5
4087  ac_status=$?
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); }; }; then
4090  :
4091else
4092  echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095CXXFLAGS=
4096fi
4097rm -f conftest.err conftest.$ac_objext \
4098      conftest$ac_exeext conftest.$ac_ext
4099  if test -z "$CXXFLAGS"; then
4100    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4101echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4102  fi
4103fi
4104
4105{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4106echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4107
4108
4109if test x"$MPICXX" = x; then :; else
4110  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4111echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4112  CXX="$MPICXX"
4113fi
4114
4115# correct the LD variable in a build with MS or Intel-windows compiler
4116case "$CXX" in
4117  clang* ) ;;
4118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4119    LD=link
4120    ;;
4121esac
4122
4123ac_ext=c
4124ac_cpp='$CPP $CPPFLAGS'
4125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129
4130#AC_LIBTOOL_LANG_CXX_CONFIG
4131ac_ext=cc
4132ac_cpp='$CXXCPP $CPPFLAGS'
4133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4136
4137
4138# Initialize automake and libtool
4139{
4140
4141
4142
4143# START
4144
4145coin_disable_shared=no
4146# Test if force_shared has been set
4147if test "x" = xforce_shared; then
4148  if test x$enable_shared = xno; then
4149    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4150echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4151   { (exit 1); exit 1; }; }
4152  fi
4153  enable_shared=yes;
4154else
4155  case $build in
4156    *-cygwin* | *-mingw*)
4157      coin_disable_shared=yes
4158      if test x"$enable_shared" = xyes; then
4159        case "$CC" in
4160          clang* )
4161            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4162echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4163            ;;
4164          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4165            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4166echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4167            ;;
4168          *gcc*)
4169            if test x"$enable_dependency_linking" = xyes; then
4170              coin_disable_shared=no
4171            else
4172              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4173echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4174            fi
4175            ;;
4176          *)
4177            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4178echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4179            ;;
4180        esac
4181      fi
4182    ;;
4183    *-aix*)
4184      coin_disable_shared=yes
4185      platform=AIX
4186      if test x"$enable_shared" = xyes; then
4187        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4188echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4189      fi
4190    ;;
4191  esac
4192fi
4193if test x"$coin_disable_shared" = xyes; then
4194  if test x"$enable_shared" = xyes; then
4195    :
4196  else
4197    # we don't disable shared, because it was not selected anyway
4198    coin_disable_shared=no
4199  fi
4200  enable_shared=no
4201fi
4202# By default, we only want the shared objects to be compiled
4203# Check whether --enable-static or --disable-static was given.
4204if test "${enable_static+set}" = set; then
4205  enableval="$enable_static"
4206  p=${PACKAGE-default}
4207    case $enableval in
4208    yes) enable_static=yes ;;
4209    no) enable_static=no ;;
4210    *)
4211     enable_static=no
4212      # Look at the argument we got.  We use all the common list separators.
4213      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4214      for pkg in $enableval; do
4215	IFS="$lt_save_ifs"
4216	if test "X$pkg" = "X$p"; then
4217	  enable_static=yes
4218	fi
4219      done
4220      IFS="$lt_save_ifs"
4221      ;;
4222    esac
4223else
4224  enable_static=no
4225fi;
4226
4227
4228
4229
4230# Initialize automake
4231echo "$as_me:$LINENO: checking for egrep" >&5
4232echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4233if test "${ac_cv_prog_egrep+set}" = set; then
4234  echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4237    then ac_cv_prog_egrep='grep -E'
4238    else ac_cv_prog_egrep='egrep'
4239    fi
4240fi
4241echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4242echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4243 EGREP=$ac_cv_prog_egrep
4244
4245
4246echo "$as_me:$LINENO: checking whether ln -s works" >&5
4247echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4248LN_S=$as_ln_s
4249if test "$LN_S" = "ln -s"; then
4250  echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
4252else
4253  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4254echo "${ECHO_T}no, using $LN_S" >&6
4255fi
4256
4257am__api_version="1.9"
4258# Find a good install program.  We prefer a C program (faster),
4259# so one script is as good as another.  But avoid the broken or
4260# incompatible versions:
4261# SysV /etc/install, /usr/sbin/install
4262# SunOS /usr/etc/install
4263# IRIX /sbin/install
4264# AIX /bin/install
4265# AmigaOS /C/install, which installs bootblocks on floppy discs
4266# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4267# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4268# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4269# OS/2's system install, which has a completely different semantic
4270# ./install, which can be erroneously created by make from ./install.sh.
4271echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4272echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4273if test -z "$INSTALL"; then
4274if test "${ac_cv_path_install+set}" = set; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282  # Account for people who put trailing slashes in PATH elements.
4283case $as_dir/ in
4284  ./ | .// | /cC/* | \
4285  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4286  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4287  /usr/ucb/* ) ;;
4288  *)
4289    # OSF1 and SCO ODT 3.0 have their own names for install.
4290    # Don't use installbsd from OSF since it installs stuff as root
4291    # by default.
4292    for ac_prog in ginstall scoinst install; do
4293      for ac_exec_ext in '' $ac_executable_extensions; do
4294	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4295	  if test $ac_prog = install &&
4296	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4297	    # AIX install.  It has an incompatible calling convention.
4298	    :
4299	  elif test $ac_prog = install &&
4300	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4301	    # program-specific install script used by HP pwplus--don't use.
4302	    :
4303	  else
4304	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4305	    break 3
4306	  fi
4307	fi
4308      done
4309    done
4310    ;;
4311esac
4312done
4313
4314
4315fi
4316  if test "${ac_cv_path_install+set}" = set; then
4317    INSTALL=$ac_cv_path_install
4318  else
4319    # As a last resort, use the slow shell script.  We don't cache a
4320    # path for INSTALL within a source directory, because that will
4321    # break other packages using the cache if that directory is
4322    # removed, or if the path is relative.
4323    INSTALL=$ac_install_sh
4324  fi
4325fi
4326echo "$as_me:$LINENO: result: $INSTALL" >&5
4327echo "${ECHO_T}$INSTALL" >&6
4328
4329# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4330# It thinks the first close brace ends the variable substitution.
4331test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4332
4333test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4334
4335test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4336
4337echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4338echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4339# Just in case
4340sleep 1
4341echo timestamp > conftest.file
4342# Do `set' in a subshell so we don't clobber the current shell's
4343# arguments.  Must try -L first in case configure is actually a
4344# symlink; some systems play weird games with the mod time of symlinks
4345# (eg FreeBSD returns the mod time of the symlink's containing
4346# directory).
4347if (
4348   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4349   if test "$*" = "X"; then
4350      # -L didn't work.
4351      set X `ls -t $srcdir/configure conftest.file`
4352   fi
4353   rm -f conftest.file
4354   if test "$*" != "X $srcdir/configure conftest.file" \
4355      && test "$*" != "X conftest.file $srcdir/configure"; then
4356
4357      # If neither matched, then we have a broken ls.  This can happen
4358      # if, for instance, CONFIG_SHELL is bash and it inherits a
4359      # broken ls alias from the environment.  This has actually
4360      # happened.  Such a system could not be considered "sane".
4361      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4362alias in your environment" >&5
4363echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4364alias in your environment" >&2;}
4365   { (exit 1); exit 1; }; }
4366   fi
4367
4368   test "$2" = conftest.file
4369   )
4370then
4371   # Ok.
4372   :
4373else
4374   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4375Check your system clock" >&5
4376echo "$as_me: error: newly created file is older than distributed files!
4377Check your system clock" >&2;}
4378   { (exit 1); exit 1; }; }
4379fi
4380echo "$as_me:$LINENO: result: yes" >&5
4381echo "${ECHO_T}yes" >&6
4382test "$program_prefix" != NONE &&
4383  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4384# Use a double $ so make ignores it.
4385test "$program_suffix" != NONE &&
4386  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4387# Double any \ or $.  echo might interpret backslashes.
4388# By default was `s,x,x', remove it if useless.
4389cat <<\_ACEOF >conftest.sed
4390s/[\\$]/&&/g;s/;s,x,x,$//
4391_ACEOF
4392program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4393rm conftest.sed
4394
4395# expand $ac_aux_dir to an absolute path
4396am_aux_dir=`cd $ac_aux_dir && pwd`
4397
4398test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4399# Use eval to expand $SHELL
4400if eval "$MISSING --run true"; then
4401  am_missing_run="$MISSING --run "
4402else
4403  am_missing_run=
4404  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4405echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4406fi
4407
4408if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4409  # We used to keeping the `.' as first argument, in order to
4410  # allow $(mkdir_p) to be used without argument.  As in
4411  #   $(mkdir_p) $(somedir)
4412  # where $(somedir) is conditionally defined.  However this is wrong
4413  # for two reasons:
4414  #  1. if the package is installed by a user who cannot write `.'
4415  #     make install will fail,
4416  #  2. the above comment should most certainly read
4417  #     $(mkdir_p) $(DESTDIR)$(somedir)
4418  #     so it does not work when $(somedir) is undefined and
4419  #     $(DESTDIR) is not.
4420  #  To support the latter case, we have to write
4421  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4422  #  so the `.' trick is pointless.
4423  mkdir_p='mkdir -p --'
4424else
4425  # On NextStep and OpenStep, the `mkdir' command does not
4426  # recognize any option.  It will interpret all options as
4427  # directories to create, and then abort because `.' already
4428  # exists.
4429  for d in ./-p ./--version;
4430  do
4431    test -d $d && rmdir $d
4432  done
4433  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4434  if test -f "$ac_aux_dir/mkinstalldirs"; then
4435    mkdir_p='$(mkinstalldirs)'
4436  else
4437    mkdir_p='$(install_sh) -d'
4438  fi
4439fi
4440
4441for ac_prog in gawk mawk nawk awk
4442do
4443  # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447if test "${ac_cv_prog_AWK+set}" = set; then
4448  echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450  if test -n "$AWK"; then
4451  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456  IFS=$as_save_IFS
4457  test -z "$as_dir" && as_dir=.
4458  for ac_exec_ext in '' $ac_executable_extensions; do
4459  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460    ac_cv_prog_AWK="$ac_prog"
4461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462    break 2
4463  fi
4464done
4465done
4466
4467fi
4468fi
4469AWK=$ac_cv_prog_AWK
4470if test -n "$AWK"; then
4471  echo "$as_me:$LINENO: result: $AWK" >&5
4472echo "${ECHO_T}$AWK" >&6
4473else
4474  echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6
4476fi
4477
4478  test -n "$AWK" && break
4479done
4480
4481echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4482echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4483set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4484if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4485  echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487  cat >conftest.make <<\_ACEOF
4488all:
4489	@echo 'ac_maketemp="$(MAKE)"'
4490_ACEOF
4491# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4492eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4493if test -n "$ac_maketemp"; then
4494  eval ac_cv_prog_make_${ac_make}_set=yes
4495else
4496  eval ac_cv_prog_make_${ac_make}_set=no
4497fi
4498rm -f conftest.make
4499fi
4500if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4501  echo "$as_me:$LINENO: result: yes" >&5
4502echo "${ECHO_T}yes" >&6
4503  SET_MAKE=
4504else
4505  echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6
4507  SET_MAKE="MAKE=${MAKE-make}"
4508fi
4509
4510rm -rf .tst 2>/dev/null
4511mkdir .tst 2>/dev/null
4512if test -d .tst; then
4513  am__leading_dot=.
4514else
4515  am__leading_dot=_
4516fi
4517rmdir .tst 2>/dev/null
4518
4519DEPDIR="${am__leading_dot}deps"
4520
4521          ac_config_commands="$ac_config_commands depfiles"
4522
4523
4524am_make=${MAKE-make}
4525cat > confinc << 'END'
4526am__doit:
4527	@echo done
4528.PHONY: am__doit
4529END
4530# If we don't find an include directive, just comment out the code.
4531echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4532echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4533am__include="#"
4534am__quote=
4535_am_result=none
4536# First try GNU make style include.
4537echo "include confinc" > confmf
4538# We grep out `Entering directory' and `Leaving directory'
4539# messages which can occur if `w' ends up in MAKEFLAGS.
4540# In particular we don't look at `^make:' because GNU make might
4541# be invoked under some other name (usually "gmake"), in which
4542# case it prints its new name instead of `make'.
4543if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4544   am__include=include
4545   am__quote=
4546   _am_result=GNU
4547fi
4548# Now try BSD make style include.
4549if test "$am__include" = "#"; then
4550   echo '.include "confinc"' > confmf
4551   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4552      am__include=.include
4553      am__quote="\""
4554      _am_result=BSD
4555   fi
4556fi
4557
4558
4559echo "$as_me:$LINENO: result: $_am_result" >&5
4560echo "${ECHO_T}$_am_result" >&6
4561rm -f confinc confmf
4562
4563# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4564if test "${enable_dependency_tracking+set}" = set; then
4565  enableval="$enable_dependency_tracking"
4566
4567fi;
4568if test "x$enable_dependency_tracking" != xno; then
4569  am_depcomp="$ac_aux_dir/depcomp"
4570  AMDEPBACKSLASH='\'
4571fi
4572
4573
4574if test "x$enable_dependency_tracking" != xno; then
4575  AMDEP_TRUE=
4576  AMDEP_FALSE='#'
4577else
4578  AMDEP_TRUE='#'
4579  AMDEP_FALSE=
4580fi
4581
4582
4583
4584
4585
4586
4587# AC_MSG_NOTICE([Beginning automake initialisation.])
4588# Stuff for automake
4589# test to see if srcdir already configured
4590if test "`cd $srcdir && pwd`" != "`pwd`" &&
4591   test -f $srcdir/config.status; then
4592  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4593echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4594   { (exit 1); exit 1; }; }
4595fi
4596
4597# test whether we have cygpath
4598if test -z "$CYGPATH_W"; then
4599  if (cygpath --version) >/dev/null 2>/dev/null; then
4600    CYGPATH_W='cygpath -w'
4601  else
4602    CYGPATH_W=echo
4603  fi
4604fi
4605
4606
4607# Define the identity of the package.
4608 PACKAGE='symphony'
4609 VERSION='5.6.17'
4610
4611
4612cat >>confdefs.h <<_ACEOF
4613#define PACKAGE "$PACKAGE"
4614_ACEOF
4615
4616
4617cat >>confdefs.h <<_ACEOF
4618#define VERSION "$VERSION"
4619_ACEOF
4620
4621# Some tools Automake needs.
4622
4623ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4624
4625
4626AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4627
4628
4629AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4630
4631
4632AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4633
4634
4635MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4636
4637install_sh=${install_sh-"$am_aux_dir/install-sh"}
4638
4639# Installed binaries are usually stripped using `strip' when the user
4640# run `make install-strip'.  However `strip' might not be the right
4641# tool to use in cross-compilation environments, therefore Automake
4642# will honor the `STRIP' environment variable to overrule this program.
4643if test "$cross_compiling" != no; then
4644  if test -n "$ac_tool_prefix"; then
4645  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4646set dummy ${ac_tool_prefix}strip; ac_word=$2
4647echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649if test "${ac_cv_prog_STRIP+set}" = set; then
4650  echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652  if test -n "$STRIP"; then
4653  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  test -z "$as_dir" && as_dir=.
4660  for ac_exec_ext in '' $ac_executable_extensions; do
4661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664    break 2
4665  fi
4666done
4667done
4668
4669fi
4670fi
4671STRIP=$ac_cv_prog_STRIP
4672if test -n "$STRIP"; then
4673  echo "$as_me:$LINENO: result: $STRIP" >&5
4674echo "${ECHO_T}$STRIP" >&6
4675else
4676  echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
4678fi
4679
4680fi
4681if test -z "$ac_cv_prog_STRIP"; then
4682  ac_ct_STRIP=$STRIP
4683  # Extract the first word of "strip", so it can be a program name with args.
4684set dummy strip; ac_word=$2
4685echo "$as_me:$LINENO: checking for $ac_word" >&5
4686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  if test -n "$ac_ct_STRIP"; then
4691  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4692else
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696  IFS=$as_save_IFS
4697  test -z "$as_dir" && as_dir=.
4698  for ac_exec_ext in '' $ac_executable_extensions; do
4699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700    ac_cv_prog_ac_ct_STRIP="strip"
4701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702    break 2
4703  fi
4704done
4705done
4706
4707  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4708fi
4709fi
4710ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4711if test -n "$ac_ct_STRIP"; then
4712  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4713echo "${ECHO_T}$ac_ct_STRIP" >&6
4714else
4715  echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
4717fi
4718
4719  STRIP=$ac_ct_STRIP
4720else
4721  STRIP="$ac_cv_prog_STRIP"
4722fi
4723
4724fi
4725INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4726
4727# We need awk for the "check" target.  The system "awk" is bad on
4728# some platforms.
4729# Always define AMTAR for backward compatibility.
4730
4731AMTAR=${AMTAR-"${am_missing_run}tar"}
4732
4733am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4734
4735
4736
4737
4738depcc="$CC"   am_compiler_list=
4739
4740echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4741echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4742if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4743  echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4746  # We make a subdir and do the tests there.  Otherwise we can end up
4747  # making bogus files that we don't know about and never remove.  For
4748  # instance it was reported that on HP-UX the gcc test will end up
4749  # making a dummy file named `D' -- because `-MD' means `put the output
4750  # in D'.
4751  mkdir conftest.dir
4752  # Copy depcomp to subdir because otherwise we won't find it if we're
4753  # using a relative directory.
4754  cp "$am_depcomp" conftest.dir
4755  cd conftest.dir
4756  # We will build objects and dependencies in a subdirectory because
4757  # it helps to detect inapplicable dependency modes.  For instance
4758  # both Tru64's cc and ICC support -MD to output dependencies as a
4759  # side effect of compilation, but ICC will put the dependencies in
4760  # the current directory while Tru64 will put them in the object
4761  # directory.
4762  mkdir sub
4763
4764  am_cv_CC_dependencies_compiler_type=none
4765  if test "$am_compiler_list" = ""; then
4766     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4767  fi
4768  for depmode in $am_compiler_list; do
4769    # Setup a source with many dependencies, because some compilers
4770    # like to wrap large dependency lists on column 80 (with \), and
4771    # we should not choose a depcomp mode which is confused by this.
4772    #
4773    # We need to recreate these files for each test, as the compiler may
4774    # overwrite some of them when testing with obscure command lines.
4775    # This happens at least with the AIX C compiler.
4776    : > sub/conftest.c
4777    for i in 1 2 3 4 5 6; do
4778      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4779      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4780      # Solaris 8's {/usr,}/bin/sh.
4781      touch sub/conftst$i.h
4782    done
4783    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4784
4785    case $depmode in
4786    nosideeffect)
4787      # after this tag, mechanisms are not by side-effect, so they'll
4788      # only be used when explicitly requested
4789      if test "x$enable_dependency_tracking" = xyes; then
4790	continue
4791      else
4792	break
4793      fi
4794      ;;
4795    none) break ;;
4796    esac
4797    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4798    # mode.  It turns out that the SunPro C++ compiler does not properly
4799    # handle `-M -o', and we need to detect this.
4800    if depmode=$depmode \
4801       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4802       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4803       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4804         >/dev/null 2>conftest.err &&
4805       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4806       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4807       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4808      # icc doesn't choke on unknown options, it will just issue warnings
4809      # or remarks (even with -Werror).  So we grep stderr for any message
4810      # that says an option was ignored or not supported.
4811      # When given -MP, icc 7.0 and 7.1 complain thusly:
4812      #   icc: Command line warning: ignoring option '-M'; no argument required
4813      # The diagnosis changed in icc 8.0:
4814      #   icc: Command line remark: option '-MP' not supported
4815      if (grep 'ignoring option' conftest.err ||
4816          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4817        am_cv_CC_dependencies_compiler_type=$depmode
4818        break
4819      fi
4820    fi
4821  done
4822
4823  cd ..
4824  rm -rf conftest.dir
4825else
4826  am_cv_CC_dependencies_compiler_type=none
4827fi
4828
4829fi
4830echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4831echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4832CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4833
4834
4835
4836if
4837  test "x$enable_dependency_tracking" != xno \
4838  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4839  am__fastdepCC_TRUE=
4840  am__fastdepCC_FALSE='#'
4841else
4842  am__fastdepCC_TRUE='#'
4843  am__fastdepCC_FALSE=
4844fi
4845
4846
4847depcc="$CXX"  am_compiler_list=
4848
4849echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4850echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4851if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4852  echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4855  # We make a subdir and do the tests there.  Otherwise we can end up
4856  # making bogus files that we don't know about and never remove.  For
4857  # instance it was reported that on HP-UX the gcc test will end up
4858  # making a dummy file named `D' -- because `-MD' means `put the output
4859  # in D'.
4860  mkdir conftest.dir
4861  # Copy depcomp to subdir because otherwise we won't find it if we're
4862  # using a relative directory.
4863  cp "$am_depcomp" conftest.dir
4864  cd conftest.dir
4865  # We will build objects and dependencies in a subdirectory because
4866  # it helps to detect inapplicable dependency modes.  For instance
4867  # both Tru64's cc and ICC support -MD to output dependencies as a
4868  # side effect of compilation, but ICC will put the dependencies in
4869  # the current directory while Tru64 will put them in the object
4870  # directory.
4871  mkdir sub
4872
4873  am_cv_CXX_dependencies_compiler_type=none
4874  if test "$am_compiler_list" = ""; then
4875     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4876  fi
4877  for depmode in $am_compiler_list; do
4878    # Setup a source with many dependencies, because some compilers
4879    # like to wrap large dependency lists on column 80 (with \), and
4880    # we should not choose a depcomp mode which is confused by this.
4881    #
4882    # We need to recreate these files for each test, as the compiler may
4883    # overwrite some of them when testing with obscure command lines.
4884    # This happens at least with the AIX C compiler.
4885    : > sub/conftest.c
4886    for i in 1 2 3 4 5 6; do
4887      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4888      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4889      # Solaris 8's {/usr,}/bin/sh.
4890      touch sub/conftst$i.h
4891    done
4892    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4893
4894    case $depmode in
4895    nosideeffect)
4896      # after this tag, mechanisms are not by side-effect, so they'll
4897      # only be used when explicitly requested
4898      if test "x$enable_dependency_tracking" = xyes; then
4899	continue
4900      else
4901	break
4902      fi
4903      ;;
4904    none) break ;;
4905    esac
4906    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4907    # mode.  It turns out that the SunPro C++ compiler does not properly
4908    # handle `-M -o', and we need to detect this.
4909    if depmode=$depmode \
4910       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4911       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4912       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4913         >/dev/null 2>conftest.err &&
4914       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4915       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4916       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4917      # icc doesn't choke on unknown options, it will just issue warnings
4918      # or remarks (even with -Werror).  So we grep stderr for any message
4919      # that says an option was ignored or not supported.
4920      # When given -MP, icc 7.0 and 7.1 complain thusly:
4921      #   icc: Command line warning: ignoring option '-M'; no argument required
4922      # The diagnosis changed in icc 8.0:
4923      #   icc: Command line remark: option '-MP' not supported
4924      if (grep 'ignoring option' conftest.err ||
4925          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4926        am_cv_CXX_dependencies_compiler_type=$depmode
4927        break
4928      fi
4929    fi
4930  done
4931
4932  cd ..
4933  rm -rf conftest.dir
4934else
4935  am_cv_CXX_dependencies_compiler_type=none
4936fi
4937
4938fi
4939echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4940echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4941CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4942
4943
4944
4945if
4946  test "x$enable_dependency_tracking" != xno \
4947  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4948  am__fastdepCXX_TRUE=
4949  am__fastdepCXX_FALSE='#'
4950else
4951  am__fastdepCXX_TRUE='#'
4952  am__fastdepCXX_FALSE=
4953fi
4954
4955
4956
4957echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4958echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4959    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4960if test "${enable_maintainer_mode+set}" = set; then
4961  enableval="$enable_maintainer_mode"
4962  USE_MAINTAINER_MODE=$enableval
4963else
4964  USE_MAINTAINER_MODE=no
4965fi;
4966  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4967echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4968
4969
4970if test $USE_MAINTAINER_MODE = yes; then
4971  MAINTAINER_MODE_TRUE=
4972  MAINTAINER_MODE_FALSE='#'
4973else
4974  MAINTAINER_MODE_TRUE='#'
4975  MAINTAINER_MODE_FALSE=
4976fi
4977
4978  MAINT=$MAINTAINER_MODE_TRUE
4979
4980
4981
4982coin_have_externals=no
4983if test "$enable_maintainer_mode" = yes; then
4984
4985  # If maintainer mode is chosen, we make sure that the correct versions
4986  # of the tools are used, and that we know where libtool.m4 is (to
4987  # recreate acinclude.m4)
4988
4989
4990  LIBTOOLM4=
4991  # Normally, $HOME
4992  AUTOTOOLS_DFLT=$HOME
4993
4994  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4995echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4996if test "${ac_cv_use_correct_autotools+set}" = set; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  ac_cv_use_correct_autotools=check
5000fi
5001echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5002echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5003
5004  if test $ac_cv_use_correct_autotools = check; then
5005    ac_cv_use_correct_autotools=yes
5006    # Check if we have autoconf
5007    # Extract the first word of "autoconf", so it can be a program name with args.
5008set dummy autoconf; ac_word=$2
5009echo "$as_me:$LINENO: checking for $ac_word" >&5
5010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5011if test "${ac_cv_prog_have_autoconf+set}" = set; then
5012  echo $ECHO_N "(cached) $ECHO_C" >&6
5013else
5014  if test -n "$have_autoconf"; then
5015  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022  for ac_exec_ext in '' $ac_executable_extensions; do
5023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    ac_cv_prog_have_autoconf="yes"
5025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029done
5030
5031  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5032fi
5033fi
5034have_autoconf=$ac_cv_prog_have_autoconf
5035if test -n "$have_autoconf"; then
5036  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5037echo "${ECHO_T}$have_autoconf" >&6
5038else
5039  echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041fi
5042
5043    if test $have_autoconf = no; then
5044      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5045echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5046   { (exit 1); exit 1; }; }
5047    fi
5048
5049    # Check whether autoconf is the correct version
5050    correct_version='2.59'
5051    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5052    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5053echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5054    autoconf --version > confauto.out 2>&1
5055    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5056      echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058    else
5059      rm -f confauto.out
5060      echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5063echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5064   { (exit 1); exit 1; }; }
5065    fi
5066    rm -f confauto.out
5067
5068    # Check if the executable autoconf is picked up from the correct location
5069    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5070echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5071    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5072    autoconf_dir=`cd $autoconf_dir; pwd`
5073    if test x$AUTOTOOLS_DIR = x; then
5074      want_dir=$AUTOTOOLS_DFLT/bin
5075    else
5076      want_dir=$AUTOTOOLS_DIR/bin
5077    fi
5078    if test $autoconf_dir = `cd $want_dir; pwd`; then
5079      echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081    else
5082      rm -f confauto.out
5083      echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5086echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5087   { (exit 1); exit 1; }; }
5088    fi
5089
5090    # Check if we have automake
5091    # Extract the first word of "automake", so it can be a program name with args.
5092set dummy automake; ac_word=$2
5093echo "$as_me:$LINENO: checking for $ac_word" >&5
5094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095if test "${ac_cv_prog_have_automake+set}" = set; then
5096  echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098  if test -n "$have_automake"; then
5099  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104  IFS=$as_save_IFS
5105  test -z "$as_dir" && as_dir=.
5106  for ac_exec_ext in '' $ac_executable_extensions; do
5107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108    ac_cv_prog_have_automake="yes"
5109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110    break 2
5111  fi
5112done
5113done
5114
5115  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5116fi
5117fi
5118have_automake=$ac_cv_prog_have_automake
5119if test -n "$have_automake"; then
5120  echo "$as_me:$LINENO: result: $have_automake" >&5
5121echo "${ECHO_T}$have_automake" >&6
5122else
5123  echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125fi
5126
5127    if test $have_automake = no; then
5128      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5129echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5130   { (exit 1); exit 1; }; }
5131    fi
5132
5133    # Check whether automake is the correct version
5134    correct_version='1.9.6'
5135    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5136    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5137echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5138    automake --version > confauto.out 2>&1
5139    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5140      echo "$as_me:$LINENO: result: yes" >&5
5141echo "${ECHO_T}yes" >&6
5142    else
5143      rm -f confauto.out
5144      echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5147echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5148   { (exit 1); exit 1; }; }
5149    fi
5150    rm -f confauto.out
5151
5152    # Check if the executable automake is picked up from the correct location
5153    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5154echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5155    automake_dir=`which automake | sed -e 's=/automake=='`
5156    automake_dir=`cd $automake_dir; pwd`
5157    if test x$AUTOTOOLS_DIR = x; then
5158      want_dir=$AUTOTOOLS_DFLT/bin
5159    else
5160      want_dir=$AUTOTOOLS_DIR/bin
5161    fi
5162    if test $automake_dir = `cd $want_dir; pwd`; then
5163      echo "$as_me:$LINENO: result: yes" >&5
5164echo "${ECHO_T}yes" >&6
5165    else
5166      rm -f confauto.out
5167      echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5170echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5171   { (exit 1); exit 1; }; }
5172    fi
5173
5174    # Check if this is the correct version of libtool (with escaped dots)
5175    if test x$AUTOTOOLS_DIR = x; then
5176      want_dir=$AUTOTOOLS_DFLT/share
5177    else
5178      want_dir=$AUTOTOOLS_DIR/share
5179    fi
5180    correct_version='1.5.22'
5181    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5182    if test -r $want_dir/libtool/ltmain.sh; then
5183  have_ltmain=yes
5184  :
5185else
5186  have_ltmain=no
5187  :
5188fi
5189
5190    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5191echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5192    if test $have_ltmain = yes; then
5193    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5194        echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196      else
5197        echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5200echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5201   { (exit 1); exit 1; }; }
5202      fi
5203    else
5204      echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5207echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5208   { (exit 1); exit 1; }; }
5209    fi
5210  fi
5211
5212  # Check if we can find the libtool file
5213  if test x$AUTOTOOLS_DIR = x; then
5214    want_dir=$AUTOTOOLS_DFLT/share
5215  else
5216    want_dir=$AUTOTOOLS_DIR/share
5217  fi
5218  if test -r $want_dir/aclocal/libtool.m4; then
5219  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5220  :
5221else
5222  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5223echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5224   { (exit 1); exit 1; }; }
5225  :
5226fi
5227
5228
5229  # Check if we have an Dependencies file
5230  if test -r $srcdir/Dependencies; then
5231    coin_have_externals=yes
5232  fi
5233  # Check if subversion is installed and understands https
5234  # Extract the first word of "svn", so it can be a program name with args.
5235set dummy svn; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_prog_have_svn+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241  if test -n "$have_svn"; then
5242  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247  IFS=$as_save_IFS
5248  test -z "$as_dir" && as_dir=.
5249  for ac_exec_ext in '' $ac_executable_extensions; do
5250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251    ac_cv_prog_have_svn="yes"
5252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253    break 2
5254  fi
5255done
5256done
5257
5258  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5259fi
5260fi
5261have_svn=$ac_cv_prog_have_svn
5262if test -n "$have_svn"; then
5263  echo "$as_me:$LINENO: result: $have_svn" >&5
5264echo "${ECHO_T}$have_svn" >&6
5265else
5266  echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
5268fi
5269
5270  if test x$have_svn = xyes; then
5271    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5272echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5273if test "${ac_cv_svn_understands_https+set}" = set; then
5274  echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276  svn --version > confauto.out 2>&1
5277                    if $EGREP https confauto.out >/dev/null 2>&1; then
5278                      ac_cv_svn_understands_https=yes
5279                    else
5280                      ac_cv_svn_understands_https=no
5281                      have_svn=no
5282                      ac_cv_prog_have_svn=no
5283                    fi
5284                    rm -f confauto.out
5285fi
5286echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5287echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5288  fi
5289
5290  # Find the location of the BuildTools directory
5291  BUILDTOOLSDIR=
5292  if test -r $srcdir/BuildTools/coin.m4; then
5293    BUILDTOOLSDIR=$srcdir/BuildTools
5294  else
5295    if test -r $srcdir/../BuildTools/coin.m4; then
5296      BUILDTOOLSDIR=$srcdir/../BuildTools
5297    else
5298      if test -r $srcdir/../../BuildTools/coin.m4; then
5299        BUILDTOOLSDIR=$srcdir/../../BuildTools
5300      else
5301        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5302echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5303   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5304      fi
5305    fi
5306  fi
5307
5308
5309  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5310  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5311    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5312  fi
5313
5314  # The following variable is set to the name of the directory where
5315  # the autotool scripts are located
5316
5317  AUX_DIR=$ac_aux_dir
5318fi
5319
5320# helpful variable for the base directory of this package
5321abs_source_dir=`cd $srcdir; pwd`
5322
5323
5324# Stuff for example Makefiles
5325if test x$prefix = xNONE; then
5326  full_prefix=$ac_default_prefix
5327else
5328  full_prefix=$prefix
5329fi
5330full_prefix=`cd $full_prefix ; pwd`
5331
5332abs_lib_dir=$full_prefix/lib
5333
5334abs_include_dir=$full_prefix/include
5335
5336abs_bin_dir=$full_prefix/bin
5337
5338
5339
5340if test $coin_have_externals = yes && test x$have_svn = xyes; then
5341  HAVE_EXTERNALS_TRUE=
5342  HAVE_EXTERNALS_FALSE='#'
5343else
5344  HAVE_EXTERNALS_TRUE='#'
5345  HAVE_EXTERNALS_FALSE=
5346fi
5347
5348
5349# AC_MSG_NOTICE([End automake initialisation.])
5350
5351
5352
5353LIBTOOL=
5354if test -f ../libtool; then
5355  coin_config_dir=..
5356  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5357fi
5358if test "x$LIBTOOL" = x; then
5359  if test -f ../../libtool; then
5360    coin_config_dir=../..
5361    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5362  fi
5363fi
5364
5365if test "x$LIBTOOL" = x; then
5366# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5367  # Stuff for libtool
5368  # Check whether --enable-shared or --disable-shared was given.
5369if test "${enable_shared+set}" = set; then
5370  enableval="$enable_shared"
5371  p=${PACKAGE-default}
5372    case $enableval in
5373    yes) enable_shared=yes ;;
5374    no) enable_shared=no ;;
5375    *)
5376      enable_shared=no
5377      # Look at the argument we got.  We use all the common list separators.
5378      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5379      for pkg in $enableval; do
5380	IFS="$lt_save_ifs"
5381	if test "X$pkg" = "X$p"; then
5382	  enable_shared=yes
5383	fi
5384      done
5385      IFS="$lt_save_ifs"
5386      ;;
5387    esac
5388else
5389  enable_shared=yes
5390fi;
5391
5392# Check whether --enable-fast-install or --disable-fast-install was given.
5393if test "${enable_fast_install+set}" = set; then
5394  enableval="$enable_fast_install"
5395  p=${PACKAGE-default}
5396    case $enableval in
5397    yes) enable_fast_install=yes ;;
5398    no) enable_fast_install=no ;;
5399    *)
5400      enable_fast_install=no
5401      # Look at the argument we got.  We use all the common list separators.
5402      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5403      for pkg in $enableval; do
5404	IFS="$lt_save_ifs"
5405	if test "X$pkg" = "X$p"; then
5406	  enable_fast_install=yes
5407	fi
5408      done
5409      IFS="$lt_save_ifs"
5410      ;;
5411    esac
5412else
5413  enable_fast_install=yes
5414fi;
5415
5416echo "$as_me:$LINENO: checking host system type" >&5
5417echo $ECHO_N "checking host system type... $ECHO_C" >&6
5418if test "${ac_cv_host+set}" = set; then
5419  echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421  ac_cv_host_alias=$host_alias
5422test -z "$ac_cv_host_alias" &&
5423  ac_cv_host_alias=$ac_cv_build_alias
5424ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5425  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5426echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5427   { (exit 1); exit 1; }; }
5428
5429fi
5430echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5431echo "${ECHO_T}$ac_cv_host" >&6
5432host=$ac_cv_host
5433host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5434host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5435host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5436
5437
5438echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5439echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5440if test "${lt_cv_path_SED+set}" = set; then
5441  echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443  # Loop through the user's path and test for sed and gsed.
5444# Then use that list of sed's as ones to test for truncation.
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448  IFS=$as_save_IFS
5449  test -z "$as_dir" && as_dir=.
5450  for lt_ac_prog in sed gsed; do
5451    for ac_exec_ext in '' $ac_executable_extensions; do
5452      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5453        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5454      fi
5455    done
5456  done
5457done
5458lt_ac_max=0
5459lt_ac_count=0
5460# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5461# along with /bin/sed that truncates output.
5462for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5463  test ! -f $lt_ac_sed && continue
5464  cat /dev/null > conftest.in
5465  lt_ac_count=0
5466  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5467  # Check for GNU sed and select it if it is found.
5468  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5469    lt_cv_path_SED=$lt_ac_sed
5470    break
5471  fi
5472  while true; do
5473    cat conftest.in conftest.in >conftest.tmp
5474    mv conftest.tmp conftest.in
5475    cp conftest.in conftest.nl
5476    echo >>conftest.nl
5477    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5478    cmp -s conftest.out conftest.nl || break
5479    # 10000 chars as input seems more than enough
5480    test $lt_ac_count -gt 10 && break
5481    lt_ac_count=`expr $lt_ac_count + 1`
5482    if test $lt_ac_count -gt $lt_ac_max; then
5483      lt_ac_max=$lt_ac_count
5484      lt_cv_path_SED=$lt_ac_sed
5485    fi
5486  done
5487done
5488
5489fi
5490
5491SED=$lt_cv_path_SED
5492echo "$as_me:$LINENO: result: $SED" >&5
5493echo "${ECHO_T}$SED" >&6
5494
5495
5496# Check whether --with-gnu-ld or --without-gnu-ld was given.
5497if test "${with_gnu_ld+set}" = set; then
5498  withval="$with_gnu_ld"
5499  test "$withval" = no || with_gnu_ld=yes
5500else
5501  with_gnu_ld=no
5502fi;
5503ac_prog=ld
5504if test "$GCC" = yes; then
5505  # Check if gcc -print-prog-name=ld gives a path.
5506  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5507echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5508  case $host in
5509  *-*-mingw*)
5510    # gcc leaves a trailing carriage return which upsets mingw
5511    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5512  *)
5513    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5514  esac
5515  case $ac_prog in
5516    # Accept absolute paths.
5517    [\\/]* | ?:[\\/]*)
5518      re_direlt='/[^/][^/]*/\.\./'
5519      # Canonicalize the pathname of ld
5520      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5521      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5522	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5523      done
5524      test -z "$LD" && LD="$ac_prog"
5525      ;;
5526  "")
5527    # If it fails, then pretend we aren't using GCC.
5528    ac_prog=ld
5529    ;;
5530  *)
5531    # If it is relative, then search for the first ld in PATH.
5532    with_gnu_ld=unknown
5533    ;;
5534  esac
5535elif test "$with_gnu_ld" = yes; then
5536  echo "$as_me:$LINENO: checking for GNU ld" >&5
5537echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5538else
5539  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5540echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5541fi
5542if test "${lt_cv_path_LD+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  if test -z "$LD"; then
5546  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5547  for ac_dir in $PATH; do
5548    IFS="$lt_save_ifs"
5549    test -z "$ac_dir" && ac_dir=.
5550    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551      lt_cv_path_LD="$ac_dir/$ac_prog"
5552      # Check to see if the program is GNU ld.  I'd rather use --version,
5553      # but apparently some variants of GNU ld only accept -v.
5554      # Break only if it was the GNU/non-GNU ld that we prefer.
5555      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5556      *GNU* | *'with BFD'*)
5557	test "$with_gnu_ld" != no && break
5558	;;
5559      *)
5560	test "$with_gnu_ld" != yes && break
5561	;;
5562      esac
5563    fi
5564  done
5565  IFS="$lt_save_ifs"
5566else
5567  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5568fi
5569fi
5570
5571LD="$lt_cv_path_LD"
5572if test -n "$LD"; then
5573  echo "$as_me:$LINENO: result: $LD" >&5
5574echo "${ECHO_T}$LD" >&6
5575else
5576  echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
5578fi
5579test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5580echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5581   { (exit 1); exit 1; }; }
5582echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5583echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5584if test "${lt_cv_prog_gnu_ld+set}" = set; then
5585  echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5588case `$LD -v 2>&1 </dev/null` in
5589*GNU* | *'with BFD'*)
5590  lt_cv_prog_gnu_ld=yes
5591  ;;
5592*)
5593  lt_cv_prog_gnu_ld=no
5594  ;;
5595esac
5596fi
5597echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5598echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5599with_gnu_ld=$lt_cv_prog_gnu_ld
5600
5601
5602echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5603echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5604if test "${lt_cv_ld_reload_flag+set}" = set; then
5605  echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607  lt_cv_ld_reload_flag='-r'
5608fi
5609echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5610echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5611reload_flag=$lt_cv_ld_reload_flag
5612case $reload_flag in
5613"" | " "*) ;;
5614*) reload_flag=" $reload_flag" ;;
5615esac
5616reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617case $host_os in
5618  darwin*)
5619    if test "$GCC" = yes; then
5620      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5621    else
5622      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623    fi
5624    ;;
5625esac
5626
5627echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5628echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5629if test "${lt_cv_path_NM+set}" = set; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  if test -n "$NM"; then
5633  # Let the user override the test.
5634  lt_cv_path_NM="$NM"
5635else
5636  lt_nm_to_check="${ac_tool_prefix}nm"
5637  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5638    lt_nm_to_check="$lt_nm_to_check nm"
5639  fi
5640  for lt_tmp_nm in $lt_nm_to_check; do
5641    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5643      IFS="$lt_save_ifs"
5644      test -z "$ac_dir" && ac_dir=.
5645      tmp_nm="$ac_dir/$lt_tmp_nm"
5646      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5647	# Check to see if the nm accepts a BSD-compat flag.
5648	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649	#   nm: unknown option "B" ignored
5650	# Tru64's nm complains that /dev/null is an invalid object file
5651	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5652	*/dev/null* | *'Invalid file or object type'*)
5653	  lt_cv_path_NM="$tmp_nm -B"
5654	  break
5655	  ;;
5656	*)
5657	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5658	  */dev/null*)
5659	    lt_cv_path_NM="$tmp_nm -p"
5660	    break
5661	    ;;
5662	  *)
5663	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5664	    continue # so that we can try to find one that supports BSD flags
5665	    ;;
5666	  esac
5667	  ;;
5668	esac
5669      fi
5670    done
5671    IFS="$lt_save_ifs"
5672  done
5673  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5674fi
5675fi
5676echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5677echo "${ECHO_T}$lt_cv_path_NM" >&6
5678NM="$lt_cv_path_NM"
5679
5680echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5681echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5682if test "${lt_cv_deplibs_check_method+set}" = set; then
5683  echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685  lt_cv_file_magic_cmd='$MAGIC_CMD'
5686lt_cv_file_magic_test_file=
5687lt_cv_deplibs_check_method='unknown'
5688# Need to set the preceding variable on all platforms that support
5689# interlibrary dependencies.
5690# 'none' -- dependencies not supported.
5691# `unknown' -- same as none, but documents that we really don't know.
5692# 'pass_all' -- all dependencies passed with no checks.
5693# 'test_compile' -- check by making test program.
5694# 'file_magic [[regex]]' -- check by looking for files in library path
5695# which responds to the $file_magic_cmd with a given extended regex.
5696# If you have `file' or equivalent on your system and you're not sure
5697# whether `pass_all' will *always* work, you probably want this one.
5698
5699case $host_os in
5700aix4* | aix5*)
5701  lt_cv_deplibs_check_method=pass_all
5702  ;;
5703
5704beos*)
5705  lt_cv_deplibs_check_method=pass_all
5706  ;;
5707
5708bsdi[45]*)
5709  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5710  lt_cv_file_magic_cmd='/usr/bin/file -L'
5711  lt_cv_file_magic_test_file=/shlib/libc.so
5712  ;;
5713
5714cygwin*)
5715  # func_win32_libid is a shell function defined in ltmain.sh
5716  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717  lt_cv_file_magic_cmd='func_win32_libid'
5718  ;;
5719
5720mingw* | pw32*)
5721  # Base MSYS/MinGW do not provide the 'file' command needed by
5722  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5723  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5724  lt_cv_file_magic_cmd='$OBJDUMP -f'
5725  ;;
5726
5727darwin* | rhapsody*)
5728  lt_cv_deplibs_check_method=pass_all
5729  ;;
5730
5731freebsd* | kfreebsd*-gnu | dragonfly*)
5732  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5733    case $host_cpu in
5734    i*86 )
5735      # Not sure whether the presence of OpenBSD here was a mistake.
5736      # Let's accept both of them until this is cleared up.
5737      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5738      lt_cv_file_magic_cmd=/usr/bin/file
5739      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5740      ;;
5741    esac
5742  else
5743    lt_cv_deplibs_check_method=pass_all
5744  fi
5745  ;;
5746
5747gnu*)
5748  lt_cv_deplibs_check_method=pass_all
5749  ;;
5750
5751hpux10.20* | hpux11*)
5752  lt_cv_file_magic_cmd=/usr/bin/file
5753  case $host_cpu in
5754  ia64*)
5755    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5756    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5757    ;;
5758  hppa*64*)
5759    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]'
5760    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5761    ;;
5762  *)
5763    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5764    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5765    ;;
5766  esac
5767  ;;
5768
5769interix3*)
5770  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5771  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5772  ;;
5773
5774irix5* | irix6* | nonstopux*)
5775  case $LD in
5776  *-32|*"-32 ") libmagic=32-bit;;
5777  *-n32|*"-n32 ") libmagic=N32;;
5778  *-64|*"-64 ") libmagic=64-bit;;
5779  *) libmagic=never-match;;
5780  esac
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784# This must be Linux ELF.
5785linux*)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789netbsd*)
5790  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792  else
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5794  fi
5795  ;;
5796
5797newos6*)
5798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5799  lt_cv_file_magic_cmd=/usr/bin/file
5800  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5801  ;;
5802
5803nto-qnx*)
5804  lt_cv_deplibs_check_method=unknown
5805  ;;
5806
5807openbsd*)
5808  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5810  else
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5812  fi
5813  ;;
5814
5815osf3* | osf4* | osf5*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819solaris*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823sysv4 | sysv4.3*)
5824  case $host_vendor in
5825  motorola)
5826    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]'
5827    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5828    ;;
5829  ncr)
5830    lt_cv_deplibs_check_method=pass_all
5831    ;;
5832  sequent)
5833    lt_cv_file_magic_cmd='/bin/file'
5834    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5835    ;;
5836  sni)
5837    lt_cv_file_magic_cmd='/bin/file'
5838    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5839    lt_cv_file_magic_test_file=/lib/libc.so
5840    ;;
5841  siemens)
5842    lt_cv_deplibs_check_method=pass_all
5843    ;;
5844  pc)
5845    lt_cv_deplibs_check_method=pass_all
5846    ;;
5847  esac
5848  ;;
5849
5850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5851  lt_cv_deplibs_check_method=pass_all
5852  ;;
5853esac
5854
5855fi
5856echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5857echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5858file_magic_cmd=$lt_cv_file_magic_cmd
5859deplibs_check_method=$lt_cv_deplibs_check_method
5860test -z "$deplibs_check_method" && deplibs_check_method=unknown
5861
5862
5863
5864
5865# If no C compiler was specified, use CC.
5866LTCC=${LTCC-"$CC"}
5867
5868# If no C compiler flags were specified, use CFLAGS.
5869LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5870
5871# Allow CC to be a program name with arguments.
5872compiler=$CC
5873
5874# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5875if test "${enable_libtool_lock+set}" = set; then
5876  enableval="$enable_libtool_lock"
5877
5878fi;
5879test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5880
5881# Some flags need to be propagated to the compiler or linker for good
5882# libtool support.
5883case $host in
5884ia64-*-hpux*)
5885  # Find out which ABI we are using.
5886  echo 'int i;' > conftest.$ac_ext
5887  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888  (eval $ac_compile) 2>&5
5889  ac_status=$?
5890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891  (exit $ac_status); }; then
5892    case `/usr/bin/file conftest.$ac_objext` in
5893    *ELF-32*)
5894      HPUX_IA64_MODE="32"
5895      ;;
5896    *ELF-64*)
5897      HPUX_IA64_MODE="64"
5898      ;;
5899    esac
5900  fi
5901  rm -rf conftest*
5902  ;;
5903*-*-irix6*)
5904  # Find out which ABI we are using.
5905  echo '#line 5905 "configure"' > conftest.$ac_ext
5906  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907  (eval $ac_compile) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; then
5911   if test "$lt_cv_prog_gnu_ld" = yes; then
5912    case `/usr/bin/file conftest.$ac_objext` in
5913    *32-bit*)
5914      LD="${LD-ld} -melf32bsmip"
5915      ;;
5916    *N32*)
5917      LD="${LD-ld} -melf32bmipn32"
5918      ;;
5919    *64-bit*)
5920      LD="${LD-ld} -melf64bmip"
5921      ;;
5922    esac
5923   else
5924    case `/usr/bin/file conftest.$ac_objext` in
5925    *32-bit*)
5926      LD="${LD-ld} -32"
5927      ;;
5928    *N32*)
5929      LD="${LD-ld} -n32"
5930      ;;
5931    *64-bit*)
5932      LD="${LD-ld} -64"
5933      ;;
5934    esac
5935   fi
5936  fi
5937  rm -rf conftest*
5938  ;;
5939
5940x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5941  # Find out which ABI we are using.
5942  echo 'int i;' > conftest.$ac_ext
5943  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944  (eval $ac_compile) 2>&5
5945  ac_status=$?
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); }; then
5948    case `/usr/bin/file conftest.o` in
5949    *32-bit*)
5950      case $host in
5951        x86_64-*linux*)
5952          LD="${LD-ld} -m elf_i386"
5953          ;;
5954        ppc64-*linux*|powerpc64-*linux*)
5955          LD="${LD-ld} -m elf32ppclinux"
5956          ;;
5957        s390x-*linux*)
5958          LD="${LD-ld} -m elf_s390"
5959          ;;
5960        sparc64-*linux*)
5961          LD="${LD-ld} -m elf32_sparc"
5962          ;;
5963      esac
5964      ;;
5965    *64-bit*)
5966      case $host in
5967        x86_64-*linux*)
5968          LD="${LD-ld} -m elf_x86_64"
5969          ;;
5970        ppc*-*linux*|powerpc*-*linux*)
5971          LD="${LD-ld} -m elf64ppc"
5972          ;;
5973        s390*-*linux*)
5974          LD="${LD-ld} -m elf64_s390"
5975          ;;
5976        sparc*-*linux*)
5977          LD="${LD-ld} -m elf64_sparc"
5978          ;;
5979      esac
5980      ;;
5981    esac
5982  fi
5983  rm -rf conftest*
5984  ;;
5985
5986*-*-sco3.2v5*)
5987  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5988  SAVE_CFLAGS="$CFLAGS"
5989  CFLAGS="$CFLAGS -belf"
5990  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5991echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5992if test "${lt_cv_cc_needs_belf+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  ac_ext=c
5996ac_cpp='$CPP $CPPFLAGS'
5997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999ac_compiler_gnu=$ac_cv_c_compiler_gnu
6000
6001     cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h.  */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h.  */
6007
6008int
6009main ()
6010{
6011
6012  ;
6013  return 0;
6014}
6015_ACEOF
6016rm -f conftest.$ac_objext conftest$ac_exeext
6017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018  (eval $ac_link) 2>conftest.er1
6019  ac_status=$?
6020  grep -v '^ *+' conftest.er1 >conftest.err
6021  rm -f conftest.er1
6022  cat conftest.err >&5
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); } &&
6025	 { ac_try='test -z "$ac_c_werror_flag"
6026			 || test ! -s conftest.err'
6027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028  (eval $ac_try) 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }; } &&
6032	 { ac_try='test -s conftest$ac_exeext'
6033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034  (eval $ac_try) 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); }; }; then
6038  lt_cv_cc_needs_belf=yes
6039else
6040  echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043lt_cv_cc_needs_belf=no
6044fi
6045rm -f conftest.err conftest.$ac_objext \
6046      conftest$ac_exeext conftest.$ac_ext
6047     ac_ext=c
6048ac_cpp='$CPP $CPPFLAGS'
6049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051ac_compiler_gnu=$ac_cv_c_compiler_gnu
6052
6053fi
6054echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6055echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6056  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6057    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6058    CFLAGS="$SAVE_CFLAGS"
6059  fi
6060  ;;
6061sparc*-*solaris*)
6062  # Find out which ABI we are using.
6063  echo 'int i;' > conftest.$ac_ext
6064  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065  (eval $ac_compile) 2>&5
6066  ac_status=$?
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); }; then
6069    case `/usr/bin/file conftest.o` in
6070    *64-bit*)
6071      case $lt_cv_prog_gnu_ld in
6072      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6073      *)    LD="${LD-ld} -64" ;;
6074      esac
6075      ;;
6076    esac
6077  fi
6078  rm -rf conftest*
6079  ;;
6080
6081
6082esac
6083
6084need_locks="$enable_libtool_lock"
6085
6086
6087ac_ext=c
6088ac_cpp='$CPP $CPPFLAGS'
6089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6093echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6094# On Suns, sometimes $CPP names a directory.
6095if test -n "$CPP" && test -d "$CPP"; then
6096  CPP=
6097fi
6098if test -z "$CPP"; then
6099  if test "${ac_cv_prog_CPP+set}" = set; then
6100  echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102      # Double quotes because CPP needs to be expanded
6103    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6104    do
6105      ac_preproc_ok=false
6106for ac_c_preproc_warn_flag in '' yes
6107do
6108  # Use a header file that comes with gcc, so configuring glibc
6109  # with a fresh cross-compiler works.
6110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111  # <limits.h> exists even on freestanding compilers.
6112  # On the NeXT, cc -E runs the code through the compiler's parser,
6113  # not just through cpp. "Syntax error" is here to catch this case.
6114  cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h.  */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h.  */
6120#ifdef __STDC__
6121# include <limits.h>
6122#else
6123# include <assert.h>
6124#endif
6125		     Syntax error
6126_ACEOF
6127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129  ac_status=$?
6130  grep -v '^ *+' conftest.er1 >conftest.err
6131  rm -f conftest.er1
6132  cat conftest.err >&5
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); } >/dev/null; then
6135  if test -s conftest.err; then
6136    ac_cpp_err=$ac_c_preproc_warn_flag
6137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138  else
6139    ac_cpp_err=
6140  fi
6141else
6142  ac_cpp_err=yes
6143fi
6144if test -z "$ac_cpp_err"; then
6145  :
6146else
6147  echo "$as_me: failed program was:" >&5
6148sed 's/^/| /' conftest.$ac_ext >&5
6149
6150  # Broken: fails on valid input.
6151continue
6152fi
6153rm -f conftest.err conftest.$ac_ext
6154
6155  # OK, works on sane cases.  Now check whether non-existent headers
6156  # can be detected and how.
6157  cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h.  */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h.  */
6163#include <ac_nonexistent.h>
6164_ACEOF
6165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } >/dev/null; then
6173  if test -s conftest.err; then
6174    ac_cpp_err=$ac_c_preproc_warn_flag
6175    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176  else
6177    ac_cpp_err=
6178  fi
6179else
6180  ac_cpp_err=yes
6181fi
6182if test -z "$ac_cpp_err"; then
6183  # Broken: success on invalid input.
6184continue
6185else
6186  echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
6189  # Passes both tests.
6190ac_preproc_ok=:
6191break
6192fi
6193rm -f conftest.err conftest.$ac_ext
6194
6195done
6196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6197rm -f conftest.err conftest.$ac_ext
6198if $ac_preproc_ok; then
6199  break
6200fi
6201
6202    done
6203    ac_cv_prog_CPP=$CPP
6204
6205fi
6206  CPP=$ac_cv_prog_CPP
6207else
6208  ac_cv_prog_CPP=$CPP
6209fi
6210echo "$as_me:$LINENO: result: $CPP" >&5
6211echo "${ECHO_T}$CPP" >&6
6212ac_preproc_ok=false
6213for ac_c_preproc_warn_flag in '' yes
6214do
6215  # Use a header file that comes with gcc, so configuring glibc
6216  # with a fresh cross-compiler works.
6217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6218  # <limits.h> exists even on freestanding compilers.
6219  # On the NeXT, cc -E runs the code through the compiler's parser,
6220  # not just through cpp. "Syntax error" is here to catch this case.
6221  cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h.  */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h.  */
6227#ifdef __STDC__
6228# include <limits.h>
6229#else
6230# include <assert.h>
6231#endif
6232		     Syntax error
6233_ACEOF
6234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6235  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6236  ac_status=$?
6237  grep -v '^ *+' conftest.er1 >conftest.err
6238  rm -f conftest.er1
6239  cat conftest.err >&5
6240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241  (exit $ac_status); } >/dev/null; then
6242  if test -s conftest.err; then
6243    ac_cpp_err=$ac_c_preproc_warn_flag
6244    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6245  else
6246    ac_cpp_err=
6247  fi
6248else
6249  ac_cpp_err=yes
6250fi
6251if test -z "$ac_cpp_err"; then
6252  :
6253else
6254  echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257  # Broken: fails on valid input.
6258continue
6259fi
6260rm -f conftest.err conftest.$ac_ext
6261
6262  # OK, works on sane cases.  Now check whether non-existent headers
6263  # can be detected and how.
6264  cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h.  */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h.  */
6270#include <ac_nonexistent.h>
6271_ACEOF
6272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274  ac_status=$?
6275  grep -v '^ *+' conftest.er1 >conftest.err
6276  rm -f conftest.er1
6277  cat conftest.err >&5
6278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279  (exit $ac_status); } >/dev/null; then
6280  if test -s conftest.err; then
6281    ac_cpp_err=$ac_c_preproc_warn_flag
6282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283  else
6284    ac_cpp_err=
6285  fi
6286else
6287  ac_cpp_err=yes
6288fi
6289if test -z "$ac_cpp_err"; then
6290  # Broken: success on invalid input.
6291continue
6292else
6293  echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296  # Passes both tests.
6297ac_preproc_ok=:
6298break
6299fi
6300rm -f conftest.err conftest.$ac_ext
6301
6302done
6303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6304rm -f conftest.err conftest.$ac_ext
6305if $ac_preproc_ok; then
6306  :
6307else
6308  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6309See \`config.log' for more details." >&5
6310echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6311See \`config.log' for more details." >&2;}
6312   { (exit 1); exit 1; }; }
6313fi
6314
6315ac_ext=c
6316ac_cpp='$CPP $CPPFLAGS'
6317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320
6321
6322echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6323echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6324if test "${ac_cv_header_stdc+set}" = set; then
6325  echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327  cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h.  */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h.  */
6333#include <stdlib.h>
6334#include <stdarg.h>
6335#include <string.h>
6336#include <float.h>
6337
6338int
6339main ()
6340{
6341
6342  ;
6343  return 0;
6344}
6345_ACEOF
6346rm -f conftest.$ac_objext
6347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348  (eval $ac_compile) 2>conftest.er1
6349  ac_status=$?
6350  grep -v '^ *+' conftest.er1 >conftest.err
6351  rm -f conftest.er1
6352  cat conftest.err >&5
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); } &&
6355	 { ac_try='test -z "$ac_c_werror_flag"
6356			 || test ! -s conftest.err'
6357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358  (eval $ac_try) 2>&5
6359  ac_status=$?
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); }; } &&
6362	 { ac_try='test -s conftest.$ac_objext'
6363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364  (eval $ac_try) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); }; }; then
6368  ac_cv_header_stdc=yes
6369else
6370  echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373ac_cv_header_stdc=no
6374fi
6375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376
6377if test $ac_cv_header_stdc = yes; then
6378  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6379  cat >conftest.$ac_ext <<_ACEOF
6380/* confdefs.h.  */
6381_ACEOF
6382cat confdefs.h >>conftest.$ac_ext
6383cat >>conftest.$ac_ext <<_ACEOF
6384/* end confdefs.h.  */
6385#include <string.h>
6386
6387_ACEOF
6388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389  $EGREP "memchr" >/dev/null 2>&1; then
6390  :
6391else
6392  ac_cv_header_stdc=no
6393fi
6394rm -f conftest*
6395
6396fi
6397
6398if test $ac_cv_header_stdc = yes; then
6399  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6400  cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h.  */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h.  */
6406#include <stdlib.h>
6407
6408_ACEOF
6409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410  $EGREP "free" >/dev/null 2>&1; then
6411  :
6412else
6413  ac_cv_header_stdc=no
6414fi
6415rm -f conftest*
6416
6417fi
6418
6419if test $ac_cv_header_stdc = yes; then
6420  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6421  if test "$cross_compiling" = yes; then
6422  :
6423else
6424  cat >conftest.$ac_ext <<_ACEOF
6425/* confdefs.h.  */
6426_ACEOF
6427cat confdefs.h >>conftest.$ac_ext
6428cat >>conftest.$ac_ext <<_ACEOF
6429/* end confdefs.h.  */
6430#include <ctype.h>
6431#if ((' ' & 0x0FF) == 0x020)
6432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6434#else
6435# define ISLOWER(c) \
6436		   (('a' <= (c) && (c) <= 'i') \
6437		     || ('j' <= (c) && (c) <= 'r') \
6438		     || ('s' <= (c) && (c) <= 'z'))
6439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6440#endif
6441
6442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6443int
6444main ()
6445{
6446  int i;
6447  for (i = 0; i < 256; i++)
6448    if (XOR (islower (i), ISLOWER (i))
6449	|| toupper (i) != TOUPPER (i))
6450      exit(2);
6451  exit (0);
6452}
6453_ACEOF
6454rm -f conftest$ac_exeext
6455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6456  (eval $ac_link) 2>&5
6457  ac_status=$?
6458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461  (eval $ac_try) 2>&5
6462  ac_status=$?
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); }; }; then
6465  :
6466else
6467  echo "$as_me: program exited with status $ac_status" >&5
6468echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471( exit $ac_status )
6472ac_cv_header_stdc=no
6473fi
6474rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6475fi
6476fi
6477fi
6478echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6479echo "${ECHO_T}$ac_cv_header_stdc" >&6
6480if test $ac_cv_header_stdc = yes; then
6481
6482cat >>confdefs.h <<\_ACEOF
6483#define STDC_HEADERS 1
6484_ACEOF
6485
6486fi
6487
6488# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6499		  inttypes.h stdint.h unistd.h
6500do
6501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6502echo "$as_me:$LINENO: checking for $ac_header" >&5
6503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6504if eval "test \"\${$as_ac_Header+set}\" = set"; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507  cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h.  */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h.  */
6513$ac_includes_default
6514
6515#include <$ac_header>
6516_ACEOF
6517rm -f conftest.$ac_objext
6518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519  (eval $ac_compile) 2>conftest.er1
6520  ac_status=$?
6521  grep -v '^ *+' conftest.er1 >conftest.err
6522  rm -f conftest.er1
6523  cat conftest.err >&5
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); } &&
6526	 { ac_try='test -z "$ac_c_werror_flag"
6527			 || test ! -s conftest.err'
6528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529  (eval $ac_try) 2>&5
6530  ac_status=$?
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); }; } &&
6533	 { ac_try='test -s conftest.$ac_objext'
6534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535  (eval $ac_try) 2>&5
6536  ac_status=$?
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); }; }; then
6539  eval "$as_ac_Header=yes"
6540else
6541  echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544eval "$as_ac_Header=no"
6545fi
6546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547fi
6548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6550if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551  cat >>confdefs.h <<_ACEOF
6552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553_ACEOF
6554
6555fi
6556
6557done
6558
6559
6560
6561for ac_header in dlfcn.h
6562do
6563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6564if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565  echo "$as_me:$LINENO: checking for $ac_header" >&5
6566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6567if eval "test \"\${$as_ac_Header+set}\" = set"; then
6568  echo $ECHO_N "(cached) $ECHO_C" >&6
6569fi
6570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572else
6573  # Is the header compilable?
6574echo "$as_me:$LINENO: checking $ac_header usability" >&5
6575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6576cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h.  */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h.  */
6582$ac_includes_default
6583#include <$ac_header>
6584_ACEOF
6585rm -f conftest.$ac_objext
6586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587  (eval $ac_compile) 2>conftest.er1
6588  ac_status=$?
6589  grep -v '^ *+' conftest.er1 >conftest.err
6590  rm -f conftest.er1
6591  cat conftest.err >&5
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); } &&
6594	 { ac_try='test -z "$ac_c_werror_flag"
6595			 || test ! -s conftest.err'
6596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597  (eval $ac_try) 2>&5
6598  ac_status=$?
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); }; } &&
6601	 { ac_try='test -s conftest.$ac_objext'
6602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603  (eval $ac_try) 2>&5
6604  ac_status=$?
6605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); }; }; then
6607  ac_header_compiler=yes
6608else
6609  echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612ac_header_compiler=no
6613fi
6614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6616echo "${ECHO_T}$ac_header_compiler" >&6
6617
6618# Is the header present?
6619echo "$as_me:$LINENO: checking $ac_header presence" >&5
6620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6621cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h.  */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h.  */
6627#include <$ac_header>
6628_ACEOF
6629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6631  ac_status=$?
6632  grep -v '^ *+' conftest.er1 >conftest.err
6633  rm -f conftest.er1
6634  cat conftest.err >&5
6635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636  (exit $ac_status); } >/dev/null; then
6637  if test -s conftest.err; then
6638    ac_cpp_err=$ac_c_preproc_warn_flag
6639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6640  else
6641    ac_cpp_err=
6642  fi
6643else
6644  ac_cpp_err=yes
6645fi
6646if test -z "$ac_cpp_err"; then
6647  ac_header_preproc=yes
6648else
6649  echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652  ac_header_preproc=no
6653fi
6654rm -f conftest.err conftest.$ac_ext
6655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6656echo "${ECHO_T}$ac_header_preproc" >&6
6657
6658# So?  What about this header?
6659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6660  yes:no: )
6661    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6665    ac_header_preproc=yes
6666    ;;
6667  no:yes:* )
6668    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6670    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6671echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6672    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6674    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6675echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6676    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6678    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6680    (
6681      cat <<\_ASBOX
6682## ---------------------------------------- ##
6683## Report this to symphony@list.coin-or.org ##
6684## ---------------------------------------- ##
6685_ASBOX
6686    ) |
6687      sed "s/^/$as_me: WARNING:     /" >&2
6688    ;;
6689esac
6690echo "$as_me:$LINENO: checking for $ac_header" >&5
6691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6692if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695  eval "$as_ac_Header=\$ac_header_preproc"
6696fi
6697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6699
6700fi
6701if test `eval echo '${'$as_ac_Header'}'` = yes; then
6702  cat >>confdefs.h <<_ACEOF
6703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704_ACEOF
6705
6706fi
6707
6708done
6709
6710
6711
6712if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6713    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6714    (test "X$CXX" != "Xg++"))) ; then
6715  ac_ext=cc
6716ac_cpp='$CXXCPP $CPPFLAGS'
6717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6720echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6721echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6722if test -z "$CXXCPP"; then
6723  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726      # Double quotes because CXXCPP needs to be expanded
6727    for CXXCPP in "$CXX -E" "/lib/cpp"
6728    do
6729      ac_preproc_ok=false
6730for ac_cxx_preproc_warn_flag in '' yes
6731do
6732  # Use a header file that comes with gcc, so configuring glibc
6733  # with a fresh cross-compiler works.
6734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6735  # <limits.h> exists even on freestanding compilers.
6736  # On the NeXT, cc -E runs the code through the compiler's parser,
6737  # not just through cpp. "Syntax error" is here to catch this case.
6738  cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h.  */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h.  */
6744#ifdef __STDC__
6745# include <limits.h>
6746#else
6747# include <assert.h>
6748#endif
6749		     Syntax error
6750_ACEOF
6751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6752  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6753  ac_status=$?
6754  grep -v '^ *+' conftest.er1 >conftest.err
6755  rm -f conftest.er1
6756  cat conftest.err >&5
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } >/dev/null; then
6759  if test -s conftest.err; then
6760    ac_cpp_err=$ac_cxx_preproc_warn_flag
6761    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6762  else
6763    ac_cpp_err=
6764  fi
6765else
6766  ac_cpp_err=yes
6767fi
6768if test -z "$ac_cpp_err"; then
6769  :
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774  # Broken: fails on valid input.
6775continue
6776fi
6777rm -f conftest.err conftest.$ac_ext
6778
6779  # OK, works on sane cases.  Now check whether non-existent headers
6780  # can be detected and how.
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#include <ac_nonexistent.h>
6788_ACEOF
6789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791  ac_status=$?
6792  grep -v '^ *+' conftest.er1 >conftest.err
6793  rm -f conftest.er1
6794  cat conftest.err >&5
6795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); } >/dev/null; then
6797  if test -s conftest.err; then
6798    ac_cpp_err=$ac_cxx_preproc_warn_flag
6799    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6800  else
6801    ac_cpp_err=
6802  fi
6803else
6804  ac_cpp_err=yes
6805fi
6806if test -z "$ac_cpp_err"; then
6807  # Broken: success on invalid input.
6808continue
6809else
6810  echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813  # Passes both tests.
6814ac_preproc_ok=:
6815break
6816fi
6817rm -f conftest.err conftest.$ac_ext
6818
6819done
6820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6821rm -f conftest.err conftest.$ac_ext
6822if $ac_preproc_ok; then
6823  break
6824fi
6825
6826    done
6827    ac_cv_prog_CXXCPP=$CXXCPP
6828
6829fi
6830  CXXCPP=$ac_cv_prog_CXXCPP
6831else
6832  ac_cv_prog_CXXCPP=$CXXCPP
6833fi
6834echo "$as_me:$LINENO: result: $CXXCPP" >&5
6835echo "${ECHO_T}$CXXCPP" >&6
6836ac_preproc_ok=false
6837for ac_cxx_preproc_warn_flag in '' yes
6838do
6839  # Use a header file that comes with gcc, so configuring glibc
6840  # with a fresh cross-compiler works.
6841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842  # <limits.h> exists even on freestanding compilers.
6843  # On the NeXT, cc -E runs the code through the compiler's parser,
6844  # not just through cpp. "Syntax error" is here to catch this case.
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#ifdef __STDC__
6852# include <limits.h>
6853#else
6854# include <assert.h>
6855#endif
6856		     Syntax error
6857_ACEOF
6858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6860  ac_status=$?
6861  grep -v '^ *+' conftest.er1 >conftest.err
6862  rm -f conftest.er1
6863  cat conftest.err >&5
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } >/dev/null; then
6866  if test -s conftest.err; then
6867    ac_cpp_err=$ac_cxx_preproc_warn_flag
6868    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6869  else
6870    ac_cpp_err=
6871  fi
6872else
6873  ac_cpp_err=yes
6874fi
6875if test -z "$ac_cpp_err"; then
6876  :
6877else
6878  echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881  # Broken: fails on valid input.
6882continue
6883fi
6884rm -f conftest.err conftest.$ac_ext
6885
6886  # OK, works on sane cases.  Now check whether non-existent headers
6887  # can be detected and how.
6888  cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h.  */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h.  */
6894#include <ac_nonexistent.h>
6895_ACEOF
6896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898  ac_status=$?
6899  grep -v '^ *+' conftest.er1 >conftest.err
6900  rm -f conftest.er1
6901  cat conftest.err >&5
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } >/dev/null; then
6904  if test -s conftest.err; then
6905    ac_cpp_err=$ac_cxx_preproc_warn_flag
6906    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6907  else
6908    ac_cpp_err=
6909  fi
6910else
6911  ac_cpp_err=yes
6912fi
6913if test -z "$ac_cpp_err"; then
6914  # Broken: success on invalid input.
6915continue
6916else
6917  echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920  # Passes both tests.
6921ac_preproc_ok=:
6922break
6923fi
6924rm -f conftest.err conftest.$ac_ext
6925
6926done
6927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6928rm -f conftest.err conftest.$ac_ext
6929if $ac_preproc_ok; then
6930  :
6931else
6932  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6933See \`config.log' for more details." >&5
6934echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6935See \`config.log' for more details." >&2;}
6936   { (exit 1); exit 1; }; }
6937fi
6938
6939ac_ext=cc
6940ac_cpp='$CXXCPP $CPPFLAGS'
6941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6944
6945fi
6946
6947ac_ext=f
6948ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6949ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6951if test -n "$ac_tool_prefix"; then
6952  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6953  do
6954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6956echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958if test "${ac_cv_prog_F77+set}" = set; then
6959  echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961  if test -n "$F77"; then
6962  ac_cv_prog_F77="$F77" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967  IFS=$as_save_IFS
6968  test -z "$as_dir" && as_dir=.
6969  for ac_exec_ext in '' $ac_executable_extensions; do
6970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973    break 2
6974  fi
6975done
6976done
6977
6978fi
6979fi
6980F77=$ac_cv_prog_F77
6981if test -n "$F77"; then
6982  echo "$as_me:$LINENO: result: $F77" >&5
6983echo "${ECHO_T}$F77" >&6
6984else
6985  echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
6987fi
6988
6989    test -n "$F77" && break
6990  done
6991fi
6992if test -z "$F77"; then
6993  ac_ct_F77=$F77
6994  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6995do
6996  # Extract the first word of "$ac_prog", so it can be a program name with args.
6997set dummy $ac_prog; ac_word=$2
6998echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7000if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  if test -n "$ac_ct_F77"; then
7004  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009  IFS=$as_save_IFS
7010  test -z "$as_dir" && as_dir=.
7011  for ac_exec_ext in '' $ac_executable_extensions; do
7012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013    ac_cv_prog_ac_ct_F77="$ac_prog"
7014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015    break 2
7016  fi
7017done
7018done
7019
7020fi
7021fi
7022ac_ct_F77=$ac_cv_prog_ac_ct_F77
7023if test -n "$ac_ct_F77"; then
7024  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7025echo "${ECHO_T}$ac_ct_F77" >&6
7026else
7027  echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6
7029fi
7030
7031  test -n "$ac_ct_F77" && break
7032done
7033
7034  F77=$ac_ct_F77
7035fi
7036
7037
7038# Provide some information about the compiler.
7039echo "$as_me:7039:" \
7040     "checking for Fortran 77 compiler version" >&5
7041ac_compiler=`set X $ac_compile; echo $2`
7042{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7043  (eval $ac_compiler --version </dev/null >&5) 2>&5
7044  ac_status=$?
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); }
7047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7048  (eval $ac_compiler -v </dev/null >&5) 2>&5
7049  ac_status=$?
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); }
7052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7053  (eval $ac_compiler -V </dev/null >&5) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }
7057rm -f a.out
7058
7059# If we don't use `.F' as extension, the preprocessor is not run on the
7060# input file.  (Note that this only needs to work for GNU compilers.)
7061ac_save_ext=$ac_ext
7062ac_ext=F
7063echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7064echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7065if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068  cat >conftest.$ac_ext <<_ACEOF
7069      program main
7070#ifndef __GNUC__
7071       choke me
7072#endif
7073
7074      end
7075_ACEOF
7076rm -f conftest.$ac_objext
7077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078  (eval $ac_compile) 2>conftest.er1
7079  ac_status=$?
7080  grep -v '^ *+' conftest.er1 >conftest.err
7081  rm -f conftest.er1
7082  cat conftest.err >&5
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); } &&
7085	 { ac_try='test -z "$ac_f77_werror_flag"
7086			 || test ! -s conftest.err'
7087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088  (eval $ac_try) 2>&5
7089  ac_status=$?
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); }; } &&
7092	 { ac_try='test -s conftest.$ac_objext'
7093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094  (eval $ac_try) 2>&5
7095  ac_status=$?
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); }; }; then
7098  ac_compiler_gnu=yes
7099else
7100  echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103ac_compiler_gnu=no
7104fi
7105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7107
7108fi
7109echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7110echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7111ac_ext=$ac_save_ext
7112ac_test_FFLAGS=${FFLAGS+set}
7113ac_save_FFLAGS=$FFLAGS
7114FFLAGS=
7115echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7116echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7117if test "${ac_cv_prog_f77_g+set}" = set; then
7118  echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120  FFLAGS=-g
7121cat >conftest.$ac_ext <<_ACEOF
7122      program main
7123
7124      end
7125_ACEOF
7126rm -f conftest.$ac_objext
7127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7128  (eval $ac_compile) 2>conftest.er1
7129  ac_status=$?
7130  grep -v '^ *+' conftest.er1 >conftest.err
7131  rm -f conftest.er1
7132  cat conftest.err >&5
7133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134  (exit $ac_status); } &&
7135	 { ac_try='test -z "$ac_f77_werror_flag"
7136			 || test ! -s conftest.err'
7137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138  (eval $ac_try) 2>&5
7139  ac_status=$?
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); }; } &&
7142	 { ac_try='test -s conftest.$ac_objext'
7143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144  (eval $ac_try) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); }; }; then
7148  ac_cv_prog_f77_g=yes
7149else
7150  echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153ac_cv_prog_f77_g=no
7154fi
7155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7156
7157fi
7158echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7159echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7160if test "$ac_test_FFLAGS" = set; then
7161  FFLAGS=$ac_save_FFLAGS
7162elif test $ac_cv_prog_f77_g = yes; then
7163  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7164    FFLAGS="-g -O2"
7165  else
7166    FFLAGS="-g"
7167  fi
7168else
7169  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7170    FFLAGS="-O2"
7171  else
7172    FFLAGS=
7173  fi
7174fi
7175
7176G77=`test $ac_compiler_gnu = yes && echo yes`
7177ac_ext=cc
7178ac_cpp='$CXXCPP $CPPFLAGS'
7179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7182
7183
7184
7185# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7186
7187# find the maximum length of command line arguments
7188echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7189echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7190if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193    i=0
7194  teststring="ABCD"
7195
7196  case $build_os in
7197  msdosdjgpp*)
7198    # On DJGPP, this test can blow up pretty badly due to problems in libc
7199    # (any single argument exceeding 2000 bytes causes a buffer overrun
7200    # during glob expansion).  Even if it were fixed, the result of this
7201    # check would be larger than it should be.
7202    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7203    ;;
7204
7205  gnu*)
7206    # Under GNU Hurd, this test is not required because there is
7207    # no limit to the length of command line arguments.
7208    # Libtool will interpret -1 as no limit whatsoever
7209    lt_cv_sys_max_cmd_len=-1;
7210    ;;
7211
7212  cygwin* | mingw*)
7213    # On Win9x/ME, this test blows up -- it succeeds, but takes
7214    # about 5 minutes as the teststring grows exponentially.
7215    # Worse, since 9x/ME are not pre-emptively multitasking,
7216    # you end up with a "frozen" computer, even though with patience
7217    # the test eventually succeeds (with a max line length of 256k).
7218    # Instead, let's just punt: use the minimum linelength reported by
7219    # all of the supported platforms: 8192 (on NT/2K/XP).
7220    lt_cv_sys_max_cmd_len=8192;
7221    ;;
7222
7223  amigaos*)
7224    # On AmigaOS with pdksh, this test takes hours, literally.
7225    # So we just punt and use a minimum line length of 8192.
7226    lt_cv_sys_max_cmd_len=8192;
7227    ;;
7228
7229  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7230    # This has been around since 386BSD, at least.  Likely further.
7231    if test -x /sbin/sysctl; then
7232      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7233    elif test -x /usr/sbin/sysctl; then
7234      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7235    else
7236      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7237    fi
7238    # And add a safety zone
7239    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7240    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7241    ;;
7242
7243  interix*)
7244    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7245    lt_cv_sys_max_cmd_len=196608
7246    ;;
7247
7248  osf*)
7249    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7250    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7251    # nice to cause kernel panics so lets avoid the loop below.
7252    # First set a reasonable default.
7253    lt_cv_sys_max_cmd_len=16384
7254    #
7255    if test -x /sbin/sysconfig; then
7256      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7257        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7258      esac
7259    fi
7260    ;;
7261  sco3.2v5*)
7262    lt_cv_sys_max_cmd_len=102400
7263    ;;
7264  sysv5* | sco5v6* | sysv4.2uw2*)
7265    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7266    if test -n "$kargmax"; then
7267      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7268    else
7269      lt_cv_sys_max_cmd_len=32768
7270    fi
7271    ;;
7272  *)
7273    # If test is not a shell built-in, we'll probably end up computing a
7274    # maximum length that is only half of the actual maximum length, but
7275    # we can't tell.
7276    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7277    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7278	       = "XX$teststring") >/dev/null 2>&1 &&
7279	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7280	    lt_cv_sys_max_cmd_len=$new_result &&
7281	    test $i != 17 # 1/2 MB should be enough
7282    do
7283      i=`expr $i + 1`
7284      teststring=$teststring$teststring
7285    done
7286    teststring=
7287    # Add a significant safety factor because C++ compilers can tack on massive
7288    # amounts of additional arguments before passing them to the linker.
7289    # It appears as though 1/2 is a usable value.
7290    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7291    ;;
7292  esac
7293
7294fi
7295
7296if test -n $lt_cv_sys_max_cmd_len ; then
7297  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7298echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7299else
7300  echo "$as_me:$LINENO: result: none" >&5
7301echo "${ECHO_T}none" >&6
7302fi
7303
7304
7305
7306
7307# Check for command to grab the raw symbol name followed by C symbol from nm.
7308echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7309echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7310if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7311  echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313
7314# These are sane defaults that work on at least a few old systems.
7315# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7316
7317# Character class describing NM global symbol codes.
7318symcode='[BCDEGRST]'
7319
7320# Regexp to match symbols that can be accessed directly from C.
7321sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7322
7323# Transform an extracted symbol line into a proper C declaration
7324lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7325
7326# Transform an extracted symbol line into symbol name and symbol address
7327lt_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'"
7328
7329# Define system-specific variables.
7330case $host_os in
7331aix*)
7332  symcode='[BCDT]'
7333  ;;
7334cygwin* | mingw* | pw32*)
7335  symcode='[ABCDGISTW]'
7336  ;;
7337hpux*) # Its linker distinguishes data from code symbols
7338  if test "$host_cpu" = ia64; then
7339    symcode='[ABCDEGRST]'
7340  fi
7341  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7342  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'"
7343  ;;
7344linux*)
7345  if test "$host_cpu" = ia64; then
7346    symcode='[ABCDGIRSTW]'
7347    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7348    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'"
7349  fi
7350  ;;
7351irix* | nonstopux*)
7352  symcode='[BCDEGRST]'
7353  ;;
7354osf*)
7355  symcode='[BCDEGQRST]'
7356  ;;
7357solaris*)
7358  symcode='[BDRT]'
7359  ;;
7360sco3.2v5*)
7361  symcode='[DT]'
7362  ;;
7363sysv4.2uw2*)
7364  symcode='[DT]'
7365  ;;
7366sysv5* | sco5v6* | unixware* | OpenUNIX*)
7367  symcode='[ABDT]'
7368  ;;
7369sysv4)
7370  symcode='[DFNSTU]'
7371  ;;
7372esac
7373
7374# Handle CRLF in mingw tool chain
7375opt_cr=
7376case $build_os in
7377mingw*)
7378  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7379  ;;
7380esac
7381
7382# If we're using GNU nm, then use its standard symbol codes.
7383case `$NM -V 2>&1` in
7384*GNU* | *'with BFD'*)
7385  symcode='[ABCDGIRSTW]' ;;
7386esac
7387
7388# Try without a prefix undercore, then with it.
7389for ac_symprfx in "" "_"; do
7390
7391  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7392  symxfrm="\\1 $ac_symprfx\\2 \\2"
7393
7394  # Write the raw and C identifiers.
7395  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7396
7397  # Check to see that the pipe works correctly.
7398  pipe_works=no
7399
7400  rm -f conftest*
7401  cat > conftest.$ac_ext <<EOF
7402#ifdef __cplusplus
7403extern "C" {
7404#endif
7405char nm_test_var;
7406void nm_test_func(){}
7407#ifdef __cplusplus
7408}
7409#endif
7410int main(){nm_test_var='a';nm_test_func();return(0);}
7411EOF
7412
7413  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7414  (eval $ac_compile) 2>&5
7415  ac_status=$?
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); }; then
7418    # Now try to grab the symbols.
7419    nlist=conftest.nm
7420    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7421  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); } && test -s "$nlist"; then
7425      # Try sorting and uniquifying the output.
7426      if sort "$nlist" | uniq > "$nlist"T; then
7427	mv -f "$nlist"T "$nlist"
7428      else
7429	rm -f "$nlist"T
7430      fi
7431
7432      # Make sure that we snagged all the symbols we need.
7433      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7434	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7435	  cat <<EOF > conftest.$ac_ext
7436#ifdef __cplusplus
7437extern "C" {
7438#endif
7439
7440EOF
7441	  # Now generate the symbol file.
7442	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7443
7444	  cat <<EOF >> conftest.$ac_ext
7445#if defined (__STDC__) && __STDC__
7446# define lt_ptr_t void *
7447#else
7448# define lt_ptr_t char *
7449# define const
7450#endif
7451
7452/* The mapping between symbol names and symbols. */
7453const struct {
7454  const char *name;
7455  lt_ptr_t address;
7456}
7457lt_preloaded_symbols[] =
7458{
7459EOF
7460	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7461	  cat <<\EOF >> conftest.$ac_ext
7462  {0, (lt_ptr_t) 0}
7463};
7464
7465#ifdef __cplusplus
7466}
7467#endif
7468EOF
7469	  # Now try linking the two files.
7470	  mv conftest.$ac_objext conftstm.$ac_objext
7471	  lt_save_LIBS="$LIBS"
7472	  lt_save_CFLAGS="$CFLAGS"
7473	  LIBS="conftstm.$ac_objext"
7474	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7475	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476  (eval $ac_link) 2>&5
7477  ac_status=$?
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7480	    pipe_works=yes
7481	  fi
7482	  LIBS="$lt_save_LIBS"
7483	  CFLAGS="$lt_save_CFLAGS"
7484	else
7485	  echo "cannot find nm_test_func in $nlist" >&5
7486	fi
7487      else
7488	echo "cannot find nm_test_var in $nlist" >&5
7489      fi
7490    else
7491      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7492    fi
7493  else
7494    echo "$progname: failed program was:" >&5
7495    cat conftest.$ac_ext >&5
7496  fi
7497  rm -f conftest* conftst*
7498
7499  # Do not use the global_symbol_pipe unless it works.
7500  if test "$pipe_works" = yes; then
7501    break
7502  else
7503    lt_cv_sys_global_symbol_pipe=
7504  fi
7505done
7506
7507fi
7508
7509if test -z "$lt_cv_sys_global_symbol_pipe"; then
7510  lt_cv_sys_global_symbol_to_cdecl=
7511fi
7512if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7513  echo "$as_me:$LINENO: result: failed" >&5
7514echo "${ECHO_T}failed" >&6
7515else
7516  echo "$as_me:$LINENO: result: ok" >&5
7517echo "${ECHO_T}ok" >&6
7518fi
7519
7520echo "$as_me:$LINENO: checking for objdir" >&5
7521echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7522if test "${lt_cv_objdir+set}" = set; then
7523  echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525  rm -f .libs 2>/dev/null
7526mkdir .libs 2>/dev/null
7527if test -d .libs; then
7528  lt_cv_objdir=.libs
7529else
7530  # MS-DOS does not allow filenames that begin with a dot.
7531  lt_cv_objdir=_libs
7532fi
7533rmdir .libs 2>/dev/null
7534fi
7535echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7536echo "${ECHO_T}$lt_cv_objdir" >&6
7537objdir=$lt_cv_objdir
7538
7539
7540
7541
7542
7543case $host_os in
7544aix3*)
7545  # AIX sometimes has problems with the GCC collect2 program.  For some
7546  # reason, if we set the COLLECT_NAMES environment variable, the problems
7547  # vanish in a puff of smoke.
7548  if test "X${COLLECT_NAMES+set}" != Xset; then
7549    COLLECT_NAMES=
7550    export COLLECT_NAMES
7551  fi
7552  ;;
7553esac
7554
7555# Sed substitution that helps us do robust quoting.  It backslashifies
7556# metacharacters that are still active within double-quoted strings.
7557Xsed='sed -e 1s/^X//'
7558sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7559
7560# Same as above, but do not quote variable references.
7561double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7562
7563# Sed substitution to delay expansion of an escaped shell variable in a
7564# double_quote_subst'ed string.
7565delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7566
7567# Sed substitution to avoid accidental globbing in evaled expressions
7568no_glob_subst='s/\*/\\\*/g'
7569
7570# Constants:
7571rm="rm -f"
7572
7573# Global variables:
7574default_ofile=libtool
7575can_build_shared=yes
7576
7577# All known linkers require a `.a' archive for static linking (except MSVC,
7578# which needs '.lib').
7579libext=a
7580ltmain="$ac_aux_dir/ltmain.sh"
7581ofile="$default_ofile"
7582with_gnu_ld="$lt_cv_prog_gnu_ld"
7583
7584if test -n "$ac_tool_prefix"; then
7585  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7586set dummy ${ac_tool_prefix}ar; ac_word=$2
7587echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7589if test "${ac_cv_prog_AR+set}" = set; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592  if test -n "$AR"; then
7593  ac_cv_prog_AR="$AR" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598  IFS=$as_save_IFS
7599  test -z "$as_dir" && as_dir=.
7600  for ac_exec_ext in '' $ac_executable_extensions; do
7601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602    ac_cv_prog_AR="${ac_tool_prefix}ar"
7603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604    break 2
7605  fi
7606done
7607done
7608
7609fi
7610fi
7611AR=$ac_cv_prog_AR
7612if test -n "$AR"; then
7613  echo "$as_me:$LINENO: result: $AR" >&5
7614echo "${ECHO_T}$AR" >&6
7615else
7616  echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618fi
7619
7620fi
7621if test -z "$ac_cv_prog_AR"; then
7622  ac_ct_AR=$AR
7623  # Extract the first word of "ar", so it can be a program name with args.
7624set dummy ar; ac_word=$2
7625echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7627if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  if test -n "$ac_ct_AR"; then
7631  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638  for ac_exec_ext in '' $ac_executable_extensions; do
7639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640    ac_cv_prog_ac_ct_AR="ar"
7641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645done
7646
7647  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7648fi
7649fi
7650ac_ct_AR=$ac_cv_prog_ac_ct_AR
7651if test -n "$ac_ct_AR"; then
7652  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7653echo "${ECHO_T}$ac_ct_AR" >&6
7654else
7655  echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6
7657fi
7658
7659  AR=$ac_ct_AR
7660else
7661  AR="$ac_cv_prog_AR"
7662fi
7663
7664if test -n "$ac_tool_prefix"; then
7665  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7667echo "$as_me:$LINENO: checking for $ac_word" >&5
7668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7669if test "${ac_cv_prog_RANLIB+set}" = set; then
7670  echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672  if test -n "$RANLIB"; then
7673  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680  for ac_exec_ext in '' $ac_executable_extensions; do
7681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687done
7688
7689fi
7690fi
7691RANLIB=$ac_cv_prog_RANLIB
7692if test -n "$RANLIB"; then
7693  echo "$as_me:$LINENO: result: $RANLIB" >&5
7694echo "${ECHO_T}$RANLIB" >&6
7695else
7696  echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6
7698fi
7699
7700fi
7701if test -z "$ac_cv_prog_RANLIB"; then
7702  ac_ct_RANLIB=$RANLIB
7703  # Extract the first word of "ranlib", so it can be a program name with args.
7704set dummy ranlib; ac_word=$2
7705echo "$as_me:$LINENO: checking for $ac_word" >&5
7706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7707if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710  if test -n "$ac_ct_RANLIB"; then
7711  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718  for ac_exec_ext in '' $ac_executable_extensions; do
7719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720    ac_cv_prog_ac_ct_RANLIB="ranlib"
7721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725done
7726
7727  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7728fi
7729fi
7730ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7731if test -n "$ac_ct_RANLIB"; then
7732  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7733echo "${ECHO_T}$ac_ct_RANLIB" >&6
7734else
7735  echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737fi
7738
7739  RANLIB=$ac_ct_RANLIB
7740else
7741  RANLIB="$ac_cv_prog_RANLIB"
7742fi
7743
7744if test -n "$ac_tool_prefix"; then
7745  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7746set dummy ${ac_tool_prefix}strip; ac_word=$2
7747echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749if test "${ac_cv_prog_STRIP+set}" = set; then
7750  echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752  if test -n "$STRIP"; then
7753  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758  IFS=$as_save_IFS
7759  test -z "$as_dir" && as_dir=.
7760  for ac_exec_ext in '' $ac_executable_extensions; do
7761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764    break 2
7765  fi
7766done
7767done
7768
7769fi
7770fi
7771STRIP=$ac_cv_prog_STRIP
7772if test -n "$STRIP"; then
7773  echo "$as_me:$LINENO: result: $STRIP" >&5
7774echo "${ECHO_T}$STRIP" >&6
7775else
7776  echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6
7778fi
7779
7780fi
7781if test -z "$ac_cv_prog_STRIP"; then
7782  ac_ct_STRIP=$STRIP
7783  # Extract the first word of "strip", so it can be a program name with args.
7784set dummy strip; ac_word=$2
7785echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7787if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7788  echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790  if test -n "$ac_ct_STRIP"; then
7791  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798  for ac_exec_ext in '' $ac_executable_extensions; do
7799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_ac_ct_STRIP="strip"
7801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805done
7806
7807  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7808fi
7809fi
7810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7811if test -n "$ac_ct_STRIP"; then
7812  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7813echo "${ECHO_T}$ac_ct_STRIP" >&6
7814else
7815  echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817fi
7818
7819  STRIP=$ac_ct_STRIP
7820else
7821  STRIP="$ac_cv_prog_STRIP"
7822fi
7823
7824
7825old_CC="$CC"
7826old_CFLAGS="$CFLAGS"
7827
7828# Set sane defaults for various variables
7829test -z "$AR" && AR=ar
7830test -z "$AR_FLAGS" && AR_FLAGS=cru
7831test -z "$AS" && AS=as
7832test -z "$CC" && CC=cc
7833test -z "$LTCC" && LTCC=$CC
7834test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7835test -z "$DLLTOOL" && DLLTOOL=dlltool
7836test -z "$LD" && LD=ld
7837test -z "$LN_S" && LN_S="ln -s"
7838test -z "$MAGIC_CMD" && MAGIC_CMD=file
7839test -z "$NM" && NM=nm
7840test -z "$SED" && SED=sed
7841test -z "$OBJDUMP" && OBJDUMP=objdump
7842test -z "$RANLIB" && RANLIB=:
7843test -z "$STRIP" && STRIP=:
7844test -z "$ac_objext" && ac_objext=o
7845
7846# Determine commands to create old-style static archives.
7847old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7848old_postinstall_cmds='chmod 644 $oldlib'
7849old_postuninstall_cmds=
7850
7851if test -n "$RANLIB"; then
7852  case $host_os in
7853  openbsd*)
7854    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7855    ;;
7856  *)
7857    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7858    ;;
7859  esac
7860  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7861fi
7862
7863for cc_temp in $compiler""; do
7864  case $cc_temp in
7865    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7866    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7867    \-*) ;;
7868    *) break;;
7869  esac
7870done
7871cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7872
7873
7874# Only perform the check for file, if the check method requires it
7875case $deplibs_check_method in
7876file_magic*)
7877  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7878    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7879echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7880if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7881  echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883  case $MAGIC_CMD in
7884[\\/*] |  ?:[\\/]*)
7885  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7886  ;;
7887*)
7888  lt_save_MAGIC_CMD="$MAGIC_CMD"
7889  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7890  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7891  for ac_dir in $ac_dummy; do
7892    IFS="$lt_save_ifs"
7893    test -z "$ac_dir" && ac_dir=.
7894    if test -f $ac_dir/${ac_tool_prefix}file; then
7895      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7896      if test -n "$file_magic_test_file"; then
7897	case $deplibs_check_method in
7898	"file_magic "*)
7899	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7900	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7901	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7902	    $EGREP "$file_magic_regex" > /dev/null; then
7903	    :
7904	  else
7905	    cat <<EOF 1>&2
7906
7907*** Warning: the command libtool uses to detect shared libraries,
7908*** $file_magic_cmd, produces output that libtool cannot recognize.
7909*** The result is that libtool may fail to recognize shared libraries
7910*** as such.  This will affect the creation of libtool libraries that
7911*** depend on shared libraries, but programs linked with such libtool
7912*** libraries will work regardless of this problem.  Nevertheless, you
7913*** may want to report the problem to your system manager and/or to
7914*** bug-libtool@gnu.org
7915
7916EOF
7917	  fi ;;
7918	esac
7919      fi
7920      break
7921    fi
7922  done
7923  IFS="$lt_save_ifs"
7924  MAGIC_CMD="$lt_save_MAGIC_CMD"
7925  ;;
7926esac
7927fi
7928
7929MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7930if test -n "$MAGIC_CMD"; then
7931  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7932echo "${ECHO_T}$MAGIC_CMD" >&6
7933else
7934  echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
7936fi
7937
7938if test -z "$lt_cv_path_MAGIC_CMD"; then
7939  if test -n "$ac_tool_prefix"; then
7940    echo "$as_me:$LINENO: checking for file" >&5
7941echo $ECHO_N "checking for file... $ECHO_C" >&6
7942if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7943  echo $ECHO_N "(cached) $ECHO_C" >&6
7944else
7945  case $MAGIC_CMD in
7946[\\/*] |  ?:[\\/]*)
7947  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7948  ;;
7949*)
7950  lt_save_MAGIC_CMD="$MAGIC_CMD"
7951  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7952  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7953  for ac_dir in $ac_dummy; do
7954    IFS="$lt_save_ifs"
7955    test -z "$ac_dir" && ac_dir=.
7956    if test -f $ac_dir/file; then
7957      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7958      if test -n "$file_magic_test_file"; then
7959	case $deplibs_check_method in
7960	"file_magic "*)
7961	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7962	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7963	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7964	    $EGREP "$file_magic_regex" > /dev/null; then
7965	    :
7966	  else
7967	    cat <<EOF 1>&2
7968
7969*** Warning: the command libtool uses to detect shared libraries,
7970*** $file_magic_cmd, produces output that libtool cannot recognize.
7971*** The result is that libtool may fail to recognize shared libraries
7972*** as such.  This will affect the creation of libtool libraries that
7973*** depend on shared libraries, but programs linked with such libtool
7974*** libraries will work regardless of this problem.  Nevertheless, you
7975*** may want to report the problem to your system manager and/or to
7976*** bug-libtool@gnu.org
7977
7978EOF
7979	  fi ;;
7980	esac
7981      fi
7982      break
7983    fi
7984  done
7985  IFS="$lt_save_ifs"
7986  MAGIC_CMD="$lt_save_MAGIC_CMD"
7987  ;;
7988esac
7989fi
7990
7991MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992if test -n "$MAGIC_CMD"; then
7993  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7994echo "${ECHO_T}$MAGIC_CMD" >&6
7995else
7996  echo "$as_me:$LINENO: result: no" >&5
7997echo "${ECHO_T}no" >&6
7998fi
7999
8000  else
8001    MAGIC_CMD=:
8002  fi
8003fi
8004
8005  fi
8006  ;;
8007esac
8008
8009enable_dlopen=no
8010enable_win32_dll=no
8011
8012# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8013if test "${enable_libtool_lock+set}" = set; then
8014  enableval="$enable_libtool_lock"
8015
8016fi;
8017test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8018
8019
8020# Check whether --with-pic or --without-pic was given.
8021if test "${with_pic+set}" = set; then
8022  withval="$with_pic"
8023  pic_mode="$withval"
8024else
8025  pic_mode=default
8026fi;
8027test -z "$pic_mode" && pic_mode=default
8028
8029# Use C for the default configuration in the libtool script
8030tagname=
8031lt_save_CC="$CC"
8032ac_ext=c
8033ac_cpp='$CPP $CPPFLAGS'
8034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037
8038
8039# Source file extension for C test sources.
8040ac_ext=c
8041
8042# Object file extension for compiled C test sources.
8043objext=o
8044objext=$objext
8045
8046# Code to be used in simple compile tests
8047lt_simple_compile_test_code="int some_variable = 0;\n"
8048
8049# Code to be used in simple link tests
8050lt_simple_link_test_code='int main(){return(0);}\n'
8051
8052
8053# If no C compiler was specified, use CC.
8054LTCC=${LTCC-"$CC"}
8055
8056# If no C compiler flags were specified, use CFLAGS.
8057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8058
8059# Allow CC to be a program name with arguments.
8060compiler=$CC
8061
8062
8063# save warnings/boilerplate of simple test code
8064ac_outfile=conftest.$ac_objext
8065printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067_lt_compiler_boilerplate=`cat conftest.err`
8068$rm conftest*
8069
8070ac_outfile=conftest.$ac_objext
8071printf "$lt_simple_link_test_code" >conftest.$ac_ext
8072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073_lt_linker_boilerplate=`cat conftest.err`
8074$rm conftest*
8075
8076
8077## CAVEAT EMPTOR:
8078## There is no encapsulation within the following macros, do not change
8079## the running order or otherwise move them around unless you know exactly
8080## what you are doing...
8081
8082lt_prog_compiler_no_builtin_flag=
8083
8084if test "$GCC" = yes; then
8085  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8086
8087
8088echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8089echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8090if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8091  echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093  lt_cv_prog_compiler_rtti_exceptions=no
8094  ac_outfile=conftest.$ac_objext
8095   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8096   lt_compiler_flag="-fno-rtti -fno-exceptions"
8097   # Insert the option either (1) after the last *FLAGS variable, or
8098   # (2) before a word containing "conftest.", or (3) at the end.
8099   # Note that $ac_compile itself does not contain backslashes and begins
8100   # with a dollar sign (not a hyphen), so the echo should work correctly.
8101   # The option is referenced via a variable to avoid confusing sed.
8102   lt_compile=`echo "$ac_compile" | $SED \
8103   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105   -e 's:$: $lt_compiler_flag:'`
8106   (eval echo "\"\$as_me:8106: $lt_compile\"" >&5)
8107   (eval "$lt_compile" 2>conftest.err)
8108   ac_status=$?
8109   cat conftest.err >&5
8110   echo "$as_me:8110: \$? = $ac_status" >&5
8111   if (exit $ac_status) && test -s "$ac_outfile"; then
8112     # The compiler can only warn and ignore the option if not recognized
8113     # So say no if there are warnings other than the usual output.
8114     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8115     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8116     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8117       lt_cv_prog_compiler_rtti_exceptions=yes
8118     fi
8119   fi
8120   $rm conftest*
8121
8122fi
8123echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8124echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8125
8126if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8127    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8128else
8129    :
8130fi
8131
8132fi
8133
8134lt_prog_compiler_wl=
8135lt_prog_compiler_pic=
8136lt_prog_compiler_static=
8137
8138echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8139echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8140
8141  if test "$GCC" = yes; then
8142    lt_prog_compiler_wl='-Wl,'
8143    lt_prog_compiler_static='-static'
8144
8145    case $host_os in
8146      aix*)
8147      # All AIX code is PIC.
8148      if test "$host_cpu" = ia64; then
8149	# AIX 5 now supports IA64 processor
8150	lt_prog_compiler_static='-Bstatic'
8151      fi
8152      ;;
8153
8154    amigaos*)
8155      # FIXME: we need at least 68020 code to build shared libraries, but
8156      # adding the `-m68020' flag to GCC prevents building anything better,
8157      # like `-m68040'.
8158      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8159      ;;
8160
8161    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8162      # PIC is the default for these OSes.
8163      ;;
8164
8165    mingw* | pw32* | os2*)
8166      # This hack is so that the source file can tell whether it is being
8167      # built for inclusion in a dll (and should export symbols for example).
8168      lt_prog_compiler_pic='-DDLL_EXPORT'
8169      ;;
8170
8171    darwin* | rhapsody*)
8172      # PIC is the default on this platform
8173      # Common symbols not allowed in MH_DYLIB files
8174      lt_prog_compiler_pic='-fno-common'
8175      ;;
8176
8177    interix3*)
8178      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8179      # Instead, we relocate shared libraries at runtime.
8180      ;;
8181
8182    msdosdjgpp*)
8183      # Just because we use GCC doesn't mean we suddenly get shared libraries
8184      # on systems that don't support them.
8185      lt_prog_compiler_can_build_shared=no
8186      enable_shared=no
8187      ;;
8188
8189    sysv4*MP*)
8190      if test -d /usr/nec; then
8191	lt_prog_compiler_pic=-Kconform_pic
8192      fi
8193      ;;
8194
8195    hpux*)
8196      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8197      # not for PA HP-UX.
8198      case $host_cpu in
8199      hppa*64*|ia64*)
8200	# +Z the default
8201	;;
8202      *)
8203	lt_prog_compiler_pic='-fPIC'
8204	;;
8205      esac
8206      ;;
8207
8208    *)
8209      lt_prog_compiler_pic='-fPIC'
8210      ;;
8211    esac
8212  else
8213    # PORTME Check for flag to pass linker flags through the system compiler.
8214    case $host_os in
8215    aix*)
8216      lt_prog_compiler_wl='-Wl,'
8217      if test "$host_cpu" = ia64; then
8218	# AIX 5 now supports IA64 processor
8219	lt_prog_compiler_static='-Bstatic'
8220      else
8221	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8222      fi
8223      ;;
8224      darwin*)
8225        # PIC is the default on this platform
8226        # Common symbols not allowed in MH_DYLIB files
8227       case $cc_basename in
8228         xlc*)
8229         lt_prog_compiler_pic='-qnocommon'
8230         lt_prog_compiler_wl='-Wl,'
8231         ;;
8232       esac
8233       ;;
8234
8235    mingw* | pw32* | os2*)
8236      # This hack is so that the source file can tell whether it is being
8237      # built for inclusion in a dll (and should export symbols for example).
8238      lt_prog_compiler_pic='-DDLL_EXPORT'
8239      ;;
8240
8241    hpux9* | hpux10* | hpux11*)
8242      lt_prog_compiler_wl='-Wl,'
8243      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8244      # not for PA HP-UX.
8245      case $host_cpu in
8246      hppa*64*|ia64*)
8247	# +Z the default
8248	;;
8249      *)
8250	lt_prog_compiler_pic='+Z'
8251	;;
8252      esac
8253      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8254      lt_prog_compiler_static='${wl}-a ${wl}archive'
8255      ;;
8256
8257    irix5* | irix6* | nonstopux*)
8258      lt_prog_compiler_wl='-Wl,'
8259      # PIC (with -KPIC) is the default.
8260      lt_prog_compiler_static='-non_shared'
8261      ;;
8262
8263    newsos6)
8264      lt_prog_compiler_pic='-KPIC'
8265      lt_prog_compiler_static='-Bstatic'
8266      ;;
8267
8268    linux*)
8269      case $cc_basename in
8270      icc* | ecc*)
8271	lt_prog_compiler_wl='-Wl,'
8272	lt_prog_compiler_pic='-KPIC'
8273	lt_prog_compiler_static='-static'
8274        ;;
8275      pgcc* | pgf77* | pgf90* | pgf95*)
8276        # Portland Group compilers (*not* the Pentium gcc compiler,
8277	# which looks to be a dead project)
8278	lt_prog_compiler_wl='-Wl,'
8279	lt_prog_compiler_pic='-fpic'
8280	lt_prog_compiler_static='-Bstatic'
8281        ;;
8282      ccc*)
8283        lt_prog_compiler_wl='-Wl,'
8284        # All Alpha code is PIC.
8285        lt_prog_compiler_static='-non_shared'
8286        ;;
8287      esac
8288      ;;
8289
8290    osf3* | osf4* | osf5*)
8291      lt_prog_compiler_wl='-Wl,'
8292      # All OSF/1 code is PIC.
8293      lt_prog_compiler_static='-non_shared'
8294      ;;
8295
8296    solaris*)
8297      lt_prog_compiler_pic='-KPIC'
8298      lt_prog_compiler_static='-Bstatic'
8299      case $cc_basename in
8300      f77* | f90* | f95*)
8301	lt_prog_compiler_wl='-Qoption ld ';;
8302      *)
8303	lt_prog_compiler_wl='-Wl,';;
8304      esac
8305      ;;
8306
8307    sunos4*)
8308      lt_prog_compiler_wl='-Qoption ld '
8309      lt_prog_compiler_pic='-PIC'
8310      lt_prog_compiler_static='-Bstatic'
8311      ;;
8312
8313    sysv4 | sysv4.2uw2* | sysv4.3*)
8314      lt_prog_compiler_wl='-Wl,'
8315      lt_prog_compiler_pic='-KPIC'
8316      lt_prog_compiler_static='-Bstatic'
8317      ;;
8318
8319    sysv4*MP*)
8320      if test -d /usr/nec ;then
8321	lt_prog_compiler_pic='-Kconform_pic'
8322	lt_prog_compiler_static='-Bstatic'
8323      fi
8324      ;;
8325
8326    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8327      lt_prog_compiler_wl='-Wl,'
8328      lt_prog_compiler_pic='-KPIC'
8329      lt_prog_compiler_static='-Bstatic'
8330      ;;
8331
8332    unicos*)
8333      lt_prog_compiler_wl='-Wl,'
8334      lt_prog_compiler_can_build_shared=no
8335      ;;
8336
8337    uts4*)
8338      lt_prog_compiler_pic='-pic'
8339      lt_prog_compiler_static='-Bstatic'
8340      ;;
8341
8342    *)
8343      lt_prog_compiler_can_build_shared=no
8344      ;;
8345    esac
8346  fi
8347
8348echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8349echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8350
8351#
8352# Check to make sure the PIC flag actually works.
8353#
8354if test -n "$lt_prog_compiler_pic"; then
8355
8356echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8357echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8358if test "${lt_prog_compiler_pic_works+set}" = set; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  lt_prog_compiler_pic_works=no
8362  ac_outfile=conftest.$ac_objext
8363   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8364   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8365   # Insert the option either (1) after the last *FLAGS variable, or
8366   # (2) before a word containing "conftest.", or (3) at the end.
8367   # Note that $ac_compile itself does not contain backslashes and begins
8368   # with a dollar sign (not a hyphen), so the echo should work correctly.
8369   # The option is referenced via a variable to avoid confusing sed.
8370   lt_compile=`echo "$ac_compile" | $SED \
8371   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373   -e 's:$: $lt_compiler_flag:'`
8374   (eval echo "\"\$as_me:8374: $lt_compile\"" >&5)
8375   (eval "$lt_compile" 2>conftest.err)
8376   ac_status=$?
8377   cat conftest.err >&5
8378   echo "$as_me:8378: \$? = $ac_status" >&5
8379   if (exit $ac_status) && test -s "$ac_outfile"; then
8380     # The compiler can only warn and ignore the option if not recognized
8381     # So say no if there are warnings other than the usual output.
8382     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8383     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8385       lt_prog_compiler_pic_works=yes
8386     fi
8387   fi
8388   $rm conftest*
8389
8390fi
8391echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8392echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8393
8394if test x"$lt_prog_compiler_pic_works" = xyes; then
8395    case $lt_prog_compiler_pic in
8396     "" | " "*) ;;
8397     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8398     esac
8399else
8400    lt_prog_compiler_pic=
8401     lt_prog_compiler_can_build_shared=no
8402fi
8403
8404fi
8405case $host_os in
8406  # For platforms which do not support PIC, -DPIC is meaningless:
8407  *djgpp*)
8408    lt_prog_compiler_pic=
8409    ;;
8410  *)
8411    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8412    ;;
8413esac
8414
8415#
8416# Check to make sure the static flag actually works.
8417#
8418wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8419echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8420echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8421if test "${lt_prog_compiler_static_works+set}" = set; then
8422  echo $ECHO_N "(cached) $ECHO_C" >&6
8423else
8424  lt_prog_compiler_static_works=no
8425   save_LDFLAGS="$LDFLAGS"
8426   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8427   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8428   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8429     # The linker can only warn and ignore the option if not recognized
8430     # So say no if there are warnings
8431     if test -s conftest.err; then
8432       # Append any errors to the config.log.
8433       cat conftest.err 1>&5
8434       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8435       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8436       if diff conftest.exp conftest.er2 >/dev/null; then
8437         lt_prog_compiler_static_works=yes
8438       fi
8439     else
8440       lt_prog_compiler_static_works=yes
8441     fi
8442   fi
8443   $rm conftest*
8444   LDFLAGS="$save_LDFLAGS"
8445
8446fi
8447echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8448echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8449
8450if test x"$lt_prog_compiler_static_works" = xyes; then
8451    :
8452else
8453    lt_prog_compiler_static=
8454fi
8455
8456
8457echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8458echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8459if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8460  echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462  lt_cv_prog_compiler_c_o=no
8463   $rm -r conftest 2>/dev/null
8464   mkdir conftest
8465   cd conftest
8466   mkdir out
8467   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8468
8469   lt_compiler_flag="-o out/conftest2.$ac_objext"
8470   # Insert the option either (1) after the last *FLAGS variable, or
8471   # (2) before a word containing "conftest.", or (3) at the end.
8472   # Note that $ac_compile itself does not contain backslashes and begins
8473   # with a dollar sign (not a hyphen), so the echo should work correctly.
8474   lt_compile=`echo "$ac_compile" | $SED \
8475   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8477   -e 's:$: $lt_compiler_flag:'`
8478   (eval echo "\"\$as_me:8478: $lt_compile\"" >&5)
8479   (eval "$lt_compile" 2>out/conftest.err)
8480   ac_status=$?
8481   cat out/conftest.err >&5
8482   echo "$as_me:8482: \$? = $ac_status" >&5
8483   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8484   then
8485     # The compiler can only warn and ignore the option if not recognized
8486     # So say no if there are warnings
8487     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8488     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8489     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8490       lt_cv_prog_compiler_c_o=yes
8491     fi
8492   fi
8493   chmod u+w . 2>&5
8494   $rm conftest*
8495   # SGI C++ compiler will create directory out/ii_files/ for
8496   # template instantiation
8497   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8498   $rm out/* && rmdir out
8499   cd ..
8500   rmdir conftest
8501   $rm conftest*
8502
8503fi
8504echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8505echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8506
8507
8508hard_links="nottested"
8509if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8510  # do not overwrite the value of need_locks provided by the user
8511  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8512echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8513  hard_links=yes
8514  $rm conftest*
8515  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8516  touch conftest.a
8517  ln conftest.a conftest.b 2>&5 || hard_links=no
8518  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8519  echo "$as_me:$LINENO: result: $hard_links" >&5
8520echo "${ECHO_T}$hard_links" >&6
8521  if test "$hard_links" = no; then
8522    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8523echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8524    need_locks=warn
8525  fi
8526else
8527  need_locks=no
8528fi
8529
8530echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8531echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8532
8533  runpath_var=
8534  allow_undefined_flag=
8535  enable_shared_with_static_runtimes=no
8536  archive_cmds=
8537  archive_expsym_cmds=
8538  old_archive_From_new_cmds=
8539  old_archive_from_expsyms_cmds=
8540  export_dynamic_flag_spec=
8541  whole_archive_flag_spec=
8542  thread_safe_flag_spec=
8543  hardcode_libdir_flag_spec=
8544  hardcode_libdir_flag_spec_ld=
8545  hardcode_libdir_separator=
8546  hardcode_direct=no
8547  hardcode_minus_L=no
8548  hardcode_shlibpath_var=unsupported
8549  link_all_deplibs=unknown
8550  hardcode_automatic=no
8551  module_cmds=
8552  module_expsym_cmds=
8553  always_export_symbols=no
8554  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8555  # include_expsyms should be a list of space-separated symbols to be *always*
8556  # included in the symbol list
8557  include_expsyms=
8558  # exclude_expsyms can be an extended regexp of symbols to exclude
8559  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8560  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8561  # as well as any symbol that contains `d'.
8562  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8563  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8564  # platforms (ab)use it in PIC code, but their linkers get confused if
8565  # the symbol is explicitly referenced.  Since portable code cannot
8566  # rely on this symbol name, it's probably fine to never include it in
8567  # preloaded symbol tables.
8568  extract_expsyms_cmds=
8569  # Just being paranoid about ensuring that cc_basename is set.
8570  for cc_temp in $compiler""; do
8571  case $cc_temp in
8572    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8573    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8574    \-*) ;;
8575    *) break;;
8576  esac
8577done
8578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8579
8580  case $host_os in
8581  cygwin* | mingw* | pw32*)
8582    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8583    # When not using gcc, we currently assume that we are using
8584    # Microsoft Visual C++.
8585    if test "$GCC" != yes; then
8586      with_gnu_ld=no
8587    fi
8588    ;;
8589  interix*)
8590    # we just hope/assume this is gcc and not c89 (= MSVC++)
8591    with_gnu_ld=yes
8592    ;;
8593  openbsd*)
8594    with_gnu_ld=no
8595    ;;
8596  esac
8597
8598  ld_shlibs=yes
8599  if test "$with_gnu_ld" = yes; then
8600    # If archive_cmds runs LD, not CC, wlarc should be empty
8601    wlarc='${wl}'
8602
8603    # Set some defaults for GNU ld with shared library support. These
8604    # are reset later if shared libraries are not supported. Putting them
8605    # here allows them to be overridden if necessary.
8606    runpath_var=LD_RUN_PATH
8607    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8608    export_dynamic_flag_spec='${wl}--export-dynamic'
8609    # ancient GNU ld didn't support --whole-archive et. al.
8610    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8611	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8612      else
8613  	whole_archive_flag_spec=
8614    fi
8615    supports_anon_versioning=no
8616    case `$LD -v 2>/dev/null` in
8617      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8618      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8619      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8620      *\ 2.11.*) ;; # other 2.11 versions
8621      *) supports_anon_versioning=yes ;;
8622    esac
8623
8624    # See if GNU ld supports shared libraries.
8625    case $host_os in
8626    aix3* | aix4* | aix5*)
8627      # On AIX/PPC, the GNU linker is very broken
8628      if test "$host_cpu" != ia64; then
8629	ld_shlibs=no
8630	cat <<EOF 1>&2
8631
8632*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8633*** to be unable to reliably create shared libraries on AIX.
8634*** Therefore, libtool is disabling shared libraries support.  If you
8635*** really care for shared libraries, you may want to modify your PATH
8636*** so that a non-GNU linker is found, and then restart.
8637
8638EOF
8639      fi
8640      ;;
8641
8642    amigaos*)
8643      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)'
8644      hardcode_libdir_flag_spec='-L$libdir'
8645      hardcode_minus_L=yes
8646
8647      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8648      # that the semantics of dynamic libraries on AmigaOS, at least up
8649      # to version 4, is to share data among multiple programs linked
8650      # with the same dynamic library.  Since this doesn't match the
8651      # behavior of shared libraries on other platforms, we can't use
8652      # them.
8653      ld_shlibs=no
8654      ;;
8655
8656    beos*)
8657      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8658	allow_undefined_flag=unsupported
8659	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8660	# support --undefined.  This deserves some investigation.  FIXME
8661	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662      else
8663	ld_shlibs=no
8664      fi
8665      ;;
8666
8667    cygwin* | mingw* | pw32*)
8668      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8669      # as there is no search path for DLLs.
8670      hardcode_libdir_flag_spec='-L$libdir'
8671      allow_undefined_flag=unsupported
8672      always_export_symbols=no
8673      enable_shared_with_static_runtimes=yes
8674      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8675
8676      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8677        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8678	# If the export-symbols file already is a .def file (1st line
8679	# is EXPORTS), use it as is; otherwise, prepend...
8680	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8681	  cp $export_symbols $output_objdir/$soname.def;
8682	else
8683	  echo EXPORTS > $output_objdir/$soname.def;
8684	  cat $export_symbols >> $output_objdir/$soname.def;
8685	fi~
8686	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8687      else
8688	ld_shlibs=no
8689      fi
8690      ;;
8691
8692    interix3*)
8693      hardcode_direct=no
8694      hardcode_shlibpath_var=no
8695      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8696      export_dynamic_flag_spec='${wl}-E'
8697      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8698      # Instead, shared libraries are loaded at an image base (0x10000000 by
8699      # default) and relocated if they conflict, which is a slow very memory
8700      # consuming and fragmenting process.  To avoid this, we pick a random,
8701      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8702      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8703      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8704      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'
8705      ;;
8706
8707    linux*)
8708      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8709	tmp_addflag=
8710	case $cc_basename,$host_cpu in
8711	pgcc*)				# Portland Group C compiler
8712	  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'
8713	  tmp_addflag=' $pic_flag'
8714	  ;;
8715	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8716	  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'
8717	  tmp_addflag=' $pic_flag -Mnomain' ;;
8718	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8719	  tmp_addflag=' -i_dynamic' ;;
8720	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8721	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8722	ifc* | ifort*)			# Intel Fortran compiler
8723	  tmp_addflag=' -nofor_main' ;;
8724	esac
8725	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726
8727	if test $supports_anon_versioning = yes; then
8728	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8729  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8730  $echo "local: *; };" >> $output_objdir/$libname.ver~
8731	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8732	fi
8733      else
8734	ld_shlibs=no
8735      fi
8736      ;;
8737
8738    netbsd*)
8739      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8740	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8741	wlarc=
8742      else
8743	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745      fi
8746      ;;
8747
8748    solaris*)
8749      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8750	ld_shlibs=no
8751	cat <<EOF 1>&2
8752
8753*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8754*** create shared libraries on Solaris systems.  Therefore, libtool
8755*** is disabling shared libraries support.  We urge you to upgrade GNU
8756*** binutils to release 2.9.1 or newer.  Another option is to modify
8757*** your PATH or compiler configuration so that the native linker is
8758*** used, and then restart.
8759
8760EOF
8761      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8762	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764      else
8765	ld_shlibs=no
8766      fi
8767      ;;
8768
8769    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8770      case `$LD -v 2>&1` in
8771        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8772	ld_shlibs=no
8773	cat <<_LT_EOF 1>&2
8774
8775*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8776*** reliably create shared libraries on SCO systems.  Therefore, libtool
8777*** is disabling shared libraries support.  We urge you to upgrade GNU
8778*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8779*** your PATH or compiler configuration so that the native linker is
8780*** used, and then restart.
8781
8782_LT_EOF
8783	;;
8784	*)
8785	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8786	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8787	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8788	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8789	  else
8790	    ld_shlibs=no
8791	  fi
8792	;;
8793      esac
8794      ;;
8795
8796    sunos4*)
8797      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798      wlarc=
8799      hardcode_direct=yes
8800      hardcode_shlibpath_var=no
8801      ;;
8802
8803    *)
8804      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8805	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8807      else
8808	ld_shlibs=no
8809      fi
8810      ;;
8811    esac
8812
8813    if test "$ld_shlibs" = no; then
8814      runpath_var=
8815      hardcode_libdir_flag_spec=
8816      export_dynamic_flag_spec=
8817      whole_archive_flag_spec=
8818    fi
8819  else
8820    # PORTME fill in a description of your system's linker (not GNU ld)
8821    case $host_os in
8822    aix3*)
8823      allow_undefined_flag=unsupported
8824      always_export_symbols=yes
8825      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'
8826      # Note: this linker hardcodes the directories in LIBPATH if there
8827      # are no directories specified by -L.
8828      hardcode_minus_L=yes
8829      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8830	# Neither direct hardcoding nor static linking is supported with a
8831	# broken collect2.
8832	hardcode_direct=unsupported
8833      fi
8834      ;;
8835
8836    aix4* | aix5*)
8837      if test "$host_cpu" = ia64; then
8838	# On IA64, the linker does run time linking by default, so we don't
8839	# have to do anything special.
8840	aix_use_runtimelinking=no
8841	exp_sym_flag='-Bexport'
8842	no_entry_flag=""
8843      else
8844	# If we're using GNU nm, then we don't want the "-C" option.
8845	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8846	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8847	  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'
8848	else
8849	  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'
8850	fi
8851	aix_use_runtimelinking=no
8852
8853	# Test if we are trying to use run time linking or normal
8854	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8855	# need to do runtime linking.
8856	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8857	  for ld_flag in $LDFLAGS; do
8858  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8859  	    aix_use_runtimelinking=yes
8860  	    break
8861  	  fi
8862	  done
8863	  ;;
8864	esac
8865
8866	exp_sym_flag='-bexport'
8867	no_entry_flag='-bnoentry'
8868      fi
8869
8870      # When large executables or shared objects are built, AIX ld can
8871      # have problems creating the table of contents.  If linking a library
8872      # or program results in "error TOC overflow" add -mminimal-toc to
8873      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8874      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8875
8876      archive_cmds=''
8877      hardcode_direct=yes
8878      hardcode_libdir_separator=':'
8879      link_all_deplibs=yes
8880
8881      if test "$GCC" = yes; then
8882	case $host_os in aix4.[012]|aix4.[012].*)
8883	# We only want to do this on AIX 4.2 and lower, the check
8884	# below for broken collect2 doesn't work under 4.3+
8885	  collect2name=`${CC} -print-prog-name=collect2`
8886	  if test -f "$collect2name" && \
8887  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8888	  then
8889  	  # We have reworked collect2
8890  	  hardcode_direct=yes
8891	  else
8892  	  # We have old collect2
8893  	  hardcode_direct=unsupported
8894  	  # It fails to find uninstalled libraries when the uninstalled
8895  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8896  	  # to unsupported forces relinking
8897  	  hardcode_minus_L=yes
8898  	  hardcode_libdir_flag_spec='-L$libdir'
8899  	  hardcode_libdir_separator=
8900	  fi
8901	  ;;
8902	esac
8903	shared_flag='-shared'
8904	if test "$aix_use_runtimelinking" = yes; then
8905	  shared_flag="$shared_flag "'${wl}-G'
8906	fi
8907      else
8908	# not using gcc
8909	if test "$host_cpu" = ia64; then
8910  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8911  	# chokes on -Wl,-G. The following line is correct:
8912	  shared_flag='-G'
8913	else
8914	  if test "$aix_use_runtimelinking" = yes; then
8915	    shared_flag='${wl}-G'
8916	  else
8917	    shared_flag='${wl}-bM:SRE'
8918	  fi
8919	fi
8920      fi
8921
8922      # It seems that -bexpall does not export symbols beginning with
8923      # underscore (_), so it is better to generate a list of symbols to export.
8924      always_export_symbols=yes
8925      if test "$aix_use_runtimelinking" = yes; then
8926	# Warning - without using the other runtime loading flags (-brtl),
8927	# -berok will link without error, but may produce a broken library.
8928	allow_undefined_flag='-berok'
8929       # Determine the default libpath from the value encoded in an empty executable.
8930       cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h.  */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h.  */
8936
8937int
8938main ()
8939{
8940
8941  ;
8942  return 0;
8943}
8944_ACEOF
8945rm -f conftest.$ac_objext conftest$ac_exeext
8946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947  (eval $ac_link) 2>conftest.er1
8948  ac_status=$?
8949  grep -v '^ *+' conftest.er1 >conftest.err
8950  rm -f conftest.er1
8951  cat conftest.err >&5
8952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953  (exit $ac_status); } &&
8954	 { ac_try='test -z "$ac_c_werror_flag"
8955			 || test ! -s conftest.err'
8956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957  (eval $ac_try) 2>&5
8958  ac_status=$?
8959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960  (exit $ac_status); }; } &&
8961	 { ac_try='test -s conftest$ac_exeext'
8962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963  (eval $ac_try) 2>&5
8964  ac_status=$?
8965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966  (exit $ac_status); }; }; then
8967
8968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8969}'`
8970# Check for a 64-bit object if we didn't find anything.
8971if 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; }
8972}'`; fi
8973else
8974  echo "$as_me: failed program was:" >&5
8975sed 's/^/| /' conftest.$ac_ext >&5
8976
8977fi
8978rm -f conftest.err conftest.$ac_objext \
8979      conftest$ac_exeext conftest.$ac_ext
8980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8981
8982       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8983	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"
8984       else
8985	if test "$host_cpu" = ia64; then
8986	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8987	  allow_undefined_flag="-z nodefs"
8988	  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"
8989	else
8990	 # Determine the default libpath from the value encoded in an empty executable.
8991	 cat >conftest.$ac_ext <<_ACEOF
8992/* confdefs.h.  */
8993_ACEOF
8994cat confdefs.h >>conftest.$ac_ext
8995cat >>conftest.$ac_ext <<_ACEOF
8996/* end confdefs.h.  */
8997
8998int
8999main ()
9000{
9001
9002  ;
9003  return 0;
9004}
9005_ACEOF
9006rm -f conftest.$ac_objext conftest$ac_exeext
9007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008  (eval $ac_link) 2>conftest.er1
9009  ac_status=$?
9010  grep -v '^ *+' conftest.er1 >conftest.err
9011  rm -f conftest.er1
9012  cat conftest.err >&5
9013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); } &&
9015	 { ac_try='test -z "$ac_c_werror_flag"
9016			 || test ! -s conftest.err'
9017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018  (eval $ac_try) 2>&5
9019  ac_status=$?
9020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); }; } &&
9022	 { ac_try='test -s conftest$ac_exeext'
9023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024  (eval $ac_try) 2>&5
9025  ac_status=$?
9026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027  (exit $ac_status); }; }; then
9028
9029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9030}'`
9031# Check for a 64-bit object if we didn't find anything.
9032if 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; }
9033}'`; fi
9034else
9035  echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038fi
9039rm -f conftest.err conftest.$ac_objext \
9040      conftest$ac_exeext conftest.$ac_ext
9041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9042
9043	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9044	  # Warning - without using the other run time loading flags,
9045	  # -berok will link without error, but may produce a broken library.
9046	  no_undefined_flag=' ${wl}-bernotok'
9047	  allow_undefined_flag=' ${wl}-berok'
9048	  # Exported symbols can be pulled into shared objects from archives
9049	  whole_archive_flag_spec='$convenience'
9050	  archive_cmds_need_lc=yes
9051	  # This is similar to how AIX traditionally builds its shared libraries.
9052	  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'
9053	fi
9054      fi
9055      ;;
9056
9057    amigaos*)
9058      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)'
9059      hardcode_libdir_flag_spec='-L$libdir'
9060      hardcode_minus_L=yes
9061      # see comment about different semantics on the GNU ld section
9062      ld_shlibs=no
9063      ;;
9064
9065    bsdi[45]*)
9066      export_dynamic_flag_spec=-rdynamic
9067      ;;
9068
9069    cygwin* | mingw* | pw32*)
9070      # When not using gcc, we currently assume that we are using
9071      # Microsoft Visual C++.
9072      # hardcode_libdir_flag_spec is actually meaningless, as there is
9073      # no search path for DLLs.
9074      hardcode_libdir_flag_spec=' '
9075      allow_undefined_flag=unsupported
9076      # Tell ltmain to make .lib files, not .a files.
9077      libext=lib
9078      # Tell ltmain to make .dll files, not .so files.
9079      shrext_cmds=".dll"
9080      # FIXME: Setting linknames here is a bad hack.
9081      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9082      # The linker will automatically build a .lib file if we build a DLL.
9083      old_archive_From_new_cmds='true'
9084      # FIXME: Should let the user specify the lib program.
9085      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9086      fix_srcfile_path='`cygpath -w "$srcfile"`'
9087      enable_shared_with_static_runtimes=yes
9088      ;;
9089
9090    darwin* | rhapsody*)
9091      case $host_os in
9092        rhapsody* | darwin1.[012])
9093         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9094         ;;
9095       *) # Darwin 1.3 on
9096         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9097           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9098         else
9099           case ${MACOSX_DEPLOYMENT_TARGET} in
9100             10.[012])
9101               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9102               ;;
9103             10.*)
9104               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9105               ;;
9106           esac
9107         fi
9108         ;;
9109      esac
9110      archive_cmds_need_lc=no
9111      hardcode_direct=no
9112      hardcode_automatic=yes
9113      hardcode_shlibpath_var=unsupported
9114      whole_archive_flag_spec=''
9115      link_all_deplibs=yes
9116    if test "$GCC" = yes ; then
9117    	output_verbose_link_cmd='echo'
9118        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9119      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9120      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9121      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}'
9122      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}'
9123    else
9124      case $cc_basename in
9125        xlc*)
9126         output_verbose_link_cmd='echo'
9127         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9128         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9129          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9130         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}'
9131          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}'
9132          ;;
9133       *)
9134         ld_shlibs=no
9135          ;;
9136      esac
9137    fi
9138      ;;
9139
9140    dgux*)
9141      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9142      hardcode_libdir_flag_spec='-L$libdir'
9143      hardcode_shlibpath_var=no
9144      ;;
9145
9146    freebsd1*)
9147      ld_shlibs=no
9148      ;;
9149
9150    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9151    # support.  Future versions do this automatically, but an explicit c++rt0.o
9152    # does not break anything, and helps significantly (at the cost of a little
9153    # extra space).
9154    freebsd2.2*)
9155      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9156      hardcode_libdir_flag_spec='-R$libdir'
9157      hardcode_direct=yes
9158      hardcode_shlibpath_var=no
9159      ;;
9160
9161    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9162    freebsd2*)
9163      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9164      hardcode_direct=yes
9165      hardcode_minus_L=yes
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9170    freebsd* | kfreebsd*-gnu | dragonfly*)
9171      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9172      hardcode_libdir_flag_spec='-R$libdir'
9173      hardcode_direct=yes
9174      hardcode_shlibpath_var=no
9175      ;;
9176
9177    hpux9*)
9178      if test "$GCC" = yes; then
9179	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'
9180      else
9181	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'
9182      fi
9183      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9184      hardcode_libdir_separator=:
9185      hardcode_direct=yes
9186
9187      # hardcode_minus_L: Not really in the search PATH,
9188      # but as the default location of the library.
9189      hardcode_minus_L=yes
9190      export_dynamic_flag_spec='${wl}-E'
9191      ;;
9192
9193    hpux10*)
9194      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9195	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9196      else
9197	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9198      fi
9199      if test "$with_gnu_ld" = no; then
9200	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9201	hardcode_libdir_separator=:
9202
9203	hardcode_direct=yes
9204	export_dynamic_flag_spec='${wl}-E'
9205
9206	# hardcode_minus_L: Not really in the search PATH,
9207	# but as the default location of the library.
9208	hardcode_minus_L=yes
9209      fi
9210      ;;
9211
9212    hpux11*)
9213      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9214	case $host_cpu in
9215	hppa*64*)
9216	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9217	  ;;
9218	ia64*)
9219	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9220	  ;;
9221	*)
9222	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9223	  ;;
9224	esac
9225      else
9226	case $host_cpu in
9227	hppa*64*)
9228	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229	  ;;
9230	ia64*)
9231	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9232	  ;;
9233	*)
9234	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9235	  ;;
9236	esac
9237      fi
9238      if test "$with_gnu_ld" = no; then
9239	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9240	hardcode_libdir_separator=:
9241
9242	case $host_cpu in
9243	hppa*64*|ia64*)
9244	  hardcode_libdir_flag_spec_ld='+b $libdir'
9245	  hardcode_direct=no
9246	  hardcode_shlibpath_var=no
9247	  ;;
9248	*)
9249	  hardcode_direct=yes
9250	  export_dynamic_flag_spec='${wl}-E'
9251
9252	  # hardcode_minus_L: Not really in the search PATH,
9253	  # but as the default location of the library.
9254	  hardcode_minus_L=yes
9255	  ;;
9256	esac
9257      fi
9258      ;;
9259
9260    irix5* | irix6* | nonstopux*)
9261      if test "$GCC" = yes; then
9262	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'
9263      else
9264	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'
9265	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9266      fi
9267      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9268      hardcode_libdir_separator=:
9269      link_all_deplibs=yes
9270      ;;
9271
9272    netbsd*)
9273      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9274	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9275      else
9276	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9277      fi
9278      hardcode_libdir_flag_spec='-R$libdir'
9279      hardcode_direct=yes
9280      hardcode_shlibpath_var=no
9281      ;;
9282
9283    newsos6)
9284      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9285      hardcode_direct=yes
9286      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287      hardcode_libdir_separator=:
9288      hardcode_shlibpath_var=no
9289      ;;
9290
9291    openbsd*)
9292      hardcode_direct=yes
9293      hardcode_shlibpath_var=no
9294      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9295	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9296	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9297	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9298	export_dynamic_flag_spec='${wl}-E'
9299      else
9300       case $host_os in
9301	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9302	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9303	   hardcode_libdir_flag_spec='-R$libdir'
9304	   ;;
9305	 *)
9306	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9307	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308	   ;;
9309       esac
9310      fi
9311      ;;
9312
9313    os2*)
9314      hardcode_libdir_flag_spec='-L$libdir'
9315      hardcode_minus_L=yes
9316      allow_undefined_flag=unsupported
9317      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'
9318      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9319      ;;
9320
9321    osf3*)
9322      if test "$GCC" = yes; then
9323	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9324	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'
9325      else
9326	allow_undefined_flag=' -expect_unresolved \*'
9327	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'
9328      fi
9329      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330      hardcode_libdir_separator=:
9331      ;;
9332
9333    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9334      if test "$GCC" = yes; then
9335	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9336	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'
9337	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338      else
9339	allow_undefined_flag=' -expect_unresolved \*'
9340	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'
9341	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9342	$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'
9343
9344	# Both c and cxx compiler support -rpath directly
9345	hardcode_libdir_flag_spec='-rpath $libdir'
9346      fi
9347      hardcode_libdir_separator=:
9348      ;;
9349
9350    solaris*)
9351      no_undefined_flag=' -z text'
9352      if test "$GCC" = yes; then
9353	wlarc='${wl}'
9354	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9355	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9356	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9357      else
9358	wlarc=''
9359	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9361  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9362      fi
9363      hardcode_libdir_flag_spec='-R$libdir'
9364      hardcode_shlibpath_var=no
9365      case $host_os in
9366      solaris2.[0-5] | solaris2.[0-5].*) ;;
9367      *)
9368 	# The compiler driver will combine linker options so we
9369 	# cannot just pass the convience library names through
9370 	# without $wl, iff we do not link with $LD.
9371 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9372 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9373 	case $wlarc in
9374 	'')
9375 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9376 	*)
9377 	  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' ;;
9378 	esac ;;
9379      esac
9380      link_all_deplibs=yes
9381      ;;
9382
9383    sunos4*)
9384      if test "x$host_vendor" = xsequent; then
9385	# Use $CC to link under sequent, because it throws in some extra .o
9386	# files that make .init and .fini sections work.
9387	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9388      else
9389	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9390      fi
9391      hardcode_libdir_flag_spec='-L$libdir'
9392      hardcode_direct=yes
9393      hardcode_minus_L=yes
9394      hardcode_shlibpath_var=no
9395      ;;
9396
9397    sysv4)
9398      case $host_vendor in
9399	sni)
9400	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401	  hardcode_direct=yes # is this really true???
9402	;;
9403	siemens)
9404	  ## LD is ld it makes a PLAMLIB
9405	  ## CC just makes a GrossModule.
9406	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9407	  reload_cmds='$CC -r -o $output$reload_objs'
9408	  hardcode_direct=no
9409        ;;
9410	motorola)
9411	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9413	;;
9414      esac
9415      runpath_var='LD_RUN_PATH'
9416      hardcode_shlibpath_var=no
9417      ;;
9418
9419    sysv4.3*)
9420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421      hardcode_shlibpath_var=no
9422      export_dynamic_flag_spec='-Bexport'
9423      ;;
9424
9425    sysv4*MP*)
9426      if test -d /usr/nec; then
9427	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428	hardcode_shlibpath_var=no
9429	runpath_var=LD_RUN_PATH
9430	hardcode_runpath_var=yes
9431	ld_shlibs=yes
9432      fi
9433      ;;
9434
9435    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9436      no_undefined_flag='${wl}-z,text'
9437      archive_cmds_need_lc=no
9438      hardcode_shlibpath_var=no
9439      runpath_var='LD_RUN_PATH'
9440
9441      if test "$GCC" = yes; then
9442	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444      else
9445	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447      fi
9448      ;;
9449
9450    sysv5* | sco3.2v5* | sco5v6*)
9451      # Note: We can NOT use -z defs as we might desire, because we do not
9452      # link with -lc, and that would cause any symbols used from libc to
9453      # always be unresolved, which means just about no library would
9454      # ever link correctly.  If we're not using GNU ld we use -z text
9455      # though, which does catch some bad symbols but isn't as heavy-handed
9456      # as -z defs.
9457      no_undefined_flag='${wl}-z,text'
9458      allow_undefined_flag='${wl}-z,nodefs'
9459      archive_cmds_need_lc=no
9460      hardcode_shlibpath_var=no
9461      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9462      hardcode_libdir_separator=':'
9463      link_all_deplibs=yes
9464      export_dynamic_flag_spec='${wl}-Bexport'
9465      runpath_var='LD_RUN_PATH'
9466
9467      if test "$GCC" = yes; then
9468	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9470      else
9471	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9473      fi
9474      ;;
9475
9476    uts4*)
9477      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478      hardcode_libdir_flag_spec='-L$libdir'
9479      hardcode_shlibpath_var=no
9480      ;;
9481
9482    *)
9483      ld_shlibs=no
9484      ;;
9485    esac
9486  fi
9487
9488echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9489echo "${ECHO_T}$ld_shlibs" >&6
9490test "$ld_shlibs" = no && can_build_shared=no
9491
9492#
9493# Do we need to explicitly link libc?
9494#
9495case "x$archive_cmds_need_lc" in
9496x|xyes)
9497  # Assume -lc should be added
9498  archive_cmds_need_lc=yes
9499
9500  if test "$enable_shared" = yes && test "$GCC" = yes; then
9501    case $archive_cmds in
9502    *'~'*)
9503      # FIXME: we may have to deal with multi-command sequences.
9504      ;;
9505    '$CC '*)
9506      # Test whether the compiler implicitly links with -lc since on some
9507      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9508      # to ld, don't add -lc before -lgcc.
9509      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9511      $rm conftest*
9512      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9513
9514      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515  (eval $ac_compile) 2>&5
9516  ac_status=$?
9517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518  (exit $ac_status); } 2>conftest.err; then
9519        soname=conftest
9520        lib=conftest
9521        libobjs=conftest.$ac_objext
9522        deplibs=
9523        wl=$lt_prog_compiler_wl
9524	pic_flag=$lt_prog_compiler_pic
9525        compiler_flags=-v
9526        linker_flags=-v
9527        verstring=
9528        output_objdir=.
9529        libname=conftest
9530        lt_save_allow_undefined_flag=$allow_undefined_flag
9531        allow_undefined_flag=
9532        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9533  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9534  ac_status=$?
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); }
9537        then
9538	  archive_cmds_need_lc=no
9539        else
9540	  archive_cmds_need_lc=yes
9541        fi
9542        allow_undefined_flag=$lt_save_allow_undefined_flag
9543      else
9544        cat conftest.err 1>&5
9545      fi
9546      $rm conftest*
9547      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9548echo "${ECHO_T}$archive_cmds_need_lc" >&6
9549      ;;
9550    esac
9551  fi
9552  ;;
9553esac
9554
9555echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9556echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9557library_names_spec=
9558libname_spec='lib$name'
9559soname_spec=
9560shrext_cmds=".so"
9561postinstall_cmds=
9562postuninstall_cmds=
9563finish_cmds=
9564finish_eval=
9565shlibpath_var=
9566shlibpath_overrides_runpath=unknown
9567version_type=none
9568dynamic_linker="$host_os ld.so"
9569sys_lib_dlsearch_path_spec="/lib /usr/lib"
9570if test "$GCC" = yes; then
9571  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9572  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9573    # if the path contains ";" then we assume it to be the separator
9574    # otherwise default to the standard path separator (i.e. ":") - it is
9575    # assumed that no part of a normal pathname contains ";" but that should
9576    # okay in the real world where ";" in dirpaths is itself problematic.
9577    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9578  else
9579    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9580  fi
9581else
9582  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9583fi
9584need_lib_prefix=unknown
9585hardcode_into_libs=no
9586
9587# when you set need_version to no, make sure it does not cause -set_version
9588# flags to be left without arguments
9589need_version=unknown
9590
9591case $host_os in
9592aix3*)
9593  version_type=linux
9594  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9595  shlibpath_var=LIBPATH
9596
9597  # AIX 3 has no versioning support, so we append a major version to the name.
9598  soname_spec='${libname}${release}${shared_ext}$major'
9599  ;;
9600
9601aix4* | aix5*)
9602  version_type=linux
9603  need_lib_prefix=no
9604  need_version=no
9605  hardcode_into_libs=yes
9606  if test "$host_cpu" = ia64; then
9607    # AIX 5 supports IA64
9608    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9609    shlibpath_var=LD_LIBRARY_PATH
9610  else
9611    # With GCC up to 2.95.x, collect2 would create an import file
9612    # for dependence libraries.  The import file would start with
9613    # the line `#! .'.  This would cause the generated library to
9614    # depend on `.', always an invalid library.  This was fixed in
9615    # development snapshots of GCC prior to 3.0.
9616    case $host_os in
9617      aix4 | aix4.[01] | aix4.[01].*)
9618      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9619	   echo ' yes '
9620	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9621	:
9622      else
9623	can_build_shared=no
9624      fi
9625      ;;
9626    esac
9627    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9628    # soname into executable. Probably we can add versioning support to
9629    # collect2, so additional links can be useful in future.
9630    if test "$aix_use_runtimelinking" = yes; then
9631      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9632      # instead of lib<name>.a to let people know that these are not
9633      # typical AIX shared libraries.
9634      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635    else
9636      # We preserve .a as extension for shared libraries through AIX4.2
9637      # and later when we are not doing run time linking.
9638      library_names_spec='${libname}${release}.a $libname.a'
9639      soname_spec='${libname}${release}${shared_ext}$major'
9640    fi
9641    shlibpath_var=LIBPATH
9642  fi
9643  ;;
9644
9645amigaos*)
9646  library_names_spec='$libname.ixlibrary $libname.a'
9647  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9648  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'
9649  ;;
9650
9651beos*)
9652  library_names_spec='${libname}${shared_ext}'
9653  dynamic_linker="$host_os ld.so"
9654  shlibpath_var=LIBRARY_PATH
9655  ;;
9656
9657bsdi[45]*)
9658  version_type=linux
9659  need_version=no
9660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661  soname_spec='${libname}${release}${shared_ext}$major'
9662  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9665  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9666  # the default ld.so.conf also contains /usr/contrib/lib and
9667  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9668  # libtool to hard-code these into programs
9669  ;;
9670
9671cygwin* | mingw* | pw32*)
9672  version_type=windows
9673  shrext_cmds=".dll"
9674  need_version=no
9675  need_lib_prefix=no
9676
9677  case $GCC,$host_os in
9678  yes,cygwin* | yes,mingw* | yes,pw32*)
9679    library_names_spec='$libname.dll.a'
9680    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9681    postinstall_cmds='base_file=`basename \${file}`~
9682      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9683      dldir=$destdir/`dirname \$dlpath`~
9684      test -d \$dldir || mkdir -p \$dldir~
9685      $install_prog $dir/$dlname \$dldir/$dlname~
9686      chmod a+x \$dldir/$dlname'
9687    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9688      dlpath=$dir/\$dldll~
9689       $rm \$dlpath'
9690    shlibpath_overrides_runpath=yes
9691
9692    case $host_os in
9693    cygwin*)
9694      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9695      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9696      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9697      ;;
9698    mingw*)
9699      # MinGW DLLs use traditional 'lib' prefix
9700      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9701      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9702      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9703        # It is most probably a Windows format PATH printed by
9704        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9705        # path with ; separators, and with drive letters. We can handle the
9706        # drive letters (cygwin fileutils understands them), so leave them,
9707        # especially as we might pass files found there to a mingw objdump,
9708        # which wouldn't understand a cygwinified path. Ahh.
9709        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9710      else
9711        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9712      fi
9713      ;;
9714    pw32*)
9715      # pw32 DLLs use 'pw' prefix rather than 'lib'
9716      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717      ;;
9718    esac
9719    ;;
9720
9721  *)
9722    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9723    ;;
9724  esac
9725  dynamic_linker='Win32 ld.exe'
9726  # FIXME: first we should search . and the directory the executable is in
9727  shlibpath_var=PATH
9728  ;;
9729
9730darwin* | rhapsody*)
9731  dynamic_linker="$host_os dyld"
9732  version_type=darwin
9733  need_lib_prefix=no
9734  need_version=no
9735  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9736  soname_spec='${libname}${release}${major}$shared_ext'
9737  shlibpath_overrides_runpath=yes
9738  shlibpath_var=DYLD_LIBRARY_PATH
9739  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9740  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9741  if test "$GCC" = yes; then
9742    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"`
9743  else
9744    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9745  fi
9746  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9747  ;;
9748
9749dgux*)
9750  version_type=linux
9751  need_lib_prefix=no
9752  need_version=no
9753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9754  soname_spec='${libname}${release}${shared_ext}$major'
9755  shlibpath_var=LD_LIBRARY_PATH
9756  ;;
9757
9758freebsd1*)
9759  dynamic_linker=no
9760  ;;
9761
9762kfreebsd*-gnu)
9763  version_type=linux
9764  need_lib_prefix=no
9765  need_version=no
9766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767  soname_spec='${libname}${release}${shared_ext}$major'
9768  shlibpath_var=LD_LIBRARY_PATH
9769  shlibpath_overrides_runpath=no
9770  hardcode_into_libs=yes
9771  dynamic_linker='GNU ld.so'
9772  ;;
9773
9774freebsd* | dragonfly*)
9775  # DragonFly does not have aout.  When/if they implement a new
9776  # versioning mechanism, adjust this.
9777  if test -x /usr/bin/objformat; then
9778    objformat=`/usr/bin/objformat`
9779  else
9780    case $host_os in
9781    freebsd[123]*) objformat=aout ;;
9782    *) objformat=elf ;;
9783    esac
9784  fi
9785  version_type=freebsd-$objformat
9786  case $version_type in
9787    freebsd-elf*)
9788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9789      need_version=no
9790      need_lib_prefix=no
9791      ;;
9792    freebsd-*)
9793      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9794      need_version=yes
9795      ;;
9796  esac
9797  shlibpath_var=LD_LIBRARY_PATH
9798  case $host_os in
9799  freebsd2*)
9800    shlibpath_overrides_runpath=yes
9801    ;;
9802  freebsd3.[01]* | freebsdelf3.[01]*)
9803    shlibpath_overrides_runpath=yes
9804    hardcode_into_libs=yes
9805    ;;
9806  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9807  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9808    shlibpath_overrides_runpath=no
9809    hardcode_into_libs=yes
9810    ;;
9811  freebsd*) # from 4.6 on
9812    shlibpath_overrides_runpath=yes
9813    hardcode_into_libs=yes
9814    ;;
9815  esac
9816  ;;
9817
9818gnu*)
9819  version_type=linux
9820  need_lib_prefix=no
9821  need_version=no
9822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9823  soname_spec='${libname}${release}${shared_ext}$major'
9824  shlibpath_var=LD_LIBRARY_PATH
9825  hardcode_into_libs=yes
9826  ;;
9827
9828hpux9* | hpux10* | hpux11*)
9829  # Give a soname corresponding to the major version so that dld.sl refuses to
9830  # link against other versions.
9831  version_type=sunos
9832  need_lib_prefix=no
9833  need_version=no
9834  case $host_cpu in
9835  ia64*)
9836    shrext_cmds='.so'
9837    hardcode_into_libs=yes
9838    dynamic_linker="$host_os dld.so"
9839    shlibpath_var=LD_LIBRARY_PATH
9840    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842    soname_spec='${libname}${release}${shared_ext}$major'
9843    if test "X$HPUX_IA64_MODE" = X32; then
9844      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9845    else
9846      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9847    fi
9848    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9849    ;;
9850   hppa*64*)
9851     shrext_cmds='.sl'
9852     hardcode_into_libs=yes
9853     dynamic_linker="$host_os dld.sl"
9854     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9855     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857     soname_spec='${libname}${release}${shared_ext}$major'
9858     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9859     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9860     ;;
9861   *)
9862    shrext_cmds='.sl'
9863    dynamic_linker="$host_os dld.sl"
9864    shlibpath_var=SHLIB_PATH
9865    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9866    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867    soname_spec='${libname}${release}${shared_ext}$major'
9868    ;;
9869  esac
9870  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9871  postinstall_cmds='chmod 555 $lib'
9872  ;;
9873
9874interix3*)
9875  version_type=linux
9876  need_lib_prefix=no
9877  need_version=no
9878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9879  soname_spec='${libname}${release}${shared_ext}$major'
9880  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9881  shlibpath_var=LD_LIBRARY_PATH
9882  shlibpath_overrides_runpath=no
9883  hardcode_into_libs=yes
9884  ;;
9885
9886irix5* | irix6* | nonstopux*)
9887  case $host_os in
9888    nonstopux*) version_type=nonstopux ;;
9889    *)
9890	if test "$lt_cv_prog_gnu_ld" = yes; then
9891		version_type=linux
9892	else
9893		version_type=irix
9894	fi ;;
9895  esac
9896  need_lib_prefix=no
9897  need_version=no
9898  soname_spec='${libname}${release}${shared_ext}$major'
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9900  case $host_os in
9901  irix5* | nonstopux*)
9902    libsuff= shlibsuff=
9903    ;;
9904  *)
9905    case $LD in # libtool.m4 will add one of these switches to LD
9906    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9907      libsuff= shlibsuff= libmagic=32-bit;;
9908    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9909      libsuff=32 shlibsuff=N32 libmagic=N32;;
9910    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9911      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9912    *) libsuff= shlibsuff= libmagic=never-match;;
9913    esac
9914    ;;
9915  esac
9916  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9917  shlibpath_overrides_runpath=no
9918  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9919  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9920  hardcode_into_libs=yes
9921  ;;
9922
9923# No shared lib support for Linux oldld, aout, or coff.
9924linux*oldld* | linux*aout* | linux*coff*)
9925  dynamic_linker=no
9926  ;;
9927
9928# This must be Linux ELF.
9929linux*)
9930  version_type=linux
9931  need_lib_prefix=no
9932  need_version=no
9933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934  soname_spec='${libname}${release}${shared_ext}$major'
9935  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9936  shlibpath_var=LD_LIBRARY_PATH
9937  shlibpath_overrides_runpath=no
9938  # This implies no fast_install, which is unacceptable.
9939  # Some rework will be needed to allow for fast_install
9940  # before this can be enabled.
9941  hardcode_into_libs=yes
9942
9943  # Append ld.so.conf contents to the search path
9944  if test -f /etc/ld.so.conf; then
9945    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' ' '`
9946    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9947  fi
9948
9949  # We used to test for /lib/ld.so.1 and disable shared libraries on
9950  # powerpc, because MkLinux only supported shared libraries with the
9951  # GNU dynamic linker.  Since this was broken with cross compilers,
9952  # most powerpc-linux boxes support dynamic linking these days and
9953  # people can always --disable-shared, the test was removed, and we
9954  # assume the GNU/Linux dynamic linker is in use.
9955  dynamic_linker='GNU/Linux ld.so'
9956  ;;
9957
9958knetbsd*-gnu)
9959  version_type=linux
9960  need_lib_prefix=no
9961  need_version=no
9962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963  soname_spec='${libname}${release}${shared_ext}$major'
9964  shlibpath_var=LD_LIBRARY_PATH
9965  shlibpath_overrides_runpath=no
9966  hardcode_into_libs=yes
9967  dynamic_linker='GNU ld.so'
9968  ;;
9969
9970netbsd*)
9971  version_type=sunos
9972  need_lib_prefix=no
9973  need_version=no
9974  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9976    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9977    dynamic_linker='NetBSD (a.out) ld.so'
9978  else
9979    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9980    soname_spec='${libname}${release}${shared_ext}$major'
9981    dynamic_linker='NetBSD ld.elf_so'
9982  fi
9983  shlibpath_var=LD_LIBRARY_PATH
9984  shlibpath_overrides_runpath=yes
9985  hardcode_into_libs=yes
9986  ;;
9987
9988newsos6)
9989  version_type=linux
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991  shlibpath_var=LD_LIBRARY_PATH
9992  shlibpath_overrides_runpath=yes
9993  ;;
9994
9995nto-qnx*)
9996  version_type=linux
9997  need_lib_prefix=no
9998  need_version=no
9999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000  soname_spec='${libname}${release}${shared_ext}$major'
10001  shlibpath_var=LD_LIBRARY_PATH
10002  shlibpath_overrides_runpath=yes
10003  ;;
10004
10005openbsd*)
10006  version_type=sunos
10007  sys_lib_dlsearch_path_spec="/usr/lib"
10008  need_lib_prefix=no
10009  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10010  case $host_os in
10011    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10012    *)                         need_version=no  ;;
10013  esac
10014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10015  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10018    case $host_os in
10019      openbsd2.[89] | openbsd2.[89].*)
10020	shlibpath_overrides_runpath=no
10021	;;
10022      *)
10023	shlibpath_overrides_runpath=yes
10024	;;
10025      esac
10026  else
10027    shlibpath_overrides_runpath=yes
10028  fi
10029  ;;
10030
10031os2*)
10032  libname_spec='$name'
10033  shrext_cmds=".dll"
10034  need_lib_prefix=no
10035  library_names_spec='$libname${shared_ext} $libname.a'
10036  dynamic_linker='OS/2 ld.exe'
10037  shlibpath_var=LIBPATH
10038  ;;
10039
10040osf3* | osf4* | osf5*)
10041  version_type=osf
10042  need_lib_prefix=no
10043  need_version=no
10044  soname_spec='${libname}${release}${shared_ext}$major'
10045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046  shlibpath_var=LD_LIBRARY_PATH
10047  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10048  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10049  ;;
10050
10051solaris*)
10052  version_type=linux
10053  need_lib_prefix=no
10054  need_version=no
10055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056  soname_spec='${libname}${release}${shared_ext}$major'
10057  shlibpath_var=LD_LIBRARY_PATH
10058  shlibpath_overrides_runpath=yes
10059  hardcode_into_libs=yes
10060  # ldd complains unless libraries are executable
10061  postinstall_cmds='chmod +x $lib'
10062  ;;
10063
10064sunos4*)
10065  version_type=sunos
10066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10067  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10068  shlibpath_var=LD_LIBRARY_PATH
10069  shlibpath_overrides_runpath=yes
10070  if test "$with_gnu_ld" = yes; then
10071    need_lib_prefix=no
10072  fi
10073  need_version=yes
10074  ;;
10075
10076sysv4 | sysv4.3*)
10077  version_type=linux
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  case $host_vendor in
10082    sni)
10083      shlibpath_overrides_runpath=no
10084      need_lib_prefix=no
10085      export_dynamic_flag_spec='${wl}-Blargedynsym'
10086      runpath_var=LD_RUN_PATH
10087      ;;
10088    siemens)
10089      need_lib_prefix=no
10090      ;;
10091    motorola)
10092      need_lib_prefix=no
10093      need_version=no
10094      shlibpath_overrides_runpath=no
10095      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10096      ;;
10097  esac
10098  ;;
10099
10100sysv4*MP*)
10101  if test -d /usr/nec ;then
10102    version_type=linux
10103    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10104    soname_spec='$libname${shared_ext}.$major'
10105    shlibpath_var=LD_LIBRARY_PATH
10106  fi
10107  ;;
10108
10109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10110  version_type=freebsd-elf
10111  need_lib_prefix=no
10112  need_version=no
10113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10114  soname_spec='${libname}${release}${shared_ext}$major'
10115  shlibpath_var=LD_LIBRARY_PATH
10116  hardcode_into_libs=yes
10117  if test "$with_gnu_ld" = yes; then
10118    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10119    shlibpath_overrides_runpath=no
10120  else
10121    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10122    shlibpath_overrides_runpath=yes
10123    case $host_os in
10124      sco3.2v5*)
10125        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10126	;;
10127    esac
10128  fi
10129  sys_lib_dlsearch_path_spec='/usr/lib'
10130  ;;
10131
10132uts4*)
10133  version_type=linux
10134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135  soname_spec='${libname}${release}${shared_ext}$major'
10136  shlibpath_var=LD_LIBRARY_PATH
10137  ;;
10138
10139*)
10140  dynamic_linker=no
10141  ;;
10142esac
10143echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10144echo "${ECHO_T}$dynamic_linker" >&6
10145test "$dynamic_linker" = no && can_build_shared=no
10146
10147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10148if test "$GCC" = yes; then
10149  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10150fi
10151
10152echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10153echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10154hardcode_action=
10155if test -n "$hardcode_libdir_flag_spec" || \
10156   test -n "$runpath_var" || \
10157   test "X$hardcode_automatic" = "Xyes" ; then
10158
10159  # We can hardcode non-existant directories.
10160  if test "$hardcode_direct" != no &&
10161     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10162     # have to relink, otherwise we might link with an installed library
10163     # when we should be linking with a yet-to-be-installed one
10164     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10165     test "$hardcode_minus_L" != no; then
10166    # Linking always hardcodes the temporary library directory.
10167    hardcode_action=relink
10168  else
10169    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10170    hardcode_action=immediate
10171  fi
10172else
10173  # We cannot hardcode anything, or else we can only hardcode existing
10174  # directories.
10175  hardcode_action=unsupported
10176fi
10177echo "$as_me:$LINENO: result: $hardcode_action" >&5
10178echo "${ECHO_T}$hardcode_action" >&6
10179
10180if test "$hardcode_action" = relink; then
10181  # Fast installation is not supported
10182  enable_fast_install=no
10183elif test "$shlibpath_overrides_runpath" = yes ||
10184     test "$enable_shared" = no; then
10185  # Fast installation is not necessary
10186  enable_fast_install=needless
10187fi
10188
10189striplib=
10190old_striplib=
10191echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10192echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10193if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10194  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10195  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10196  echo "$as_me:$LINENO: result: yes" >&5
10197echo "${ECHO_T}yes" >&6
10198else
10199# FIXME - insert some real tests, host_os isn't really good enough
10200  case $host_os in
10201   darwin*)
10202       if test -n "$STRIP" ; then
10203         striplib="$STRIP -x"
10204         echo "$as_me:$LINENO: result: yes" >&5
10205echo "${ECHO_T}yes" >&6
10206       else
10207  echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
10209fi
10210       ;;
10211   *)
10212  echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214    ;;
10215  esac
10216fi
10217
10218if test "x$enable_dlopen" != xyes; then
10219  enable_dlopen=unknown
10220  enable_dlopen_self=unknown
10221  enable_dlopen_self_static=unknown
10222else
10223  lt_cv_dlopen=no
10224  lt_cv_dlopen_libs=
10225
10226  case $host_os in
10227  beos*)
10228    lt_cv_dlopen="load_add_on"
10229    lt_cv_dlopen_libs=
10230    lt_cv_dlopen_self=yes
10231    ;;
10232
10233  mingw* | pw32*)
10234    lt_cv_dlopen="LoadLibrary"
10235    lt_cv_dlopen_libs=
10236   ;;
10237
10238  cygwin*)
10239    lt_cv_dlopen="dlopen"
10240    lt_cv_dlopen_libs=
10241   ;;
10242
10243  darwin*)
10244  # if libdl is installed we need to link against it
10245    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10246echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10247if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10248  echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250  ac_check_lib_save_LIBS=$LIBS
10251LIBS="-ldl  $LIBS"
10252cat >conftest.$ac_ext <<_ACEOF
10253/* confdefs.h.  */
10254_ACEOF
10255cat confdefs.h >>conftest.$ac_ext
10256cat >>conftest.$ac_ext <<_ACEOF
10257/* end confdefs.h.  */
10258
10259/* Override any gcc2 internal prototype to avoid an error.  */
10260#ifdef __cplusplus
10261extern "C"
10262#endif
10263/* We use char because int might match the return type of a gcc2
10264   builtin and then its argument prototype would still apply.  */
10265char dlopen ();
10266int
10267main ()
10268{
10269dlopen ();
10270  ;
10271  return 0;
10272}
10273_ACEOF
10274rm -f conftest.$ac_objext conftest$ac_exeext
10275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276  (eval $ac_link) 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } &&
10283	 { ac_try='test -z "$ac_c_werror_flag"
10284			 || test ! -s conftest.err'
10285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286  (eval $ac_try) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; } &&
10290	 { ac_try='test -s conftest$ac_exeext'
10291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292  (eval $ac_try) 2>&5
10293  ac_status=$?
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); }; }; then
10296  ac_cv_lib_dl_dlopen=yes
10297else
10298  echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301ac_cv_lib_dl_dlopen=no
10302fi
10303rm -f conftest.err conftest.$ac_objext \
10304      conftest$ac_exeext conftest.$ac_ext
10305LIBS=$ac_check_lib_save_LIBS
10306fi
10307echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10308echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10309if test $ac_cv_lib_dl_dlopen = yes; then
10310  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10311else
10312
10313    lt_cv_dlopen="dyld"
10314    lt_cv_dlopen_libs=
10315    lt_cv_dlopen_self=yes
10316
10317fi
10318
10319   ;;
10320
10321  *)
10322    echo "$as_me:$LINENO: checking for shl_load" >&5
10323echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10324if test "${ac_cv_func_shl_load+set}" = set; then
10325  echo $ECHO_N "(cached) $ECHO_C" >&6
10326else
10327  cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h.  */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h.  */
10333/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10334   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10335#define shl_load innocuous_shl_load
10336
10337/* System header to define __stub macros and hopefully few prototypes,
10338    which can conflict with char shl_load (); below.
10339    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340    <limits.h> exists even on freestanding compilers.  */
10341
10342#ifdef __STDC__
10343# include <limits.h>
10344#else
10345# include <assert.h>
10346#endif
10347
10348#undef shl_load
10349
10350/* Override any gcc2 internal prototype to avoid an error.  */
10351#ifdef __cplusplus
10352extern "C"
10353{
10354#endif
10355/* We use char because int might match the return type of a gcc2
10356   builtin and then its argument prototype would still apply.  */
10357char shl_load ();
10358/* The GNU C library defines this for functions which it implements
10359    to always fail with ENOSYS.  Some functions are actually named
10360    something starting with __ and the normal name is an alias.  */
10361#if defined (__stub_shl_load) || defined (__stub___shl_load)
10362choke me
10363#else
10364char (*f) () = shl_load;
10365#endif
10366#ifdef __cplusplus
10367}
10368#endif
10369
10370int
10371main ()
10372{
10373return f != shl_load;
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378rm -f conftest.$ac_objext conftest$ac_exeext
10379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380  (eval $ac_link) 2>conftest.er1
10381  ac_status=$?
10382  grep -v '^ *+' conftest.er1 >conftest.err
10383  rm -f conftest.er1
10384  cat conftest.err >&5
10385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386  (exit $ac_status); } &&
10387	 { ac_try='test -z "$ac_c_werror_flag"
10388			 || test ! -s conftest.err'
10389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390  (eval $ac_try) 2>&5
10391  ac_status=$?
10392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393  (exit $ac_status); }; } &&
10394	 { ac_try='test -s conftest$ac_exeext'
10395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396  (eval $ac_try) 2>&5
10397  ac_status=$?
10398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399  (exit $ac_status); }; }; then
10400  ac_cv_func_shl_load=yes
10401else
10402  echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405ac_cv_func_shl_load=no
10406fi
10407rm -f conftest.err conftest.$ac_objext \
10408      conftest$ac_exeext conftest.$ac_ext
10409fi
10410echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10411echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10412if test $ac_cv_func_shl_load = yes; then
10413  lt_cv_dlopen="shl_load"
10414else
10415  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10416echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10417if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10418  echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420  ac_check_lib_save_LIBS=$LIBS
10421LIBS="-ldld  $LIBS"
10422cat >conftest.$ac_ext <<_ACEOF
10423/* confdefs.h.  */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h.  */
10428
10429/* Override any gcc2 internal prototype to avoid an error.  */
10430#ifdef __cplusplus
10431extern "C"
10432#endif
10433/* We use char because int might match the return type of a gcc2
10434   builtin and then its argument prototype would still apply.  */
10435char shl_load ();
10436int
10437main ()
10438{
10439shl_load ();
10440  ;
10441  return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
10445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446  (eval $ac_link) 2>conftest.er1
10447  ac_status=$?
10448  grep -v '^ *+' conftest.er1 >conftest.err
10449  rm -f conftest.er1
10450  cat conftest.err >&5
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); } &&
10453	 { ac_try='test -z "$ac_c_werror_flag"
10454			 || test ! -s conftest.err'
10455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456  (eval $ac_try) 2>&5
10457  ac_status=$?
10458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); }; } &&
10460	 { ac_try='test -s conftest$ac_exeext'
10461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462  (eval $ac_try) 2>&5
10463  ac_status=$?
10464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); }; }; then
10466  ac_cv_lib_dld_shl_load=yes
10467else
10468  echo "$as_me: failed program was:" >&5
10469sed 's/^/| /' conftest.$ac_ext >&5
10470
10471ac_cv_lib_dld_shl_load=no
10472fi
10473rm -f conftest.err conftest.$ac_objext \
10474      conftest$ac_exeext conftest.$ac_ext
10475LIBS=$ac_check_lib_save_LIBS
10476fi
10477echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10478echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10479if test $ac_cv_lib_dld_shl_load = yes; then
10480  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10481else
10482  echo "$as_me:$LINENO: checking for dlopen" >&5
10483echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10484if test "${ac_cv_func_dlopen+set}" = set; then
10485  echo $ECHO_N "(cached) $ECHO_C" >&6
10486else
10487  cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h.  */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h.  */
10493/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10494   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10495#define dlopen innocuous_dlopen
10496
10497/* System header to define __stub macros and hopefully few prototypes,
10498    which can conflict with char dlopen (); below.
10499    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10500    <limits.h> exists even on freestanding compilers.  */
10501
10502#ifdef __STDC__
10503# include <limits.h>
10504#else
10505# include <assert.h>
10506#endif
10507
10508#undef dlopen
10509
10510/* Override any gcc2 internal prototype to avoid an error.  */
10511#ifdef __cplusplus
10512extern "C"
10513{
10514#endif
10515/* We use char because int might match the return type of a gcc2
10516   builtin and then its argument prototype would still apply.  */
10517char dlopen ();
10518/* The GNU C library defines this for functions which it implements
10519    to always fail with ENOSYS.  Some functions are actually named
10520    something starting with __ and the normal name is an alias.  */
10521#if defined (__stub_dlopen) || defined (__stub___dlopen)
10522choke me
10523#else
10524char (*f) () = dlopen;
10525#endif
10526#ifdef __cplusplus
10527}
10528#endif
10529
10530int
10531main ()
10532{
10533return f != dlopen;
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538rm -f conftest.$ac_objext conftest$ac_exeext
10539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540  (eval $ac_link) 2>conftest.er1
10541  ac_status=$?
10542  grep -v '^ *+' conftest.er1 >conftest.err
10543  rm -f conftest.er1
10544  cat conftest.err >&5
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); } &&
10547	 { ac_try='test -z "$ac_c_werror_flag"
10548			 || test ! -s conftest.err'
10549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550  (eval $ac_try) 2>&5
10551  ac_status=$?
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); }; } &&
10554	 { ac_try='test -s conftest$ac_exeext'
10555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556  (eval $ac_try) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); }; }; then
10560  ac_cv_func_dlopen=yes
10561else
10562  echo "$as_me: failed program was:" >&5
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
10565ac_cv_func_dlopen=no
10566fi
10567rm -f conftest.err conftest.$ac_objext \
10568      conftest$ac_exeext conftest.$ac_ext
10569fi
10570echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10571echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10572if test $ac_cv_func_dlopen = yes; then
10573  lt_cv_dlopen="dlopen"
10574else
10575  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10576echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10577if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10578  echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580  ac_check_lib_save_LIBS=$LIBS
10581LIBS="-ldl  $LIBS"
10582cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h.  */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h.  */
10588
10589/* Override any gcc2 internal prototype to avoid an error.  */
10590#ifdef __cplusplus
10591extern "C"
10592#endif
10593/* We use char because int might match the return type of a gcc2
10594   builtin and then its argument prototype would still apply.  */
10595char dlopen ();
10596int
10597main ()
10598{
10599dlopen ();
10600  ;
10601  return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606  (eval $ac_link) 2>conftest.er1
10607  ac_status=$?
10608  grep -v '^ *+' conftest.er1 >conftest.err
10609  rm -f conftest.er1
10610  cat conftest.err >&5
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); } &&
10613	 { ac_try='test -z "$ac_c_werror_flag"
10614			 || test ! -s conftest.err'
10615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616  (eval $ac_try) 2>&5
10617  ac_status=$?
10618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); }; } &&
10620	 { ac_try='test -s conftest$ac_exeext'
10621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622  (eval $ac_try) 2>&5
10623  ac_status=$?
10624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625  (exit $ac_status); }; }; then
10626  ac_cv_lib_dl_dlopen=yes
10627else
10628  echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631ac_cv_lib_dl_dlopen=no
10632fi
10633rm -f conftest.err conftest.$ac_objext \
10634      conftest$ac_exeext conftest.$ac_ext
10635LIBS=$ac_check_lib_save_LIBS
10636fi
10637echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10638echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10639if test $ac_cv_lib_dl_dlopen = yes; then
10640  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10641else
10642  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10643echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10644if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10645  echo $ECHO_N "(cached) $ECHO_C" >&6
10646else
10647  ac_check_lib_save_LIBS=$LIBS
10648LIBS="-lsvld  $LIBS"
10649cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h.  */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h.  */
10655
10656/* Override any gcc2 internal prototype to avoid an error.  */
10657#ifdef __cplusplus
10658extern "C"
10659#endif
10660/* We use char because int might match the return type of a gcc2
10661   builtin and then its argument prototype would still apply.  */
10662char dlopen ();
10663int
10664main ()
10665{
10666dlopen ();
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671rm -f conftest.$ac_objext conftest$ac_exeext
10672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673  (eval $ac_link) 2>conftest.er1
10674  ac_status=$?
10675  grep -v '^ *+' conftest.er1 >conftest.err
10676  rm -f conftest.er1
10677  cat conftest.err >&5
10678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679  (exit $ac_status); } &&
10680	 { ac_try='test -z "$ac_c_werror_flag"
10681			 || test ! -s conftest.err'
10682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683  (eval $ac_try) 2>&5
10684  ac_status=$?
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); }; } &&
10687	 { ac_try='test -s conftest$ac_exeext'
10688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689  (eval $ac_try) 2>&5
10690  ac_status=$?
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); }; }; then
10693  ac_cv_lib_svld_dlopen=yes
10694else
10695  echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698ac_cv_lib_svld_dlopen=no
10699fi
10700rm -f conftest.err conftest.$ac_objext \
10701      conftest$ac_exeext conftest.$ac_ext
10702LIBS=$ac_check_lib_save_LIBS
10703fi
10704echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10705echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10706if test $ac_cv_lib_svld_dlopen = yes; then
10707  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10708else
10709  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10710echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10711if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  ac_check_lib_save_LIBS=$LIBS
10715LIBS="-ldld  $LIBS"
10716cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h.  */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h.  */
10722
10723/* Override any gcc2 internal prototype to avoid an error.  */
10724#ifdef __cplusplus
10725extern "C"
10726#endif
10727/* We use char because int might match the return type of a gcc2
10728   builtin and then its argument prototype would still apply.  */
10729char dld_link ();
10730int
10731main ()
10732{
10733dld_link ();
10734  ;
10735  return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext conftest$ac_exeext
10739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740  (eval $ac_link) 2>conftest.er1
10741  ac_status=$?
10742  grep -v '^ *+' conftest.er1 >conftest.err
10743  rm -f conftest.er1
10744  cat conftest.err >&5
10745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746  (exit $ac_status); } &&
10747	 { ac_try='test -z "$ac_c_werror_flag"
10748			 || test ! -s conftest.err'
10749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750  (eval $ac_try) 2>&5
10751  ac_status=$?
10752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753  (exit $ac_status); }; } &&
10754	 { ac_try='test -s conftest$ac_exeext'
10755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756  (eval $ac_try) 2>&5
10757  ac_status=$?
10758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759  (exit $ac_status); }; }; then
10760  ac_cv_lib_dld_dld_link=yes
10761else
10762  echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
10765ac_cv_lib_dld_dld_link=no
10766fi
10767rm -f conftest.err conftest.$ac_objext \
10768      conftest$ac_exeext conftest.$ac_ext
10769LIBS=$ac_check_lib_save_LIBS
10770fi
10771echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10772echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10773if test $ac_cv_lib_dld_dld_link = yes; then
10774  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10775fi
10776
10777
10778fi
10779
10780
10781fi
10782
10783
10784fi
10785
10786
10787fi
10788
10789
10790fi
10791
10792    ;;
10793  esac
10794
10795  if test "x$lt_cv_dlopen" != xno; then
10796    enable_dlopen=yes
10797  else
10798    enable_dlopen=no
10799  fi
10800
10801  case $lt_cv_dlopen in
10802  dlopen)
10803    save_CPPFLAGS="$CPPFLAGS"
10804    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10805
10806    save_LDFLAGS="$LDFLAGS"
10807    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10808
10809    save_LIBS="$LIBS"
10810    LIBS="$lt_cv_dlopen_libs $LIBS"
10811
10812    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10813echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10814if test "${lt_cv_dlopen_self+set}" = set; then
10815  echo $ECHO_N "(cached) $ECHO_C" >&6
10816else
10817  	  if test "$cross_compiling" = yes; then :
10818  lt_cv_dlopen_self=cross
10819else
10820  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10821  lt_status=$lt_dlunknown
10822  cat > conftest.$ac_ext <<EOF
10823#line 10823 "configure"
10824#include "confdefs.h"
10825
10826#if HAVE_DLFCN_H
10827#include <dlfcn.h>
10828#endif
10829
10830#include <stdio.h>
10831
10832#ifdef RTLD_GLOBAL
10833#  define LT_DLGLOBAL		RTLD_GLOBAL
10834#else
10835#  ifdef DL_GLOBAL
10836#    define LT_DLGLOBAL		DL_GLOBAL
10837#  else
10838#    define LT_DLGLOBAL		0
10839#  endif
10840#endif
10841
10842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10843   find out it does not work in some platform. */
10844#ifndef LT_DLLAZY_OR_NOW
10845#  ifdef RTLD_LAZY
10846#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10847#  else
10848#    ifdef DL_LAZY
10849#      define LT_DLLAZY_OR_NOW		DL_LAZY
10850#    else
10851#      ifdef RTLD_NOW
10852#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10853#      else
10854#        ifdef DL_NOW
10855#          define LT_DLLAZY_OR_NOW	DL_NOW
10856#        else
10857#          define LT_DLLAZY_OR_NOW	0
10858#        endif
10859#      endif
10860#    endif
10861#  endif
10862#endif
10863
10864#ifdef __cplusplus
10865extern "C" void exit (int);
10866#endif
10867
10868void fnord() { int i=42;}
10869int main ()
10870{
10871  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10872  int status = $lt_dlunknown;
10873
10874  if (self)
10875    {
10876      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10877      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10878      /* dlclose (self); */
10879    }
10880  else
10881    puts (dlerror ());
10882
10883    exit (status);
10884}
10885EOF
10886  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887  (eval $ac_link) 2>&5
10888  ac_status=$?
10889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10891    (./conftest; exit; ) >&5 2>/dev/null
10892    lt_status=$?
10893    case x$lt_status in
10894      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10895      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10896      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10897    esac
10898  else :
10899    # compilation failed
10900    lt_cv_dlopen_self=no
10901  fi
10902fi
10903rm -fr conftest*
10904
10905
10906fi
10907echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10908echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10909
10910    if test "x$lt_cv_dlopen_self" = xyes; then
10911      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10912      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10913echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10914if test "${lt_cv_dlopen_self_static+set}" = set; then
10915  echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917  	  if test "$cross_compiling" = yes; then :
10918  lt_cv_dlopen_self_static=cross
10919else
10920  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10921  lt_status=$lt_dlunknown
10922  cat > conftest.$ac_ext <<EOF
10923#line 10923 "configure"
10924#include "confdefs.h"
10925
10926#if HAVE_DLFCN_H
10927#include <dlfcn.h>
10928#endif
10929
10930#include <stdio.h>
10931
10932#ifdef RTLD_GLOBAL
10933#  define LT_DLGLOBAL		RTLD_GLOBAL
10934#else
10935#  ifdef DL_GLOBAL
10936#    define LT_DLGLOBAL		DL_GLOBAL
10937#  else
10938#    define LT_DLGLOBAL		0
10939#  endif
10940#endif
10941
10942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10943   find out it does not work in some platform. */
10944#ifndef LT_DLLAZY_OR_NOW
10945#  ifdef RTLD_LAZY
10946#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10947#  else
10948#    ifdef DL_LAZY
10949#      define LT_DLLAZY_OR_NOW		DL_LAZY
10950#    else
10951#      ifdef RTLD_NOW
10952#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10953#      else
10954#        ifdef DL_NOW
10955#          define LT_DLLAZY_OR_NOW	DL_NOW
10956#        else
10957#          define LT_DLLAZY_OR_NOW	0
10958#        endif
10959#      endif
10960#    endif
10961#  endif
10962#endif
10963
10964#ifdef __cplusplus
10965extern "C" void exit (int);
10966#endif
10967
10968void fnord() { int i=42;}
10969int main ()
10970{
10971  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10972  int status = $lt_dlunknown;
10973
10974  if (self)
10975    {
10976      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10977      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10978      /* dlclose (self); */
10979    }
10980  else
10981    puts (dlerror ());
10982
10983    exit (status);
10984}
10985EOF
10986  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987  (eval $ac_link) 2>&5
10988  ac_status=$?
10989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10991    (./conftest; exit; ) >&5 2>/dev/null
10992    lt_status=$?
10993    case x$lt_status in
10994      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10995      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10996      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10997    esac
10998  else :
10999    # compilation failed
11000    lt_cv_dlopen_self_static=no
11001  fi
11002fi
11003rm -fr conftest*
11004
11005
11006fi
11007echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11008echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11009    fi
11010
11011    CPPFLAGS="$save_CPPFLAGS"
11012    LDFLAGS="$save_LDFLAGS"
11013    LIBS="$save_LIBS"
11014    ;;
11015  esac
11016
11017  case $lt_cv_dlopen_self in
11018  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11019  *) enable_dlopen_self=unknown ;;
11020  esac
11021
11022  case $lt_cv_dlopen_self_static in
11023  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11024  *) enable_dlopen_self_static=unknown ;;
11025  esac
11026fi
11027
11028
11029# Report which library types will actually be built
11030echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11031echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11032echo "$as_me:$LINENO: result: $can_build_shared" >&5
11033echo "${ECHO_T}$can_build_shared" >&6
11034
11035echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11036echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11037test "$can_build_shared" = "no" && enable_shared=no
11038
11039# On AIX, shared libraries and static libraries use the same namespace, and
11040# are all built from PIC.
11041case $host_os in
11042aix3*)
11043  test "$enable_shared" = yes && enable_static=no
11044  if test -n "$RANLIB"; then
11045    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11046    postinstall_cmds='$RANLIB $lib'
11047  fi
11048  ;;
11049
11050aix4* | aix5*)
11051  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11052    test "$enable_shared" = yes && enable_static=no
11053  fi
11054    ;;
11055esac
11056echo "$as_me:$LINENO: result: $enable_shared" >&5
11057echo "${ECHO_T}$enable_shared" >&6
11058
11059echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11060echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11061# Make sure either enable_shared or enable_static is yes.
11062test "$enable_shared" = yes || enable_static=yes
11063echo "$as_me:$LINENO: result: $enable_static" >&5
11064echo "${ECHO_T}$enable_static" >&6
11065
11066# The else clause should only fire when bootstrapping the
11067# libtool distribution, otherwise you forgot to ship ltmain.sh
11068# with your package, and you will get complaints that there are
11069# no rules to generate ltmain.sh.
11070if test -f "$ltmain"; then
11071  # See if we are running on zsh, and set the options which allow our commands through
11072  # without removal of \ escapes.
11073  if test -n "${ZSH_VERSION+set}" ; then
11074    setopt NO_GLOB_SUBST
11075  fi
11076  # Now quote all the things that may contain metacharacters while being
11077  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11078  # variables and quote the copies for generation of the libtool script.
11079  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11080    SED SHELL STRIP \
11081    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11082    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11083    deplibs_check_method reload_flag reload_cmds need_locks \
11084    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11085    lt_cv_sys_global_symbol_to_c_name_address \
11086    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11087    old_postinstall_cmds old_postuninstall_cmds \
11088    compiler \
11089    CC \
11090    LD \
11091    lt_prog_compiler_wl \
11092    lt_prog_compiler_pic \
11093    lt_prog_compiler_static \
11094    lt_prog_compiler_no_builtin_flag \
11095    export_dynamic_flag_spec \
11096    thread_safe_flag_spec \
11097    whole_archive_flag_spec \
11098    enable_shared_with_static_runtimes \
11099    old_archive_cmds \
11100    old_archive_from_new_cmds \
11101    predep_objects \
11102    postdep_objects \
11103    predeps \
11104    postdeps \
11105    compiler_lib_search_path \
11106    archive_cmds \
11107    archive_expsym_cmds \
11108    postinstall_cmds \
11109    postuninstall_cmds \
11110    old_archive_from_expsyms_cmds \
11111    allow_undefined_flag \
11112    no_undefined_flag \
11113    export_symbols_cmds \
11114    hardcode_libdir_flag_spec \
11115    hardcode_libdir_flag_spec_ld \
11116    hardcode_libdir_separator \
11117    hardcode_automatic \
11118    module_cmds \
11119    module_expsym_cmds \
11120    lt_cv_prog_compiler_c_o \
11121    exclude_expsyms \
11122    include_expsyms; do
11123
11124    case $var in
11125    old_archive_cmds | \
11126    old_archive_from_new_cmds | \
11127    archive_cmds | \
11128    archive_expsym_cmds | \
11129    module_cmds | \
11130    module_expsym_cmds | \
11131    old_archive_from_expsyms_cmds | \
11132    export_symbols_cmds | \
11133    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11134    postinstall_cmds | postuninstall_cmds | \
11135    old_postinstall_cmds | old_postuninstall_cmds | \
11136    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11137      # Double-quote double-evaled strings.
11138      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11139      ;;
11140    *)
11141      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11142      ;;
11143    esac
11144  done
11145
11146  case $lt_echo in
11147  *'\$0 --fallback-echo"')
11148    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11149    ;;
11150  esac
11151
11152cfgfile="${ofile}T"
11153  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11154  $rm -f "$cfgfile"
11155  { echo "$as_me:$LINENO: creating $ofile" >&5
11156echo "$as_me: creating $ofile" >&6;}
11157
11158  cat <<__EOF__ >> "$cfgfile"
11159#! $SHELL
11160
11161# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11162# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11163# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11164#
11165# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11166# Free Software Foundation, Inc.
11167#
11168# This file is part of GNU Libtool:
11169# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11170#
11171# This program is free software; you can redistribute it and/or modify
11172# it under the terms of the GNU General Public License as published by
11173# the Free Software Foundation; either version 2 of the License, or
11174# (at your option) any later version.
11175#
11176# This program is distributed in the hope that it will be useful, but
11177# WITHOUT ANY WARRANTY; without even the implied warranty of
11178# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11179# General Public License for more details.
11180#
11181# You should have received a copy of the GNU General Public License
11182# along with this program; if not, write to the Free Software
11183# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11184#
11185# As a special exception to the GNU General Public License, if you
11186# distribute this file as part of a program that contains a
11187# configuration script generated by Autoconf, you may include it under
11188# the same distribution terms that you use for the rest of that program.
11189
11190# A sed program that does not truncate output.
11191SED=$lt_SED
11192
11193# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11194Xsed="$SED -e 1s/^X//"
11195
11196# The HP-UX ksh and POSIX shell print the target directory to stdout
11197# if CDPATH is set.
11198(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11199
11200# The names of the tagged configurations supported by this script.
11201available_tags=
11202
11203# ### BEGIN LIBTOOL CONFIG
11204
11205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11206
11207# Shell to use when invoking shell scripts.
11208SHELL=$lt_SHELL
11209
11210# Whether or not to build shared libraries.
11211build_libtool_libs=$enable_shared
11212
11213# Whether or not to build static libraries.
11214build_old_libs=$enable_static
11215
11216# Whether or not to add -lc for building shared libraries.
11217build_libtool_need_lc=$archive_cmds_need_lc
11218
11219# Whether or not to disallow shared libs when runtime libs are static
11220allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11221
11222# Whether or not to optimize for fast installation.
11223fast_install=$enable_fast_install
11224
11225# The host system.
11226host_alias=$host_alias
11227host=$host
11228host_os=$host_os
11229
11230# The build system.
11231build_alias=$build_alias
11232build=$build
11233build_os=$build_os
11234
11235# An echo program that does not interpret backslashes.
11236echo=$lt_echo
11237
11238# The archiver.
11239AR=$lt_AR
11240AR_FLAGS=$lt_AR_FLAGS
11241
11242# A C compiler.
11243LTCC=$lt_LTCC
11244
11245# LTCC compiler flags.
11246LTCFLAGS=$lt_LTCFLAGS
11247
11248# A language-specific compiler.
11249CC=$lt_compiler
11250
11251# Is the compiler the GNU C compiler?
11252with_gcc=$GCC
11253
11254# An ERE matcher.
11255EGREP=$lt_EGREP
11256
11257# The linker used to build libraries.
11258LD=$lt_LD
11259
11260# Whether we need hard or soft links.
11261LN_S=$lt_LN_S
11262
11263# A BSD-compatible nm program.
11264NM=$lt_NM
11265
11266# A symbol stripping program
11267STRIP=$lt_STRIP
11268
11269# Used to examine libraries when file_magic_cmd begins "file"
11270MAGIC_CMD=$MAGIC_CMD
11271
11272# Used on cygwin: DLL creation program.
11273DLLTOOL="$DLLTOOL"
11274
11275# Used on cygwin: object dumper.
11276OBJDUMP="$OBJDUMP"
11277
11278# Used on cygwin: assembler.
11279AS="$AS"
11280
11281# The name of the directory that contains temporary libtool files.
11282objdir=$objdir
11283
11284# How to create reloadable object files.
11285reload_flag=$lt_reload_flag
11286reload_cmds=$lt_reload_cmds
11287
11288# How to pass a linker flag through the compiler.
11289wl=$lt_lt_prog_compiler_wl
11290
11291# Object file suffix (normally "o").
11292objext="$ac_objext"
11293
11294# Old archive suffix (normally "a").
11295libext="$libext"
11296
11297# Shared library suffix (normally ".so").
11298shrext_cmds='$shrext_cmds'
11299
11300# Executable file suffix (normally "").
11301exeext="$exeext"
11302
11303# Additional compiler flags for building library objects.
11304pic_flag=$lt_lt_prog_compiler_pic
11305pic_mode=$pic_mode
11306
11307# What is the maximum length of a command?
11308max_cmd_len=$lt_cv_sys_max_cmd_len
11309
11310# Does compiler simultaneously support -c and -o options?
11311compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11312
11313# Must we lock files when doing compilation?
11314need_locks=$lt_need_locks
11315
11316# Do we need the lib prefix for modules?
11317need_lib_prefix=$need_lib_prefix
11318
11319# Do we need a version for libraries?
11320need_version=$need_version
11321
11322# Whether dlopen is supported.
11323dlopen_support=$enable_dlopen
11324
11325# Whether dlopen of programs is supported.
11326dlopen_self=$enable_dlopen_self
11327
11328# Whether dlopen of statically linked programs is supported.
11329dlopen_self_static=$enable_dlopen_self_static
11330
11331# Compiler flag to prevent dynamic linking.
11332link_static_flag=$lt_lt_prog_compiler_static
11333
11334# Compiler flag to turn off builtin functions.
11335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11336
11337# Compiler flag to allow reflexive dlopens.
11338export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11339
11340# Compiler flag to generate shared objects directly from archives.
11341whole_archive_flag_spec=$lt_whole_archive_flag_spec
11342
11343# Compiler flag to generate thread-safe objects.
11344thread_safe_flag_spec=$lt_thread_safe_flag_spec
11345
11346# Library versioning type.
11347version_type=$version_type
11348
11349# Format of library name prefix.
11350libname_spec=$lt_libname_spec
11351
11352# List of archive names.  First name is the real one, the rest are links.
11353# The last name is the one that the linker finds with -lNAME.
11354library_names_spec=$lt_library_names_spec
11355
11356# The coded name of the library, if different from the real name.
11357soname_spec=$lt_soname_spec
11358
11359# Commands used to build and install an old-style archive.
11360RANLIB=$lt_RANLIB
11361old_archive_cmds=$lt_old_archive_cmds
11362old_postinstall_cmds=$lt_old_postinstall_cmds
11363old_postuninstall_cmds=$lt_old_postuninstall_cmds
11364
11365# Create an old-style archive from a shared archive.
11366old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11367
11368# Create a temporary old-style archive to link instead of a shared archive.
11369old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11370
11371# Commands used to build and install a shared archive.
11372archive_cmds=$lt_archive_cmds
11373archive_expsym_cmds=$lt_archive_expsym_cmds
11374postinstall_cmds=$lt_postinstall_cmds
11375postuninstall_cmds=$lt_postuninstall_cmds
11376
11377# Commands used to build a loadable module (assumed same as above if empty)
11378module_cmds=$lt_module_cmds
11379module_expsym_cmds=$lt_module_expsym_cmds
11380
11381# Commands to strip libraries.
11382old_striplib=$lt_old_striplib
11383striplib=$lt_striplib
11384
11385# Dependencies to place before the objects being linked to create a
11386# shared library.
11387predep_objects=$lt_predep_objects
11388
11389# Dependencies to place after the objects being linked to create a
11390# shared library.
11391postdep_objects=$lt_postdep_objects
11392
11393# Dependencies to place before the objects being linked to create a
11394# shared library.
11395predeps=$lt_predeps
11396
11397# Dependencies to place after the objects being linked to create a
11398# shared library.
11399postdeps=$lt_postdeps
11400
11401# The library search path used internally by the compiler when linking
11402# a shared library.
11403compiler_lib_search_path=$lt_compiler_lib_search_path
11404
11405# Method to check whether dependent libraries are shared objects.
11406deplibs_check_method=$lt_deplibs_check_method
11407
11408# Command to use when deplibs_check_method == file_magic.
11409file_magic_cmd=$lt_file_magic_cmd
11410
11411# Flag that allows shared libraries with undefined symbols to be built.
11412allow_undefined_flag=$lt_allow_undefined_flag
11413
11414# Flag that forces no undefined symbols.
11415no_undefined_flag=$lt_no_undefined_flag
11416
11417# Commands used to finish a libtool library installation in a directory.
11418finish_cmds=$lt_finish_cmds
11419
11420# Same as above, but a single script fragment to be evaled but not shown.
11421finish_eval=$lt_finish_eval
11422
11423# Take the output of nm and produce a listing of raw symbols and C names.
11424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11425
11426# Transform the output of nm in a proper C declaration
11427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11428
11429# Transform the output of nm in a C name address pair
11430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11431
11432# This is the shared library runtime path variable.
11433runpath_var=$runpath_var
11434
11435# This is the shared library path variable.
11436shlibpath_var=$shlibpath_var
11437
11438# Is shlibpath searched before the hard-coded library search path?
11439shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11440
11441# How to hardcode a shared library path into an executable.
11442hardcode_action=$hardcode_action
11443
11444# Whether we should hardcode library paths into libraries.
11445hardcode_into_libs=$hardcode_into_libs
11446
11447# Flag to hardcode \$libdir into a binary during linking.
11448# This must work even if \$libdir does not exist.
11449hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11450
11451# If ld is used when linking, flag to hardcode \$libdir into
11452# a binary during linking. This must work even if \$libdir does
11453# not exist.
11454hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11455
11456# Whether we need a single -rpath flag with a separated argument.
11457hardcode_libdir_separator=$lt_hardcode_libdir_separator
11458
11459# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11460# resulting binary.
11461hardcode_direct=$hardcode_direct
11462
11463# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11464# resulting binary.
11465hardcode_minus_L=$hardcode_minus_L
11466
11467# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11468# the resulting binary.
11469hardcode_shlibpath_var=$hardcode_shlibpath_var
11470
11471# Set to yes if building a shared library automatically hardcodes DIR into the library
11472# and all subsequent libraries and executables linked against it.
11473hardcode_automatic=$hardcode_automatic
11474
11475# Variables whose values should be saved in libtool wrapper scripts and
11476# restored at relink time.
11477variables_saved_for_relink="$variables_saved_for_relink"
11478
11479# Whether libtool must link a program against all its dependency libraries.
11480link_all_deplibs=$link_all_deplibs
11481
11482# Compile-time system search path for libraries
11483sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11484
11485# Run-time system search path for libraries
11486sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11487
11488# Fix the shell variable \$srcfile for the compiler.
11489fix_srcfile_path="$fix_srcfile_path"
11490
11491# Set to yes if exported symbols are required.
11492always_export_symbols=$always_export_symbols
11493
11494# The commands to list exported symbols.
11495export_symbols_cmds=$lt_export_symbols_cmds
11496
11497# The commands to extract the exported symbol list from a shared archive.
11498extract_expsyms_cmds=$lt_extract_expsyms_cmds
11499
11500# Symbols that should not be listed in the preloaded symbols.
11501exclude_expsyms=$lt_exclude_expsyms
11502
11503# Symbols that must always be exported.
11504include_expsyms=$lt_include_expsyms
11505
11506# ### END LIBTOOL CONFIG
11507
11508__EOF__
11509
11510
11511  case $host_os in
11512  aix3*)
11513    cat <<\EOF >> "$cfgfile"
11514
11515# AIX sometimes has problems with the GCC collect2 program.  For some
11516# reason, if we set the COLLECT_NAMES environment variable, the problems
11517# vanish in a puff of smoke.
11518if test "X${COLLECT_NAMES+set}" != Xset; then
11519  COLLECT_NAMES=
11520  export COLLECT_NAMES
11521fi
11522EOF
11523    ;;
11524  esac
11525
11526  # We use sed instead of cat because bash on DJGPP gets confused if
11527  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11528  # text mode, it properly converts lines to CR/LF.  This bash problem
11529  # is reportedly fixed, but why not run on old versions too?
11530  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11531
11532  mv -f "$cfgfile" "$ofile" || \
11533    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11534  chmod +x "$ofile"
11535
11536else
11537  # If there is no Makefile yet, we rely on a make rule to execute
11538  # `config.status --recheck' to rerun these tests and create the
11539  # libtool script then.
11540  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11541  if test -f "$ltmain_in"; then
11542    test -f Makefile && make "$ltmain"
11543  fi
11544fi
11545
11546
11547ac_ext=cc
11548ac_cpp='$CXXCPP $CPPFLAGS'
11549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11552
11553CC="$lt_save_CC"
11554
11555
11556# Check whether --with-tags or --without-tags was given.
11557if test "${with_tags+set}" = set; then
11558  withval="$with_tags"
11559  tagnames="$withval"
11560fi;
11561
11562if test -f "$ltmain" && test -n "$tagnames"; then
11563  if test ! -f "${ofile}"; then
11564    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11565echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11566  fi
11567
11568  if test -z "$LTCC"; then
11569    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11570    if test -z "$LTCC"; then
11571      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11572echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11573    else
11574      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11575echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11576    fi
11577  fi
11578  if test -z "$LTCFLAGS"; then
11579    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11580  fi
11581
11582  # Extract list of available tagged configurations in $ofile.
11583  # Note that this assumes the entire list is on one line.
11584  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11585
11586  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11587  for tagname in $tagnames; do
11588    IFS="$lt_save_ifs"
11589    # Check whether tagname contains only valid characters
11590    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11591    "") ;;
11592    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11593echo "$as_me: error: invalid tag name: $tagname" >&2;}
11594   { (exit 1); exit 1; }; }
11595	;;
11596    esac
11597
11598    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11599    then
11600      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11601echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11602   { (exit 1); exit 1; }; }
11603    fi
11604
11605    # Update the list of available tags.
11606    if test -n "$tagname"; then
11607      echo appending configuration tag \"$tagname\" to $ofile
11608
11609      case $tagname in
11610      CXX)
11611	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11612	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11613	    (test "X$CXX" != "Xg++"))) ; then
11614	  ac_ext=cc
11615ac_cpp='$CXXCPP $CPPFLAGS'
11616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11619
11620
11621
11622
11623archive_cmds_need_lc_CXX=no
11624allow_undefined_flag_CXX=
11625always_export_symbols_CXX=no
11626archive_expsym_cmds_CXX=
11627export_dynamic_flag_spec_CXX=
11628hardcode_direct_CXX=no
11629hardcode_libdir_flag_spec_CXX=
11630hardcode_libdir_flag_spec_ld_CXX=
11631hardcode_libdir_separator_CXX=
11632hardcode_minus_L_CXX=no
11633hardcode_shlibpath_var_CXX=unsupported
11634hardcode_automatic_CXX=no
11635module_cmds_CXX=
11636module_expsym_cmds_CXX=
11637link_all_deplibs_CXX=unknown
11638old_archive_cmds_CXX=$old_archive_cmds
11639no_undefined_flag_CXX=
11640whole_archive_flag_spec_CXX=
11641enable_shared_with_static_runtimes_CXX=no
11642
11643# Dependencies to place before and after the object being linked:
11644predep_objects_CXX=
11645postdep_objects_CXX=
11646predeps_CXX=
11647postdeps_CXX=
11648compiler_lib_search_path_CXX=
11649
11650# Source file extension for C++ test sources.
11651ac_ext=cpp
11652
11653# Object file extension for compiled C++ test sources.
11654objext=o
11655objext_CXX=$objext
11656
11657# Code to be used in simple compile tests
11658lt_simple_compile_test_code="int some_variable = 0;\n"
11659
11660# Code to be used in simple link tests
11661lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11662
11663# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11664
11665# If no C compiler was specified, use CC.
11666LTCC=${LTCC-"$CC"}
11667
11668# If no C compiler flags were specified, use CFLAGS.
11669LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11670
11671# Allow CC to be a program name with arguments.
11672compiler=$CC
11673
11674
11675# save warnings/boilerplate of simple test code
11676ac_outfile=conftest.$ac_objext
11677printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11678eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11679_lt_compiler_boilerplate=`cat conftest.err`
11680$rm conftest*
11681
11682ac_outfile=conftest.$ac_objext
11683printf "$lt_simple_link_test_code" >conftest.$ac_ext
11684eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11685_lt_linker_boilerplate=`cat conftest.err`
11686$rm conftest*
11687
11688
11689# Allow CC to be a program name with arguments.
11690lt_save_CC=$CC
11691lt_save_LD=$LD
11692lt_save_GCC=$GCC
11693GCC=$GXX
11694lt_save_with_gnu_ld=$with_gnu_ld
11695lt_save_path_LD=$lt_cv_path_LD
11696if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11697  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11698else
11699  $as_unset lt_cv_prog_gnu_ld
11700fi
11701if test -n "${lt_cv_path_LDCXX+set}"; then
11702  lt_cv_path_LD=$lt_cv_path_LDCXX
11703else
11704  $as_unset lt_cv_path_LD
11705fi
11706test -z "${LDCXX+set}" || LD=$LDCXX
11707CC=${CXX-"c++"}
11708compiler=$CC
11709compiler_CXX=$CC
11710for cc_temp in $compiler""; do
11711  case $cc_temp in
11712    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11713    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11714    \-*) ;;
11715    *) break;;
11716  esac
11717done
11718cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11719
11720
11721# We don't want -fno-exception wen compiling C++ code, so set the
11722# no_builtin_flag separately
11723if test "$GXX" = yes; then
11724  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11725else
11726  lt_prog_compiler_no_builtin_flag_CXX=
11727fi
11728
11729if test "$GXX" = yes; then
11730  # Set up default GNU C++ configuration
11731
11732
11733# Check whether --with-gnu-ld or --without-gnu-ld was given.
11734if test "${with_gnu_ld+set}" = set; then
11735  withval="$with_gnu_ld"
11736  test "$withval" = no || with_gnu_ld=yes
11737else
11738  with_gnu_ld=no
11739fi;
11740ac_prog=ld
11741if test "$GCC" = yes; then
11742  # Check if gcc -print-prog-name=ld gives a path.
11743  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11744echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11745  case $host in
11746  *-*-mingw*)
11747    # gcc leaves a trailing carriage return which upsets mingw
11748    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11749  *)
11750    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11751  esac
11752  case $ac_prog in
11753    # Accept absolute paths.
11754    [\\/]* | ?:[\\/]*)
11755      re_direlt='/[^/][^/]*/\.\./'
11756      # Canonicalize the pathname of ld
11757      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11758      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11759	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11760      done
11761      test -z "$LD" && LD="$ac_prog"
11762      ;;
11763  "")
11764    # If it fails, then pretend we aren't using GCC.
11765    ac_prog=ld
11766    ;;
11767  *)
11768    # If it is relative, then search for the first ld in PATH.
11769    with_gnu_ld=unknown
11770    ;;
11771  esac
11772elif test "$with_gnu_ld" = yes; then
11773  echo "$as_me:$LINENO: checking for GNU ld" >&5
11774echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11775else
11776  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11777echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11778fi
11779if test "${lt_cv_path_LD+set}" = set; then
11780  echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782  if test -z "$LD"; then
11783  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11784  for ac_dir in $PATH; do
11785    IFS="$lt_save_ifs"
11786    test -z "$ac_dir" && ac_dir=.
11787    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11788      lt_cv_path_LD="$ac_dir/$ac_prog"
11789      # Check to see if the program is GNU ld.  I'd rather use --version,
11790      # but apparently some variants of GNU ld only accept -v.
11791      # Break only if it was the GNU/non-GNU ld that we prefer.
11792      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11793      *GNU* | *'with BFD'*)
11794	test "$with_gnu_ld" != no && break
11795	;;
11796      *)
11797	test "$with_gnu_ld" != yes && break
11798	;;
11799      esac
11800    fi
11801  done
11802  IFS="$lt_save_ifs"
11803else
11804  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11805fi
11806fi
11807
11808LD="$lt_cv_path_LD"
11809if test -n "$LD"; then
11810  echo "$as_me:$LINENO: result: $LD" >&5
11811echo "${ECHO_T}$LD" >&6
11812else
11813  echo "$as_me:$LINENO: result: no" >&5
11814echo "${ECHO_T}no" >&6
11815fi
11816test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11817echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11818   { (exit 1); exit 1; }; }
11819echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11820echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11821if test "${lt_cv_prog_gnu_ld+set}" = set; then
11822  echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11825case `$LD -v 2>&1 </dev/null` in
11826*GNU* | *'with BFD'*)
11827  lt_cv_prog_gnu_ld=yes
11828  ;;
11829*)
11830  lt_cv_prog_gnu_ld=no
11831  ;;
11832esac
11833fi
11834echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11835echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11836with_gnu_ld=$lt_cv_prog_gnu_ld
11837
11838
11839
11840  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11841  # archiving commands below assume that GNU ld is being used.
11842  if test "$with_gnu_ld" = yes; then
11843    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11844    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'
11845
11846    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11847    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11848
11849    # If archive_cmds runs LD, not CC, wlarc should be empty
11850    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11851    #     investigate it a little bit more. (MM)
11852    wlarc='${wl}'
11853
11854    # ancient GNU ld didn't support --whole-archive et. al.
11855    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11856	grep 'no-whole-archive' > /dev/null; then
11857      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11858    else
11859      whole_archive_flag_spec_CXX=
11860    fi
11861  else
11862    with_gnu_ld=no
11863    wlarc=
11864
11865    # A generic and very simple default shared library creation
11866    # command for GNU C++ for the case where it uses the native
11867    # linker, instead of GNU ld.  If possible, this setting should
11868    # overridden to take advantage of the native linker features on
11869    # the platform it is being used on.
11870    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11871  fi
11872
11873  # Commands to make compiler produce verbose output that lists
11874  # what "hidden" libraries, object files and flags are used when
11875  # linking a shared library.
11876  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11877
11878else
11879  GXX=no
11880  with_gnu_ld=no
11881  wlarc=
11882fi
11883
11884# PORTME: fill in a description of your system's C++ link characteristics
11885echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11886echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11887ld_shlibs_CXX=yes
11888case $host_os in
11889  aix3*)
11890    # FIXME: insert proper C++ library support
11891    ld_shlibs_CXX=no
11892    ;;
11893  aix4* | aix5*)
11894    if test "$host_cpu" = ia64; then
11895      # On IA64, the linker does run time linking by default, so we don't
11896      # have to do anything special.
11897      aix_use_runtimelinking=no
11898      exp_sym_flag='-Bexport'
11899      no_entry_flag=""
11900    else
11901      aix_use_runtimelinking=no
11902
11903      # Test if we are trying to use run time linking or normal
11904      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11905      # need to do runtime linking.
11906      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11907	for ld_flag in $LDFLAGS; do
11908	  case $ld_flag in
11909	  *-brtl*)
11910	    aix_use_runtimelinking=yes
11911	    break
11912	    ;;
11913	  esac
11914	done
11915	;;
11916      esac
11917
11918      exp_sym_flag='-bexport'
11919      no_entry_flag='-bnoentry'
11920    fi
11921
11922    # When large executables or shared objects are built, AIX ld can
11923    # have problems creating the table of contents.  If linking a library
11924    # or program results in "error TOC overflow" add -mminimal-toc to
11925    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11926    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11927
11928    archive_cmds_CXX=''
11929    hardcode_direct_CXX=yes
11930    hardcode_libdir_separator_CXX=':'
11931    link_all_deplibs_CXX=yes
11932
11933    if test "$GXX" = yes; then
11934      case $host_os in aix4.[012]|aix4.[012].*)
11935      # We only want to do this on AIX 4.2 and lower, the check
11936      # below for broken collect2 doesn't work under 4.3+
11937	collect2name=`${CC} -print-prog-name=collect2`
11938	if test -f "$collect2name" && \
11939	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11940	then
11941	  # We have reworked collect2
11942	  hardcode_direct_CXX=yes
11943	else
11944	  # We have old collect2
11945	  hardcode_direct_CXX=unsupported
11946	  # It fails to find uninstalled libraries when the uninstalled
11947	  # path is not listed in the libpath.  Setting hardcode_minus_L
11948	  # to unsupported forces relinking
11949	  hardcode_minus_L_CXX=yes
11950	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11951	  hardcode_libdir_separator_CXX=
11952	fi
11953	;;
11954      esac
11955      shared_flag='-shared'
11956      if test "$aix_use_runtimelinking" = yes; then
11957	shared_flag="$shared_flag "'${wl}-G'
11958      fi
11959    else
11960      # not using gcc
11961      if test "$host_cpu" = ia64; then
11962	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11963	# chokes on -Wl,-G. The following line is correct:
11964	shared_flag='-G'
11965      else
11966	if test "$aix_use_runtimelinking" = yes; then
11967	  shared_flag='${wl}-G'
11968	else
11969	  shared_flag='${wl}-bM:SRE'
11970	fi
11971      fi
11972    fi
11973
11974    # It seems that -bexpall does not export symbols beginning with
11975    # underscore (_), so it is better to generate a list of symbols to export.
11976    always_export_symbols_CXX=yes
11977    if test "$aix_use_runtimelinking" = yes; then
11978      # Warning - without using the other runtime loading flags (-brtl),
11979      # -berok will link without error, but may produce a broken library.
11980      allow_undefined_flag_CXX='-berok'
11981      # Determine the default libpath from the value encoded in an empty executable.
11982      cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h.  */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h.  */
11988
11989int
11990main ()
11991{
11992
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997rm -f conftest.$ac_objext conftest$ac_exeext
11998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999  (eval $ac_link) 2>conftest.er1
12000  ac_status=$?
12001  grep -v '^ *+' conftest.er1 >conftest.err
12002  rm -f conftest.er1
12003  cat conftest.err >&5
12004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005  (exit $ac_status); } &&
12006	 { ac_try='test -z "$ac_cxx_werror_flag"
12007			 || test ! -s conftest.err'
12008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009  (eval $ac_try) 2>&5
12010  ac_status=$?
12011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012  (exit $ac_status); }; } &&
12013	 { ac_try='test -s conftest$ac_exeext'
12014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015  (eval $ac_try) 2>&5
12016  ac_status=$?
12017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018  (exit $ac_status); }; }; then
12019
12020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12021}'`
12022# Check for a 64-bit object if we didn't find anything.
12023if 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; }
12024}'`; fi
12025else
12026  echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029fi
12030rm -f conftest.err conftest.$ac_objext \
12031      conftest$ac_exeext conftest.$ac_ext
12032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12033
12034      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12035
12036      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"
12037     else
12038      if test "$host_cpu" = ia64; then
12039	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12040	allow_undefined_flag_CXX="-z nodefs"
12041	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"
12042      else
12043	# Determine the default libpath from the value encoded in an empty executable.
12044	cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h.  */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h.  */
12050
12051int
12052main ()
12053{
12054
12055  ;
12056  return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061  (eval $ac_link) 2>conftest.er1
12062  ac_status=$?
12063  grep -v '^ *+' conftest.er1 >conftest.err
12064  rm -f conftest.er1
12065  cat conftest.err >&5
12066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067  (exit $ac_status); } &&
12068	 { ac_try='test -z "$ac_cxx_werror_flag"
12069			 || test ! -s conftest.err'
12070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071  (eval $ac_try) 2>&5
12072  ac_status=$?
12073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074  (exit $ac_status); }; } &&
12075	 { ac_try='test -s conftest$ac_exeext'
12076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077  (eval $ac_try) 2>&5
12078  ac_status=$?
12079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080  (exit $ac_status); }; }; then
12081
12082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12083}'`
12084# Check for a 64-bit object if we didn't find anything.
12085if 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; }
12086}'`; fi
12087else
12088  echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091fi
12092rm -f conftest.err conftest.$ac_objext \
12093      conftest$ac_exeext conftest.$ac_ext
12094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12095
12096	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12097	# Warning - without using the other run time loading flags,
12098	# -berok will link without error, but may produce a broken library.
12099	no_undefined_flag_CXX=' ${wl}-bernotok'
12100	allow_undefined_flag_CXX=' ${wl}-berok'
12101	# Exported symbols can be pulled into shared objects from archives
12102	whole_archive_flag_spec_CXX='$convenience'
12103	archive_cmds_need_lc_CXX=yes
12104	# This is similar to how AIX traditionally builds its shared libraries.
12105	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'
12106      fi
12107    fi
12108    ;;
12109
12110  beos*)
12111    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12112      allow_undefined_flag_CXX=unsupported
12113      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12114      # support --undefined.  This deserves some investigation.  FIXME
12115      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12116    else
12117      ld_shlibs_CXX=no
12118    fi
12119    ;;
12120
12121  chorus*)
12122    case $cc_basename in
12123      *)
12124	# FIXME: insert proper C++ library support
12125	ld_shlibs_CXX=no
12126	;;
12127    esac
12128    ;;
12129
12130  cygwin* | mingw* | pw32*)
12131    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12132    # as there is no search path for DLLs.
12133    hardcode_libdir_flag_spec_CXX='-L$libdir'
12134    allow_undefined_flag_CXX=unsupported
12135    always_export_symbols_CXX=no
12136    enable_shared_with_static_runtimes_CXX=yes
12137
12138    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12139      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'
12140      # If the export-symbols file already is a .def file (1st line
12141      # is EXPORTS), use it as is; otherwise, prepend...
12142      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12143	cp $export_symbols $output_objdir/$soname.def;
12144      else
12145	echo EXPORTS > $output_objdir/$soname.def;
12146	cat $export_symbols >> $output_objdir/$soname.def;
12147      fi~
12148      $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'
12149    else
12150      ld_shlibs_CXX=no
12151    fi
12152  ;;
12153      darwin* | rhapsody*)
12154        case $host_os in
12155        rhapsody* | darwin1.[012])
12156         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12157         ;;
12158       *) # Darwin 1.3 on
12159         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12160           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12161         else
12162           case ${MACOSX_DEPLOYMENT_TARGET} in
12163             10.[012])
12164               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12165               ;;
12166             10.*)
12167               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12168               ;;
12169           esac
12170         fi
12171         ;;
12172        esac
12173      archive_cmds_need_lc_CXX=no
12174      hardcode_direct_CXX=no
12175      hardcode_automatic_CXX=yes
12176      hardcode_shlibpath_var_CXX=unsupported
12177      whole_archive_flag_spec_CXX=''
12178      link_all_deplibs_CXX=yes
12179
12180    if test "$GXX" = yes ; then
12181      lt_int_apple_cc_single_mod=no
12182      output_verbose_link_cmd='echo'
12183      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12184       lt_int_apple_cc_single_mod=yes
12185      fi
12186      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12187       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12188      else
12189          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'
12190        fi
12191        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12192        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12193          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12194            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}'
12195          else
12196            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}'
12197          fi
12198            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}'
12199      else
12200      case $cc_basename in
12201        xlc*)
12202         output_verbose_link_cmd='echo'
12203          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'
12204          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12205          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12206          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}'
12207          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}'
12208          ;;
12209       *)
12210         ld_shlibs_CXX=no
12211          ;;
12212      esac
12213      fi
12214        ;;
12215
12216  dgux*)
12217    case $cc_basename in
12218      ec++*)
12219	# FIXME: insert proper C++ library support
12220	ld_shlibs_CXX=no
12221	;;
12222      ghcx*)
12223	# Green Hills C++ Compiler
12224	# FIXME: insert proper C++ library support
12225	ld_shlibs_CXX=no
12226	;;
12227      *)
12228	# FIXME: insert proper C++ library support
12229	ld_shlibs_CXX=no
12230	;;
12231    esac
12232    ;;
12233  freebsd[12]*)
12234    # C++ shared libraries reported to be fairly broken before switch to ELF
12235    ld_shlibs_CXX=no
12236    ;;
12237  freebsd-elf*)
12238    archive_cmds_need_lc_CXX=no
12239    ;;
12240  freebsd* | kfreebsd*-gnu | dragonfly*)
12241    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12242    # conventions
12243    ld_shlibs_CXX=yes
12244    ;;
12245  gnu*)
12246    ;;
12247  hpux9*)
12248    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12249    hardcode_libdir_separator_CXX=:
12250    export_dynamic_flag_spec_CXX='${wl}-E'
12251    hardcode_direct_CXX=yes
12252    hardcode_minus_L_CXX=yes # Not in the search PATH,
12253				# but as the default
12254				# location of the library.
12255
12256    case $cc_basename in
12257    CC*)
12258      # FIXME: insert proper C++ library support
12259      ld_shlibs_CXX=no
12260      ;;
12261    aCC*)
12262      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'
12263      # Commands to make compiler produce verbose output that lists
12264      # what "hidden" libraries, object files and flags are used when
12265      # linking a shared library.
12266      #
12267      # There doesn't appear to be a way to prevent this compiler from
12268      # explicitly linking system object files so we need to strip them
12269      # from the output so that they don't get included in the library
12270      # dependencies.
12271      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'
12272      ;;
12273    *)
12274      if test "$GXX" = yes; then
12275        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'
12276      else
12277        # FIXME: insert proper C++ library support
12278        ld_shlibs_CXX=no
12279      fi
12280      ;;
12281    esac
12282    ;;
12283  hpux10*|hpux11*)
12284    if test $with_gnu_ld = no; then
12285      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12286      hardcode_libdir_separator_CXX=:
12287
12288      case $host_cpu in
12289      hppa*64*|ia64*)
12290	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12291        ;;
12292      *)
12293	export_dynamic_flag_spec_CXX='${wl}-E'
12294        ;;
12295      esac
12296    fi
12297    case $host_cpu in
12298    hppa*64*|ia64*)
12299      hardcode_direct_CXX=no
12300      hardcode_shlibpath_var_CXX=no
12301      ;;
12302    *)
12303      hardcode_direct_CXX=yes
12304      hardcode_minus_L_CXX=yes # Not in the search PATH,
12305					      # but as the default
12306					      # location of the library.
12307      ;;
12308    esac
12309
12310    case $cc_basename in
12311      CC*)
12312	# FIXME: insert proper C++ library support
12313	ld_shlibs_CXX=no
12314	;;
12315      aCC*)
12316	case $host_cpu in
12317	hppa*64*)
12318	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319	  ;;
12320	ia64*)
12321	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12322	  ;;
12323	*)
12324	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12325	  ;;
12326	esac
12327	# Commands to make compiler produce verbose output that lists
12328	# what "hidden" libraries, object files and flags are used when
12329	# linking a shared library.
12330	#
12331	# There doesn't appear to be a way to prevent this compiler from
12332	# explicitly linking system object files so we need to strip them
12333	# from the output so that they don't get included in the library
12334	# dependencies.
12335	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'
12336	;;
12337      *)
12338	if test "$GXX" = yes; then
12339	  if test $with_gnu_ld = no; then
12340	    case $host_cpu in
12341	    hppa*64*)
12342	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343	      ;;
12344	    ia64*)
12345	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12346	      ;;
12347	    *)
12348	      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'
12349	      ;;
12350	    esac
12351	  fi
12352	else
12353	  # FIXME: insert proper C++ library support
12354	  ld_shlibs_CXX=no
12355	fi
12356	;;
12357    esac
12358    ;;
12359  interix3*)
12360    hardcode_direct_CXX=no
12361    hardcode_shlibpath_var_CXX=no
12362    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12363    export_dynamic_flag_spec_CXX='${wl}-E'
12364    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12365    # Instead, shared libraries are loaded at an image base (0x10000000 by
12366    # default) and relocated if they conflict, which is a slow very memory
12367    # consuming and fragmenting process.  To avoid this, we pick a random,
12368    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12369    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12370    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'
12371    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'
12372    ;;
12373  irix5* | irix6*)
12374    case $cc_basename in
12375      CC*)
12376	# SGI C++
12377	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'
12378
12379	# Archives containing C++ object files must be created using
12380	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12381	# necessary to make sure instantiated templates are included
12382	# in the archive.
12383	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12384	;;
12385      *)
12386	if test "$GXX" = yes; then
12387	  if test "$with_gnu_ld" = no; then
12388	    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'
12389	  else
12390	    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'
12391	  fi
12392	fi
12393	link_all_deplibs_CXX=yes
12394	;;
12395    esac
12396    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12397    hardcode_libdir_separator_CXX=:
12398    ;;
12399  linux*)
12400    case $cc_basename in
12401      KCC*)
12402	# Kuck and Associates, Inc. (KAI) C++ Compiler
12403
12404	# KCC will only create a shared library if the output file
12405	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12406	# to its proper name (with version) after linking.
12407	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'
12408	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'
12409	# Commands to make compiler produce verbose output that lists
12410	# what "hidden" libraries, object files and flags are used when
12411	# linking a shared library.
12412	#
12413	# There doesn't appear to be a way to prevent this compiler from
12414	# explicitly linking system object files so we need to strip them
12415	# from the output so that they don't get included in the library
12416	# dependencies.
12417	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'
12418
12419	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12420	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12421
12422	# Archives containing C++ object files must be created using
12423	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12424	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12425	;;
12426      icpc*)
12427	# Intel C++
12428	with_gnu_ld=yes
12429	# version 8.0 and above of icpc choke on multiply defined symbols
12430	# if we add $predep_objects and $postdep_objects, however 7.1 and
12431	# earlier do not add the objects themselves.
12432	case `$CC -V 2>&1` in
12433	*"Version 7."*)
12434  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12435  	  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'
12436	  ;;
12437	*)  # Version 8.0 or newer
12438	  tmp_idyn=
12439	  case $host_cpu in
12440	    ia64*) tmp_idyn=' -i_dynamic';;
12441	  esac
12442  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443	  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'
12444	  ;;
12445	esac
12446	archive_cmds_need_lc_CXX=no
12447	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12448	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12449	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12450	;;
12451      pgCC*)
12452        # Portland Group C++ compiler
12453	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12454  	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'
12455
12456	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12457	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12458	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'
12459        ;;
12460      cxx*)
12461	# Compaq C++
12462	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12463	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'
12464
12465	runpath_var=LD_RUN_PATH
12466	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12467	hardcode_libdir_separator_CXX=:
12468
12469	# Commands to make compiler produce verbose output that lists
12470	# what "hidden" libraries, object files and flags are used when
12471	# linking a shared library.
12472	#
12473	# There doesn't appear to be a way to prevent this compiler from
12474	# explicitly linking system object files so we need to strip them
12475	# from the output so that they don't get included in the library
12476	# dependencies.
12477	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'
12478	;;
12479    esac
12480    ;;
12481  lynxos*)
12482    # FIXME: insert proper C++ library support
12483    ld_shlibs_CXX=no
12484    ;;
12485  m88k*)
12486    # FIXME: insert proper C++ library support
12487    ld_shlibs_CXX=no
12488    ;;
12489  mvs*)
12490    case $cc_basename in
12491      cxx*)
12492	# FIXME: insert proper C++ library support
12493	ld_shlibs_CXX=no
12494	;;
12495      *)
12496	# FIXME: insert proper C++ library support
12497	ld_shlibs_CXX=no
12498	;;
12499    esac
12500    ;;
12501  netbsd*)
12502    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12503      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12504      wlarc=
12505      hardcode_libdir_flag_spec_CXX='-R$libdir'
12506      hardcode_direct_CXX=yes
12507      hardcode_shlibpath_var_CXX=no
12508    fi
12509    # Workaround some broken pre-1.5 toolchains
12510    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12511    ;;
12512  openbsd2*)
12513    # C++ shared libraries are fairly broken
12514    ld_shlibs_CXX=no
12515    ;;
12516  openbsd*)
12517    hardcode_direct_CXX=yes
12518    hardcode_shlibpath_var_CXX=no
12519    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12520    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12521    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12522      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12523      export_dynamic_flag_spec_CXX='${wl}-E'
12524      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12525    fi
12526    output_verbose_link_cmd='echo'
12527    ;;
12528  osf3*)
12529    case $cc_basename in
12530      KCC*)
12531	# Kuck and Associates, Inc. (KAI) C++ Compiler
12532
12533	# KCC will only create a shared library if the output file
12534	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12535	# to its proper name (with version) after linking.
12536	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'
12537
12538	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12539	hardcode_libdir_separator_CXX=:
12540
12541	# Archives containing C++ object files must be created using
12542	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12543	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12544
12545	;;
12546      RCC*)
12547	# Rational C++ 2.4.1
12548	# FIXME: insert proper C++ library support
12549	ld_shlibs_CXX=no
12550	;;
12551      cxx*)
12552	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12553	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'
12554
12555	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12556	hardcode_libdir_separator_CXX=:
12557
12558	# Commands to make compiler produce verbose output that lists
12559	# what "hidden" libraries, object files and flags are used when
12560	# linking a shared library.
12561	#
12562	# There doesn't appear to be a way to prevent this compiler from
12563	# explicitly linking system object files so we need to strip them
12564	# from the output so that they don't get included in the library
12565	# dependencies.
12566	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'
12567	;;
12568      *)
12569	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12570	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12571	  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'
12572
12573	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12574	  hardcode_libdir_separator_CXX=:
12575
12576	  # Commands to make compiler produce verbose output that lists
12577	  # what "hidden" libraries, object files and flags are used when
12578	  # linking a shared library.
12579	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12580
12581	else
12582	  # FIXME: insert proper C++ library support
12583	  ld_shlibs_CXX=no
12584	fi
12585	;;
12586    esac
12587    ;;
12588  osf4* | osf5*)
12589    case $cc_basename in
12590      KCC*)
12591	# Kuck and Associates, Inc. (KAI) C++ Compiler
12592
12593	# KCC will only create a shared library if the output file
12594	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12595	# to its proper name (with version) after linking.
12596	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'
12597
12598	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12599	hardcode_libdir_separator_CXX=:
12600
12601	# Archives containing C++ object files must be created using
12602	# the KAI C++ compiler.
12603	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12604	;;
12605      RCC*)
12606	# Rational C++ 2.4.1
12607	# FIXME: insert proper C++ library support
12608	ld_shlibs_CXX=no
12609	;;
12610      cxx*)
12611	allow_undefined_flag_CXX=' -expect_unresolved \*'
12612	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'
12613	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12614	  echo "-hidden">> $lib.exp~
12615	  $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~
12616	  $rm $lib.exp'
12617
12618	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12619	hardcode_libdir_separator_CXX=:
12620
12621	# Commands to make compiler produce verbose output that lists
12622	# what "hidden" libraries, object files and flags are used when
12623	# linking a shared library.
12624	#
12625	# There doesn't appear to be a way to prevent this compiler from
12626	# explicitly linking system object files so we need to strip them
12627	# from the output so that they don't get included in the library
12628	# dependencies.
12629	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'
12630	;;
12631      *)
12632	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12633	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12634	 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'
12635
12636	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12637	  hardcode_libdir_separator_CXX=:
12638
12639	  # Commands to make compiler produce verbose output that lists
12640	  # what "hidden" libraries, object files and flags are used when
12641	  # linking a shared library.
12642	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12643
12644	else
12645	  # FIXME: insert proper C++ library support
12646	  ld_shlibs_CXX=no
12647	fi
12648	;;
12649    esac
12650    ;;
12651  psos*)
12652    # FIXME: insert proper C++ library support
12653    ld_shlibs_CXX=no
12654    ;;
12655  sunos4*)
12656    case $cc_basename in
12657      CC*)
12658	# Sun C++ 4.x
12659	# FIXME: insert proper C++ library support
12660	ld_shlibs_CXX=no
12661	;;
12662      lcc*)
12663	# Lucid
12664	# FIXME: insert proper C++ library support
12665	ld_shlibs_CXX=no
12666	;;
12667      *)
12668	# FIXME: insert proper C++ library support
12669	ld_shlibs_CXX=no
12670	;;
12671    esac
12672    ;;
12673  solaris*)
12674    case $cc_basename in
12675      CC*)
12676	# Sun C++ 4.2, 5.x and Centerline C++
12677        archive_cmds_need_lc_CXX=yes
12678	no_undefined_flag_CXX=' -zdefs'
12679	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12681	$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'
12682
12683	hardcode_libdir_flag_spec_CXX='-R$libdir'
12684	hardcode_shlibpath_var_CXX=no
12685	case $host_os in
12686	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12687	  *)
12688	    # The C++ compiler is used as linker so we must use $wl
12689	    # flag to pass the commands to the underlying system
12690	    # linker. We must also pass each convience library through
12691	    # to the system linker between allextract/defaultextract.
12692	    # The C++ compiler will combine linker options so we
12693	    # cannot just pass the convience library names through
12694	    # without $wl.
12695	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12696	    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'
12697	    ;;
12698	esac
12699	link_all_deplibs_CXX=yes
12700
12701	output_verbose_link_cmd='echo'
12702
12703	# Archives containing C++ object files must be created using
12704	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12705	# necessary to make sure instantiated templates are included
12706	# in the archive.
12707	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12708	;;
12709      gcx*)
12710	# Green Hills C++ Compiler
12711	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12712
12713	# The C++ compiler must be used to create the archive.
12714	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12715	;;
12716      *)
12717	# GNU C++ compiler with Solaris linker
12718	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12719	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12720	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12721	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12722	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12723		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12724
12725	    # Commands to make compiler produce verbose output that lists
12726	    # what "hidden" libraries, object files and flags are used when
12727	    # linking a shared library.
12728	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12729	  else
12730	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12731	    # platform.
12732	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12733	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12734		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12735
12736	    # Commands to make compiler produce verbose output that lists
12737	    # what "hidden" libraries, object files and flags are used when
12738	    # linking a shared library.
12739	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12740	  fi
12741
12742	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12743	fi
12744	;;
12745    esac
12746    ;;
12747  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12748    no_undefined_flag_CXX='${wl}-z,text'
12749    archive_cmds_need_lc_CXX=no
12750    hardcode_shlibpath_var_CXX=no
12751    runpath_var='LD_RUN_PATH'
12752
12753    case $cc_basename in
12754      CC*)
12755	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12757	;;
12758      *)
12759	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12760	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12761	;;
12762    esac
12763    ;;
12764  sysv5* | sco3.2v5* | sco5v6*)
12765    # Note: We can NOT use -z defs as we might desire, because we do not
12766    # link with -lc, and that would cause any symbols used from libc to
12767    # always be unresolved, which means just about no library would
12768    # ever link correctly.  If we're not using GNU ld we use -z text
12769    # though, which does catch some bad symbols but isn't as heavy-handed
12770    # as -z defs.
12771    # For security reasons, it is highly recommended that you always
12772    # use absolute paths for naming shared libraries, and exclude the
12773    # DT_RUNPATH tag from executables and libraries.  But doing so
12774    # requires that you compile everything twice, which is a pain.
12775    # So that behaviour is only enabled if SCOABSPATH is set to a
12776    # non-empty value in the environment.  Most likely only useful for
12777    # creating official distributions of packages.
12778    # This is a hack until libtool officially supports absolute path
12779    # names for shared libraries.
12780    no_undefined_flag_CXX='${wl}-z,text'
12781    allow_undefined_flag_CXX='${wl}-z,nodefs'
12782    archive_cmds_need_lc_CXX=no
12783    hardcode_shlibpath_var_CXX=no
12784    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12785    hardcode_libdir_separator_CXX=':'
12786    link_all_deplibs_CXX=yes
12787    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12788    runpath_var='LD_RUN_PATH'
12789
12790    case $cc_basename in
12791      CC*)
12792	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12793	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12794	;;
12795      *)
12796	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12797	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12798	;;
12799    esac
12800    ;;
12801  tandem*)
12802    case $cc_basename in
12803      NCC*)
12804	# NonStop-UX NCC 3.20
12805	# FIXME: insert proper C++ library support
12806	ld_shlibs_CXX=no
12807	;;
12808      *)
12809	# FIXME: insert proper C++ library support
12810	ld_shlibs_CXX=no
12811	;;
12812    esac
12813    ;;
12814  vxworks*)
12815    # FIXME: insert proper C++ library support
12816    ld_shlibs_CXX=no
12817    ;;
12818  *)
12819    # FIXME: insert proper C++ library support
12820    ld_shlibs_CXX=no
12821    ;;
12822esac
12823echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12824echo "${ECHO_T}$ld_shlibs_CXX" >&6
12825test "$ld_shlibs_CXX" = no && can_build_shared=no
12826
12827GCC_CXX="$GXX"
12828LD_CXX="$LD"
12829
12830## CAVEAT EMPTOR:
12831## There is no encapsulation within the following macros, do not change
12832## the running order or otherwise move them around unless you know exactly
12833## what you are doing...
12834
12835cat > conftest.$ac_ext <<EOF
12836class Foo
12837{
12838public:
12839  Foo (void) { a = 0; }
12840private:
12841  int a;
12842};
12843EOF
12844
12845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846  (eval $ac_compile) 2>&5
12847  ac_status=$?
12848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849  (exit $ac_status); }; then
12850  # Parse the compiler output and extract the necessary
12851  # objects, libraries and library flags.
12852
12853  # Sentinel used to keep track of whether or not we are before
12854  # the conftest object file.
12855  pre_test_object_deps_done=no
12856
12857  # The `*' in the case matches for architectures that use `case' in
12858  # $output_verbose_cmd can trigger glob expansion during the loop
12859  # eval without this substitution.
12860  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12861
12862  for p in `eval $output_verbose_link_cmd`; do
12863    case $p in
12864
12865    -L* | -R* | -l*)
12866       # Some compilers place space between "-{L,R}" and the path.
12867       # Remove the space.
12868       if test $p = "-L" \
12869	  || test $p = "-R"; then
12870	 prev=$p
12871	 continue
12872       else
12873	 prev=
12874       fi
12875
12876       if test "$pre_test_object_deps_done" = no; then
12877	 case $p in
12878	 -L* | -R*)
12879	   # Internal compiler library paths should come after those
12880	   # provided the user.  The postdeps already come after the
12881	   # user supplied libs so there is no need to process them.
12882	   if test -z "$compiler_lib_search_path_CXX"; then
12883	     compiler_lib_search_path_CXX="${prev}${p}"
12884	   else
12885	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12886	   fi
12887	   ;;
12888	 # The "-l" case would never come before the object being
12889	 # linked, so don't bother handling this case.
12890	 esac
12891       else
12892	 if test -z "$postdeps_CXX"; then
12893	   postdeps_CXX="${prev}${p}"
12894	 else
12895	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12896	 fi
12897       fi
12898       ;;
12899
12900    *.$objext)
12901       # This assumes that the test object file only shows up
12902       # once in the compiler output.
12903       if test "$p" = "conftest.$objext"; then
12904	 pre_test_object_deps_done=yes
12905	 continue
12906       fi
12907
12908       if test "$pre_test_object_deps_done" = no; then
12909	 if test -z "$predep_objects_CXX"; then
12910	   predep_objects_CXX="$p"
12911	 else
12912	   predep_objects_CXX="$predep_objects_CXX $p"
12913	 fi
12914       else
12915	 if test -z "$postdep_objects_CXX"; then
12916	   postdep_objects_CXX="$p"
12917	 else
12918	   postdep_objects_CXX="$postdep_objects_CXX $p"
12919	 fi
12920       fi
12921       ;;
12922
12923    *) ;; # Ignore the rest.
12924
12925    esac
12926  done
12927
12928  # Clean up.
12929  rm -f a.out a.exe
12930else
12931  echo "libtool.m4: error: problem compiling CXX test program"
12932fi
12933
12934$rm -f confest.$objext
12935
12936# PORTME: override above test on systems where it is broken
12937case $host_os in
12938interix3*)
12939  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12940  # hack all around it, let's just trust "g++" to DTRT.
12941  predep_objects_CXX=
12942  postdep_objects_CXX=
12943  postdeps_CXX=
12944  ;;
12945
12946solaris*)
12947  case $cc_basename in
12948  CC*)
12949    # Adding this requires a known-good setup of shared libraries for
12950    # Sun compiler versions before 5.6, else PIC objects from an old
12951    # archive will be linked into the output, leading to subtle bugs.
12952    postdeps_CXX='-lCstd -lCrun'
12953    ;;
12954  esac
12955  ;;
12956esac
12957
12958
12959case " $postdeps_CXX " in
12960*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12961esac
12962
12963lt_prog_compiler_wl_CXX=
12964lt_prog_compiler_pic_CXX=
12965lt_prog_compiler_static_CXX=
12966
12967echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12968echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12969
12970  # C++ specific cases for pic, static, wl, etc.
12971  if test "$GXX" = yes; then
12972    lt_prog_compiler_wl_CXX='-Wl,'
12973    lt_prog_compiler_static_CXX='-static'
12974
12975    case $host_os in
12976    aix*)
12977      # All AIX code is PIC.
12978      if test "$host_cpu" = ia64; then
12979	# AIX 5 now supports IA64 processor
12980	lt_prog_compiler_static_CXX='-Bstatic'
12981      fi
12982      ;;
12983    amigaos*)
12984      # FIXME: we need at least 68020 code to build shared libraries, but
12985      # adding the `-m68020' flag to GCC prevents building anything better,
12986      # like `-m68040'.
12987      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12988      ;;
12989    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12990      # PIC is the default for these OSes.
12991      ;;
12992    mingw* | os2* | pw32*)
12993      # This hack is so that the source file can tell whether it is being
12994      # built for inclusion in a dll (and should export symbols for example).
12995      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12996      ;;
12997    darwin* | rhapsody*)
12998      # PIC is the default on this platform
12999      # Common symbols not allowed in MH_DYLIB files
13000      lt_prog_compiler_pic_CXX='-fno-common'
13001      ;;
13002    *djgpp*)
13003      # DJGPP does not support shared libraries at all
13004      lt_prog_compiler_pic_CXX=
13005      ;;
13006    interix3*)
13007      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13008      # Instead, we relocate shared libraries at runtime.
13009      ;;
13010    sysv4*MP*)
13011      if test -d /usr/nec; then
13012	lt_prog_compiler_pic_CXX=-Kconform_pic
13013      fi
13014      ;;
13015    hpux*)
13016      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13017      # not for PA HP-UX.
13018      case $host_cpu in
13019      hppa*64*|ia64*)
13020	;;
13021      *)
13022	lt_prog_compiler_pic_CXX='-fPIC'
13023	;;
13024      esac
13025      ;;
13026    *)
13027      lt_prog_compiler_pic_CXX='-fPIC'
13028      ;;
13029    esac
13030  else
13031    case $host_os in
13032      aix4* | aix5*)
13033	# All AIX code is PIC.
13034	if test "$host_cpu" = ia64; then
13035	  # AIX 5 now supports IA64 processor
13036	  lt_prog_compiler_static_CXX='-Bstatic'
13037	else
13038	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13039	fi
13040	;;
13041      chorus*)
13042	case $cc_basename in
13043	cxch68*)
13044	  # Green Hills C++ Compiler
13045	  # _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"
13046	  ;;
13047	esac
13048	;;
13049       darwin*)
13050         # PIC is the default on this platform
13051         # Common symbols not allowed in MH_DYLIB files
13052         case $cc_basename in
13053           xlc*)
13054           lt_prog_compiler_pic_CXX='-qnocommon'
13055           lt_prog_compiler_wl_CXX='-Wl,'
13056           ;;
13057         esac
13058       ;;
13059      dgux*)
13060	case $cc_basename in
13061	  ec++*)
13062	    lt_prog_compiler_pic_CXX='-KPIC'
13063	    ;;
13064	  ghcx*)
13065	    # Green Hills C++ Compiler
13066	    lt_prog_compiler_pic_CXX='-pic'
13067	    ;;
13068	  *)
13069	    ;;
13070	esac
13071	;;
13072      freebsd* | kfreebsd*-gnu | dragonfly*)
13073	# FreeBSD uses GNU C++
13074	;;
13075      hpux9* | hpux10* | hpux11*)
13076	case $cc_basename in
13077	  CC*)
13078	    lt_prog_compiler_wl_CXX='-Wl,'
13079	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13080	    if test "$host_cpu" != ia64; then
13081	      lt_prog_compiler_pic_CXX='+Z'
13082	    fi
13083	    ;;
13084	  aCC*)
13085	    lt_prog_compiler_wl_CXX='-Wl,'
13086	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13087	    case $host_cpu in
13088	    hppa*64*|ia64*)
13089	      # +Z the default
13090	      ;;
13091	    *)
13092	      lt_prog_compiler_pic_CXX='+Z'
13093	      ;;
13094	    esac
13095	    ;;
13096	  *)
13097	    ;;
13098	esac
13099	;;
13100      interix*)
13101	# This is c89, which is MS Visual C++ (no shared libs)
13102	# Anyone wants to do a port?
13103	;;
13104      irix5* | irix6* | nonstopux*)
13105	case $cc_basename in
13106	  CC*)
13107	    lt_prog_compiler_wl_CXX='-Wl,'
13108	    lt_prog_compiler_static_CXX='-non_shared'
13109	    # CC pic flag -KPIC is the default.
13110	    ;;
13111	  *)
13112	    ;;
13113	esac
13114	;;
13115      linux*)
13116	case $cc_basename in
13117	  KCC*)
13118	    # KAI C++ Compiler
13119	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13120	    lt_prog_compiler_pic_CXX='-fPIC'
13121	    ;;
13122	  icpc* | ecpc*)
13123	    # Intel C++
13124	    lt_prog_compiler_wl_CXX='-Wl,'
13125	    lt_prog_compiler_pic_CXX='-KPIC'
13126	    lt_prog_compiler_static_CXX='-static'
13127	    ;;
13128	  pgCC*)
13129	    # Portland Group C++ compiler.
13130	    lt_prog_compiler_wl_CXX='-Wl,'
13131	    lt_prog_compiler_pic_CXX='-fpic'
13132	    lt_prog_compiler_static_CXX='-Bstatic'
13133	    ;;
13134	  cxx*)
13135	    # Compaq C++
13136	    # Make sure the PIC flag is empty.  It appears that all Alpha
13137	    # Linux and Compaq Tru64 Unix objects are PIC.
13138	    lt_prog_compiler_pic_CXX=
13139	    lt_prog_compiler_static_CXX='-non_shared'
13140	    ;;
13141	  *)
13142	    ;;
13143	esac
13144	;;
13145      lynxos*)
13146	;;
13147      m88k*)
13148	;;
13149      mvs*)
13150	case $cc_basename in
13151	  cxx*)
13152	    lt_prog_compiler_pic_CXX='-W c,exportall'
13153	    ;;
13154	  *)
13155	    ;;
13156	esac
13157	;;
13158      netbsd*)
13159	;;
13160      osf3* | osf4* | osf5*)
13161	case $cc_basename in
13162	  KCC*)
13163	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13164	    ;;
13165	  RCC*)
13166	    # Rational C++ 2.4.1
13167	    lt_prog_compiler_pic_CXX='-pic'
13168	    ;;
13169	  cxx*)
13170	    # Digital/Compaq C++
13171	    lt_prog_compiler_wl_CXX='-Wl,'
13172	    # Make sure the PIC flag is empty.  It appears that all Alpha
13173	    # Linux and Compaq Tru64 Unix objects are PIC.
13174	    lt_prog_compiler_pic_CXX=
13175	    lt_prog_compiler_static_CXX='-non_shared'
13176	    ;;
13177	  *)
13178	    ;;
13179	esac
13180	;;
13181      psos*)
13182	;;
13183      solaris*)
13184	case $cc_basename in
13185	  CC*)
13186	    # Sun C++ 4.2, 5.x and Centerline C++
13187	    lt_prog_compiler_pic_CXX='-KPIC'
13188	    lt_prog_compiler_static_CXX='-Bstatic'
13189	    lt_prog_compiler_wl_CXX='-Qoption ld '
13190	    ;;
13191	  gcx*)
13192	    # Green Hills C++ Compiler
13193	    lt_prog_compiler_pic_CXX='-PIC'
13194	    ;;
13195	  *)
13196	    ;;
13197	esac
13198	;;
13199      sunos4*)
13200	case $cc_basename in
13201	  CC*)
13202	    # Sun C++ 4.x
13203	    lt_prog_compiler_pic_CXX='-pic'
13204	    lt_prog_compiler_static_CXX='-Bstatic'
13205	    ;;
13206	  lcc*)
13207	    # Lucid
13208	    lt_prog_compiler_pic_CXX='-pic'
13209	    ;;
13210	  *)
13211	    ;;
13212	esac
13213	;;
13214      tandem*)
13215	case $cc_basename in
13216	  NCC*)
13217	    # NonStop-UX NCC 3.20
13218	    lt_prog_compiler_pic_CXX='-KPIC'
13219	    ;;
13220	  *)
13221	    ;;
13222	esac
13223	;;
13224      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13225	case $cc_basename in
13226	  CC*)
13227	    lt_prog_compiler_wl_CXX='-Wl,'
13228	    lt_prog_compiler_pic_CXX='-KPIC'
13229	    lt_prog_compiler_static_CXX='-Bstatic'
13230	    ;;
13231	esac
13232	;;
13233      vxworks*)
13234	;;
13235      *)
13236	lt_prog_compiler_can_build_shared_CXX=no
13237	;;
13238    esac
13239  fi
13240
13241echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13242echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13243
13244#
13245# Check to make sure the PIC flag actually works.
13246#
13247if test -n "$lt_prog_compiler_pic_CXX"; then
13248
13249echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13250echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13251if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13252  echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254  lt_prog_compiler_pic_works_CXX=no
13255  ac_outfile=conftest.$ac_objext
13256   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13257   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13258   # Insert the option either (1) after the last *FLAGS variable, or
13259   # (2) before a word containing "conftest.", or (3) at the end.
13260   # Note that $ac_compile itself does not contain backslashes and begins
13261   # with a dollar sign (not a hyphen), so the echo should work correctly.
13262   # The option is referenced via a variable to avoid confusing sed.
13263   lt_compile=`echo "$ac_compile" | $SED \
13264   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13265   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13266   -e 's:$: $lt_compiler_flag:'`
13267   (eval echo "\"\$as_me:13267: $lt_compile\"" >&5)
13268   (eval "$lt_compile" 2>conftest.err)
13269   ac_status=$?
13270   cat conftest.err >&5
13271   echo "$as_me:13271: \$? = $ac_status" >&5
13272   if (exit $ac_status) && test -s "$ac_outfile"; then
13273     # The compiler can only warn and ignore the option if not recognized
13274     # So say no if there are warnings other than the usual output.
13275     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13276     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13277     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13278       lt_prog_compiler_pic_works_CXX=yes
13279     fi
13280   fi
13281   $rm conftest*
13282
13283fi
13284echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13285echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13286
13287if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13288    case $lt_prog_compiler_pic_CXX in
13289     "" | " "*) ;;
13290     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13291     esac
13292else
13293    lt_prog_compiler_pic_CXX=
13294     lt_prog_compiler_can_build_shared_CXX=no
13295fi
13296
13297fi
13298case $host_os in
13299  # For platforms which do not support PIC, -DPIC is meaningless:
13300  *djgpp*)
13301    lt_prog_compiler_pic_CXX=
13302    ;;
13303  *)
13304    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13305    ;;
13306esac
13307
13308#
13309# Check to make sure the static flag actually works.
13310#
13311wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13312echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13313echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13314if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13315  echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317  lt_prog_compiler_static_works_CXX=no
13318   save_LDFLAGS="$LDFLAGS"
13319   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13320   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13321   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13322     # The linker can only warn and ignore the option if not recognized
13323     # So say no if there are warnings
13324     if test -s conftest.err; then
13325       # Append any errors to the config.log.
13326       cat conftest.err 1>&5
13327       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13328       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13329       if diff conftest.exp conftest.er2 >/dev/null; then
13330         lt_prog_compiler_static_works_CXX=yes
13331       fi
13332     else
13333       lt_prog_compiler_static_works_CXX=yes
13334     fi
13335   fi
13336   $rm conftest*
13337   LDFLAGS="$save_LDFLAGS"
13338
13339fi
13340echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13341echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13342
13343if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13344    :
13345else
13346    lt_prog_compiler_static_CXX=
13347fi
13348
13349
13350echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13351echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13352if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13353  echo $ECHO_N "(cached) $ECHO_C" >&6
13354else
13355  lt_cv_prog_compiler_c_o_CXX=no
13356   $rm -r conftest 2>/dev/null
13357   mkdir conftest
13358   cd conftest
13359   mkdir out
13360   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13361
13362   lt_compiler_flag="-o out/conftest2.$ac_objext"
13363   # Insert the option either (1) after the last *FLAGS variable, or
13364   # (2) before a word containing "conftest.", or (3) at the end.
13365   # Note that $ac_compile itself does not contain backslashes and begins
13366   # with a dollar sign (not a hyphen), so the echo should work correctly.
13367   lt_compile=`echo "$ac_compile" | $SED \
13368   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13369   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13370   -e 's:$: $lt_compiler_flag:'`
13371   (eval echo "\"\$as_me:13371: $lt_compile\"" >&5)
13372   (eval "$lt_compile" 2>out/conftest.err)
13373   ac_status=$?
13374   cat out/conftest.err >&5
13375   echo "$as_me:13375: \$? = $ac_status" >&5
13376   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13377   then
13378     # The compiler can only warn and ignore the option if not recognized
13379     # So say no if there are warnings
13380     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13381     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13382     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13383       lt_cv_prog_compiler_c_o_CXX=yes
13384     fi
13385   fi
13386   chmod u+w . 2>&5
13387   $rm conftest*
13388   # SGI C++ compiler will create directory out/ii_files/ for
13389   # template instantiation
13390   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13391   $rm out/* && rmdir out
13392   cd ..
13393   rmdir conftest
13394   $rm conftest*
13395
13396fi
13397echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13398echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13399
13400
13401hard_links="nottested"
13402if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13403  # do not overwrite the value of need_locks provided by the user
13404  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13405echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13406  hard_links=yes
13407  $rm conftest*
13408  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13409  touch conftest.a
13410  ln conftest.a conftest.b 2>&5 || hard_links=no
13411  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13412  echo "$as_me:$LINENO: result: $hard_links" >&5
13413echo "${ECHO_T}$hard_links" >&6
13414  if test "$hard_links" = no; then
13415    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13416echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13417    need_locks=warn
13418  fi
13419else
13420  need_locks=no
13421fi
13422
13423echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13424echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13425
13426  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13427  case $host_os in
13428  aix4* | aix5*)
13429    # If we're using GNU nm, then we don't want the "-C" option.
13430    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13431    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13432      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'
13433    else
13434      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'
13435    fi
13436    ;;
13437  pw32*)
13438    export_symbols_cmds_CXX="$ltdll_cmds"
13439  ;;
13440  cygwin* | mingw*)
13441    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'
13442  ;;
13443  *)
13444    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13445  ;;
13446  esac
13447
13448echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13449echo "${ECHO_T}$ld_shlibs_CXX" >&6
13450test "$ld_shlibs_CXX" = no && can_build_shared=no
13451
13452#
13453# Do we need to explicitly link libc?
13454#
13455case "x$archive_cmds_need_lc_CXX" in
13456x|xyes)
13457  # Assume -lc should be added
13458  archive_cmds_need_lc_CXX=yes
13459
13460  if test "$enable_shared" = yes && test "$GCC" = yes; then
13461    case $archive_cmds_CXX in
13462    *'~'*)
13463      # FIXME: we may have to deal with multi-command sequences.
13464      ;;
13465    '$CC '*)
13466      # Test whether the compiler implicitly links with -lc since on some
13467      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13468      # to ld, don't add -lc before -lgcc.
13469      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13470echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13471      $rm conftest*
13472      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13473
13474      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13475  (eval $ac_compile) 2>&5
13476  ac_status=$?
13477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478  (exit $ac_status); } 2>conftest.err; then
13479        soname=conftest
13480        lib=conftest
13481        libobjs=conftest.$ac_objext
13482        deplibs=
13483        wl=$lt_prog_compiler_wl_CXX
13484	pic_flag=$lt_prog_compiler_pic_CXX
13485        compiler_flags=-v
13486        linker_flags=-v
13487        verstring=
13488        output_objdir=.
13489        libname=conftest
13490        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13491        allow_undefined_flag_CXX=
13492        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13493  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13494  ac_status=$?
13495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496  (exit $ac_status); }
13497        then
13498	  archive_cmds_need_lc_CXX=no
13499        else
13500	  archive_cmds_need_lc_CXX=yes
13501        fi
13502        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13503      else
13504        cat conftest.err 1>&5
13505      fi
13506      $rm conftest*
13507      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13508echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13509      ;;
13510    esac
13511  fi
13512  ;;
13513esac
13514
13515echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13516echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13517library_names_spec=
13518libname_spec='lib$name'
13519soname_spec=
13520shrext_cmds=".so"
13521postinstall_cmds=
13522postuninstall_cmds=
13523finish_cmds=
13524finish_eval=
13525shlibpath_var=
13526shlibpath_overrides_runpath=unknown
13527version_type=none
13528dynamic_linker="$host_os ld.so"
13529sys_lib_dlsearch_path_spec="/lib /usr/lib"
13530if test "$GCC" = yes; then
13531  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13532  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13533    # if the path contains ";" then we assume it to be the separator
13534    # otherwise default to the standard path separator (i.e. ":") - it is
13535    # assumed that no part of a normal pathname contains ";" but that should
13536    # okay in the real world where ";" in dirpaths is itself problematic.
13537    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13538  else
13539    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13540  fi
13541else
13542  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13543fi
13544need_lib_prefix=unknown
13545hardcode_into_libs=no
13546
13547# when you set need_version to no, make sure it does not cause -set_version
13548# flags to be left without arguments
13549need_version=unknown
13550
13551case $host_os in
13552aix3*)
13553  version_type=linux
13554  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13555  shlibpath_var=LIBPATH
13556
13557  # AIX 3 has no versioning support, so we append a major version to the name.
13558  soname_spec='${libname}${release}${shared_ext}$major'
13559  ;;
13560
13561aix4* | aix5*)
13562  version_type=linux
13563  need_lib_prefix=no
13564  need_version=no
13565  hardcode_into_libs=yes
13566  if test "$host_cpu" = ia64; then
13567    # AIX 5 supports IA64
13568    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13569    shlibpath_var=LD_LIBRARY_PATH
13570  else
13571    # With GCC up to 2.95.x, collect2 would create an import file
13572    # for dependence libraries.  The import file would start with
13573    # the line `#! .'.  This would cause the generated library to
13574    # depend on `.', always an invalid library.  This was fixed in
13575    # development snapshots of GCC prior to 3.0.
13576    case $host_os in
13577      aix4 | aix4.[01] | aix4.[01].*)
13578      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13579	   echo ' yes '
13580	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13581	:
13582      else
13583	can_build_shared=no
13584      fi
13585      ;;
13586    esac
13587    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13588    # soname into executable. Probably we can add versioning support to
13589    # collect2, so additional links can be useful in future.
13590    if test "$aix_use_runtimelinking" = yes; then
13591      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13592      # instead of lib<name>.a to let people know that these are not
13593      # typical AIX shared libraries.
13594      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595    else
13596      # We preserve .a as extension for shared libraries through AIX4.2
13597      # and later when we are not doing run time linking.
13598      library_names_spec='${libname}${release}.a $libname.a'
13599      soname_spec='${libname}${release}${shared_ext}$major'
13600    fi
13601    shlibpath_var=LIBPATH
13602  fi
13603  ;;
13604
13605amigaos*)
13606  library_names_spec='$libname.ixlibrary $libname.a'
13607  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13608  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'
13609  ;;
13610
13611beos*)
13612  library_names_spec='${libname}${shared_ext}'
13613  dynamic_linker="$host_os ld.so"
13614  shlibpath_var=LIBRARY_PATH
13615  ;;
13616
13617bsdi[45]*)
13618  version_type=linux
13619  need_version=no
13620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621  soname_spec='${libname}${release}${shared_ext}$major'
13622  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13623  shlibpath_var=LD_LIBRARY_PATH
13624  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13625  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13626  # the default ld.so.conf also contains /usr/contrib/lib and
13627  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13628  # libtool to hard-code these into programs
13629  ;;
13630
13631cygwin* | mingw* | pw32*)
13632  version_type=windows
13633  shrext_cmds=".dll"
13634  need_version=no
13635  need_lib_prefix=no
13636
13637  case $GCC,$host_os in
13638  yes,cygwin* | yes,mingw* | yes,pw32*)
13639    library_names_spec='$libname.dll.a'
13640    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13641    postinstall_cmds='base_file=`basename \${file}`~
13642      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13643      dldir=$destdir/`dirname \$dlpath`~
13644      test -d \$dldir || mkdir -p \$dldir~
13645      $install_prog $dir/$dlname \$dldir/$dlname~
13646      chmod a+x \$dldir/$dlname'
13647    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13648      dlpath=$dir/\$dldll~
13649       $rm \$dlpath'
13650    shlibpath_overrides_runpath=yes
13651
13652    case $host_os in
13653    cygwin*)
13654      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13655      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13656      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13657      ;;
13658    mingw*)
13659      # MinGW DLLs use traditional 'lib' prefix
13660      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13661      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13662      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13663        # It is most probably a Windows format PATH printed by
13664        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13665        # path with ; separators, and with drive letters. We can handle the
13666        # drive letters (cygwin fileutils understands them), so leave them,
13667        # especially as we might pass files found there to a mingw objdump,
13668        # which wouldn't understand a cygwinified path. Ahh.
13669        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13670      else
13671        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13672      fi
13673      ;;
13674    pw32*)
13675      # pw32 DLLs use 'pw' prefix rather than 'lib'
13676      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13677      ;;
13678    esac
13679    ;;
13680
13681  *)
13682    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13683    ;;
13684  esac
13685  dynamic_linker='Win32 ld.exe'
13686  # FIXME: first we should search . and the directory the executable is in
13687  shlibpath_var=PATH
13688  ;;
13689
13690darwin* | rhapsody*)
13691  dynamic_linker="$host_os dyld"
13692  version_type=darwin
13693  need_lib_prefix=no
13694  need_version=no
13695  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13696  soname_spec='${libname}${release}${major}$shared_ext'
13697  shlibpath_overrides_runpath=yes
13698  shlibpath_var=DYLD_LIBRARY_PATH
13699  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13700  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13701  if test "$GCC" = yes; then
13702    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"`
13703  else
13704    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13705  fi
13706  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13707  ;;
13708
13709dgux*)
13710  version_type=linux
13711  need_lib_prefix=no
13712  need_version=no
13713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13714  soname_spec='${libname}${release}${shared_ext}$major'
13715  shlibpath_var=LD_LIBRARY_PATH
13716  ;;
13717
13718freebsd1*)
13719  dynamic_linker=no
13720  ;;
13721
13722kfreebsd*-gnu)
13723  version_type=linux
13724  need_lib_prefix=no
13725  need_version=no
13726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13727  soname_spec='${libname}${release}${shared_ext}$major'
13728  shlibpath_var=LD_LIBRARY_PATH
13729  shlibpath_overrides_runpath=no
13730  hardcode_into_libs=yes
13731  dynamic_linker='GNU ld.so'
13732  ;;
13733
13734freebsd* | dragonfly*)
13735  # DragonFly does not have aout.  When/if they implement a new
13736  # versioning mechanism, adjust this.
13737  if test -x /usr/bin/objformat; then
13738    objformat=`/usr/bin/objformat`
13739  else
13740    case $host_os in
13741    freebsd[123]*) objformat=aout ;;
13742    *) objformat=elf ;;
13743    esac
13744  fi
13745  version_type=freebsd-$objformat
13746  case $version_type in
13747    freebsd-elf*)
13748      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13749      need_version=no
13750      need_lib_prefix=no
13751      ;;
13752    freebsd-*)
13753      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13754      need_version=yes
13755      ;;
13756  esac
13757  shlibpath_var=LD_LIBRARY_PATH
13758  case $host_os in
13759  freebsd2*)
13760    shlibpath_overrides_runpath=yes
13761    ;;
13762  freebsd3.[01]* | freebsdelf3.[01]*)
13763    shlibpath_overrides_runpath=yes
13764    hardcode_into_libs=yes
13765    ;;
13766  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13767  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13768    shlibpath_overrides_runpath=no
13769    hardcode_into_libs=yes
13770    ;;
13771  freebsd*) # from 4.6 on
13772    shlibpath_overrides_runpath=yes
13773    hardcode_into_libs=yes
13774    ;;
13775  esac
13776  ;;
13777
13778gnu*)
13779  version_type=linux
13780  need_lib_prefix=no
13781  need_version=no
13782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13783  soname_spec='${libname}${release}${shared_ext}$major'
13784  shlibpath_var=LD_LIBRARY_PATH
13785  hardcode_into_libs=yes
13786  ;;
13787
13788hpux9* | hpux10* | hpux11*)
13789  # Give a soname corresponding to the major version so that dld.sl refuses to
13790  # link against other versions.
13791  version_type=sunos
13792  need_lib_prefix=no
13793  need_version=no
13794  case $host_cpu in
13795  ia64*)
13796    shrext_cmds='.so'
13797    hardcode_into_libs=yes
13798    dynamic_linker="$host_os dld.so"
13799    shlibpath_var=LD_LIBRARY_PATH
13800    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13802    soname_spec='${libname}${release}${shared_ext}$major'
13803    if test "X$HPUX_IA64_MODE" = X32; then
13804      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13805    else
13806      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13807    fi
13808    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13809    ;;
13810   hppa*64*)
13811     shrext_cmds='.sl'
13812     hardcode_into_libs=yes
13813     dynamic_linker="$host_os dld.sl"
13814     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13815     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13817     soname_spec='${libname}${release}${shared_ext}$major'
13818     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13819     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13820     ;;
13821   *)
13822    shrext_cmds='.sl'
13823    dynamic_linker="$host_os dld.sl"
13824    shlibpath_var=SHLIB_PATH
13825    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827    soname_spec='${libname}${release}${shared_ext}$major'
13828    ;;
13829  esac
13830  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13831  postinstall_cmds='chmod 555 $lib'
13832  ;;
13833
13834interix3*)
13835  version_type=linux
13836  need_lib_prefix=no
13837  need_version=no
13838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13839  soname_spec='${libname}${release}${shared_ext}$major'
13840  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13841  shlibpath_var=LD_LIBRARY_PATH
13842  shlibpath_overrides_runpath=no
13843  hardcode_into_libs=yes
13844  ;;
13845
13846irix5* | irix6* | nonstopux*)
13847  case $host_os in
13848    nonstopux*) version_type=nonstopux ;;
13849    *)
13850	if test "$lt_cv_prog_gnu_ld" = yes; then
13851		version_type=linux
13852	else
13853		version_type=irix
13854	fi ;;
13855  esac
13856  need_lib_prefix=no
13857  need_version=no
13858  soname_spec='${libname}${release}${shared_ext}$major'
13859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13860  case $host_os in
13861  irix5* | nonstopux*)
13862    libsuff= shlibsuff=
13863    ;;
13864  *)
13865    case $LD in # libtool.m4 will add one of these switches to LD
13866    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13867      libsuff= shlibsuff= libmagic=32-bit;;
13868    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13869      libsuff=32 shlibsuff=N32 libmagic=N32;;
13870    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13871      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13872    *) libsuff= shlibsuff= libmagic=never-match;;
13873    esac
13874    ;;
13875  esac
13876  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13877  shlibpath_overrides_runpath=no
13878  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13879  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13880  hardcode_into_libs=yes
13881  ;;
13882
13883# No shared lib support for Linux oldld, aout, or coff.
13884linux*oldld* | linux*aout* | linux*coff*)
13885  dynamic_linker=no
13886  ;;
13887
13888# This must be Linux ELF.
13889linux*)
13890  version_type=linux
13891  need_lib_prefix=no
13892  need_version=no
13893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894  soname_spec='${libname}${release}${shared_ext}$major'
13895  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13896  shlibpath_var=LD_LIBRARY_PATH
13897  shlibpath_overrides_runpath=no
13898  # This implies no fast_install, which is unacceptable.
13899  # Some rework will be needed to allow for fast_install
13900  # before this can be enabled.
13901  hardcode_into_libs=yes
13902
13903  # Append ld.so.conf contents to the search path
13904  if test -f /etc/ld.so.conf; then
13905    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' ' '`
13906    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13907  fi
13908
13909  # We used to test for /lib/ld.so.1 and disable shared libraries on
13910  # powerpc, because MkLinux only supported shared libraries with the
13911  # GNU dynamic linker.  Since this was broken with cross compilers,
13912  # most powerpc-linux boxes support dynamic linking these days and
13913  # people can always --disable-shared, the test was removed, and we
13914  # assume the GNU/Linux dynamic linker is in use.
13915  dynamic_linker='GNU/Linux ld.so'
13916  ;;
13917
13918knetbsd*-gnu)
13919  version_type=linux
13920  need_lib_prefix=no
13921  need_version=no
13922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13923  soname_spec='${libname}${release}${shared_ext}$major'
13924  shlibpath_var=LD_LIBRARY_PATH
13925  shlibpath_overrides_runpath=no
13926  hardcode_into_libs=yes
13927  dynamic_linker='GNU ld.so'
13928  ;;
13929
13930netbsd*)
13931  version_type=sunos
13932  need_lib_prefix=no
13933  need_version=no
13934  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13935    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13936    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13937    dynamic_linker='NetBSD (a.out) ld.so'
13938  else
13939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13940    soname_spec='${libname}${release}${shared_ext}$major'
13941    dynamic_linker='NetBSD ld.elf_so'
13942  fi
13943  shlibpath_var=LD_LIBRARY_PATH
13944  shlibpath_overrides_runpath=yes
13945  hardcode_into_libs=yes
13946  ;;
13947
13948newsos6)
13949  version_type=linux
13950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13951  shlibpath_var=LD_LIBRARY_PATH
13952  shlibpath_overrides_runpath=yes
13953  ;;
13954
13955nto-qnx*)
13956  version_type=linux
13957  need_lib_prefix=no
13958  need_version=no
13959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960  soname_spec='${libname}${release}${shared_ext}$major'
13961  shlibpath_var=LD_LIBRARY_PATH
13962  shlibpath_overrides_runpath=yes
13963  ;;
13964
13965openbsd*)
13966  version_type=sunos
13967  sys_lib_dlsearch_path_spec="/usr/lib"
13968  need_lib_prefix=no
13969  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13970  case $host_os in
13971    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13972    *)                         need_version=no  ;;
13973  esac
13974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13975  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13976  shlibpath_var=LD_LIBRARY_PATH
13977  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978    case $host_os in
13979      openbsd2.[89] | openbsd2.[89].*)
13980	shlibpath_overrides_runpath=no
13981	;;
13982      *)
13983	shlibpath_overrides_runpath=yes
13984	;;
13985      esac
13986  else
13987    shlibpath_overrides_runpath=yes
13988  fi
13989  ;;
13990
13991os2*)
13992  libname_spec='$name'
13993  shrext_cmds=".dll"
13994  need_lib_prefix=no
13995  library_names_spec='$libname${shared_ext} $libname.a'
13996  dynamic_linker='OS/2 ld.exe'
13997  shlibpath_var=LIBPATH
13998  ;;
13999
14000osf3* | osf4* | osf5*)
14001  version_type=osf
14002  need_lib_prefix=no
14003  need_version=no
14004  soname_spec='${libname}${release}${shared_ext}$major'
14005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006  shlibpath_var=LD_LIBRARY_PATH
14007  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14008  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14009  ;;
14010
14011solaris*)
14012  version_type=linux
14013  need_lib_prefix=no
14014  need_version=no
14015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016  soname_spec='${libname}${release}${shared_ext}$major'
14017  shlibpath_var=LD_LIBRARY_PATH
14018  shlibpath_overrides_runpath=yes
14019  hardcode_into_libs=yes
14020  # ldd complains unless libraries are executable
14021  postinstall_cmds='chmod +x $lib'
14022  ;;
14023
14024sunos4*)
14025  version_type=sunos
14026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14027  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14028  shlibpath_var=LD_LIBRARY_PATH
14029  shlibpath_overrides_runpath=yes
14030  if test "$with_gnu_ld" = yes; then
14031    need_lib_prefix=no
14032  fi
14033  need_version=yes
14034  ;;
14035
14036sysv4 | sysv4.3*)
14037  version_type=linux
14038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039  soname_spec='${libname}${release}${shared_ext}$major'
14040  shlibpath_var=LD_LIBRARY_PATH
14041  case $host_vendor in
14042    sni)
14043      shlibpath_overrides_runpath=no
14044      need_lib_prefix=no
14045      export_dynamic_flag_spec='${wl}-Blargedynsym'
14046      runpath_var=LD_RUN_PATH
14047      ;;
14048    siemens)
14049      need_lib_prefix=no
14050      ;;
14051    motorola)
14052      need_lib_prefix=no
14053      need_version=no
14054      shlibpath_overrides_runpath=no
14055      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14056      ;;
14057  esac
14058  ;;
14059
14060sysv4*MP*)
14061  if test -d /usr/nec ;then
14062    version_type=linux
14063    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14064    soname_spec='$libname${shared_ext}.$major'
14065    shlibpath_var=LD_LIBRARY_PATH
14066  fi
14067  ;;
14068
14069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14070  version_type=freebsd-elf
14071  need_lib_prefix=no
14072  need_version=no
14073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14074  soname_spec='${libname}${release}${shared_ext}$major'
14075  shlibpath_var=LD_LIBRARY_PATH
14076  hardcode_into_libs=yes
14077  if test "$with_gnu_ld" = yes; then
14078    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14079    shlibpath_overrides_runpath=no
14080  else
14081    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14082    shlibpath_overrides_runpath=yes
14083    case $host_os in
14084      sco3.2v5*)
14085        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14086	;;
14087    esac
14088  fi
14089  sys_lib_dlsearch_path_spec='/usr/lib'
14090  ;;
14091
14092uts4*)
14093  version_type=linux
14094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095  soname_spec='${libname}${release}${shared_ext}$major'
14096  shlibpath_var=LD_LIBRARY_PATH
14097  ;;
14098
14099*)
14100  dynamic_linker=no
14101  ;;
14102esac
14103echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14104echo "${ECHO_T}$dynamic_linker" >&6
14105test "$dynamic_linker" = no && can_build_shared=no
14106
14107variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14108if test "$GCC" = yes; then
14109  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14110fi
14111
14112echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14113echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14114hardcode_action_CXX=
14115if test -n "$hardcode_libdir_flag_spec_CXX" || \
14116   test -n "$runpath_var_CXX" || \
14117   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14118
14119  # We can hardcode non-existant directories.
14120  if test "$hardcode_direct_CXX" != no &&
14121     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14122     # have to relink, otherwise we might link with an installed library
14123     # when we should be linking with a yet-to-be-installed one
14124     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14125     test "$hardcode_minus_L_CXX" != no; then
14126    # Linking always hardcodes the temporary library directory.
14127    hardcode_action_CXX=relink
14128  else
14129    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14130    hardcode_action_CXX=immediate
14131  fi
14132else
14133  # We cannot hardcode anything, or else we can only hardcode existing
14134  # directories.
14135  hardcode_action_CXX=unsupported
14136fi
14137echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14138echo "${ECHO_T}$hardcode_action_CXX" >&6
14139
14140if test "$hardcode_action_CXX" = relink; then
14141  # Fast installation is not supported
14142  enable_fast_install=no
14143elif test "$shlibpath_overrides_runpath" = yes ||
14144     test "$enable_shared" = no; then
14145  # Fast installation is not necessary
14146  enable_fast_install=needless
14147fi
14148
14149
14150# The else clause should only fire when bootstrapping the
14151# libtool distribution, otherwise you forgot to ship ltmain.sh
14152# with your package, and you will get complaints that there are
14153# no rules to generate ltmain.sh.
14154if test -f "$ltmain"; then
14155  # See if we are running on zsh, and set the options which allow our commands through
14156  # without removal of \ escapes.
14157  if test -n "${ZSH_VERSION+set}" ; then
14158    setopt NO_GLOB_SUBST
14159  fi
14160  # Now quote all the things that may contain metacharacters while being
14161  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14162  # variables and quote the copies for generation of the libtool script.
14163  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14164    SED SHELL STRIP \
14165    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14166    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14167    deplibs_check_method reload_flag reload_cmds need_locks \
14168    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14169    lt_cv_sys_global_symbol_to_c_name_address \
14170    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14171    old_postinstall_cmds old_postuninstall_cmds \
14172    compiler_CXX \
14173    CC_CXX \
14174    LD_CXX \
14175    lt_prog_compiler_wl_CXX \
14176    lt_prog_compiler_pic_CXX \
14177    lt_prog_compiler_static_CXX \
14178    lt_prog_compiler_no_builtin_flag_CXX \
14179    export_dynamic_flag_spec_CXX \
14180    thread_safe_flag_spec_CXX \
14181    whole_archive_flag_spec_CXX \
14182    enable_shared_with_static_runtimes_CXX \
14183    old_archive_cmds_CXX \
14184    old_archive_from_new_cmds_CXX \
14185    predep_objects_CXX \
14186    postdep_objects_CXX \
14187    predeps_CXX \
14188    postdeps_CXX \
14189    compiler_lib_search_path_CXX \
14190    archive_cmds_CXX \
14191    archive_expsym_cmds_CXX \
14192    postinstall_cmds_CXX \
14193    postuninstall_cmds_CXX \
14194    old_archive_from_expsyms_cmds_CXX \
14195    allow_undefined_flag_CXX \
14196    no_undefined_flag_CXX \
14197    export_symbols_cmds_CXX \
14198    hardcode_libdir_flag_spec_CXX \
14199    hardcode_libdir_flag_spec_ld_CXX \
14200    hardcode_libdir_separator_CXX \
14201    hardcode_automatic_CXX \
14202    module_cmds_CXX \
14203    module_expsym_cmds_CXX \
14204    lt_cv_prog_compiler_c_o_CXX \
14205    exclude_expsyms_CXX \
14206    include_expsyms_CXX; do
14207
14208    case $var in
14209    old_archive_cmds_CXX | \
14210    old_archive_from_new_cmds_CXX | \
14211    archive_cmds_CXX | \
14212    archive_expsym_cmds_CXX | \
14213    module_cmds_CXX | \
14214    module_expsym_cmds_CXX | \
14215    old_archive_from_expsyms_cmds_CXX | \
14216    export_symbols_cmds_CXX | \
14217    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14218    postinstall_cmds | postuninstall_cmds | \
14219    old_postinstall_cmds | old_postuninstall_cmds | \
14220    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14221      # Double-quote double-evaled strings.
14222      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14223      ;;
14224    *)
14225      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14226      ;;
14227    esac
14228  done
14229
14230  case $lt_echo in
14231  *'\$0 --fallback-echo"')
14232    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14233    ;;
14234  esac
14235
14236cfgfile="$ofile"
14237
14238  cat <<__EOF__ >> "$cfgfile"
14239# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14240
14241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14242
14243# Shell to use when invoking shell scripts.
14244SHELL=$lt_SHELL
14245
14246# Whether or not to build shared libraries.
14247build_libtool_libs=$enable_shared
14248
14249# Whether or not to build static libraries.
14250build_old_libs=$enable_static
14251
14252# Whether or not to add -lc for building shared libraries.
14253build_libtool_need_lc=$archive_cmds_need_lc_CXX
14254
14255# Whether or not to disallow shared libs when runtime libs are static
14256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14257
14258# Whether or not to optimize for fast installation.
14259fast_install=$enable_fast_install
14260
14261# The host system.
14262host_alias=$host_alias
14263host=$host
14264host_os=$host_os
14265
14266# The build system.
14267build_alias=$build_alias
14268build=$build
14269build_os=$build_os
14270
14271# An echo program that does not interpret backslashes.
14272echo=$lt_echo
14273
14274# The archiver.
14275AR=$lt_AR
14276AR_FLAGS=$lt_AR_FLAGS
14277
14278# A C compiler.
14279LTCC=$lt_LTCC
14280
14281# LTCC compiler flags.
14282LTCFLAGS=$lt_LTCFLAGS
14283
14284# A language-specific compiler.
14285CC=$lt_compiler_CXX
14286
14287# Is the compiler the GNU C compiler?
14288with_gcc=$GCC_CXX
14289
14290# An ERE matcher.
14291EGREP=$lt_EGREP
14292
14293# The linker used to build libraries.
14294LD=$lt_LD_CXX
14295
14296# Whether we need hard or soft links.
14297LN_S=$lt_LN_S
14298
14299# A BSD-compatible nm program.
14300NM=$lt_NM
14301
14302# A symbol stripping program
14303STRIP=$lt_STRIP
14304
14305# Used to examine libraries when file_magic_cmd begins "file"
14306MAGIC_CMD=$MAGIC_CMD
14307
14308# Used on cygwin: DLL creation program.
14309DLLTOOL="$DLLTOOL"
14310
14311# Used on cygwin: object dumper.
14312OBJDUMP="$OBJDUMP"
14313
14314# Used on cygwin: assembler.
14315AS="$AS"
14316
14317# The name of the directory that contains temporary libtool files.
14318objdir=$objdir
14319
14320# How to create reloadable object files.
14321reload_flag=$lt_reload_flag
14322reload_cmds=$lt_reload_cmds
14323
14324# How to pass a linker flag through the compiler.
14325wl=$lt_lt_prog_compiler_wl_CXX
14326
14327# Object file suffix (normally "o").
14328objext="$ac_objext"
14329
14330# Old archive suffix (normally "a").
14331libext="$libext"
14332
14333# Shared library suffix (normally ".so").
14334shrext_cmds='$shrext_cmds'
14335
14336# Executable file suffix (normally "").
14337exeext="$exeext"
14338
14339# Additional compiler flags for building library objects.
14340pic_flag=$lt_lt_prog_compiler_pic_CXX
14341pic_mode=$pic_mode
14342
14343# What is the maximum length of a command?
14344max_cmd_len=$lt_cv_sys_max_cmd_len
14345
14346# Does compiler simultaneously support -c and -o options?
14347compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14348
14349# Must we lock files when doing compilation?
14350need_locks=$lt_need_locks
14351
14352# Do we need the lib prefix for modules?
14353need_lib_prefix=$need_lib_prefix
14354
14355# Do we need a version for libraries?
14356need_version=$need_version
14357
14358# Whether dlopen is supported.
14359dlopen_support=$enable_dlopen
14360
14361# Whether dlopen of programs is supported.
14362dlopen_self=$enable_dlopen_self
14363
14364# Whether dlopen of statically linked programs is supported.
14365dlopen_self_static=$enable_dlopen_self_static
14366
14367# Compiler flag to prevent dynamic linking.
14368link_static_flag=$lt_lt_prog_compiler_static_CXX
14369
14370# Compiler flag to turn off builtin functions.
14371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14372
14373# Compiler flag to allow reflexive dlopens.
14374export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14375
14376# Compiler flag to generate shared objects directly from archives.
14377whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14378
14379# Compiler flag to generate thread-safe objects.
14380thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14381
14382# Library versioning type.
14383version_type=$version_type
14384
14385# Format of library name prefix.
14386libname_spec=$lt_libname_spec
14387
14388# List of archive names.  First name is the real one, the rest are links.
14389# The last name is the one that the linker finds with -lNAME.
14390library_names_spec=$lt_library_names_spec
14391
14392# The coded name of the library, if different from the real name.
14393soname_spec=$lt_soname_spec
14394
14395# Commands used to build and install an old-style archive.
14396RANLIB=$lt_RANLIB
14397old_archive_cmds=$lt_old_archive_cmds_CXX
14398old_postinstall_cmds=$lt_old_postinstall_cmds
14399old_postuninstall_cmds=$lt_old_postuninstall_cmds
14400
14401# Create an old-style archive from a shared archive.
14402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14403
14404# Create a temporary old-style archive to link instead of a shared archive.
14405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14406
14407# Commands used to build and install a shared archive.
14408archive_cmds=$lt_archive_cmds_CXX
14409archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14410postinstall_cmds=$lt_postinstall_cmds
14411postuninstall_cmds=$lt_postuninstall_cmds
14412
14413# Commands used to build a loadable module (assumed same as above if empty)
14414module_cmds=$lt_module_cmds_CXX
14415module_expsym_cmds=$lt_module_expsym_cmds_CXX
14416
14417# Commands to strip libraries.
14418old_striplib=$lt_old_striplib
14419striplib=$lt_striplib
14420
14421# Dependencies to place before the objects being linked to create a
14422# shared library.
14423predep_objects=$lt_predep_objects_CXX
14424
14425# Dependencies to place after the objects being linked to create a
14426# shared library.
14427postdep_objects=$lt_postdep_objects_CXX
14428
14429# Dependencies to place before the objects being linked to create a
14430# shared library.
14431predeps=$lt_predeps_CXX
14432
14433# Dependencies to place after the objects being linked to create a
14434# shared library.
14435postdeps=$lt_postdeps_CXX
14436
14437# The library search path used internally by the compiler when linking
14438# a shared library.
14439compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14440
14441# Method to check whether dependent libraries are shared objects.
14442deplibs_check_method=$lt_deplibs_check_method
14443
14444# Command to use when deplibs_check_method == file_magic.
14445file_magic_cmd=$lt_file_magic_cmd
14446
14447# Flag that allows shared libraries with undefined symbols to be built.
14448allow_undefined_flag=$lt_allow_undefined_flag_CXX
14449
14450# Flag that forces no undefined symbols.
14451no_undefined_flag=$lt_no_undefined_flag_CXX
14452
14453# Commands used to finish a libtool library installation in a directory.
14454finish_cmds=$lt_finish_cmds
14455
14456# Same as above, but a single script fragment to be evaled but not shown.
14457finish_eval=$lt_finish_eval
14458
14459# Take the output of nm and produce a listing of raw symbols and C names.
14460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14461
14462# Transform the output of nm in a proper C declaration
14463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14464
14465# Transform the output of nm in a C name address pair
14466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14467
14468# This is the shared library runtime path variable.
14469runpath_var=$runpath_var
14470
14471# This is the shared library path variable.
14472shlibpath_var=$shlibpath_var
14473
14474# Is shlibpath searched before the hard-coded library search path?
14475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14476
14477# How to hardcode a shared library path into an executable.
14478hardcode_action=$hardcode_action_CXX
14479
14480# Whether we should hardcode library paths into libraries.
14481hardcode_into_libs=$hardcode_into_libs
14482
14483# Flag to hardcode \$libdir into a binary during linking.
14484# This must work even if \$libdir does not exist.
14485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14486
14487# If ld is used when linking, flag to hardcode \$libdir into
14488# a binary during linking. This must work even if \$libdir does
14489# not exist.
14490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14491
14492# Whether we need a single -rpath flag with a separated argument.
14493hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14494
14495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14496# resulting binary.
14497hardcode_direct=$hardcode_direct_CXX
14498
14499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14500# resulting binary.
14501hardcode_minus_L=$hardcode_minus_L_CXX
14502
14503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14504# the resulting binary.
14505hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14506
14507# Set to yes if building a shared library automatically hardcodes DIR into the library
14508# and all subsequent libraries and executables linked against it.
14509hardcode_automatic=$hardcode_automatic_CXX
14510
14511# Variables whose values should be saved in libtool wrapper scripts and
14512# restored at relink time.
14513variables_saved_for_relink="$variables_saved_for_relink"
14514
14515# Whether libtool must link a program against all its dependency libraries.
14516link_all_deplibs=$link_all_deplibs_CXX
14517
14518# Compile-time system search path for libraries
14519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14520
14521# Run-time system search path for libraries
14522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14523
14524# Fix the shell variable \$srcfile for the compiler.
14525fix_srcfile_path="$fix_srcfile_path_CXX"
14526
14527# Set to yes if exported symbols are required.
14528always_export_symbols=$always_export_symbols_CXX
14529
14530# The commands to list exported symbols.
14531export_symbols_cmds=$lt_export_symbols_cmds_CXX
14532
14533# The commands to extract the exported symbol list from a shared archive.
14534extract_expsyms_cmds=$lt_extract_expsyms_cmds
14535
14536# Symbols that should not be listed in the preloaded symbols.
14537exclude_expsyms=$lt_exclude_expsyms_CXX
14538
14539# Symbols that must always be exported.
14540include_expsyms=$lt_include_expsyms_CXX
14541
14542# ### END LIBTOOL TAG CONFIG: $tagname
14543
14544__EOF__
14545
14546
14547else
14548  # If there is no Makefile yet, we rely on a make rule to execute
14549  # `config.status --recheck' to rerun these tests and create the
14550  # libtool script then.
14551  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14552  if test -f "$ltmain_in"; then
14553    test -f Makefile && make "$ltmain"
14554  fi
14555fi
14556
14557
14558ac_ext=cc
14559ac_cpp='$CXXCPP $CPPFLAGS'
14560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14563
14564CC=$lt_save_CC
14565LDCXX=$LD
14566LD=$lt_save_LD
14567GCC=$lt_save_GCC
14568with_gnu_ldcxx=$with_gnu_ld
14569with_gnu_ld=$lt_save_with_gnu_ld
14570lt_cv_path_LDCXX=$lt_cv_path_LD
14571lt_cv_path_LD=$lt_save_path_LD
14572lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14573lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14574
14575	else
14576	  tagname=""
14577	fi
14578	;;
14579
14580      F77)
14581	if test -n "$F77" && test "X$F77" != "Xno"; then
14582
14583ac_ext=f
14584ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14585ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14586ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14587
14588
14589archive_cmds_need_lc_F77=no
14590allow_undefined_flag_F77=
14591always_export_symbols_F77=no
14592archive_expsym_cmds_F77=
14593export_dynamic_flag_spec_F77=
14594hardcode_direct_F77=no
14595hardcode_libdir_flag_spec_F77=
14596hardcode_libdir_flag_spec_ld_F77=
14597hardcode_libdir_separator_F77=
14598hardcode_minus_L_F77=no
14599hardcode_automatic_F77=no
14600module_cmds_F77=
14601module_expsym_cmds_F77=
14602link_all_deplibs_F77=unknown
14603old_archive_cmds_F77=$old_archive_cmds
14604no_undefined_flag_F77=
14605whole_archive_flag_spec_F77=
14606enable_shared_with_static_runtimes_F77=no
14607
14608# Source file extension for f77 test sources.
14609ac_ext=f
14610
14611# Object file extension for compiled f77 test sources.
14612objext=o
14613objext_F77=$objext
14614
14615# Code to be used in simple compile tests
14616lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14617
14618# Code to be used in simple link tests
14619lt_simple_link_test_code="      program t\n      end\n"
14620
14621# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14622
14623# If no C compiler was specified, use CC.
14624LTCC=${LTCC-"$CC"}
14625
14626# If no C compiler flags were specified, use CFLAGS.
14627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14628
14629# Allow CC to be a program name with arguments.
14630compiler=$CC
14631
14632
14633# save warnings/boilerplate of simple test code
14634ac_outfile=conftest.$ac_objext
14635printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14637_lt_compiler_boilerplate=`cat conftest.err`
14638$rm conftest*
14639
14640ac_outfile=conftest.$ac_objext
14641printf "$lt_simple_link_test_code" >conftest.$ac_ext
14642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14643_lt_linker_boilerplate=`cat conftest.err`
14644$rm conftest*
14645
14646
14647# Allow CC to be a program name with arguments.
14648lt_save_CC="$CC"
14649CC=${F77-"f77"}
14650compiler=$CC
14651compiler_F77=$CC
14652for cc_temp in $compiler""; do
14653  case $cc_temp in
14654    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14655    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14656    \-*) ;;
14657    *) break;;
14658  esac
14659done
14660cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14661
14662
14663echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14664echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14665echo "$as_me:$LINENO: result: $can_build_shared" >&5
14666echo "${ECHO_T}$can_build_shared" >&6
14667
14668echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14669echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14670test "$can_build_shared" = "no" && enable_shared=no
14671
14672# On AIX, shared libraries and static libraries use the same namespace, and
14673# are all built from PIC.
14674case $host_os in
14675aix3*)
14676  test "$enable_shared" = yes && enable_static=no
14677  if test -n "$RANLIB"; then
14678    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14679    postinstall_cmds='$RANLIB $lib'
14680  fi
14681  ;;
14682aix4* | aix5*)
14683  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14684    test "$enable_shared" = yes && enable_static=no
14685  fi
14686  ;;
14687esac
14688echo "$as_me:$LINENO: result: $enable_shared" >&5
14689echo "${ECHO_T}$enable_shared" >&6
14690
14691echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14692echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14693# Make sure either enable_shared or enable_static is yes.
14694test "$enable_shared" = yes || enable_static=yes
14695echo "$as_me:$LINENO: result: $enable_static" >&5
14696echo "${ECHO_T}$enable_static" >&6
14697
14698GCC_F77="$G77"
14699LD_F77="$LD"
14700
14701lt_prog_compiler_wl_F77=
14702lt_prog_compiler_pic_F77=
14703lt_prog_compiler_static_F77=
14704
14705echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14706echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14707
14708  if test "$GCC" = yes; then
14709    lt_prog_compiler_wl_F77='-Wl,'
14710    lt_prog_compiler_static_F77='-static'
14711
14712    case $host_os in
14713      aix*)
14714      # All AIX code is PIC.
14715      if test "$host_cpu" = ia64; then
14716	# AIX 5 now supports IA64 processor
14717	lt_prog_compiler_static_F77='-Bstatic'
14718      fi
14719      ;;
14720
14721    amigaos*)
14722      # FIXME: we need at least 68020 code to build shared libraries, but
14723      # adding the `-m68020' flag to GCC prevents building anything better,
14724      # like `-m68040'.
14725      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14726      ;;
14727
14728    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14729      # PIC is the default for these OSes.
14730      ;;
14731
14732    mingw* | pw32* | os2*)
14733      # This hack is so that the source file can tell whether it is being
14734      # built for inclusion in a dll (and should export symbols for example).
14735      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14736      ;;
14737
14738    darwin* | rhapsody*)
14739      # PIC is the default on this platform
14740      # Common symbols not allowed in MH_DYLIB files
14741      lt_prog_compiler_pic_F77='-fno-common'
14742      ;;
14743
14744    interix3*)
14745      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14746      # Instead, we relocate shared libraries at runtime.
14747      ;;
14748
14749    msdosdjgpp*)
14750      # Just because we use GCC doesn't mean we suddenly get shared libraries
14751      # on systems that don't support them.
14752      lt_prog_compiler_can_build_shared_F77=no
14753      enable_shared=no
14754      ;;
14755
14756    sysv4*MP*)
14757      if test -d /usr/nec; then
14758	lt_prog_compiler_pic_F77=-Kconform_pic
14759      fi
14760      ;;
14761
14762    hpux*)
14763      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14764      # not for PA HP-UX.
14765      case $host_cpu in
14766      hppa*64*|ia64*)
14767	# +Z the default
14768	;;
14769      *)
14770	lt_prog_compiler_pic_F77='-fPIC'
14771	;;
14772      esac
14773      ;;
14774
14775    *)
14776      lt_prog_compiler_pic_F77='-fPIC'
14777      ;;
14778    esac
14779  else
14780    # PORTME Check for flag to pass linker flags through the system compiler.
14781    case $host_os in
14782    aix*)
14783      lt_prog_compiler_wl_F77='-Wl,'
14784      if test "$host_cpu" = ia64; then
14785	# AIX 5 now supports IA64 processor
14786	lt_prog_compiler_static_F77='-Bstatic'
14787      else
14788	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14789      fi
14790      ;;
14791      darwin*)
14792        # PIC is the default on this platform
14793        # Common symbols not allowed in MH_DYLIB files
14794       case $cc_basename in
14795         xlc*)
14796         lt_prog_compiler_pic_F77='-qnocommon'
14797         lt_prog_compiler_wl_F77='-Wl,'
14798         ;;
14799       esac
14800       ;;
14801
14802    mingw* | pw32* | os2*)
14803      # This hack is so that the source file can tell whether it is being
14804      # built for inclusion in a dll (and should export symbols for example).
14805      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14806      ;;
14807
14808    hpux9* | hpux10* | hpux11*)
14809      lt_prog_compiler_wl_F77='-Wl,'
14810      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14811      # not for PA HP-UX.
14812      case $host_cpu in
14813      hppa*64*|ia64*)
14814	# +Z the default
14815	;;
14816      *)
14817	lt_prog_compiler_pic_F77='+Z'
14818	;;
14819      esac
14820      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14821      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14822      ;;
14823
14824    irix5* | irix6* | nonstopux*)
14825      lt_prog_compiler_wl_F77='-Wl,'
14826      # PIC (with -KPIC) is the default.
14827      lt_prog_compiler_static_F77='-non_shared'
14828      ;;
14829
14830    newsos6)
14831      lt_prog_compiler_pic_F77='-KPIC'
14832      lt_prog_compiler_static_F77='-Bstatic'
14833      ;;
14834
14835    linux*)
14836      case $cc_basename in
14837      icc* | ecc*)
14838	lt_prog_compiler_wl_F77='-Wl,'
14839	lt_prog_compiler_pic_F77='-KPIC'
14840	lt_prog_compiler_static_F77='-static'
14841        ;;
14842      pgcc* | pgf77* | pgf90* | pgf95*)
14843        # Portland Group compilers (*not* the Pentium gcc compiler,
14844	# which looks to be a dead project)
14845	lt_prog_compiler_wl_F77='-Wl,'
14846	lt_prog_compiler_pic_F77='-fpic'
14847	lt_prog_compiler_static_F77='-Bstatic'
14848        ;;
14849      ccc*)
14850        lt_prog_compiler_wl_F77='-Wl,'
14851        # All Alpha code is PIC.
14852        lt_prog_compiler_static_F77='-non_shared'
14853        ;;
14854      esac
14855      ;;
14856
14857    osf3* | osf4* | osf5*)
14858      lt_prog_compiler_wl_F77='-Wl,'
14859      # All OSF/1 code is PIC.
14860      lt_prog_compiler_static_F77='-non_shared'
14861      ;;
14862
14863    solaris*)
14864      lt_prog_compiler_pic_F77='-KPIC'
14865      lt_prog_compiler_static_F77='-Bstatic'
14866      case $cc_basename in
14867      f77* | f90* | f95*)
14868	lt_prog_compiler_wl_F77='-Qoption ld ';;
14869      *)
14870	lt_prog_compiler_wl_F77='-Wl,';;
14871      esac
14872      ;;
14873
14874    sunos4*)
14875      lt_prog_compiler_wl_F77='-Qoption ld '
14876      lt_prog_compiler_pic_F77='-PIC'
14877      lt_prog_compiler_static_F77='-Bstatic'
14878      ;;
14879
14880    sysv4 | sysv4.2uw2* | sysv4.3*)
14881      lt_prog_compiler_wl_F77='-Wl,'
14882      lt_prog_compiler_pic_F77='-KPIC'
14883      lt_prog_compiler_static_F77='-Bstatic'
14884      ;;
14885
14886    sysv4*MP*)
14887      if test -d /usr/nec ;then
14888	lt_prog_compiler_pic_F77='-Kconform_pic'
14889	lt_prog_compiler_static_F77='-Bstatic'
14890      fi
14891      ;;
14892
14893    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14894      lt_prog_compiler_wl_F77='-Wl,'
14895      lt_prog_compiler_pic_F77='-KPIC'
14896      lt_prog_compiler_static_F77='-Bstatic'
14897      ;;
14898
14899    unicos*)
14900      lt_prog_compiler_wl_F77='-Wl,'
14901      lt_prog_compiler_can_build_shared_F77=no
14902      ;;
14903
14904    uts4*)
14905      lt_prog_compiler_pic_F77='-pic'
14906      lt_prog_compiler_static_F77='-Bstatic'
14907      ;;
14908
14909    *)
14910      lt_prog_compiler_can_build_shared_F77=no
14911      ;;
14912    esac
14913  fi
14914
14915echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14916echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14917
14918#
14919# Check to make sure the PIC flag actually works.
14920#
14921if test -n "$lt_prog_compiler_pic_F77"; then
14922
14923echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14924echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14925if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14926  echo $ECHO_N "(cached) $ECHO_C" >&6
14927else
14928  lt_prog_compiler_pic_works_F77=no
14929  ac_outfile=conftest.$ac_objext
14930   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14931   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14932   # Insert the option either (1) after the last *FLAGS variable, or
14933   # (2) before a word containing "conftest.", or (3) at the end.
14934   # Note that $ac_compile itself does not contain backslashes and begins
14935   # with a dollar sign (not a hyphen), so the echo should work correctly.
14936   # The option is referenced via a variable to avoid confusing sed.
14937   lt_compile=`echo "$ac_compile" | $SED \
14938   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14939   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14940   -e 's:$: $lt_compiler_flag:'`
14941   (eval echo "\"\$as_me:14941: $lt_compile\"" >&5)
14942   (eval "$lt_compile" 2>conftest.err)
14943   ac_status=$?
14944   cat conftest.err >&5
14945   echo "$as_me:14945: \$? = $ac_status" >&5
14946   if (exit $ac_status) && test -s "$ac_outfile"; then
14947     # The compiler can only warn and ignore the option if not recognized
14948     # So say no if there are warnings other than the usual output.
14949     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14950     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14951     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14952       lt_prog_compiler_pic_works_F77=yes
14953     fi
14954   fi
14955   $rm conftest*
14956
14957fi
14958echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14959echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14960
14961if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14962    case $lt_prog_compiler_pic_F77 in
14963     "" | " "*) ;;
14964     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14965     esac
14966else
14967    lt_prog_compiler_pic_F77=
14968     lt_prog_compiler_can_build_shared_F77=no
14969fi
14970
14971fi
14972case $host_os in
14973  # For platforms which do not support PIC, -DPIC is meaningless:
14974  *djgpp*)
14975    lt_prog_compiler_pic_F77=
14976    ;;
14977  *)
14978    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14979    ;;
14980esac
14981
14982#
14983# Check to make sure the static flag actually works.
14984#
14985wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14986echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14987echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14988if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14989  echo $ECHO_N "(cached) $ECHO_C" >&6
14990else
14991  lt_prog_compiler_static_works_F77=no
14992   save_LDFLAGS="$LDFLAGS"
14993   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14994   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14995   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14996     # The linker can only warn and ignore the option if not recognized
14997     # So say no if there are warnings
14998     if test -s conftest.err; then
14999       # Append any errors to the config.log.
15000       cat conftest.err 1>&5
15001       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15002       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15003       if diff conftest.exp conftest.er2 >/dev/null; then
15004         lt_prog_compiler_static_works_F77=yes
15005       fi
15006     else
15007       lt_prog_compiler_static_works_F77=yes
15008     fi
15009   fi
15010   $rm conftest*
15011   LDFLAGS="$save_LDFLAGS"
15012
15013fi
15014echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15015echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15016
15017if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15018    :
15019else
15020    lt_prog_compiler_static_F77=
15021fi
15022
15023
15024echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15025echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15026if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15027  echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029  lt_cv_prog_compiler_c_o_F77=no
15030   $rm -r conftest 2>/dev/null
15031   mkdir conftest
15032   cd conftest
15033   mkdir out
15034   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15035
15036   lt_compiler_flag="-o out/conftest2.$ac_objext"
15037   # Insert the option either (1) after the last *FLAGS variable, or
15038   # (2) before a word containing "conftest.", or (3) at the end.
15039   # Note that $ac_compile itself does not contain backslashes and begins
15040   # with a dollar sign (not a hyphen), so the echo should work correctly.
15041   lt_compile=`echo "$ac_compile" | $SED \
15042   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15043   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15044   -e 's:$: $lt_compiler_flag:'`
15045   (eval echo "\"\$as_me:15045: $lt_compile\"" >&5)
15046   (eval "$lt_compile" 2>out/conftest.err)
15047   ac_status=$?
15048   cat out/conftest.err >&5
15049   echo "$as_me:15049: \$? = $ac_status" >&5
15050   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15051   then
15052     # The compiler can only warn and ignore the option if not recognized
15053     # So say no if there are warnings
15054     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15055     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15056     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15057       lt_cv_prog_compiler_c_o_F77=yes
15058     fi
15059   fi
15060   chmod u+w . 2>&5
15061   $rm conftest*
15062   # SGI C++ compiler will create directory out/ii_files/ for
15063   # template instantiation
15064   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15065   $rm out/* && rmdir out
15066   cd ..
15067   rmdir conftest
15068   $rm conftest*
15069
15070fi
15071echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15072echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15073
15074
15075hard_links="nottested"
15076if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15077  # do not overwrite the value of need_locks provided by the user
15078  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15079echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15080  hard_links=yes
15081  $rm conftest*
15082  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15083  touch conftest.a
15084  ln conftest.a conftest.b 2>&5 || hard_links=no
15085  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15086  echo "$as_me:$LINENO: result: $hard_links" >&5
15087echo "${ECHO_T}$hard_links" >&6
15088  if test "$hard_links" = no; then
15089    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15090echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15091    need_locks=warn
15092  fi
15093else
15094  need_locks=no
15095fi
15096
15097echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15098echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15099
15100  runpath_var=
15101  allow_undefined_flag_F77=
15102  enable_shared_with_static_runtimes_F77=no
15103  archive_cmds_F77=
15104  archive_expsym_cmds_F77=
15105  old_archive_From_new_cmds_F77=
15106  old_archive_from_expsyms_cmds_F77=
15107  export_dynamic_flag_spec_F77=
15108  whole_archive_flag_spec_F77=
15109  thread_safe_flag_spec_F77=
15110  hardcode_libdir_flag_spec_F77=
15111  hardcode_libdir_flag_spec_ld_F77=
15112  hardcode_libdir_separator_F77=
15113  hardcode_direct_F77=no
15114  hardcode_minus_L_F77=no
15115  hardcode_shlibpath_var_F77=unsupported
15116  link_all_deplibs_F77=unknown
15117  hardcode_automatic_F77=no
15118  module_cmds_F77=
15119  module_expsym_cmds_F77=
15120  always_export_symbols_F77=no
15121  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15122  # include_expsyms should be a list of space-separated symbols to be *always*
15123  # included in the symbol list
15124  include_expsyms_F77=
15125  # exclude_expsyms can be an extended regexp of symbols to exclude
15126  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15127  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15128  # as well as any symbol that contains `d'.
15129  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15130  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15131  # platforms (ab)use it in PIC code, but their linkers get confused if
15132  # the symbol is explicitly referenced.  Since portable code cannot
15133  # rely on this symbol name, it's probably fine to never include it in
15134  # preloaded symbol tables.
15135  extract_expsyms_cmds=
15136  # Just being paranoid about ensuring that cc_basename is set.
15137  for cc_temp in $compiler""; do
15138  case $cc_temp in
15139    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15140    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15141    \-*) ;;
15142    *) break;;
15143  esac
15144done
15145cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15146
15147  case $host_os in
15148  cygwin* | mingw* | pw32*)
15149    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15150    # When not using gcc, we currently assume that we are using
15151    # Microsoft Visual C++.
15152    if test "$GCC" != yes; then
15153      with_gnu_ld=no
15154    fi
15155    ;;
15156  interix*)
15157    # we just hope/assume this is gcc and not c89 (= MSVC++)
15158    with_gnu_ld=yes
15159    ;;
15160  openbsd*)
15161    with_gnu_ld=no
15162    ;;
15163  esac
15164
15165  ld_shlibs_F77=yes
15166  if test "$with_gnu_ld" = yes; then
15167    # If archive_cmds runs LD, not CC, wlarc should be empty
15168    wlarc='${wl}'
15169
15170    # Set some defaults for GNU ld with shared library support. These
15171    # are reset later if shared libraries are not supported. Putting them
15172    # here allows them to be overridden if necessary.
15173    runpath_var=LD_RUN_PATH
15174    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15175    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15176    # ancient GNU ld didn't support --whole-archive et. al.
15177    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15178	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15179      else
15180  	whole_archive_flag_spec_F77=
15181    fi
15182    supports_anon_versioning=no
15183    case `$LD -v 2>/dev/null` in
15184      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15185      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15186      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15187      *\ 2.11.*) ;; # other 2.11 versions
15188      *) supports_anon_versioning=yes ;;
15189    esac
15190
15191    # See if GNU ld supports shared libraries.
15192    case $host_os in
15193    aix3* | aix4* | aix5*)
15194      # On AIX/PPC, the GNU linker is very broken
15195      if test "$host_cpu" != ia64; then
15196	ld_shlibs_F77=no
15197	cat <<EOF 1>&2
15198
15199*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15200*** to be unable to reliably create shared libraries on AIX.
15201*** Therefore, libtool is disabling shared libraries support.  If you
15202*** really care for shared libraries, you may want to modify your PATH
15203*** so that a non-GNU linker is found, and then restart.
15204
15205EOF
15206      fi
15207      ;;
15208
15209    amigaos*)
15210      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)'
15211      hardcode_libdir_flag_spec_F77='-L$libdir'
15212      hardcode_minus_L_F77=yes
15213
15214      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15215      # that the semantics of dynamic libraries on AmigaOS, at least up
15216      # to version 4, is to share data among multiple programs linked
15217      # with the same dynamic library.  Since this doesn't match the
15218      # behavior of shared libraries on other platforms, we can't use
15219      # them.
15220      ld_shlibs_F77=no
15221      ;;
15222
15223    beos*)
15224      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15225	allow_undefined_flag_F77=unsupported
15226	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15227	# support --undefined.  This deserves some investigation.  FIXME
15228	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15229      else
15230	ld_shlibs_F77=no
15231      fi
15232      ;;
15233
15234    cygwin* | mingw* | pw32*)
15235      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15236      # as there is no search path for DLLs.
15237      hardcode_libdir_flag_spec_F77='-L$libdir'
15238      allow_undefined_flag_F77=unsupported
15239      always_export_symbols_F77=no
15240      enable_shared_with_static_runtimes_F77=yes
15241      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15242
15243      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15244        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15245	# If the export-symbols file already is a .def file (1st line
15246	# is EXPORTS), use it as is; otherwise, prepend...
15247	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15248	  cp $export_symbols $output_objdir/$soname.def;
15249	else
15250	  echo EXPORTS > $output_objdir/$soname.def;
15251	  cat $export_symbols >> $output_objdir/$soname.def;
15252	fi~
15253	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15254      else
15255	ld_shlibs_F77=no
15256      fi
15257      ;;
15258
15259    interix3*)
15260      hardcode_direct_F77=no
15261      hardcode_shlibpath_var_F77=no
15262      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15263      export_dynamic_flag_spec_F77='${wl}-E'
15264      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15265      # Instead, shared libraries are loaded at an image base (0x10000000 by
15266      # default) and relocated if they conflict, which is a slow very memory
15267      # consuming and fragmenting process.  To avoid this, we pick a random,
15268      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15269      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15270      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'
15271      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'
15272      ;;
15273
15274    linux*)
15275      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15276	tmp_addflag=
15277	case $cc_basename,$host_cpu in
15278	pgcc*)				# Portland Group C compiler
15279	  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'
15280	  tmp_addflag=' $pic_flag'
15281	  ;;
15282	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15283	  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'
15284	  tmp_addflag=' $pic_flag -Mnomain' ;;
15285	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15286	  tmp_addflag=' -i_dynamic' ;;
15287	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15288	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15289	ifc* | ifort*)			# Intel Fortran compiler
15290	  tmp_addflag=' -nofor_main' ;;
15291	esac
15292	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293
15294	if test $supports_anon_versioning = yes; then
15295	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15296  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15297  $echo "local: *; };" >> $output_objdir/$libname.ver~
15298	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15299	fi
15300      else
15301	ld_shlibs_F77=no
15302      fi
15303      ;;
15304
15305    netbsd*)
15306      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15307	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15308	wlarc=
15309      else
15310	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15311	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15312      fi
15313      ;;
15314
15315    solaris*)
15316      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15317	ld_shlibs_F77=no
15318	cat <<EOF 1>&2
15319
15320*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15321*** create shared libraries on Solaris systems.  Therefore, libtool
15322*** is disabling shared libraries support.  We urge you to upgrade GNU
15323*** binutils to release 2.9.1 or newer.  Another option is to modify
15324*** your PATH or compiler configuration so that the native linker is
15325*** used, and then restart.
15326
15327EOF
15328      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15329	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15331      else
15332	ld_shlibs_F77=no
15333      fi
15334      ;;
15335
15336    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15337      case `$LD -v 2>&1` in
15338        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15339	ld_shlibs_F77=no
15340	cat <<_LT_EOF 1>&2
15341
15342*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15343*** reliably create shared libraries on SCO systems.  Therefore, libtool
15344*** is disabling shared libraries support.  We urge you to upgrade GNU
15345*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15346*** your PATH or compiler configuration so that the native linker is
15347*** used, and then restart.
15348
15349_LT_EOF
15350	;;
15351	*)
15352	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15353	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15354	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15355	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15356	  else
15357	    ld_shlibs_F77=no
15358	  fi
15359	;;
15360      esac
15361      ;;
15362
15363    sunos4*)
15364      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15365      wlarc=
15366      hardcode_direct_F77=yes
15367      hardcode_shlibpath_var_F77=no
15368      ;;
15369
15370    *)
15371      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15372	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15373	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15374      else
15375	ld_shlibs_F77=no
15376      fi
15377      ;;
15378    esac
15379
15380    if test "$ld_shlibs_F77" = no; then
15381      runpath_var=
15382      hardcode_libdir_flag_spec_F77=
15383      export_dynamic_flag_spec_F77=
15384      whole_archive_flag_spec_F77=
15385    fi
15386  else
15387    # PORTME fill in a description of your system's linker (not GNU ld)
15388    case $host_os in
15389    aix3*)
15390      allow_undefined_flag_F77=unsupported
15391      always_export_symbols_F77=yes
15392      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'
15393      # Note: this linker hardcodes the directories in LIBPATH if there
15394      # are no directories specified by -L.
15395      hardcode_minus_L_F77=yes
15396      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15397	# Neither direct hardcoding nor static linking is supported with a
15398	# broken collect2.
15399	hardcode_direct_F77=unsupported
15400      fi
15401      ;;
15402
15403    aix4* | aix5*)
15404      if test "$host_cpu" = ia64; then
15405	# On IA64, the linker does run time linking by default, so we don't
15406	# have to do anything special.
15407	aix_use_runtimelinking=no
15408	exp_sym_flag='-Bexport'
15409	no_entry_flag=""
15410      else
15411	# If we're using GNU nm, then we don't want the "-C" option.
15412	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15413	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15414	  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'
15415	else
15416	  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'
15417	fi
15418	aix_use_runtimelinking=no
15419
15420	# Test if we are trying to use run time linking or normal
15421	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15422	# need to do runtime linking.
15423	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15424	  for ld_flag in $LDFLAGS; do
15425  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15426  	    aix_use_runtimelinking=yes
15427  	    break
15428  	  fi
15429	  done
15430	  ;;
15431	esac
15432
15433	exp_sym_flag='-bexport'
15434	no_entry_flag='-bnoentry'
15435      fi
15436
15437      # When large executables or shared objects are built, AIX ld can
15438      # have problems creating the table of contents.  If linking a library
15439      # or program results in "error TOC overflow" add -mminimal-toc to
15440      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15441      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15442
15443      archive_cmds_F77=''
15444      hardcode_direct_F77=yes
15445      hardcode_libdir_separator_F77=':'
15446      link_all_deplibs_F77=yes
15447
15448      if test "$GCC" = yes; then
15449	case $host_os in aix4.[012]|aix4.[012].*)
15450	# We only want to do this on AIX 4.2 and lower, the check
15451	# below for broken collect2 doesn't work under 4.3+
15452	  collect2name=`${CC} -print-prog-name=collect2`
15453	  if test -f "$collect2name" && \
15454  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15455	  then
15456  	  # We have reworked collect2
15457  	  hardcode_direct_F77=yes
15458	  else
15459  	  # We have old collect2
15460  	  hardcode_direct_F77=unsupported
15461  	  # It fails to find uninstalled libraries when the uninstalled
15462  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15463  	  # to unsupported forces relinking
15464  	  hardcode_minus_L_F77=yes
15465  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15466  	  hardcode_libdir_separator_F77=
15467	  fi
15468	  ;;
15469	esac
15470	shared_flag='-shared'
15471	if test "$aix_use_runtimelinking" = yes; then
15472	  shared_flag="$shared_flag "'${wl}-G'
15473	fi
15474      else
15475	# not using gcc
15476	if test "$host_cpu" = ia64; then
15477  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15478  	# chokes on -Wl,-G. The following line is correct:
15479	  shared_flag='-G'
15480	else
15481	  if test "$aix_use_runtimelinking" = yes; then
15482	    shared_flag='${wl}-G'
15483	  else
15484	    shared_flag='${wl}-bM:SRE'
15485	  fi
15486	fi
15487      fi
15488
15489      # It seems that -bexpall does not export symbols beginning with
15490      # underscore (_), so it is better to generate a list of symbols to export.
15491      always_export_symbols_F77=yes
15492      if test "$aix_use_runtimelinking" = yes; then
15493	# Warning - without using the other runtime loading flags (-brtl),
15494	# -berok will link without error, but may produce a broken library.
15495	allow_undefined_flag_F77='-berok'
15496       # Determine the default libpath from the value encoded in an empty executable.
15497       cat >conftest.$ac_ext <<_ACEOF
15498      program main
15499
15500      end
15501_ACEOF
15502rm -f conftest.$ac_objext conftest$ac_exeext
15503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504  (eval $ac_link) 2>conftest.er1
15505  ac_status=$?
15506  grep -v '^ *+' conftest.er1 >conftest.err
15507  rm -f conftest.er1
15508  cat conftest.err >&5
15509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510  (exit $ac_status); } &&
15511	 { ac_try='test -z "$ac_f77_werror_flag"
15512			 || test ! -s conftest.err'
15513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514  (eval $ac_try) 2>&5
15515  ac_status=$?
15516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517  (exit $ac_status); }; } &&
15518	 { ac_try='test -s conftest$ac_exeext'
15519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520  (eval $ac_try) 2>&5
15521  ac_status=$?
15522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523  (exit $ac_status); }; }; then
15524
15525aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15526}'`
15527# Check for a 64-bit object if we didn't find anything.
15528if 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; }
15529}'`; fi
15530else
15531  echo "$as_me: failed program was:" >&5
15532sed 's/^/| /' conftest.$ac_ext >&5
15533
15534fi
15535rm -f conftest.err conftest.$ac_objext \
15536      conftest$ac_exeext conftest.$ac_ext
15537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15538
15539       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15540	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"
15541       else
15542	if test "$host_cpu" = ia64; then
15543	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15544	  allow_undefined_flag_F77="-z nodefs"
15545	  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"
15546	else
15547	 # Determine the default libpath from the value encoded in an empty executable.
15548	 cat >conftest.$ac_ext <<_ACEOF
15549      program main
15550
15551      end
15552_ACEOF
15553rm -f conftest.$ac_objext conftest$ac_exeext
15554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555  (eval $ac_link) 2>conftest.er1
15556  ac_status=$?
15557  grep -v '^ *+' conftest.er1 >conftest.err
15558  rm -f conftest.er1
15559  cat conftest.err >&5
15560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561  (exit $ac_status); } &&
15562	 { ac_try='test -z "$ac_f77_werror_flag"
15563			 || test ! -s conftest.err'
15564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565  (eval $ac_try) 2>&5
15566  ac_status=$?
15567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568  (exit $ac_status); }; } &&
15569	 { ac_try='test -s conftest$ac_exeext'
15570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571  (eval $ac_try) 2>&5
15572  ac_status=$?
15573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574  (exit $ac_status); }; }; then
15575
15576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15577}'`
15578# Check for a 64-bit object if we didn't find anything.
15579if 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; }
15580}'`; fi
15581else
15582  echo "$as_me: failed program was:" >&5
15583sed 's/^/| /' conftest.$ac_ext >&5
15584
15585fi
15586rm -f conftest.err conftest.$ac_objext \
15587      conftest$ac_exeext conftest.$ac_ext
15588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15589
15590	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15591	  # Warning - without using the other run time loading flags,
15592	  # -berok will link without error, but may produce a broken library.
15593	  no_undefined_flag_F77=' ${wl}-bernotok'
15594	  allow_undefined_flag_F77=' ${wl}-berok'
15595	  # Exported symbols can be pulled into shared objects from archives
15596	  whole_archive_flag_spec_F77='$convenience'
15597	  archive_cmds_need_lc_F77=yes
15598	  # This is similar to how AIX traditionally builds its shared libraries.
15599	  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'
15600	fi
15601      fi
15602      ;;
15603
15604    amigaos*)
15605      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)'
15606      hardcode_libdir_flag_spec_F77='-L$libdir'
15607      hardcode_minus_L_F77=yes
15608      # see comment about different semantics on the GNU ld section
15609      ld_shlibs_F77=no
15610      ;;
15611
15612    bsdi[45]*)
15613      export_dynamic_flag_spec_F77=-rdynamic
15614      ;;
15615
15616    cygwin* | mingw* | pw32*)
15617      # When not using gcc, we currently assume that we are using
15618      # Microsoft Visual C++.
15619      # hardcode_libdir_flag_spec is actually meaningless, as there is
15620      # no search path for DLLs.
15621      hardcode_libdir_flag_spec_F77=' '
15622      allow_undefined_flag_F77=unsupported
15623      # Tell ltmain to make .lib files, not .a files.
15624      libext=lib
15625      # Tell ltmain to make .dll files, not .so files.
15626      shrext_cmds=".dll"
15627      # FIXME: Setting linknames here is a bad hack.
15628      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15629      # The linker will automatically build a .lib file if we build a DLL.
15630      old_archive_From_new_cmds_F77='true'
15631      # FIXME: Should let the user specify the lib program.
15632      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15633      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15634      enable_shared_with_static_runtimes_F77=yes
15635      ;;
15636
15637    darwin* | rhapsody*)
15638      case $host_os in
15639        rhapsody* | darwin1.[012])
15640         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15641         ;;
15642       *) # Darwin 1.3 on
15643         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15644           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15645         else
15646           case ${MACOSX_DEPLOYMENT_TARGET} in
15647             10.[012])
15648               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15649               ;;
15650             10.*)
15651               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15652               ;;
15653           esac
15654         fi
15655         ;;
15656      esac
15657      archive_cmds_need_lc_F77=no
15658      hardcode_direct_F77=no
15659      hardcode_automatic_F77=yes
15660      hardcode_shlibpath_var_F77=unsupported
15661      whole_archive_flag_spec_F77=''
15662      link_all_deplibs_F77=yes
15663    if test "$GCC" = yes ; then
15664    	output_verbose_link_cmd='echo'
15665        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15666      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15667      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15668      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}'
15669      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}'
15670    else
15671      case $cc_basename in
15672        xlc*)
15673         output_verbose_link_cmd='echo'
15674         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15675         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15676          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15677         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}'
15678          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}'
15679          ;;
15680       *)
15681         ld_shlibs_F77=no
15682          ;;
15683      esac
15684    fi
15685      ;;
15686
15687    dgux*)
15688      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15689      hardcode_libdir_flag_spec_F77='-L$libdir'
15690      hardcode_shlibpath_var_F77=no
15691      ;;
15692
15693    freebsd1*)
15694      ld_shlibs_F77=no
15695      ;;
15696
15697    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15698    # support.  Future versions do this automatically, but an explicit c++rt0.o
15699    # does not break anything, and helps significantly (at the cost of a little
15700    # extra space).
15701    freebsd2.2*)
15702      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15703      hardcode_libdir_flag_spec_F77='-R$libdir'
15704      hardcode_direct_F77=yes
15705      hardcode_shlibpath_var_F77=no
15706      ;;
15707
15708    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15709    freebsd2*)
15710      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15711      hardcode_direct_F77=yes
15712      hardcode_minus_L_F77=yes
15713      hardcode_shlibpath_var_F77=no
15714      ;;
15715
15716    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15717    freebsd* | kfreebsd*-gnu | dragonfly*)
15718      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15719      hardcode_libdir_flag_spec_F77='-R$libdir'
15720      hardcode_direct_F77=yes
15721      hardcode_shlibpath_var_F77=no
15722      ;;
15723
15724    hpux9*)
15725      if test "$GCC" = yes; then
15726	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'
15727      else
15728	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'
15729      fi
15730      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15731      hardcode_libdir_separator_F77=:
15732      hardcode_direct_F77=yes
15733
15734      # hardcode_minus_L: Not really in the search PATH,
15735      # but as the default location of the library.
15736      hardcode_minus_L_F77=yes
15737      export_dynamic_flag_spec_F77='${wl}-E'
15738      ;;
15739
15740    hpux10*)
15741      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15742	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15743      else
15744	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15745      fi
15746      if test "$with_gnu_ld" = no; then
15747	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15748	hardcode_libdir_separator_F77=:
15749
15750	hardcode_direct_F77=yes
15751	export_dynamic_flag_spec_F77='${wl}-E'
15752
15753	# hardcode_minus_L: Not really in the search PATH,
15754	# but as the default location of the library.
15755	hardcode_minus_L_F77=yes
15756      fi
15757      ;;
15758
15759    hpux11*)
15760      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15761	case $host_cpu in
15762	hppa*64*)
15763	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15764	  ;;
15765	ia64*)
15766	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15767	  ;;
15768	*)
15769	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15770	  ;;
15771	esac
15772      else
15773	case $host_cpu in
15774	hppa*64*)
15775	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776	  ;;
15777	ia64*)
15778	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15779	  ;;
15780	*)
15781	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15782	  ;;
15783	esac
15784      fi
15785      if test "$with_gnu_ld" = no; then
15786	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15787	hardcode_libdir_separator_F77=:
15788
15789	case $host_cpu in
15790	hppa*64*|ia64*)
15791	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15792	  hardcode_direct_F77=no
15793	  hardcode_shlibpath_var_F77=no
15794	  ;;
15795	*)
15796	  hardcode_direct_F77=yes
15797	  export_dynamic_flag_spec_F77='${wl}-E'
15798
15799	  # hardcode_minus_L: Not really in the search PATH,
15800	  # but as the default location of the library.
15801	  hardcode_minus_L_F77=yes
15802	  ;;
15803	esac
15804      fi
15805      ;;
15806
15807    irix5* | irix6* | nonstopux*)
15808      if test "$GCC" = yes; then
15809	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'
15810      else
15811	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'
15812	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15813      fi
15814      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15815      hardcode_libdir_separator_F77=:
15816      link_all_deplibs_F77=yes
15817      ;;
15818
15819    netbsd*)
15820      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15821	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15822      else
15823	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15824      fi
15825      hardcode_libdir_flag_spec_F77='-R$libdir'
15826      hardcode_direct_F77=yes
15827      hardcode_shlibpath_var_F77=no
15828      ;;
15829
15830    newsos6)
15831      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832      hardcode_direct_F77=yes
15833      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15834      hardcode_libdir_separator_F77=:
15835      hardcode_shlibpath_var_F77=no
15836      ;;
15837
15838    openbsd*)
15839      hardcode_direct_F77=yes
15840      hardcode_shlibpath_var_F77=no
15841      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15842	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15843	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15844	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15845	export_dynamic_flag_spec_F77='${wl}-E'
15846      else
15847       case $host_os in
15848	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15849	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15850	   hardcode_libdir_flag_spec_F77='-R$libdir'
15851	   ;;
15852	 *)
15853	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15854	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15855	   ;;
15856       esac
15857      fi
15858      ;;
15859
15860    os2*)
15861      hardcode_libdir_flag_spec_F77='-L$libdir'
15862      hardcode_minus_L_F77=yes
15863      allow_undefined_flag_F77=unsupported
15864      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'
15865      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15866      ;;
15867
15868    osf3*)
15869      if test "$GCC" = yes; then
15870	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15871	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'
15872      else
15873	allow_undefined_flag_F77=' -expect_unresolved \*'
15874	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'
15875      fi
15876      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15877      hardcode_libdir_separator_F77=:
15878      ;;
15879
15880    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15881      if test "$GCC" = yes; then
15882	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15883	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'
15884	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15885      else
15886	allow_undefined_flag_F77=' -expect_unresolved \*'
15887	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'
15888	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~
15889	$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'
15890
15891	# Both c and cxx compiler support -rpath directly
15892	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15893      fi
15894      hardcode_libdir_separator_F77=:
15895      ;;
15896
15897    solaris*)
15898      no_undefined_flag_F77=' -z text'
15899      if test "$GCC" = yes; then
15900	wlarc='${wl}'
15901	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15902	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15903	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15904      else
15905	wlarc=''
15906	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15908  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15909      fi
15910      hardcode_libdir_flag_spec_F77='-R$libdir'
15911      hardcode_shlibpath_var_F77=no
15912      case $host_os in
15913      solaris2.[0-5] | solaris2.[0-5].*) ;;
15914      *)
15915 	# The compiler driver will combine linker options so we
15916 	# cannot just pass the convience library names through
15917 	# without $wl, iff we do not link with $LD.
15918 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15919 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15920 	case $wlarc in
15921 	'')
15922 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15923 	*)
15924 	  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' ;;
15925 	esac ;;
15926      esac
15927      link_all_deplibs_F77=yes
15928      ;;
15929
15930    sunos4*)
15931      if test "x$host_vendor" = xsequent; then
15932	# Use $CC to link under sequent, because it throws in some extra .o
15933	# files that make .init and .fini sections work.
15934	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15935      else
15936	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15937      fi
15938      hardcode_libdir_flag_spec_F77='-L$libdir'
15939      hardcode_direct_F77=yes
15940      hardcode_minus_L_F77=yes
15941      hardcode_shlibpath_var_F77=no
15942      ;;
15943
15944    sysv4)
15945      case $host_vendor in
15946	sni)
15947	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948	  hardcode_direct_F77=yes # is this really true???
15949	;;
15950	siemens)
15951	  ## LD is ld it makes a PLAMLIB
15952	  ## CC just makes a GrossModule.
15953	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15954	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15955	  hardcode_direct_F77=no
15956        ;;
15957	motorola)
15958	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15959	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15960	;;
15961      esac
15962      runpath_var='LD_RUN_PATH'
15963      hardcode_shlibpath_var_F77=no
15964      ;;
15965
15966    sysv4.3*)
15967      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968      hardcode_shlibpath_var_F77=no
15969      export_dynamic_flag_spec_F77='-Bexport'
15970      ;;
15971
15972    sysv4*MP*)
15973      if test -d /usr/nec; then
15974	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15975	hardcode_shlibpath_var_F77=no
15976	runpath_var=LD_RUN_PATH
15977	hardcode_runpath_var=yes
15978	ld_shlibs_F77=yes
15979      fi
15980      ;;
15981
15982    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15983      no_undefined_flag_F77='${wl}-z,text'
15984      archive_cmds_need_lc_F77=no
15985      hardcode_shlibpath_var_F77=no
15986      runpath_var='LD_RUN_PATH'
15987
15988      if test "$GCC" = yes; then
15989	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15990	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15991      else
15992	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15993	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15994      fi
15995      ;;
15996
15997    sysv5* | sco3.2v5* | sco5v6*)
15998      # Note: We can NOT use -z defs as we might desire, because we do not
15999      # link with -lc, and that would cause any symbols used from libc to
16000      # always be unresolved, which means just about no library would
16001      # ever link correctly.  If we're not using GNU ld we use -z text
16002      # though, which does catch some bad symbols but isn't as heavy-handed
16003      # as -z defs.
16004      no_undefined_flag_F77='${wl}-z,text'
16005      allow_undefined_flag_F77='${wl}-z,nodefs'
16006      archive_cmds_need_lc_F77=no
16007      hardcode_shlibpath_var_F77=no
16008      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16009      hardcode_libdir_separator_F77=':'
16010      link_all_deplibs_F77=yes
16011      export_dynamic_flag_spec_F77='${wl}-Bexport'
16012      runpath_var='LD_RUN_PATH'
16013
16014      if test "$GCC" = yes; then
16015	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16016	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16017      else
16018	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16019	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16020      fi
16021      ;;
16022
16023    uts4*)
16024      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025      hardcode_libdir_flag_spec_F77='-L$libdir'
16026      hardcode_shlibpath_var_F77=no
16027      ;;
16028
16029    *)
16030      ld_shlibs_F77=no
16031      ;;
16032    esac
16033  fi
16034
16035echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16036echo "${ECHO_T}$ld_shlibs_F77" >&6
16037test "$ld_shlibs_F77" = no && can_build_shared=no
16038
16039#
16040# Do we need to explicitly link libc?
16041#
16042case "x$archive_cmds_need_lc_F77" in
16043x|xyes)
16044  # Assume -lc should be added
16045  archive_cmds_need_lc_F77=yes
16046
16047  if test "$enable_shared" = yes && test "$GCC" = yes; then
16048    case $archive_cmds_F77 in
16049    *'~'*)
16050      # FIXME: we may have to deal with multi-command sequences.
16051      ;;
16052    '$CC '*)
16053      # Test whether the compiler implicitly links with -lc since on some
16054      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16055      # to ld, don't add -lc before -lgcc.
16056      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16057echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16058      $rm conftest*
16059      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16060
16061      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062  (eval $ac_compile) 2>&5
16063  ac_status=$?
16064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065  (exit $ac_status); } 2>conftest.err; then
16066        soname=conftest
16067        lib=conftest
16068        libobjs=conftest.$ac_objext
16069        deplibs=
16070        wl=$lt_prog_compiler_wl_F77
16071	pic_flag=$lt_prog_compiler_pic_F77
16072        compiler_flags=-v
16073        linker_flags=-v
16074        verstring=
16075        output_objdir=.
16076        libname=conftest
16077        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16078        allow_undefined_flag_F77=
16079        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16080  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16081  ac_status=$?
16082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083  (exit $ac_status); }
16084        then
16085	  archive_cmds_need_lc_F77=no
16086        else
16087	  archive_cmds_need_lc_F77=yes
16088        fi
16089        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16090      else
16091        cat conftest.err 1>&5
16092      fi
16093      $rm conftest*
16094      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16095echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16096      ;;
16097    esac
16098  fi
16099  ;;
16100esac
16101
16102echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16103echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16104library_names_spec=
16105libname_spec='lib$name'
16106soname_spec=
16107shrext_cmds=".so"
16108postinstall_cmds=
16109postuninstall_cmds=
16110finish_cmds=
16111finish_eval=
16112shlibpath_var=
16113shlibpath_overrides_runpath=unknown
16114version_type=none
16115dynamic_linker="$host_os ld.so"
16116sys_lib_dlsearch_path_spec="/lib /usr/lib"
16117if test "$GCC" = yes; then
16118  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16119  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16120    # if the path contains ";" then we assume it to be the separator
16121    # otherwise default to the standard path separator (i.e. ":") - it is
16122    # assumed that no part of a normal pathname contains ";" but that should
16123    # okay in the real world where ";" in dirpaths is itself problematic.
16124    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16125  else
16126    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16127  fi
16128else
16129  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16130fi
16131need_lib_prefix=unknown
16132hardcode_into_libs=no
16133
16134# when you set need_version to no, make sure it does not cause -set_version
16135# flags to be left without arguments
16136need_version=unknown
16137
16138case $host_os in
16139aix3*)
16140  version_type=linux
16141  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16142  shlibpath_var=LIBPATH
16143
16144  # AIX 3 has no versioning support, so we append a major version to the name.
16145  soname_spec='${libname}${release}${shared_ext}$major'
16146  ;;
16147
16148aix4* | aix5*)
16149  version_type=linux
16150  need_lib_prefix=no
16151  need_version=no
16152  hardcode_into_libs=yes
16153  if test "$host_cpu" = ia64; then
16154    # AIX 5 supports IA64
16155    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16156    shlibpath_var=LD_LIBRARY_PATH
16157  else
16158    # With GCC up to 2.95.x, collect2 would create an import file
16159    # for dependence libraries.  The import file would start with
16160    # the line `#! .'.  This would cause the generated library to
16161    # depend on `.', always an invalid library.  This was fixed in
16162    # development snapshots of GCC prior to 3.0.
16163    case $host_os in
16164      aix4 | aix4.[01] | aix4.[01].*)
16165      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16166	   echo ' yes '
16167	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16168	:
16169      else
16170	can_build_shared=no
16171      fi
16172      ;;
16173    esac
16174    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16175    # soname into executable. Probably we can add versioning support to
16176    # collect2, so additional links can be useful in future.
16177    if test "$aix_use_runtimelinking" = yes; then
16178      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16179      # instead of lib<name>.a to let people know that these are not
16180      # typical AIX shared libraries.
16181      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182    else
16183      # We preserve .a as extension for shared libraries through AIX4.2
16184      # and later when we are not doing run time linking.
16185      library_names_spec='${libname}${release}.a $libname.a'
16186      soname_spec='${libname}${release}${shared_ext}$major'
16187    fi
16188    shlibpath_var=LIBPATH
16189  fi
16190  ;;
16191
16192amigaos*)
16193  library_names_spec='$libname.ixlibrary $libname.a'
16194  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16195  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'
16196  ;;
16197
16198beos*)
16199  library_names_spec='${libname}${shared_ext}'
16200  dynamic_linker="$host_os ld.so"
16201  shlibpath_var=LIBRARY_PATH
16202  ;;
16203
16204bsdi[45]*)
16205  version_type=linux
16206  need_version=no
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208  soname_spec='${libname}${release}${shared_ext}$major'
16209  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16210  shlibpath_var=LD_LIBRARY_PATH
16211  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16212  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16213  # the default ld.so.conf also contains /usr/contrib/lib and
16214  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16215  # libtool to hard-code these into programs
16216  ;;
16217
16218cygwin* | mingw* | pw32*)
16219  version_type=windows
16220  shrext_cmds=".dll"
16221  need_version=no
16222  need_lib_prefix=no
16223
16224  case $GCC,$host_os in
16225  yes,cygwin* | yes,mingw* | yes,pw32*)
16226    library_names_spec='$libname.dll.a'
16227    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16228    postinstall_cmds='base_file=`basename \${file}`~
16229      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16230      dldir=$destdir/`dirname \$dlpath`~
16231      test -d \$dldir || mkdir -p \$dldir~
16232      $install_prog $dir/$dlname \$dldir/$dlname~
16233      chmod a+x \$dldir/$dlname'
16234    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16235      dlpath=$dir/\$dldll~
16236       $rm \$dlpath'
16237    shlibpath_overrides_runpath=yes
16238
16239    case $host_os in
16240    cygwin*)
16241      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16242      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16243      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16244      ;;
16245    mingw*)
16246      # MinGW DLLs use traditional 'lib' prefix
16247      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16248      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16249      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16250        # It is most probably a Windows format PATH printed by
16251        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16252        # path with ; separators, and with drive letters. We can handle the
16253        # drive letters (cygwin fileutils understands them), so leave them,
16254        # especially as we might pass files found there to a mingw objdump,
16255        # which wouldn't understand a cygwinified path. Ahh.
16256        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16257      else
16258        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16259      fi
16260      ;;
16261    pw32*)
16262      # pw32 DLLs use 'pw' prefix rather than 'lib'
16263      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16264      ;;
16265    esac
16266    ;;
16267
16268  *)
16269    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16270    ;;
16271  esac
16272  dynamic_linker='Win32 ld.exe'
16273  # FIXME: first we should search . and the directory the executable is in
16274  shlibpath_var=PATH
16275  ;;
16276
16277darwin* | rhapsody*)
16278  dynamic_linker="$host_os dyld"
16279  version_type=darwin
16280  need_lib_prefix=no
16281  need_version=no
16282  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16283  soname_spec='${libname}${release}${major}$shared_ext'
16284  shlibpath_overrides_runpath=yes
16285  shlibpath_var=DYLD_LIBRARY_PATH
16286  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16287  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16288  if test "$GCC" = yes; then
16289    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"`
16290  else
16291    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16292  fi
16293  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16294  ;;
16295
16296dgux*)
16297  version_type=linux
16298  need_lib_prefix=no
16299  need_version=no
16300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16301  soname_spec='${libname}${release}${shared_ext}$major'
16302  shlibpath_var=LD_LIBRARY_PATH
16303  ;;
16304
16305freebsd1*)
16306  dynamic_linker=no
16307  ;;
16308
16309kfreebsd*-gnu)
16310  version_type=linux
16311  need_lib_prefix=no
16312  need_version=no
16313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16314  soname_spec='${libname}${release}${shared_ext}$major'
16315  shlibpath_var=LD_LIBRARY_PATH
16316  shlibpath_overrides_runpath=no
16317  hardcode_into_libs=yes
16318  dynamic_linker='GNU ld.so'
16319  ;;
16320
16321freebsd* | dragonfly*)
16322  # DragonFly does not have aout.  When/if they implement a new
16323  # versioning mechanism, adjust this.
16324  if test -x /usr/bin/objformat; then
16325    objformat=`/usr/bin/objformat`
16326  else
16327    case $host_os in
16328    freebsd[123]*) objformat=aout ;;
16329    *) objformat=elf ;;
16330    esac
16331  fi
16332  version_type=freebsd-$objformat
16333  case $version_type in
16334    freebsd-elf*)
16335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16336      need_version=no
16337      need_lib_prefix=no
16338      ;;
16339    freebsd-*)
16340      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16341      need_version=yes
16342      ;;
16343  esac
16344  shlibpath_var=LD_LIBRARY_PATH
16345  case $host_os in
16346  freebsd2*)
16347    shlibpath_overrides_runpath=yes
16348    ;;
16349  freebsd3.[01]* | freebsdelf3.[01]*)
16350    shlibpath_overrides_runpath=yes
16351    hardcode_into_libs=yes
16352    ;;
16353  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16354  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16355    shlibpath_overrides_runpath=no
16356    hardcode_into_libs=yes
16357    ;;
16358  freebsd*) # from 4.6 on
16359    shlibpath_overrides_runpath=yes
16360    hardcode_into_libs=yes
16361    ;;
16362  esac
16363  ;;
16364
16365gnu*)
16366  version_type=linux
16367  need_lib_prefix=no
16368  need_version=no
16369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16370  soname_spec='${libname}${release}${shared_ext}$major'
16371  shlibpath_var=LD_LIBRARY_PATH
16372  hardcode_into_libs=yes
16373  ;;
16374
16375hpux9* | hpux10* | hpux11*)
16376  # Give a soname corresponding to the major version so that dld.sl refuses to
16377  # link against other versions.
16378  version_type=sunos
16379  need_lib_prefix=no
16380  need_version=no
16381  case $host_cpu in
16382  ia64*)
16383    shrext_cmds='.so'
16384    hardcode_into_libs=yes
16385    dynamic_linker="$host_os dld.so"
16386    shlibpath_var=LD_LIBRARY_PATH
16387    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16388    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389    soname_spec='${libname}${release}${shared_ext}$major'
16390    if test "X$HPUX_IA64_MODE" = X32; then
16391      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16392    else
16393      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16394    fi
16395    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16396    ;;
16397   hppa*64*)
16398     shrext_cmds='.sl'
16399     hardcode_into_libs=yes
16400     dynamic_linker="$host_os dld.sl"
16401     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404     soname_spec='${libname}${release}${shared_ext}$major'
16405     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16406     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16407     ;;
16408   *)
16409    shrext_cmds='.sl'
16410    dynamic_linker="$host_os dld.sl"
16411    shlibpath_var=SHLIB_PATH
16412    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414    soname_spec='${libname}${release}${shared_ext}$major'
16415    ;;
16416  esac
16417  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16418  postinstall_cmds='chmod 555 $lib'
16419  ;;
16420
16421interix3*)
16422  version_type=linux
16423  need_lib_prefix=no
16424  need_version=no
16425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16426  soname_spec='${libname}${release}${shared_ext}$major'
16427  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16428  shlibpath_var=LD_LIBRARY_PATH
16429  shlibpath_overrides_runpath=no
16430  hardcode_into_libs=yes
16431  ;;
16432
16433irix5* | irix6* | nonstopux*)
16434  case $host_os in
16435    nonstopux*) version_type=nonstopux ;;
16436    *)
16437	if test "$lt_cv_prog_gnu_ld" = yes; then
16438		version_type=linux
16439	else
16440		version_type=irix
16441	fi ;;
16442  esac
16443  need_lib_prefix=no
16444  need_version=no
16445  soname_spec='${libname}${release}${shared_ext}$major'
16446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16447  case $host_os in
16448  irix5* | nonstopux*)
16449    libsuff= shlibsuff=
16450    ;;
16451  *)
16452    case $LD in # libtool.m4 will add one of these switches to LD
16453    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16454      libsuff= shlibsuff= libmagic=32-bit;;
16455    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16456      libsuff=32 shlibsuff=N32 libmagic=N32;;
16457    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16458      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16459    *) libsuff= shlibsuff= libmagic=never-match;;
16460    esac
16461    ;;
16462  esac
16463  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16464  shlibpath_overrides_runpath=no
16465  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16466  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16467  hardcode_into_libs=yes
16468  ;;
16469
16470# No shared lib support for Linux oldld, aout, or coff.
16471linux*oldld* | linux*aout* | linux*coff*)
16472  dynamic_linker=no
16473  ;;
16474
16475# This must be Linux ELF.
16476linux*)
16477  version_type=linux
16478  need_lib_prefix=no
16479  need_version=no
16480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481  soname_spec='${libname}${release}${shared_ext}$major'
16482  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16483  shlibpath_var=LD_LIBRARY_PATH
16484  shlibpath_overrides_runpath=no
16485  # This implies no fast_install, which is unacceptable.
16486  # Some rework will be needed to allow for fast_install
16487  # before this can be enabled.
16488  hardcode_into_libs=yes
16489
16490  # Append ld.so.conf contents to the search path
16491  if test -f /etc/ld.so.conf; then
16492    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' ' '`
16493    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16494  fi
16495
16496  # We used to test for /lib/ld.so.1 and disable shared libraries on
16497  # powerpc, because MkLinux only supported shared libraries with the
16498  # GNU dynamic linker.  Since this was broken with cross compilers,
16499  # most powerpc-linux boxes support dynamic linking these days and
16500  # people can always --disable-shared, the test was removed, and we
16501  # assume the GNU/Linux dynamic linker is in use.
16502  dynamic_linker='GNU/Linux ld.so'
16503  ;;
16504
16505knetbsd*-gnu)
16506  version_type=linux
16507  need_lib_prefix=no
16508  need_version=no
16509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16510  soname_spec='${libname}${release}${shared_ext}$major'
16511  shlibpath_var=LD_LIBRARY_PATH
16512  shlibpath_overrides_runpath=no
16513  hardcode_into_libs=yes
16514  dynamic_linker='GNU ld.so'
16515  ;;
16516
16517netbsd*)
16518  version_type=sunos
16519  need_lib_prefix=no
16520  need_version=no
16521  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16523    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16524    dynamic_linker='NetBSD (a.out) ld.so'
16525  else
16526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527    soname_spec='${libname}${release}${shared_ext}$major'
16528    dynamic_linker='NetBSD ld.elf_so'
16529  fi
16530  shlibpath_var=LD_LIBRARY_PATH
16531  shlibpath_overrides_runpath=yes
16532  hardcode_into_libs=yes
16533  ;;
16534
16535newsos6)
16536  version_type=linux
16537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538  shlibpath_var=LD_LIBRARY_PATH
16539  shlibpath_overrides_runpath=yes
16540  ;;
16541
16542nto-qnx*)
16543  version_type=linux
16544  need_lib_prefix=no
16545  need_version=no
16546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547  soname_spec='${libname}${release}${shared_ext}$major'
16548  shlibpath_var=LD_LIBRARY_PATH
16549  shlibpath_overrides_runpath=yes
16550  ;;
16551
16552openbsd*)
16553  version_type=sunos
16554  sys_lib_dlsearch_path_spec="/usr/lib"
16555  need_lib_prefix=no
16556  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16557  case $host_os in
16558    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16559    *)                         need_version=no  ;;
16560  esac
16561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16562  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16563  shlibpath_var=LD_LIBRARY_PATH
16564  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16565    case $host_os in
16566      openbsd2.[89] | openbsd2.[89].*)
16567	shlibpath_overrides_runpath=no
16568	;;
16569      *)
16570	shlibpath_overrides_runpath=yes
16571	;;
16572      esac
16573  else
16574    shlibpath_overrides_runpath=yes
16575  fi
16576  ;;
16577
16578os2*)
16579  libname_spec='$name'
16580  shrext_cmds=".dll"
16581  need_lib_prefix=no
16582  library_names_spec='$libname${shared_ext} $libname.a'
16583  dynamic_linker='OS/2 ld.exe'
16584  shlibpath_var=LIBPATH
16585  ;;
16586
16587osf3* | osf4* | osf5*)
16588  version_type=osf
16589  need_lib_prefix=no
16590  need_version=no
16591  soname_spec='${libname}${release}${shared_ext}$major'
16592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593  shlibpath_var=LD_LIBRARY_PATH
16594  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16595  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16596  ;;
16597
16598solaris*)
16599  version_type=linux
16600  need_lib_prefix=no
16601  need_version=no
16602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603  soname_spec='${libname}${release}${shared_ext}$major'
16604  shlibpath_var=LD_LIBRARY_PATH
16605  shlibpath_overrides_runpath=yes
16606  hardcode_into_libs=yes
16607  # ldd complains unless libraries are executable
16608  postinstall_cmds='chmod +x $lib'
16609  ;;
16610
16611sunos4*)
16612  version_type=sunos
16613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16614  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16615  shlibpath_var=LD_LIBRARY_PATH
16616  shlibpath_overrides_runpath=yes
16617  if test "$with_gnu_ld" = yes; then
16618    need_lib_prefix=no
16619  fi
16620  need_version=yes
16621  ;;
16622
16623sysv4 | sysv4.3*)
16624  version_type=linux
16625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626  soname_spec='${libname}${release}${shared_ext}$major'
16627  shlibpath_var=LD_LIBRARY_PATH
16628  case $host_vendor in
16629    sni)
16630      shlibpath_overrides_runpath=no
16631      need_lib_prefix=no
16632      export_dynamic_flag_spec='${wl}-Blargedynsym'
16633      runpath_var=LD_RUN_PATH
16634      ;;
16635    siemens)
16636      need_lib_prefix=no
16637      ;;
16638    motorola)
16639      need_lib_prefix=no
16640      need_version=no
16641      shlibpath_overrides_runpath=no
16642      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16643      ;;
16644  esac
16645  ;;
16646
16647sysv4*MP*)
16648  if test -d /usr/nec ;then
16649    version_type=linux
16650    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16651    soname_spec='$libname${shared_ext}.$major'
16652    shlibpath_var=LD_LIBRARY_PATH
16653  fi
16654  ;;
16655
16656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16657  version_type=freebsd-elf
16658  need_lib_prefix=no
16659  need_version=no
16660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16661  soname_spec='${libname}${release}${shared_ext}$major'
16662  shlibpath_var=LD_LIBRARY_PATH
16663  hardcode_into_libs=yes
16664  if test "$with_gnu_ld" = yes; then
16665    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16666    shlibpath_overrides_runpath=no
16667  else
16668    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16669    shlibpath_overrides_runpath=yes
16670    case $host_os in
16671      sco3.2v5*)
16672        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16673	;;
16674    esac
16675  fi
16676  sys_lib_dlsearch_path_spec='/usr/lib'
16677  ;;
16678
16679uts4*)
16680  version_type=linux
16681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682  soname_spec='${libname}${release}${shared_ext}$major'
16683  shlibpath_var=LD_LIBRARY_PATH
16684  ;;
16685
16686*)
16687  dynamic_linker=no
16688  ;;
16689esac
16690echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16691echo "${ECHO_T}$dynamic_linker" >&6
16692test "$dynamic_linker" = no && can_build_shared=no
16693
16694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16695if test "$GCC" = yes; then
16696  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16697fi
16698
16699echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16700echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16701hardcode_action_F77=
16702if test -n "$hardcode_libdir_flag_spec_F77" || \
16703   test -n "$runpath_var_F77" || \
16704   test "X$hardcode_automatic_F77" = "Xyes" ; then
16705
16706  # We can hardcode non-existant directories.
16707  if test "$hardcode_direct_F77" != no &&
16708     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16709     # have to relink, otherwise we might link with an installed library
16710     # when we should be linking with a yet-to-be-installed one
16711     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16712     test "$hardcode_minus_L_F77" != no; then
16713    # Linking always hardcodes the temporary library directory.
16714    hardcode_action_F77=relink
16715  else
16716    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16717    hardcode_action_F77=immediate
16718  fi
16719else
16720  # We cannot hardcode anything, or else we can only hardcode existing
16721  # directories.
16722  hardcode_action_F77=unsupported
16723fi
16724echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16725echo "${ECHO_T}$hardcode_action_F77" >&6
16726
16727if test "$hardcode_action_F77" = relink; then
16728  # Fast installation is not supported
16729  enable_fast_install=no
16730elif test "$shlibpath_overrides_runpath" = yes ||
16731     test "$enable_shared" = no; then
16732  # Fast installation is not necessary
16733  enable_fast_install=needless
16734fi
16735
16736
16737# The else clause should only fire when bootstrapping the
16738# libtool distribution, otherwise you forgot to ship ltmain.sh
16739# with your package, and you will get complaints that there are
16740# no rules to generate ltmain.sh.
16741if test -f "$ltmain"; then
16742  # See if we are running on zsh, and set the options which allow our commands through
16743  # without removal of \ escapes.
16744  if test -n "${ZSH_VERSION+set}" ; then
16745    setopt NO_GLOB_SUBST
16746  fi
16747  # Now quote all the things that may contain metacharacters while being
16748  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16749  # variables and quote the copies for generation of the libtool script.
16750  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16751    SED SHELL STRIP \
16752    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16753    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16754    deplibs_check_method reload_flag reload_cmds need_locks \
16755    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16756    lt_cv_sys_global_symbol_to_c_name_address \
16757    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16758    old_postinstall_cmds old_postuninstall_cmds \
16759    compiler_F77 \
16760    CC_F77 \
16761    LD_F77 \
16762    lt_prog_compiler_wl_F77 \
16763    lt_prog_compiler_pic_F77 \
16764    lt_prog_compiler_static_F77 \
16765    lt_prog_compiler_no_builtin_flag_F77 \
16766    export_dynamic_flag_spec_F77 \
16767    thread_safe_flag_spec_F77 \
16768    whole_archive_flag_spec_F77 \
16769    enable_shared_with_static_runtimes_F77 \
16770    old_archive_cmds_F77 \
16771    old_archive_from_new_cmds_F77 \
16772    predep_objects_F77 \
16773    postdep_objects_F77 \
16774    predeps_F77 \
16775    postdeps_F77 \
16776    compiler_lib_search_path_F77 \
16777    archive_cmds_F77 \
16778    archive_expsym_cmds_F77 \
16779    postinstall_cmds_F77 \
16780    postuninstall_cmds_F77 \
16781    old_archive_from_expsyms_cmds_F77 \
16782    allow_undefined_flag_F77 \
16783    no_undefined_flag_F77 \
16784    export_symbols_cmds_F77 \
16785    hardcode_libdir_flag_spec_F77 \
16786    hardcode_libdir_flag_spec_ld_F77 \
16787    hardcode_libdir_separator_F77 \
16788    hardcode_automatic_F77 \
16789    module_cmds_F77 \
16790    module_expsym_cmds_F77 \
16791    lt_cv_prog_compiler_c_o_F77 \
16792    exclude_expsyms_F77 \
16793    include_expsyms_F77; do
16794
16795    case $var in
16796    old_archive_cmds_F77 | \
16797    old_archive_from_new_cmds_F77 | \
16798    archive_cmds_F77 | \
16799    archive_expsym_cmds_F77 | \
16800    module_cmds_F77 | \
16801    module_expsym_cmds_F77 | \
16802    old_archive_from_expsyms_cmds_F77 | \
16803    export_symbols_cmds_F77 | \
16804    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16805    postinstall_cmds | postuninstall_cmds | \
16806    old_postinstall_cmds | old_postuninstall_cmds | \
16807    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16808      # Double-quote double-evaled strings.
16809      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16810      ;;
16811    *)
16812      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16813      ;;
16814    esac
16815  done
16816
16817  case $lt_echo in
16818  *'\$0 --fallback-echo"')
16819    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16820    ;;
16821  esac
16822
16823cfgfile="$ofile"
16824
16825  cat <<__EOF__ >> "$cfgfile"
16826# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16827
16828# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16829
16830# Shell to use when invoking shell scripts.
16831SHELL=$lt_SHELL
16832
16833# Whether or not to build shared libraries.
16834build_libtool_libs=$enable_shared
16835
16836# Whether or not to build static libraries.
16837build_old_libs=$enable_static
16838
16839# Whether or not to add -lc for building shared libraries.
16840build_libtool_need_lc=$archive_cmds_need_lc_F77
16841
16842# Whether or not to disallow shared libs when runtime libs are static
16843allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16844
16845# Whether or not to optimize for fast installation.
16846fast_install=$enable_fast_install
16847
16848# The host system.
16849host_alias=$host_alias
16850host=$host
16851host_os=$host_os
16852
16853# The build system.
16854build_alias=$build_alias
16855build=$build
16856build_os=$build_os
16857
16858# An echo program that does not interpret backslashes.
16859echo=$lt_echo
16860
16861# The archiver.
16862AR=$lt_AR
16863AR_FLAGS=$lt_AR_FLAGS
16864
16865# A C compiler.
16866LTCC=$lt_LTCC
16867
16868# LTCC compiler flags.
16869LTCFLAGS=$lt_LTCFLAGS
16870
16871# A language-specific compiler.
16872CC=$lt_compiler_F77
16873
16874# Is the compiler the GNU C compiler?
16875with_gcc=$GCC_F77
16876
16877# An ERE matcher.
16878EGREP=$lt_EGREP
16879
16880# The linker used to build libraries.
16881LD=$lt_LD_F77
16882
16883# Whether we need hard or soft links.
16884LN_S=$lt_LN_S
16885
16886# A BSD-compatible nm program.
16887NM=$lt_NM
16888
16889# A symbol stripping program
16890STRIP=$lt_STRIP
16891
16892# Used to examine libraries when file_magic_cmd begins "file"
16893MAGIC_CMD=$MAGIC_CMD
16894
16895# Used on cygwin: DLL creation program.
16896DLLTOOL="$DLLTOOL"
16897
16898# Used on cygwin: object dumper.
16899OBJDUMP="$OBJDUMP"
16900
16901# Used on cygwin: assembler.
16902AS="$AS"
16903
16904# The name of the directory that contains temporary libtool files.
16905objdir=$objdir
16906
16907# How to create reloadable object files.
16908reload_flag=$lt_reload_flag
16909reload_cmds=$lt_reload_cmds
16910
16911# How to pass a linker flag through the compiler.
16912wl=$lt_lt_prog_compiler_wl_F77
16913
16914# Object file suffix (normally "o").
16915objext="$ac_objext"
16916
16917# Old archive suffix (normally "a").
16918libext="$libext"
16919
16920# Shared library suffix (normally ".so").
16921shrext_cmds='$shrext_cmds'
16922
16923# Executable file suffix (normally "").
16924exeext="$exeext"
16925
16926# Additional compiler flags for building library objects.
16927pic_flag=$lt_lt_prog_compiler_pic_F77
16928pic_mode=$pic_mode
16929
16930# What is the maximum length of a command?
16931max_cmd_len=$lt_cv_sys_max_cmd_len
16932
16933# Does compiler simultaneously support -c and -o options?
16934compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16935
16936# Must we lock files when doing compilation?
16937need_locks=$lt_need_locks
16938
16939# Do we need the lib prefix for modules?
16940need_lib_prefix=$need_lib_prefix
16941
16942# Do we need a version for libraries?
16943need_version=$need_version
16944
16945# Whether dlopen is supported.
16946dlopen_support=$enable_dlopen
16947
16948# Whether dlopen of programs is supported.
16949dlopen_self=$enable_dlopen_self
16950
16951# Whether dlopen of statically linked programs is supported.
16952dlopen_self_static=$enable_dlopen_self_static
16953
16954# Compiler flag to prevent dynamic linking.
16955link_static_flag=$lt_lt_prog_compiler_static_F77
16956
16957# Compiler flag to turn off builtin functions.
16958no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16959
16960# Compiler flag to allow reflexive dlopens.
16961export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16962
16963# Compiler flag to generate shared objects directly from archives.
16964whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16965
16966# Compiler flag to generate thread-safe objects.
16967thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16968
16969# Library versioning type.
16970version_type=$version_type
16971
16972# Format of library name prefix.
16973libname_spec=$lt_libname_spec
16974
16975# List of archive names.  First name is the real one, the rest are links.
16976# The last name is the one that the linker finds with -lNAME.
16977library_names_spec=$lt_library_names_spec
16978
16979# The coded name of the library, if different from the real name.
16980soname_spec=$lt_soname_spec
16981
16982# Commands used to build and install an old-style archive.
16983RANLIB=$lt_RANLIB
16984old_archive_cmds=$lt_old_archive_cmds_F77
16985old_postinstall_cmds=$lt_old_postinstall_cmds
16986old_postuninstall_cmds=$lt_old_postuninstall_cmds
16987
16988# Create an old-style archive from a shared archive.
16989old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16990
16991# Create a temporary old-style archive to link instead of a shared archive.
16992old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16993
16994# Commands used to build and install a shared archive.
16995archive_cmds=$lt_archive_cmds_F77
16996archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16997postinstall_cmds=$lt_postinstall_cmds
16998postuninstall_cmds=$lt_postuninstall_cmds
16999
17000# Commands used to build a loadable module (assumed same as above if empty)
17001module_cmds=$lt_module_cmds_F77
17002module_expsym_cmds=$lt_module_expsym_cmds_F77
17003
17004# Commands to strip libraries.
17005old_striplib=$lt_old_striplib
17006striplib=$lt_striplib
17007
17008# Dependencies to place before the objects being linked to create a
17009# shared library.
17010predep_objects=$lt_predep_objects_F77
17011
17012# Dependencies to place after the objects being linked to create a
17013# shared library.
17014postdep_objects=$lt_postdep_objects_F77
17015
17016# Dependencies to place before the objects being linked to create a
17017# shared library.
17018predeps=$lt_predeps_F77
17019
17020# Dependencies to place after the objects being linked to create a
17021# shared library.
17022postdeps=$lt_postdeps_F77
17023
17024# The library search path used internally by the compiler when linking
17025# a shared library.
17026compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17027
17028# Method to check whether dependent libraries are shared objects.
17029deplibs_check_method=$lt_deplibs_check_method
17030
17031# Command to use when deplibs_check_method == file_magic.
17032file_magic_cmd=$lt_file_magic_cmd
17033
17034# Flag that allows shared libraries with undefined symbols to be built.
17035allow_undefined_flag=$lt_allow_undefined_flag_F77
17036
17037# Flag that forces no undefined symbols.
17038no_undefined_flag=$lt_no_undefined_flag_F77
17039
17040# Commands used to finish a libtool library installation in a directory.
17041finish_cmds=$lt_finish_cmds
17042
17043# Same as above, but a single script fragment to be evaled but not shown.
17044finish_eval=$lt_finish_eval
17045
17046# Take the output of nm and produce a listing of raw symbols and C names.
17047global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17048
17049# Transform the output of nm in a proper C declaration
17050global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17051
17052# Transform the output of nm in a C name address pair
17053global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17054
17055# This is the shared library runtime path variable.
17056runpath_var=$runpath_var
17057
17058# This is the shared library path variable.
17059shlibpath_var=$shlibpath_var
17060
17061# Is shlibpath searched before the hard-coded library search path?
17062shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17063
17064# How to hardcode a shared library path into an executable.
17065hardcode_action=$hardcode_action_F77
17066
17067# Whether we should hardcode library paths into libraries.
17068hardcode_into_libs=$hardcode_into_libs
17069
17070# Flag to hardcode \$libdir into a binary during linking.
17071# This must work even if \$libdir does not exist.
17072hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17073
17074# If ld is used when linking, flag to hardcode \$libdir into
17075# a binary during linking. This must work even if \$libdir does
17076# not exist.
17077hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17078
17079# Whether we need a single -rpath flag with a separated argument.
17080hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17081
17082# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17083# resulting binary.
17084hardcode_direct=$hardcode_direct_F77
17085
17086# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17087# resulting binary.
17088hardcode_minus_L=$hardcode_minus_L_F77
17089
17090# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17091# the resulting binary.
17092hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17093
17094# Set to yes if building a shared library automatically hardcodes DIR into the library
17095# and all subsequent libraries and executables linked against it.
17096hardcode_automatic=$hardcode_automatic_F77
17097
17098# Variables whose values should be saved in libtool wrapper scripts and
17099# restored at relink time.
17100variables_saved_for_relink="$variables_saved_for_relink"
17101
17102# Whether libtool must link a program against all its dependency libraries.
17103link_all_deplibs=$link_all_deplibs_F77
17104
17105# Compile-time system search path for libraries
17106sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17107
17108# Run-time system search path for libraries
17109sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17110
17111# Fix the shell variable \$srcfile for the compiler.
17112fix_srcfile_path="$fix_srcfile_path_F77"
17113
17114# Set to yes if exported symbols are required.
17115always_export_symbols=$always_export_symbols_F77
17116
17117# The commands to list exported symbols.
17118export_symbols_cmds=$lt_export_symbols_cmds_F77
17119
17120# The commands to extract the exported symbol list from a shared archive.
17121extract_expsyms_cmds=$lt_extract_expsyms_cmds
17122
17123# Symbols that should not be listed in the preloaded symbols.
17124exclude_expsyms=$lt_exclude_expsyms_F77
17125
17126# Symbols that must always be exported.
17127include_expsyms=$lt_include_expsyms_F77
17128
17129# ### END LIBTOOL TAG CONFIG: $tagname
17130
17131__EOF__
17132
17133
17134else
17135  # If there is no Makefile yet, we rely on a make rule to execute
17136  # `config.status --recheck' to rerun these tests and create the
17137  # libtool script then.
17138  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17139  if test -f "$ltmain_in"; then
17140    test -f Makefile && make "$ltmain"
17141  fi
17142fi
17143
17144
17145ac_ext=cc
17146ac_cpp='$CXXCPP $CPPFLAGS'
17147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17150
17151CC="$lt_save_CC"
17152
17153	else
17154	  tagname=""
17155	fi
17156	;;
17157
17158      GCJ)
17159	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17160
17161
17162
17163# Source file extension for Java test sources.
17164ac_ext=java
17165
17166# Object file extension for compiled Java test sources.
17167objext=o
17168objext_GCJ=$objext
17169
17170# Code to be used in simple compile tests
17171lt_simple_compile_test_code="class foo {}\n"
17172
17173# Code to be used in simple link tests
17174lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17175
17176# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17177
17178# If no C compiler was specified, use CC.
17179LTCC=${LTCC-"$CC"}
17180
17181# If no C compiler flags were specified, use CFLAGS.
17182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17183
17184# Allow CC to be a program name with arguments.
17185compiler=$CC
17186
17187
17188# save warnings/boilerplate of simple test code
17189ac_outfile=conftest.$ac_objext
17190printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17191eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17192_lt_compiler_boilerplate=`cat conftest.err`
17193$rm conftest*
17194
17195ac_outfile=conftest.$ac_objext
17196printf "$lt_simple_link_test_code" >conftest.$ac_ext
17197eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17198_lt_linker_boilerplate=`cat conftest.err`
17199$rm conftest*
17200
17201
17202# Allow CC to be a program name with arguments.
17203lt_save_CC="$CC"
17204CC=${GCJ-"gcj"}
17205compiler=$CC
17206compiler_GCJ=$CC
17207for cc_temp in $compiler""; do
17208  case $cc_temp in
17209    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17210    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17211    \-*) ;;
17212    *) break;;
17213  esac
17214done
17215cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17216
17217
17218# GCJ did not exist at the time GCC didn't implicitly link libc in.
17219archive_cmds_need_lc_GCJ=no
17220
17221old_archive_cmds_GCJ=$old_archive_cmds
17222
17223## CAVEAT EMPTOR:
17224## There is no encapsulation within the following macros, do not change
17225## the running order or otherwise move them around unless you know exactly
17226## what you are doing...
17227
17228lt_prog_compiler_no_builtin_flag_GCJ=
17229
17230if test "$GCC" = yes; then
17231  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17232
17233
17234echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17235echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17236if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17237  echo $ECHO_N "(cached) $ECHO_C" >&6
17238else
17239  lt_cv_prog_compiler_rtti_exceptions=no
17240  ac_outfile=conftest.$ac_objext
17241   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17242   lt_compiler_flag="-fno-rtti -fno-exceptions"
17243   # Insert the option either (1) after the last *FLAGS variable, or
17244   # (2) before a word containing "conftest.", or (3) at the end.
17245   # Note that $ac_compile itself does not contain backslashes and begins
17246   # with a dollar sign (not a hyphen), so the echo should work correctly.
17247   # The option is referenced via a variable to avoid confusing sed.
17248   lt_compile=`echo "$ac_compile" | $SED \
17249   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17251   -e 's:$: $lt_compiler_flag:'`
17252   (eval echo "\"\$as_me:17252: $lt_compile\"" >&5)
17253   (eval "$lt_compile" 2>conftest.err)
17254   ac_status=$?
17255   cat conftest.err >&5
17256   echo "$as_me:17256: \$? = $ac_status" >&5
17257   if (exit $ac_status) && test -s "$ac_outfile"; then
17258     # The compiler can only warn and ignore the option if not recognized
17259     # So say no if there are warnings other than the usual output.
17260     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17261     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17262     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17263       lt_cv_prog_compiler_rtti_exceptions=yes
17264     fi
17265   fi
17266   $rm conftest*
17267
17268fi
17269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17270echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17271
17272if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17273    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17274else
17275    :
17276fi
17277
17278fi
17279
17280lt_prog_compiler_wl_GCJ=
17281lt_prog_compiler_pic_GCJ=
17282lt_prog_compiler_static_GCJ=
17283
17284echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17285echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17286
17287  if test "$GCC" = yes; then
17288    lt_prog_compiler_wl_GCJ='-Wl,'
17289    lt_prog_compiler_static_GCJ='-static'
17290
17291    case $host_os in
17292      aix*)
17293      # All AIX code is PIC.
17294      if test "$host_cpu" = ia64; then
17295	# AIX 5 now supports IA64 processor
17296	lt_prog_compiler_static_GCJ='-Bstatic'
17297      fi
17298      ;;
17299
17300    amigaos*)
17301      # FIXME: we need at least 68020 code to build shared libraries, but
17302      # adding the `-m68020' flag to GCC prevents building anything better,
17303      # like `-m68040'.
17304      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17305      ;;
17306
17307    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17308      # PIC is the default for these OSes.
17309      ;;
17310
17311    mingw* | pw32* | os2*)
17312      # This hack is so that the source file can tell whether it is being
17313      # built for inclusion in a dll (and should export symbols for example).
17314      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17315      ;;
17316
17317    darwin* | rhapsody*)
17318      # PIC is the default on this platform
17319      # Common symbols not allowed in MH_DYLIB files
17320      lt_prog_compiler_pic_GCJ='-fno-common'
17321      ;;
17322
17323    interix3*)
17324      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17325      # Instead, we relocate shared libraries at runtime.
17326      ;;
17327
17328    msdosdjgpp*)
17329      # Just because we use GCC doesn't mean we suddenly get shared libraries
17330      # on systems that don't support them.
17331      lt_prog_compiler_can_build_shared_GCJ=no
17332      enable_shared=no
17333      ;;
17334
17335    sysv4*MP*)
17336      if test -d /usr/nec; then
17337	lt_prog_compiler_pic_GCJ=-Kconform_pic
17338      fi
17339      ;;
17340
17341    hpux*)
17342      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17343      # not for PA HP-UX.
17344      case $host_cpu in
17345      hppa*64*|ia64*)
17346	# +Z the default
17347	;;
17348      *)
17349	lt_prog_compiler_pic_GCJ='-fPIC'
17350	;;
17351      esac
17352      ;;
17353
17354    *)
17355      lt_prog_compiler_pic_GCJ='-fPIC'
17356      ;;
17357    esac
17358  else
17359    # PORTME Check for flag to pass linker flags through the system compiler.
17360    case $host_os in
17361    aix*)
17362      lt_prog_compiler_wl_GCJ='-Wl,'
17363      if test "$host_cpu" = ia64; then
17364	# AIX 5 now supports IA64 processor
17365	lt_prog_compiler_static_GCJ='-Bstatic'
17366      else
17367	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17368      fi
17369      ;;
17370      darwin*)
17371        # PIC is the default on this platform
17372        # Common symbols not allowed in MH_DYLIB files
17373       case $cc_basename in
17374         xlc*)
17375         lt_prog_compiler_pic_GCJ='-qnocommon'
17376         lt_prog_compiler_wl_GCJ='-Wl,'
17377         ;;
17378       esac
17379       ;;
17380
17381    mingw* | pw32* | os2*)
17382      # This hack is so that the source file can tell whether it is being
17383      # built for inclusion in a dll (and should export symbols for example).
17384      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17385      ;;
17386
17387    hpux9* | hpux10* | hpux11*)
17388      lt_prog_compiler_wl_GCJ='-Wl,'
17389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17390      # not for PA HP-UX.
17391      case $host_cpu in
17392      hppa*64*|ia64*)
17393	# +Z the default
17394	;;
17395      *)
17396	lt_prog_compiler_pic_GCJ='+Z'
17397	;;
17398      esac
17399      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17400      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17401      ;;
17402
17403    irix5* | irix6* | nonstopux*)
17404      lt_prog_compiler_wl_GCJ='-Wl,'
17405      # PIC (with -KPIC) is the default.
17406      lt_prog_compiler_static_GCJ='-non_shared'
17407      ;;
17408
17409    newsos6)
17410      lt_prog_compiler_pic_GCJ='-KPIC'
17411      lt_prog_compiler_static_GCJ='-Bstatic'
17412      ;;
17413
17414    linux*)
17415      case $cc_basename in
17416      icc* | ecc*)
17417	lt_prog_compiler_wl_GCJ='-Wl,'
17418	lt_prog_compiler_pic_GCJ='-KPIC'
17419	lt_prog_compiler_static_GCJ='-static'
17420        ;;
17421      pgcc* | pgf77* | pgf90* | pgf95*)
17422        # Portland Group compilers (*not* the Pentium gcc compiler,
17423	# which looks to be a dead project)
17424	lt_prog_compiler_wl_GCJ='-Wl,'
17425	lt_prog_compiler_pic_GCJ='-fpic'
17426	lt_prog_compiler_static_GCJ='-Bstatic'
17427        ;;
17428      ccc*)
17429        lt_prog_compiler_wl_GCJ='-Wl,'
17430        # All Alpha code is PIC.
17431        lt_prog_compiler_static_GCJ='-non_shared'
17432        ;;
17433      esac
17434      ;;
17435
17436    osf3* | osf4* | osf5*)
17437      lt_prog_compiler_wl_GCJ='-Wl,'
17438      # All OSF/1 code is PIC.
17439      lt_prog_compiler_static_GCJ='-non_shared'
17440      ;;
17441
17442    solaris*)
17443      lt_prog_compiler_pic_GCJ='-KPIC'
17444      lt_prog_compiler_static_GCJ='-Bstatic'
17445      case $cc_basename in
17446      f77* | f90* | f95*)
17447	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17448      *)
17449	lt_prog_compiler_wl_GCJ='-Wl,';;
17450      esac
17451      ;;
17452
17453    sunos4*)
17454      lt_prog_compiler_wl_GCJ='-Qoption ld '
17455      lt_prog_compiler_pic_GCJ='-PIC'
17456      lt_prog_compiler_static_GCJ='-Bstatic'
17457      ;;
17458
17459    sysv4 | sysv4.2uw2* | sysv4.3*)
17460      lt_prog_compiler_wl_GCJ='-Wl,'
17461      lt_prog_compiler_pic_GCJ='-KPIC'
17462      lt_prog_compiler_static_GCJ='-Bstatic'
17463      ;;
17464
17465    sysv4*MP*)
17466      if test -d /usr/nec ;then
17467	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17468	lt_prog_compiler_static_GCJ='-Bstatic'
17469      fi
17470      ;;
17471
17472    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17473      lt_prog_compiler_wl_GCJ='-Wl,'
17474      lt_prog_compiler_pic_GCJ='-KPIC'
17475      lt_prog_compiler_static_GCJ='-Bstatic'
17476      ;;
17477
17478    unicos*)
17479      lt_prog_compiler_wl_GCJ='-Wl,'
17480      lt_prog_compiler_can_build_shared_GCJ=no
17481      ;;
17482
17483    uts4*)
17484      lt_prog_compiler_pic_GCJ='-pic'
17485      lt_prog_compiler_static_GCJ='-Bstatic'
17486      ;;
17487
17488    *)
17489      lt_prog_compiler_can_build_shared_GCJ=no
17490      ;;
17491    esac
17492  fi
17493
17494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17495echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17496
17497#
17498# Check to make sure the PIC flag actually works.
17499#
17500if test -n "$lt_prog_compiler_pic_GCJ"; then
17501
17502echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17503echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17504if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17505  echo $ECHO_N "(cached) $ECHO_C" >&6
17506else
17507  lt_prog_compiler_pic_works_GCJ=no
17508  ac_outfile=conftest.$ac_objext
17509   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17510   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17511   # Insert the option either (1) after the last *FLAGS variable, or
17512   # (2) before a word containing "conftest.", or (3) at the end.
17513   # Note that $ac_compile itself does not contain backslashes and begins
17514   # with a dollar sign (not a hyphen), so the echo should work correctly.
17515   # The option is referenced via a variable to avoid confusing sed.
17516   lt_compile=`echo "$ac_compile" | $SED \
17517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17519   -e 's:$: $lt_compiler_flag:'`
17520   (eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
17521   (eval "$lt_compile" 2>conftest.err)
17522   ac_status=$?
17523   cat conftest.err >&5
17524   echo "$as_me:17524: \$? = $ac_status" >&5
17525   if (exit $ac_status) && test -s "$ac_outfile"; then
17526     # The compiler can only warn and ignore the option if not recognized
17527     # So say no if there are warnings other than the usual output.
17528     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17529     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17530     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17531       lt_prog_compiler_pic_works_GCJ=yes
17532     fi
17533   fi
17534   $rm conftest*
17535
17536fi
17537echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17538echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17539
17540if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17541    case $lt_prog_compiler_pic_GCJ in
17542     "" | " "*) ;;
17543     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17544     esac
17545else
17546    lt_prog_compiler_pic_GCJ=
17547     lt_prog_compiler_can_build_shared_GCJ=no
17548fi
17549
17550fi
17551case $host_os in
17552  # For platforms which do not support PIC, -DPIC is meaningless:
17553  *djgpp*)
17554    lt_prog_compiler_pic_GCJ=
17555    ;;
17556  *)
17557    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17558    ;;
17559esac
17560
17561#
17562# Check to make sure the static flag actually works.
17563#
17564wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17565echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17566echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17567if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17568  echo $ECHO_N "(cached) $ECHO_C" >&6
17569else
17570  lt_prog_compiler_static_works_GCJ=no
17571   save_LDFLAGS="$LDFLAGS"
17572   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17573   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17574   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17575     # The linker can only warn and ignore the option if not recognized
17576     # So say no if there are warnings
17577     if test -s conftest.err; then
17578       # Append any errors to the config.log.
17579       cat conftest.err 1>&5
17580       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17581       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17582       if diff conftest.exp conftest.er2 >/dev/null; then
17583         lt_prog_compiler_static_works_GCJ=yes
17584       fi
17585     else
17586       lt_prog_compiler_static_works_GCJ=yes
17587     fi
17588   fi
17589   $rm conftest*
17590   LDFLAGS="$save_LDFLAGS"
17591
17592fi
17593echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17594echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17595
17596if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17597    :
17598else
17599    lt_prog_compiler_static_GCJ=
17600fi
17601
17602
17603echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17604echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17605if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17606  echo $ECHO_N "(cached) $ECHO_C" >&6
17607else
17608  lt_cv_prog_compiler_c_o_GCJ=no
17609   $rm -r conftest 2>/dev/null
17610   mkdir conftest
17611   cd conftest
17612   mkdir out
17613   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17614
17615   lt_compiler_flag="-o out/conftest2.$ac_objext"
17616   # Insert the option either (1) after the last *FLAGS variable, or
17617   # (2) before a word containing "conftest.", or (3) at the end.
17618   # Note that $ac_compile itself does not contain backslashes and begins
17619   # with a dollar sign (not a hyphen), so the echo should work correctly.
17620   lt_compile=`echo "$ac_compile" | $SED \
17621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17623   -e 's:$: $lt_compiler_flag:'`
17624   (eval echo "\"\$as_me:17624: $lt_compile\"" >&5)
17625   (eval "$lt_compile" 2>out/conftest.err)
17626   ac_status=$?
17627   cat out/conftest.err >&5
17628   echo "$as_me:17628: \$? = $ac_status" >&5
17629   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17630   then
17631     # The compiler can only warn and ignore the option if not recognized
17632     # So say no if there are warnings
17633     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17634     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17635     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17636       lt_cv_prog_compiler_c_o_GCJ=yes
17637     fi
17638   fi
17639   chmod u+w . 2>&5
17640   $rm conftest*
17641   # SGI C++ compiler will create directory out/ii_files/ for
17642   # template instantiation
17643   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17644   $rm out/* && rmdir out
17645   cd ..
17646   rmdir conftest
17647   $rm conftest*
17648
17649fi
17650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17651echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17652
17653
17654hard_links="nottested"
17655if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17656  # do not overwrite the value of need_locks provided by the user
17657  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17658echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17659  hard_links=yes
17660  $rm conftest*
17661  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17662  touch conftest.a
17663  ln conftest.a conftest.b 2>&5 || hard_links=no
17664  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17665  echo "$as_me:$LINENO: result: $hard_links" >&5
17666echo "${ECHO_T}$hard_links" >&6
17667  if test "$hard_links" = no; then
17668    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17669echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17670    need_locks=warn
17671  fi
17672else
17673  need_locks=no
17674fi
17675
17676echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17677echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17678
17679  runpath_var=
17680  allow_undefined_flag_GCJ=
17681  enable_shared_with_static_runtimes_GCJ=no
17682  archive_cmds_GCJ=
17683  archive_expsym_cmds_GCJ=
17684  old_archive_From_new_cmds_GCJ=
17685  old_archive_from_expsyms_cmds_GCJ=
17686  export_dynamic_flag_spec_GCJ=
17687  whole_archive_flag_spec_GCJ=
17688  thread_safe_flag_spec_GCJ=
17689  hardcode_libdir_flag_spec_GCJ=
17690  hardcode_libdir_flag_spec_ld_GCJ=
17691  hardcode_libdir_separator_GCJ=
17692  hardcode_direct_GCJ=no
17693  hardcode_minus_L_GCJ=no
17694  hardcode_shlibpath_var_GCJ=unsupported
17695  link_all_deplibs_GCJ=unknown
17696  hardcode_automatic_GCJ=no
17697  module_cmds_GCJ=
17698  module_expsym_cmds_GCJ=
17699  always_export_symbols_GCJ=no
17700  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17701  # include_expsyms should be a list of space-separated symbols to be *always*
17702  # included in the symbol list
17703  include_expsyms_GCJ=
17704  # exclude_expsyms can be an extended regexp of symbols to exclude
17705  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17706  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17707  # as well as any symbol that contains `d'.
17708  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17709  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17710  # platforms (ab)use it in PIC code, but their linkers get confused if
17711  # the symbol is explicitly referenced.  Since portable code cannot
17712  # rely on this symbol name, it's probably fine to never include it in
17713  # preloaded symbol tables.
17714  extract_expsyms_cmds=
17715  # Just being paranoid about ensuring that cc_basename is set.
17716  for cc_temp in $compiler""; do
17717  case $cc_temp in
17718    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17719    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17720    \-*) ;;
17721    *) break;;
17722  esac
17723done
17724cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17725
17726  case $host_os in
17727  cygwin* | mingw* | pw32*)
17728    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17729    # When not using gcc, we currently assume that we are using
17730    # Microsoft Visual C++.
17731    if test "$GCC" != yes; then
17732      with_gnu_ld=no
17733    fi
17734    ;;
17735  interix*)
17736    # we just hope/assume this is gcc and not c89 (= MSVC++)
17737    with_gnu_ld=yes
17738    ;;
17739  openbsd*)
17740    with_gnu_ld=no
17741    ;;
17742  esac
17743
17744  ld_shlibs_GCJ=yes
17745  if test "$with_gnu_ld" = yes; then
17746    # If archive_cmds runs LD, not CC, wlarc should be empty
17747    wlarc='${wl}'
17748
17749    # Set some defaults for GNU ld with shared library support. These
17750    # are reset later if shared libraries are not supported. Putting them
17751    # here allows them to be overridden if necessary.
17752    runpath_var=LD_RUN_PATH
17753    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17754    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17755    # ancient GNU ld didn't support --whole-archive et. al.
17756    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17757	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17758      else
17759  	whole_archive_flag_spec_GCJ=
17760    fi
17761    supports_anon_versioning=no
17762    case `$LD -v 2>/dev/null` in
17763      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17764      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17765      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17766      *\ 2.11.*) ;; # other 2.11 versions
17767      *) supports_anon_versioning=yes ;;
17768    esac
17769
17770    # See if GNU ld supports shared libraries.
17771    case $host_os in
17772    aix3* | aix4* | aix5*)
17773      # On AIX/PPC, the GNU linker is very broken
17774      if test "$host_cpu" != ia64; then
17775	ld_shlibs_GCJ=no
17776	cat <<EOF 1>&2
17777
17778*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17779*** to be unable to reliably create shared libraries on AIX.
17780*** Therefore, libtool is disabling shared libraries support.  If you
17781*** really care for shared libraries, you may want to modify your PATH
17782*** so that a non-GNU linker is found, and then restart.
17783
17784EOF
17785      fi
17786      ;;
17787
17788    amigaos*)
17789      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)'
17790      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17791      hardcode_minus_L_GCJ=yes
17792
17793      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17794      # that the semantics of dynamic libraries on AmigaOS, at least up
17795      # to version 4, is to share data among multiple programs linked
17796      # with the same dynamic library.  Since this doesn't match the
17797      # behavior of shared libraries on other platforms, we can't use
17798      # them.
17799      ld_shlibs_GCJ=no
17800      ;;
17801
17802    beos*)
17803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17804	allow_undefined_flag_GCJ=unsupported
17805	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17806	# support --undefined.  This deserves some investigation.  FIXME
17807	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17808      else
17809	ld_shlibs_GCJ=no
17810      fi
17811      ;;
17812
17813    cygwin* | mingw* | pw32*)
17814      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17815      # as there is no search path for DLLs.
17816      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17817      allow_undefined_flag_GCJ=unsupported
17818      always_export_symbols_GCJ=no
17819      enable_shared_with_static_runtimes_GCJ=yes
17820      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17821
17822      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17823        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17824	# If the export-symbols file already is a .def file (1st line
17825	# is EXPORTS), use it as is; otherwise, prepend...
17826	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17827	  cp $export_symbols $output_objdir/$soname.def;
17828	else
17829	  echo EXPORTS > $output_objdir/$soname.def;
17830	  cat $export_symbols >> $output_objdir/$soname.def;
17831	fi~
17832	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17833      else
17834	ld_shlibs_GCJ=no
17835      fi
17836      ;;
17837
17838    interix3*)
17839      hardcode_direct_GCJ=no
17840      hardcode_shlibpath_var_GCJ=no
17841      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17842      export_dynamic_flag_spec_GCJ='${wl}-E'
17843      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17844      # Instead, shared libraries are loaded at an image base (0x10000000 by
17845      # default) and relocated if they conflict, which is a slow very memory
17846      # consuming and fragmenting process.  To avoid this, we pick a random,
17847      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17848      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17849      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'
17850      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'
17851      ;;
17852
17853    linux*)
17854      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17855	tmp_addflag=
17856	case $cc_basename,$host_cpu in
17857	pgcc*)				# Portland Group C compiler
17858	  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'
17859	  tmp_addflag=' $pic_flag'
17860	  ;;
17861	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17862	  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'
17863	  tmp_addflag=' $pic_flag -Mnomain' ;;
17864	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17865	  tmp_addflag=' -i_dynamic' ;;
17866	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17867	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17868	ifc* | ifort*)			# Intel Fortran compiler
17869	  tmp_addflag=' -nofor_main' ;;
17870	esac
17871	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17872
17873	if test $supports_anon_versioning = yes; then
17874	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17875  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17876  $echo "local: *; };" >> $output_objdir/$libname.ver~
17877	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17878	fi
17879      else
17880	ld_shlibs_GCJ=no
17881      fi
17882      ;;
17883
17884    netbsd*)
17885      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17886	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17887	wlarc=
17888      else
17889	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17891      fi
17892      ;;
17893
17894    solaris*)
17895      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17896	ld_shlibs_GCJ=no
17897	cat <<EOF 1>&2
17898
17899*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17900*** create shared libraries on Solaris systems.  Therefore, libtool
17901*** is disabling shared libraries support.  We urge you to upgrade GNU
17902*** binutils to release 2.9.1 or newer.  Another option is to modify
17903*** your PATH or compiler configuration so that the native linker is
17904*** used, and then restart.
17905
17906EOF
17907      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17908	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17909	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17910      else
17911	ld_shlibs_GCJ=no
17912      fi
17913      ;;
17914
17915    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17916      case `$LD -v 2>&1` in
17917        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17918	ld_shlibs_GCJ=no
17919	cat <<_LT_EOF 1>&2
17920
17921*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17922*** reliably create shared libraries on SCO systems.  Therefore, libtool
17923*** is disabling shared libraries support.  We urge you to upgrade GNU
17924*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17925*** your PATH or compiler configuration so that the native linker is
17926*** used, and then restart.
17927
17928_LT_EOF
17929	;;
17930	*)
17931	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17932	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17933	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17934	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17935	  else
17936	    ld_shlibs_GCJ=no
17937	  fi
17938	;;
17939      esac
17940      ;;
17941
17942    sunos4*)
17943      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17944      wlarc=
17945      hardcode_direct_GCJ=yes
17946      hardcode_shlibpath_var_GCJ=no
17947      ;;
17948
17949    *)
17950      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17951	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17952	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17953      else
17954	ld_shlibs_GCJ=no
17955      fi
17956      ;;
17957    esac
17958
17959    if test "$ld_shlibs_GCJ" = no; then
17960      runpath_var=
17961      hardcode_libdir_flag_spec_GCJ=
17962      export_dynamic_flag_spec_GCJ=
17963      whole_archive_flag_spec_GCJ=
17964    fi
17965  else
17966    # PORTME fill in a description of your system's linker (not GNU ld)
17967    case $host_os in
17968    aix3*)
17969      allow_undefined_flag_GCJ=unsupported
17970      always_export_symbols_GCJ=yes
17971      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'
17972      # Note: this linker hardcodes the directories in LIBPATH if there
17973      # are no directories specified by -L.
17974      hardcode_minus_L_GCJ=yes
17975      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17976	# Neither direct hardcoding nor static linking is supported with a
17977	# broken collect2.
17978	hardcode_direct_GCJ=unsupported
17979      fi
17980      ;;
17981
17982    aix4* | aix5*)
17983      if test "$host_cpu" = ia64; then
17984	# On IA64, the linker does run time linking by default, so we don't
17985	# have to do anything special.
17986	aix_use_runtimelinking=no
17987	exp_sym_flag='-Bexport'
17988	no_entry_flag=""
17989      else
17990	# If we're using GNU nm, then we don't want the "-C" option.
17991	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17992	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17993	  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'
17994	else
17995	  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'
17996	fi
17997	aix_use_runtimelinking=no
17998
17999	# Test if we are trying to use run time linking or normal
18000	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18001	# need to do runtime linking.
18002	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18003	  for ld_flag in $LDFLAGS; do
18004  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18005  	    aix_use_runtimelinking=yes
18006  	    break
18007  	  fi
18008	  done
18009	  ;;
18010	esac
18011
18012	exp_sym_flag='-bexport'
18013	no_entry_flag='-bnoentry'
18014      fi
18015
18016      # When large executables or shared objects are built, AIX ld can
18017      # have problems creating the table of contents.  If linking a library
18018      # or program results in "error TOC overflow" add -mminimal-toc to
18019      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18020      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18021
18022      archive_cmds_GCJ=''
18023      hardcode_direct_GCJ=yes
18024      hardcode_libdir_separator_GCJ=':'
18025      link_all_deplibs_GCJ=yes
18026
18027      if test "$GCC" = yes; then
18028	case $host_os in aix4.[012]|aix4.[012].*)
18029	# We only want to do this on AIX 4.2 and lower, the check
18030	# below for broken collect2 doesn't work under 4.3+
18031	  collect2name=`${CC} -print-prog-name=collect2`
18032	  if test -f "$collect2name" && \
18033  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18034	  then
18035  	  # We have reworked collect2
18036  	  hardcode_direct_GCJ=yes
18037	  else
18038  	  # We have old collect2
18039  	  hardcode_direct_GCJ=unsupported
18040  	  # It fails to find uninstalled libraries when the uninstalled
18041  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18042  	  # to unsupported forces relinking
18043  	  hardcode_minus_L_GCJ=yes
18044  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18045  	  hardcode_libdir_separator_GCJ=
18046	  fi
18047	  ;;
18048	esac
18049	shared_flag='-shared'
18050	if test "$aix_use_runtimelinking" = yes; then
18051	  shared_flag="$shared_flag "'${wl}-G'
18052	fi
18053      else
18054	# not using gcc
18055	if test "$host_cpu" = ia64; then
18056  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18057  	# chokes on -Wl,-G. The following line is correct:
18058	  shared_flag='-G'
18059	else
18060	  if test "$aix_use_runtimelinking" = yes; then
18061	    shared_flag='${wl}-G'
18062	  else
18063	    shared_flag='${wl}-bM:SRE'
18064	  fi
18065	fi
18066      fi
18067
18068      # It seems that -bexpall does not export symbols beginning with
18069      # underscore (_), so it is better to generate a list of symbols to export.
18070      always_export_symbols_GCJ=yes
18071      if test "$aix_use_runtimelinking" = yes; then
18072	# Warning - without using the other runtime loading flags (-brtl),
18073	# -berok will link without error, but may produce a broken library.
18074	allow_undefined_flag_GCJ='-berok'
18075       # Determine the default libpath from the value encoded in an empty executable.
18076       cat >conftest.$ac_ext <<_ACEOF
18077/* confdefs.h.  */
18078_ACEOF
18079cat confdefs.h >>conftest.$ac_ext
18080cat >>conftest.$ac_ext <<_ACEOF
18081/* end confdefs.h.  */
18082
18083int
18084main ()
18085{
18086
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091rm -f conftest.$ac_objext conftest$ac_exeext
18092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093  (eval $ac_link) 2>conftest.er1
18094  ac_status=$?
18095  grep -v '^ *+' conftest.er1 >conftest.err
18096  rm -f conftest.er1
18097  cat conftest.err >&5
18098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099  (exit $ac_status); } &&
18100	 { ac_try='test -z "$ac_cxx_werror_flag"
18101			 || test ! -s conftest.err'
18102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103  (eval $ac_try) 2>&5
18104  ac_status=$?
18105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106  (exit $ac_status); }; } &&
18107	 { ac_try='test -s conftest$ac_exeext'
18108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109  (eval $ac_try) 2>&5
18110  ac_status=$?
18111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112  (exit $ac_status); }; }; then
18113
18114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18115}'`
18116# Check for a 64-bit object if we didn't find anything.
18117if 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; }
18118}'`; fi
18119else
18120  echo "$as_me: failed program was:" >&5
18121sed 's/^/| /' conftest.$ac_ext >&5
18122
18123fi
18124rm -f conftest.err conftest.$ac_objext \
18125      conftest$ac_exeext conftest.$ac_ext
18126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18127
18128       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18129	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"
18130       else
18131	if test "$host_cpu" = ia64; then
18132	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18133	  allow_undefined_flag_GCJ="-z nodefs"
18134	  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"
18135	else
18136	 # Determine the default libpath from the value encoded in an empty executable.
18137	 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h.  */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h.  */
18143
18144int
18145main ()
18146{
18147
18148  ;
18149  return 0;
18150}
18151_ACEOF
18152rm -f conftest.$ac_objext conftest$ac_exeext
18153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18154  (eval $ac_link) 2>conftest.er1
18155  ac_status=$?
18156  grep -v '^ *+' conftest.er1 >conftest.err
18157  rm -f conftest.er1
18158  cat conftest.err >&5
18159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160  (exit $ac_status); } &&
18161	 { ac_try='test -z "$ac_cxx_werror_flag"
18162			 || test ! -s conftest.err'
18163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164  (eval $ac_try) 2>&5
18165  ac_status=$?
18166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167  (exit $ac_status); }; } &&
18168	 { ac_try='test -s conftest$ac_exeext'
18169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170  (eval $ac_try) 2>&5
18171  ac_status=$?
18172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173  (exit $ac_status); }; }; then
18174
18175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18176}'`
18177# Check for a 64-bit object if we didn't find anything.
18178if 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; }
18179}'`; fi
18180else
18181  echo "$as_me: failed program was:" >&5
18182sed 's/^/| /' conftest.$ac_ext >&5
18183
18184fi
18185rm -f conftest.err conftest.$ac_objext \
18186      conftest$ac_exeext conftest.$ac_ext
18187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18188
18189	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18190	  # Warning - without using the other run time loading flags,
18191	  # -berok will link without error, but may produce a broken library.
18192	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18193	  allow_undefined_flag_GCJ=' ${wl}-berok'
18194	  # Exported symbols can be pulled into shared objects from archives
18195	  whole_archive_flag_spec_GCJ='$convenience'
18196	  archive_cmds_need_lc_GCJ=yes
18197	  # This is similar to how AIX traditionally builds its shared libraries.
18198	  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'
18199	fi
18200      fi
18201      ;;
18202
18203    amigaos*)
18204      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)'
18205      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18206      hardcode_minus_L_GCJ=yes
18207      # see comment about different semantics on the GNU ld section
18208      ld_shlibs_GCJ=no
18209      ;;
18210
18211    bsdi[45]*)
18212      export_dynamic_flag_spec_GCJ=-rdynamic
18213      ;;
18214
18215    cygwin* | mingw* | pw32*)
18216      # When not using gcc, we currently assume that we are using
18217      # Microsoft Visual C++.
18218      # hardcode_libdir_flag_spec is actually meaningless, as there is
18219      # no search path for DLLs.
18220      hardcode_libdir_flag_spec_GCJ=' '
18221      allow_undefined_flag_GCJ=unsupported
18222      # Tell ltmain to make .lib files, not .a files.
18223      libext=lib
18224      # Tell ltmain to make .dll files, not .so files.
18225      shrext_cmds=".dll"
18226      # FIXME: Setting linknames here is a bad hack.
18227      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18228      # The linker will automatically build a .lib file if we build a DLL.
18229      old_archive_From_new_cmds_GCJ='true'
18230      # FIXME: Should let the user specify the lib program.
18231      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18232      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18233      enable_shared_with_static_runtimes_GCJ=yes
18234      ;;
18235
18236    darwin* | rhapsody*)
18237      case $host_os in
18238        rhapsody* | darwin1.[012])
18239         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18240         ;;
18241       *) # Darwin 1.3 on
18242         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18243           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18244         else
18245           case ${MACOSX_DEPLOYMENT_TARGET} in
18246             10.[012])
18247               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18248               ;;
18249             10.*)
18250               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18251               ;;
18252           esac
18253         fi
18254         ;;
18255      esac
18256      archive_cmds_need_lc_GCJ=no
18257      hardcode_direct_GCJ=no
18258      hardcode_automatic_GCJ=yes
18259      hardcode_shlibpath_var_GCJ=unsupported
18260      whole_archive_flag_spec_GCJ=''
18261      link_all_deplibs_GCJ=yes
18262    if test "$GCC" = yes ; then
18263    	output_verbose_link_cmd='echo'
18264        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18265      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18266      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18267      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}'
18268      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}'
18269    else
18270      case $cc_basename in
18271        xlc*)
18272         output_verbose_link_cmd='echo'
18273         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18274         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18275          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18276         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}'
18277          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}'
18278          ;;
18279       *)
18280         ld_shlibs_GCJ=no
18281          ;;
18282      esac
18283    fi
18284      ;;
18285
18286    dgux*)
18287      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18288      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18289      hardcode_shlibpath_var_GCJ=no
18290      ;;
18291
18292    freebsd1*)
18293      ld_shlibs_GCJ=no
18294      ;;
18295
18296    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18297    # support.  Future versions do this automatically, but an explicit c++rt0.o
18298    # does not break anything, and helps significantly (at the cost of a little
18299    # extra space).
18300    freebsd2.2*)
18301      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18302      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18303      hardcode_direct_GCJ=yes
18304      hardcode_shlibpath_var_GCJ=no
18305      ;;
18306
18307    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18308    freebsd2*)
18309      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18310      hardcode_direct_GCJ=yes
18311      hardcode_minus_L_GCJ=yes
18312      hardcode_shlibpath_var_GCJ=no
18313      ;;
18314
18315    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18316    freebsd* | kfreebsd*-gnu | dragonfly*)
18317      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18318      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18319      hardcode_direct_GCJ=yes
18320      hardcode_shlibpath_var_GCJ=no
18321      ;;
18322
18323    hpux9*)
18324      if test "$GCC" = yes; then
18325	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'
18326      else
18327	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'
18328      fi
18329      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18330      hardcode_libdir_separator_GCJ=:
18331      hardcode_direct_GCJ=yes
18332
18333      # hardcode_minus_L: Not really in the search PATH,
18334      # but as the default location of the library.
18335      hardcode_minus_L_GCJ=yes
18336      export_dynamic_flag_spec_GCJ='${wl}-E'
18337      ;;
18338
18339    hpux10*)
18340      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18341	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18342      else
18343	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18344      fi
18345      if test "$with_gnu_ld" = no; then
18346	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18347	hardcode_libdir_separator_GCJ=:
18348
18349	hardcode_direct_GCJ=yes
18350	export_dynamic_flag_spec_GCJ='${wl}-E'
18351
18352	# hardcode_minus_L: Not really in the search PATH,
18353	# but as the default location of the library.
18354	hardcode_minus_L_GCJ=yes
18355      fi
18356      ;;
18357
18358    hpux11*)
18359      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18360	case $host_cpu in
18361	hppa*64*)
18362	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18363	  ;;
18364	ia64*)
18365	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18366	  ;;
18367	*)
18368	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18369	  ;;
18370	esac
18371      else
18372	case $host_cpu in
18373	hppa*64*)
18374	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18375	  ;;
18376	ia64*)
18377	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18378	  ;;
18379	*)
18380	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18381	  ;;
18382	esac
18383      fi
18384      if test "$with_gnu_ld" = no; then
18385	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18386	hardcode_libdir_separator_GCJ=:
18387
18388	case $host_cpu in
18389	hppa*64*|ia64*)
18390	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18391	  hardcode_direct_GCJ=no
18392	  hardcode_shlibpath_var_GCJ=no
18393	  ;;
18394	*)
18395	  hardcode_direct_GCJ=yes
18396	  export_dynamic_flag_spec_GCJ='${wl}-E'
18397
18398	  # hardcode_minus_L: Not really in the search PATH,
18399	  # but as the default location of the library.
18400	  hardcode_minus_L_GCJ=yes
18401	  ;;
18402	esac
18403      fi
18404      ;;
18405
18406    irix5* | irix6* | nonstopux*)
18407      if test "$GCC" = yes; then
18408	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'
18409      else
18410	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'
18411	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18412      fi
18413      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18414      hardcode_libdir_separator_GCJ=:
18415      link_all_deplibs_GCJ=yes
18416      ;;
18417
18418    netbsd*)
18419      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18420	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18421      else
18422	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18423      fi
18424      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18425      hardcode_direct_GCJ=yes
18426      hardcode_shlibpath_var_GCJ=no
18427      ;;
18428
18429    newsos6)
18430      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18431      hardcode_direct_GCJ=yes
18432      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18433      hardcode_libdir_separator_GCJ=:
18434      hardcode_shlibpath_var_GCJ=no
18435      ;;
18436
18437    openbsd*)
18438      hardcode_direct_GCJ=yes
18439      hardcode_shlibpath_var_GCJ=no
18440      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18441	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18442	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18443	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18444	export_dynamic_flag_spec_GCJ='${wl}-E'
18445      else
18446       case $host_os in
18447	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18448	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18449	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18450	   ;;
18451	 *)
18452	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18453	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18454	   ;;
18455       esac
18456      fi
18457      ;;
18458
18459    os2*)
18460      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18461      hardcode_minus_L_GCJ=yes
18462      allow_undefined_flag_GCJ=unsupported
18463      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'
18464      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18465      ;;
18466
18467    osf3*)
18468      if test "$GCC" = yes; then
18469	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18470	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'
18471      else
18472	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18473	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'
18474      fi
18475      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18476      hardcode_libdir_separator_GCJ=:
18477      ;;
18478
18479    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18480      if test "$GCC" = yes; then
18481	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18482	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'
18483	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18484      else
18485	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18486	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'
18487	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~
18488	$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'
18489
18490	# Both c and cxx compiler support -rpath directly
18491	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18492      fi
18493      hardcode_libdir_separator_GCJ=:
18494      ;;
18495
18496    solaris*)
18497      no_undefined_flag_GCJ=' -z text'
18498      if test "$GCC" = yes; then
18499	wlarc='${wl}'
18500	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18501	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18502	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18503      else
18504	wlarc=''
18505	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18506	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18507  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18508      fi
18509      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18510      hardcode_shlibpath_var_GCJ=no
18511      case $host_os in
18512      solaris2.[0-5] | solaris2.[0-5].*) ;;
18513      *)
18514 	# The compiler driver will combine linker options so we
18515 	# cannot just pass the convience library names through
18516 	# without $wl, iff we do not link with $LD.
18517 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18518 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18519 	case $wlarc in
18520 	'')
18521 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18522 	*)
18523 	  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' ;;
18524 	esac ;;
18525      esac
18526      link_all_deplibs_GCJ=yes
18527      ;;
18528
18529    sunos4*)
18530      if test "x$host_vendor" = xsequent; then
18531	# Use $CC to link under sequent, because it throws in some extra .o
18532	# files that make .init and .fini sections work.
18533	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18534      else
18535	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18536      fi
18537      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18538      hardcode_direct_GCJ=yes
18539      hardcode_minus_L_GCJ=yes
18540      hardcode_shlibpath_var_GCJ=no
18541      ;;
18542
18543    sysv4)
18544      case $host_vendor in
18545	sni)
18546	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18547	  hardcode_direct_GCJ=yes # is this really true???
18548	;;
18549	siemens)
18550	  ## LD is ld it makes a PLAMLIB
18551	  ## CC just makes a GrossModule.
18552	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18553	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18554	  hardcode_direct_GCJ=no
18555        ;;
18556	motorola)
18557	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18558	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18559	;;
18560      esac
18561      runpath_var='LD_RUN_PATH'
18562      hardcode_shlibpath_var_GCJ=no
18563      ;;
18564
18565    sysv4.3*)
18566      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18567      hardcode_shlibpath_var_GCJ=no
18568      export_dynamic_flag_spec_GCJ='-Bexport'
18569      ;;
18570
18571    sysv4*MP*)
18572      if test -d /usr/nec; then
18573	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574	hardcode_shlibpath_var_GCJ=no
18575	runpath_var=LD_RUN_PATH
18576	hardcode_runpath_var=yes
18577	ld_shlibs_GCJ=yes
18578      fi
18579      ;;
18580
18581    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18582      no_undefined_flag_GCJ='${wl}-z,text'
18583      archive_cmds_need_lc_GCJ=no
18584      hardcode_shlibpath_var_GCJ=no
18585      runpath_var='LD_RUN_PATH'
18586
18587      if test "$GCC" = yes; then
18588	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18589	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18590      else
18591	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18592	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18593      fi
18594      ;;
18595
18596    sysv5* | sco3.2v5* | sco5v6*)
18597      # Note: We can NOT use -z defs as we might desire, because we do not
18598      # link with -lc, and that would cause any symbols used from libc to
18599      # always be unresolved, which means just about no library would
18600      # ever link correctly.  If we're not using GNU ld we use -z text
18601      # though, which does catch some bad symbols but isn't as heavy-handed
18602      # as -z defs.
18603      no_undefined_flag_GCJ='${wl}-z,text'
18604      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18605      archive_cmds_need_lc_GCJ=no
18606      hardcode_shlibpath_var_GCJ=no
18607      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18608      hardcode_libdir_separator_GCJ=':'
18609      link_all_deplibs_GCJ=yes
18610      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18611      runpath_var='LD_RUN_PATH'
18612
18613      if test "$GCC" = yes; then
18614	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18615	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18616      else
18617	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18618	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18619      fi
18620      ;;
18621
18622    uts4*)
18623      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18624      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18625      hardcode_shlibpath_var_GCJ=no
18626      ;;
18627
18628    *)
18629      ld_shlibs_GCJ=no
18630      ;;
18631    esac
18632  fi
18633
18634echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18635echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18636test "$ld_shlibs_GCJ" = no && can_build_shared=no
18637
18638#
18639# Do we need to explicitly link libc?
18640#
18641case "x$archive_cmds_need_lc_GCJ" in
18642x|xyes)
18643  # Assume -lc should be added
18644  archive_cmds_need_lc_GCJ=yes
18645
18646  if test "$enable_shared" = yes && test "$GCC" = yes; then
18647    case $archive_cmds_GCJ in
18648    *'~'*)
18649      # FIXME: we may have to deal with multi-command sequences.
18650      ;;
18651    '$CC '*)
18652      # Test whether the compiler implicitly links with -lc since on some
18653      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18654      # to ld, don't add -lc before -lgcc.
18655      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18656echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18657      $rm conftest*
18658      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18659
18660      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661  (eval $ac_compile) 2>&5
18662  ac_status=$?
18663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664  (exit $ac_status); } 2>conftest.err; then
18665        soname=conftest
18666        lib=conftest
18667        libobjs=conftest.$ac_objext
18668        deplibs=
18669        wl=$lt_prog_compiler_wl_GCJ
18670	pic_flag=$lt_prog_compiler_pic_GCJ
18671        compiler_flags=-v
18672        linker_flags=-v
18673        verstring=
18674        output_objdir=.
18675        libname=conftest
18676        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18677        allow_undefined_flag_GCJ=
18678        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18679  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18680  ac_status=$?
18681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682  (exit $ac_status); }
18683        then
18684	  archive_cmds_need_lc_GCJ=no
18685        else
18686	  archive_cmds_need_lc_GCJ=yes
18687        fi
18688        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18689      else
18690        cat conftest.err 1>&5
18691      fi
18692      $rm conftest*
18693      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18694echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18695      ;;
18696    esac
18697  fi
18698  ;;
18699esac
18700
18701echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18702echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18703library_names_spec=
18704libname_spec='lib$name'
18705soname_spec=
18706shrext_cmds=".so"
18707postinstall_cmds=
18708postuninstall_cmds=
18709finish_cmds=
18710finish_eval=
18711shlibpath_var=
18712shlibpath_overrides_runpath=unknown
18713version_type=none
18714dynamic_linker="$host_os ld.so"
18715sys_lib_dlsearch_path_spec="/lib /usr/lib"
18716if test "$GCC" = yes; then
18717  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18718  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18719    # if the path contains ";" then we assume it to be the separator
18720    # otherwise default to the standard path separator (i.e. ":") - it is
18721    # assumed that no part of a normal pathname contains ";" but that should
18722    # okay in the real world where ";" in dirpaths is itself problematic.
18723    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18724  else
18725    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18726  fi
18727else
18728  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18729fi
18730need_lib_prefix=unknown
18731hardcode_into_libs=no
18732
18733# when you set need_version to no, make sure it does not cause -set_version
18734# flags to be left without arguments
18735need_version=unknown
18736
18737case $host_os in
18738aix3*)
18739  version_type=linux
18740  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18741  shlibpath_var=LIBPATH
18742
18743  # AIX 3 has no versioning support, so we append a major version to the name.
18744  soname_spec='${libname}${release}${shared_ext}$major'
18745  ;;
18746
18747aix4* | aix5*)
18748  version_type=linux
18749  need_lib_prefix=no
18750  need_version=no
18751  hardcode_into_libs=yes
18752  if test "$host_cpu" = ia64; then
18753    # AIX 5 supports IA64
18754    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18755    shlibpath_var=LD_LIBRARY_PATH
18756  else
18757    # With GCC up to 2.95.x, collect2 would create an import file
18758    # for dependence libraries.  The import file would start with
18759    # the line `#! .'.  This would cause the generated library to
18760    # depend on `.', always an invalid library.  This was fixed in
18761    # development snapshots of GCC prior to 3.0.
18762    case $host_os in
18763      aix4 | aix4.[01] | aix4.[01].*)
18764      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18765	   echo ' yes '
18766	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18767	:
18768      else
18769	can_build_shared=no
18770      fi
18771      ;;
18772    esac
18773    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18774    # soname into executable. Probably we can add versioning support to
18775    # collect2, so additional links can be useful in future.
18776    if test "$aix_use_runtimelinking" = yes; then
18777      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18778      # instead of lib<name>.a to let people know that these are not
18779      # typical AIX shared libraries.
18780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781    else
18782      # We preserve .a as extension for shared libraries through AIX4.2
18783      # and later when we are not doing run time linking.
18784      library_names_spec='${libname}${release}.a $libname.a'
18785      soname_spec='${libname}${release}${shared_ext}$major'
18786    fi
18787    shlibpath_var=LIBPATH
18788  fi
18789  ;;
18790
18791amigaos*)
18792  library_names_spec='$libname.ixlibrary $libname.a'
18793  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18794  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'
18795  ;;
18796
18797beos*)
18798  library_names_spec='${libname}${shared_ext}'
18799  dynamic_linker="$host_os ld.so"
18800  shlibpath_var=LIBRARY_PATH
18801  ;;
18802
18803bsdi[45]*)
18804  version_type=linux
18805  need_version=no
18806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807  soname_spec='${libname}${release}${shared_ext}$major'
18808  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18809  shlibpath_var=LD_LIBRARY_PATH
18810  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18811  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18812  # the default ld.so.conf also contains /usr/contrib/lib and
18813  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18814  # libtool to hard-code these into programs
18815  ;;
18816
18817cygwin* | mingw* | pw32*)
18818  version_type=windows
18819  shrext_cmds=".dll"
18820  need_version=no
18821  need_lib_prefix=no
18822
18823  case $GCC,$host_os in
18824  yes,cygwin* | yes,mingw* | yes,pw32*)
18825    library_names_spec='$libname.dll.a'
18826    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18827    postinstall_cmds='base_file=`basename \${file}`~
18828      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18829      dldir=$destdir/`dirname \$dlpath`~
18830      test -d \$dldir || mkdir -p \$dldir~
18831      $install_prog $dir/$dlname \$dldir/$dlname~
18832      chmod a+x \$dldir/$dlname'
18833    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18834      dlpath=$dir/\$dldll~
18835       $rm \$dlpath'
18836    shlibpath_overrides_runpath=yes
18837
18838    case $host_os in
18839    cygwin*)
18840      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18841      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18842      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18843      ;;
18844    mingw*)
18845      # MinGW DLLs use traditional 'lib' prefix
18846      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18847      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18848      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18849        # It is most probably a Windows format PATH printed by
18850        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18851        # path with ; separators, and with drive letters. We can handle the
18852        # drive letters (cygwin fileutils understands them), so leave them,
18853        # especially as we might pass files found there to a mingw objdump,
18854        # which wouldn't understand a cygwinified path. Ahh.
18855        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18856      else
18857        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18858      fi
18859      ;;
18860    pw32*)
18861      # pw32 DLLs use 'pw' prefix rather than 'lib'
18862      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18863      ;;
18864    esac
18865    ;;
18866
18867  *)
18868    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18869    ;;
18870  esac
18871  dynamic_linker='Win32 ld.exe'
18872  # FIXME: first we should search . and the directory the executable is in
18873  shlibpath_var=PATH
18874  ;;
18875
18876darwin* | rhapsody*)
18877  dynamic_linker="$host_os dyld"
18878  version_type=darwin
18879  need_lib_prefix=no
18880  need_version=no
18881  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18882  soname_spec='${libname}${release}${major}$shared_ext'
18883  shlibpath_overrides_runpath=yes
18884  shlibpath_var=DYLD_LIBRARY_PATH
18885  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18886  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18887  if test "$GCC" = yes; then
18888    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"`
18889  else
18890    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18891  fi
18892  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18893  ;;
18894
18895dgux*)
18896  version_type=linux
18897  need_lib_prefix=no
18898  need_version=no
18899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18900  soname_spec='${libname}${release}${shared_ext}$major'
18901  shlibpath_var=LD_LIBRARY_PATH
18902  ;;
18903
18904freebsd1*)
18905  dynamic_linker=no
18906  ;;
18907
18908kfreebsd*-gnu)
18909  version_type=linux
18910  need_lib_prefix=no
18911  need_version=no
18912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18913  soname_spec='${libname}${release}${shared_ext}$major'
18914  shlibpath_var=LD_LIBRARY_PATH
18915  shlibpath_overrides_runpath=no
18916  hardcode_into_libs=yes
18917  dynamic_linker='GNU ld.so'
18918  ;;
18919
18920freebsd* | dragonfly*)
18921  # DragonFly does not have aout.  When/if they implement a new
18922  # versioning mechanism, adjust this.
18923  if test -x /usr/bin/objformat; then
18924    objformat=`/usr/bin/objformat`
18925  else
18926    case $host_os in
18927    freebsd[123]*) objformat=aout ;;
18928    *) objformat=elf ;;
18929    esac
18930  fi
18931  version_type=freebsd-$objformat
18932  case $version_type in
18933    freebsd-elf*)
18934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18935      need_version=no
18936      need_lib_prefix=no
18937      ;;
18938    freebsd-*)
18939      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18940      need_version=yes
18941      ;;
18942  esac
18943  shlibpath_var=LD_LIBRARY_PATH
18944  case $host_os in
18945  freebsd2*)
18946    shlibpath_overrides_runpath=yes
18947    ;;
18948  freebsd3.[01]* | freebsdelf3.[01]*)
18949    shlibpath_overrides_runpath=yes
18950    hardcode_into_libs=yes
18951    ;;
18952  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18953  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18954    shlibpath_overrides_runpath=no
18955    hardcode_into_libs=yes
18956    ;;
18957  freebsd*) # from 4.6 on
18958    shlibpath_overrides_runpath=yes
18959    hardcode_into_libs=yes
18960    ;;
18961  esac
18962  ;;
18963
18964gnu*)
18965  version_type=linux
18966  need_lib_prefix=no
18967  need_version=no
18968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18969  soname_spec='${libname}${release}${shared_ext}$major'
18970  shlibpath_var=LD_LIBRARY_PATH
18971  hardcode_into_libs=yes
18972  ;;
18973
18974hpux9* | hpux10* | hpux11*)
18975  # Give a soname corresponding to the major version so that dld.sl refuses to
18976  # link against other versions.
18977  version_type=sunos
18978  need_lib_prefix=no
18979  need_version=no
18980  case $host_cpu in
18981  ia64*)
18982    shrext_cmds='.so'
18983    hardcode_into_libs=yes
18984    dynamic_linker="$host_os dld.so"
18985    shlibpath_var=LD_LIBRARY_PATH
18986    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18987    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988    soname_spec='${libname}${release}${shared_ext}$major'
18989    if test "X$HPUX_IA64_MODE" = X32; then
18990      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18991    else
18992      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18993    fi
18994    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18995    ;;
18996   hppa*64*)
18997     shrext_cmds='.sl'
18998     hardcode_into_libs=yes
18999     dynamic_linker="$host_os dld.sl"
19000     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19003     soname_spec='${libname}${release}${shared_ext}$major'
19004     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19005     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19006     ;;
19007   *)
19008    shrext_cmds='.sl'
19009    dynamic_linker="$host_os dld.sl"
19010    shlibpath_var=SHLIB_PATH
19011    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19012    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19013    soname_spec='${libname}${release}${shared_ext}$major'
19014    ;;
19015  esac
19016  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19017  postinstall_cmds='chmod 555 $lib'
19018  ;;
19019
19020interix3*)
19021  version_type=linux
19022  need_lib_prefix=no
19023  need_version=no
19024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19025  soname_spec='${libname}${release}${shared_ext}$major'
19026  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19027  shlibpath_var=LD_LIBRARY_PATH
19028  shlibpath_overrides_runpath=no
19029  hardcode_into_libs=yes
19030  ;;
19031
19032irix5* | irix6* | nonstopux*)
19033  case $host_os in
19034    nonstopux*) version_type=nonstopux ;;
19035    *)
19036	if test "$lt_cv_prog_gnu_ld" = yes; then
19037		version_type=linux
19038	else
19039		version_type=irix
19040	fi ;;
19041  esac
19042  need_lib_prefix=no
19043  need_version=no
19044  soname_spec='${libname}${release}${shared_ext}$major'
19045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19046  case $host_os in
19047  irix5* | nonstopux*)
19048    libsuff= shlibsuff=
19049    ;;
19050  *)
19051    case $LD in # libtool.m4 will add one of these switches to LD
19052    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19053      libsuff= shlibsuff= libmagic=32-bit;;
19054    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19055      libsuff=32 shlibsuff=N32 libmagic=N32;;
19056    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19057      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19058    *) libsuff= shlibsuff= libmagic=never-match;;
19059    esac
19060    ;;
19061  esac
19062  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19063  shlibpath_overrides_runpath=no
19064  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19065  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19066  hardcode_into_libs=yes
19067  ;;
19068
19069# No shared lib support for Linux oldld, aout, or coff.
19070linux*oldld* | linux*aout* | linux*coff*)
19071  dynamic_linker=no
19072  ;;
19073
19074# This must be Linux ELF.
19075linux*)
19076  version_type=linux
19077  need_lib_prefix=no
19078  need_version=no
19079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080  soname_spec='${libname}${release}${shared_ext}$major'
19081  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19082  shlibpath_var=LD_LIBRARY_PATH
19083  shlibpath_overrides_runpath=no
19084  # This implies no fast_install, which is unacceptable.
19085  # Some rework will be needed to allow for fast_install
19086  # before this can be enabled.
19087  hardcode_into_libs=yes
19088
19089  # Append ld.so.conf contents to the search path
19090  if test -f /etc/ld.so.conf; then
19091    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' ' '`
19092    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19093  fi
19094
19095  # We used to test for /lib/ld.so.1 and disable shared libraries on
19096  # powerpc, because MkLinux only supported shared libraries with the
19097  # GNU dynamic linker.  Since this was broken with cross compilers,
19098  # most powerpc-linux boxes support dynamic linking these days and
19099  # people can always --disable-shared, the test was removed, and we
19100  # assume the GNU/Linux dynamic linker is in use.
19101  dynamic_linker='GNU/Linux ld.so'
19102  ;;
19103
19104knetbsd*-gnu)
19105  version_type=linux
19106  need_lib_prefix=no
19107  need_version=no
19108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19109  soname_spec='${libname}${release}${shared_ext}$major'
19110  shlibpath_var=LD_LIBRARY_PATH
19111  shlibpath_overrides_runpath=no
19112  hardcode_into_libs=yes
19113  dynamic_linker='GNU ld.so'
19114  ;;
19115
19116netbsd*)
19117  version_type=sunos
19118  need_lib_prefix=no
19119  need_version=no
19120  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19121    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19122    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19123    dynamic_linker='NetBSD (a.out) ld.so'
19124  else
19125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19126    soname_spec='${libname}${release}${shared_ext}$major'
19127    dynamic_linker='NetBSD ld.elf_so'
19128  fi
19129  shlibpath_var=LD_LIBRARY_PATH
19130  shlibpath_overrides_runpath=yes
19131  hardcode_into_libs=yes
19132  ;;
19133
19134newsos6)
19135  version_type=linux
19136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19137  shlibpath_var=LD_LIBRARY_PATH
19138  shlibpath_overrides_runpath=yes
19139  ;;
19140
19141nto-qnx*)
19142  version_type=linux
19143  need_lib_prefix=no
19144  need_version=no
19145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19146  soname_spec='${libname}${release}${shared_ext}$major'
19147  shlibpath_var=LD_LIBRARY_PATH
19148  shlibpath_overrides_runpath=yes
19149  ;;
19150
19151openbsd*)
19152  version_type=sunos
19153  sys_lib_dlsearch_path_spec="/usr/lib"
19154  need_lib_prefix=no
19155  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19156  case $host_os in
19157    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19158    *)                         need_version=no  ;;
19159  esac
19160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19161  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19162  shlibpath_var=LD_LIBRARY_PATH
19163  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19164    case $host_os in
19165      openbsd2.[89] | openbsd2.[89].*)
19166	shlibpath_overrides_runpath=no
19167	;;
19168      *)
19169	shlibpath_overrides_runpath=yes
19170	;;
19171      esac
19172  else
19173    shlibpath_overrides_runpath=yes
19174  fi
19175  ;;
19176
19177os2*)
19178  libname_spec='$name'
19179  shrext_cmds=".dll"
19180  need_lib_prefix=no
19181  library_names_spec='$libname${shared_ext} $libname.a'
19182  dynamic_linker='OS/2 ld.exe'
19183  shlibpath_var=LIBPATH
19184  ;;
19185
19186osf3* | osf4* | osf5*)
19187  version_type=osf
19188  need_lib_prefix=no
19189  need_version=no
19190  soname_spec='${libname}${release}${shared_ext}$major'
19191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19192  shlibpath_var=LD_LIBRARY_PATH
19193  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19194  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19195  ;;
19196
19197solaris*)
19198  version_type=linux
19199  need_lib_prefix=no
19200  need_version=no
19201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19202  soname_spec='${libname}${release}${shared_ext}$major'
19203  shlibpath_var=LD_LIBRARY_PATH
19204  shlibpath_overrides_runpath=yes
19205  hardcode_into_libs=yes
19206  # ldd complains unless libraries are executable
19207  postinstall_cmds='chmod +x $lib'
19208  ;;
19209
19210sunos4*)
19211  version_type=sunos
19212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19213  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19214  shlibpath_var=LD_LIBRARY_PATH
19215  shlibpath_overrides_runpath=yes
19216  if test "$with_gnu_ld" = yes; then
19217    need_lib_prefix=no
19218  fi
19219  need_version=yes
19220  ;;
19221
19222sysv4 | sysv4.3*)
19223  version_type=linux
19224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19225  soname_spec='${libname}${release}${shared_ext}$major'
19226  shlibpath_var=LD_LIBRARY_PATH
19227  case $host_vendor in
19228    sni)
19229      shlibpath_overrides_runpath=no
19230      need_lib_prefix=no
19231      export_dynamic_flag_spec='${wl}-Blargedynsym'
19232      runpath_var=LD_RUN_PATH
19233      ;;
19234    siemens)
19235      need_lib_prefix=no
19236      ;;
19237    motorola)
19238      need_lib_prefix=no
19239      need_version=no
19240      shlibpath_overrides_runpath=no
19241      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19242      ;;
19243  esac
19244  ;;
19245
19246sysv4*MP*)
19247  if test -d /usr/nec ;then
19248    version_type=linux
19249    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19250    soname_spec='$libname${shared_ext}.$major'
19251    shlibpath_var=LD_LIBRARY_PATH
19252  fi
19253  ;;
19254
19255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19256  version_type=freebsd-elf
19257  need_lib_prefix=no
19258  need_version=no
19259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19260  soname_spec='${libname}${release}${shared_ext}$major'
19261  shlibpath_var=LD_LIBRARY_PATH
19262  hardcode_into_libs=yes
19263  if test "$with_gnu_ld" = yes; then
19264    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19265    shlibpath_overrides_runpath=no
19266  else
19267    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19268    shlibpath_overrides_runpath=yes
19269    case $host_os in
19270      sco3.2v5*)
19271        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19272	;;
19273    esac
19274  fi
19275  sys_lib_dlsearch_path_spec='/usr/lib'
19276  ;;
19277
19278uts4*)
19279  version_type=linux
19280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19281  soname_spec='${libname}${release}${shared_ext}$major'
19282  shlibpath_var=LD_LIBRARY_PATH
19283  ;;
19284
19285*)
19286  dynamic_linker=no
19287  ;;
19288esac
19289echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19290echo "${ECHO_T}$dynamic_linker" >&6
19291test "$dynamic_linker" = no && can_build_shared=no
19292
19293variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19294if test "$GCC" = yes; then
19295  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19296fi
19297
19298echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19299echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19300hardcode_action_GCJ=
19301if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19302   test -n "$runpath_var_GCJ" || \
19303   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19304
19305  # We can hardcode non-existant directories.
19306  if test "$hardcode_direct_GCJ" != no &&
19307     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19308     # have to relink, otherwise we might link with an installed library
19309     # when we should be linking with a yet-to-be-installed one
19310     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19311     test "$hardcode_minus_L_GCJ" != no; then
19312    # Linking always hardcodes the temporary library directory.
19313    hardcode_action_GCJ=relink
19314  else
19315    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19316    hardcode_action_GCJ=immediate
19317  fi
19318else
19319  # We cannot hardcode anything, or else we can only hardcode existing
19320  # directories.
19321  hardcode_action_GCJ=unsupported
19322fi
19323echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19324echo "${ECHO_T}$hardcode_action_GCJ" >&6
19325
19326if test "$hardcode_action_GCJ" = relink; then
19327  # Fast installation is not supported
19328  enable_fast_install=no
19329elif test "$shlibpath_overrides_runpath" = yes ||
19330     test "$enable_shared" = no; then
19331  # Fast installation is not necessary
19332  enable_fast_install=needless
19333fi
19334
19335
19336# The else clause should only fire when bootstrapping the
19337# libtool distribution, otherwise you forgot to ship ltmain.sh
19338# with your package, and you will get complaints that there are
19339# no rules to generate ltmain.sh.
19340if test -f "$ltmain"; then
19341  # See if we are running on zsh, and set the options which allow our commands through
19342  # without removal of \ escapes.
19343  if test -n "${ZSH_VERSION+set}" ; then
19344    setopt NO_GLOB_SUBST
19345  fi
19346  # Now quote all the things that may contain metacharacters while being
19347  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19348  # variables and quote the copies for generation of the libtool script.
19349  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19350    SED SHELL STRIP \
19351    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19352    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19353    deplibs_check_method reload_flag reload_cmds need_locks \
19354    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19355    lt_cv_sys_global_symbol_to_c_name_address \
19356    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19357    old_postinstall_cmds old_postuninstall_cmds \
19358    compiler_GCJ \
19359    CC_GCJ \
19360    LD_GCJ \
19361    lt_prog_compiler_wl_GCJ \
19362    lt_prog_compiler_pic_GCJ \
19363    lt_prog_compiler_static_GCJ \
19364    lt_prog_compiler_no_builtin_flag_GCJ \
19365    export_dynamic_flag_spec_GCJ \
19366    thread_safe_flag_spec_GCJ \
19367    whole_archive_flag_spec_GCJ \
19368    enable_shared_with_static_runtimes_GCJ \
19369    old_archive_cmds_GCJ \
19370    old_archive_from_new_cmds_GCJ \
19371    predep_objects_GCJ \
19372    postdep_objects_GCJ \
19373    predeps_GCJ \
19374    postdeps_GCJ \
19375    compiler_lib_search_path_GCJ \
19376    archive_cmds_GCJ \
19377    archive_expsym_cmds_GCJ \
19378    postinstall_cmds_GCJ \
19379    postuninstall_cmds_GCJ \
19380    old_archive_from_expsyms_cmds_GCJ \
19381    allow_undefined_flag_GCJ \
19382    no_undefined_flag_GCJ \
19383    export_symbols_cmds_GCJ \
19384    hardcode_libdir_flag_spec_GCJ \
19385    hardcode_libdir_flag_spec_ld_GCJ \
19386    hardcode_libdir_separator_GCJ \
19387    hardcode_automatic_GCJ \
19388    module_cmds_GCJ \
19389    module_expsym_cmds_GCJ \
19390    lt_cv_prog_compiler_c_o_GCJ \
19391    exclude_expsyms_GCJ \
19392    include_expsyms_GCJ; do
19393
19394    case $var in
19395    old_archive_cmds_GCJ | \
19396    old_archive_from_new_cmds_GCJ | \
19397    archive_cmds_GCJ | \
19398    archive_expsym_cmds_GCJ | \
19399    module_cmds_GCJ | \
19400    module_expsym_cmds_GCJ | \
19401    old_archive_from_expsyms_cmds_GCJ | \
19402    export_symbols_cmds_GCJ | \
19403    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19404    postinstall_cmds | postuninstall_cmds | \
19405    old_postinstall_cmds | old_postuninstall_cmds | \
19406    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19407      # Double-quote double-evaled strings.
19408      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19409      ;;
19410    *)
19411      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19412      ;;
19413    esac
19414  done
19415
19416  case $lt_echo in
19417  *'\$0 --fallback-echo"')
19418    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19419    ;;
19420  esac
19421
19422cfgfile="$ofile"
19423
19424  cat <<__EOF__ >> "$cfgfile"
19425# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19426
19427# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19428
19429# Shell to use when invoking shell scripts.
19430SHELL=$lt_SHELL
19431
19432# Whether or not to build shared libraries.
19433build_libtool_libs=$enable_shared
19434
19435# Whether or not to build static libraries.
19436build_old_libs=$enable_static
19437
19438# Whether or not to add -lc for building shared libraries.
19439build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19440
19441# Whether or not to disallow shared libs when runtime libs are static
19442allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19443
19444# Whether or not to optimize for fast installation.
19445fast_install=$enable_fast_install
19446
19447# The host system.
19448host_alias=$host_alias
19449host=$host
19450host_os=$host_os
19451
19452# The build system.
19453build_alias=$build_alias
19454build=$build
19455build_os=$build_os
19456
19457# An echo program that does not interpret backslashes.
19458echo=$lt_echo
19459
19460# The archiver.
19461AR=$lt_AR
19462AR_FLAGS=$lt_AR_FLAGS
19463
19464# A C compiler.
19465LTCC=$lt_LTCC
19466
19467# LTCC compiler flags.
19468LTCFLAGS=$lt_LTCFLAGS
19469
19470# A language-specific compiler.
19471CC=$lt_compiler_GCJ
19472
19473# Is the compiler the GNU C compiler?
19474with_gcc=$GCC_GCJ
19475
19476# An ERE matcher.
19477EGREP=$lt_EGREP
19478
19479# The linker used to build libraries.
19480LD=$lt_LD_GCJ
19481
19482# Whether we need hard or soft links.
19483LN_S=$lt_LN_S
19484
19485# A BSD-compatible nm program.
19486NM=$lt_NM
19487
19488# A symbol stripping program
19489STRIP=$lt_STRIP
19490
19491# Used to examine libraries when file_magic_cmd begins "file"
19492MAGIC_CMD=$MAGIC_CMD
19493
19494# Used on cygwin: DLL creation program.
19495DLLTOOL="$DLLTOOL"
19496
19497# Used on cygwin: object dumper.
19498OBJDUMP="$OBJDUMP"
19499
19500# Used on cygwin: assembler.
19501AS="$AS"
19502
19503# The name of the directory that contains temporary libtool files.
19504objdir=$objdir
19505
19506# How to create reloadable object files.
19507reload_flag=$lt_reload_flag
19508reload_cmds=$lt_reload_cmds
19509
19510# How to pass a linker flag through the compiler.
19511wl=$lt_lt_prog_compiler_wl_GCJ
19512
19513# Object file suffix (normally "o").
19514objext="$ac_objext"
19515
19516# Old archive suffix (normally "a").
19517libext="$libext"
19518
19519# Shared library suffix (normally ".so").
19520shrext_cmds='$shrext_cmds'
19521
19522# Executable file suffix (normally "").
19523exeext="$exeext"
19524
19525# Additional compiler flags for building library objects.
19526pic_flag=$lt_lt_prog_compiler_pic_GCJ
19527pic_mode=$pic_mode
19528
19529# What is the maximum length of a command?
19530max_cmd_len=$lt_cv_sys_max_cmd_len
19531
19532# Does compiler simultaneously support -c and -o options?
19533compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19534
19535# Must we lock files when doing compilation?
19536need_locks=$lt_need_locks
19537
19538# Do we need the lib prefix for modules?
19539need_lib_prefix=$need_lib_prefix
19540
19541# Do we need a version for libraries?
19542need_version=$need_version
19543
19544# Whether dlopen is supported.
19545dlopen_support=$enable_dlopen
19546
19547# Whether dlopen of programs is supported.
19548dlopen_self=$enable_dlopen_self
19549
19550# Whether dlopen of statically linked programs is supported.
19551dlopen_self_static=$enable_dlopen_self_static
19552
19553# Compiler flag to prevent dynamic linking.
19554link_static_flag=$lt_lt_prog_compiler_static_GCJ
19555
19556# Compiler flag to turn off builtin functions.
19557no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19558
19559# Compiler flag to allow reflexive dlopens.
19560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19561
19562# Compiler flag to generate shared objects directly from archives.
19563whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19564
19565# Compiler flag to generate thread-safe objects.
19566thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19567
19568# Library versioning type.
19569version_type=$version_type
19570
19571# Format of library name prefix.
19572libname_spec=$lt_libname_spec
19573
19574# List of archive names.  First name is the real one, the rest are links.
19575# The last name is the one that the linker finds with -lNAME.
19576library_names_spec=$lt_library_names_spec
19577
19578# The coded name of the library, if different from the real name.
19579soname_spec=$lt_soname_spec
19580
19581# Commands used to build and install an old-style archive.
19582RANLIB=$lt_RANLIB
19583old_archive_cmds=$lt_old_archive_cmds_GCJ
19584old_postinstall_cmds=$lt_old_postinstall_cmds
19585old_postuninstall_cmds=$lt_old_postuninstall_cmds
19586
19587# Create an old-style archive from a shared archive.
19588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19589
19590# Create a temporary old-style archive to link instead of a shared archive.
19591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19592
19593# Commands used to build and install a shared archive.
19594archive_cmds=$lt_archive_cmds_GCJ
19595archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19596postinstall_cmds=$lt_postinstall_cmds
19597postuninstall_cmds=$lt_postuninstall_cmds
19598
19599# Commands used to build a loadable module (assumed same as above if empty)
19600module_cmds=$lt_module_cmds_GCJ
19601module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19602
19603# Commands to strip libraries.
19604old_striplib=$lt_old_striplib
19605striplib=$lt_striplib
19606
19607# Dependencies to place before the objects being linked to create a
19608# shared library.
19609predep_objects=$lt_predep_objects_GCJ
19610
19611# Dependencies to place after the objects being linked to create a
19612# shared library.
19613postdep_objects=$lt_postdep_objects_GCJ
19614
19615# Dependencies to place before the objects being linked to create a
19616# shared library.
19617predeps=$lt_predeps_GCJ
19618
19619# Dependencies to place after the objects being linked to create a
19620# shared library.
19621postdeps=$lt_postdeps_GCJ
19622
19623# The library search path used internally by the compiler when linking
19624# a shared library.
19625compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19626
19627# Method to check whether dependent libraries are shared objects.
19628deplibs_check_method=$lt_deplibs_check_method
19629
19630# Command to use when deplibs_check_method == file_magic.
19631file_magic_cmd=$lt_file_magic_cmd
19632
19633# Flag that allows shared libraries with undefined symbols to be built.
19634allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19635
19636# Flag that forces no undefined symbols.
19637no_undefined_flag=$lt_no_undefined_flag_GCJ
19638
19639# Commands used to finish a libtool library installation in a directory.
19640finish_cmds=$lt_finish_cmds
19641
19642# Same as above, but a single script fragment to be evaled but not shown.
19643finish_eval=$lt_finish_eval
19644
19645# Take the output of nm and produce a listing of raw symbols and C names.
19646global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19647
19648# Transform the output of nm in a proper C declaration
19649global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19650
19651# Transform the output of nm in a C name address pair
19652global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19653
19654# This is the shared library runtime path variable.
19655runpath_var=$runpath_var
19656
19657# This is the shared library path variable.
19658shlibpath_var=$shlibpath_var
19659
19660# Is shlibpath searched before the hard-coded library search path?
19661shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19662
19663# How to hardcode a shared library path into an executable.
19664hardcode_action=$hardcode_action_GCJ
19665
19666# Whether we should hardcode library paths into libraries.
19667hardcode_into_libs=$hardcode_into_libs
19668
19669# Flag to hardcode \$libdir into a binary during linking.
19670# This must work even if \$libdir does not exist.
19671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19672
19673# If ld is used when linking, flag to hardcode \$libdir into
19674# a binary during linking. This must work even if \$libdir does
19675# not exist.
19676hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19677
19678# Whether we need a single -rpath flag with a separated argument.
19679hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19680
19681# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19682# resulting binary.
19683hardcode_direct=$hardcode_direct_GCJ
19684
19685# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19686# resulting binary.
19687hardcode_minus_L=$hardcode_minus_L_GCJ
19688
19689# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19690# the resulting binary.
19691hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19692
19693# Set to yes if building a shared library automatically hardcodes DIR into the library
19694# and all subsequent libraries and executables linked against it.
19695hardcode_automatic=$hardcode_automatic_GCJ
19696
19697# Variables whose values should be saved in libtool wrapper scripts and
19698# restored at relink time.
19699variables_saved_for_relink="$variables_saved_for_relink"
19700
19701# Whether libtool must link a program against all its dependency libraries.
19702link_all_deplibs=$link_all_deplibs_GCJ
19703
19704# Compile-time system search path for libraries
19705sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19706
19707# Run-time system search path for libraries
19708sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19709
19710# Fix the shell variable \$srcfile for the compiler.
19711fix_srcfile_path="$fix_srcfile_path_GCJ"
19712
19713# Set to yes if exported symbols are required.
19714always_export_symbols=$always_export_symbols_GCJ
19715
19716# The commands to list exported symbols.
19717export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19718
19719# The commands to extract the exported symbol list from a shared archive.
19720extract_expsyms_cmds=$lt_extract_expsyms_cmds
19721
19722# Symbols that should not be listed in the preloaded symbols.
19723exclude_expsyms=$lt_exclude_expsyms_GCJ
19724
19725# Symbols that must always be exported.
19726include_expsyms=$lt_include_expsyms_GCJ
19727
19728# ### END LIBTOOL TAG CONFIG: $tagname
19729
19730__EOF__
19731
19732
19733else
19734  # If there is no Makefile yet, we rely on a make rule to execute
19735  # `config.status --recheck' to rerun these tests and create the
19736  # libtool script then.
19737  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19738  if test -f "$ltmain_in"; then
19739    test -f Makefile && make "$ltmain"
19740  fi
19741fi
19742
19743
19744ac_ext=cc
19745ac_cpp='$CXXCPP $CPPFLAGS'
19746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19749
19750CC="$lt_save_CC"
19751
19752	else
19753	  tagname=""
19754	fi
19755	;;
19756
19757      RC)
19758
19759
19760
19761# Source file extension for RC test sources.
19762ac_ext=rc
19763
19764# Object file extension for compiled RC test sources.
19765objext=o
19766objext_RC=$objext
19767
19768# Code to be used in simple compile tests
19769lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19770
19771# Code to be used in simple link tests
19772lt_simple_link_test_code="$lt_simple_compile_test_code"
19773
19774# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19775
19776# If no C compiler was specified, use CC.
19777LTCC=${LTCC-"$CC"}
19778
19779# If no C compiler flags were specified, use CFLAGS.
19780LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19781
19782# Allow CC to be a program name with arguments.
19783compiler=$CC
19784
19785
19786# save warnings/boilerplate of simple test code
19787ac_outfile=conftest.$ac_objext
19788printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19790_lt_compiler_boilerplate=`cat conftest.err`
19791$rm conftest*
19792
19793ac_outfile=conftest.$ac_objext
19794printf "$lt_simple_link_test_code" >conftest.$ac_ext
19795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19796_lt_linker_boilerplate=`cat conftest.err`
19797$rm conftest*
19798
19799
19800# Allow CC to be a program name with arguments.
19801lt_save_CC="$CC"
19802CC=${RC-"windres"}
19803compiler=$CC
19804compiler_RC=$CC
19805for cc_temp in $compiler""; do
19806  case $cc_temp in
19807    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19808    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19809    \-*) ;;
19810    *) break;;
19811  esac
19812done
19813cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19814
19815lt_cv_prog_compiler_c_o_RC=yes
19816
19817# The else clause should only fire when bootstrapping the
19818# libtool distribution, otherwise you forgot to ship ltmain.sh
19819# with your package, and you will get complaints that there are
19820# no rules to generate ltmain.sh.
19821if test -f "$ltmain"; then
19822  # See if we are running on zsh, and set the options which allow our commands through
19823  # without removal of \ escapes.
19824  if test -n "${ZSH_VERSION+set}" ; then
19825    setopt NO_GLOB_SUBST
19826  fi
19827  # Now quote all the things that may contain metacharacters while being
19828  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19829  # variables and quote the copies for generation of the libtool script.
19830  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19831    SED SHELL STRIP \
19832    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19833    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19834    deplibs_check_method reload_flag reload_cmds need_locks \
19835    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19836    lt_cv_sys_global_symbol_to_c_name_address \
19837    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19838    old_postinstall_cmds old_postuninstall_cmds \
19839    compiler_RC \
19840    CC_RC \
19841    LD_RC \
19842    lt_prog_compiler_wl_RC \
19843    lt_prog_compiler_pic_RC \
19844    lt_prog_compiler_static_RC \
19845    lt_prog_compiler_no_builtin_flag_RC \
19846    export_dynamic_flag_spec_RC \
19847    thread_safe_flag_spec_RC \
19848    whole_archive_flag_spec_RC \
19849    enable_shared_with_static_runtimes_RC \
19850    old_archive_cmds_RC \
19851    old_archive_from_new_cmds_RC \
19852    predep_objects_RC \
19853    postdep_objects_RC \
19854    predeps_RC \
19855    postdeps_RC \
19856    compiler_lib_search_path_RC \
19857    archive_cmds_RC \
19858    archive_expsym_cmds_RC \
19859    postinstall_cmds_RC \
19860    postuninstall_cmds_RC \
19861    old_archive_from_expsyms_cmds_RC \
19862    allow_undefined_flag_RC \
19863    no_undefined_flag_RC \
19864    export_symbols_cmds_RC \
19865    hardcode_libdir_flag_spec_RC \
19866    hardcode_libdir_flag_spec_ld_RC \
19867    hardcode_libdir_separator_RC \
19868    hardcode_automatic_RC \
19869    module_cmds_RC \
19870    module_expsym_cmds_RC \
19871    lt_cv_prog_compiler_c_o_RC \
19872    exclude_expsyms_RC \
19873    include_expsyms_RC; do
19874
19875    case $var in
19876    old_archive_cmds_RC | \
19877    old_archive_from_new_cmds_RC | \
19878    archive_cmds_RC | \
19879    archive_expsym_cmds_RC | \
19880    module_cmds_RC | \
19881    module_expsym_cmds_RC | \
19882    old_archive_from_expsyms_cmds_RC | \
19883    export_symbols_cmds_RC | \
19884    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19885    postinstall_cmds | postuninstall_cmds | \
19886    old_postinstall_cmds | old_postuninstall_cmds | \
19887    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19888      # Double-quote double-evaled strings.
19889      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19890      ;;
19891    *)
19892      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19893      ;;
19894    esac
19895  done
19896
19897  case $lt_echo in
19898  *'\$0 --fallback-echo"')
19899    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19900    ;;
19901  esac
19902
19903cfgfile="$ofile"
19904
19905  cat <<__EOF__ >> "$cfgfile"
19906# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19907
19908# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19909
19910# Shell to use when invoking shell scripts.
19911SHELL=$lt_SHELL
19912
19913# Whether or not to build shared libraries.
19914build_libtool_libs=$enable_shared
19915
19916# Whether or not to build static libraries.
19917build_old_libs=$enable_static
19918
19919# Whether or not to add -lc for building shared libraries.
19920build_libtool_need_lc=$archive_cmds_need_lc_RC
19921
19922# Whether or not to disallow shared libs when runtime libs are static
19923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19924
19925# Whether or not to optimize for fast installation.
19926fast_install=$enable_fast_install
19927
19928# The host system.
19929host_alias=$host_alias
19930host=$host
19931host_os=$host_os
19932
19933# The build system.
19934build_alias=$build_alias
19935build=$build
19936build_os=$build_os
19937
19938# An echo program that does not interpret backslashes.
19939echo=$lt_echo
19940
19941# The archiver.
19942AR=$lt_AR
19943AR_FLAGS=$lt_AR_FLAGS
19944
19945# A C compiler.
19946LTCC=$lt_LTCC
19947
19948# LTCC compiler flags.
19949LTCFLAGS=$lt_LTCFLAGS
19950
19951# A language-specific compiler.
19952CC=$lt_compiler_RC
19953
19954# Is the compiler the GNU C compiler?
19955with_gcc=$GCC_RC
19956
19957# An ERE matcher.
19958EGREP=$lt_EGREP
19959
19960# The linker used to build libraries.
19961LD=$lt_LD_RC
19962
19963# Whether we need hard or soft links.
19964LN_S=$lt_LN_S
19965
19966# A BSD-compatible nm program.
19967NM=$lt_NM
19968
19969# A symbol stripping program
19970STRIP=$lt_STRIP
19971
19972# Used to examine libraries when file_magic_cmd begins "file"
19973MAGIC_CMD=$MAGIC_CMD
19974
19975# Used on cygwin: DLL creation program.
19976DLLTOOL="$DLLTOOL"
19977
19978# Used on cygwin: object dumper.
19979OBJDUMP="$OBJDUMP"
19980
19981# Used on cygwin: assembler.
19982AS="$AS"
19983
19984# The name of the directory that contains temporary libtool files.
19985objdir=$objdir
19986
19987# How to create reloadable object files.
19988reload_flag=$lt_reload_flag
19989reload_cmds=$lt_reload_cmds
19990
19991# How to pass a linker flag through the compiler.
19992wl=$lt_lt_prog_compiler_wl_RC
19993
19994# Object file suffix (normally "o").
19995objext="$ac_objext"
19996
19997# Old archive suffix (normally "a").
19998libext="$libext"
19999
20000# Shared library suffix (normally ".so").
20001shrext_cmds='$shrext_cmds'
20002
20003# Executable file suffix (normally "").
20004exeext="$exeext"
20005
20006# Additional compiler flags for building library objects.
20007pic_flag=$lt_lt_prog_compiler_pic_RC
20008pic_mode=$pic_mode
20009
20010# What is the maximum length of a command?
20011max_cmd_len=$lt_cv_sys_max_cmd_len
20012
20013# Does compiler simultaneously support -c and -o options?
20014compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20015
20016# Must we lock files when doing compilation?
20017need_locks=$lt_need_locks
20018
20019# Do we need the lib prefix for modules?
20020need_lib_prefix=$need_lib_prefix
20021
20022# Do we need a version for libraries?
20023need_version=$need_version
20024
20025# Whether dlopen is supported.
20026dlopen_support=$enable_dlopen
20027
20028# Whether dlopen of programs is supported.
20029dlopen_self=$enable_dlopen_self
20030
20031# Whether dlopen of statically linked programs is supported.
20032dlopen_self_static=$enable_dlopen_self_static
20033
20034# Compiler flag to prevent dynamic linking.
20035link_static_flag=$lt_lt_prog_compiler_static_RC
20036
20037# Compiler flag to turn off builtin functions.
20038no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20039
20040# Compiler flag to allow reflexive dlopens.
20041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20042
20043# Compiler flag to generate shared objects directly from archives.
20044whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20045
20046# Compiler flag to generate thread-safe objects.
20047thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20048
20049# Library versioning type.
20050version_type=$version_type
20051
20052# Format of library name prefix.
20053libname_spec=$lt_libname_spec
20054
20055# List of archive names.  First name is the real one, the rest are links.
20056# The last name is the one that the linker finds with -lNAME.
20057library_names_spec=$lt_library_names_spec
20058
20059# The coded name of the library, if different from the real name.
20060soname_spec=$lt_soname_spec
20061
20062# Commands used to build and install an old-style archive.
20063RANLIB=$lt_RANLIB
20064old_archive_cmds=$lt_old_archive_cmds_RC
20065old_postinstall_cmds=$lt_old_postinstall_cmds
20066old_postuninstall_cmds=$lt_old_postuninstall_cmds
20067
20068# Create an old-style archive from a shared archive.
20069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20070
20071# Create a temporary old-style archive to link instead of a shared archive.
20072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20073
20074# Commands used to build and install a shared archive.
20075archive_cmds=$lt_archive_cmds_RC
20076archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20077postinstall_cmds=$lt_postinstall_cmds
20078postuninstall_cmds=$lt_postuninstall_cmds
20079
20080# Commands used to build a loadable module (assumed same as above if empty)
20081module_cmds=$lt_module_cmds_RC
20082module_expsym_cmds=$lt_module_expsym_cmds_RC
20083
20084# Commands to strip libraries.
20085old_striplib=$lt_old_striplib
20086striplib=$lt_striplib
20087
20088# Dependencies to place before the objects being linked to create a
20089# shared library.
20090predep_objects=$lt_predep_objects_RC
20091
20092# Dependencies to place after the objects being linked to create a
20093# shared library.
20094postdep_objects=$lt_postdep_objects_RC
20095
20096# Dependencies to place before the objects being linked to create a
20097# shared library.
20098predeps=$lt_predeps_RC
20099
20100# Dependencies to place after the objects being linked to create a
20101# shared library.
20102postdeps=$lt_postdeps_RC
20103
20104# The library search path used internally by the compiler when linking
20105# a shared library.
20106compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20107
20108# Method to check whether dependent libraries are shared objects.
20109deplibs_check_method=$lt_deplibs_check_method
20110
20111# Command to use when deplibs_check_method == file_magic.
20112file_magic_cmd=$lt_file_magic_cmd
20113
20114# Flag that allows shared libraries with undefined symbols to be built.
20115allow_undefined_flag=$lt_allow_undefined_flag_RC
20116
20117# Flag that forces no undefined symbols.
20118no_undefined_flag=$lt_no_undefined_flag_RC
20119
20120# Commands used to finish a libtool library installation in a directory.
20121finish_cmds=$lt_finish_cmds
20122
20123# Same as above, but a single script fragment to be evaled but not shown.
20124finish_eval=$lt_finish_eval
20125
20126# Take the output of nm and produce a listing of raw symbols and C names.
20127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20128
20129# Transform the output of nm in a proper C declaration
20130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20131
20132# Transform the output of nm in a C name address pair
20133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20134
20135# This is the shared library runtime path variable.
20136runpath_var=$runpath_var
20137
20138# This is the shared library path variable.
20139shlibpath_var=$shlibpath_var
20140
20141# Is shlibpath searched before the hard-coded library search path?
20142shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20143
20144# How to hardcode a shared library path into an executable.
20145hardcode_action=$hardcode_action_RC
20146
20147# Whether we should hardcode library paths into libraries.
20148hardcode_into_libs=$hardcode_into_libs
20149
20150# Flag to hardcode \$libdir into a binary during linking.
20151# This must work even if \$libdir does not exist.
20152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20153
20154# If ld is used when linking, flag to hardcode \$libdir into
20155# a binary during linking. This must work even if \$libdir does
20156# not exist.
20157hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20158
20159# Whether we need a single -rpath flag with a separated argument.
20160hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20161
20162# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20163# resulting binary.
20164hardcode_direct=$hardcode_direct_RC
20165
20166# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20167# resulting binary.
20168hardcode_minus_L=$hardcode_minus_L_RC
20169
20170# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20171# the resulting binary.
20172hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20173
20174# Set to yes if building a shared library automatically hardcodes DIR into the library
20175# and all subsequent libraries and executables linked against it.
20176hardcode_automatic=$hardcode_automatic_RC
20177
20178# Variables whose values should be saved in libtool wrapper scripts and
20179# restored at relink time.
20180variables_saved_for_relink="$variables_saved_for_relink"
20181
20182# Whether libtool must link a program against all its dependency libraries.
20183link_all_deplibs=$link_all_deplibs_RC
20184
20185# Compile-time system search path for libraries
20186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20187
20188# Run-time system search path for libraries
20189sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20190
20191# Fix the shell variable \$srcfile for the compiler.
20192fix_srcfile_path="$fix_srcfile_path_RC"
20193
20194# Set to yes if exported symbols are required.
20195always_export_symbols=$always_export_symbols_RC
20196
20197# The commands to list exported symbols.
20198export_symbols_cmds=$lt_export_symbols_cmds_RC
20199
20200# The commands to extract the exported symbol list from a shared archive.
20201extract_expsyms_cmds=$lt_extract_expsyms_cmds
20202
20203# Symbols that should not be listed in the preloaded symbols.
20204exclude_expsyms=$lt_exclude_expsyms_RC
20205
20206# Symbols that must always be exported.
20207include_expsyms=$lt_include_expsyms_RC
20208
20209# ### END LIBTOOL TAG CONFIG: $tagname
20210
20211__EOF__
20212
20213
20214else
20215  # If there is no Makefile yet, we rely on a make rule to execute
20216  # `config.status --recheck' to rerun these tests and create the
20217  # libtool script then.
20218  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20219  if test -f "$ltmain_in"; then
20220    test -f Makefile && make "$ltmain"
20221  fi
20222fi
20223
20224
20225ac_ext=cc
20226ac_cpp='$CXXCPP $CPPFLAGS'
20227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20230
20231CC="$lt_save_CC"
20232
20233	;;
20234
20235      *)
20236	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20237echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20238   { (exit 1); exit 1; }; }
20239	;;
20240      esac
20241
20242      # Append the new tag name to the list of available tags.
20243      if test -n "$tagname" ; then
20244      available_tags="$available_tags $tagname"
20245    fi
20246    fi
20247  done
20248  IFS="$lt_save_ifs"
20249
20250  # Now substitute the updated list of available tags.
20251  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20252    mv "${ofile}T" "$ofile"
20253    chmod +x "$ofile"
20254  else
20255    rm -f "${ofile}T"
20256    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20257echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20258   { (exit 1); exit 1; }; }
20259  fi
20260fi
20261
20262
20263
20264# This can be used to rebuild libtool when needed
20265LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20266
20267# Always use our own libtool.
20268LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20269
20270# Prevent multiple expansion
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20283 # AC_REQUIRE([AC_COIN_DLFCN_H])
20284
20285# NEW: If libtool exists in the directory higher up, we use that one
20286#      instead of creating a new one
20287
20288# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20289# out in front of this macro body. You'll notice that LIBTOOL is already
20290# defined here.  We'll have to count on this macro not being called if libtool
20291# already exists, or at least move the libtool fixes outside the conditional.
20292# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20293# This test is therefore removed.  -- lh, 061214 --
20294# if test "x$LIBTOOL" = x; then
20295
20296# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20307
20308
20309
20310  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20311echo "$as_me: Build is \"$build\"." >&6;}
20312  mydos2unix='| dos2unix'
20313  case $build in
20314    *-mingw*)
20315      CYGPATH_W=echo
20316      ;;
20317  esac
20318
20319  case $build in
20320    # Here we need to check if -m32 is specified.  If so, we need to correct
20321    # sys_lib_search_path_spec
20322    *-cygwin* | *-mingw*)
20323       case "$CXX" in
20324    clang* )
20325      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20326      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20327echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20328      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20329	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20330	  -e 's|libext="lib"|libext="a"|' \
20331      libtool > conftest.bla
20332      ;;
20333    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20334      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20335echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20336      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20337	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20338	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20339	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20340	  -e 's%lib /OUT:%lib -OUT:%' \
20341	  -e "s%cygpath -w%$CYGPATH_W%" \
20342	  -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%' \
20343	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20344	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20345	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20346	  -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"%' \
20347      libtool > conftest.bla
20348      ;;
20349    *)
20350      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20351echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20352      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20353	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20354	  -e 's|libext="lib"|libext="a"|' \
20355      libtool > conftest.bla
20356      ;;
20357  esac
20358  mv conftest.bla libtool
20359  chmod 755 libtool
20360
20361      ;;
20362    *x86_64-*)
20363      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20364        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20365echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20366        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20367        mv conftest.bla libtool
20368        chmod 755 libtool
20369      fi
20370      ;;
20371
20372    *-solaris*)
20373       if test "$GCC" = yes && \
20374     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20375    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20376    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20377      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20378echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20379      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20380      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20381      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20382	# AC_MSG_NOTICE(Compensating for broken gcc)
20383	for lib in $fixlibtmp ; do
20384	  if test -d "${lib}${hdwisa}" ; then
20385	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20386	  fi
20387	done
20388	syslibpath64="${syslibpath64} ${fixlibtmp}"
20389      else
20390	syslibpath64="$fixlibtmp"
20391      fi
20392      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20393      mv conftest.bla libtool
20394      chmod 755 libtool
20395    fi
20396    # AC_MSG_NOTICE(Result is )
20397    # $EGREP 'sys_lib_search_path_spec=' libtool
20398  fi
20399      ;;
20400    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20401    *-darwin*)
20402      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20403echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20404      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"/' \
20405        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20406      libtool > conftest.bla
20407
20408      mv conftest.bla libtool
20409      chmod 755 libtool
20410      ;;
20411  esac
20412# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20413# the macro. -- lh, 061214 --
20414# fi
20415
20416# AC_MSG_NOTICE([End libtool initialisation.])
20417
20418# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20419  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20420  # of the shared objects
20421  RPATH_FLAGS=
20422
20423if test $enable_shared = yes; then
20424  case $build in
20425    *-linux-*)
20426      if test "$GXX" = "yes"; then
20427        RPATH_FLAGS=
20428        for dir in $abs_lib_dir; do
20429          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20430        done
20431      fi ;;
20432    *-darwin*)
20433        RPATH_FLAGS=nothing ;;
20434    *-ibm-*)
20435      case "$CXX" in
20436      xlC* | */xlC* | mpxlC* | */mpxlC*)
20437        RPATH_FLAGS=nothing ;;
20438      esac ;;
20439    *-hp-*)
20440        RPATH_FLAGS=nothing ;;
20441    *-mingw32)
20442        RPATH_FLAGS=nothing ;;
20443    *-*-solaris*)
20444        RPATH_FLAGS=
20445        for dir in $abs_lib_dir; do
20446          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20447        done
20448  esac
20449
20450  if test "$RPATH_FLAGS" = ""; then
20451    { 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
20452echo "$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;}
20453  fi
20454  if test "$RPATH_FLAGS" = "nothing"; then
20455    RPATH_FLAGS=
20456  fi
20457fi
20458
20459
20460
20461
20462else
20463
20464  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20465echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20466  # get all missing information from the config.log file
20467
20468  # output variables and defines
20469  as_save_IFS=$IFS
20470  IFS='
20471'
20472  for oneline in `cat $coin_config_dir/config.status`; do
20473    case "$oneline" in
20474         # First some automake conditionals
20475      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20476      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20477      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20478      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20479        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20480#        echo "$command"
20481        eval "$command"
20482        ;;
20483      s,@DEFS@* )
20484        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20485#        echo "$command"
20486        eval "$command"
20487        ;;
20488    esac
20489  done
20490  IFS=$as_save_IFS
20491
20492  # And some defines (assuming here that the packages base dir
20493  # doesn't have a config.h file
20494  for word in $defsline; do
20495#    echo word $word
20496    case $word in
20497      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20498        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20499#        echo dd $i
20500        echo $i >>confdefs.h
20501        ;;
20502    esac
20503  done
20504fi
20505
20506# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20507
20508# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20509if test "${enable_dependency_linking+set}" = set; then
20510  enableval="$enable_dependency_linking"
20511  dependency_linking="$enableval"
20512else
20513  dependency_linking=auto
20514fi;
20515
20516if test "$dependency_linking" = auto; then
20517  # On Cygwin and AIX, building DLLs doesn't work
20518  dependency_linking=no
20519  if test x"$coin_disable_shared" = xno; then
20520    case $build in
20521      *-cygwin* | *-mingw*)
20522        case "$CC" in
20523          clang* )
20524            dependency_linking=yes
20525            ;;
20526          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20527            dependency_linking=no
20528            ;;
20529          *gcc*)
20530            dependency_linking=yes
20531            ;;
20532          *)
20533            dependency_linking=yes
20534            ;;
20535        esac
20536        ;;
20537      *)
20538        dependency_linking=yes
20539        ;;
20540    esac
20541  fi
20542fi
20543
20544if test "$dependency_linking" = yes ;
20545then
20546  LT_LDFLAGS="-no-undefined"
20547else
20548  LT_LDFLAGS=
20549fi
20550
20551
20552
20553if test "$dependency_linking" = yes; then
20554  DEPENDENCY_LINKING_TRUE=
20555  DEPENDENCY_LINKING_FALSE='#'
20556else
20557  DEPENDENCY_LINKING_TRUE='#'
20558  DEPENDENCY_LINKING_FALSE=
20559fi
20560
20561
20562# Check if we want to set the library version
20563echo "$as_me:$LINENO: checking if library version is set" >&5
20564echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20565if test x"$coin_libversion" != x; then
20566  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20567  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20568echo "${ECHO_T}$coin_libversion" >&6
20569else
20570  echo "$as_me:$LINENO: result: no" >&5
20571echo "${ECHO_T}no" >&6
20572fi
20573
20574
20575
20576#END
20577}
20578
20579# Get the EXEXT variable for CYGWIN
20580
20581
20582# Check if user wants to use readline library
20583# Check whether --enable-gnu-packages or --disable-gnu-packages was given.
20584if test "${enable_gnu_packages+set}" = set; then
20585  enableval="$enable_gnu_packages"
20586  coin_enable_gnu=$enableval
20587else
20588  coin_enable_gnu=no
20589fi;
20590
20591
20592
20593
20594
20595
20596
20597coin_has_readline=no
20598if test $coin_enable_gnu = yes; then
20599  #if test x"#include <stdio.h>" = x; then
20600#  hdr="#include <readline/readline.h>"
20601#else
20602#  hdr="#include <stdio.h>"
20603#fi
20604#AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr])
20605
20606for ac_header in readline/readline.h
20607do
20608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20609echo "$as_me:$LINENO: checking for $ac_header" >&5
20610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20611if eval "test \"\${$as_ac_Header+set}\" = set"; then
20612  echo $ECHO_N "(cached) $ECHO_C" >&6
20613else
20614  cat >conftest.$ac_ext <<_ACEOF
20615/* confdefs.h.  */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h.  */
20620#include <stdio.h>
20621
20622#include <$ac_header>
20623_ACEOF
20624rm -f conftest.$ac_objext
20625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20626  (eval $ac_compile) 2>conftest.er1
20627  ac_status=$?
20628  grep -v '^ *+' conftest.er1 >conftest.err
20629  rm -f conftest.er1
20630  cat conftest.err >&5
20631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632  (exit $ac_status); } &&
20633	 { ac_try='test -z "$ac_cxx_werror_flag"
20634			 || test ! -s conftest.err'
20635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636  (eval $ac_try) 2>&5
20637  ac_status=$?
20638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639  (exit $ac_status); }; } &&
20640	 { ac_try='test -s conftest.$ac_objext'
20641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642  (eval $ac_try) 2>&5
20643  ac_status=$?
20644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645  (exit $ac_status); }; }; then
20646  eval "$as_ac_Header=yes"
20647else
20648  echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651eval "$as_ac_Header=no"
20652fi
20653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20654fi
20655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20657if test `eval echo '${'$as_ac_Header'}'` = yes; then
20658  cat >>confdefs.h <<_ACEOF
20659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20660_ACEOF
20661 coin_has_readline=yes
20662fi
20663
20664done
20665
20666
20667
20668  coin_save_LIBS="$LIBS"
20669  LIBS=
20670  # First we check if tputs and friends are available
20671  if test $coin_has_readline = yes; then
20672    echo "$as_me:$LINENO: checking for library containing tputs" >&5
20673echo $ECHO_N "checking for library containing tputs... $ECHO_C" >&6
20674if test "${ac_cv_search_tputs+set}" = set; then
20675  echo $ECHO_N "(cached) $ECHO_C" >&6
20676else
20677  ac_func_search_save_LIBS=$LIBS
20678ac_cv_search_tputs=no
20679cat >conftest.$ac_ext <<_ACEOF
20680/* confdefs.h.  */
20681_ACEOF
20682cat confdefs.h >>conftest.$ac_ext
20683cat >>conftest.$ac_ext <<_ACEOF
20684/* end confdefs.h.  */
20685
20686/* Override any gcc2 internal prototype to avoid an error.  */
20687#ifdef __cplusplus
20688extern "C"
20689#endif
20690/* We use char because int might match the return type of a gcc2
20691   builtin and then its argument prototype would still apply.  */
20692char tputs ();
20693int
20694main ()
20695{
20696tputs ();
20697  ;
20698  return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext conftest$ac_exeext
20702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20703  (eval $ac_link) 2>conftest.er1
20704  ac_status=$?
20705  grep -v '^ *+' conftest.er1 >conftest.err
20706  rm -f conftest.er1
20707  cat conftest.err >&5
20708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709  (exit $ac_status); } &&
20710	 { ac_try='test -z "$ac_cxx_werror_flag"
20711			 || test ! -s conftest.err'
20712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713  (eval $ac_try) 2>&5
20714  ac_status=$?
20715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716  (exit $ac_status); }; } &&
20717	 { ac_try='test -s conftest$ac_exeext'
20718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719  (eval $ac_try) 2>&5
20720  ac_status=$?
20721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722  (exit $ac_status); }; }; then
20723  ac_cv_search_tputs="none required"
20724else
20725  echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728fi
20729rm -f conftest.err conftest.$ac_objext \
20730      conftest$ac_exeext conftest.$ac_ext
20731if test "$ac_cv_search_tputs" = no; then
20732  for ac_lib in ncurses termcap curses; do
20733    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20734    cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h.  */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h.  */
20740
20741/* Override any gcc2 internal prototype to avoid an error.  */
20742#ifdef __cplusplus
20743extern "C"
20744#endif
20745/* We use char because int might match the return type of a gcc2
20746   builtin and then its argument prototype would still apply.  */
20747char tputs ();
20748int
20749main ()
20750{
20751tputs ();
20752  ;
20753  return 0;
20754}
20755_ACEOF
20756rm -f conftest.$ac_objext conftest$ac_exeext
20757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20758  (eval $ac_link) 2>conftest.er1
20759  ac_status=$?
20760  grep -v '^ *+' conftest.er1 >conftest.err
20761  rm -f conftest.er1
20762  cat conftest.err >&5
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); } &&
20765	 { ac_try='test -z "$ac_cxx_werror_flag"
20766			 || test ! -s conftest.err'
20767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768  (eval $ac_try) 2>&5
20769  ac_status=$?
20770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771  (exit $ac_status); }; } &&
20772	 { ac_try='test -s conftest$ac_exeext'
20773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774  (eval $ac_try) 2>&5
20775  ac_status=$?
20776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777  (exit $ac_status); }; }; then
20778  ac_cv_search_tputs="-l$ac_lib"
20779break
20780else
20781  echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784fi
20785rm -f conftest.err conftest.$ac_objext \
20786      conftest$ac_exeext conftest.$ac_ext
20787  done
20788fi
20789LIBS=$ac_func_search_save_LIBS
20790fi
20791echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
20792echo "${ECHO_T}$ac_cv_search_tputs" >&6
20793if test "$ac_cv_search_tputs" != no; then
20794  test "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS"
20795
20796else
20797  coin_has_readline=no
20798fi
20799
20800  fi
20801
20802  # Now we check for readline
20803  if test $coin_has_readline = yes; then
20804    echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20805echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20806if test "${ac_cv_lib_readline_readline+set}" = set; then
20807  echo $ECHO_N "(cached) $ECHO_C" >&6
20808else
20809  ac_check_lib_save_LIBS=$LIBS
20810LIBS="-lreadline  $LIBS"
20811cat >conftest.$ac_ext <<_ACEOF
20812/* confdefs.h.  */
20813_ACEOF
20814cat confdefs.h >>conftest.$ac_ext
20815cat >>conftest.$ac_ext <<_ACEOF
20816/* end confdefs.h.  */
20817
20818/* Override any gcc2 internal prototype to avoid an error.  */
20819#ifdef __cplusplus
20820extern "C"
20821#endif
20822/* We use char because int might match the return type of a gcc2
20823   builtin and then its argument prototype would still apply.  */
20824char readline ();
20825int
20826main ()
20827{
20828readline ();
20829  ;
20830  return 0;
20831}
20832_ACEOF
20833rm -f conftest.$ac_objext conftest$ac_exeext
20834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20835  (eval $ac_link) 2>conftest.er1
20836  ac_status=$?
20837  grep -v '^ *+' conftest.er1 >conftest.err
20838  rm -f conftest.er1
20839  cat conftest.err >&5
20840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841  (exit $ac_status); } &&
20842	 { ac_try='test -z "$ac_cxx_werror_flag"
20843			 || test ! -s conftest.err'
20844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845  (eval $ac_try) 2>&5
20846  ac_status=$?
20847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848  (exit $ac_status); }; } &&
20849	 { ac_try='test -s conftest$ac_exeext'
20850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851  (eval $ac_try) 2>&5
20852  ac_status=$?
20853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854  (exit $ac_status); }; }; then
20855  ac_cv_lib_readline_readline=yes
20856else
20857  echo "$as_me: failed program was:" >&5
20858sed 's/^/| /' conftest.$ac_ext >&5
20859
20860ac_cv_lib_readline_readline=no
20861fi
20862rm -f conftest.err conftest.$ac_objext \
20863      conftest$ac_exeext conftest.$ac_ext
20864LIBS=$ac_check_lib_save_LIBS
20865fi
20866echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20867echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20868if test $ac_cv_lib_readline_readline = yes; then
20869  :
20870else
20871  coin_has_readline=no
20872fi
20873
20874  fi
20875
20876  if test $coin_has_readline = yes; then
20877
20878
20879cat >>confdefs.h <<\_ACEOF
20880#define COIN_HAS_READLINE 1
20881_ACEOF
20882
20883  fi
20884
20885  LIBS="$coin_save_LIBS"
20886fi
20887
20888
20889
20890if test $coin_has_readline = yes; then
20891  COIN_HAS_READLINE_TRUE=
20892  COIN_HAS_READLINE_FALSE='#'
20893else
20894  COIN_HAS_READLINE_TRUE='#'
20895  COIN_HAS_READLINE_FALSE=
20896fi
20897
20898
20899#############################################################################
20900#                              COIN components                              #
20901#############################################################################
20902
20903
20904
20905# Check whether --enable-pkg-config or --disable-pkg-config was given.
20906if test "${enable_pkg_config+set}" = set; then
20907  enableval="$enable_pkg_config"
20908  use_pkgconfig="$enableval"
20909else
20910  if test x$coin_cc_is_cl = xtrue; then
20911     use_pkgconfig=no
20912   else
20913     use_pkgconfig=yes
20914   fi
20915fi;
20916
20917if test $use_pkgconfig = yes ; then
20918  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20919    if test -n "$ac_tool_prefix"; then
20920  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20921set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20922echo "$as_me:$LINENO: checking for $ac_word" >&5
20923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20924if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20925  echo $ECHO_N "(cached) $ECHO_C" >&6
20926else
20927  if test -n "$PKG_CONFIG"; then
20928  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20929else
20930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20931for as_dir in $PATH
20932do
20933  IFS=$as_save_IFS
20934  test -z "$as_dir" && as_dir=.
20935  for ac_exec_ext in '' $ac_executable_extensions; do
20936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20937    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20939    break 2
20940  fi
20941done
20942done
20943
20944fi
20945fi
20946PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20947if test -n "$PKG_CONFIG"; then
20948  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20949echo "${ECHO_T}$PKG_CONFIG" >&6
20950else
20951  echo "$as_me:$LINENO: result: no" >&5
20952echo "${ECHO_T}no" >&6
20953fi
20954
20955fi
20956if test -z "$ac_cv_prog_PKG_CONFIG"; then
20957  ac_ct_PKG_CONFIG=$PKG_CONFIG
20958  # Extract the first word of "pkg-config", so it can be a program name with args.
20959set dummy pkg-config; ac_word=$2
20960echo "$as_me:$LINENO: checking for $ac_word" >&5
20961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20962if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20963  echo $ECHO_N "(cached) $ECHO_C" >&6
20964else
20965  if test -n "$ac_ct_PKG_CONFIG"; then
20966  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20967else
20968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969for as_dir in $PATH
20970do
20971  IFS=$as_save_IFS
20972  test -z "$as_dir" && as_dir=.
20973  for ac_exec_ext in '' $ac_executable_extensions; do
20974  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20975    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20977    break 2
20978  fi
20979done
20980done
20981
20982fi
20983fi
20984ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20985if test -n "$ac_ct_PKG_CONFIG"; then
20986  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20987echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20988else
20989  echo "$as_me:$LINENO: result: no" >&5
20990echo "${ECHO_T}no" >&6
20991fi
20992
20993  PKG_CONFIG=$ac_ct_PKG_CONFIG
20994else
20995  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20996fi
20997
20998  fi
20999  if test -n "$PKG_CONFIG"; then
21000    _pkg_min_version=0.16.0
21001    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21002echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
21003    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21004      echo "$as_me:$LINENO: result: yes" >&5
21005echo "${ECHO_T}yes" >&6
21006    else
21007      echo "$as_me:$LINENO: result: no" >&5
21008echo "${ECHO_T}no" >&6
21009      PKG_CONFIG=""
21010    fi
21011  fi
21012
21013  # check if pkg-config supports the short-errors flag
21014  if test -n "$PKG_CONFIG" && \
21015    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21016    pkg_short_errors=" --short-errors "
21017  else
21018    pkg_short_errors=""
21019  fi
21020fi
21021
21022
21023
21024if test -n "$PKG_CONFIG"; then
21025  COIN_HAS_PKGCONFIG_TRUE=
21026  COIN_HAS_PKGCONFIG_FALSE='#'
21027else
21028  COIN_HAS_PKGCONFIG_TRUE='#'
21029  COIN_HAS_PKGCONFIG_FALSE=
21030fi
21031
21032
21033
21034# assemble pkg-config search path for installed projects
21035COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21036
21037# 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
21038# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
21039# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
21040if test "x${prefix}" = xNONE ; then
21041  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
21042else
21043  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
21044fi
21045
21046
21047# Check whether --with-coin-instdir or --without-coin-instdir was given.
21048if test "${with_coin_instdir+set}" = set; then
21049  withval="$with_coin_instdir"
21050  if test -d "$withval"; then : ; else
21051     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
21052echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
21053   { (exit 1); exit 1; }; }
21054   fi
21055   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
21056
21057fi;
21058
21059
21060
21061# assemble additional pkg-config search paths for uninstalled projects
21062if test x$coin_projectdir = xyes ; then
21063  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
21064  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
21065  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
21066  # 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)
21067  COIN_PKG_CONFIG_PATH_UNINSTALLED=
21068  if test -f ../coin_subdirs.txt ; then
21069    for i in `cat ../coin_subdirs.txt` ; do
21070      if test -d ../$i ; then
21071        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
21072      fi
21073      if test -d ../$i/pkgconfig ; then
21074        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
21075      fi
21076    done
21077  fi
21078
21079  if test -f ../../coin_subdirs.txt ; then
21080    for i in `cat ../../coin_subdirs.txt` ; do
21081      if test -d ../../$i ; then
21082        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
21083      fi
21084      if test -d ../../$i/pkgconfig ; then
21085        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
21086      fi
21087    done
21088  fi
21089
21090
21091fi
21092
21093if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
21094  { 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
21095echo "$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;}
21096fi
21097
21098
21099
21100echo "$as_me:$LINENO: checking for COIN-OR package CoinDepend" >&5
21101echo $ECHO_N "checking for COIN-OR package CoinDepend... $ECHO_C" >&6
21102
21103coin_has_coindepend=notGiven
21104
21105# check if user wants to skip package in any case
21106if test x"$COIN_SKIP_PROJECTS" != x; then
21107  for dir in $COIN_SKIP_PROJECTS; do
21108    if test $dir = "CoinDepend"; then
21109      coin_has_coindepend=skipping
21110    fi
21111  done
21112fi
21113
21114if test "$coin_has_coindepend" != skipping; then
21115
21116# Check whether --with-m4_tolower(CoinDepend) or --without-m4_tolower(CoinDepend) was given.
21117if test "${with_coindepend+set}" = set; then
21118  withval="$with_coindepend"
21119  if test "$withval" = no ; then
21120       coin_has_coindepend=skipping
21121     fi
21122
21123fi;
21124fi
21125
21126COINDEPEND_LIBS=
21127COINDEPEND_CFLAGS=
21128COINDEPEND_DATA=
21129COINDEPEND_DEPENDENCIES=
21130COINDEPEND_PCLIBS=
21131COINDEPEND_PCREQUIRES=
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21150if test $coin_has_coindepend != skipping; then
21151
21152# Check whether --with-m4_tolower(CoinDepend)-lib or --without-m4_tolower(CoinDepend)-lib was given.
21153if test "${with_coindepend_lib+set}" = set; then
21154  withval="$with_coindepend_lib"
21155  if test "$withval" = no ; then
21156       coin_has_coindepend=skipping
21157     else
21158       coin_has_coindepend=yes
21159       COINDEPEND_LIBS="$withval"
21160       COINDEPEND_PCLIBS="$withval"
21161
21162         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
21163         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
21164
21165       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21166       if test -z "$PKG_CONFIG" ; then
21167         COINDEPEND_LIBS_INSTALLED="$withval"
21168         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
21169       fi
21170     fi
21171
21172fi;
21173fi
21174
21175if test $coin_has_coindepend != skipping; then
21176
21177# Check whether --with-m4_tolower(CoinDepend)-incdir or --without-m4_tolower(CoinDepend)-incdir was given.
21178if test "${with_coindepend_incdir+set}" = set; then
21179  withval="$with_coindepend_incdir"
21180  if test "$withval" = no ; then
21181       coin_has_coindepend=skipping
21182     else
21183       coin_has_coindepend=yes
21184       COINDEPEND_CFLAGS="-I`${CYGPATH_W} $withval`"
21185       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
21186       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21187       if test -z "$PKG_CONFIG" ; then
21188         COINDEPEND_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS"
21189         SYMPHONYLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
21190       fi
21191     fi
21192
21193fi;
21194fi
21195
21196if test $coin_has_coindepend != skipping; then
21197
21198# Check whether --with-m4_tolower(CoinDepend)-datadir or --without-m4_tolower(CoinDepend)-datadir was given.
21199if test "${with_coindepend_datadir+set}" = set; then
21200  withval="$with_coindepend_datadir"
21201  if test "$withval" = no ; then
21202       coin_has_coindepend=skipping
21203     else
21204       coin_has_coindepend=yes
21205       COINDEPEND_DATA="$withval"
21206       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21207       if test -z "$PKG_CONFIG" ; then
21208         COINDEPEND_DATA_INSTALLED="$withval"
21209       fi
21210     fi
21211
21212fi;
21213fi
21214
21215if test $coin_has_coindepend = notGiven; then
21216  if test -n "$PKG_CONFIG" ; then
21217    # set search path for pkg-config
21218    # need to export variable to be sure that the following pkg-config gets these values
21219    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21220    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21221    export PKG_CONFIG_PATH
21222
21223    # let pkg-config do it's magic
21224
21225
21226
21227if test -n "$PKG_CONFIG" ; then
21228  if $PKG_CONFIG --exists "coinutils osi"; then
21229    COINDEPEND_VERSIONS=`$PKG_CONFIG --modversion "coinutils osi" 2>/dev/null | tr '\n' ' '`
21230     cflags=`$PKG_CONFIG --cflags "coinutils osi" 2>/dev/null`
21231    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21232	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21233	# but only do this if is not trivial
21234    if test "$CYGPATH_W" != "echo" ; then
21235      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21236      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21237    fi
21238    COINDEPEND_CFLAGS="$cflags"
21239    COINDEPEND_LIBS=`$PKG_CONFIG --libs "coinutils osi" 2>/dev/null`
21240    COINDEPEND_DATA=`$PKG_CONFIG --variable=datadir "coinutils osi" 2>/dev/null`
21241     coin_has_coindepend=yes
21242        echo "$as_me:$LINENO: result: yes: $COINDEPEND_VERSIONS" >&5
21243echo "${ECHO_T}yes: $COINDEPEND_VERSIONS" >&6
21244
21245        # adjust linker flags for (i)cl compiler
21246        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21247        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21248        then
21249          COINDEPEND_LIBS=`echo " $COINDEPEND_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21250        fi
21251        COINDEPEND_PCREQUIRES="coinutils osi"
21252
21253        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
21254
21255          SYMPHONYLIB_PCREQUIRES="coinutils osi $SYMPHONYLIB_PCREQUIRES"
21256          SYMPHONYLIB_CFLAGS="$COINDEPEND_CFLAGS $SYMPHONYLIB_CFLAGS"
21257          SYMPHONYLIB_LIBS="$COINDEPEND_LIBS $SYMPHONYLIB_LIBS"
21258
21259
21260
21261  else
21262    COINDEPEND_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils osi"`
21263      coin_has_coindepend=notGiven
21264        echo "$as_me:$LINENO: result: not given: $COINDEPEND_PKG_ERRORS" >&5
21265echo "${ECHO_T}not given: $COINDEPEND_PKG_ERRORS" >&6
21266
21267  fi
21268else
21269  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&5
21270echo "$as_me: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&2;}
21271   { (exit 1); exit 1; }; }
21272fi
21273
21274
21275
21276
21277    # reset PKG_CONFIG_PATH variable
21278    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21279    export PKG_CONFIG_PATH
21280
21281  else
21282    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21283echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21284
21285echo "$as_me:$LINENO: checking for COIN-OR package CoinDepend (fallback)" >&5
21286echo $ECHO_N "checking for COIN-OR package CoinDepend (fallback)... $ECHO_C" >&6
21287
21288coin_has_coindepend=notGiven
21289COINDEPEND_LIBS=
21290COINDEPEND_LIBS_INSTALLED=
21291COINDEPEND_CFLAGS=
21292COINDEPEND_CFLAGS_INSTALLED=
21293COINDEPEND_DATA=
21294COINDEPEND_DATA_INSTALLED=
21295COINDEPEND_PCLIBS=
21296COINDEPEND_PCREQUIRES=
21297
21298# initial list of dependencies is "coinutils osi", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21299projtoprocess="coinutils osi"
21300
21301# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21302# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21303# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21304# also, we setup the DATA variable
21305allproj=""
21306allpcfiles=""
21307allpcifiles=""
21308while test "x$projtoprocess" != x ; do
21309
21310  for proj in $projtoprocess ; do
21311    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21312    pcfile=""
21313    save_IFS="$IFS"
21314    IFS=":"
21315    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21316      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21317      if test -r "$dir/${proj}-uninstalled.pc" ; then
21318        pcfile="$dir/$proj-uninstalled.pc"
21319        if test -r "$dir/${proj}.pc" ; then
21320          pcifile="$dir/${proj}.pc"
21321        else
21322          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21323echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21324          pcifile=
21325        fi
21326        break
21327      fi
21328    done
21329    IFS="$save_IFS"
21330
21331    if test "x$pcfile" != x ; then
21332      # read dependencies from $pcfile and filter it
21333      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
21334
21335      # add projrequires to the front of the list of projects that have to be processed next
21336      # at the same time, remove $proj from this list
21337      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21338
21339      # read DATA from $pcfile, if _DATA is still empty
21340      if test "x$COINDEPEND_DATA" = x ; then
21341        projdatadir=
21342        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21343        eval `sh -c "$pcfilemod"`
21344        COINDEPEND_DATA="$projdatadir"
21345      fi
21346
21347      allproj="$allproj $proj"
21348      allpcfiles="$pcfile:$allpcfiles"
21349
21350    else
21351      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21352echo "${ECHO_T}no, dependency $proj not available" >&6
21353      allproj=fail
21354      break 2
21355    fi
21356
21357    if test "x$pcifile" != x ; then
21358      allpcifiles="$pcifile:$allpcifiles"
21359
21360      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21361      if test "x$COINDEPEND_DATA_INSTALLED" = x ; then
21362        projdatadir=
21363        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21364        eval `sh -c "$pcifilemod"`
21365        if test "${CYGPATH_W}" != "echo"; then
21366          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21367        fi
21368        COINDEPEND_DATA_INSTALLED="$projdatadir"
21369      fi
21370
21371    fi
21372
21373    break
21374  done
21375
21376  # remove spaces on begin of $projtoprocess
21377  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21378
21379done
21380
21381if test "$allproj" != fail ; then
21382
21383  # now go through the list of .pc files and assemble compiler and linker flags
21384  # important is here to obey the reverse order that has been setup before,
21385  # since then libraries that are required by several others should be after these other libraries
21386  pcfilesprocessed=""
21387
21388  save_IFS="$IFS"
21389  IFS=":"
21390  for pcfile in $allpcfiles ; do
21391
21392    # if $pcfile has been processed already, skip this round
21393    if test "x$pcfilesprocessed" != x ; then
21394      for pcfiledone in $pcfilesprocessed ; do
21395        if test "$pcfiledone" = "$pcfile" ; then
21396          continue 2
21397        fi
21398      done
21399    fi
21400
21401    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21402    #   replace "Libs:" by "echo projlibs="
21403    #   replace "Cflags:" by "echo projcflags="
21404    #   remove every line starting with <some word>:
21405    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21406
21407    # set projcflags and projlibs variables by running $pcfilemod
21408    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21409    projcflags=
21410    projlibs=
21411    IFS="$save_IFS"
21412    eval `sh -c "$pcfilemod"`
21413    IFS=":"
21414
21415    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21416    if test "${CYGPATH_W}" != "echo"; then
21417      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21418    fi
21419    COINDEPEND_CFLAGS="$projcflags $COINDEPEND_CFLAGS"
21420
21421    # set LIBS variable
21422    COINDEPEND_LIBS="$projlibs $COINDEPEND_LIBS"
21423
21424    # remember that we have processed $pcfile
21425    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21426
21427  done
21428  IFS="$save_IFS"
21429
21430
21431  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21432  # important is here again to obey the reverse order that has been setup before,
21433  # since then libraries that are required by several others should be after these other libraries
21434  pcfilesprocessed=""
21435
21436  save_IFS="$IFS"
21437  IFS=":"
21438  for pcfile in $allpcifiles ; do
21439
21440    # if $pcfile has been processed already, skip this round
21441    if test "x$pcfilesprocessed" != x ; then
21442      for pcfiledone in $pcfilesprocessed ; do
21443        if test "$pcfiledone" = "$pcfile" ; then
21444          continue 2
21445        fi
21446      done
21447    fi
21448
21449    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21450    #   replace "Libs:" by "echo projlibs="
21451    #   replace "Cflags:" by "echo projcflags="
21452    #   remove every line starting with <some word>:
21453    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21454
21455    # set projcflags and projlibs variables by running $pcfilemod
21456    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21457    projcflags=
21458    projlibs=
21459    IFS="$save_IFS"
21460    eval `sh -c "$pcfilemod"`
21461    IFS=":"
21462
21463    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21464    if test "${CYGPATH_W}" != "echo"; then
21465      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21466    fi
21467    COINDEPEND_CFLAGS_INSTALLED="$projcflags $COINDEPEND_CFLAGS_INSTALLED"
21468
21469    # set LIBS variable
21470    COINDEPEND_LIBS_INSTALLED="$projlibs $COINDEPEND_LIBS_INSTALLED"
21471
21472    # remember that we have processed $pcfile
21473    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21474
21475  done
21476  IFS="$save_IFS"
21477
21478
21479  # finish up
21480  coin_has_coindepend=yes
21481  echo "$as_me:$LINENO: result: yes" >&5
21482echo "${ECHO_T}yes" >&6
21483
21484cat >>confdefs.h <<\_ACEOF
21485#define COIN_HAS_COINDEPEND 1
21486_ACEOF
21487
21488
21489  # adjust linker flags for (i)cl compiler
21490  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21491  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21492  #    everything of the form "-lname" by "libname.lib", and
21493  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21494  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21495  then
21496    COINDEPEND_LIBS=`echo " $COINDEPEND_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21497    COINDEPEND_LIBS_INSTALLED=`echo " $COINDEPEND_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21498  fi
21499
21500  COINDEPEND_PCREQUIRES="coinutils osi"
21501
21502    SYMPHONYLIB_PCREQUIRES="coinutils osi $SYMPHONYLIB_PCREQUIRES"
21503    SYMPHONYLIB_CFLAGS="$COINDEPEND_CFLAGS $SYMPHONYLIB_CFLAGS"
21504    SYMPHONYLIB_LIBS="$COINDEPEND_LIBS $SYMPHONYLIB_LIBS"
21505    SYMPHONYLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
21506    SYMPHONYLIB_LIBS_INSTALLED="$COINDEPEND_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
21507
21508
21509fi
21510
21511
21512
21513if test $coin_has_coindepend != notGiven &&
21514                test $coin_has_coindepend != skipping; then
21515  COIN_HAS_COINDEPEND_TRUE=
21516  COIN_HAS_COINDEPEND_FALSE='#'
21517else
21518  COIN_HAS_COINDEPEND_TRUE='#'
21519  COIN_HAS_COINDEPEND_FALSE=
21520fi
21521
21522
21523
21524  fi
21525
21526else
21527  echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
21528echo "${ECHO_T}$coin_has_coindepend" >&6
21529fi
21530
21531if test $coin_has_coindepend != skipping &&
21532   test $coin_has_coindepend != notGiven ; then
21533
21534cat >>confdefs.h <<\_ACEOF
21535#define COIN_HAS_COINDEPEND 1
21536_ACEOF
21537
21538
21539  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21540if test "${enable_interpackage_dependencies+set}" = set; then
21541  enableval="$enable_interpackage_dependencies"
21542
21543else
21544  enable_interpackage_dependencies=yes
21545fi;
21546
21547  if test $enable_interpackage_dependencies = yes ; then
21548     # construct dependencies variables from LIBS variables
21549     # we add an extra space in LIBS so we can substitute out everything starting with " -"
21550     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21551     # then remove everything of the form -xxx
21552     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21553     COINDEPEND_DEPENDENCIES=`echo " $COINDEPEND_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21554
21555       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21556
21557  fi
21558
21559  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
21560    if test -n "$COINDEPEND_CFLAGS" ; then
21561      { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
21562echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
21563    fi
21564    if test -n "$COINDEPEND_LIBS" ; then
21565      { echo "$as_me:$LINENO: CoinDepend LIBS   are $COINDEPEND_LIBS" >&5
21566echo "$as_me: CoinDepend LIBS   are $COINDEPEND_LIBS" >&6;}
21567    fi
21568    if test -n "$COINDEPEND_DEPENDENCIES" ; then
21569      { echo "$as_me:$LINENO: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&5
21570echo "$as_me: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&6;}
21571    fi
21572    if test -n "$COINDEPEND_DATA" ; then
21573      { echo "$as_me:$LINENO: CoinDepend DATA   is  $COINDEPEND_DATA" >&5
21574echo "$as_me: CoinDepend DATA   is  $COINDEPEND_DATA" >&6;}
21575    fi
21576    if test -n "$COINDEPEND_PCLIBS" ; then
21577      { echo "$as_me:$LINENO: CoinDepend PCLIBS are $COINDEPEND_PCLIBS" >&5
21578echo "$as_me: CoinDepend PCLIBS are $COINDEPEND_PCLIBS" >&6;}
21579    fi
21580    if test -n "$COINDEPEND_PCREQUIRES" ; then
21581      { echo "$as_me:$LINENO: CoinDepend PCREQUIRES are $COINDEPEND_PCREQUIRES" >&5
21582echo "$as_me: CoinDepend PCREQUIRES are $COINDEPEND_PCREQUIRES" >&6;}
21583    fi
21584
21585      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
21586echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
21587      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
21588echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
21589      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
21590echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
21591
21592  fi
21593fi
21594
21595# Define the Makefile conditional
21596
21597
21598if test $coin_has_coindepend != notGiven &&
21599                test $coin_has_coindepend != skipping; then
21600  COIN_HAS_COINDEPEND_TRUE=
21601  COIN_HAS_COINDEPEND_FALSE='#'
21602else
21603  COIN_HAS_COINDEPEND_TRUE='#'
21604  COIN_HAS_COINDEPEND_FALSE=
21605fi
21606
21607
21608
21609if test $coin_has_coindepend != yes ; then
21610  { { echo "$as_me:$LINENO: error: Required package CoinUtils or Osi not available." >&5
21611echo "$as_me: error: Required package CoinUtils or Osi not available." >&2;}
21612   { (exit 1); exit 1; }; }
21613fi
21614
21615
21616echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
21617echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
21618
21619coin_has_clp=notGiven
21620
21621# check if user wants to skip package in any case
21622if test x"$COIN_SKIP_PROJECTS" != x; then
21623  for dir in $COIN_SKIP_PROJECTS; do
21624    if test $dir = "Clp"; then
21625      coin_has_clp=skipping
21626    fi
21627  done
21628fi
21629
21630if test "$coin_has_clp" != skipping; then
21631
21632# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
21633if test "${with_clp+set}" = set; then
21634  withval="$with_clp"
21635  if test "$withval" = no ; then
21636       coin_has_clp=skipping
21637     fi
21638
21639fi;
21640fi
21641
21642CLP_LIBS=
21643CLP_CFLAGS=
21644CLP_DATA=
21645CLP_DEPENDENCIES=
21646CLP_PCLIBS=
21647CLP_PCREQUIRES=
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21666if test $coin_has_clp != skipping; then
21667
21668# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
21669if test "${with_clp_lib+set}" = set; then
21670  withval="$with_clp_lib"
21671  if test "$withval" = no ; then
21672       coin_has_clp=skipping
21673     else
21674       coin_has_clp=yes
21675       CLP_LIBS="$withval"
21676       CLP_PCLIBS="$withval"
21677
21678         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
21679         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
21680
21681       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21682       if test -z "$PKG_CONFIG" ; then
21683         CLP_LIBS_INSTALLED="$withval"
21684         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
21685       fi
21686     fi
21687
21688fi;
21689fi
21690
21691if test $coin_has_clp != skipping; then
21692
21693# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
21694if test "${with_clp_incdir+set}" = set; then
21695  withval="$with_clp_incdir"
21696  if test "$withval" = no ; then
21697       coin_has_clp=skipping
21698     else
21699       coin_has_clp=yes
21700       CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
21701       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
21702       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21703       if test -z "$PKG_CONFIG" ; then
21704         CLP_CFLAGS_INSTALLED="$CLP_CFLAGS"
21705         SYMPHONYLIB_CFLAGS_INSTALLED="$CLP_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
21706       fi
21707     fi
21708
21709fi;
21710fi
21711
21712if test $coin_has_clp != skipping; then
21713
21714# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
21715if test "${with_clp_datadir+set}" = set; then
21716  withval="$with_clp_datadir"
21717  if test "$withval" = no ; then
21718       coin_has_clp=skipping
21719     else
21720       coin_has_clp=yes
21721       CLP_DATA="$withval"
21722       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21723       if test -z "$PKG_CONFIG" ; then
21724         CLP_DATA_INSTALLED="$withval"
21725       fi
21726     fi
21727
21728fi;
21729fi
21730
21731if test $coin_has_clp = notGiven; then
21732  if test -n "$PKG_CONFIG" ; then
21733    # set search path for pkg-config
21734    # need to export variable to be sure that the following pkg-config gets these values
21735    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21736    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21737    export PKG_CONFIG_PATH
21738
21739    # let pkg-config do it's magic
21740
21741
21742
21743if test -n "$PKG_CONFIG" ; then
21744  if $PKG_CONFIG --exists "osi-clp"; then
21745    CLP_VERSIONS=`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`
21746     cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
21747    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21748	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21749	# but only do this if is not trivial
21750    if test "$CYGPATH_W" != "echo" ; then
21751      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21752      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21753    fi
21754    CLP_CFLAGS="$cflags"
21755    CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
21756    CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
21757     coin_has_clp=yes
21758        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
21759echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
21760
21761        # adjust linker flags for (i)cl compiler
21762        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21763        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21764        then
21765          CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21766        fi
21767        CLP_PCREQUIRES="osi-clp"
21768
21769        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
21770
21771          SYMPHONYLIB_PCREQUIRES="osi-clp $SYMPHONYLIB_PCREQUIRES"
21772          SYMPHONYLIB_CFLAGS="$CLP_CFLAGS $SYMPHONYLIB_CFLAGS"
21773          SYMPHONYLIB_LIBS="$CLP_LIBS $SYMPHONYLIB_LIBS"
21774
21775
21776
21777  else
21778    CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
21779      coin_has_clp=notGiven
21780        echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
21781echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
21782
21783  fi
21784else
21785  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
21786echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
21787   { (exit 1); exit 1; }; }
21788fi
21789
21790
21791
21792
21793    # reset PKG_CONFIG_PATH variable
21794    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21795    export PKG_CONFIG_PATH
21796
21797  else
21798    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21799echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21800
21801echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
21802echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
21803
21804coin_has_clp=notGiven
21805CLP_LIBS=
21806CLP_LIBS_INSTALLED=
21807CLP_CFLAGS=
21808CLP_CFLAGS_INSTALLED=
21809CLP_DATA=
21810CLP_DATA_INSTALLED=
21811CLP_PCLIBS=
21812CLP_PCREQUIRES=
21813
21814# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21815projtoprocess="osi-clp"
21816
21817# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21818# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21819# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21820# also, we setup the DATA variable
21821allproj=""
21822allpcfiles=""
21823allpcifiles=""
21824while test "x$projtoprocess" != x ; do
21825
21826  for proj in $projtoprocess ; do
21827    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21828    pcfile=""
21829    save_IFS="$IFS"
21830    IFS=":"
21831    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21832      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21833      if test -r "$dir/${proj}-uninstalled.pc" ; then
21834        pcfile="$dir/$proj-uninstalled.pc"
21835        if test -r "$dir/${proj}.pc" ; then
21836          pcifile="$dir/${proj}.pc"
21837        else
21838          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21839echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21840          pcifile=
21841        fi
21842        break
21843      fi
21844    done
21845    IFS="$save_IFS"
21846
21847    if test "x$pcfile" != x ; then
21848      # read dependencies from $pcfile and filter it
21849      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
21850
21851      # add projrequires to the front of the list of projects that have to be processed next
21852      # at the same time, remove $proj from this list
21853      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21854
21855      # read DATA from $pcfile, if _DATA is still empty
21856      if test "x$CLP_DATA" = x ; then
21857        projdatadir=
21858        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21859        eval `sh -c "$pcfilemod"`
21860        CLP_DATA="$projdatadir"
21861      fi
21862
21863      allproj="$allproj $proj"
21864      allpcfiles="$pcfile:$allpcfiles"
21865
21866    else
21867      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21868echo "${ECHO_T}no, dependency $proj not available" >&6
21869      allproj=fail
21870      break 2
21871    fi
21872
21873    if test "x$pcifile" != x ; then
21874      allpcifiles="$pcifile:$allpcifiles"
21875
21876      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21877      if test "x$CLP_DATA_INSTALLED" = x ; then
21878        projdatadir=
21879        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21880        eval `sh -c "$pcifilemod"`
21881        if test "${CYGPATH_W}" != "echo"; then
21882          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21883        fi
21884        CLP_DATA_INSTALLED="$projdatadir"
21885      fi
21886
21887    fi
21888
21889    break
21890  done
21891
21892  # remove spaces on begin of $projtoprocess
21893  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21894
21895done
21896
21897if test "$allproj" != fail ; then
21898
21899  # now go through the list of .pc files and assemble compiler and linker flags
21900  # important is here to obey the reverse order that has been setup before,
21901  # since then libraries that are required by several others should be after these other libraries
21902  pcfilesprocessed=""
21903
21904  save_IFS="$IFS"
21905  IFS=":"
21906  for pcfile in $allpcfiles ; do
21907
21908    # if $pcfile has been processed already, skip this round
21909    if test "x$pcfilesprocessed" != x ; then
21910      for pcfiledone in $pcfilesprocessed ; do
21911        if test "$pcfiledone" = "$pcfile" ; then
21912          continue 2
21913        fi
21914      done
21915    fi
21916
21917    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21918    #   replace "Libs:" by "echo projlibs="
21919    #   replace "Cflags:" by "echo projcflags="
21920    #   remove every line starting with <some word>:
21921    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21922
21923    # set projcflags and projlibs variables by running $pcfilemod
21924    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21925    projcflags=
21926    projlibs=
21927    IFS="$save_IFS"
21928    eval `sh -c "$pcfilemod"`
21929    IFS=":"
21930
21931    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21932    if test "${CYGPATH_W}" != "echo"; then
21933      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21934    fi
21935    CLP_CFLAGS="$projcflags $CLP_CFLAGS"
21936
21937    # set LIBS variable
21938    CLP_LIBS="$projlibs $CLP_LIBS"
21939
21940    # remember that we have processed $pcfile
21941    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21942
21943  done
21944  IFS="$save_IFS"
21945
21946
21947  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21948  # important is here again to obey the reverse order that has been setup before,
21949  # since then libraries that are required by several others should be after these other libraries
21950  pcfilesprocessed=""
21951
21952  save_IFS="$IFS"
21953  IFS=":"
21954  for pcfile in $allpcifiles ; do
21955
21956    # if $pcfile has been processed already, skip this round
21957    if test "x$pcfilesprocessed" != x ; then
21958      for pcfiledone in $pcfilesprocessed ; do
21959        if test "$pcfiledone" = "$pcfile" ; then
21960          continue 2
21961        fi
21962      done
21963    fi
21964
21965    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21966    #   replace "Libs:" by "echo projlibs="
21967    #   replace "Cflags:" by "echo projcflags="
21968    #   remove every line starting with <some word>:
21969    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21970
21971    # set projcflags and projlibs variables by running $pcfilemod
21972    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21973    projcflags=
21974    projlibs=
21975    IFS="$save_IFS"
21976    eval `sh -c "$pcfilemod"`
21977    IFS=":"
21978
21979    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21980    if test "${CYGPATH_W}" != "echo"; then
21981      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21982    fi
21983    CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
21984
21985    # set LIBS variable
21986    CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
21987
21988    # remember that we have processed $pcfile
21989    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21990
21991  done
21992  IFS="$save_IFS"
21993
21994
21995  # finish up
21996  coin_has_clp=yes
21997  echo "$as_me:$LINENO: result: yes" >&5
21998echo "${ECHO_T}yes" >&6
21999
22000cat >>confdefs.h <<\_ACEOF
22001#define COIN_HAS_CLP 1
22002_ACEOF
22003
22004
22005  # adjust linker flags for (i)cl compiler
22006  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22007  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22008  #    everything of the form "-lname" by "libname.lib", and
22009  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22010  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22011  then
22012    CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22013    CLP_LIBS_INSTALLED=`echo " $CLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22014  fi
22015
22016  CLP_PCREQUIRES="osi-clp"
22017
22018    SYMPHONYLIB_PCREQUIRES="osi-clp $SYMPHONYLIB_PCREQUIRES"
22019    SYMPHONYLIB_CFLAGS="$CLP_CFLAGS $SYMPHONYLIB_CFLAGS"
22020    SYMPHONYLIB_LIBS="$CLP_LIBS $SYMPHONYLIB_LIBS"
22021    SYMPHONYLIB_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
22022    SYMPHONYLIB_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
22023
22024
22025fi
22026
22027
22028
22029if test $coin_has_clp != notGiven &&
22030                test $coin_has_clp != skipping; then
22031  COIN_HAS_CLP_TRUE=
22032  COIN_HAS_CLP_FALSE='#'
22033else
22034  COIN_HAS_CLP_TRUE='#'
22035  COIN_HAS_CLP_FALSE=
22036fi
22037
22038
22039
22040  fi
22041
22042else
22043  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
22044echo "${ECHO_T}$coin_has_clp" >&6
22045fi
22046
22047if test $coin_has_clp != skipping &&
22048   test $coin_has_clp != notGiven ; then
22049
22050cat >>confdefs.h <<\_ACEOF
22051#define COIN_HAS_CLP 1
22052_ACEOF
22053
22054
22055  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22056if test "${enable_interpackage_dependencies+set}" = set; then
22057  enableval="$enable_interpackage_dependencies"
22058
22059else
22060  enable_interpackage_dependencies=yes
22061fi;
22062
22063  if test $enable_interpackage_dependencies = yes ; then
22064     # construct dependencies variables from LIBS variables
22065     # we add an extra space in LIBS so we can substitute out everything starting with " -"
22066     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22067     # then remove everything of the form -xxx
22068     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22069     CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22070
22071       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22072
22073  fi
22074
22075  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
22076    if test -n "$CLP_CFLAGS" ; then
22077      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
22078echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
22079    fi
22080    if test -n "$CLP_LIBS" ; then
22081      { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
22082echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
22083    fi
22084    if test -n "$CLP_DEPENDENCIES" ; then
22085      { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
22086echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
22087    fi
22088    if test -n "$CLP_DATA" ; then
22089      { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
22090echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
22091    fi
22092    if test -n "$CLP_PCLIBS" ; then
22093      { echo "$as_me:$LINENO: Clp PCLIBS are $CLP_PCLIBS" >&5
22094echo "$as_me: Clp PCLIBS are $CLP_PCLIBS" >&6;}
22095    fi
22096    if test -n "$CLP_PCREQUIRES" ; then
22097      { echo "$as_me:$LINENO: Clp PCREQUIRES are $CLP_PCREQUIRES" >&5
22098echo "$as_me: Clp PCREQUIRES are $CLP_PCREQUIRES" >&6;}
22099    fi
22100
22101      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
22102echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
22103      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
22104echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
22105      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
22106echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
22107
22108  fi
22109fi
22110
22111# Define the Makefile conditional
22112
22113
22114if test $coin_has_clp != notGiven &&
22115                test $coin_has_clp != skipping; then
22116  COIN_HAS_CLP_TRUE=
22117  COIN_HAS_CLP_FALSE='#'
22118else
22119  COIN_HAS_CLP_TRUE='#'
22120  COIN_HAS_CLP_FALSE=
22121fi
22122
22123
22124
22125
22126echo "$as_me:$LINENO: checking for COIN-OR package DyLP" >&5
22127echo $ECHO_N "checking for COIN-OR package DyLP... $ECHO_C" >&6
22128
22129coin_has_dylp=notGiven
22130
22131# check if user wants to skip package in any case
22132if test x"$COIN_SKIP_PROJECTS" != x; then
22133  for dir in $COIN_SKIP_PROJECTS; do
22134    if test $dir = "DyLP"; then
22135      coin_has_dylp=skipping
22136    fi
22137  done
22138fi
22139
22140if test "$coin_has_dylp" != skipping; then
22141
22142# Check whether --with-m4_tolower(DyLP) or --without-m4_tolower(DyLP) was given.
22143if test "${with_dylp+set}" = set; then
22144  withval="$with_dylp"
22145  if test "$withval" = no ; then
22146       coin_has_dylp=skipping
22147     fi
22148
22149fi;
22150fi
22151
22152DYLP_LIBS=
22153DYLP_CFLAGS=
22154DYLP_DATA=
22155DYLP_DEPENDENCIES=
22156DYLP_PCLIBS=
22157DYLP_PCREQUIRES=
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22176if test $coin_has_dylp != skipping; then
22177
22178# Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given.
22179if test "${with_dylp_lib+set}" = set; then
22180  withval="$with_dylp_lib"
22181  if test "$withval" = no ; then
22182       coin_has_dylp=skipping
22183     else
22184       coin_has_dylp=yes
22185       DYLP_LIBS="$withval"
22186       DYLP_PCLIBS="$withval"
22187
22188         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
22189         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
22190
22191       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22192       if test -z "$PKG_CONFIG" ; then
22193         DYLP_LIBS_INSTALLED="$withval"
22194         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
22195       fi
22196     fi
22197
22198fi;
22199fi
22200
22201if test $coin_has_dylp != skipping; then
22202
22203# Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given.
22204if test "${with_dylp_incdir+set}" = set; then
22205  withval="$with_dylp_incdir"
22206  if test "$withval" = no ; then
22207       coin_has_dylp=skipping
22208     else
22209       coin_has_dylp=yes
22210       DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
22211       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
22212       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22213       if test -z "$PKG_CONFIG" ; then
22214         DYLP_CFLAGS_INSTALLED="$DYLP_CFLAGS"
22215         SYMPHONYLIB_CFLAGS_INSTALLED="$DYLP_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
22216       fi
22217     fi
22218
22219fi;
22220fi
22221
22222if test $coin_has_dylp != skipping; then
22223
22224# Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given.
22225if test "${with_dylp_datadir+set}" = set; then
22226  withval="$with_dylp_datadir"
22227  if test "$withval" = no ; then
22228       coin_has_dylp=skipping
22229     else
22230       coin_has_dylp=yes
22231       DYLP_DATA="$withval"
22232       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22233       if test -z "$PKG_CONFIG" ; then
22234         DYLP_DATA_INSTALLED="$withval"
22235       fi
22236     fi
22237
22238fi;
22239fi
22240
22241if test $coin_has_dylp = notGiven; then
22242  if test -n "$PKG_CONFIG" ; then
22243    # set search path for pkg-config
22244    # need to export variable to be sure that the following pkg-config gets these values
22245    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22246    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22247    export PKG_CONFIG_PATH
22248
22249    # let pkg-config do it's magic
22250
22251
22252
22253if test -n "$PKG_CONFIG" ; then
22254  if $PKG_CONFIG --exists "osi-dylp"; then
22255    DYLP_VERSIONS=`$PKG_CONFIG --modversion "osi-dylp" 2>/dev/null | tr '\n' ' '`
22256     cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
22257    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22258	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22259	# but only do this if is not trivial
22260    if test "$CYGPATH_W" != "echo" ; then
22261      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22262      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22263    fi
22264    DYLP_CFLAGS="$cflags"
22265    DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
22266    DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
22267     coin_has_dylp=yes
22268        echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
22269echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
22270
22271        # adjust linker flags for (i)cl compiler
22272        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22273        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22274        then
22275          DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22276        fi
22277        DYLP_PCREQUIRES="osi-dylp"
22278
22279        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
22280
22281          SYMPHONYLIB_PCREQUIRES="osi-dylp $SYMPHONYLIB_PCREQUIRES"
22282          SYMPHONYLIB_CFLAGS="$DYLP_CFLAGS $SYMPHONYLIB_CFLAGS"
22283          SYMPHONYLIB_LIBS="$DYLP_LIBS $SYMPHONYLIB_LIBS"
22284
22285
22286
22287  else
22288    DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-dylp"`
22289      coin_has_dylp=notGiven
22290        echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
22291echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
22292
22293  fi
22294else
22295  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&5
22296echo "$as_me: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&2;}
22297   { (exit 1); exit 1; }; }
22298fi
22299
22300
22301
22302
22303    # reset PKG_CONFIG_PATH variable
22304    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22305    export PKG_CONFIG_PATH
22306
22307  else
22308    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22309echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22310
22311echo "$as_me:$LINENO: checking for COIN-OR package DyLP (fallback)" >&5
22312echo $ECHO_N "checking for COIN-OR package DyLP (fallback)... $ECHO_C" >&6
22313
22314coin_has_dylp=notGiven
22315DYLP_LIBS=
22316DYLP_LIBS_INSTALLED=
22317DYLP_CFLAGS=
22318DYLP_CFLAGS_INSTALLED=
22319DYLP_DATA=
22320DYLP_DATA_INSTALLED=
22321DYLP_PCLIBS=
22322DYLP_PCREQUIRES=
22323
22324# initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22325projtoprocess="osi-dylp"
22326
22327# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22328# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22329# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22330# also, we setup the DATA variable
22331allproj=""
22332allpcfiles=""
22333allpcifiles=""
22334while test "x$projtoprocess" != x ; do
22335
22336  for proj in $projtoprocess ; do
22337    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22338    pcfile=""
22339    save_IFS="$IFS"
22340    IFS=":"
22341    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22342      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22343      if test -r "$dir/${proj}-uninstalled.pc" ; then
22344        pcfile="$dir/$proj-uninstalled.pc"
22345        if test -r "$dir/${proj}.pc" ; then
22346          pcifile="$dir/${proj}.pc"
22347        else
22348          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22349echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22350          pcifile=
22351        fi
22352        break
22353      fi
22354    done
22355    IFS="$save_IFS"
22356
22357    if test "x$pcfile" != x ; then
22358      # read dependencies from $pcfile and filter it
22359      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
22360
22361      # add projrequires to the front of the list of projects that have to be processed next
22362      # at the same time, remove $proj from this list
22363      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22364
22365      # read DATA from $pcfile, if _DATA is still empty
22366      if test "x$DYLP_DATA" = x ; then
22367        projdatadir=
22368        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22369        eval `sh -c "$pcfilemod"`
22370        DYLP_DATA="$projdatadir"
22371      fi
22372
22373      allproj="$allproj $proj"
22374      allpcfiles="$pcfile:$allpcfiles"
22375
22376    else
22377      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22378echo "${ECHO_T}no, dependency $proj not available" >&6
22379      allproj=fail
22380      break 2
22381    fi
22382
22383    if test "x$pcifile" != x ; then
22384      allpcifiles="$pcifile:$allpcifiles"
22385
22386      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22387      if test "x$DYLP_DATA_INSTALLED" = x ; then
22388        projdatadir=
22389        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22390        eval `sh -c "$pcifilemod"`
22391        if test "${CYGPATH_W}" != "echo"; then
22392          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22393        fi
22394        DYLP_DATA_INSTALLED="$projdatadir"
22395      fi
22396
22397    fi
22398
22399    break
22400  done
22401
22402  # remove spaces on begin of $projtoprocess
22403  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22404
22405done
22406
22407if test "$allproj" != fail ; then
22408
22409  # now go through the list of .pc files and assemble compiler and linker flags
22410  # important is here to obey the reverse order that has been setup before,
22411  # since then libraries that are required by several others should be after these other libraries
22412  pcfilesprocessed=""
22413
22414  save_IFS="$IFS"
22415  IFS=":"
22416  for pcfile in $allpcfiles ; do
22417
22418    # if $pcfile has been processed already, skip this round
22419    if test "x$pcfilesprocessed" != x ; then
22420      for pcfiledone in $pcfilesprocessed ; do
22421        if test "$pcfiledone" = "$pcfile" ; then
22422          continue 2
22423        fi
22424      done
22425    fi
22426
22427    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22428    #   replace "Libs:" by "echo projlibs="
22429    #   replace "Cflags:" by "echo projcflags="
22430    #   remove every line starting with <some word>:
22431    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22432
22433    # set projcflags and projlibs variables by running $pcfilemod
22434    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22435    projcflags=
22436    projlibs=
22437    IFS="$save_IFS"
22438    eval `sh -c "$pcfilemod"`
22439    IFS=":"
22440
22441    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22442    if test "${CYGPATH_W}" != "echo"; then
22443      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22444    fi
22445    DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
22446
22447    # set LIBS variable
22448    DYLP_LIBS="$projlibs $DYLP_LIBS"
22449
22450    # remember that we have processed $pcfile
22451    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22452
22453  done
22454  IFS="$save_IFS"
22455
22456
22457  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22458  # important is here again to obey the reverse order that has been setup before,
22459  # since then libraries that are required by several others should be after these other libraries
22460  pcfilesprocessed=""
22461
22462  save_IFS="$IFS"
22463  IFS=":"
22464  for pcfile in $allpcifiles ; do
22465
22466    # if $pcfile has been processed already, skip this round
22467    if test "x$pcfilesprocessed" != x ; then
22468      for pcfiledone in $pcfilesprocessed ; do
22469        if test "$pcfiledone" = "$pcfile" ; then
22470          continue 2
22471        fi
22472      done
22473    fi
22474
22475    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22476    #   replace "Libs:" by "echo projlibs="
22477    #   replace "Cflags:" by "echo projcflags="
22478    #   remove every line starting with <some word>:
22479    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22480
22481    # set projcflags and projlibs variables by running $pcfilemod
22482    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22483    projcflags=
22484    projlibs=
22485    IFS="$save_IFS"
22486    eval `sh -c "$pcfilemod"`
22487    IFS=":"
22488
22489    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22490    if test "${CYGPATH_W}" != "echo"; then
22491      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22492    fi
22493    DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED"
22494
22495    # set LIBS variable
22496    DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED"
22497
22498    # remember that we have processed $pcfile
22499    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22500
22501  done
22502  IFS="$save_IFS"
22503
22504
22505  # finish up
22506  coin_has_dylp=yes
22507  echo "$as_me:$LINENO: result: yes" >&5
22508echo "${ECHO_T}yes" >&6
22509
22510cat >>confdefs.h <<\_ACEOF
22511#define COIN_HAS_DYLP 1
22512_ACEOF
22513
22514
22515  # adjust linker flags for (i)cl compiler
22516  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22517  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22518  #    everything of the form "-lname" by "libname.lib", and
22519  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22520  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22521  then
22522    DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22523    DYLP_LIBS_INSTALLED=`echo " $DYLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22524  fi
22525
22526  DYLP_PCREQUIRES="osi-dylp"
22527
22528    SYMPHONYLIB_PCREQUIRES="osi-dylp $SYMPHONYLIB_PCREQUIRES"
22529    SYMPHONYLIB_CFLAGS="$DYLP_CFLAGS $SYMPHONYLIB_CFLAGS"
22530    SYMPHONYLIB_LIBS="$DYLP_LIBS $SYMPHONYLIB_LIBS"
22531    SYMPHONYLIB_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
22532    SYMPHONYLIB_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
22533
22534
22535fi
22536
22537
22538
22539if test $coin_has_dylp != notGiven &&
22540                test $coin_has_dylp != skipping; then
22541  COIN_HAS_DYLP_TRUE=
22542  COIN_HAS_DYLP_FALSE='#'
22543else
22544  COIN_HAS_DYLP_TRUE='#'
22545  COIN_HAS_DYLP_FALSE=
22546fi
22547
22548
22549
22550  fi
22551
22552else
22553  echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
22554echo "${ECHO_T}$coin_has_dylp" >&6
22555fi
22556
22557if test $coin_has_dylp != skipping &&
22558   test $coin_has_dylp != notGiven ; then
22559
22560cat >>confdefs.h <<\_ACEOF
22561#define COIN_HAS_DYLP 1
22562_ACEOF
22563
22564
22565  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22566if test "${enable_interpackage_dependencies+set}" = set; then
22567  enableval="$enable_interpackage_dependencies"
22568
22569else
22570  enable_interpackage_dependencies=yes
22571fi;
22572
22573  if test $enable_interpackage_dependencies = yes ; then
22574     # construct dependencies variables from LIBS variables
22575     # we add an extra space in LIBS so we can substitute out everything starting with " -"
22576     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22577     # then remove everything of the form -xxx
22578     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22579     DYLP_DEPENDENCIES=`echo " $DYLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22580
22581       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22582
22583  fi
22584
22585  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
22586    if test -n "$DYLP_CFLAGS" ; then
22587      { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
22588echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
22589    fi
22590    if test -n "$DYLP_LIBS" ; then
22591      { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
22592echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
22593    fi
22594    if test -n "$DYLP_DEPENDENCIES" ; then
22595      { echo "$as_me:$LINENO: DyLP DEPENDENCIES are $DYLP_DEPENDENCIES" >&5
22596echo "$as_me: DyLP DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;}
22597    fi
22598    if test -n "$DYLP_DATA" ; then
22599      { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
22600echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
22601    fi
22602    if test -n "$DYLP_PCLIBS" ; then
22603      { echo "$as_me:$LINENO: DyLP PCLIBS are $DYLP_PCLIBS" >&5
22604echo "$as_me: DyLP PCLIBS are $DYLP_PCLIBS" >&6;}
22605    fi
22606    if test -n "$DYLP_PCREQUIRES" ; then
22607      { echo "$as_me:$LINENO: DyLP PCREQUIRES are $DYLP_PCREQUIRES" >&5
22608echo "$as_me: DyLP PCREQUIRES are $DYLP_PCREQUIRES" >&6;}
22609    fi
22610
22611      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
22612echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
22613      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
22614echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
22615      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
22616echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
22617
22618  fi
22619fi
22620
22621# Define the Makefile conditional
22622
22623
22624if test $coin_has_dylp != notGiven &&
22625                test $coin_has_dylp != skipping; then
22626  COIN_HAS_DYLP_TRUE=
22627  COIN_HAS_DYLP_FALSE='#'
22628else
22629  COIN_HAS_DYLP_TRUE='#'
22630  COIN_HAS_DYLP_FALSE=
22631fi
22632
22633
22634
22635
22636echo "$as_me:$LINENO: checking for COIN-OR package Vol" >&5
22637echo $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6
22638
22639coin_has_vol=notGiven
22640
22641# check if user wants to skip package in any case
22642if test x"$COIN_SKIP_PROJECTS" != x; then
22643  for dir in $COIN_SKIP_PROJECTS; do
22644    if test $dir = "Vol"; then
22645      coin_has_vol=skipping
22646    fi
22647  done
22648fi
22649
22650if test "$coin_has_vol" != skipping; then
22651
22652# Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
22653if test "${with_vol+set}" = set; then
22654  withval="$with_vol"
22655  if test "$withval" = no ; then
22656       coin_has_vol=skipping
22657     fi
22658
22659fi;
22660fi
22661
22662VOL_LIBS=
22663VOL_CFLAGS=
22664VOL_DATA=
22665VOL_DEPENDENCIES=
22666VOL_PCLIBS=
22667VOL_PCREQUIRES=
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22686if test $coin_has_vol != skipping; then
22687
22688# Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
22689if test "${with_vol_lib+set}" = set; then
22690  withval="$with_vol_lib"
22691  if test "$withval" = no ; then
22692       coin_has_vol=skipping
22693     else
22694       coin_has_vol=yes
22695       VOL_LIBS="$withval"
22696       VOL_PCLIBS="$withval"
22697
22698         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
22699         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
22700
22701       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22702       if test -z "$PKG_CONFIG" ; then
22703         VOL_LIBS_INSTALLED="$withval"
22704         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
22705       fi
22706     fi
22707
22708fi;
22709fi
22710
22711if test $coin_has_vol != skipping; then
22712
22713# Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
22714if test "${with_vol_incdir+set}" = set; then
22715  withval="$with_vol_incdir"
22716  if test "$withval" = no ; then
22717       coin_has_vol=skipping
22718     else
22719       coin_has_vol=yes
22720       VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
22721       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
22722       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22723       if test -z "$PKG_CONFIG" ; then
22724         VOL_CFLAGS_INSTALLED="$VOL_CFLAGS"
22725         SYMPHONYLIB_CFLAGS_INSTALLED="$VOL_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
22726       fi
22727     fi
22728
22729fi;
22730fi
22731
22732if test $coin_has_vol != skipping; then
22733
22734# Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
22735if test "${with_vol_datadir+set}" = set; then
22736  withval="$with_vol_datadir"
22737  if test "$withval" = no ; then
22738       coin_has_vol=skipping
22739     else
22740       coin_has_vol=yes
22741       VOL_DATA="$withval"
22742       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22743       if test -z "$PKG_CONFIG" ; then
22744         VOL_DATA_INSTALLED="$withval"
22745       fi
22746     fi
22747
22748fi;
22749fi
22750
22751if test $coin_has_vol = notGiven; then
22752  if test -n "$PKG_CONFIG" ; then
22753    # set search path for pkg-config
22754    # need to export variable to be sure that the following pkg-config gets these values
22755    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22756    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22757    export PKG_CONFIG_PATH
22758
22759    # let pkg-config do it's magic
22760
22761
22762
22763if test -n "$PKG_CONFIG" ; then
22764  if $PKG_CONFIG --exists "osi-vol"; then
22765    VOL_VERSIONS=`$PKG_CONFIG --modversion "osi-vol" 2>/dev/null | tr '\n' ' '`
22766     cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
22767    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22768	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22769	# but only do this if is not trivial
22770    if test "$CYGPATH_W" != "echo" ; then
22771      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22772      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22773    fi
22774    VOL_CFLAGS="$cflags"
22775    VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
22776    VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
22777     coin_has_vol=yes
22778        echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
22779echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
22780
22781        # adjust linker flags for (i)cl compiler
22782        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22783        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22784        then
22785          VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22786        fi
22787        VOL_PCREQUIRES="osi-vol"
22788
22789        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
22790
22791          SYMPHONYLIB_PCREQUIRES="osi-vol $SYMPHONYLIB_PCREQUIRES"
22792          SYMPHONYLIB_CFLAGS="$VOL_CFLAGS $SYMPHONYLIB_CFLAGS"
22793          SYMPHONYLIB_LIBS="$VOL_LIBS $SYMPHONYLIB_LIBS"
22794
22795
22796
22797  else
22798    VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-vol"`
22799      coin_has_vol=notGiven
22800        echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
22801echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
22802
22803  fi
22804else
22805  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
22806echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
22807   { (exit 1); exit 1; }; }
22808fi
22809
22810
22811
22812
22813    # reset PKG_CONFIG_PATH variable
22814    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22815    export PKG_CONFIG_PATH
22816
22817  else
22818    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22819echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22820
22821echo "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5
22822echo $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6
22823
22824coin_has_vol=notGiven
22825VOL_LIBS=
22826VOL_LIBS_INSTALLED=
22827VOL_CFLAGS=
22828VOL_CFLAGS_INSTALLED=
22829VOL_DATA=
22830VOL_DATA_INSTALLED=
22831VOL_PCLIBS=
22832VOL_PCREQUIRES=
22833
22834# initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22835projtoprocess="osi-vol"
22836
22837# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22838# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22839# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22840# also, we setup the DATA variable
22841allproj=""
22842allpcfiles=""
22843allpcifiles=""
22844while test "x$projtoprocess" != x ; do
22845
22846  for proj in $projtoprocess ; do
22847    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22848    pcfile=""
22849    save_IFS="$IFS"
22850    IFS=":"
22851    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22852      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22853      if test -r "$dir/${proj}-uninstalled.pc" ; then
22854        pcfile="$dir/$proj-uninstalled.pc"
22855        if test -r "$dir/${proj}.pc" ; then
22856          pcifile="$dir/${proj}.pc"
22857        else
22858          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22859echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22860          pcifile=
22861        fi
22862        break
22863      fi
22864    done
22865    IFS="$save_IFS"
22866
22867    if test "x$pcfile" != x ; then
22868      # read dependencies from $pcfile and filter it
22869      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
22870
22871      # add projrequires to the front of the list of projects that have to be processed next
22872      # at the same time, remove $proj from this list
22873      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22874
22875      # read DATA from $pcfile, if _DATA is still empty
22876      if test "x$VOL_DATA" = x ; then
22877        projdatadir=
22878        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22879        eval `sh -c "$pcfilemod"`
22880        VOL_DATA="$projdatadir"
22881      fi
22882
22883      allproj="$allproj $proj"
22884      allpcfiles="$pcfile:$allpcfiles"
22885
22886    else
22887      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22888echo "${ECHO_T}no, dependency $proj not available" >&6
22889      allproj=fail
22890      break 2
22891    fi
22892
22893    if test "x$pcifile" != x ; then
22894      allpcifiles="$pcifile:$allpcifiles"
22895
22896      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22897      if test "x$VOL_DATA_INSTALLED" = x ; then
22898        projdatadir=
22899        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22900        eval `sh -c "$pcifilemod"`
22901        if test "${CYGPATH_W}" != "echo"; then
22902          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22903        fi
22904        VOL_DATA_INSTALLED="$projdatadir"
22905      fi
22906
22907    fi
22908
22909    break
22910  done
22911
22912  # remove spaces on begin of $projtoprocess
22913  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22914
22915done
22916
22917if test "$allproj" != fail ; then
22918
22919  # now go through the list of .pc files and assemble compiler and linker flags
22920  # important is here to obey the reverse order that has been setup before,
22921  # since then libraries that are required by several others should be after these other libraries
22922  pcfilesprocessed=""
22923
22924  save_IFS="$IFS"
22925  IFS=":"
22926  for pcfile in $allpcfiles ; do
22927
22928    # if $pcfile has been processed already, skip this round
22929    if test "x$pcfilesprocessed" != x ; then
22930      for pcfiledone in $pcfilesprocessed ; do
22931        if test "$pcfiledone" = "$pcfile" ; then
22932          continue 2
22933        fi
22934      done
22935    fi
22936
22937    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22938    #   replace "Libs:" by "echo projlibs="
22939    #   replace "Cflags:" by "echo projcflags="
22940    #   remove every line starting with <some word>:
22941    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22942
22943    # set projcflags and projlibs variables by running $pcfilemod
22944    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22945    projcflags=
22946    projlibs=
22947    IFS="$save_IFS"
22948    eval `sh -c "$pcfilemod"`
22949    IFS=":"
22950
22951    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22952    if test "${CYGPATH_W}" != "echo"; then
22953      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22954    fi
22955    VOL_CFLAGS="$projcflags $VOL_CFLAGS"
22956
22957    # set LIBS variable
22958    VOL_LIBS="$projlibs $VOL_LIBS"
22959
22960    # remember that we have processed $pcfile
22961    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22962
22963  done
22964  IFS="$save_IFS"
22965
22966
22967  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22968  # important is here again to obey the reverse order that has been setup before,
22969  # since then libraries that are required by several others should be after these other libraries
22970  pcfilesprocessed=""
22971
22972  save_IFS="$IFS"
22973  IFS=":"
22974  for pcfile in $allpcifiles ; do
22975
22976    # if $pcfile has been processed already, skip this round
22977    if test "x$pcfilesprocessed" != x ; then
22978      for pcfiledone in $pcfilesprocessed ; do
22979        if test "$pcfiledone" = "$pcfile" ; then
22980          continue 2
22981        fi
22982      done
22983    fi
22984
22985    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22986    #   replace "Libs:" by "echo projlibs="
22987    #   replace "Cflags:" by "echo projcflags="
22988    #   remove every line starting with <some word>:
22989    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22990
22991    # set projcflags and projlibs variables by running $pcfilemod
22992    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22993    projcflags=
22994    projlibs=
22995    IFS="$save_IFS"
22996    eval `sh -c "$pcfilemod"`
22997    IFS=":"
22998
22999    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23000    if test "${CYGPATH_W}" != "echo"; then
23001      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23002    fi
23003    VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED"
23004
23005    # set LIBS variable
23006    VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED"
23007
23008    # remember that we have processed $pcfile
23009    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23010
23011  done
23012  IFS="$save_IFS"
23013
23014
23015  # finish up
23016  coin_has_vol=yes
23017  echo "$as_me:$LINENO: result: yes" >&5
23018echo "${ECHO_T}yes" >&6
23019
23020cat >>confdefs.h <<\_ACEOF
23021#define COIN_HAS_VOL 1
23022_ACEOF
23023
23024
23025  # adjust linker flags for (i)cl compiler
23026  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
23027  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23028  #    everything of the form "-lname" by "libname.lib", and
23029  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23030  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23031  then
23032    VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23033    VOL_LIBS_INSTALLED=`echo " $VOL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23034  fi
23035
23036  VOL_PCREQUIRES="osi-vol"
23037
23038    SYMPHONYLIB_PCREQUIRES="osi-vol $SYMPHONYLIB_PCREQUIRES"
23039    SYMPHONYLIB_CFLAGS="$VOL_CFLAGS $SYMPHONYLIB_CFLAGS"
23040    SYMPHONYLIB_LIBS="$VOL_LIBS $SYMPHONYLIB_LIBS"
23041    SYMPHONYLIB_CFLAGS_INSTALLED="$VOL_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
23042    SYMPHONYLIB_LIBS_INSTALLED="$VOL_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
23043
23044
23045fi
23046
23047
23048
23049if test $coin_has_vol != notGiven &&
23050                test $coin_has_vol != skipping; then
23051  COIN_HAS_VOL_TRUE=
23052  COIN_HAS_VOL_FALSE='#'
23053else
23054  COIN_HAS_VOL_TRUE='#'
23055  COIN_HAS_VOL_FALSE=
23056fi
23057
23058
23059
23060  fi
23061
23062else
23063  echo "$as_me:$LINENO: result: $coin_has_vol" >&5
23064echo "${ECHO_T}$coin_has_vol" >&6
23065fi
23066
23067if test $coin_has_vol != skipping &&
23068   test $coin_has_vol != notGiven ; then
23069
23070cat >>confdefs.h <<\_ACEOF
23071#define COIN_HAS_VOL 1
23072_ACEOF
23073
23074
23075  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23076if test "${enable_interpackage_dependencies+set}" = set; then
23077  enableval="$enable_interpackage_dependencies"
23078
23079else
23080  enable_interpackage_dependencies=yes
23081fi;
23082
23083  if test $enable_interpackage_dependencies = yes ; then
23084     # construct dependencies variables from LIBS variables
23085     # we add an extra space in LIBS so we can substitute out everything starting with " -"
23086     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23087     # then remove everything of the form -xxx
23088     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23089     VOL_DEPENDENCIES=`echo " $VOL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23090
23091       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23092
23093  fi
23094
23095  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
23096    if test -n "$VOL_CFLAGS" ; then
23097      { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
23098echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
23099    fi
23100    if test -n "$VOL_LIBS" ; then
23101      { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
23102echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
23103    fi
23104    if test -n "$VOL_DEPENDENCIES" ; then
23105      { echo "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5
23106echo "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;}
23107    fi
23108    if test -n "$VOL_DATA" ; then
23109      { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
23110echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
23111    fi
23112    if test -n "$VOL_PCLIBS" ; then
23113      { echo "$as_me:$LINENO: Vol PCLIBS are $VOL_PCLIBS" >&5
23114echo "$as_me: Vol PCLIBS are $VOL_PCLIBS" >&6;}
23115    fi
23116    if test -n "$VOL_PCREQUIRES" ; then
23117      { echo "$as_me:$LINENO: Vol PCREQUIRES are $VOL_PCREQUIRES" >&5
23118echo "$as_me: Vol PCREQUIRES are $VOL_PCREQUIRES" >&6;}
23119    fi
23120
23121      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
23122echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
23123      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
23124echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
23125      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
23126echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
23127
23128  fi
23129fi
23130
23131# Define the Makefile conditional
23132
23133
23134if test $coin_has_vol != notGiven &&
23135                test $coin_has_vol != skipping; then
23136  COIN_HAS_VOL_TRUE=
23137  COIN_HAS_VOL_FALSE='#'
23138else
23139  COIN_HAS_VOL_TRUE='#'
23140  COIN_HAS_VOL_FALSE=
23141fi
23142
23143
23144
23145
23146echo "$as_me:$LINENO: checking for COIN-OR package Cgl" >&5
23147echo $ECHO_N "checking for COIN-OR package Cgl... $ECHO_C" >&6
23148
23149coin_has_cgl=notGiven
23150
23151# check if user wants to skip package in any case
23152if test x"$COIN_SKIP_PROJECTS" != x; then
23153  for dir in $COIN_SKIP_PROJECTS; do
23154    if test $dir = "Cgl"; then
23155      coin_has_cgl=skipping
23156    fi
23157  done
23158fi
23159
23160if test "$coin_has_cgl" != skipping; then
23161
23162# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
23163if test "${with_cgl+set}" = set; then
23164  withval="$with_cgl"
23165  if test "$withval" = no ; then
23166       coin_has_cgl=skipping
23167     fi
23168
23169fi;
23170fi
23171
23172CGL_LIBS=
23173CGL_CFLAGS=
23174CGL_DATA=
23175CGL_DEPENDENCIES=
23176CGL_PCLIBS=
23177CGL_PCREQUIRES=
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
23196if test $coin_has_cgl != skipping; then
23197
23198# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
23199if test "${with_cgl_lib+set}" = set; then
23200  withval="$with_cgl_lib"
23201  if test "$withval" = no ; then
23202       coin_has_cgl=skipping
23203     else
23204       coin_has_cgl=yes
23205       CGL_LIBS="$withval"
23206       CGL_PCLIBS="$withval"
23207
23208         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
23209         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
23210
23211       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23212       if test -z "$PKG_CONFIG" ; then
23213         CGL_LIBS_INSTALLED="$withval"
23214         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
23215       fi
23216     fi
23217
23218fi;
23219fi
23220
23221if test $coin_has_cgl != skipping; then
23222
23223# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
23224if test "${with_cgl_incdir+set}" = set; then
23225  withval="$with_cgl_incdir"
23226  if test "$withval" = no ; then
23227       coin_has_cgl=skipping
23228     else
23229       coin_has_cgl=yes
23230       CGL_CFLAGS="-I`${CYGPATH_W} $withval`"
23231       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
23232       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23233       if test -z "$PKG_CONFIG" ; then
23234         CGL_CFLAGS_INSTALLED="$CGL_CFLAGS"
23235         SYMPHONYLIB_CFLAGS_INSTALLED="$CGL_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
23236       fi
23237     fi
23238
23239fi;
23240fi
23241
23242if test $coin_has_cgl != skipping; then
23243
23244# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
23245if test "${with_cgl_datadir+set}" = set; then
23246  withval="$with_cgl_datadir"
23247  if test "$withval" = no ; then
23248       coin_has_cgl=skipping
23249     else
23250       coin_has_cgl=yes
23251       CGL_DATA="$withval"
23252       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23253       if test -z "$PKG_CONFIG" ; then
23254         CGL_DATA_INSTALLED="$withval"
23255       fi
23256     fi
23257
23258fi;
23259fi
23260
23261if test $coin_has_cgl = notGiven; then
23262  if test -n "$PKG_CONFIG" ; then
23263    # set search path for pkg-config
23264    # need to export variable to be sure that the following pkg-config gets these values
23265    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
23266    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
23267    export PKG_CONFIG_PATH
23268
23269    # let pkg-config do it's magic
23270
23271
23272
23273if test -n "$PKG_CONFIG" ; then
23274  if $PKG_CONFIG --exists "cgl"; then
23275    CGL_VERSIONS=`$PKG_CONFIG --modversion "cgl" 2>/dev/null | tr '\n' ' '`
23276     cflags=`$PKG_CONFIG --cflags "cgl" 2>/dev/null`
23277    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
23278	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
23279	# but only do this if is not trivial
23280    if test "$CYGPATH_W" != "echo" ; then
23281      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
23282      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23283    fi
23284    CGL_CFLAGS="$cflags"
23285    CGL_LIBS=`$PKG_CONFIG --libs "cgl" 2>/dev/null`
23286    CGL_DATA=`$PKG_CONFIG --variable=datadir "cgl" 2>/dev/null`
23287     coin_has_cgl=yes
23288        echo "$as_me:$LINENO: result: yes: $CGL_VERSIONS" >&5
23289echo "${ECHO_T}yes: $CGL_VERSIONS" >&6
23290
23291        # adjust linker flags for (i)cl compiler
23292        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
23293        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23294        then
23295          CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23296        fi
23297        CGL_PCREQUIRES="cgl"
23298
23299        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
23300
23301          SYMPHONYLIB_PCREQUIRES="cgl $SYMPHONYLIB_PCREQUIRES"
23302          SYMPHONYLIB_CFLAGS="$CGL_CFLAGS $SYMPHONYLIB_CFLAGS"
23303          SYMPHONYLIB_LIBS="$CGL_LIBS $SYMPHONYLIB_LIBS"
23304
23305
23306
23307  else
23308    CGL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cgl"`
23309      coin_has_cgl=notGiven
23310        echo "$as_me:$LINENO: result: not given: $CGL_PKG_ERRORS" >&5
23311echo "${ECHO_T}not given: $CGL_PKG_ERRORS" >&6
23312
23313  fi
23314else
23315  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&5
23316echo "$as_me: error: \"Cannot check for existance of module Cgl without pkg-config\"" >&2;}
23317   { (exit 1); exit 1; }; }
23318fi
23319
23320
23321
23322
23323    # reset PKG_CONFIG_PATH variable
23324    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
23325    export PKG_CONFIG_PATH
23326
23327  else
23328    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
23329echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
23330
23331echo "$as_me:$LINENO: checking for COIN-OR package Cgl (fallback)" >&5
23332echo $ECHO_N "checking for COIN-OR package Cgl (fallback)... $ECHO_C" >&6
23333
23334coin_has_cgl=notGiven
23335CGL_LIBS=
23336CGL_LIBS_INSTALLED=
23337CGL_CFLAGS=
23338CGL_CFLAGS_INSTALLED=
23339CGL_DATA=
23340CGL_DATA_INSTALLED=
23341CGL_PCLIBS=
23342CGL_PCREQUIRES=
23343
23344# initial list of dependencies is "cgl", but we need to filter out version number specifications (= x, <= x, >= x, != x)
23345projtoprocess="cgl"
23346
23347# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
23348# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
23349# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
23350# also, we setup the DATA variable
23351allproj=""
23352allpcfiles=""
23353allpcifiles=""
23354while test "x$projtoprocess" != x ; do
23355
23356  for proj in $projtoprocess ; do
23357    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
23358    pcfile=""
23359    save_IFS="$IFS"
23360    IFS=":"
23361    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
23362      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
23363      if test -r "$dir/${proj}-uninstalled.pc" ; then
23364        pcfile="$dir/$proj-uninstalled.pc"
23365        if test -r "$dir/${proj}.pc" ; then
23366          pcifile="$dir/${proj}.pc"
23367        else
23368          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
23369echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
23370          pcifile=
23371        fi
23372        break
23373      fi
23374    done
23375    IFS="$save_IFS"
23376
23377    if test "x$pcfile" != x ; then
23378      # read dependencies from $pcfile and filter it
23379      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
23380
23381      # add projrequires to the front of the list of projects that have to be processed next
23382      # at the same time, remove $proj from this list
23383      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
23384
23385      # read DATA from $pcfile, if _DATA is still empty
23386      if test "x$CGL_DATA" = x ; then
23387        projdatadir=
23388        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23389        eval `sh -c "$pcfilemod"`
23390        CGL_DATA="$projdatadir"
23391      fi
23392
23393      allproj="$allproj $proj"
23394      allpcfiles="$pcfile:$allpcfiles"
23395
23396    else
23397      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23398echo "${ECHO_T}no, dependency $proj not available" >&6
23399      allproj=fail
23400      break 2
23401    fi
23402
23403    if test "x$pcifile" != x ; then
23404      allpcifiles="$pcifile:$allpcifiles"
23405
23406      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23407      if test "x$CGL_DATA_INSTALLED" = x ; then
23408        projdatadir=
23409        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23410        eval `sh -c "$pcifilemod"`
23411        if test "${CYGPATH_W}" != "echo"; then
23412          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23413        fi
23414        CGL_DATA_INSTALLED="$projdatadir"
23415      fi
23416
23417    fi
23418
23419    break
23420  done
23421
23422  # remove spaces on begin of $projtoprocess
23423  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23424
23425done
23426
23427if test "$allproj" != fail ; then
23428
23429  # now go through the list of .pc files and assemble compiler and linker flags
23430  # important is here to obey the reverse order that has been setup before,
23431  # since then libraries that are required by several others should be after these other libraries
23432  pcfilesprocessed=""
23433
23434  save_IFS="$IFS"
23435  IFS=":"
23436  for pcfile in $allpcfiles ; do
23437
23438    # if $pcfile has been processed already, skip this round
23439    if test "x$pcfilesprocessed" != x ; then
23440      for pcfiledone in $pcfilesprocessed ; do
23441        if test "$pcfiledone" = "$pcfile" ; then
23442          continue 2
23443        fi
23444      done
23445    fi
23446
23447    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23448    #   replace "Libs:" by "echo projlibs="
23449    #   replace "Cflags:" by "echo projcflags="
23450    #   remove every line starting with <some word>:
23451    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23452
23453    # set projcflags and projlibs variables by running $pcfilemod
23454    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23455    projcflags=
23456    projlibs=
23457    IFS="$save_IFS"
23458    eval `sh -c "$pcfilemod"`
23459    IFS=":"
23460
23461    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23462    if test "${CYGPATH_W}" != "echo"; then
23463      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23464    fi
23465    CGL_CFLAGS="$projcflags $CGL_CFLAGS"
23466
23467    # set LIBS variable
23468    CGL_LIBS="$projlibs $CGL_LIBS"
23469
23470    # remember that we have processed $pcfile
23471    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23472
23473  done
23474  IFS="$save_IFS"
23475
23476
23477  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23478  # important is here again to obey the reverse order that has been setup before,
23479  # since then libraries that are required by several others should be after these other libraries
23480  pcfilesprocessed=""
23481
23482  save_IFS="$IFS"
23483  IFS=":"
23484  for pcfile in $allpcifiles ; do
23485
23486    # if $pcfile has been processed already, skip this round
23487    if test "x$pcfilesprocessed" != x ; then
23488      for pcfiledone in $pcfilesprocessed ; do
23489        if test "$pcfiledone" = "$pcfile" ; then
23490          continue 2
23491        fi
23492      done
23493    fi
23494
23495    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23496    #   replace "Libs:" by "echo projlibs="
23497    #   replace "Cflags:" by "echo projcflags="
23498    #   remove every line starting with <some word>:
23499    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23500
23501    # set projcflags and projlibs variables by running $pcfilemod
23502    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23503    projcflags=
23504    projlibs=
23505    IFS="$save_IFS"
23506    eval `sh -c "$pcfilemod"`
23507    IFS=":"
23508
23509    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23510    if test "${CYGPATH_W}" != "echo"; then
23511      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23512    fi
23513    CGL_CFLAGS_INSTALLED="$projcflags $CGL_CFLAGS_INSTALLED"
23514
23515    # set LIBS variable
23516    CGL_LIBS_INSTALLED="$projlibs $CGL_LIBS_INSTALLED"
23517
23518    # remember that we have processed $pcfile
23519    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23520
23521  done
23522  IFS="$save_IFS"
23523
23524
23525  # finish up
23526  coin_has_cgl=yes
23527  echo "$as_me:$LINENO: result: yes" >&5
23528echo "${ECHO_T}yes" >&6
23529
23530cat >>confdefs.h <<\_ACEOF
23531#define COIN_HAS_CGL 1
23532_ACEOF
23533
23534
23535  # adjust linker flags for (i)cl compiler
23536  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
23537  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23538  #    everything of the form "-lname" by "libname.lib", and
23539  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23540  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23541  then
23542    CGL_LIBS=`echo " $CGL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23543    CGL_LIBS_INSTALLED=`echo " $CGL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23544  fi
23545
23546  CGL_PCREQUIRES="cgl"
23547
23548    SYMPHONYLIB_PCREQUIRES="cgl $SYMPHONYLIB_PCREQUIRES"
23549    SYMPHONYLIB_CFLAGS="$CGL_CFLAGS $SYMPHONYLIB_CFLAGS"
23550    SYMPHONYLIB_LIBS="$CGL_LIBS $SYMPHONYLIB_LIBS"
23551    SYMPHONYLIB_CFLAGS_INSTALLED="$CGL_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
23552    SYMPHONYLIB_LIBS_INSTALLED="$CGL_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
23553
23554
23555fi
23556
23557
23558
23559if test $coin_has_cgl != notGiven &&
23560                test $coin_has_cgl != skipping; then
23561  COIN_HAS_CGL_TRUE=
23562  COIN_HAS_CGL_FALSE='#'
23563else
23564  COIN_HAS_CGL_TRUE='#'
23565  COIN_HAS_CGL_FALSE=
23566fi
23567
23568
23569
23570  fi
23571
23572else
23573  echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
23574echo "${ECHO_T}$coin_has_cgl" >&6
23575fi
23576
23577if test $coin_has_cgl != skipping &&
23578   test $coin_has_cgl != notGiven ; then
23579
23580cat >>confdefs.h <<\_ACEOF
23581#define COIN_HAS_CGL 1
23582_ACEOF
23583
23584
23585  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23586if test "${enable_interpackage_dependencies+set}" = set; then
23587  enableval="$enable_interpackage_dependencies"
23588
23589else
23590  enable_interpackage_dependencies=yes
23591fi;
23592
23593  if test $enable_interpackage_dependencies = yes ; then
23594     # construct dependencies variables from LIBS variables
23595     # we add an extra space in LIBS so we can substitute out everything starting with " -"
23596     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23597     # then remove everything of the form -xxx
23598     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23599     CGL_DEPENDENCIES=`echo " $CGL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23600
23601       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23602
23603  fi
23604
23605  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
23606    if test -n "$CGL_CFLAGS" ; then
23607      { echo "$as_me:$LINENO: Cgl CFLAGS are $CGL_CFLAGS" >&5
23608echo "$as_me: Cgl CFLAGS are $CGL_CFLAGS" >&6;}
23609    fi
23610    if test -n "$CGL_LIBS" ; then
23611      { echo "$as_me:$LINENO: Cgl LIBS   are $CGL_LIBS" >&5
23612echo "$as_me: Cgl LIBS   are $CGL_LIBS" >&6;}
23613    fi
23614    if test -n "$CGL_DEPENDENCIES" ; then
23615      { echo "$as_me:$LINENO: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&5
23616echo "$as_me: Cgl DEPENDENCIES are $CGL_DEPENDENCIES" >&6;}
23617    fi
23618    if test -n "$CGL_DATA" ; then
23619      { echo "$as_me:$LINENO: Cgl DATA   is  $CGL_DATA" >&5
23620echo "$as_me: Cgl DATA   is  $CGL_DATA" >&6;}
23621    fi
23622    if test -n "$CGL_PCLIBS" ; then
23623      { echo "$as_me:$LINENO: Cgl PCLIBS are $CGL_PCLIBS" >&5
23624echo "$as_me: Cgl PCLIBS are $CGL_PCLIBS" >&6;}
23625    fi
23626    if test -n "$CGL_PCREQUIRES" ; then
23627      { echo "$as_me:$LINENO: Cgl PCREQUIRES are $CGL_PCREQUIRES" >&5
23628echo "$as_me: Cgl PCREQUIRES are $CGL_PCREQUIRES" >&6;}
23629    fi
23630
23631      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
23632echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
23633      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
23634echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
23635      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
23636echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
23637
23638  fi
23639fi
23640
23641# Define the Makefile conditional
23642
23643
23644if test $coin_has_cgl != notGiven &&
23645                test $coin_has_cgl != skipping; then
23646  COIN_HAS_CGL_TRUE=
23647  COIN_HAS_CGL_FALSE='#'
23648else
23649  COIN_HAS_CGL_TRUE='#'
23650  COIN_HAS_CGL_FALSE=
23651fi
23652
23653
23654
23655
23656
23657echo "$as_me:$LINENO: checking for COIN-OR package OsiTests" >&5
23658echo $ECHO_N "checking for COIN-OR package OsiTests... $ECHO_C" >&6
23659
23660coin_has_ositests=notGiven
23661
23662# check if user wants to skip package in any case
23663if test x"$COIN_SKIP_PROJECTS" != x; then
23664  for dir in $COIN_SKIP_PROJECTS; do
23665    if test $dir = "OsiTests"; then
23666      coin_has_ositests=skipping
23667    fi
23668  done
23669fi
23670
23671if test "$coin_has_ositests" != skipping; then
23672
23673# Check whether --with-m4_tolower(OsiTests) or --without-m4_tolower(OsiTests) was given.
23674if test "${with_ositests+set}" = set; then
23675  withval="$with_ositests"
23676  if test "$withval" = no ; then
23677       coin_has_ositests=skipping
23678     fi
23679
23680fi;
23681fi
23682
23683OSITESTS_LIBS=
23684OSITESTS_CFLAGS=
23685OSITESTS_DATA=
23686OSITESTS_DEPENDENCIES=
23687OSITESTS_PCLIBS=
23688OSITESTS_PCREQUIRES=
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
23699if test $coin_has_ositests != skipping; then
23700
23701# Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
23702if test "${with_ositests_lib+set}" = set; then
23703  withval="$with_ositests_lib"
23704  if test "$withval" = no ; then
23705       coin_has_ositests=skipping
23706     else
23707       coin_has_ositests=yes
23708       OSITESTS_LIBS="$withval"
23709       OSITESTS_PCLIBS="$withval"
23710
23711       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23712       if test -z "$PKG_CONFIG" ; then
23713         OSITESTS_LIBS_INSTALLED="$withval"
23714
23715       fi
23716     fi
23717
23718fi;
23719fi
23720
23721if test $coin_has_ositests != skipping; then
23722
23723# Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
23724if test "${with_ositests_incdir+set}" = set; then
23725  withval="$with_ositests_incdir"
23726  if test "$withval" = no ; then
23727       coin_has_ositests=skipping
23728     else
23729       coin_has_ositests=yes
23730       OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
23731
23732       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23733       if test -z "$PKG_CONFIG" ; then
23734         OSITESTS_CFLAGS_INSTALLED="$OSITESTS_CFLAGS"
23735
23736       fi
23737     fi
23738
23739fi;
23740fi
23741
23742if test $coin_has_ositests != skipping; then
23743
23744# Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
23745if test "${with_ositests_datadir+set}" = set; then
23746  withval="$with_ositests_datadir"
23747  if test "$withval" = no ; then
23748       coin_has_ositests=skipping
23749     else
23750       coin_has_ositests=yes
23751       OSITESTS_DATA="$withval"
23752       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23753       if test -z "$PKG_CONFIG" ; then
23754         OSITESTS_DATA_INSTALLED="$withval"
23755       fi
23756     fi
23757
23758fi;
23759fi
23760
23761if test $coin_has_ositests = notGiven; then
23762  if test -n "$PKG_CONFIG" ; then
23763    # set search path for pkg-config
23764    # need to export variable to be sure that the following pkg-config gets these values
23765    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
23766    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
23767    export PKG_CONFIG_PATH
23768
23769    # let pkg-config do it's magic
23770
23771
23772
23773if test -n "$PKG_CONFIG" ; then
23774  if $PKG_CONFIG --exists "osi-unittests"; then
23775    OSITESTS_VERSIONS=`$PKG_CONFIG --modversion "osi-unittests" 2>/dev/null | tr '\n' ' '`
23776     cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
23777    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
23778	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
23779	# but only do this if is not trivial
23780    if test "$CYGPATH_W" != "echo" ; then
23781      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
23782      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23783    fi
23784    OSITESTS_CFLAGS="$cflags"
23785    OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
23786    OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
23787     coin_has_ositests=yes
23788        echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
23789echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
23790
23791        # adjust linker flags for (i)cl compiler
23792        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
23793        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23794        then
23795          OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23796        fi
23797        OSITESTS_PCREQUIRES="osi-unittests"
23798
23799        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
23800
23801
23802
23803  else
23804    OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-unittests"`
23805      coin_has_ositests=notGiven
23806        echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
23807echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
23808
23809  fi
23810else
23811  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
23812echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
23813   { (exit 1); exit 1; }; }
23814fi
23815
23816
23817
23818
23819    # reset PKG_CONFIG_PATH variable
23820    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
23821    export PKG_CONFIG_PATH
23822
23823  else
23824    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
23825echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
23826
23827echo "$as_me:$LINENO: checking for COIN-OR package OsiTests (fallback)" >&5
23828echo $ECHO_N "checking for COIN-OR package OsiTests (fallback)... $ECHO_C" >&6
23829
23830coin_has_ositests=notGiven
23831OSITESTS_LIBS=
23832OSITESTS_LIBS_INSTALLED=
23833OSITESTS_CFLAGS=
23834OSITESTS_CFLAGS_INSTALLED=
23835OSITESTS_DATA=
23836OSITESTS_DATA_INSTALLED=
23837OSITESTS_PCLIBS=
23838OSITESTS_PCREQUIRES=
23839
23840# initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x, != x)
23841projtoprocess="osi-unittests"
23842
23843# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
23844# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
23845# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
23846# also, we setup the DATA variable
23847allproj=""
23848allpcfiles=""
23849allpcifiles=""
23850while test "x$projtoprocess" != x ; do
23851
23852  for proj in $projtoprocess ; do
23853    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
23854    pcfile=""
23855    save_IFS="$IFS"
23856    IFS=":"
23857    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
23858      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
23859      if test -r "$dir/${proj}-uninstalled.pc" ; then
23860        pcfile="$dir/$proj-uninstalled.pc"
23861        if test -r "$dir/${proj}.pc" ; then
23862          pcifile="$dir/${proj}.pc"
23863        else
23864          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
23865echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
23866          pcifile=
23867        fi
23868        break
23869      fi
23870    done
23871    IFS="$save_IFS"
23872
23873    if test "x$pcfile" != x ; then
23874      # read dependencies from $pcfile and filter it
23875      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
23876
23877      # add projrequires to the front of the list of projects that have to be processed next
23878      # at the same time, remove $proj from this list
23879      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
23880
23881      # read DATA from $pcfile, if _DATA is still empty
23882      if test "x$OSITESTS_DATA" = x ; then
23883        projdatadir=
23884        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23885        eval `sh -c "$pcfilemod"`
23886        OSITESTS_DATA="$projdatadir"
23887      fi
23888
23889      allproj="$allproj $proj"
23890      allpcfiles="$pcfile:$allpcfiles"
23891
23892    else
23893      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23894echo "${ECHO_T}no, dependency $proj not available" >&6
23895      allproj=fail
23896      break 2
23897    fi
23898
23899    if test "x$pcifile" != x ; then
23900      allpcifiles="$pcifile:$allpcifiles"
23901
23902      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23903      if test "x$OSITESTS_DATA_INSTALLED" = x ; then
23904        projdatadir=
23905        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23906        eval `sh -c "$pcifilemod"`
23907        if test "${CYGPATH_W}" != "echo"; then
23908          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23909        fi
23910        OSITESTS_DATA_INSTALLED="$projdatadir"
23911      fi
23912
23913    fi
23914
23915    break
23916  done
23917
23918  # remove spaces on begin of $projtoprocess
23919  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23920
23921done
23922
23923if test "$allproj" != fail ; then
23924
23925  # now go through the list of .pc files and assemble compiler and linker flags
23926  # important is here to obey the reverse order that has been setup before,
23927  # since then libraries that are required by several others should be after these other libraries
23928  pcfilesprocessed=""
23929
23930  save_IFS="$IFS"
23931  IFS=":"
23932  for pcfile in $allpcfiles ; do
23933
23934    # if $pcfile has been processed already, skip this round
23935    if test "x$pcfilesprocessed" != x ; then
23936      for pcfiledone in $pcfilesprocessed ; do
23937        if test "$pcfiledone" = "$pcfile" ; then
23938          continue 2
23939        fi
23940      done
23941    fi
23942
23943    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23944    #   replace "Libs:" by "echo projlibs="
23945    #   replace "Cflags:" by "echo projcflags="
23946    #   remove every line starting with <some word>:
23947    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23948
23949    # set projcflags and projlibs variables by running $pcfilemod
23950    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23951    projcflags=
23952    projlibs=
23953    IFS="$save_IFS"
23954    eval `sh -c "$pcfilemod"`
23955    IFS=":"
23956
23957    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23958    if test "${CYGPATH_W}" != "echo"; then
23959      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23960    fi
23961    OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
23962
23963    # set LIBS variable
23964    OSITESTS_LIBS="$projlibs $OSITESTS_LIBS"
23965
23966    # remember that we have processed $pcfile
23967    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23968
23969  done
23970  IFS="$save_IFS"
23971
23972
23973  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23974  # important is here again to obey the reverse order that has been setup before,
23975  # since then libraries that are required by several others should be after these other libraries
23976  pcfilesprocessed=""
23977
23978  save_IFS="$IFS"
23979  IFS=":"
23980  for pcfile in $allpcifiles ; do
23981
23982    # if $pcfile has been processed already, skip this round
23983    if test "x$pcfilesprocessed" != x ; then
23984      for pcfiledone in $pcfilesprocessed ; do
23985        if test "$pcfiledone" = "$pcfile" ; then
23986          continue 2
23987        fi
23988      done
23989    fi
23990
23991    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23992    #   replace "Libs:" by "echo projlibs="
23993    #   replace "Cflags:" by "echo projcflags="
23994    #   remove every line starting with <some word>:
23995    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23996
23997    # set projcflags and projlibs variables by running $pcfilemod
23998    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23999    projcflags=
24000    projlibs=
24001    IFS="$save_IFS"
24002    eval `sh -c "$pcfilemod"`
24003    IFS=":"
24004
24005    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24006    if test "${CYGPATH_W}" != "echo"; then
24007      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24008    fi
24009    OSITESTS_CFLAGS_INSTALLED="$projcflags $OSITESTS_CFLAGS_INSTALLED"
24010
24011    # set LIBS variable
24012    OSITESTS_LIBS_INSTALLED="$projlibs $OSITESTS_LIBS_INSTALLED"
24013
24014    # remember that we have processed $pcfile
24015    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24016
24017  done
24018  IFS="$save_IFS"
24019
24020
24021  # finish up
24022  coin_has_ositests=yes
24023  echo "$as_me:$LINENO: result: yes" >&5
24024echo "${ECHO_T}yes" >&6
24025
24026cat >>confdefs.h <<\_ACEOF
24027#define COIN_HAS_OSITESTS 1
24028_ACEOF
24029
24030
24031  # adjust linker flags for (i)cl compiler
24032  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
24033  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24034  #    everything of the form "-lname" by "libname.lib", and
24035  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24036  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24037  then
24038    OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24039    OSITESTS_LIBS_INSTALLED=`echo " $OSITESTS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24040  fi
24041
24042  OSITESTS_PCREQUIRES="osi-unittests"
24043
24044
24045fi
24046
24047
24048
24049if test $coin_has_ositests != notGiven &&
24050                test $coin_has_ositests != skipping; then
24051  COIN_HAS_OSITESTS_TRUE=
24052  COIN_HAS_OSITESTS_FALSE='#'
24053else
24054  COIN_HAS_OSITESTS_TRUE='#'
24055  COIN_HAS_OSITESTS_FALSE=
24056fi
24057
24058
24059
24060  fi
24061
24062else
24063  echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
24064echo "${ECHO_T}$coin_has_ositests" >&6
24065fi
24066
24067if test $coin_has_ositests != skipping &&
24068   test $coin_has_ositests != notGiven ; then
24069
24070cat >>confdefs.h <<\_ACEOF
24071#define COIN_HAS_OSITESTS 1
24072_ACEOF
24073
24074
24075  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24076if test "${enable_interpackage_dependencies+set}" = set; then
24077  enableval="$enable_interpackage_dependencies"
24078
24079else
24080  enable_interpackage_dependencies=yes
24081fi;
24082
24083  if test $enable_interpackage_dependencies = yes ; then
24084     # construct dependencies variables from LIBS variables
24085     # we add an extra space in LIBS so we can substitute out everything starting with " -"
24086     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24087     # then remove everything of the form -xxx
24088     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24089     OSITESTS_DEPENDENCIES=`echo " $OSITESTS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24090
24091  fi
24092
24093  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
24094    if test -n "$OSITESTS_CFLAGS" ; then
24095      { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
24096echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
24097    fi
24098    if test -n "$OSITESTS_LIBS" ; then
24099      { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
24100echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
24101    fi
24102    if test -n "$OSITESTS_DEPENDENCIES" ; then
24103      { echo "$as_me:$LINENO: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&5
24104echo "$as_me: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&6;}
24105    fi
24106    if test -n "$OSITESTS_DATA" ; then
24107      { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
24108echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
24109    fi
24110    if test -n "$OSITESTS_PCLIBS" ; then
24111      { echo "$as_me:$LINENO: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&5
24112echo "$as_me: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&6;}
24113    fi
24114    if test -n "$OSITESTS_PCREQUIRES" ; then
24115      { echo "$as_me:$LINENO: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&5
24116echo "$as_me: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&6;}
24117    fi
24118
24119  fi
24120fi
24121
24122# Define the Makefile conditional
24123
24124
24125if test $coin_has_ositests != notGiven &&
24126                test $coin_has_ositests != skipping; then
24127  COIN_HAS_OSITESTS_TRUE=
24128  COIN_HAS_OSITESTS_FALSE='#'
24129else
24130  COIN_HAS_OSITESTS_TRUE='#'
24131  COIN_HAS_OSITESTS_FALSE=
24132fi
24133
24134
24135
24136
24137echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
24138echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
24139
24140coin_has_sample=notGiven
24141
24142# check if user wants to skip package in any case
24143if test x"$COIN_SKIP_PROJECTS" != x; then
24144  for dir in $COIN_SKIP_PROJECTS; do
24145    if test $dir = "Sample"; then
24146      coin_has_sample=skipping
24147    fi
24148  done
24149fi
24150
24151if test "$coin_has_sample" != skipping; then
24152
24153# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
24154if test "${with_sample+set}" = set; then
24155  withval="$with_sample"
24156  if test "$withval" = no ; then
24157       coin_has_sample=skipping
24158     fi
24159
24160fi;
24161fi
24162
24163SAMPLE_LIBS=
24164SAMPLE_CFLAGS=
24165SAMPLE_DATA=
24166SAMPLE_DEPENDENCIES=
24167SAMPLE_PCLIBS=
24168SAMPLE_PCREQUIRES=
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
24179if test $coin_has_sample != skipping; then
24180
24181# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
24182if test "${with_sample_lib+set}" = set; then
24183  withval="$with_sample_lib"
24184  if test "$withval" = no ; then
24185       coin_has_sample=skipping
24186     else
24187       coin_has_sample=yes
24188       SAMPLE_LIBS="$withval"
24189       SAMPLE_PCLIBS="$withval"
24190
24191       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24192       if test -z "$PKG_CONFIG" ; then
24193         SAMPLE_LIBS_INSTALLED="$withval"
24194
24195       fi
24196     fi
24197
24198fi;
24199fi
24200
24201if test $coin_has_sample != skipping; then
24202
24203# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
24204if test "${with_sample_incdir+set}" = set; then
24205  withval="$with_sample_incdir"
24206  if test "$withval" = no ; then
24207       coin_has_sample=skipping
24208     else
24209       coin_has_sample=yes
24210       SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
24211
24212       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24213       if test -z "$PKG_CONFIG" ; then
24214         SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
24215
24216       fi
24217     fi
24218
24219fi;
24220fi
24221
24222if test $coin_has_sample != skipping; then
24223
24224# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
24225if test "${with_sample_datadir+set}" = set; then
24226  withval="$with_sample_datadir"
24227  if test "$withval" = no ; then
24228       coin_has_sample=skipping
24229     else
24230       coin_has_sample=yes
24231       SAMPLE_DATA="$withval"
24232       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24233       if test -z "$PKG_CONFIG" ; then
24234         SAMPLE_DATA_INSTALLED="$withval"
24235       fi
24236     fi
24237
24238fi;
24239fi
24240
24241if test $coin_has_sample = notGiven; then
24242  if test -n "$PKG_CONFIG" ; then
24243    # set search path for pkg-config
24244    # need to export variable to be sure that the following pkg-config gets these values
24245    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24246    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
24247    export PKG_CONFIG_PATH
24248
24249    # let pkg-config do it's magic
24250
24251
24252
24253if test -n "$PKG_CONFIG" ; then
24254  if $PKG_CONFIG --exists "coindatasample"; then
24255    SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
24256     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
24257    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
24258	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
24259	# but only do this if is not trivial
24260    if test "$CYGPATH_W" != "echo" ; then
24261      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
24262      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24263    fi
24264    SAMPLE_CFLAGS="$cflags"
24265    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
24266    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
24267     coin_has_sample=yes
24268        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
24269echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
24270
24271        # adjust linker flags for (i)cl compiler
24272        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
24273        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24274        then
24275          SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24276        fi
24277        SAMPLE_PCREQUIRES="coindatasample"
24278
24279        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
24280
24281
24282
24283  else
24284    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
24285      coin_has_sample=notGiven
24286        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
24287echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
24288
24289  fi
24290else
24291  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
24292echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
24293   { (exit 1); exit 1; }; }
24294fi
24295
24296
24297
24298
24299    # reset PKG_CONFIG_PATH variable
24300    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
24301    export PKG_CONFIG_PATH
24302
24303  else
24304    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
24305echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
24306
24307echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
24308echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
24309
24310coin_has_sample=notGiven
24311SAMPLE_LIBS=
24312SAMPLE_LIBS_INSTALLED=
24313SAMPLE_CFLAGS=
24314SAMPLE_CFLAGS_INSTALLED=
24315SAMPLE_DATA=
24316SAMPLE_DATA_INSTALLED=
24317SAMPLE_PCLIBS=
24318SAMPLE_PCREQUIRES=
24319
24320# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
24321projtoprocess="coindatasample"
24322
24323# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
24324# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
24325# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
24326# also, we setup the DATA variable
24327allproj=""
24328allpcfiles=""
24329allpcifiles=""
24330while test "x$projtoprocess" != x ; do
24331
24332  for proj in $projtoprocess ; do
24333    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
24334    pcfile=""
24335    save_IFS="$IFS"
24336    IFS=":"
24337    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
24338      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
24339      if test -r "$dir/${proj}-uninstalled.pc" ; then
24340        pcfile="$dir/$proj-uninstalled.pc"
24341        if test -r "$dir/${proj}.pc" ; then
24342          pcifile="$dir/${proj}.pc"
24343        else
24344          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
24345echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
24346          pcifile=
24347        fi
24348        break
24349      fi
24350    done
24351    IFS="$save_IFS"
24352
24353    if test "x$pcfile" != x ; then
24354      # read dependencies from $pcfile and filter it
24355      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
24356
24357      # add projrequires to the front of the list of projects that have to be processed next
24358      # at the same time, remove $proj from this list
24359      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
24360
24361      # read DATA from $pcfile, if _DATA is still empty
24362      if test "x$SAMPLE_DATA" = x ; then
24363        projdatadir=
24364        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
24365        eval `sh -c "$pcfilemod"`
24366        SAMPLE_DATA="$projdatadir"
24367      fi
24368
24369      allproj="$allproj $proj"
24370      allpcfiles="$pcfile:$allpcfiles"
24371
24372    else
24373      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
24374echo "${ECHO_T}no, dependency $proj not available" >&6
24375      allproj=fail
24376      break 2
24377    fi
24378
24379    if test "x$pcifile" != x ; then
24380      allpcifiles="$pcifile:$allpcifiles"
24381
24382      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
24383      if test "x$SAMPLE_DATA_INSTALLED" = x ; then
24384        projdatadir=
24385        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
24386        eval `sh -c "$pcifilemod"`
24387        if test "${CYGPATH_W}" != "echo"; then
24388          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
24389        fi
24390        SAMPLE_DATA_INSTALLED="$projdatadir"
24391      fi
24392
24393    fi
24394
24395    break
24396  done
24397
24398  # remove spaces on begin of $projtoprocess
24399  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
24400
24401done
24402
24403if test "$allproj" != fail ; then
24404
24405  # now go through the list of .pc files and assemble compiler and linker flags
24406  # important is here to obey the reverse order that has been setup before,
24407  # since then libraries that are required by several others should be after these other libraries
24408  pcfilesprocessed=""
24409
24410  save_IFS="$IFS"
24411  IFS=":"
24412  for pcfile in $allpcfiles ; do
24413
24414    # if $pcfile has been processed already, skip this round
24415    if test "x$pcfilesprocessed" != x ; then
24416      for pcfiledone in $pcfilesprocessed ; do
24417        if test "$pcfiledone" = "$pcfile" ; then
24418          continue 2
24419        fi
24420      done
24421    fi
24422
24423    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24424    #   replace "Libs:" by "echo projlibs="
24425    #   replace "Cflags:" by "echo projcflags="
24426    #   remove every line starting with <some word>:
24427    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24428
24429    # set projcflags and projlibs variables by running $pcfilemod
24430    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
24431    projcflags=
24432    projlibs=
24433    IFS="$save_IFS"
24434    eval `sh -c "$pcfilemod"`
24435    IFS=":"
24436
24437    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24438    if test "${CYGPATH_W}" != "echo"; then
24439      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24440    fi
24441    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
24442
24443    # set LIBS variable
24444    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
24445
24446    # remember that we have processed $pcfile
24447    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24448
24449  done
24450  IFS="$save_IFS"
24451
24452
24453  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24454  # important is here again to obey the reverse order that has been setup before,
24455  # since then libraries that are required by several others should be after these other libraries
24456  pcfilesprocessed=""
24457
24458  save_IFS="$IFS"
24459  IFS=":"
24460  for pcfile in $allpcifiles ; do
24461
24462    # if $pcfile has been processed already, skip this round
24463    if test "x$pcfilesprocessed" != x ; then
24464      for pcfiledone in $pcfilesprocessed ; do
24465        if test "$pcfiledone" = "$pcfile" ; then
24466          continue 2
24467        fi
24468      done
24469    fi
24470
24471    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24472    #   replace "Libs:" by "echo projlibs="
24473    #   replace "Cflags:" by "echo projcflags="
24474    #   remove every line starting with <some word>:
24475    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24476
24477    # set projcflags and projlibs variables by running $pcfilemod
24478    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
24479    projcflags=
24480    projlibs=
24481    IFS="$save_IFS"
24482    eval `sh -c "$pcfilemod"`
24483    IFS=":"
24484
24485    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24486    if test "${CYGPATH_W}" != "echo"; then
24487      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24488    fi
24489    SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
24490
24491    # set LIBS variable
24492    SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
24493
24494    # remember that we have processed $pcfile
24495    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24496
24497  done
24498  IFS="$save_IFS"
24499
24500
24501  # finish up
24502  coin_has_sample=yes
24503  echo "$as_me:$LINENO: result: yes" >&5
24504echo "${ECHO_T}yes" >&6
24505
24506cat >>confdefs.h <<\_ACEOF
24507#define COIN_HAS_SAMPLE 1
24508_ACEOF
24509
24510
24511  # adjust linker flags for (i)cl compiler
24512  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
24513  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24514  #    everything of the form "-lname" by "libname.lib", and
24515  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24516  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24517  then
24518    SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24519    SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24520  fi
24521
24522  SAMPLE_PCREQUIRES="coindatasample"
24523
24524
24525fi
24526
24527
24528
24529if test $coin_has_sample != notGiven &&
24530                test $coin_has_sample != skipping; then
24531  COIN_HAS_SAMPLE_TRUE=
24532  COIN_HAS_SAMPLE_FALSE='#'
24533else
24534  COIN_HAS_SAMPLE_TRUE='#'
24535  COIN_HAS_SAMPLE_FALSE=
24536fi
24537
24538
24539
24540  fi
24541
24542else
24543  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
24544echo "${ECHO_T}$coin_has_sample" >&6
24545fi
24546
24547if test $coin_has_sample != skipping &&
24548   test $coin_has_sample != notGiven ; then
24549
24550cat >>confdefs.h <<\_ACEOF
24551#define COIN_HAS_SAMPLE 1
24552_ACEOF
24553
24554
24555  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24556if test "${enable_interpackage_dependencies+set}" = set; then
24557  enableval="$enable_interpackage_dependencies"
24558
24559else
24560  enable_interpackage_dependencies=yes
24561fi;
24562
24563  if test $enable_interpackage_dependencies = yes ; then
24564     # construct dependencies variables from LIBS variables
24565     # we add an extra space in LIBS so we can substitute out everything starting with " -"
24566     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24567     # then remove everything of the form -xxx
24568     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24569     SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24570
24571  fi
24572
24573  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
24574    if test -n "$SAMPLE_CFLAGS" ; then
24575      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
24576echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
24577    fi
24578    if test -n "$SAMPLE_LIBS" ; then
24579      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
24580echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
24581    fi
24582    if test -n "$SAMPLE_DEPENDENCIES" ; then
24583      { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
24584echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
24585    fi
24586    if test -n "$SAMPLE_DATA" ; then
24587      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
24588echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
24589    fi
24590    if test -n "$SAMPLE_PCLIBS" ; then
24591      { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
24592echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
24593    fi
24594    if test -n "$SAMPLE_PCREQUIRES" ; then
24595      { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
24596echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
24597    fi
24598
24599  fi
24600fi
24601
24602# Define the Makefile conditional
24603
24604
24605if test $coin_has_sample != notGiven &&
24606                test $coin_has_sample != skipping; then
24607  COIN_HAS_SAMPLE_TRUE=
24608  COIN_HAS_SAMPLE_FALSE='#'
24609else
24610  COIN_HAS_SAMPLE_TRUE='#'
24611  COIN_HAS_SAMPLE_FALSE=
24612fi
24613
24614
24615
24616
24617echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
24618echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
24619
24620coin_has_netlib=notGiven
24621
24622# check if user wants to skip package in any case
24623if test x"$COIN_SKIP_PROJECTS" != x; then
24624  for dir in $COIN_SKIP_PROJECTS; do
24625    if test $dir = "Netlib"; then
24626      coin_has_netlib=skipping
24627    fi
24628  done
24629fi
24630
24631if test "$coin_has_netlib" != skipping; then
24632
24633# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
24634if test "${with_netlib+set}" = set; then
24635  withval="$with_netlib"
24636  if test "$withval" = no ; then
24637       coin_has_netlib=skipping
24638     fi
24639
24640fi;
24641fi
24642
24643NETLIB_LIBS=
24644NETLIB_CFLAGS=
24645NETLIB_DATA=
24646NETLIB_DEPENDENCIES=
24647NETLIB_PCLIBS=
24648NETLIB_PCREQUIRES=
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
24659if test $coin_has_netlib != skipping; then
24660
24661# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
24662if test "${with_netlib_lib+set}" = set; then
24663  withval="$with_netlib_lib"
24664  if test "$withval" = no ; then
24665       coin_has_netlib=skipping
24666     else
24667       coin_has_netlib=yes
24668       NETLIB_LIBS="$withval"
24669       NETLIB_PCLIBS="$withval"
24670
24671       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24672       if test -z "$PKG_CONFIG" ; then
24673         NETLIB_LIBS_INSTALLED="$withval"
24674
24675       fi
24676     fi
24677
24678fi;
24679fi
24680
24681if test $coin_has_netlib != skipping; then
24682
24683# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
24684if test "${with_netlib_incdir+set}" = set; then
24685  withval="$with_netlib_incdir"
24686  if test "$withval" = no ; then
24687       coin_has_netlib=skipping
24688     else
24689       coin_has_netlib=yes
24690       NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
24691
24692       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24693       if test -z "$PKG_CONFIG" ; then
24694         NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
24695
24696       fi
24697     fi
24698
24699fi;
24700fi
24701
24702if test $coin_has_netlib != skipping; then
24703
24704# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
24705if test "${with_netlib_datadir+set}" = set; then
24706  withval="$with_netlib_datadir"
24707  if test "$withval" = no ; then
24708       coin_has_netlib=skipping
24709     else
24710       coin_has_netlib=yes
24711       NETLIB_DATA="$withval"
24712       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24713       if test -z "$PKG_CONFIG" ; then
24714         NETLIB_DATA_INSTALLED="$withval"
24715       fi
24716     fi
24717
24718fi;
24719fi
24720
24721if test $coin_has_netlib = notGiven; then
24722  if test -n "$PKG_CONFIG" ; then
24723    # set search path for pkg-config
24724    # need to export variable to be sure that the following pkg-config gets these values
24725    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24726    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
24727    export PKG_CONFIG_PATH
24728
24729    # let pkg-config do it's magic
24730
24731
24732
24733if test -n "$PKG_CONFIG" ; then
24734  if $PKG_CONFIG --exists "coindatanetlib"; then
24735    NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
24736     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
24737    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
24738	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
24739	# but only do this if is not trivial
24740    if test "$CYGPATH_W" != "echo" ; then
24741      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
24742      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24743    fi
24744    NETLIB_CFLAGS="$cflags"
24745    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
24746    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
24747     coin_has_netlib=yes
24748        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
24749echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
24750
24751        # adjust linker flags for (i)cl compiler
24752        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
24753        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24754        then
24755          NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24756        fi
24757        NETLIB_PCREQUIRES="coindatanetlib"
24758
24759        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
24760
24761
24762
24763  else
24764    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
24765      coin_has_netlib=notGiven
24766        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
24767echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
24768
24769  fi
24770else
24771  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
24772echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
24773   { (exit 1); exit 1; }; }
24774fi
24775
24776
24777
24778
24779    # reset PKG_CONFIG_PATH variable
24780    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
24781    export PKG_CONFIG_PATH
24782
24783  else
24784    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
24785echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
24786
24787echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
24788echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
24789
24790coin_has_netlib=notGiven
24791NETLIB_LIBS=
24792NETLIB_LIBS_INSTALLED=
24793NETLIB_CFLAGS=
24794NETLIB_CFLAGS_INSTALLED=
24795NETLIB_DATA=
24796NETLIB_DATA_INSTALLED=
24797NETLIB_PCLIBS=
24798NETLIB_PCREQUIRES=
24799
24800# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
24801projtoprocess="coindatanetlib"
24802
24803# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
24804# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
24805# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
24806# also, we setup the DATA variable
24807allproj=""
24808allpcfiles=""
24809allpcifiles=""
24810while test "x$projtoprocess" != x ; do
24811
24812  for proj in $projtoprocess ; do
24813    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
24814    pcfile=""
24815    save_IFS="$IFS"
24816    IFS=":"
24817    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
24818      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
24819      if test -r "$dir/${proj}-uninstalled.pc" ; then
24820        pcfile="$dir/$proj-uninstalled.pc"
24821        if test -r "$dir/${proj}.pc" ; then
24822          pcifile="$dir/${proj}.pc"
24823        else
24824          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
24825echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
24826          pcifile=
24827        fi
24828        break
24829      fi
24830    done
24831    IFS="$save_IFS"
24832
24833    if test "x$pcfile" != x ; then
24834      # read dependencies from $pcfile and filter it
24835      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
24836
24837      # add projrequires to the front of the list of projects that have to be processed next
24838      # at the same time, remove $proj from this list
24839      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
24840
24841      # read DATA from $pcfile, if _DATA is still empty
24842      if test "x$NETLIB_DATA" = x ; then
24843        projdatadir=
24844        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
24845        eval `sh -c "$pcfilemod"`
24846        NETLIB_DATA="$projdatadir"
24847      fi
24848
24849      allproj="$allproj $proj"
24850      allpcfiles="$pcfile:$allpcfiles"
24851
24852    else
24853      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
24854echo "${ECHO_T}no, dependency $proj not available" >&6
24855      allproj=fail
24856      break 2
24857    fi
24858
24859    if test "x$pcifile" != x ; then
24860      allpcifiles="$pcifile:$allpcifiles"
24861
24862      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
24863      if test "x$NETLIB_DATA_INSTALLED" = x ; then
24864        projdatadir=
24865        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
24866        eval `sh -c "$pcifilemod"`
24867        if test "${CYGPATH_W}" != "echo"; then
24868          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
24869        fi
24870        NETLIB_DATA_INSTALLED="$projdatadir"
24871      fi
24872
24873    fi
24874
24875    break
24876  done
24877
24878  # remove spaces on begin of $projtoprocess
24879  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
24880
24881done
24882
24883if test "$allproj" != fail ; then
24884
24885  # now go through the list of .pc files and assemble compiler and linker flags
24886  # important is here to obey the reverse order that has been setup before,
24887  # since then libraries that are required by several others should be after these other libraries
24888  pcfilesprocessed=""
24889
24890  save_IFS="$IFS"
24891  IFS=":"
24892  for pcfile in $allpcfiles ; do
24893
24894    # if $pcfile has been processed already, skip this round
24895    if test "x$pcfilesprocessed" != x ; then
24896      for pcfiledone in $pcfilesprocessed ; do
24897        if test "$pcfiledone" = "$pcfile" ; then
24898          continue 2
24899        fi
24900      done
24901    fi
24902
24903    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24904    #   replace "Libs:" by "echo projlibs="
24905    #   replace "Cflags:" by "echo projcflags="
24906    #   remove every line starting with <some word>:
24907    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24908
24909    # set projcflags and projlibs variables by running $pcfilemod
24910    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
24911    projcflags=
24912    projlibs=
24913    IFS="$save_IFS"
24914    eval `sh -c "$pcfilemod"`
24915    IFS=":"
24916
24917    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24918    if test "${CYGPATH_W}" != "echo"; then
24919      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24920    fi
24921    NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
24922
24923    # set LIBS variable
24924    NETLIB_LIBS="$projlibs $NETLIB_LIBS"
24925
24926    # remember that we have processed $pcfile
24927    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24928
24929  done
24930  IFS="$save_IFS"
24931
24932
24933  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24934  # important is here again to obey the reverse order that has been setup before,
24935  # since then libraries that are required by several others should be after these other libraries
24936  pcfilesprocessed=""
24937
24938  save_IFS="$IFS"
24939  IFS=":"
24940  for pcfile in $allpcifiles ; do
24941
24942    # if $pcfile has been processed already, skip this round
24943    if test "x$pcfilesprocessed" != x ; then
24944      for pcfiledone in $pcfilesprocessed ; do
24945        if test "$pcfiledone" = "$pcfile" ; then
24946          continue 2
24947        fi
24948      done
24949    fi
24950
24951    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24952    #   replace "Libs:" by "echo projlibs="
24953    #   replace "Cflags:" by "echo projcflags="
24954    #   remove every line starting with <some word>:
24955    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24956
24957    # set projcflags and projlibs variables by running $pcfilemod
24958    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
24959    projcflags=
24960    projlibs=
24961    IFS="$save_IFS"
24962    eval `sh -c "$pcfilemod"`
24963    IFS=":"
24964
24965    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24966    if test "${CYGPATH_W}" != "echo"; then
24967      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24968    fi
24969    NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
24970
24971    # set LIBS variable
24972    NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
24973
24974    # remember that we have processed $pcfile
24975    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24976
24977  done
24978  IFS="$save_IFS"
24979
24980
24981  # finish up
24982  coin_has_netlib=yes
24983  echo "$as_me:$LINENO: result: yes" >&5
24984echo "${ECHO_T}yes" >&6
24985
24986cat >>confdefs.h <<\_ACEOF
24987#define COIN_HAS_NETLIB 1
24988_ACEOF
24989
24990
24991  # adjust linker flags for (i)cl compiler
24992  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
24993  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24994  #    everything of the form "-lname" by "libname.lib", and
24995  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24996  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24997  then
24998    NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24999    NETLIB_LIBS_INSTALLED=`echo " $NETLIB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
25000  fi
25001
25002  NETLIB_PCREQUIRES="coindatanetlib"
25003
25004
25005fi
25006
25007
25008
25009if test $coin_has_netlib != notGiven &&
25010                test $coin_has_netlib != skipping; then
25011  COIN_HAS_NETLIB_TRUE=
25012  COIN_HAS_NETLIB_FALSE='#'
25013else
25014  COIN_HAS_NETLIB_TRUE='#'
25015  COIN_HAS_NETLIB_FALSE=
25016fi
25017
25018
25019
25020  fi
25021
25022else
25023  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
25024echo "${ECHO_T}$coin_has_netlib" >&6
25025fi
25026
25027if test $coin_has_netlib != skipping &&
25028   test $coin_has_netlib != notGiven ; then
25029
25030cat >>confdefs.h <<\_ACEOF
25031#define COIN_HAS_NETLIB 1
25032_ACEOF
25033
25034
25035  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
25036if test "${enable_interpackage_dependencies+set}" = set; then
25037  enableval="$enable_interpackage_dependencies"
25038
25039else
25040  enable_interpackage_dependencies=yes
25041fi;
25042
25043  if test $enable_interpackage_dependencies = yes ; then
25044     # construct dependencies variables from LIBS variables
25045     # we add an extra space in LIBS so we can substitute out everything starting with " -"
25046     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
25047     # then remove everything of the form -xxx
25048     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
25049     NETLIB_DEPENDENCIES=`echo " $NETLIB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
25050
25051  fi
25052
25053  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
25054    if test -n "$NETLIB_CFLAGS" ; then
25055      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
25056echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
25057    fi
25058    if test -n "$NETLIB_LIBS" ; then
25059      { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
25060echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
25061    fi
25062    if test -n "$NETLIB_DEPENDENCIES" ; then
25063      { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
25064echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
25065    fi
25066    if test -n "$NETLIB_DATA" ; then
25067      { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
25068echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
25069    fi
25070    if test -n "$NETLIB_PCLIBS" ; then
25071      { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
25072echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
25073    fi
25074    if test -n "$NETLIB_PCREQUIRES" ; then
25075      { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
25076echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
25077    fi
25078
25079  fi
25080fi
25081
25082# Define the Makefile conditional
25083
25084
25085if test $coin_has_netlib != notGiven &&
25086                test $coin_has_netlib != skipping; then
25087  COIN_HAS_NETLIB_TRUE=
25088  COIN_HAS_NETLIB_FALSE='#'
25089else
25090  COIN_HAS_NETLIB_TRUE='#'
25091  COIN_HAS_NETLIB_FALSE=
25092fi
25093
25094
25095
25096
25097echo "$as_me:$LINENO: checking for COIN-OR package Miplib3" >&5
25098echo $ECHO_N "checking for COIN-OR package Miplib3... $ECHO_C" >&6
25099
25100coin_has_miplib3=notGiven
25101
25102# check if user wants to skip package in any case
25103if test x"$COIN_SKIP_PROJECTS" != x; then
25104  for dir in $COIN_SKIP_PROJECTS; do
25105    if test $dir = "Miplib3"; then
25106      coin_has_miplib3=skipping
25107    fi
25108  done
25109fi
25110
25111if test "$coin_has_miplib3" != skipping; then
25112
25113# Check whether --with-m4_tolower(Miplib3) or --without-m4_tolower(Miplib3) was given.
25114if test "${with_miplib3+set}" = set; then
25115  withval="$with_miplib3"
25116  if test "$withval" = no ; then
25117       coin_has_miplib3=skipping
25118     fi
25119
25120fi;
25121fi
25122
25123MIPLIB3_LIBS=
25124MIPLIB3_CFLAGS=
25125MIPLIB3_DATA=
25126MIPLIB3_DEPENDENCIES=
25127MIPLIB3_PCLIBS=
25128MIPLIB3_PCREQUIRES=
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
25139if test $coin_has_miplib3 != skipping; then
25140
25141# Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given.
25142if test "${with_miplib3_lib+set}" = set; then
25143  withval="$with_miplib3_lib"
25144  if test "$withval" = no ; then
25145       coin_has_miplib3=skipping
25146     else
25147       coin_has_miplib3=yes
25148       MIPLIB3_LIBS="$withval"
25149       MIPLIB3_PCLIBS="$withval"
25150
25151       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25152       if test -z "$PKG_CONFIG" ; then
25153         MIPLIB3_LIBS_INSTALLED="$withval"
25154
25155       fi
25156     fi
25157
25158fi;
25159fi
25160
25161if test $coin_has_miplib3 != skipping; then
25162
25163# Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given.
25164if test "${with_miplib3_incdir+set}" = set; then
25165  withval="$with_miplib3_incdir"
25166  if test "$withval" = no ; then
25167       coin_has_miplib3=skipping
25168     else
25169       coin_has_miplib3=yes
25170       MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`"
25171
25172       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25173       if test -z "$PKG_CONFIG" ; then
25174         MIPLIB3_CFLAGS_INSTALLED="$MIPLIB3_CFLAGS"
25175
25176       fi
25177     fi
25178
25179fi;
25180fi
25181
25182if test $coin_has_miplib3 != skipping; then
25183
25184# Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given.
25185if test "${with_miplib3_datadir+set}" = set; then
25186  withval="$with_miplib3_datadir"
25187  if test "$withval" = no ; then
25188       coin_has_miplib3=skipping
25189     else
25190       coin_has_miplib3=yes
25191       MIPLIB3_DATA="$withval"
25192       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25193       if test -z "$PKG_CONFIG" ; then
25194         MIPLIB3_DATA_INSTALLED="$withval"
25195       fi
25196     fi
25197
25198fi;
25199fi
25200
25201if test $coin_has_miplib3 = notGiven; then
25202  if test -n "$PKG_CONFIG" ; then
25203    # set search path for pkg-config
25204    # need to export variable to be sure that the following pkg-config gets these values
25205    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
25206    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
25207    export PKG_CONFIG_PATH
25208
25209    # let pkg-config do it's magic
25210
25211
25212
25213if test -n "$PKG_CONFIG" ; then
25214  if $PKG_CONFIG --exists "coindatamiplib3"; then
25215    MIPLIB3_VERSIONS=`$PKG_CONFIG --modversion "coindatamiplib3" 2>/dev/null | tr '\n' ' '`
25216     cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/null`
25217    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
25218	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
25219	# but only do this if is not trivial
25220    if test "$CYGPATH_W" != "echo" ; then
25221      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
25222      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25223    fi
25224    MIPLIB3_CFLAGS="$cflags"
25225    MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null`
25226    MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/null`
25227     coin_has_miplib3=yes
25228        echo "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&5
25229echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6
25230
25231        # adjust linker flags for (i)cl compiler
25232        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
25233        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25234        then
25235          MIPLIB3_LIBS=`echo " $MIPLIB3_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25236        fi
25237        MIPLIB3_PCREQUIRES="coindatamiplib3"
25238
25239        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
25240
25241
25242
25243  else
25244    MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatamiplib3"`
25245      coin_has_miplib3=notGiven
25246        echo "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&5
25247echo "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&6
25248
25249  fi
25250else
25251  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&5
25252echo "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;}
25253   { (exit 1); exit 1; }; }
25254fi
25255
25256
25257
25258
25259    # reset PKG_CONFIG_PATH variable
25260    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
25261    export PKG_CONFIG_PATH
25262
25263  else
25264    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
25265echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
25266
25267echo "$as_me:$LINENO: checking for COIN-OR package Miplib3 (fallback)" >&5
25268echo $ECHO_N "checking for COIN-OR package Miplib3 (fallback)... $ECHO_C" >&6
25269
25270coin_has_miplib3=notGiven
25271MIPLIB3_LIBS=
25272MIPLIB3_LIBS_INSTALLED=
25273MIPLIB3_CFLAGS=
25274MIPLIB3_CFLAGS_INSTALLED=
25275MIPLIB3_DATA=
25276MIPLIB3_DATA_INSTALLED=
25277MIPLIB3_PCLIBS=
25278MIPLIB3_PCREQUIRES=
25279
25280# initial list of dependencies is "coindatamiplib3", but we need to filter out version number specifications (= x, <= x, >= x, != x)
25281projtoprocess="coindatamiplib3"
25282
25283# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
25284# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
25285# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
25286# also, we setup the DATA variable
25287allproj=""
25288allpcfiles=""
25289allpcifiles=""
25290while test "x$projtoprocess" != x ; do
25291
25292  for proj in $projtoprocess ; do
25293    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
25294    pcfile=""
25295    save_IFS="$IFS"
25296    IFS=":"
25297    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
25298      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
25299      if test -r "$dir/${proj}-uninstalled.pc" ; then
25300        pcfile="$dir/$proj-uninstalled.pc"
25301        if test -r "$dir/${proj}.pc" ; then
25302          pcifile="$dir/${proj}.pc"
25303        else
25304          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
25305echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
25306          pcifile=
25307        fi
25308        break
25309      fi
25310    done
25311    IFS="$save_IFS"
25312
25313    if test "x$pcfile" != x ; then
25314      # read dependencies from $pcfile and filter it
25315      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
25316
25317      # add projrequires to the front of the list of projects that have to be processed next
25318      # at the same time, remove $proj from this list
25319      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
25320
25321      # read DATA from $pcfile, if _DATA is still empty
25322      if test "x$MIPLIB3_DATA" = x ; then
25323        projdatadir=
25324        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
25325        eval `sh -c "$pcfilemod"`
25326        MIPLIB3_DATA="$projdatadir"
25327      fi
25328
25329      allproj="$allproj $proj"
25330      allpcfiles="$pcfile:$allpcfiles"
25331
25332    else
25333      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
25334echo "${ECHO_T}no, dependency $proj not available" >&6
25335      allproj=fail
25336      break 2
25337    fi
25338
25339    if test "x$pcifile" != x ; then
25340      allpcifiles="$pcifile:$allpcifiles"
25341
25342      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
25343      if test "x$MIPLIB3_DATA_INSTALLED" = x ; then
25344        projdatadir=
25345        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
25346        eval `sh -c "$pcifilemod"`
25347        if test "${CYGPATH_W}" != "echo"; then
25348          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
25349        fi
25350        MIPLIB3_DATA_INSTALLED="$projdatadir"
25351      fi
25352
25353    fi
25354
25355    break
25356  done
25357
25358  # remove spaces on begin of $projtoprocess
25359  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
25360
25361done
25362
25363if test "$allproj" != fail ; then
25364
25365  # now go through the list of .pc files and assemble compiler and linker flags
25366  # important is here to obey the reverse order that has been setup before,
25367  # since then libraries that are required by several others should be after these other libraries
25368  pcfilesprocessed=""
25369
25370  save_IFS="$IFS"
25371  IFS=":"
25372  for pcfile in $allpcfiles ; do
25373
25374    # if $pcfile has been processed already, skip this round
25375    if test "x$pcfilesprocessed" != x ; then
25376      for pcfiledone in $pcfilesprocessed ; do
25377        if test "$pcfiledone" = "$pcfile" ; then
25378          continue 2
25379        fi
25380      done
25381    fi
25382
25383    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25384    #   replace "Libs:" by "echo projlibs="
25385    #   replace "Cflags:" by "echo projcflags="
25386    #   remove every line starting with <some word>:
25387    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25388
25389    # set projcflags and projlibs variables by running $pcfilemod
25390    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
25391    projcflags=
25392    projlibs=
25393    IFS="$save_IFS"
25394    eval `sh -c "$pcfilemod"`
25395    IFS=":"
25396
25397    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25398    if test "${CYGPATH_W}" != "echo"; then
25399      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25400    fi
25401    MIPLIB3_CFLAGS="$projcflags $MIPLIB3_CFLAGS"
25402
25403    # set LIBS variable
25404    MIPLIB3_LIBS="$projlibs $MIPLIB3_LIBS"
25405
25406    # remember that we have processed $pcfile
25407    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25408
25409  done
25410  IFS="$save_IFS"
25411
25412
25413  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
25414  # important is here again to obey the reverse order that has been setup before,
25415  # since then libraries that are required by several others should be after these other libraries
25416  pcfilesprocessed=""
25417
25418  save_IFS="$IFS"
25419  IFS=":"
25420  for pcfile in $allpcifiles ; do
25421
25422    # if $pcfile has been processed already, skip this round
25423    if test "x$pcfilesprocessed" != x ; then
25424      for pcfiledone in $pcfilesprocessed ; do
25425        if test "$pcfiledone" = "$pcfile" ; then
25426          continue 2
25427        fi
25428      done
25429    fi
25430
25431    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25432    #   replace "Libs:" by "echo projlibs="
25433    #   replace "Cflags:" by "echo projcflags="
25434    #   remove every line starting with <some word>:
25435    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25436
25437    # set projcflags and projlibs variables by running $pcfilemod
25438    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
25439    projcflags=
25440    projlibs=
25441    IFS="$save_IFS"
25442    eval `sh -c "$pcfilemod"`
25443    IFS=":"
25444
25445    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25446    if test "${CYGPATH_W}" != "echo"; then
25447      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25448    fi
25449    MIPLIB3_CFLAGS_INSTALLED="$projcflags $MIPLIB3_CFLAGS_INSTALLED"
25450
25451    # set LIBS variable
25452    MIPLIB3_LIBS_INSTALLED="$projlibs $MIPLIB3_LIBS_INSTALLED"
25453
25454    # remember that we have processed $pcfile
25455    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25456
25457  done
25458  IFS="$save_IFS"
25459
25460
25461  # finish up
25462  coin_has_miplib3=yes
25463  echo "$as_me:$LINENO: result: yes" >&5
25464echo "${ECHO_T}yes" >&6
25465
25466cat >>confdefs.h <<\_ACEOF
25467#define COIN_HAS_MIPLIB3 1
25468_ACEOF
25469
25470
25471  # adjust linker flags for (i)cl compiler
25472  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
25473  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
25474  #    everything of the form "-lname" by "libname.lib", and
25475  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
25476  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25477  then
25478    MIPLIB3_LIBS=`echo " $MIPLIB3_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25479    MIPLIB3_LIBS_INSTALLED=`echo " $MIPLIB3_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
25480  fi
25481
25482  MIPLIB3_PCREQUIRES="coindatamiplib3"
25483
25484
25485fi
25486
25487
25488
25489if test $coin_has_miplib3 != notGiven &&
25490                test $coin_has_miplib3 != skipping; then
25491  COIN_HAS_MIPLIB3_TRUE=
25492  COIN_HAS_MIPLIB3_FALSE='#'
25493else
25494  COIN_HAS_MIPLIB3_TRUE='#'
25495  COIN_HAS_MIPLIB3_FALSE=
25496fi
25497
25498
25499
25500  fi
25501
25502else
25503  echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
25504echo "${ECHO_T}$coin_has_miplib3" >&6
25505fi
25506
25507if test $coin_has_miplib3 != skipping &&
25508   test $coin_has_miplib3 != notGiven ; then
25509
25510cat >>confdefs.h <<\_ACEOF
25511#define COIN_HAS_MIPLIB3 1
25512_ACEOF
25513
25514
25515  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
25516if test "${enable_interpackage_dependencies+set}" = set; then
25517  enableval="$enable_interpackage_dependencies"
25518
25519else
25520  enable_interpackage_dependencies=yes
25521fi;
25522
25523  if test $enable_interpackage_dependencies = yes ; then
25524     # construct dependencies variables from LIBS variables
25525     # we add an extra space in LIBS so we can substitute out everything starting with " -"
25526     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
25527     # then remove everything of the form -xxx
25528     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
25529     MIPLIB3_DEPENDENCIES=`echo " $MIPLIB3_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
25530
25531  fi
25532
25533  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
25534    if test -n "$MIPLIB3_CFLAGS" ; then
25535      { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
25536echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
25537    fi
25538    if test -n "$MIPLIB3_LIBS" ; then
25539      { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
25540echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
25541    fi
25542    if test -n "$MIPLIB3_DEPENDENCIES" ; then
25543      { echo "$as_me:$LINENO: Miplib3 DEPENDENCIES are $MIPLIB3_DEPENDENCIES" >&5
25544echo "$as_me: Miplib3 DEPENDENCIES are $MIPLIB3_DEPENDENCIES" >&6;}
25545    fi
25546    if test -n "$MIPLIB3_DATA" ; then
25547      { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
25548echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
25549    fi
25550    if test -n "$MIPLIB3_PCLIBS" ; then
25551      { echo "$as_me:$LINENO: Miplib3 PCLIBS are $MIPLIB3_PCLIBS" >&5
25552echo "$as_me: Miplib3 PCLIBS are $MIPLIB3_PCLIBS" >&6;}
25553    fi
25554    if test -n "$MIPLIB3_PCREQUIRES" ; then
25555      { echo "$as_me:$LINENO: Miplib3 PCREQUIRES are $MIPLIB3_PCREQUIRES" >&5
25556echo "$as_me: Miplib3 PCREQUIRES are $MIPLIB3_PCREQUIRES" >&6;}
25557    fi
25558
25559  fi
25560fi
25561
25562# Define the Makefile conditional
25563
25564
25565if test $coin_has_miplib3 != notGiven &&
25566                test $coin_has_miplib3 != skipping; then
25567  COIN_HAS_MIPLIB3_TRUE=
25568  COIN_HAS_MIPLIB3_FALSE='#'
25569else
25570  COIN_HAS_MIPLIB3_TRUE='#'
25571  COIN_HAS_MIPLIB3_FALSE=
25572fi
25573
25574
25575
25576
25577#############################################################################
25578#                            Third party solvers                            #
25579#############################################################################
25580
25581# Check which third party solvers are available
25582
25583echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
25584echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
25585
25586coin_has_cpx=notGiven
25587
25588# check if user wants to skip package in any case
25589if test x"$COIN_SKIP_PROJECTS" != x; then
25590  for dir in $COIN_SKIP_PROJECTS; do
25591    if test $dir = "Cpx"; then
25592      coin_has_cpx=skipping
25593    fi
25594  done
25595fi
25596
25597if test "$coin_has_cpx" != skipping; then
25598
25599# Check whether --with-m4_tolower(Cpx) or --without-m4_tolower(Cpx) was given.
25600if test "${with_cpx+set}" = set; then
25601  withval="$with_cpx"
25602  if test "$withval" = no ; then
25603       coin_has_cpx=skipping
25604     fi
25605
25606fi;
25607fi
25608
25609CPX_LIBS=
25610CPX_CFLAGS=
25611CPX_DATA=
25612CPX_DEPENDENCIES=
25613CPX_PCLIBS=
25614CPX_PCREQUIRES=
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
25633if test $coin_has_cpx != skipping; then
25634
25635# Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
25636if test "${with_cpx_lib+set}" = set; then
25637  withval="$with_cpx_lib"
25638  if test "$withval" = no ; then
25639       coin_has_cpx=skipping
25640     else
25641       coin_has_cpx=yes
25642       CPX_LIBS="$withval"
25643       CPX_PCLIBS="$withval"
25644
25645         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
25646         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
25647
25648       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25649       if test -z "$PKG_CONFIG" ; then
25650         CPX_LIBS_INSTALLED="$withval"
25651         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
25652       fi
25653     fi
25654
25655fi;
25656fi
25657
25658if test $coin_has_cpx != skipping; then
25659
25660# Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
25661if test "${with_cpx_incdir+set}" = set; then
25662  withval="$with_cpx_incdir"
25663  if test "$withval" = no ; then
25664       coin_has_cpx=skipping
25665     else
25666       coin_has_cpx=yes
25667       CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
25668       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
25669       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25670       if test -z "$PKG_CONFIG" ; then
25671         CPX_CFLAGS_INSTALLED="$CPX_CFLAGS"
25672         SYMPHONYLIB_CFLAGS_INSTALLED="$CPX_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
25673       fi
25674     fi
25675
25676fi;
25677fi
25678
25679if test $coin_has_cpx != skipping; then
25680
25681# Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
25682if test "${with_cpx_datadir+set}" = set; then
25683  withval="$with_cpx_datadir"
25684  if test "$withval" = no ; then
25685       coin_has_cpx=skipping
25686     else
25687       coin_has_cpx=yes
25688       CPX_DATA="$withval"
25689       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
25690       if test -z "$PKG_CONFIG" ; then
25691         CPX_DATA_INSTALLED="$withval"
25692       fi
25693     fi
25694
25695fi;
25696fi
25697
25698if test $coin_has_cpx = notGiven; then
25699  if test -n "$PKG_CONFIG" ; then
25700    # set search path for pkg-config
25701    # need to export variable to be sure that the following pkg-config gets these values
25702    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
25703    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
25704    export PKG_CONFIG_PATH
25705
25706    # let pkg-config do it's magic
25707
25708
25709
25710if test -n "$PKG_CONFIG" ; then
25711  if $PKG_CONFIG --exists "osi-cplex"; then
25712    CPX_VERSIONS=`$PKG_CONFIG --modversion "osi-cplex" 2>/dev/null | tr '\n' ' '`
25713     cflags=`$PKG_CONFIG --cflags "osi-cplex" 2>/dev/null`
25714    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
25715	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
25716	# but only do this if is not trivial
25717    if test "$CYGPATH_W" != "echo" ; then
25718      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
25719      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25720    fi
25721    CPX_CFLAGS="$cflags"
25722    CPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/null`
25723    CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cplex" 2>/dev/null`
25724     coin_has_cpx=yes
25725        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
25726echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
25727
25728        # adjust linker flags for (i)cl compiler
25729        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
25730        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25731        then
25732          CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25733        fi
25734        CPX_PCREQUIRES="osi-cplex"
25735
25736        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
25737
25738          SYMPHONYLIB_PCREQUIRES="osi-cplex $SYMPHONYLIB_PCREQUIRES"
25739          SYMPHONYLIB_CFLAGS="$CPX_CFLAGS $SYMPHONYLIB_CFLAGS"
25740          SYMPHONYLIB_LIBS="$CPX_LIBS $SYMPHONYLIB_LIBS"
25741
25742
25743
25744  else
25745    CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cplex"`
25746      coin_has_cpx=notGiven
25747        echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
25748echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
25749
25750  fi
25751else
25752  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
25753echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
25754   { (exit 1); exit 1; }; }
25755fi
25756
25757
25758
25759
25760    # reset PKG_CONFIG_PATH variable
25761    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
25762    export PKG_CONFIG_PATH
25763
25764  else
25765    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
25766echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
25767
25768echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
25769echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
25770
25771coin_has_cpx=notGiven
25772CPX_LIBS=
25773CPX_LIBS_INSTALLED=
25774CPX_CFLAGS=
25775CPX_CFLAGS_INSTALLED=
25776CPX_DATA=
25777CPX_DATA_INSTALLED=
25778CPX_PCLIBS=
25779CPX_PCREQUIRES=
25780
25781# initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x, != x)
25782projtoprocess="osi-cplex"
25783
25784# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
25785# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
25786# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
25787# also, we setup the DATA variable
25788allproj=""
25789allpcfiles=""
25790allpcifiles=""
25791while test "x$projtoprocess" != x ; do
25792
25793  for proj in $projtoprocess ; do
25794    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
25795    pcfile=""
25796    save_IFS="$IFS"
25797    IFS=":"
25798    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
25799      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
25800      if test -r "$dir/${proj}-uninstalled.pc" ; then
25801        pcfile="$dir/$proj-uninstalled.pc"
25802        if test -r "$dir/${proj}.pc" ; then
25803          pcifile="$dir/${proj}.pc"
25804        else
25805          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
25806echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
25807          pcifile=
25808        fi
25809        break
25810      fi
25811    done
25812    IFS="$save_IFS"
25813
25814    if test "x$pcfile" != x ; then
25815      # read dependencies from $pcfile and filter it
25816      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
25817
25818      # add projrequires to the front of the list of projects that have to be processed next
25819      # at the same time, remove $proj from this list
25820      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
25821
25822      # read DATA from $pcfile, if _DATA is still empty
25823      if test "x$CPX_DATA" = x ; then
25824        projdatadir=
25825        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
25826        eval `sh -c "$pcfilemod"`
25827        CPX_DATA="$projdatadir"
25828      fi
25829
25830      allproj="$allproj $proj"
25831      allpcfiles="$pcfile:$allpcfiles"
25832
25833    else
25834      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
25835echo "${ECHO_T}no, dependency $proj not available" >&6
25836      allproj=fail
25837      break 2
25838    fi
25839
25840    if test "x$pcifile" != x ; then
25841      allpcifiles="$pcifile:$allpcifiles"
25842
25843      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
25844      if test "x$CPX_DATA_INSTALLED" = x ; then
25845        projdatadir=
25846        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
25847        eval `sh -c "$pcifilemod"`
25848        if test "${CYGPATH_W}" != "echo"; then
25849          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
25850        fi
25851        CPX_DATA_INSTALLED="$projdatadir"
25852      fi
25853
25854    fi
25855
25856    break
25857  done
25858
25859  # remove spaces on begin of $projtoprocess
25860  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
25861
25862done
25863
25864if test "$allproj" != fail ; then
25865
25866  # now go through the list of .pc files and assemble compiler and linker flags
25867  # important is here to obey the reverse order that has been setup before,
25868  # since then libraries that are required by several others should be after these other libraries
25869  pcfilesprocessed=""
25870
25871  save_IFS="$IFS"
25872  IFS=":"
25873  for pcfile in $allpcfiles ; do
25874
25875    # if $pcfile has been processed already, skip this round
25876    if test "x$pcfilesprocessed" != x ; then
25877      for pcfiledone in $pcfilesprocessed ; do
25878        if test "$pcfiledone" = "$pcfile" ; then
25879          continue 2
25880        fi
25881      done
25882    fi
25883
25884    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25885    #   replace "Libs:" by "echo projlibs="
25886    #   replace "Cflags:" by "echo projcflags="
25887    #   remove every line starting with <some word>:
25888    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25889
25890    # set projcflags and projlibs variables by running $pcfilemod
25891    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
25892    projcflags=
25893    projlibs=
25894    IFS="$save_IFS"
25895    eval `sh -c "$pcfilemod"`
25896    IFS=":"
25897
25898    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25899    if test "${CYGPATH_W}" != "echo"; then
25900      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25901    fi
25902    CPX_CFLAGS="$projcflags $CPX_CFLAGS"
25903
25904    # set LIBS variable
25905    CPX_LIBS="$projlibs $CPX_LIBS"
25906
25907    # remember that we have processed $pcfile
25908    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25909
25910  done
25911  IFS="$save_IFS"
25912
25913
25914  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
25915  # important is here again to obey the reverse order that has been setup before,
25916  # since then libraries that are required by several others should be after these other libraries
25917  pcfilesprocessed=""
25918
25919  save_IFS="$IFS"
25920  IFS=":"
25921  for pcfile in $allpcifiles ; do
25922
25923    # if $pcfile has been processed already, skip this round
25924    if test "x$pcfilesprocessed" != x ; then
25925      for pcfiledone in $pcfilesprocessed ; do
25926        if test "$pcfiledone" = "$pcfile" ; then
25927          continue 2
25928        fi
25929      done
25930    fi
25931
25932    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
25933    #   replace "Libs:" by "echo projlibs="
25934    #   replace "Cflags:" by "echo projcflags="
25935    #   remove every line starting with <some word>:
25936    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
25937
25938    # set projcflags and projlibs variables by running $pcfilemod
25939    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
25940    projcflags=
25941    projlibs=
25942    IFS="$save_IFS"
25943    eval `sh -c "$pcfilemod"`
25944    IFS=":"
25945
25946    # add CYGPATH_W cludge into include flags and set CFLAGS variable
25947    if test "${CYGPATH_W}" != "echo"; then
25948      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
25949    fi
25950    CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
25951
25952    # set LIBS variable
25953    CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
25954
25955    # remember that we have processed $pcfile
25956    pcfilesprocessed="$pcfilesprocessed:$pcfile"
25957
25958  done
25959  IFS="$save_IFS"
25960
25961
25962  # finish up
25963  coin_has_cpx=yes
25964  echo "$as_me:$LINENO: result: yes" >&5
25965echo "${ECHO_T}yes" >&6
25966
25967cat >>confdefs.h <<\_ACEOF
25968#define COIN_HAS_CPX 1
25969_ACEOF
25970
25971
25972  # adjust linker flags for (i)cl compiler
25973  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
25974  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
25975  #    everything of the form "-lname" by "libname.lib", and
25976  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
25977  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
25978  then
25979    CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
25980    CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
25981  fi
25982
25983  CPX_PCREQUIRES="osi-cplex"
25984
25985    SYMPHONYLIB_PCREQUIRES="osi-cplex $SYMPHONYLIB_PCREQUIRES"
25986    SYMPHONYLIB_CFLAGS="$CPX_CFLAGS $SYMPHONYLIB_CFLAGS"
25987    SYMPHONYLIB_LIBS="$CPX_LIBS $SYMPHONYLIB_LIBS"
25988    SYMPHONYLIB_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
25989    SYMPHONYLIB_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
25990
25991
25992fi
25993
25994
25995
25996if test $coin_has_cpx != notGiven &&
25997                test $coin_has_cpx != skipping; then
25998  COIN_HAS_CPX_TRUE=
25999  COIN_HAS_CPX_FALSE='#'
26000else
26001  COIN_HAS_CPX_TRUE='#'
26002  COIN_HAS_CPX_FALSE=
26003fi
26004
26005
26006
26007  fi
26008
26009else
26010  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
26011echo "${ECHO_T}$coin_has_cpx" >&6
26012fi
26013
26014if test $coin_has_cpx != skipping &&
26015   test $coin_has_cpx != notGiven ; then
26016
26017cat >>confdefs.h <<\_ACEOF
26018#define COIN_HAS_CPX 1
26019_ACEOF
26020
26021
26022  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
26023if test "${enable_interpackage_dependencies+set}" = set; then
26024  enableval="$enable_interpackage_dependencies"
26025
26026else
26027  enable_interpackage_dependencies=yes
26028fi;
26029
26030  if test $enable_interpackage_dependencies = yes ; then
26031     # construct dependencies variables from LIBS variables
26032     # we add an extra space in LIBS so we can substitute out everything starting with " -"
26033     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
26034     # then remove everything of the form -xxx
26035     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
26036     CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26037
26038       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26039
26040  fi
26041
26042  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
26043    if test -n "$CPX_CFLAGS" ; then
26044      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
26045echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
26046    fi
26047    if test -n "$CPX_LIBS" ; then
26048      { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
26049echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
26050    fi
26051    if test -n "$CPX_DEPENDENCIES" ; then
26052      { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
26053echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
26054    fi
26055    if test -n "$CPX_DATA" ; then
26056      { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
26057echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
26058    fi
26059    if test -n "$CPX_PCLIBS" ; then
26060      { echo "$as_me:$LINENO: Cpx PCLIBS are $CPX_PCLIBS" >&5
26061echo "$as_me: Cpx PCLIBS are $CPX_PCLIBS" >&6;}
26062    fi
26063    if test -n "$CPX_PCREQUIRES" ; then
26064      { echo "$as_me:$LINENO: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&5
26065echo "$as_me: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&6;}
26066    fi
26067
26068      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
26069echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
26070      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
26071echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
26072      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
26073echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
26074
26075  fi
26076fi
26077
26078# Define the Makefile conditional
26079
26080
26081if test $coin_has_cpx != notGiven &&
26082                test $coin_has_cpx != skipping; then
26083  COIN_HAS_CPX_TRUE=
26084  COIN_HAS_CPX_FALSE='#'
26085else
26086  COIN_HAS_CPX_TRUE='#'
26087  COIN_HAS_CPX_FALSE=
26088fi
26089
26090
26091
26092
26093echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
26094echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
26095
26096coin_has_glpk=notGiven
26097
26098# check if user wants to skip package in any case
26099if test x"$COIN_SKIP_PROJECTS" != x; then
26100  for dir in $COIN_SKIP_PROJECTS; do
26101    if test $dir = "Glpk"; then
26102      coin_has_glpk=skipping
26103    fi
26104  done
26105fi
26106
26107if test "$coin_has_glpk" != skipping; then
26108
26109# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
26110if test "${with_glpk+set}" = set; then
26111  withval="$with_glpk"
26112  if test "$withval" = no ; then
26113       coin_has_glpk=skipping
26114     fi
26115
26116fi;
26117fi
26118
26119GLPK_LIBS=
26120GLPK_CFLAGS=
26121GLPK_DATA=
26122GLPK_DEPENDENCIES=
26123GLPK_PCLIBS=
26124GLPK_PCREQUIRES=
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
26143if test $coin_has_glpk != skipping; then
26144
26145# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
26146if test "${with_glpk_lib+set}" = set; then
26147  withval="$with_glpk_lib"
26148  if test "$withval" = no ; then
26149       coin_has_glpk=skipping
26150     else
26151       coin_has_glpk=yes
26152       GLPK_LIBS="$withval"
26153       GLPK_PCLIBS="$withval"
26154
26155         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
26156         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
26157
26158       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26159       if test -z "$PKG_CONFIG" ; then
26160         GLPK_LIBS_INSTALLED="$withval"
26161         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
26162       fi
26163     fi
26164
26165fi;
26166fi
26167
26168if test $coin_has_glpk != skipping; then
26169
26170# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
26171if test "${with_glpk_incdir+set}" = set; then
26172  withval="$with_glpk_incdir"
26173  if test "$withval" = no ; then
26174       coin_has_glpk=skipping
26175     else
26176       coin_has_glpk=yes
26177       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
26178       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
26179       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26180       if test -z "$PKG_CONFIG" ; then
26181         GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
26182         SYMPHONYLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
26183       fi
26184     fi
26185
26186fi;
26187fi
26188
26189if test $coin_has_glpk != skipping; then
26190
26191# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
26192if test "${with_glpk_datadir+set}" = set; then
26193  withval="$with_glpk_datadir"
26194  if test "$withval" = no ; then
26195       coin_has_glpk=skipping
26196     else
26197       coin_has_glpk=yes
26198       GLPK_DATA="$withval"
26199       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26200       if test -z "$PKG_CONFIG" ; then
26201         GLPK_DATA_INSTALLED="$withval"
26202       fi
26203     fi
26204
26205fi;
26206fi
26207
26208if test $coin_has_glpk = notGiven; then
26209  if test -n "$PKG_CONFIG" ; then
26210    # set search path for pkg-config
26211    # need to export variable to be sure that the following pkg-config gets these values
26212    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
26213    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
26214    export PKG_CONFIG_PATH
26215
26216    # let pkg-config do it's magic
26217
26218
26219
26220if test -n "$PKG_CONFIG" ; then
26221  if $PKG_CONFIG --exists "osi-glpk"; then
26222    GLPK_VERSIONS=`$PKG_CONFIG --modversion "osi-glpk" 2>/dev/null | tr '\n' ' '`
26223     cflags=`$PKG_CONFIG --cflags "osi-glpk" 2>/dev/null`
26224    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
26225	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
26226	# but only do this if is not trivial
26227    if test "$CYGPATH_W" != "echo" ; then
26228      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
26229      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26230    fi
26231    GLPK_CFLAGS="$cflags"
26232    GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/null`
26233    GLPK_DATA=`$PKG_CONFIG --variable=datadir "osi-glpk" 2>/dev/null`
26234     coin_has_glpk=yes
26235        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
26236echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
26237
26238        # adjust linker flags for (i)cl compiler
26239        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
26240        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26241        then
26242          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
26243        fi
26244        GLPK_PCREQUIRES="osi-glpk"
26245
26246        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
26247
26248          SYMPHONYLIB_PCREQUIRES="osi-glpk $SYMPHONYLIB_PCREQUIRES"
26249          SYMPHONYLIB_CFLAGS="$GLPK_CFLAGS $SYMPHONYLIB_CFLAGS"
26250          SYMPHONYLIB_LIBS="$GLPK_LIBS $SYMPHONYLIB_LIBS"
26251
26252
26253
26254  else
26255    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-glpk"`
26256      coin_has_glpk=notGiven
26257        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
26258echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
26259
26260  fi
26261else
26262  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
26263echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
26264   { (exit 1); exit 1; }; }
26265fi
26266
26267
26268
26269
26270    # reset PKG_CONFIG_PATH variable
26271    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
26272    export PKG_CONFIG_PATH
26273
26274  else
26275    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
26276echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
26277
26278echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
26279echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
26280
26281coin_has_glpk=notGiven
26282GLPK_LIBS=
26283GLPK_LIBS_INSTALLED=
26284GLPK_CFLAGS=
26285GLPK_CFLAGS_INSTALLED=
26286GLPK_DATA=
26287GLPK_DATA_INSTALLED=
26288GLPK_PCLIBS=
26289GLPK_PCREQUIRES=
26290
26291# initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
26292projtoprocess="osi-glpk"
26293
26294# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
26295# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
26296# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
26297# also, we setup the DATA variable
26298allproj=""
26299allpcfiles=""
26300allpcifiles=""
26301while test "x$projtoprocess" != x ; do
26302
26303  for proj in $projtoprocess ; do
26304    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
26305    pcfile=""
26306    save_IFS="$IFS"
26307    IFS=":"
26308    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
26309      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
26310      if test -r "$dir/${proj}-uninstalled.pc" ; then
26311        pcfile="$dir/$proj-uninstalled.pc"
26312        if test -r "$dir/${proj}.pc" ; then
26313          pcifile="$dir/${proj}.pc"
26314        else
26315          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
26316echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
26317          pcifile=
26318        fi
26319        break
26320      fi
26321    done
26322    IFS="$save_IFS"
26323
26324    if test "x$pcfile" != x ; then
26325      # read dependencies from $pcfile and filter it
26326      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
26327
26328      # add projrequires to the front of the list of projects that have to be processed next
26329      # at the same time, remove $proj from this list
26330      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
26331
26332      # read DATA from $pcfile, if _DATA is still empty
26333      if test "x$GLPK_DATA" = x ; then
26334        projdatadir=
26335        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
26336        eval `sh -c "$pcfilemod"`
26337        GLPK_DATA="$projdatadir"
26338      fi
26339
26340      allproj="$allproj $proj"
26341      allpcfiles="$pcfile:$allpcfiles"
26342
26343    else
26344      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
26345echo "${ECHO_T}no, dependency $proj not available" >&6
26346      allproj=fail
26347      break 2
26348    fi
26349
26350    if test "x$pcifile" != x ; then
26351      allpcifiles="$pcifile:$allpcifiles"
26352
26353      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
26354      if test "x$GLPK_DATA_INSTALLED" = x ; then
26355        projdatadir=
26356        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
26357        eval `sh -c "$pcifilemod"`
26358        if test "${CYGPATH_W}" != "echo"; then
26359          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
26360        fi
26361        GLPK_DATA_INSTALLED="$projdatadir"
26362      fi
26363
26364    fi
26365
26366    break
26367  done
26368
26369  # remove spaces on begin of $projtoprocess
26370  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
26371
26372done
26373
26374if test "$allproj" != fail ; then
26375
26376  # now go through the list of .pc files and assemble compiler and linker flags
26377  # important is here to obey the reverse order that has been setup before,
26378  # since then libraries that are required by several others should be after these other libraries
26379  pcfilesprocessed=""
26380
26381  save_IFS="$IFS"
26382  IFS=":"
26383  for pcfile in $allpcfiles ; do
26384
26385    # if $pcfile has been processed already, skip this round
26386    if test "x$pcfilesprocessed" != x ; then
26387      for pcfiledone in $pcfilesprocessed ; do
26388        if test "$pcfiledone" = "$pcfile" ; then
26389          continue 2
26390        fi
26391      done
26392    fi
26393
26394    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26395    #   replace "Libs:" by "echo projlibs="
26396    #   replace "Cflags:" by "echo projcflags="
26397    #   remove every line starting with <some word>:
26398    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26399
26400    # set projcflags and projlibs variables by running $pcfilemod
26401    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
26402    projcflags=
26403    projlibs=
26404    IFS="$save_IFS"
26405    eval `sh -c "$pcfilemod"`
26406    IFS=":"
26407
26408    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26409    if test "${CYGPATH_W}" != "echo"; then
26410      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26411    fi
26412    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
26413
26414    # set LIBS variable
26415    GLPK_LIBS="$projlibs $GLPK_LIBS"
26416
26417    # remember that we have processed $pcfile
26418    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26419
26420  done
26421  IFS="$save_IFS"
26422
26423
26424  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
26425  # important is here again to obey the reverse order that has been setup before,
26426  # since then libraries that are required by several others should be after these other libraries
26427  pcfilesprocessed=""
26428
26429  save_IFS="$IFS"
26430  IFS=":"
26431  for pcfile in $allpcifiles ; do
26432
26433    # if $pcfile has been processed already, skip this round
26434    if test "x$pcfilesprocessed" != x ; then
26435      for pcfiledone in $pcfilesprocessed ; do
26436        if test "$pcfiledone" = "$pcfile" ; then
26437          continue 2
26438        fi
26439      done
26440    fi
26441
26442    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26443    #   replace "Libs:" by "echo projlibs="
26444    #   replace "Cflags:" by "echo projcflags="
26445    #   remove every line starting with <some word>:
26446    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26447
26448    # set projcflags and projlibs variables by running $pcfilemod
26449    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
26450    projcflags=
26451    projlibs=
26452    IFS="$save_IFS"
26453    eval `sh -c "$pcfilemod"`
26454    IFS=":"
26455
26456    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26457    if test "${CYGPATH_W}" != "echo"; then
26458      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26459    fi
26460    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
26461
26462    # set LIBS variable
26463    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
26464
26465    # remember that we have processed $pcfile
26466    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26467
26468  done
26469  IFS="$save_IFS"
26470
26471
26472  # finish up
26473  coin_has_glpk=yes
26474  echo "$as_me:$LINENO: result: yes" >&5
26475echo "${ECHO_T}yes" >&6
26476
26477cat >>confdefs.h <<\_ACEOF
26478#define COIN_HAS_GLPK 1
26479_ACEOF
26480
26481
26482  # adjust linker flags for (i)cl compiler
26483  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
26484  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
26485  #    everything of the form "-lname" by "libname.lib", and
26486  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
26487  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26488  then
26489    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
26490    GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
26491  fi
26492
26493  GLPK_PCREQUIRES="osi-glpk"
26494
26495    SYMPHONYLIB_PCREQUIRES="osi-glpk $SYMPHONYLIB_PCREQUIRES"
26496    SYMPHONYLIB_CFLAGS="$GLPK_CFLAGS $SYMPHONYLIB_CFLAGS"
26497    SYMPHONYLIB_LIBS="$GLPK_LIBS $SYMPHONYLIB_LIBS"
26498    SYMPHONYLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
26499    SYMPHONYLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
26500
26501
26502fi
26503
26504
26505
26506if test $coin_has_glpk != notGiven &&
26507                test $coin_has_glpk != skipping; then
26508  COIN_HAS_GLPK_TRUE=
26509  COIN_HAS_GLPK_FALSE='#'
26510else
26511  COIN_HAS_GLPK_TRUE='#'
26512  COIN_HAS_GLPK_FALSE=
26513fi
26514
26515
26516
26517  fi
26518
26519else
26520  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
26521echo "${ECHO_T}$coin_has_glpk" >&6
26522fi
26523
26524if test $coin_has_glpk != skipping &&
26525   test $coin_has_glpk != notGiven ; then
26526
26527cat >>confdefs.h <<\_ACEOF
26528#define COIN_HAS_GLPK 1
26529_ACEOF
26530
26531
26532  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
26533if test "${enable_interpackage_dependencies+set}" = set; then
26534  enableval="$enable_interpackage_dependencies"
26535
26536else
26537  enable_interpackage_dependencies=yes
26538fi;
26539
26540  if test $enable_interpackage_dependencies = yes ; then
26541     # construct dependencies variables from LIBS variables
26542     # we add an extra space in LIBS so we can substitute out everything starting with " -"
26543     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
26544     # then remove everything of the form -xxx
26545     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
26546     GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26547
26548       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
26549
26550  fi
26551
26552  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
26553    if test -n "$GLPK_CFLAGS" ; then
26554      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
26555echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
26556    fi
26557    if test -n "$GLPK_LIBS" ; then
26558      { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
26559echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
26560    fi
26561    if test -n "$GLPK_DEPENDENCIES" ; then
26562      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
26563echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
26564    fi
26565    if test -n "$GLPK_DATA" ; then
26566      { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
26567echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
26568    fi
26569    if test -n "$GLPK_PCLIBS" ; then
26570      { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
26571echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
26572    fi
26573    if test -n "$GLPK_PCREQUIRES" ; then
26574      { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
26575echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
26576    fi
26577
26578      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
26579echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
26580      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
26581echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
26582      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
26583echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
26584
26585  fi
26586fi
26587
26588# Define the Makefile conditional
26589
26590
26591if test $coin_has_glpk != notGiven &&
26592                test $coin_has_glpk != skipping; then
26593  COIN_HAS_GLPK_TRUE=
26594  COIN_HAS_GLPK_FALSE='#'
26595else
26596  COIN_HAS_GLPK_TRUE='#'
26597  COIN_HAS_GLPK_FALSE=
26598fi
26599
26600
26601
26602#AC_COIN_CHECK_PACKAGE(Grb,  [osi-gurobi], [SymphonyLib])
26603
26604echo "$as_me:$LINENO: checking for COIN-OR package Msk" >&5
26605echo $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6
26606
26607coin_has_msk=notGiven
26608
26609# check if user wants to skip package in any case
26610if test x"$COIN_SKIP_PROJECTS" != x; then
26611  for dir in $COIN_SKIP_PROJECTS; do
26612    if test $dir = "Msk"; then
26613      coin_has_msk=skipping
26614    fi
26615  done
26616fi
26617
26618if test "$coin_has_msk" != skipping; then
26619
26620# Check whether --with-m4_tolower(Msk) or --without-m4_tolower(Msk) was given.
26621if test "${with_msk+set}" = set; then
26622  withval="$with_msk"
26623  if test "$withval" = no ; then
26624       coin_has_msk=skipping
26625     fi
26626
26627fi;
26628fi
26629
26630MSK_LIBS=
26631MSK_CFLAGS=
26632MSK_DATA=
26633MSK_DEPENDENCIES=
26634MSK_PCLIBS=
26635MSK_PCREQUIRES=
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
26654if test $coin_has_msk != skipping; then
26655
26656# Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given.
26657if test "${with_msk_lib+set}" = set; then
26658  withval="$with_msk_lib"
26659  if test "$withval" = no ; then
26660       coin_has_msk=skipping
26661     else
26662       coin_has_msk=yes
26663       MSK_LIBS="$withval"
26664       MSK_PCLIBS="$withval"
26665
26666         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
26667         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
26668
26669       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26670       if test -z "$PKG_CONFIG" ; then
26671         MSK_LIBS_INSTALLED="$withval"
26672         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
26673       fi
26674     fi
26675
26676fi;
26677fi
26678
26679if test $coin_has_msk != skipping; then
26680
26681# Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given.
26682if test "${with_msk_incdir+set}" = set; then
26683  withval="$with_msk_incdir"
26684  if test "$withval" = no ; then
26685       coin_has_msk=skipping
26686     else
26687       coin_has_msk=yes
26688       MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
26689       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
26690       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26691       if test -z "$PKG_CONFIG" ; then
26692         MSK_CFLAGS_INSTALLED="$MSK_CFLAGS"
26693         SYMPHONYLIB_CFLAGS_INSTALLED="$MSK_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
26694       fi
26695     fi
26696
26697fi;
26698fi
26699
26700if test $coin_has_msk != skipping; then
26701
26702# Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given.
26703if test "${with_msk_datadir+set}" = set; then
26704  withval="$with_msk_datadir"
26705  if test "$withval" = no ; then
26706       coin_has_msk=skipping
26707     else
26708       coin_has_msk=yes
26709       MSK_DATA="$withval"
26710       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
26711       if test -z "$PKG_CONFIG" ; then
26712         MSK_DATA_INSTALLED="$withval"
26713       fi
26714     fi
26715
26716fi;
26717fi
26718
26719if test $coin_has_msk = notGiven; then
26720  if test -n "$PKG_CONFIG" ; then
26721    # set search path for pkg-config
26722    # need to export variable to be sure that the following pkg-config gets these values
26723    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
26724    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
26725    export PKG_CONFIG_PATH
26726
26727    # let pkg-config do it's magic
26728
26729
26730
26731if test -n "$PKG_CONFIG" ; then
26732  if $PKG_CONFIG --exists "osi-mosek"; then
26733    MSK_VERSIONS=`$PKG_CONFIG --modversion "osi-mosek" 2>/dev/null | tr '\n' ' '`
26734     cflags=`$PKG_CONFIG --cflags "osi-mosek" 2>/dev/null`
26735    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
26736	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
26737	# but only do this if is not trivial
26738    if test "$CYGPATH_W" != "echo" ; then
26739      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
26740      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26741    fi
26742    MSK_CFLAGS="$cflags"
26743    MSK_LIBS=`$PKG_CONFIG --libs "osi-mosek" 2>/dev/null`
26744    MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-mosek" 2>/dev/null`
26745     coin_has_msk=yes
26746        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
26747echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
26748
26749        # adjust linker flags for (i)cl compiler
26750        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
26751        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26752        then
26753          MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
26754        fi
26755        MSK_PCREQUIRES="osi-mosek"
26756
26757        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
26758
26759          SYMPHONYLIB_PCREQUIRES="osi-mosek $SYMPHONYLIB_PCREQUIRES"
26760          SYMPHONYLIB_CFLAGS="$MSK_CFLAGS $SYMPHONYLIB_CFLAGS"
26761          SYMPHONYLIB_LIBS="$MSK_LIBS $SYMPHONYLIB_LIBS"
26762
26763
26764
26765  else
26766    MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-mosek"`
26767      coin_has_msk=notGiven
26768        echo "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5
26769echo "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6
26770
26771  fi
26772else
26773  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5
26774echo "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;}
26775   { (exit 1); exit 1; }; }
26776fi
26777
26778
26779
26780
26781    # reset PKG_CONFIG_PATH variable
26782    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
26783    export PKG_CONFIG_PATH
26784
26785  else
26786    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
26787echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
26788
26789echo "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5
26790echo $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6
26791
26792coin_has_msk=notGiven
26793MSK_LIBS=
26794MSK_LIBS_INSTALLED=
26795MSK_CFLAGS=
26796MSK_CFLAGS_INSTALLED=
26797MSK_DATA=
26798MSK_DATA_INSTALLED=
26799MSK_PCLIBS=
26800MSK_PCREQUIRES=
26801
26802# initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x, != x)
26803projtoprocess="osi-mosek"
26804
26805# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
26806# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
26807# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
26808# also, we setup the DATA variable
26809allproj=""
26810allpcfiles=""
26811allpcifiles=""
26812while test "x$projtoprocess" != x ; do
26813
26814  for proj in $projtoprocess ; do
26815    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
26816    pcfile=""
26817    save_IFS="$IFS"
26818    IFS=":"
26819    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
26820      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
26821      if test -r "$dir/${proj}-uninstalled.pc" ; then
26822        pcfile="$dir/$proj-uninstalled.pc"
26823        if test -r "$dir/${proj}.pc" ; then
26824          pcifile="$dir/${proj}.pc"
26825        else
26826          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
26827echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
26828          pcifile=
26829        fi
26830        break
26831      fi
26832    done
26833    IFS="$save_IFS"
26834
26835    if test "x$pcfile" != x ; then
26836      # read dependencies from $pcfile and filter it
26837      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
26838
26839      # add projrequires to the front of the list of projects that have to be processed next
26840      # at the same time, remove $proj from this list
26841      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
26842
26843      # read DATA from $pcfile, if _DATA is still empty
26844      if test "x$MSK_DATA" = x ; then
26845        projdatadir=
26846        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
26847        eval `sh -c "$pcfilemod"`
26848        MSK_DATA="$projdatadir"
26849      fi
26850
26851      allproj="$allproj $proj"
26852      allpcfiles="$pcfile:$allpcfiles"
26853
26854    else
26855      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
26856echo "${ECHO_T}no, dependency $proj not available" >&6
26857      allproj=fail
26858      break 2
26859    fi
26860
26861    if test "x$pcifile" != x ; then
26862      allpcifiles="$pcifile:$allpcifiles"
26863
26864      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
26865      if test "x$MSK_DATA_INSTALLED" = x ; then
26866        projdatadir=
26867        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
26868        eval `sh -c "$pcifilemod"`
26869        if test "${CYGPATH_W}" != "echo"; then
26870          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
26871        fi
26872        MSK_DATA_INSTALLED="$projdatadir"
26873      fi
26874
26875    fi
26876
26877    break
26878  done
26879
26880  # remove spaces on begin of $projtoprocess
26881  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
26882
26883done
26884
26885if test "$allproj" != fail ; then
26886
26887  # now go through the list of .pc files and assemble compiler and linker flags
26888  # important is here to obey the reverse order that has been setup before,
26889  # since then libraries that are required by several others should be after these other libraries
26890  pcfilesprocessed=""
26891
26892  save_IFS="$IFS"
26893  IFS=":"
26894  for pcfile in $allpcfiles ; do
26895
26896    # if $pcfile has been processed already, skip this round
26897    if test "x$pcfilesprocessed" != x ; then
26898      for pcfiledone in $pcfilesprocessed ; do
26899        if test "$pcfiledone" = "$pcfile" ; then
26900          continue 2
26901        fi
26902      done
26903    fi
26904
26905    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26906    #   replace "Libs:" by "echo projlibs="
26907    #   replace "Cflags:" by "echo projcflags="
26908    #   remove every line starting with <some word>:
26909    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26910
26911    # set projcflags and projlibs variables by running $pcfilemod
26912    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
26913    projcflags=
26914    projlibs=
26915    IFS="$save_IFS"
26916    eval `sh -c "$pcfilemod"`
26917    IFS=":"
26918
26919    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26920    if test "${CYGPATH_W}" != "echo"; then
26921      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26922    fi
26923    MSK_CFLAGS="$projcflags $MSK_CFLAGS"
26924
26925    # set LIBS variable
26926    MSK_LIBS="$projlibs $MSK_LIBS"
26927
26928    # remember that we have processed $pcfile
26929    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26930
26931  done
26932  IFS="$save_IFS"
26933
26934
26935  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
26936  # important is here again to obey the reverse order that has been setup before,
26937  # since then libraries that are required by several others should be after these other libraries
26938  pcfilesprocessed=""
26939
26940  save_IFS="$IFS"
26941  IFS=":"
26942  for pcfile in $allpcifiles ; do
26943
26944    # if $pcfile has been processed already, skip this round
26945    if test "x$pcfilesprocessed" != x ; then
26946      for pcfiledone in $pcfilesprocessed ; do
26947        if test "$pcfiledone" = "$pcfile" ; then
26948          continue 2
26949        fi
26950      done
26951    fi
26952
26953    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
26954    #   replace "Libs:" by "echo projlibs="
26955    #   replace "Cflags:" by "echo projcflags="
26956    #   remove every line starting with <some word>:
26957    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
26958
26959    # set projcflags and projlibs variables by running $pcfilemod
26960    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
26961    projcflags=
26962    projlibs=
26963    IFS="$save_IFS"
26964    eval `sh -c "$pcfilemod"`
26965    IFS=":"
26966
26967    # add CYGPATH_W cludge into include flags and set CFLAGS variable
26968    if test "${CYGPATH_W}" != "echo"; then
26969      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
26970    fi
26971    MSK_CFLAGS_INSTALLED="$projcflags $MSK_CFLAGS_INSTALLED"
26972
26973    # set LIBS variable
26974    MSK_LIBS_INSTALLED="$projlibs $MSK_LIBS_INSTALLED"
26975
26976    # remember that we have processed $pcfile
26977    pcfilesprocessed="$pcfilesprocessed:$pcfile"
26978
26979  done
26980  IFS="$save_IFS"
26981
26982
26983  # finish up
26984  coin_has_msk=yes
26985  echo "$as_me:$LINENO: result: yes" >&5
26986echo "${ECHO_T}yes" >&6
26987
26988cat >>confdefs.h <<\_ACEOF
26989#define COIN_HAS_MSK 1
26990_ACEOF
26991
26992
26993  # adjust linker flags for (i)cl compiler
26994  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
26995  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
26996  #    everything of the form "-lname" by "libname.lib", and
26997  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
26998  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
26999  then
27000    MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
27001    MSK_LIBS_INSTALLED=`echo " $MSK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
27002  fi
27003
27004  MSK_PCREQUIRES="osi-mosek"
27005
27006    SYMPHONYLIB_PCREQUIRES="osi-mosek $SYMPHONYLIB_PCREQUIRES"
27007    SYMPHONYLIB_CFLAGS="$MSK_CFLAGS $SYMPHONYLIB_CFLAGS"
27008    SYMPHONYLIB_LIBS="$MSK_LIBS $SYMPHONYLIB_LIBS"
27009    SYMPHONYLIB_CFLAGS_INSTALLED="$MSK_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
27010    SYMPHONYLIB_LIBS_INSTALLED="$MSK_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
27011
27012
27013fi
27014
27015
27016
27017if test $coin_has_msk != notGiven &&
27018                test $coin_has_msk != skipping; then
27019  COIN_HAS_MSK_TRUE=
27020  COIN_HAS_MSK_FALSE='#'
27021else
27022  COIN_HAS_MSK_TRUE='#'
27023  COIN_HAS_MSK_FALSE=
27024fi
27025
27026
27027
27028  fi
27029
27030else
27031  echo "$as_me:$LINENO: result: $coin_has_msk" >&5
27032echo "${ECHO_T}$coin_has_msk" >&6
27033fi
27034
27035if test $coin_has_msk != skipping &&
27036   test $coin_has_msk != notGiven ; then
27037
27038cat >>confdefs.h <<\_ACEOF
27039#define COIN_HAS_MSK 1
27040_ACEOF
27041
27042
27043  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
27044if test "${enable_interpackage_dependencies+set}" = set; then
27045  enableval="$enable_interpackage_dependencies"
27046
27047else
27048  enable_interpackage_dependencies=yes
27049fi;
27050
27051  if test $enable_interpackage_dependencies = yes ; then
27052     # construct dependencies variables from LIBS variables
27053     # we add an extra space in LIBS so we can substitute out everything starting with " -"
27054     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
27055     # then remove everything of the form -xxx
27056     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
27057     MSK_DEPENDENCIES=`echo " $MSK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
27058
27059       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
27060
27061  fi
27062
27063  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
27064    if test -n "$MSK_CFLAGS" ; then
27065      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
27066echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
27067    fi
27068    if test -n "$MSK_LIBS" ; then
27069      { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
27070echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
27071    fi
27072    if test -n "$MSK_DEPENDENCIES" ; then
27073      { echo "$as_me:$LINENO: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&5
27074echo "$as_me: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&6;}
27075    fi
27076    if test -n "$MSK_DATA" ; then
27077      { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
27078echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
27079    fi
27080    if test -n "$MSK_PCLIBS" ; then
27081      { echo "$as_me:$LINENO: Msk PCLIBS are $MSK_PCLIBS" >&5
27082echo "$as_me: Msk PCLIBS are $MSK_PCLIBS" >&6;}
27083    fi
27084    if test -n "$MSK_PCREQUIRES" ; then
27085      { echo "$as_me:$LINENO: Msk PCREQUIRES are $MSK_PCREQUIRES" >&5
27086echo "$as_me: Msk PCREQUIRES are $MSK_PCREQUIRES" >&6;}
27087    fi
27088
27089      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
27090echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
27091      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
27092echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
27093      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
27094echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
27095
27096  fi
27097fi
27098
27099# Define the Makefile conditional
27100
27101
27102if test $coin_has_msk != notGiven &&
27103                test $coin_has_msk != skipping; then
27104  COIN_HAS_MSK_TRUE=
27105  COIN_HAS_MSK_FALSE='#'
27106else
27107  COIN_HAS_MSK_TRUE='#'
27108  COIN_HAS_MSK_FALSE=
27109fi
27110
27111
27112
27113#AC_COIN_CHECK_PACKAGE(Spx,  [osi-soplex], [SymphonyLib])
27114
27115echo "$as_me:$LINENO: checking for COIN-OR package Xpr" >&5
27116echo $ECHO_N "checking for COIN-OR package Xpr... $ECHO_C" >&6
27117
27118coin_has_xpr=notGiven
27119
27120# check if user wants to skip package in any case
27121if test x"$COIN_SKIP_PROJECTS" != x; then
27122  for dir in $COIN_SKIP_PROJECTS; do
27123    if test $dir = "Xpr"; then
27124      coin_has_xpr=skipping
27125    fi
27126  done
27127fi
27128
27129if test "$coin_has_xpr" != skipping; then
27130
27131# Check whether --with-m4_tolower(Xpr) or --without-m4_tolower(Xpr) was given.
27132if test "${with_xpr+set}" = set; then
27133  withval="$with_xpr"
27134  if test "$withval" = no ; then
27135       coin_has_xpr=skipping
27136     fi
27137
27138fi;
27139fi
27140
27141XPR_LIBS=
27142XPR_CFLAGS=
27143XPR_DATA=
27144XPR_DEPENDENCIES=
27145XPR_PCLIBS=
27146XPR_PCREQUIRES=
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
27165if test $coin_has_xpr != skipping; then
27166
27167# Check whether --with-m4_tolower(Xpr)-lib or --without-m4_tolower(Xpr)-lib was given.
27168if test "${with_xpr_lib+set}" = set; then
27169  withval="$with_xpr_lib"
27170  if test "$withval" = no ; then
27171       coin_has_xpr=skipping
27172     else
27173       coin_has_xpr=yes
27174       XPR_LIBS="$withval"
27175       XPR_PCLIBS="$withval"
27176
27177         SYMPHONYLIB_PCLIBS="$withval $SYMPHONYLIB_PCLIBS"
27178         SYMPHONYLIB_LIBS="$withval $SYMPHONYLIB_LIBS"
27179
27180       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
27181       if test -z "$PKG_CONFIG" ; then
27182         XPR_LIBS_INSTALLED="$withval"
27183         SYMPHONYLIB_LIBS_INSTALLED="$withval $SYMPHONYLIB_LIBS_INSTALLED"
27184       fi
27185     fi
27186
27187fi;
27188fi
27189
27190if test $coin_has_xpr != skipping; then
27191
27192# Check whether --with-m4_tolower(Xpr)-incdir or --without-m4_tolower(Xpr)-incdir was given.
27193if test "${with_xpr_incdir+set}" = set; then
27194  withval="$with_xpr_incdir"
27195  if test "$withval" = no ; then
27196       coin_has_xpr=skipping
27197     else
27198       coin_has_xpr=yes
27199       XPR_CFLAGS="-I`${CYGPATH_W} $withval`"
27200       SYMPHONYLIB_CFLAGS="-I`${CYGPATH_W} $withval` $SYMPHONYLIB_CFLAGS"
27201       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
27202       if test -z "$PKG_CONFIG" ; then
27203         XPR_CFLAGS_INSTALLED="$XPR_CFLAGS"
27204         SYMPHONYLIB_CFLAGS_INSTALLED="$XPR_CFLAGS $SYMPHONYLIB_CFLAGS_INSTALLED"
27205       fi
27206     fi
27207
27208fi;
27209fi
27210
27211if test $coin_has_xpr != skipping; then
27212
27213# Check whether --with-m4_tolower(Xpr)-datadir or --without-m4_tolower(Xpr)-datadir was given.
27214if test "${with_xpr_datadir+set}" = set; then
27215  withval="$with_xpr_datadir"
27216  if test "$withval" = no ; then
27217       coin_has_xpr=skipping
27218     else
27219       coin_has_xpr=yes
27220       XPR_DATA="$withval"
27221       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
27222       if test -z "$PKG_CONFIG" ; then
27223         XPR_DATA_INSTALLED="$withval"
27224       fi
27225     fi
27226
27227fi;
27228fi
27229
27230if test $coin_has_xpr = notGiven; then
27231  if test -n "$PKG_CONFIG" ; then
27232    # set search path for pkg-config
27233    # need to export variable to be sure that the following pkg-config gets these values
27234    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
27235    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
27236    export PKG_CONFIG_PATH
27237
27238    # let pkg-config do it's magic
27239
27240
27241
27242if test -n "$PKG_CONFIG" ; then
27243  if $PKG_CONFIG --exists "osi-xpress"; then
27244    XPR_VERSIONS=`$PKG_CONFIG --modversion "osi-xpress" 2>/dev/null | tr '\n' ' '`
27245     cflags=`$PKG_CONFIG --cflags "osi-xpress" 2>/dev/null`
27246    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
27247	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
27248	# but only do this if is not trivial
27249    if test "$CYGPATH_W" != "echo" ; then
27250      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
27251      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
27252    fi
27253    XPR_CFLAGS="$cflags"
27254    XPR_LIBS=`$PKG_CONFIG --libs "osi-xpress" 2>/dev/null`
27255    XPR_DATA=`$PKG_CONFIG --variable=datadir "osi-xpress" 2>/dev/null`
27256     coin_has_xpr=yes
27257        echo "$as_me:$LINENO: result: yes: $XPR_VERSIONS" >&5
27258echo "${ECHO_T}yes: $XPR_VERSIONS" >&6
27259
27260        # adjust linker flags for (i)cl compiler
27261        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
27262        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
27263        then
27264          XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
27265        fi
27266        XPR_PCREQUIRES="osi-xpress"
27267
27268        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in SymphonyLib
27269
27270          SYMPHONYLIB_PCREQUIRES="osi-xpress $SYMPHONYLIB_PCREQUIRES"
27271          SYMPHONYLIB_CFLAGS="$XPR_CFLAGS $SYMPHONYLIB_CFLAGS"
27272          SYMPHONYLIB_LIBS="$XPR_LIBS $SYMPHONYLIB_LIBS"
27273
27274
27275
27276  else
27277    XPR_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-xpress"`
27278      coin_has_xpr=notGiven
27279        echo "$as_me:$LINENO: result: not given: $XPR_PKG_ERRORS" >&5
27280echo "${ECHO_T}not given: $XPR_PKG_ERRORS" >&6
27281
27282  fi
27283else
27284  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&5
27285echo "$as_me: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&2;}
27286   { (exit 1); exit 1; }; }
27287fi
27288
27289
27290
27291
27292    # reset PKG_CONFIG_PATH variable
27293    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
27294    export PKG_CONFIG_PATH
27295
27296  else
27297    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
27298echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
27299
27300echo "$as_me:$LINENO: checking for COIN-OR package Xpr (fallback)" >&5
27301echo $ECHO_N "checking for COIN-OR package Xpr (fallback)... $ECHO_C" >&6
27302
27303coin_has_xpr=notGiven
27304XPR_LIBS=
27305XPR_LIBS_INSTALLED=
27306XPR_CFLAGS=
27307XPR_CFLAGS_INSTALLED=
27308XPR_DATA=
27309XPR_DATA_INSTALLED=
27310XPR_PCLIBS=
27311XPR_PCREQUIRES=
27312
27313# initial list of dependencies is "osi-xpress", but we need to filter out version number specifications (= x, <= x, >= x, != x)
27314projtoprocess="osi-xpress"
27315
27316# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
27317# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
27318# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
27319# also, we setup the DATA variable
27320allproj=""
27321allpcfiles=""
27322allpcifiles=""
27323while test "x$projtoprocess" != x ; do
27324
27325  for proj in $projtoprocess ; do
27326    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
27327    pcfile=""
27328    save_IFS="$IFS"
27329    IFS=":"
27330    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
27331      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
27332      if test -r "$dir/${proj}-uninstalled.pc" ; then
27333        pcfile="$dir/$proj-uninstalled.pc"
27334        if test -r "$dir/${proj}.pc" ; then
27335          pcifile="$dir/${proj}.pc"
27336        else
27337          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
27338echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
27339          pcifile=
27340        fi
27341        break
27342      fi
27343    done
27344    IFS="$save_IFS"
27345
27346    if test "x$pcfile" != x ; then
27347      # read dependencies from $pcfile and filter it
27348      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
27349
27350      # add projrequires to the front of the list of projects that have to be processed next
27351      # at the same time, remove $proj from this list
27352      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
27353
27354      # read DATA from $pcfile, if _DATA is still empty
27355      if test "x$XPR_DATA" = x ; then
27356        projdatadir=
27357        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
27358        eval `sh -c "$pcfilemod"`
27359        XPR_DATA="$projdatadir"
27360      fi
27361
27362      allproj="$allproj $proj"
27363      allpcfiles="$pcfile:$allpcfiles"
27364
27365    else
27366      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
27367echo "${ECHO_T}no, dependency $proj not available" >&6
27368      allproj=fail
27369      break 2
27370    fi
27371
27372    if test "x$pcifile" != x ; then
27373      allpcifiles="$pcifile:$allpcifiles"
27374
27375      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
27376      if test "x$XPR_DATA_INSTALLED" = x ; then
27377        projdatadir=
27378        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
27379        eval `sh -c "$pcifilemod"`
27380        if test "${CYGPATH_W}" != "echo"; then
27381          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
27382        fi
27383        XPR_DATA_INSTALLED="$projdatadir"
27384      fi
27385
27386    fi
27387
27388    break
27389  done
27390
27391  # remove spaces on begin of $projtoprocess
27392  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
27393
27394done
27395
27396if test "$allproj" != fail ; then
27397
27398  # now go through the list of .pc files and assemble compiler and linker flags
27399  # important is here to obey the reverse order that has been setup before,
27400  # since then libraries that are required by several others should be after these other libraries
27401  pcfilesprocessed=""
27402
27403  save_IFS="$IFS"
27404  IFS=":"
27405  for pcfile in $allpcfiles ; do
27406
27407    # if $pcfile has been processed already, skip this round
27408    if test "x$pcfilesprocessed" != x ; then
27409      for pcfiledone in $pcfilesprocessed ; do
27410        if test "$pcfiledone" = "$pcfile" ; then
27411          continue 2
27412        fi
27413      done
27414    fi
27415
27416    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
27417    #   replace "Libs:" by "echo projlibs="
27418    #   replace "Cflags:" by "echo projcflags="
27419    #   remove every line starting with <some word>:
27420    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
27421
27422    # set projcflags and projlibs variables by running $pcfilemod
27423    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
27424    projcflags=
27425    projlibs=
27426    IFS="$save_IFS"
27427    eval `sh -c "$pcfilemod"`
27428    IFS=":"
27429
27430    # add CYGPATH_W cludge into include flags and set CFLAGS variable
27431    if test "${CYGPATH_W}" != "echo"; then
27432      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
27433    fi
27434    XPR_CFLAGS="$projcflags $XPR_CFLAGS"
27435
27436    # set LIBS variable
27437    XPR_LIBS="$projlibs $XPR_LIBS"
27438
27439    # remember that we have processed $pcfile
27440    pcfilesprocessed="$pcfilesprocessed:$pcfile"
27441
27442  done
27443  IFS="$save_IFS"
27444
27445
27446  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
27447  # important is here again to obey the reverse order that has been setup before,
27448  # since then libraries that are required by several others should be after these other libraries
27449  pcfilesprocessed=""
27450
27451  save_IFS="$IFS"
27452  IFS=":"
27453  for pcfile in $allpcifiles ; do
27454
27455    # if $pcfile has been processed already, skip this round
27456    if test "x$pcfilesprocessed" != x ; then
27457      for pcfiledone in $pcfilesprocessed ; do
27458        if test "$pcfiledone" = "$pcfile" ; then
27459          continue 2
27460        fi
27461      done
27462    fi
27463
27464    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
27465    #   replace "Libs:" by "echo projlibs="
27466    #   replace "Cflags:" by "echo projcflags="
27467    #   remove every line starting with <some word>:
27468    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
27469
27470    # set projcflags and projlibs variables by running $pcfilemod
27471    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
27472    projcflags=
27473    projlibs=
27474    IFS="$save_IFS"
27475    eval `sh -c "$pcfilemod"`
27476    IFS=":"
27477
27478    # add CYGPATH_W cludge into include flags and set CFLAGS variable
27479    if test "${CYGPATH_W}" != "echo"; then
27480      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
27481    fi
27482    XPR_CFLAGS_INSTALLED="$projcflags $XPR_CFLAGS_INSTALLED"
27483
27484    # set LIBS variable
27485    XPR_LIBS_INSTALLED="$projlibs $XPR_LIBS_INSTALLED"
27486
27487    # remember that we have processed $pcfile
27488    pcfilesprocessed="$pcfilesprocessed:$pcfile"
27489
27490  done
27491  IFS="$save_IFS"
27492
27493
27494  # finish up
27495  coin_has_xpr=yes
27496  echo "$as_me:$LINENO: result: yes" >&5
27497echo "${ECHO_T}yes" >&6
27498
27499cat >>confdefs.h <<\_ACEOF
27500#define COIN_HAS_XPR 1
27501_ACEOF
27502
27503
27504  # adjust linker flags for (i)cl compiler
27505  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
27506  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
27507  #    everything of the form "-lname" by "libname.lib", and
27508  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
27509  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
27510  then
27511    XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
27512    XPR_LIBS_INSTALLED=`echo " $XPR_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
27513  fi
27514
27515  XPR_PCREQUIRES="osi-xpress"
27516
27517    SYMPHONYLIB_PCREQUIRES="osi-xpress $SYMPHONYLIB_PCREQUIRES"
27518    SYMPHONYLIB_CFLAGS="$XPR_CFLAGS $SYMPHONYLIB_CFLAGS"
27519    SYMPHONYLIB_LIBS="$XPR_LIBS $SYMPHONYLIB_LIBS"
27520    SYMPHONYLIB_CFLAGS_INSTALLED="$XPR_CFLAGS_INSTALLED $SYMPHONYLIB_CFLAGS_INSTALLED"
27521    SYMPHONYLIB_LIBS_INSTALLED="$XPR_LIBS_INSTALLED $SYMPHONYLIB_LIBS_INSTALLED"
27522
27523
27524fi
27525
27526
27527
27528if test $coin_has_xpr != notGiven &&
27529                test $coin_has_xpr != skipping; then
27530  COIN_HAS_XPR_TRUE=
27531  COIN_HAS_XPR_FALSE='#'
27532else
27533  COIN_HAS_XPR_TRUE='#'
27534  COIN_HAS_XPR_FALSE=
27535fi
27536
27537
27538
27539  fi
27540
27541else
27542  echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
27543echo "${ECHO_T}$coin_has_xpr" >&6
27544fi
27545
27546if test $coin_has_xpr != skipping &&
27547   test $coin_has_xpr != notGiven ; then
27548
27549cat >>confdefs.h <<\_ACEOF
27550#define COIN_HAS_XPR 1
27551_ACEOF
27552
27553
27554  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
27555if test "${enable_interpackage_dependencies+set}" = set; then
27556  enableval="$enable_interpackage_dependencies"
27557
27558else
27559  enable_interpackage_dependencies=yes
27560fi;
27561
27562  if test $enable_interpackage_dependencies = yes ; then
27563     # construct dependencies variables from LIBS variables
27564     # we add an extra space in LIBS so we can substitute out everything starting with " -"
27565     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
27566     # then remove everything of the form -xxx
27567     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
27568     XPR_DEPENDENCIES=`echo " $XPR_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
27569
27570       SYMPHONYLIB_DEPENDENCIES=`echo " $SYMPHONYLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
27571
27572  fi
27573
27574  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
27575    if test -n "$XPR_CFLAGS" ; then
27576      { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
27577echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
27578    fi
27579    if test -n "$XPR_LIBS" ; then
27580      { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
27581echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
27582    fi
27583    if test -n "$XPR_DEPENDENCIES" ; then
27584      { echo "$as_me:$LINENO: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&5
27585echo "$as_me: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&6;}
27586    fi
27587    if test -n "$XPR_DATA" ; then
27588      { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
27589echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
27590    fi
27591    if test -n "$XPR_PCLIBS" ; then
27592      { echo "$as_me:$LINENO: Xpr PCLIBS are $XPR_PCLIBS" >&5
27593echo "$as_me: Xpr PCLIBS are $XPR_PCLIBS" >&6;}
27594    fi
27595    if test -n "$XPR_PCREQUIRES" ; then
27596      { echo "$as_me:$LINENO: Xpr PCREQUIRES are $XPR_PCREQUIRES" >&5
27597echo "$as_me: Xpr PCREQUIRES are $XPR_PCREQUIRES" >&6;}
27598    fi
27599
27600      { echo "$as_me:$LINENO: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&5
27601echo "$as_me: SymphonyLib CFLAGS are $SYMPHONYLIB_CFLAGS" >&6;}
27602      { echo "$as_me:$LINENO: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&5
27603echo "$as_me: SymphonyLib LIBS   are $SYMPHONYLIB_LIBS" >&6;}
27604      { echo "$as_me:$LINENO: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&5
27605echo "$as_me: SymphonyLib DEPENDENCIES are $SYMPHONYLIB_DEPENDENCIES" >&6;}
27606
27607  fi
27608fi
27609
27610# Define the Makefile conditional
27611
27612
27613if test $coin_has_xpr != notGiven &&
27614                test $coin_has_xpr != skipping; then
27615  COIN_HAS_XPR_TRUE=
27616  COIN_HAS_XPR_FALSE='#'
27617else
27618  COIN_HAS_XPR_TRUE='#'
27619  COIN_HAS_XPR_FALSE=
27620fi
27621
27622
27623
27624
27625#############################################################################
27626#                      Check for the LP solver                              #
27627#############################################################################
27628
27629echo "$as_me:$LINENO: checking for SYMPHONY default solver" >&5
27630echo $ECHO_N "checking for SYMPHONY default solver... $ECHO_C" >&6
27631
27632# Check whether --with-lp-solver or --without-lp-solver was given.
27633if test "${with_lp_solver+set}" = set; then
27634  withval="$with_lp_solver"
27635  sym_lp_solver=$withval
27636else
27637  sym_lp_solver=clp
27638fi;
27639
27640found_package=true
27641case $sym_lp_solver in
27642   clp)
27643    echo "$as_me:$LINENO: result: Clp" >&5
27644echo "${ECHO_T}Clp" >&6
27645     if test $coin_has_clp = unavailable || test $coin_has_clp = skipping; \
27646     then
27647         found_package=false
27648     fi
27649   ;;
27650   glpk)
27651     echo "$as_me:$LINENO: result: Glpk" >&5
27652echo "${ECHO_T}Glpk" >&6
27653     if test $coin_has_glpk = false; then
27654         found_package=false
27655     fi
27656   ;;
27657   cplex)
27658     echo "$as_me:$LINENO: result: Cplex" >&5
27659echo "${ECHO_T}Cplex" >&6
27660     if test $coin_has_cpx = false; then
27661         found_package=false
27662     fi
27663   ;;
27664   osl)
27665         echo "$as_me:$LINENO: result: Osl" >&5
27666echo "${ECHO_T}Osl" >&6
27667     if test $coin_has_osl = false; then
27668         found_package=false
27669     fi
27670   ;;
27671   soplex)
27672         echo "$as_me:$LINENO: result: Soplex" >&5
27673echo "${ECHO_T}Soplex" >&6
27674     if test $coin_has_spx = false; then
27675         found_package=false
27676     fi
27677   ;;
27678   xpress)
27679         echo "$as_me:$LINENO: result: Xpress" >&5
27680echo "${ECHO_T}Xpress" >&6
27681     if test $coin_has_xpr = false; then
27682         found_package=false
27683     fi
27684   ;;
27685  *)
27686    { { echo "$as_me:$LINENO: error: Unknown LP solver!" >&5
27687echo "$as_me: error: Unknown LP solver!" >&2;}
27688   { (exit 1); exit 1; }; }
27689  ;;
27690esac
27691
27692if test $found_package = false; then
27693  { { echo "$as_me:$LINENO: error: Couldn't find the $sym_lp_solver package!" >&5
27694echo "$as_me: error: Couldn't find the $sym_lp_solver package!" >&2;}
27695   { (exit 1); exit 1; }; }
27696fi
27697
27698
27699
27700if test $sym_lp_solver = clp &&
27701test $coin_has_clp = yes; then
27702  CLP_LP_SOLVER_TRUE=
27703  CLP_LP_SOLVER_FALSE='#'
27704else
27705  CLP_LP_SOLVER_TRUE='#'
27706  CLP_LP_SOLVER_FALSE=
27707fi
27708
27709
27710
27711if test $sym_lp_solver = glpk &&
27712test $coin_has_glpk = yes; then
27713  GLPK_LP_SOLVER_TRUE=
27714  GLPK_LP_SOLVER_FALSE='#'
27715else
27716  GLPK_LP_SOLVER_TRUE='#'
27717  GLPK_LP_SOLVER_FALSE=
27718fi
27719
27720
27721
27722if test $sym_lp_solver = osl &&
27723test $coin_has_osl = yes; then
27724  OSL_LP_SOLVER_TRUE=
27725  OSL_LP_SOLVER_FALSE='#'
27726else
27727  OSL_LP_SOLVER_TRUE='#'
27728  OSL_LP_SOLVER_FALSE=
27729fi
27730
27731
27732
27733if test $sym_lp_solver = cplex &&
27734test $coin_has_cpx = yes; then
27735  CPLEX_LP_SOLVER_TRUE=
27736  CPLEX_LP_SOLVER_FALSE='#'
27737else
27738  CPLEX_LP_SOLVER_TRUE='#'
27739  CPLEX_LP_SOLVER_FALSE=
27740fi
27741
27742
27743
27744if test $sym_lp_solver = soplex &&
27745test $coin_has_spx = yes; then
27746  SOPLEX_LP_SOLVER_TRUE=
27747  SOPLEX_LP_SOLVER_FALSE='#'
27748else
27749  SOPLEX_LP_SOLVER_TRUE='#'
27750  SOPLEX_LP_SOLVER_FALSE=
27751fi
27752
27753
27754
27755if test $sym_lp_solver = xpress &&
27756test $coin_has_xpr = yes; then
27757  XPRESS_LP_SOLVER_TRUE=
27758  XPRESS_LP_SOLVER_FALSE='#'
27759else
27760  XPRESS_LP_SOLVER_TRUE='#'
27761  XPRESS_LP_SOLVER_FALSE=
27762fi
27763
27764
27765#############################################################################
27766#                       Add the options                                     #
27767#############################################################################
27768
27769#---------------------------------------------------------------------------#
27770# USE_CGL_CUTS
27771#---------------------------------------------------------------------------#
27772# Check whether --enable-cgl-cuts or --disable-cgl-cuts was given.
27773if test "${enable_cgl_cuts+set}" = set; then
27774  enableval="$enable_cgl_cuts"
27775  case "${enableval}" in
27776   yes) sym_cut_generation=true
27777   ;;
27778   no)  sym_cut_generation=no
27779   ;;
27780   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cgl-cuts" >&5
27781echo "$as_me: error: bad value ${enableval} for --enable-cgl-cuts" >&2;}
27782   { (exit 1); exit 1; }; }
27783   ;;
27784esac
27785else
27786  sym_cut_generation=true
27787fi;
27788
27789
27790
27791if test $sym_cut_generation = true; then
27792  USE_CGL_CUTS_TRUE=
27793  USE_CGL_CUTS_FALSE='#'
27794else
27795  USE_CGL_CUTS_TRUE='#'
27796  USE_CGL_CUTS_FALSE=
27797fi
27798
27799
27800#---------------------------------------------------------------------------#
27801#USE_GMPL
27802#---------------------------------------------------------------------------#
27803echo "$as_me:$LINENO: checking whether to compile with gmpl" >&5
27804echo $ECHO_N "checking whether to compile with gmpl... $ECHO_C" >&6
27805
27806# Check whether --with-gmpl or --without-gmpl was given.
27807if test "${with_gmpl+set}" = set; then
27808  withval="$with_gmpl"
27809  sym_gmpl=$withval
27810else
27811  sym_gmpl=none
27812fi;
27813
27814if test $sym_gmpl = yes; then
27815   echo "$as_me:$LINENO: result: yes" >&5
27816echo "${ECHO_T}yes" >&6
27817   if test $coin_has_glpk = false; then
27818      { { echo "$as_me:$LINENO: error: Couldn't find GLPK package to compile in GMPL feature" >&5
27819echo "$as_me: error: Couldn't find GLPK package to compile in GMPL feature" >&2;}
27820   { (exit 1); exit 1; }; }
27821   fi
27822else
27823   if test $coin_has_glpk = true && test $sym_gmpl != no; then
27824     echo "$as_me:$LINENO: result: yes" >&5
27825echo "${ECHO_T}yes" >&6
27826     sym_gmpl=yes
27827   else
27828     echo "$as_me:$LINENO: result: no" >&5
27829echo "${ECHO_T}no" >&6
27830   fi
27831fi
27832
27833
27834
27835if test "$sym_gmpl" = yes; then
27836  USE_GMPL_TRUE=
27837  USE_GMPL_FALSE='#'
27838else
27839  USE_GMPL_TRUE='#'
27840  USE_GMPL_FALSE=
27841fi
27842
27843
27844#---------------------------------------------------------------------------#
27845# SENSITIVITY_ANALYSIS
27846#---------------------------------------------------------------------------#
27847
27848#AC_MSG_CHECKING([whether we want to compile in sensitivity analysis features])
27849# Check whether --enable-sensitivity-analysis or --disable-sensitivity-analysis was given.
27850if test "${enable_sensitivity_analysis+set}" = set; then
27851  enableval="$enable_sensitivity_analysis"
27852  case "${enableval}" in
27853   yes) sym_sensitivity=true
27854   ;;
27855   no)  sym_sensitivity=false
27856   ;;
27857   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sensitivity-analysis" >&5
27858echo "$as_me: error: bad value ${enableval} for --enable-sensitivity-analysis" >&2;}
27859   { (exit 1); exit 1; }; }
27860   ;;
27861esac
27862else
27863  sym_sensitivity=false
27864fi;
27865#if test $sym_sensitivity = true; then
27866#  AC_MSG_RESULT([yes])
27867#else
27868#  AC_MSG_RESULT([no])
27869#fi
27870
27871
27872if test $sym_sensitivity = true; then
27873  SENSITIVITY_ANALYSIS_TRUE=
27874  SENSITIVITY_ANALYSIS_FALSE='#'
27875else
27876  SENSITIVITY_ANALYSIS_TRUE='#'
27877  SENSITIVITY_ANALYSIS_FALSE=
27878fi
27879
27880
27881#---------------------------------------------------------------------------#
27882# ROOT_NODE_ONLY
27883#---------------------------------------------------------------------------#
27884
27885# Check whether --enable-root-only or --disable-root-only was given.
27886if test "${enable_root_only+set}" = set; then
27887  enableval="$enable_root_only"
27888  case "${enableval}" in
27889   yes) sym_root_only=true
27890   ;;
27891   no)  sym_root_only=false
27892   ;;
27893   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-root-only" >&5
27894echo "$as_me: error: bad value ${enableval} for --enable-root-only" >&2;}
27895   { (exit 1); exit 1; }; }
27896   ;;
27897esac
27898else
27899  sym_root_only=false
27900fi;
27901
27902
27903
27904if test $sym_root_only = true; then
27905  ROOT_NODE_ONLY_TRUE=
27906  ROOT_NODE_ONLY_FALSE='#'
27907else
27908  ROOT_NODE_ONLY_TRUE='#'
27909  ROOT_NODE_ONLY_FALSE=
27910fi
27911
27912
27913#---------------------------------------------------------------------------#
27914# FIXME CCMALLOC
27915#---------------------------------------------------------------------------#
27916
27917#---------------------------------------------------------------------------#
27918# COMPILE_FRAC_BRANCHING
27919#---------------------------------------------------------------------------#
27920
27921# Check whether --enable-frac-branching or --disable-frac-branching was given.
27922if test "${enable_frac_branching+set}" = set; then
27923  enableval="$enable_frac_branching"
27924  case "${enableval}" in
27925   yes) sym_frac_branch=true
27926   ;;
27927   no)  sym_frac_branch=false
27928   ;;
27929   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-frac-branching" >&5
27930echo "$as_me: error: bad value ${enableval} for --enable-frac-branching" >&2;}
27931   { (exit 1); exit 1; }; }
27932   ;;
27933esac
27934else
27935  sym_frac_branch=false
27936fi;
27937
27938
27939
27940if test $sym_frac_branch = true; then
27941  COMPILE_FRAC_BRANCHING_TRUE=
27942  COMPILE_FRAC_BRANCHING_FALSE='#'
27943else
27944  COMPILE_FRAC_BRANCHING_TRUE='#'
27945  COMPILE_FRAC_BRANCHING_FALSE=
27946fi
27947
27948
27949
27950#---------------------------------------------------------------------------#
27951# DO_TESTS
27952#---------------------------------------------------------------------------#
27953
27954# Check whether --enable-tests or --disable-tests was given.
27955if test "${enable_tests+set}" = set; then
27956  enableval="$enable_tests"
27957  case "${enableval}" in
27958   yes) sym_tests=true
27959   ;;
27960   no)  sym_tests=false
27961   ;;
27962   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5
27963echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;}
27964   { (exit 1); exit 1; }; }
27965   ;;
27966esac
27967else
27968  sym_tests=false
27969fi;
27970
27971
27972
27973if test $sym_tests = true; then
27974  DO_TESTS_TRUE=
27975  DO_TESTS_FALSE='#'
27976else
27977  DO_TESTS_TRUE='#'
27978  DO_TESTS_FALSE=
27979fi
27980
27981
27982#---------------------------------------------------------------------------#
27983# TM_BASIS_TESTS
27984#---------------------------------------------------------------------------#
27985
27986# Check whether --enable-tm-tests or --disable-tm-tests was given.
27987if test "${enable_tm_tests+set}" = set; then
27988  enableval="$enable_tm_tests"
27989  case "${enableval}" in
27990   yes) sym_tm_tests=true
27991   ;;
27992   no)  sym_tm_tests=false
27993   ;;
27994   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tm-tests" >&5
27995echo "$as_me: error: bad value ${enableval} for --enable-tm-tests" >&2;}
27996   { (exit 1); exit 1; }; }
27997   ;;
27998esac
27999else
28000  sym_tm_tests=false
28001fi;
28002
28003
28004
28005if test $sym_tm_tests = true; then
28006  TM_BASIS_TESTS_TRUE=
28007  TM_BASIS_TESTS_FALSE='#'
28008else
28009  TM_BASIS_TESTS_TRUE='#'
28010  TM_BASIS_TESTS_FALSE=
28011fi
28012
28013
28014#---------------------------------------------------------------------------#
28015# TRACE_PATH
28016#---------------------------------------------------------------------------#
28017
28018# Check whether --enable-trace-path or --disable-trace-path was given.
28019if test "${enable_trace_path+set}" = set; then
28020  enableval="$enable_trace_path"
28021  case "${enableval}" in
28022   yes) sym_trace_path=true
28023   ;;
28024   no)  sym_trace_path=false
28025   ;;
28026   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-trace-path" >&5
28027echo "$as_me: error: bad value ${enableval} for --enable-trace-path" >&2;}
28028   { (exit 1); exit 1; }; }
28029   ;;
28030esac
28031else
28032  sym_trace_path=false
28033fi;
28034
28035
28036
28037if test $sym_trace_path = true; then
28038  TRACE_PATH_TRUE=
28039  TRACE_PATH_FALSE='#'
28040else
28041  TRACE_PATH_TRUE='#'
28042  TRACE_PATH_FALSE=
28043fi
28044
28045
28046#---------------------------------------------------------------------------#
28047# CHECK_CUT_VALIDITY
28048#---------------------------------------------------------------------------#
28049
28050# Check whether --enable-cut-check or --disable-cut-check was given.
28051if test "${enable_cut_check+set}" = set; then
28052  enableval="$enable_cut_check"
28053  case "${enableval}" in
28054   yes) sym_cut_check=true
28055   ;;
28056   no)  sym_cut_check=false
28057   ;;
28058   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cut-check" >&5
28059echo "$as_me: error: bad value ${enableval} for --enable-cut-check" >&2;}
28060   { (exit 1); exit 1; }; }
28061   ;;
28062esac
28063else
28064  sym_cut_check=false
28065fi;
28066
28067
28068
28069if test $sym_cut_check = true; then
28070  CHECK_CUT_VALIDITY_TRUE=
28071  CHECK_CUT_VALIDITY_FALSE='#'
28072else
28073  CHECK_CUT_VALIDITY_TRUE='#'
28074  CHECK_CUT_VALIDITY_FALSE=
28075fi
28076
28077
28078#---------------------------------------------------------------------------#
28079# STATISTICS
28080#---------------------------------------------------------------------------#
28081
28082# Check whether --enable-statistics or --disable-statistics was given.
28083if test "${enable_statistics+set}" = set; then
28084  enableval="$enable_statistics"
28085  case "${enableval}" in
28086   yes) sym_statistics=true
28087   ;;
28088   no)  sym_sttistics=false
28089   ;;
28090   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-statistics" >&5
28091echo "$as_me: error: bad value ${enableval} for --enable-statistics" >&2;}
28092   { (exit 1); exit 1; }; }
28093   ;;
28094esac
28095else
28096  sym_statistics=false
28097fi;
28098
28099
28100
28101if test $sym_statistics = true; then
28102  STATISTICS_TRUE=
28103  STATISTICS_FALSE='#'
28104else
28105  STATISTICS_TRUE='#'
28106  STATISTICS_FALSE=
28107fi
28108
28109
28110#---------------------------------------------------------------------------#
28111# PSEUDO_COSTS
28112#---------------------------------------------------------------------------#
28113
28114# Check whether --enable-pseudo-costs or --disable-pseudo-costs was given.
28115if test "${enable_pseudo_costs+set}" = set; then
28116  enableval="$enable_pseudo_costs"
28117  case "${enableval}" in
28118   yes) sym_pseudo_costs=true
28119   ;;
28120   no)  sym_pseudo_costs=false
28121   ;;
28122   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pseudo-costs" >&5
28123echo "$as_me: error: bad value ${enableval} for --enable-pseudo-costs" >&2;}
28124   { (exit 1); exit 1; }; }
28125   ;;
28126esac
28127else
28128  sym_pseudo_costs=false
28129fi;
28130
28131
28132
28133if test $sym_pseudo_costs = true; then
28134  PSEUDO_COSTS_TRUE=
28135  PSEUDO_COSTS_FALSE='#'
28136else
28137  PSEUDO_COSTS_TRUE='#'
28138  PSEUDO_COSTS_FALSE=
28139fi
28140
28141
28142#---------------------------------------------------------------------------#
28143# DRAWGRAPH
28144#---------------------------------------------------------------------------#
28145
28146# Check whether --enable-draw-graph or --disable-draw-graph was given.
28147if test "${enable_draw_graph+set}" = set; then
28148  enableval="$enable_draw_graph"
28149  case "${enableval}" in
28150   yes) sym_graph=true
28151   ;;
28152   no)  sym_graph=false
28153   ;;
28154   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-graph" >&5
28155echo "$as_me: error: bad value ${enableval} for --enable-graph" >&2;}
28156   { (exit 1); exit 1; }; }
28157   ;;
28158esac
28159else
28160  sym_graph=false
28161fi;
28162
28163
28164
28165if test $sym_graph = true; then
28166  DRAWGRAPH_TRUE=
28167  DRAWGRAPH_FALSE='#'
28168else
28169  DRAWGRAPH_TRUE='#'
28170  DRAWGRAPH_FALSE=
28171fi
28172
28173
28174#---------------------------------------------------------------------------#
28175# STATIC EXECUTABLE
28176#---------------------------------------------------------------------------#
28177
28178# Check whether --enable-static-executable or --disable-static-executable was given.
28179if test "${enable_static_executable+set}" = set; then
28180  enableval="$enable_static_executable"
28181  case "${enableval}" in
28182   yes)
28183      if test "$enable_shared" = yes; then
28184        { { echo "$as_me:$LINENO: error: static executable requires static COIN libraries: use with --enable-shared=no flag" >&5
28185echo "$as_me: error: static executable requires static COIN libraries: use with --enable-shared=no flag" >&2;}
28186   { (exit 1); exit 1; }; }
28187      fi
28188      sym_static_exe=true
28189   ;;
28190   no)  sym_static_exe=false
28191   ;;
28192   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-executable" >&5
28193echo "$as_me: error: bad value ${enableval} for --enable-static-executable" >&2;}
28194   { (exit 1); exit 1; }; }
28195   ;;
28196esac
28197else
28198  sym_static_exe=false
28199fi;
28200
28201
28202
28203if test $sym_static_exe = true; then
28204  STATICEXE_TRUE=
28205  STATICEXE_FALSE='#'
28206else
28207  STATICEXE_TRUE='#'
28208  STATICEXE_FALSE=
28209fi
28210
28211
28212#---------------------------------------------------------------------------#
28213# DRAWGRAPH
28214#---------------------------------------------------------------------------#
28215
28216# Check whether --enable-signal-handler or --disable-signal-handler was given.
28217if test "${enable_signal_handler+set}" = set; then
28218  enableval="$enable_signal_handler"
28219  case "${enableval}" in
28220   yes) sym_sig_catch=true
28221   ;;
28222   no)  sym_sig_catch=false
28223   ;;
28224   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-signal-handler" >&5
28225echo "$as_me: error: bad value ${enableval} for --disable-signal-handler" >&2;}
28226   { (exit 1); exit 1; }; }
28227   ;;
28228esac
28229else
28230  sym_sig_catch=true
28231fi;
28232
28233
28234
28235if test $sym_sig_catch = true; then
28236  SIGHANDLER_TRUE=
28237  SIGHANDLER_FALSE='#'
28238else
28239  SIGHANDLER_TRUE='#'
28240  SIGHANDLER_FALSE=
28241fi
28242
28243
28244#############################################################################
28245#              Check the OS and add default defs                            #
28246#############################################################################
28247
28248SYMDEFS='-DHAS_RANDOM -DHAS_SRANDOM -D__NONE__'
28249
28250ARCH=
28251case $host in
28252  *-cygwin*)
28253       if test "$enable_doscompile" = mingw; then
28254           SYMDEFS="$SYMDEFS -D__MNO_CYGWIN"
28255       else
28256           SYMDEFS="$SYMDEFS -D__CYGWIN"
28257       fi
28258       ARCH=CYGWIN ;;
28259  *-mingw*)
28260       SYMDEFS="$SYMDEFS -D__MNO_CYGWIN"
28261       ARCH=CYGWIN ;;
28262  *-darwin*)
28263       SYMDEFS="$SYMDEFS -D__DARWIN"
28264       ARCH=DARWIN ;;
28265  *-linux-*)
28266       SYMDEFS="$SYMDEFS -D__LINUX"
28267       case $build in
28268	     ppc*|powerpc*)
28269	     ARCH=LINUXPPC ;;
28270	     *)
28271             ARCH=LINUX ;;
28272       esac
28273       ;;
28274  *-alpha-*)
28275       SYMDEFS="$SYMDEFS -D__ALPHA"
28276       ARCH=ALPHA ;;
28277  *-aix-*)
28278       SYMDEFS="$SYMDEFS -D__RS6K"
28279       ARCH=RS6K ;;
28280  *-sun-*|*solaris2*)
28281       case $build in
28282            *-i86pc-* | i386-pc*)
28283                SYMDEFS="$SYMDEFS -D__X86SOL2"
28284	        ARCH=X86SOL2 ;;
28285            *-5.-*)
28286                np=$(shell mpstat | wc -l -gt -a)
28287                if test $np = ON; then
28288                       SYMDEFS="$SYMDEFS -D__SUNMP"
28289		       ARCH=SUNMP
28290                else
28291                       SYMDEFS="$SYMDEFS -D__SUN4SOL2"
28292		       ARCH=SUN4SOL2
28293                fi
28294            ;;
28295       esac
28296       ;;
28297  *)
28298       SYMDEFS="$SYMDEFS -D__UNKNOWN_OS" ;;
28299esac
28300
28301#############################################################################
28302#                       Applications                                        #
28303#############################################################################
28304
28305echo "$as_me:$LINENO: checking whether to compile application library" >&5
28306echo $ECHO_N "checking whether to compile application library... $ECHO_C" >&6
28307
28308# Check whether --with-application or --without-application was given.
28309if test "${with_application+set}" = set; then
28310  withval="$with_application"
28311  sym_appl=$withval
28312else
28313  sym_appl=no
28314fi;
28315
28316
28317
28318if test $sym_appl = yes; then
28319  SYM_WITH_APPL_TRUE=
28320  SYM_WITH_APPL_FALSE='#'
28321else
28322  SYM_WITH_APPL_TRUE='#'
28323  SYM_WITH_APPL_FALSE=
28324fi
28325
28326echo "$as_me:$LINENO: result: $sym_appl" >&5
28327echo "${ECHO_T}$sym_appl" >&6
28328
28329
28330#############################################################################
28331#                       Parallel configuration                              #
28332#############################################################################
28333
28334
28335  echo "$as_me:$LINENO: checking if user provides library for Pvm" >&5
28336echo $ECHO_N "checking if user provides library for Pvm... $ECHO_C" >&6
28337
28338# Check for header file directory
28339
28340
28341# Check whether --with-pvm-incdir or --without-pvm-incdir was given.
28342if test "${with_pvm_incdir+set}" = set; then
28343  withval="$with_pvm_incdir"
28344  PVMINCDIR=`cd $withval; pwd`
28345fi;
28346
28347# Check for library directory
28348
28349
28350# Check whether --with-pvm-lib or --without-pvm-lib was given.
28351if test "${with_pvm_lib+set}" = set; then
28352  withval="$with_pvm_lib"
28353  PVMLIB=$withval
28354fi;
28355
28356# Switch to disable library check if requested
28357
28358  # Check whether --enable-pvm-libcheck or --disable-pvm-libcheck was given.
28359if test "${enable_pvm_libcheck+set}" = set; then
28360  enableval="$enable_pvm_libcheck"
28361  pvm_libcheck=$enableval
28362else
28363  pvm_libcheck=yes
28364fi;
28365
28366# At this point, if we're going to use the library, both LBRYINCDIR and
28367# LBRYLIB must be defined and not empty.
28368
28369  if test x"$PVMINCDIR" != x || test x"$PVMLIB" != x; then
28370    if test x"$PVMINCDIR" = x || test x"$PVMLIB" = x; then
28371      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Pvm. Use --with-pvm-incdir of environment variable $PVMINCDIR to specify the include directory. Use --with-pvm-lib or environment variable $PVMLIB to specify link flags." >&5
28372echo "$as_me: error: You need to specify both an include directory and link flags to use library Pvm. Use --with-pvm-incdir of environment variable $PVMINCDIR to specify the include directory. Use --with-pvm-lib or environment variable $PVMLIB to specify link flags." >&2;}
28373   { (exit 1); exit 1; }; }
28374    fi
28375    coin_has_pvm=true
28376    echo "$as_me:$LINENO: result: yes" >&5
28377echo "${ECHO_T}yes" >&6
28378  else
28379    coin_has_pvm=false
28380    echo "$as_me:$LINENO: result: no" >&5
28381echo "${ECHO_T}no" >&6
28382  fi
28383
28384# If we have instructions for use, consider header and link checks.
28385
28386  if test $coin_has_pvm = true; then
28387
28388# If argument 3 (file) is given, check for the file. Typically this will be a
28389# header file, but that's not assumed.
28390
28391    if test -r $PVMINCDIR/pvm3.h; then
28392
28393  :
28394else
28395  { { echo "$as_me:$LINENO: error: Cannot find file pvm3.h in $PVMINCDIR" >&5
28396echo "$as_me: error: Cannot find file pvm3.h in $PVMINCDIR" >&2;}
28397   { (exit 1); exit 1; }; }
28398  :
28399fi
28400
28401
28402# Now see if we can link the function. There are arguments for and against
28403# assuming argument 3 is a header file declaring the function. A correct
28404# function declaration is the main argument in favour. Having to cope with
28405# possible dependencies or other oddities are the main arguments against.
28406# Force the use of C as the best single choice amongst C++, C, and Fortran.
28407# Obviously, this has limits.
28408
28409    if test x"$pvm_libcheck" != xno; then
28410	   coin_save_LIBS="$LIBS"
28411	   LIBS="$PVMLIB "
28412	   coin_PVM_link=no
28413	   ac_ext=c
28414ac_cpp='$CPP $CPPFLAGS'
28415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28417ac_compiler_gnu=$ac_cv_c_compiler_gnu
28418
28419	   for fnm in pvm_gettid ; do
28420	     echo "$as_me:$LINENO: checking whether symbol $fnm is available with PVM" >&5
28421echo $ECHO_N "checking whether symbol $fnm is available with PVM... $ECHO_C" >&6
28422	     cat >conftest.$ac_ext <<_ACEOF
28423/* confdefs.h.  */
28424_ACEOF
28425cat confdefs.h >>conftest.$ac_ext
28426cat >>conftest.$ac_ext <<_ACEOF
28427/* end confdefs.h.  */
28428
28429int
28430main ()
28431{
28432$fnm()
28433  ;
28434  return 0;
28435}
28436_ACEOF
28437rm -f conftest.$ac_objext conftest$ac_exeext
28438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439  (eval $ac_link) 2>conftest.er1
28440  ac_status=$?
28441  grep -v '^ *+' conftest.er1 >conftest.err
28442  rm -f conftest.er1
28443  cat conftest.err >&5
28444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445  (exit $ac_status); } &&
28446	 { ac_try='test -z "$ac_c_werror_flag"
28447			 || test ! -s conftest.err'
28448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449  (eval $ac_try) 2>&5
28450  ac_status=$?
28451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452  (exit $ac_status); }; } &&
28453	 { ac_try='test -s conftest$ac_exeext'
28454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455  (eval $ac_try) 2>&5
28456  ac_status=$?
28457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458  (exit $ac_status); }; }; then
28459  echo "$as_me:$LINENO: result: yes" >&5
28460echo "${ECHO_T}yes" >&6
28461		  coin_PVM_link=yes
28462		  break
28463else
28464  echo "$as_me: failed program was:" >&5
28465sed 's/^/| /' conftest.$ac_ext >&5
28466
28467echo "$as_me:$LINENO: result: no" >&5
28468echo "${ECHO_T}no" >&6
28469fi
28470rm -f conftest.err conftest.$ac_objext \
28471      conftest$ac_exeext conftest.$ac_ext
28472	   done
28473	   ac_ext=cc
28474ac_cpp='$CXXCPP $CPPFLAGS'
28475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28478
28479           LIBS="$coin_save_LIBS"
28480	   if test x"$coin_PVM_link" != xyes ; then
28481	     { { echo "$as_me:$LINENO: error: Cannot find symbol(s) pvm_gettid with PVM" >&5
28482echo "$as_me: error: Cannot find symbol(s) pvm_gettid with PVM" >&2;}
28483   { (exit 1); exit 1; }; }
28484	   fi
28485	 fi
28486
28487
28488# If we make it this far, we've verified the file and linked the function. Add
28489# the necessary link flags to _{PC}LIBS and define the preprocessor symbol
28490# COIN_HAS_LBRY.
28491
28492
28493
28494
28495cat >>confdefs.h <<\_ACEOF
28496#define COIN_HAS_PVM 1
28497_ACEOF
28498
28499  fi
28500
28501# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
28502# automake conditional. These actions must occur unconditionally.
28503
28504
28505
28506
28507
28508if test $coin_has_pvm = true; then
28509  COIN_HAS_PVM_TRUE=
28510  COIN_HAS_PVM_FALSE='#'
28511else
28512  COIN_HAS_PVM_TRUE='#'
28513  COIN_HAS_PVM_FALSE=
28514fi
28515
28516
28517
28518# Check whether --with-pvm or --without-pvm was given.
28519if test "${with_pvm+set}" = set; then
28520  withval="$with_pvm"
28521  find_pvm=$withval
28522else
28523  find_pvm=no
28524fi;
28525
28526if test x"$find_pvm" = xyes; then
28527    if test x"$coin_has_pvm" != xyes; then
28528        as_ac_File=`echo "ac_cv_file_$PVM_ROOT/include/pvm3.h" | $as_tr_sh`
28529echo "$as_me:$LINENO: checking for $PVM_ROOT/include/pvm3.h" >&5
28530echo $ECHO_N "checking for $PVM_ROOT/include/pvm3.h... $ECHO_C" >&6
28531if eval "test \"\${$as_ac_File+set}\" = set"; then
28532  echo $ECHO_N "(cached) $ECHO_C" >&6
28533else
28534  test "$cross_compiling" = yes &&
28535  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28536echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28537   { (exit 1); exit 1; }; }
28538if test -r "$PVM_ROOT/include/pvm3.h"; then
28539  eval "$as_ac_File=yes"
28540else
28541  eval "$as_ac_File=no"
28542fi
28543fi
28544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28545echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28546if test `eval echo '${'$as_ac_File'}'` = yes; then
28547  pvm_header=yes
28548fi
28549
28550
28551	LIBS="-L$PVM_ROOT/lib/$PVM_ARCH -lgpvm3 -lpvm3"
28552                   pvm_link=no
28553                   ac_ext=c
28554ac_cpp='$CPP $CPPFLAGS'
28555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28557ac_compiler_gnu=$ac_cv_c_compiler_gnu
28558
28559                   echo "$as_me:$LINENO: checking whether symbol pvm_gettid is available with PVM" >&5
28560echo $ECHO_N "checking whether symbol pvm_gettid is available with PVM... $ECHO_C" >&6
28561                   cat >conftest.$ac_ext <<_ACEOF
28562/* confdefs.h.  */
28563_ACEOF
28564cat confdefs.h >>conftest.$ac_ext
28565cat >>conftest.$ac_ext <<_ACEOF
28566/* end confdefs.h.  */
28567
28568int
28569main ()
28570{
28571pvm_gettid()
28572  ;
28573  return 0;
28574}
28575_ACEOF
28576rm -f conftest.$ac_objext conftest$ac_exeext
28577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28578  (eval $ac_link) 2>conftest.er1
28579  ac_status=$?
28580  grep -v '^ *+' conftest.er1 >conftest.err
28581  rm -f conftest.er1
28582  cat conftest.err >&5
28583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584  (exit $ac_status); } &&
28585	 { ac_try='test -z "$ac_c_werror_flag"
28586			 || test ! -s conftest.err'
28587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588  (eval $ac_try) 2>&5
28589  ac_status=$?
28590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591  (exit $ac_status); }; } &&
28592	 { ac_try='test -s conftest$ac_exeext'
28593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594  (eval $ac_try) 2>&5
28595  ac_status=$?
28596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597  (exit $ac_status); }; }; then
28598  echo "$as_me:$LINENO: result: yes" >&5
28599echo "${ECHO_T}yes" >&6
28600                                   pvm_link=yes
28601                                   break
28602else
28603  echo "$as_me: failed program was:" >&5
28604sed 's/^/| /' conftest.$ac_ext >&5
28605
28606echo "$as_me:$LINENO: result: no" >&5
28607echo "${ECHO_T}no" >&6
28608fi
28609rm -f conftest.err conftest.$ac_objext \
28610      conftest$ac_exeext conftest.$ac_ext
28611                   ac_ext=cc
28612ac_cpp='$CXXCPP $CPPFLAGS'
28613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28616
28617
28618    fi
28619
28620    if test x"$pvm_header" != xyes; then
28621       { { echo "$as_me:$LINENO: error: Cannot find the pvm header files either in system path or
28622in PVM_ROOT path:$PVM_ROOT" >&5
28623echo "$as_me: error: Cannot find the pvm header files either in system path or
28624in PVM_ROOT path:$PVM_ROOT" >&2;}
28625   { (exit 1); exit 1; }; }
28626    fi
28627    if test x"$pvm_link" != xyes ; then
28628       { { echo "$as_me:$LINENO: error: Cannot find PVM library in system paths or in PVM_ROOT path:$PVM_ROOT" >&5
28629echo "$as_me: error: Cannot find PVM library in system paths or in PVM_ROOT path:$PVM_ROOT" >&2;}
28630   { (exit 1); exit 1; }; }
28631    fi
28632    if test $pvm_link == yes && test $pvm_header == yes; then
28633       coin_has_pvm=yes
28634    fi
28635fi
28636
28637#---------------------------------------------------------------------------#
28638
28639#AC_MSG_CHECKING([whether to compile in cg])
28640
28641# Check whether --with-cg or --without-cg was given.
28642if test "${with_cg+set}" = set; then
28643  withval="$with_cg"
28644  in_cg=$withval
28645else
28646  in_cg=yes
28647fi;
28648
28649
28650if test "$in_cg" = yes; then
28651  SYM_COMPILE_IN_CG_TRUE=
28652  SYM_COMPILE_IN_CG_FALSE='#'
28653else
28654  SYM_COMPILE_IN_CG_TRUE='#'
28655  SYM_COMPILE_IN_CG_FALSE=
28656fi
28657
28658
28659#AC_MSG_CHECKING([whether to compile in cp])
28660
28661# Check whether --with-cp or --without-cp was given.
28662if test "${with_cp+set}" = set; then
28663  withval="$with_cp"
28664  in_cp=$withval
28665else
28666  in_cp=yes
28667fi;
28668
28669
28670if test "$in_cp" = yes; then
28671  SYM_COMPILE_IN_CP_TRUE=
28672  SYM_COMPILE_IN_CP_FALSE='#'
28673else
28674  SYM_COMPILE_IN_CP_TRUE='#'
28675  SYM_COMPILE_IN_CP_FALSE=
28676fi
28677
28678
28679
28680#AC_MSG_CHECKING([whether to compile in lp])
28681
28682# Check whether --with-lp or --without-lp was given.
28683if test "${with_lp+set}" = set; then
28684  withval="$with_lp"
28685  in_lp=$withval
28686else
28687  in_lp=yes
28688fi;
28689
28690
28691if test "$in_lp" = yes; then
28692  SYM_COMPILE_IN_LP_TRUE=
28693  SYM_COMPILE_IN_LP_FALSE='#'
28694else
28695  SYM_COMPILE_IN_LP_TRUE='#'
28696  SYM_COMPILE_IN_LP_FALSE=
28697fi
28698
28699
28700#AC_MSG_CHECKING([whether to compile in tm])
28701
28702# Check whether --with-tm or --without-tm was given.
28703if test "${with_tm+set}" = set; then
28704  withval="$with_tm"
28705  in_tm=$withval
28706else
28707  in_tm=yes
28708fi;
28709
28710
28711if test "$in_tm" = yes; then
28712  SYM_COMPILE_IN_TM_TRUE=
28713  SYM_COMPILE_IN_TM_FALSE='#'
28714else
28715  SYM_COMPILE_IN_TM_TRUE='#'
28716  SYM_COMPILE_IN_TM_FALSE=
28717fi
28718
28719
28720#sym_def_pconfig=true;
28721sym_enable_parallel=false;
28722if test $in_cg = no || test $in_cp = no ||
28723   test $in_lp = no || test $in_tm = no; then
28724#   sym_def_pconfig=false;
28725   if test $coin_has_pvm = no; then
28726      { { echo "$as_me:$LINENO: error: Need PVM to enable distributed parallel execution!" >&5
28727echo "$as_me: error: Need PVM to enable distributed parallel execution!" >&2;}
28728   { (exit 1); exit 1; }; }
28729   fi
28730   sym_enable_parallel=true;
28731else
28732   if test $coin_has_pvm = yes; then
28733       in_lp=no
28734
28735
28736if false; then
28737  SYM_COMPILE_IN_LP_TRUE=
28738  SYM_COMPILE_IN_LP_FALSE='#'
28739else
28740  SYM_COMPILE_IN_LP_TRUE='#'
28741  SYM_COMPILE_IN_LP_FALSE=
28742fi
28743
28744       sym_enable_parallel=true;
28745   fi
28746fi
28747
28748
28749
28750if $sym_enable_parallel; then
28751  SYM_PARALLEL_TRUE=
28752  SYM_PARALLEL_FALSE='#'
28753else
28754  SYM_PARALLEL_TRUE='#'
28755  SYM_PARALLEL_FALSE=
28756fi
28757
28758
28759LPEXT=
28760CPEXT=
28761TMEXT=
28762MASTEREXT=
28763LIBNAME=
28764SYMPDEFS="$SYMDEFS"
28765
28766SYMDEFS="$SYMDEFS -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM"
28767
28768if test $in_cg = yes; then
28769   LPEXT=_cg
28770   SYMPDEFS="$SYMPDEFS -DCOMPILE_IN_CG"
28771fi
28772if test $in_cp = yes; then
28773   SYMPDEFS="$SYMPDEFS -DCOMPILE_IN_CP"
28774   CPEXT=_cp
28775fi
28776if test $in_lp = yes; then
28777  SYMPDEFS="$SYMPDEFS -DCOMPILE_IN_LP"
28778  TMEXT="_lp$LPEXT$CPEXT"
28779else
28780  TMEXT=$CPEXT
28781fi
28782if test $in_tm = yes; then
28783  SYMPDEFS="$SYMPDEFS -DCOMPILE_IN_TM"
28784  MASTEREXT="_tm$TMEXT"
28785fi
28786
28787WHATTOMAKELIBS="libSym.la"
28788WHATTOMAKEBINS="symphony$EXEEXT"
28789if test $sym_appl = yes ; then
28790   WHATTOMAKELIBS="$WHATTOMAKELIBS libSymAppl.la"
28791   WHATTOINSTALLLIBS="$WHATTOINSTALLLIBS libSymAppl.la"
28792   if test $dependency_linking = yes ; then
28793       WHATTOMAKELIBS="$WHATTOMAKELIBS libSymApplStubs.la"
28794   fi
28795fi
28796WHATTOINSTALLLIBS="$WHATTOMAKELIBS"
28797
28798if test $sym_enable_parallel = true; then
28799   SYMPDEFS="$SYMPDEFS -D__PVM__"
28800   if test $in_cg = no; then
28801      WHATTOMAKELIBS=libSym_cg.la
28802      if test $sym_appl = yes ; then
28803      	 WHATTOMAKELIBS="$WHATTOMAKELIBS libSymAppl_cg.la"
28804      fi
28805      WHATTOMAKEBINS="symphony_cg$EXEEXT"
28806      fi
28807   if test $in_cp = no; then
28808      WHATTOMAKELIBS="$WHATTOMAKELIBS libSym_cp.la"
28809      if test $sym_appl = yes ; then
28810      	 WHATTOMAKELIBS="$WHATTOMAKELIBS libSymAppl_cp.la"
28811      fi
28812      WHATTOMAKEBINS="$WHATTOMAKEBINS symphony_cp$EXEEXT"
28813   fi
28814   if test $in_lp = no; then
28815      WHATTOMAKELIBS="$WHATTOMAKELIBS libSym_lp$LPEXT.la"
28816      if test $sym_appl = yes ; then
28817      	 WHATTOMAKELIBS="$WHATTOMAKELIBS libSymAppl_lp$LPEXT.la"
28818      fi
28819      WHATTOMAKEBINS="$WHATTOMAKEBINS symphony_lp$LPEXT$EXEEXT"
28820   fi
28821   if test $in_tm = no; then
28822      WHATTOMAKELIBS="$WHATTOMAKELIBS libSym_tm$TMEXT.la"
28823      if test $sym_appl = yes ; then
28824      	 WHATTOMAKELIBS="$WHATTOMAKELIBS libSymAppl_tm$TMEXT.la"
28825      fi
28826      WHATTOMAKEBINS="$WHATTOMAKEBINS symphony_tm$TMEXT$EXEEXT"
28827    fi
28828    MASTEREXT="_m$MASTEREXT"
28829    WHATTOMAKELIBS="$WHATTOMAKELIBS libSym$MASTEREXT.la"
28830    WHATTOMAKEBINS="$WHATTOMAKEBINS symphony$MASTEREXT$EXEEXT"
28831    if test $sym_appl = yes ; then
28832       WHATTOMAKELIBS="$WHATTOMAKELIBS libSymAppl$MASTEREXT.la"
28833       WHATTOINSTALLLIBS="$WHATTOINSTALLLIBS libSymAppl$MASTEREXT.la"
28834       if test $dependency_linking = yes ; then
28835       	  WHATTOMAKELIBS="$WHATTOMAKELIBS libSymApplStubs.la"
28836       fi
28837    fi
28838    WHATTOINSTALLLIBS="$WHATTOMAKELIBS"
28839fi
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849##############################################################################
28850#                           OPENMP defs                                     #
28851##############################################################################
28852
28853
28854# Check whether --enable-openmp or --disable-openmp was given.
28855if test "${enable_openmp+set}" = set; then
28856  enableval="$enable_openmp"
28857  case "${enableval}" in
28858   yes) sym_openmp=true
28859   ;;
28860   no)  sym_openmp=false
28861   ;;
28862   *) { { echo "$as_me:$LINENO: error: Bad value ${enableval} for --enable-openmp" >&5
28863echo "$as_me: error: Bad value ${enableval} for --enable-openmp" >&2;}
28864   { (exit 1); exit 1; }; }
28865   ;;
28866esac
28867else
28868  sym_openmp=auto
28869fi;
28870
28871if test $sym_enable_parallel = true; then
28872   if test $sym_openmp = true; then
28873      { { echo "$as_me:$LINENO: error: Cannot use both PVM and OpenMP simultaneously: Disabling OpenMP" >&5
28874echo "$as_me: error: Cannot use both PVM and OpenMP simultaneously: Disabling OpenMP" >&2;}
28875   { (exit 1); exit 1; }; }
28876   fi
28877   sym_openmp=false
28878fi
28879
28880if test $sym_openmp = auto; then
28881   echo "$as_me:$LINENO: checking whether compiler supports OpenMP" >&5
28882echo $ECHO_N "checking whether compiler supports OpenMP... $ECHO_C" >&6
28883   case "$CXX" in
28884     clang*)
28885       echo "$as_me:$LINENO: result: no" >&5
28886echo "${ECHO_T}no" >&6
28887       sym_openmp=false
28888       ;;
28889     cl* | *\cl* | */cl*)
28890       echo "$as_me:$LINENO: result: yes" >&5
28891echo "${ECHO_T}yes" >&6
28892       sym_openmp=true
28893       ;;
28894     g++*)
28895        sym_openmp=true
28896   	fopenmp_version=4.2
28897   	gcc_required_version=`echo ${fopenmp_version} | sed -e 's/\./0/g'`
28898   	get_gcc_version=`$CXX -dumpversion`
28899   	gcc_version=`echo ${get_gcc_version} | sed -e 's/\./0/g'`
28900   	major_gcc_version=`echo ${gcc_version:0:3}`
28901   	#AC_MSG_RESULT([$get_gcc_version])
28902   	if test ${major_gcc_version} -lt ${gcc_required_version}; then
28903       	   echo "$as_me:$LINENO: result: no" >&5
28904echo "${ECHO_T}no" >&6
28905           sym_openmp=false
28906        else
28907       	   echo "$as_me:$LINENO: result: yes" >&5
28908echo "${ECHO_T}yes" >&6
28909           sym_openmp=true
28910	fi
28911        ;;
28912   esac
28913fi
28914
28915
28916
28917if test $sym_openmp = true; then
28918  OPENMP_TRUE=
28919  OPENMP_FALSE='#'
28920else
28921  OPENMP_TRUE='#'
28922  OPENMP_FALSE=
28923fi
28924
28925
28926
28927if test $sym_openmp = true; then
28928  if test x$coin_cxx_is_cl = xtrue; then
28929    SYM_OPENMP_FLAGS=-openmp
28930    SYM_OPENMP_LIBS=
28931  else
28932    SYM_OPENMP_FLAGS=-fopenmp
28933    SYM_OPENMP_LIBS=-lgomp
28934  fi
28935else
28936  SYM_OPENMP_FLAGS=
28937  SYM_OPENMP_LIBS=
28938fi
28939
28940#############################################################################
28941#                       Other third party software                          #
28942#############################################################################
28943
28944# Ampl Solver library
28945#AC_COIN_HAS_ASL
28946
28947##############################################################################
28948#                   VPATH links for example input files                      #
28949##############################################################################
28950
28951# In case this is a VPATH configuration we need to make sure that the
28952# input files for the examples are available in the VPATH directory.
28953
28954##############################################################################
28955#                   Finishing up by writing all the output                   #
28956##############################################################################
28957
28958# Location of SYMPHONY for later use
28959
28960
28961SYMINCDIR=`cd $srcdir; pwd`/include
28962SYMSRCDIR=`cd $srcdir; pwd`/src
28963
28964# To be used in applications: default SYMPHONY defs
28965
28966
28967
28968
28969
28970# Location of Applications for later use
28971
28972SYMAPPLDIR=`pwd`/Applications
28973
28974#FIXME-Debugging conditional, for now
28975
28976#AM_CONDITIONAL(SYM_DEBUG, [ test $coin_debug_compile = true])
28977
28978#Add openmp flag and take care of cl flags
28979sym_use_cl=false
28980CLLCFLAGS=
28981case "$CXX" in
28982  clang*)
28983     if test $sym_openmp = true; then
28984         CXXFLAGS="$CXXFLAGS -fopenmp"
28985     fi
28986  ;;
28987  cl* | *\cl* | */cl*)
28988     CLLCFLAGS=$CXXFLAGS
28989     CXXFLAGS="$CXXFLAGS -TP"
28990     if test $sym_openmp = true; then
28991     	 CXXFLAGS="$CXXFLAGS -openmp"
28992     fi
28993  ;;
28994  g++* | *\g++* | */g++*)
28995     if test $sym_openmp = true; then
28996         CXXFLAGS="$CXXFLAGS -fopenmp"
28997     fi
28998
28999     #Ignore warnings about unrecognized pragma lines and
29000     #deprecated string conversions
29001     CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-write-strings"
29002
29003     #Ignore warnings about comparisons of signed and unsigned values and
29004     #casting const pointers to ordinary pointers
29005     CXXFLAGS="$CXXFLAGS -Wno-sign-compare -Wno-cast-qual"
29006   ;;
29007esac
29008
29009
29010
29011#Set CFLAGS to CXXFLAGS since we are using g++
29012CFLAGS=$CXXFLAGS
29013
29014
29015
29016
29017# Here list all the files that configure should create (except for the
29018# configuration header file)
29019                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile src/OsiSym/Makefile test/Makefile Examples/Makefile Applications/Makefile.Applications Applications/CNRP/Makefile Applications/MATCH/Makefile Applications/MCKP/Makefile Applications/MPP/Makefile Applications/SPP/Makefile Applications/SPP+CUTS/Makefile Applications/USER/Makefile Applications/VRP/Makefile symphony.pc symphony-app.pc symphony-uninstalled.pc osi-sym.pc:src/OsiSym/osi-sym.pc.in osi-sym-uninstalled.pc:src/OsiSym/osi-sym-uninstalled.pc.in"
29020
29021
29022
29023echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
29024echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
29025if test `cd $srcdir; pwd` != `pwd`; then
29026  coin_vpath_config=yes;
29027else
29028  coin_vpath_config=no;
29029fi
29030echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
29031echo "${ECHO_T}$coin_vpath_config" >&6
29032
29033
29034
29035# Allow for newlines in the parameter
29036if test $coin_vpath_config = yes; then
29037  cvl_tmp="Applications/INSTALL
29038                    Applications/CNRP/README
29039                    Applications/CNRP/INSTALL
29040                    Applications/CNRP/sample.cnrp
29041                    Applications/MATCH/README
29042                    Applications/MATCH/INSTALL
29043                    Applications/MATCH/sample.mat
29044                    Applications/MCKP/README
29045                    Applications/MCKP/INSTALL
29046                    Applications/MCKP/sample.mckp
29047                    Applications/MPP/README
29048                    Applications/MPP/INSTALL
29049                    Applications/MPP/sample.mpp
29050                    Applications/SPP/README
29051                    Applications/SPP/INSTALL
29052                    Applications/SPP/sample.spp
29053                    Applications/SPP+CUTS/README
29054                    Applications/SPP+CUTS/INSTALL
29055                    Applications/SPP+CUTS/sample.spp
29056                    Applications/USER/README
29057                    Applications/USER/INSTALL
29058                    Applications/USER/sample.mps
29059                    Applications/VRP/README
29060                    Applications/VRP/INSTALL
29061                    Applications/VRP/sample.vrp"
29062  for file in $cvl_tmp ; do
29063    coin_vpath_link_files="$coin_vpath_link_files $file"
29064  done
29065fi
29066
29067
29068# Here put the location and name of the configuration header file
29069                    ac_config_headers="$ac_config_headers include/config.h include/config_sym.h"
29070
29071
29072# Finally, we let configure write all the output...
29073
29074
29075
29076
29077echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
29078echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
29079coin_link_input_cmd="$LN_S"
29080case "$CC" in
29081  clang* ) ;;
29082  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
29083    coin_link_input_cmd=cp ;;
29084esac
29085echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
29086echo "${ECHO_T}$coin_link_input_cmd" >&6
29087
29088
29089
29090if test x$coin_skip_ac_output != xyes; then
29091
29092  # library extension
29093
29094  case "$CC" in
29095    clang* )
29096         LIBEXT=a ;;
29097    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
29098         LIBEXT=lib ;;
29099      *) LIBEXT=a ;;
29100  esac
29101
29102  # Define VPATH_DISTCLEANFILES to be everything that needs to be
29103  # cleaned for distclean in a vpath configuration
29104
29105  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
29106
29107  # Take out subdirectories if their configuration concluded that they
29108  # don't need to be compiled
29109  if test x"$coin_ac_skip_subdirs" != x; then
29110    new_subdirs=
29111    for i in $subdirs; do
29112      skipme=no
29113      for j in $coin_ac_skip_subdirs; do
29114        if test $i = $j; then
29115          skipme=yes;
29116        fi
29117      done
29118      if test $skipme = no; then
29119        new_subdirs="$new_subdirs $i"
29120      fi
29121    done
29122    subdirs="$new_subdirs"
29123  fi
29124
29125  # need to come before AC_OUTPUT
29126  if test x$coin_projectdir != xyes; then
29127    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
29128    echo $coin_subdirs > coin_subdirs.txt
29129  else
29130    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
29131    ABSBUILDDIR="`pwd`"
29132
29133  fi
29134
29135  cat >confcache <<\_ACEOF
29136# This file is a shell script that caches the results of configure
29137# tests run on this system so they can be shared between configure
29138# scripts and configure runs, see configure's option --config-cache.
29139# It is not useful on other systems.  If it contains results you don't
29140# want to keep, you may remove or edit it.
29141#
29142# config.status only pays attention to the cache file if you give it
29143# the --recheck option to rerun configure.
29144#
29145# `ac_cv_env_foo' variables (set or unset) will be overridden when
29146# loading this file, other *unset* `ac_cv_foo' will be assigned the
29147# following values.
29148
29149_ACEOF
29150
29151# The following way of writing the cache mishandles newlines in values,
29152# but we know of no workaround that is simple, portable, and efficient.
29153# So, don't put newlines in cache variables' values.
29154# Ultrix sh set writes to stderr and can't be redirected directly,
29155# and sets the high bit in the cache file unless we assign to the vars.
29156{
29157  (set) 2>&1 |
29158    case `(ac_space=' '; set | grep ac_space) 2>&1` in
29159    *ac_space=\ *)
29160      # `set' does not quote correctly, so add quotes (double-quote
29161      # substitution turns \\\\ into \\, and sed turns \\ into \).
29162      sed -n \
29163	"s/'/'\\\\''/g;
29164	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29165      ;;
29166    *)
29167      # `set' quotes correctly as required by POSIX, so do not add quotes.
29168      sed -n \
29169	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29170      ;;
29171    esac;
29172} |
29173  sed '
29174     t clear
29175     : clear
29176     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29177     t end
29178     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29179     : end' >>confcache
29180if diff $cache_file confcache >/dev/null 2>&1; then :; else
29181  if test -w $cache_file; then
29182    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29183    cat confcache >$cache_file
29184  else
29185    echo "not updating unwritable cache $cache_file"
29186  fi
29187fi
29188rm -f confcache
29189
29190test "x$prefix" = xNONE && prefix=$ac_default_prefix
29191# Let make expand exec_prefix.
29192test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29193
29194# VPATH may cause trouble with some makes, so we remove $(srcdir),
29195# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29196# trailing colons and then remove the whole line if VPATH becomes empty
29197# (actually we leave an empty line to preserve line numbers).
29198if test "x$srcdir" = x.; then
29199  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29200s/:*\$(srcdir):*/:/;
29201s/:*\${srcdir}:*/:/;
29202s/:*@srcdir@:*/:/;
29203s/^\([^=]*=[	 ]*\):*/\1/;
29204s/:*$//;
29205s/^[^=]*=[	 ]*$//;
29206}'
29207fi
29208
29209DEFS=-DHAVE_CONFIG_H
29210
29211ac_libobjs=
29212ac_ltlibobjs=
29213for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29214  # 1. Remove the extension, and $U if already installed.
29215  ac_i=`echo "$ac_i" |
29216	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29217  # 2. Add them.
29218  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29219  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29220done
29221LIBOBJS=$ac_libobjs
29222
29223LTLIBOBJS=$ac_ltlibobjs
29224
29225
29226if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
29227  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
29228Usually this means the macro was only invoked conditionally." >&5
29229echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
29230Usually this means the macro was only invoked conditionally." >&2;}
29231   { (exit 1); exit 1; }; }
29232fi
29233if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
29234  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
29235Usually this means the macro was only invoked conditionally." >&5
29236echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
29237Usually this means the macro was only invoked conditionally." >&2;}
29238   { (exit 1); exit 1; }; }
29239fi
29240if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
29241  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
29242Usually this means the macro was only invoked conditionally." >&5
29243echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
29244Usually this means the macro was only invoked conditionally." >&2;}
29245   { (exit 1); exit 1; }; }
29246fi
29247if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29248  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29249Usually this means the macro was only invoked conditionally." >&5
29250echo "$as_me: error: conditional \"AMDEP\" was never defined.
29251Usually this means the macro was only invoked conditionally." >&2;}
29252   { (exit 1); exit 1; }; }
29253fi
29254if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29255  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29256Usually this means the macro was only invoked conditionally." >&5
29257echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29258Usually this means the macro was only invoked conditionally." >&2;}
29259   { (exit 1); exit 1; }; }
29260fi
29261if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29262  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29263Usually this means the macro was only invoked conditionally." >&5
29264echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29265Usually this means the macro was only invoked conditionally." >&2;}
29266   { (exit 1); exit 1; }; }
29267fi
29268if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29269  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29270Usually this means the macro was only invoked conditionally." >&5
29271echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29272Usually this means the macro was only invoked conditionally." >&2;}
29273   { (exit 1); exit 1; }; }
29274fi
29275if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
29276  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
29277Usually this means the macro was only invoked conditionally." >&5
29278echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
29279Usually this means the macro was only invoked conditionally." >&2;}
29280   { (exit 1); exit 1; }; }
29281fi
29282if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
29283  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
29284Usually this means the macro was only invoked conditionally." >&5
29285echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
29286Usually this means the macro was only invoked conditionally." >&2;}
29287   { (exit 1); exit 1; }; }
29288fi
29289if test -z "${COIN_HAS_READLINE_TRUE}" && test -z "${COIN_HAS_READLINE_FALSE}"; then
29290  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_READLINE\" was never defined.
29291Usually this means the macro was only invoked conditionally." >&5
29292echo "$as_me: error: conditional \"COIN_HAS_READLINE\" was never defined.
29293Usually this means the macro was only invoked conditionally." >&2;}
29294   { (exit 1); exit 1; }; }
29295fi
29296if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
29297  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
29298Usually this means the macro was only invoked conditionally." >&5
29299echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
29300Usually this means the macro was only invoked conditionally." >&2;}
29301   { (exit 1); exit 1; }; }
29302fi
29303if test -z "${COIN_HAS_COINDEPEND_TRUE}" && test -z "${COIN_HAS_COINDEPEND_FALSE}"; then
29304  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
29305Usually this means the macro was only invoked conditionally." >&5
29306echo "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
29307Usually this means the macro was only invoked conditionally." >&2;}
29308   { (exit 1); exit 1; }; }
29309fi
29310if test -z "${COIN_HAS_COINDEPEND_TRUE}" && test -z "${COIN_HAS_COINDEPEND_FALSE}"; then
29311  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
29312Usually this means the macro was only invoked conditionally." >&5
29313echo "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
29314Usually this means the macro was only invoked conditionally." >&2;}
29315   { (exit 1); exit 1; }; }
29316fi
29317if test -z "${COIN_HAS_CLP_TRUE}" && test -z "${COIN_HAS_CLP_FALSE}"; then
29318  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined.
29319Usually this means the macro was only invoked conditionally." >&5
29320echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
29321Usually this means the macro was only invoked conditionally." >&2;}
29322   { (exit 1); exit 1; }; }
29323fi
29324if test -z "${COIN_HAS_CLP_TRUE}" && test -z "${COIN_HAS_CLP_FALSE}"; then
29325  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined.
29326Usually this means the macro was only invoked conditionally." >&5
29327echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
29328Usually this means the macro was only invoked conditionally." >&2;}
29329   { (exit 1); exit 1; }; }
29330fi
29331if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then
29332  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined.
29333Usually this means the macro was only invoked conditionally." >&5
29334echo "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined.
29335Usually this means the macro was only invoked conditionally." >&2;}
29336   { (exit 1); exit 1; }; }
29337fi
29338if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then
29339  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined.
29340Usually this means the macro was only invoked conditionally." >&5
29341echo "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined.
29342Usually this means the macro was only invoked conditionally." >&2;}
29343   { (exit 1); exit 1; }; }
29344fi
29345if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then
29346  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined.
29347Usually this means the macro was only invoked conditionally." >&5
29348echo "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined.
29349Usually this means the macro was only invoked conditionally." >&2;}
29350   { (exit 1); exit 1; }; }
29351fi
29352if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then
29353  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined.
29354Usually this means the macro was only invoked conditionally." >&5
29355echo "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined.
29356Usually this means the macro was only invoked conditionally." >&2;}
29357   { (exit 1); exit 1; }; }
29358fi
29359if test -z "${COIN_HAS_CGL_TRUE}" && test -z "${COIN_HAS_CGL_FALSE}"; then
29360  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CGL\" was never defined.
29361Usually this means the macro was only invoked conditionally." >&5
29362echo "$as_me: error: conditional \"COIN_HAS_CGL\" was never defined.
29363Usually this means the macro was only invoked conditionally." >&2;}
29364   { (exit 1); exit 1; }; }
29365fi
29366if test -z "${COIN_HAS_CGL_TRUE}" && test -z "${COIN_HAS_CGL_FALSE}"; then
29367  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CGL\" was never defined.
29368Usually this means the macro was only invoked conditionally." >&5
29369echo "$as_me: error: conditional \"COIN_HAS_CGL\" was never defined.
29370Usually this means the macro was only invoked conditionally." >&2;}
29371   { (exit 1); exit 1; }; }
29372fi
29373if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
29374  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
29375Usually this means the macro was only invoked conditionally." >&5
29376echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
29377Usually this means the macro was only invoked conditionally." >&2;}
29378   { (exit 1); exit 1; }; }
29379fi
29380if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
29381  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
29382Usually this means the macro was only invoked conditionally." >&5
29383echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
29384Usually this means the macro was only invoked conditionally." >&2;}
29385   { (exit 1); exit 1; }; }
29386fi
29387if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
29388  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
29389Usually this means the macro was only invoked conditionally." >&5
29390echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
29391Usually this means the macro was only invoked conditionally." >&2;}
29392   { (exit 1); exit 1; }; }
29393fi
29394if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
29395  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
29396Usually this means the macro was only invoked conditionally." >&5
29397echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
29398Usually this means the macro was only invoked conditionally." >&2;}
29399   { (exit 1); exit 1; }; }
29400fi
29401if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
29402  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
29403Usually this means the macro was only invoked conditionally." >&5
29404echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
29405Usually this means the macro was only invoked conditionally." >&2;}
29406   { (exit 1); exit 1; }; }
29407fi
29408if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
29409  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
29410Usually this means the macro was only invoked conditionally." >&5
29411echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
29412Usually this means the macro was only invoked conditionally." >&2;}
29413   { (exit 1); exit 1; }; }
29414fi
29415if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then
29416  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined.
29417Usually this means the macro was only invoked conditionally." >&5
29418echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined.
29419Usually this means the macro was only invoked conditionally." >&2;}
29420   { (exit 1); exit 1; }; }
29421fi
29422if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then
29423  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined.
29424Usually this means the macro was only invoked conditionally." >&5
29425echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined.
29426Usually this means the macro was only invoked conditionally." >&2;}
29427   { (exit 1); exit 1; }; }
29428fi
29429if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
29430  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
29431Usually this means the macro was only invoked conditionally." >&5
29432echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
29433Usually this means the macro was only invoked conditionally." >&2;}
29434   { (exit 1); exit 1; }; }
29435fi
29436if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
29437  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
29438Usually this means the macro was only invoked conditionally." >&5
29439echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
29440Usually this means the macro was only invoked conditionally." >&2;}
29441   { (exit 1); exit 1; }; }
29442fi
29443if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
29444  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
29445Usually this means the macro was only invoked conditionally." >&5
29446echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
29447Usually this means the macro was only invoked conditionally." >&2;}
29448   { (exit 1); exit 1; }; }
29449fi
29450if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
29451  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
29452Usually this means the macro was only invoked conditionally." >&5
29453echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
29454Usually this means the macro was only invoked conditionally." >&2;}
29455   { (exit 1); exit 1; }; }
29456fi
29457if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then
29458  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined.
29459Usually this means the macro was only invoked conditionally." >&5
29460echo "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined.
29461Usually this means the macro was only invoked conditionally." >&2;}
29462   { (exit 1); exit 1; }; }
29463fi
29464if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then
29465  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined.
29466Usually this means the macro was only invoked conditionally." >&5
29467echo "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined.
29468Usually this means the macro was only invoked conditionally." >&2;}
29469   { (exit 1); exit 1; }; }
29470fi
29471if test -z "${COIN_HAS_XPR_TRUE}" && test -z "${COIN_HAS_XPR_FALSE}"; then
29472  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined.
29473Usually this means the macro was only invoked conditionally." >&5
29474echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined.
29475Usually this means the macro was only invoked conditionally." >&2;}
29476   { (exit 1); exit 1; }; }
29477fi
29478if test -z "${COIN_HAS_XPR_TRUE}" && test -z "${COIN_HAS_XPR_FALSE}"; then
29479  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined.
29480Usually this means the macro was only invoked conditionally." >&5
29481echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined.
29482Usually this means the macro was only invoked conditionally." >&2;}
29483   { (exit 1); exit 1; }; }
29484fi
29485if test -z "${CLP_LP_SOLVER_TRUE}" && test -z "${CLP_LP_SOLVER_FALSE}"; then
29486  { { echo "$as_me:$LINENO: error: conditional \"CLP_LP_SOLVER\" was never defined.
29487Usually this means the macro was only invoked conditionally." >&5
29488echo "$as_me: error: conditional \"CLP_LP_SOLVER\" was never defined.
29489Usually this means the macro was only invoked conditionally." >&2;}
29490   { (exit 1); exit 1; }; }
29491fi
29492if test -z "${GLPK_LP_SOLVER_TRUE}" && test -z "${GLPK_LP_SOLVER_FALSE}"; then
29493  { { echo "$as_me:$LINENO: error: conditional \"GLPK_LP_SOLVER\" was never defined.
29494Usually this means the macro was only invoked conditionally." >&5
29495echo "$as_me: error: conditional \"GLPK_LP_SOLVER\" was never defined.
29496Usually this means the macro was only invoked conditionally." >&2;}
29497   { (exit 1); exit 1; }; }
29498fi
29499if test -z "${OSL_LP_SOLVER_TRUE}" && test -z "${OSL_LP_SOLVER_FALSE}"; then
29500  { { echo "$as_me:$LINENO: error: conditional \"OSL_LP_SOLVER\" was never defined.
29501Usually this means the macro was only invoked conditionally." >&5
29502echo "$as_me: error: conditional \"OSL_LP_SOLVER\" was never defined.
29503Usually this means the macro was only invoked conditionally." >&2;}
29504   { (exit 1); exit 1; }; }
29505fi
29506if test -z "${CPLEX_LP_SOLVER_TRUE}" && test -z "${CPLEX_LP_SOLVER_FALSE}"; then
29507  { { echo "$as_me:$LINENO: error: conditional \"CPLEX_LP_SOLVER\" was never defined.
29508Usually this means the macro was only invoked conditionally." >&5
29509echo "$as_me: error: conditional \"CPLEX_LP_SOLVER\" was never defined.
29510Usually this means the macro was only invoked conditionally." >&2;}
29511   { (exit 1); exit 1; }; }
29512fi
29513if test -z "${SOPLEX_LP_SOLVER_TRUE}" && test -z "${SOPLEX_LP_SOLVER_FALSE}"; then
29514  { { echo "$as_me:$LINENO: error: conditional \"SOPLEX_LP_SOLVER\" was never defined.
29515Usually this means the macro was only invoked conditionally." >&5
29516echo "$as_me: error: conditional \"SOPLEX_LP_SOLVER\" was never defined.
29517Usually this means the macro was only invoked conditionally." >&2;}
29518   { (exit 1); exit 1; }; }
29519fi
29520if test -z "${XPRESS_LP_SOLVER_TRUE}" && test -z "${XPRESS_LP_SOLVER_FALSE}"; then
29521  { { echo "$as_me:$LINENO: error: conditional \"XPRESS_LP_SOLVER\" was never defined.
29522Usually this means the macro was only invoked conditionally." >&5
29523echo "$as_me: error: conditional \"XPRESS_LP_SOLVER\" was never defined.
29524Usually this means the macro was only invoked conditionally." >&2;}
29525   { (exit 1); exit 1; }; }
29526fi
29527if test -z "${USE_CGL_CUTS_TRUE}" && test -z "${USE_CGL_CUTS_FALSE}"; then
29528  { { echo "$as_me:$LINENO: error: conditional \"USE_CGL_CUTS\" was never defined.
29529Usually this means the macro was only invoked conditionally." >&5
29530echo "$as_me: error: conditional \"USE_CGL_CUTS\" was never defined.
29531Usually this means the macro was only invoked conditionally." >&2;}
29532   { (exit 1); exit 1; }; }
29533fi
29534if test -z "${USE_GMPL_TRUE}" && test -z "${USE_GMPL_FALSE}"; then
29535  { { echo "$as_me:$LINENO: error: conditional \"USE_GMPL\" was never defined.
29536Usually this means the macro was only invoked conditionally." >&5
29537echo "$as_me: error: conditional \"USE_GMPL\" was never defined.
29538Usually this means the macro was only invoked conditionally." >&2;}
29539   { (exit 1); exit 1; }; }
29540fi
29541if test -z "${SENSITIVITY_ANALYSIS_TRUE}" && test -z "${SENSITIVITY_ANALYSIS_FALSE}"; then
29542  { { echo "$as_me:$LINENO: error: conditional \"SENSITIVITY_ANALYSIS\" was never defined.
29543Usually this means the macro was only invoked conditionally." >&5
29544echo "$as_me: error: conditional \"SENSITIVITY_ANALYSIS\" was never defined.
29545Usually this means the macro was only invoked conditionally." >&2;}
29546   { (exit 1); exit 1; }; }
29547fi
29548if test -z "${ROOT_NODE_ONLY_TRUE}" && test -z "${ROOT_NODE_ONLY_FALSE}"; then
29549  { { echo "$as_me:$LINENO: error: conditional \"ROOT_NODE_ONLY\" was never defined.
29550Usually this means the macro was only invoked conditionally." >&5
29551echo "$as_me: error: conditional \"ROOT_NODE_ONLY\" was never defined.
29552Usually this means the macro was only invoked conditionally." >&2;}
29553   { (exit 1); exit 1; }; }
29554fi
29555if test -z "${COMPILE_FRAC_BRANCHING_TRUE}" && test -z "${COMPILE_FRAC_BRANCHING_FALSE}"; then
29556  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_FRAC_BRANCHING\" was never defined.
29557Usually this means the macro was only invoked conditionally." >&5
29558echo "$as_me: error: conditional \"COMPILE_FRAC_BRANCHING\" was never defined.
29559Usually this means the macro was only invoked conditionally." >&2;}
29560   { (exit 1); exit 1; }; }
29561fi
29562if test -z "${DO_TESTS_TRUE}" && test -z "${DO_TESTS_FALSE}"; then
29563  { { echo "$as_me:$LINENO: error: conditional \"DO_TESTS\" was never defined.
29564Usually this means the macro was only invoked conditionally." >&5
29565echo "$as_me: error: conditional \"DO_TESTS\" was never defined.
29566Usually this means the macro was only invoked conditionally." >&2;}
29567   { (exit 1); exit 1; }; }
29568fi
29569if test -z "${TM_BASIS_TESTS_TRUE}" && test -z "${TM_BASIS_TESTS_FALSE}"; then
29570  { { echo "$as_me:$LINENO: error: conditional \"TM_BASIS_TESTS\" was never defined.
29571Usually this means the macro was only invoked conditionally." >&5
29572echo "$as_me: error: conditional \"TM_BASIS_TESTS\" was never defined.
29573Usually this means the macro was only invoked conditionally." >&2;}
29574   { (exit 1); exit 1; }; }
29575fi
29576if test -z "${TRACE_PATH_TRUE}" && test -z "${TRACE_PATH_FALSE}"; then
29577  { { echo "$as_me:$LINENO: error: conditional \"TRACE_PATH\" was never defined.
29578Usually this means the macro was only invoked conditionally." >&5
29579echo "$as_me: error: conditional \"TRACE_PATH\" was never defined.
29580Usually this means the macro was only invoked conditionally." >&2;}
29581   { (exit 1); exit 1; }; }
29582fi
29583if test -z "${CHECK_CUT_VALIDITY_TRUE}" && test -z "${CHECK_CUT_VALIDITY_FALSE}"; then
29584  { { echo "$as_me:$LINENO: error: conditional \"CHECK_CUT_VALIDITY\" was never defined.
29585Usually this means the macro was only invoked conditionally." >&5
29586echo "$as_me: error: conditional \"CHECK_CUT_VALIDITY\" was never defined.
29587Usually this means the macro was only invoked conditionally." >&2;}
29588   { (exit 1); exit 1; }; }
29589fi
29590if test -z "${STATISTICS_TRUE}" && test -z "${STATISTICS_FALSE}"; then
29591  { { echo "$as_me:$LINENO: error: conditional \"STATISTICS\" was never defined.
29592Usually this means the macro was only invoked conditionally." >&5
29593echo "$as_me: error: conditional \"STATISTICS\" was never defined.
29594Usually this means the macro was only invoked conditionally." >&2;}
29595   { (exit 1); exit 1; }; }
29596fi
29597if test -z "${PSEUDO_COSTS_TRUE}" && test -z "${PSEUDO_COSTS_FALSE}"; then
29598  { { echo "$as_me:$LINENO: error: conditional \"PSEUDO_COSTS\" was never defined.
29599Usually this means the macro was only invoked conditionally." >&5
29600echo "$as_me: error: conditional \"PSEUDO_COSTS\" was never defined.
29601Usually this means the macro was only invoked conditionally." >&2;}
29602   { (exit 1); exit 1; }; }
29603fi
29604if test -z "${DRAWGRAPH_TRUE}" && test -z "${DRAWGRAPH_FALSE}"; then
29605  { { echo "$as_me:$LINENO: error: conditional \"DRAWGRAPH\" was never defined.
29606Usually this means the macro was only invoked conditionally." >&5
29607echo "$as_me: error: conditional \"DRAWGRAPH\" was never defined.
29608Usually this means the macro was only invoked conditionally." >&2;}
29609   { (exit 1); exit 1; }; }
29610fi
29611if test -z "${STATICEXE_TRUE}" && test -z "${STATICEXE_FALSE}"; then
29612  { { echo "$as_me:$LINENO: error: conditional \"STATICEXE\" was never defined.
29613Usually this means the macro was only invoked conditionally." >&5
29614echo "$as_me: error: conditional \"STATICEXE\" was never defined.
29615Usually this means the macro was only invoked conditionally." >&2;}
29616   { (exit 1); exit 1; }; }
29617fi
29618if test -z "${SIGHANDLER_TRUE}" && test -z "${SIGHANDLER_FALSE}"; then
29619  { { echo "$as_me:$LINENO: error: conditional \"SIGHANDLER\" was never defined.
29620Usually this means the macro was only invoked conditionally." >&5
29621echo "$as_me: error: conditional \"SIGHANDLER\" was never defined.
29622Usually this means the macro was only invoked conditionally." >&2;}
29623   { (exit 1); exit 1; }; }
29624fi
29625if test -z "${SYM_WITH_APPL_TRUE}" && test -z "${SYM_WITH_APPL_FALSE}"; then
29626  { { echo "$as_me:$LINENO: error: conditional \"SYM_WITH_APPL\" was never defined.
29627Usually this means the macro was only invoked conditionally." >&5
29628echo "$as_me: error: conditional \"SYM_WITH_APPL\" was never defined.
29629Usually this means the macro was only invoked conditionally." >&2;}
29630   { (exit 1); exit 1; }; }
29631fi
29632if test -z "${COIN_HAS_PVM_TRUE}" && test -z "${COIN_HAS_PVM_FALSE}"; then
29633  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PVM\" was never defined.
29634Usually this means the macro was only invoked conditionally." >&5
29635echo "$as_me: error: conditional \"COIN_HAS_PVM\" was never defined.
29636Usually this means the macro was only invoked conditionally." >&2;}
29637   { (exit 1); exit 1; }; }
29638fi
29639if test -z "${SYM_COMPILE_IN_CG_TRUE}" && test -z "${SYM_COMPILE_IN_CG_FALSE}"; then
29640  { { echo "$as_me:$LINENO: error: conditional \"SYM_COMPILE_IN_CG\" was never defined.
29641Usually this means the macro was only invoked conditionally." >&5
29642echo "$as_me: error: conditional \"SYM_COMPILE_IN_CG\" was never defined.
29643Usually this means the macro was only invoked conditionally." >&2;}
29644   { (exit 1); exit 1; }; }
29645fi
29646if test -z "${SYM_COMPILE_IN_CP_TRUE}" && test -z "${SYM_COMPILE_IN_CP_FALSE}"; then
29647  { { echo "$as_me:$LINENO: error: conditional \"SYM_COMPILE_IN_CP\" was never defined.
29648Usually this means the macro was only invoked conditionally." >&5
29649echo "$as_me: error: conditional \"SYM_COMPILE_IN_CP\" was never defined.
29650Usually this means the macro was only invoked conditionally." >&2;}
29651   { (exit 1); exit 1; }; }
29652fi
29653if test -z "${SYM_COMPILE_IN_LP_TRUE}" && test -z "${SYM_COMPILE_IN_LP_FALSE}"; then
29654  { { echo "$as_me:$LINENO: error: conditional \"SYM_COMPILE_IN_LP\" was never defined.
29655Usually this means the macro was only invoked conditionally." >&5
29656echo "$as_me: error: conditional \"SYM_COMPILE_IN_LP\" was never defined.
29657Usually this means the macro was only invoked conditionally." >&2;}
29658   { (exit 1); exit 1; }; }
29659fi
29660if test -z "${SYM_COMPILE_IN_TM_TRUE}" && test -z "${SYM_COMPILE_IN_TM_FALSE}"; then
29661  { { echo "$as_me:$LINENO: error: conditional \"SYM_COMPILE_IN_TM\" was never defined.
29662Usually this means the macro was only invoked conditionally." >&5
29663echo "$as_me: error: conditional \"SYM_COMPILE_IN_TM\" was never defined.
29664Usually this means the macro was only invoked conditionally." >&2;}
29665   { (exit 1); exit 1; }; }
29666fi
29667if test -z "${SYM_COMPILE_IN_LP_TRUE}" && test -z "${SYM_COMPILE_IN_LP_FALSE}"; then
29668  { { echo "$as_me:$LINENO: error: conditional \"SYM_COMPILE_IN_LP\" was never defined.
29669Usually this means the macro was only invoked conditionally." >&5
29670echo "$as_me: error: conditional \"SYM_COMPILE_IN_LP\" was never defined.
29671Usually this means the macro was only invoked conditionally." >&2;}
29672   { (exit 1); exit 1; }; }
29673fi
29674if test -z "${SYM_PARALLEL_TRUE}" && test -z "${SYM_PARALLEL_FALSE}"; then
29675  { { echo "$as_me:$LINENO: error: conditional \"SYM_PARALLEL\" was never defined.
29676Usually this means the macro was only invoked conditionally." >&5
29677echo "$as_me: error: conditional \"SYM_PARALLEL\" was never defined.
29678Usually this means the macro was only invoked conditionally." >&2;}
29679   { (exit 1); exit 1; }; }
29680fi
29681if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
29682  { { echo "$as_me:$LINENO: error: conditional \"OPENMP\" was never defined.
29683Usually this means the macro was only invoked conditionally." >&5
29684echo "$as_me: error: conditional \"OPENMP\" was never defined.
29685Usually this means the macro was only invoked conditionally." >&2;}
29686   { (exit 1); exit 1; }; }
29687fi
29688
29689: ${CONFIG_STATUS=./config.status}
29690ac_clean_files_save=$ac_clean_files
29691ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29692{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29693echo "$as_me: creating $CONFIG_STATUS" >&6;}
29694cat >$CONFIG_STATUS <<_ACEOF
29695#! $SHELL
29696# Generated by $as_me.
29697# Run this file to recreate the current configuration.
29698# Compiler output produced by configure, useful for debugging
29699# configure, is in config.log if it exists.
29700
29701debug=false
29702ac_cs_recheck=false
29703ac_cs_silent=false
29704SHELL=\${CONFIG_SHELL-$SHELL}
29705_ACEOF
29706
29707cat >>$CONFIG_STATUS <<\_ACEOF
29708## --------------------- ##
29709## M4sh Initialization.  ##
29710## --------------------- ##
29711
29712# Be Bourne compatible
29713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29714  emulate sh
29715  NULLCMD=:
29716  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29717  # is contrary to our usage.  Disable this feature.
29718  alias -g '${1+"$@"}'='"$@"'
29719elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29720  set -o posix
29721fi
29722DUALCASE=1; export DUALCASE # for MKS sh
29723
29724# Support unset when possible.
29725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29726  as_unset=unset
29727else
29728  as_unset=false
29729fi
29730
29731
29732# Work around bugs in pre-3.0 UWIN ksh.
29733$as_unset ENV MAIL MAILPATH
29734PS1='$ '
29735PS2='> '
29736PS4='+ '
29737
29738# NLS nuisances.
29739for as_var in \
29740  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29741  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29742  LC_TELEPHONE LC_TIME
29743do
29744  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29745    eval $as_var=C; export $as_var
29746  else
29747    $as_unset $as_var
29748  fi
29749done
29750
29751# Required to use basename.
29752if expr a : '\(a\)' >/dev/null 2>&1; then
29753  as_expr=expr
29754else
29755  as_expr=false
29756fi
29757
29758if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29759  as_basename=basename
29760else
29761  as_basename=false
29762fi
29763
29764
29765# Name of the executable.
29766as_me=`$as_basename "$0" ||
29767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29768	 X"$0" : 'X\(//\)$' \| \
29769	 X"$0" : 'X\(/\)$' \| \
29770	 .     : '\(.\)' 2>/dev/null ||
29771echo X/"$0" |
29772    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29773  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
29774  	  /^X\/\(\/\).*/{ s//\1/; q; }
29775  	  s/.*/./; q'`
29776
29777
29778# PATH needs CR, and LINENO needs CR and PATH.
29779# Avoid depending upon Character Ranges.
29780as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29781as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29782as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29783as_cr_digits='0123456789'
29784as_cr_alnum=$as_cr_Letters$as_cr_digits
29785
29786# The user is always right.
29787if test "${PATH_SEPARATOR+set}" != set; then
29788  echo "#! /bin/sh" >conf$$.sh
29789  echo  "exit 0"   >>conf$$.sh
29790  chmod +x conf$$.sh
29791  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29792    PATH_SEPARATOR=';'
29793  else
29794    PATH_SEPARATOR=:
29795  fi
29796  rm -f conf$$.sh
29797fi
29798
29799
29800  as_lineno_1=$LINENO
29801  as_lineno_2=$LINENO
29802  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29803  test "x$as_lineno_1" != "x$as_lineno_2" &&
29804  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29805  # Find who we are.  Look in the path if we contain no path at all
29806  # relative or not.
29807  case $0 in
29808    *[\\/]* ) as_myself=$0 ;;
29809    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29810for as_dir in $PATH
29811do
29812  IFS=$as_save_IFS
29813  test -z "$as_dir" && as_dir=.
29814  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29815done
29816
29817       ;;
29818  esac
29819  # We did not find ourselves, most probably we were run as `sh COMMAND'
29820  # in which case we are not to be found in the path.
29821  if test "x$as_myself" = x; then
29822    as_myself=$0
29823  fi
29824  if test ! -f "$as_myself"; then
29825    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29826echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29827   { (exit 1); exit 1; }; }
29828  fi
29829  case $CONFIG_SHELL in
29830  '')
29831    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29832for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29833do
29834  IFS=$as_save_IFS
29835  test -z "$as_dir" && as_dir=.
29836  for as_base in sh bash ksh sh5; do
29837	 case $as_dir in
29838	 /*)
29839	   if ("$as_dir/$as_base" -c '
29840  as_lineno_1=$LINENO
29841  as_lineno_2=$LINENO
29842  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29843  test "x$as_lineno_1" != "x$as_lineno_2" &&
29844  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29845	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29846	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29847	     CONFIG_SHELL=$as_dir/$as_base
29848	     export CONFIG_SHELL
29849	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29850	   fi;;
29851	 esac
29852       done
29853done
29854;;
29855  esac
29856
29857  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29858  # uniformly replaced by the line number.  The first 'sed' inserts a
29859  # line-number line before each line; the second 'sed' does the real
29860  # work.  The second script uses 'N' to pair each line-number line
29861  # with the numbered line, and appends trailing '-' during
29862  # substitution so that $LINENO is not a special case at line end.
29863  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29864  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29865  sed '=' <$as_myself |
29866    sed '
29867      N
29868      s,$,-,
29869      : loop
29870      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29871      t loop
29872      s,-$,,
29873      s,^['$as_cr_digits']*\n,,
29874    ' >$as_me.lineno &&
29875  chmod +x $as_me.lineno ||
29876    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29877echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29878   { (exit 1); exit 1; }; }
29879
29880  # Don't try to exec as it changes $[0], causing all sort of problems
29881  # (the dirname of $[0] is not the place where we might find the
29882  # original and so on.  Autoconf is especially sensible to this).
29883  . ./$as_me.lineno
29884  # Exit status is that of the last command.
29885  exit
29886}
29887
29888
29889case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29890  *c*,-n*) ECHO_N= ECHO_C='
29891' ECHO_T='	' ;;
29892  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29893  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29894esac
29895
29896if expr a : '\(a\)' >/dev/null 2>&1; then
29897  as_expr=expr
29898else
29899  as_expr=false
29900fi
29901
29902rm -f conf$$ conf$$.exe conf$$.file
29903echo >conf$$.file
29904if ln -s conf$$.file conf$$ 2>/dev/null; then
29905  # We could just check for DJGPP; but this test a) works b) is more generic
29906  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29907  if test -f conf$$.exe; then
29908    # Don't use ln at all; we don't have any links
29909    as_ln_s='cp -p'
29910  else
29911    as_ln_s='ln -s'
29912  fi
29913elif ln conf$$.file conf$$ 2>/dev/null; then
29914  as_ln_s=ln
29915else
29916  as_ln_s='cp -p'
29917fi
29918rm -f conf$$ conf$$.exe conf$$.file
29919
29920if mkdir -p . 2>/dev/null; then
29921  as_mkdir_p=:
29922else
29923  test -d ./-p && rmdir ./-p
29924  as_mkdir_p=false
29925fi
29926
29927as_executable_p="test -f"
29928
29929# Sed expression to map a string onto a valid CPP name.
29930as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29931
29932# Sed expression to map a string onto a valid variable name.
29933as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29934
29935
29936# IFS
29937# We need space, tab and new line, in precisely that order.
29938as_nl='
29939'
29940IFS=" 	$as_nl"
29941
29942# CDPATH.
29943$as_unset CDPATH
29944
29945exec 6>&1
29946
29947# Open the log real soon, to keep \$[0] and so on meaningful, and to
29948# report actual input values of CONFIG_FILES etc. instead of their
29949# values after options handling.  Logging --version etc. is OK.
29950exec 5>>config.log
29951{
29952  echo
29953  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29954## Running $as_me. ##
29955_ASBOX
29956} >&5
29957cat >&5 <<_CSEOF
29958
29959This file was extended by SYMPHONY $as_me 5.6.17, which was
29960generated by GNU Autoconf 2.59.  Invocation command line was
29961
29962  CONFIG_FILES    = $CONFIG_FILES
29963  CONFIG_HEADERS  = $CONFIG_HEADERS
29964  CONFIG_LINKS    = $CONFIG_LINKS
29965  CONFIG_COMMANDS = $CONFIG_COMMANDS
29966  $ $0 $@
29967
29968_CSEOF
29969echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29970echo >&5
29971_ACEOF
29972
29973# Files that config.status was made for.
29974if test -n "$ac_config_files"; then
29975  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29976fi
29977
29978if test -n "$ac_config_headers"; then
29979  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29980fi
29981
29982if test -n "$ac_config_links"; then
29983  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29984fi
29985
29986if test -n "$ac_config_commands"; then
29987  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29988fi
29989
29990cat >>$CONFIG_STATUS <<\_ACEOF
29991
29992ac_cs_usage="\
29993\`$as_me' instantiates files from templates according to the
29994current configuration.
29995
29996Usage: $0 [OPTIONS] [FILE]...
29997
29998  -h, --help       print this help, then exit
29999  -V, --version    print version number, then exit
30000  -q, --quiet      do not print progress messages
30001  -d, --debug      don't remove temporary files
30002      --recheck    update $as_me by reconfiguring in the same conditions
30003  --file=FILE[:TEMPLATE]
30004		   instantiate the configuration file FILE
30005  --header=FILE[:TEMPLATE]
30006		   instantiate the configuration header FILE
30007
30008Configuration files:
30009$config_files
30010
30011Configuration headers:
30012$config_headers
30013
30014Configuration commands:
30015$config_commands
30016
30017Report bugs to <bug-autoconf@gnu.org>."
30018_ACEOF
30019
30020cat >>$CONFIG_STATUS <<_ACEOF
30021ac_cs_version="\\
30022SYMPHONY config.status 5.6.17
30023configured by $0, generated by GNU Autoconf 2.59,
30024  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30025
30026Copyright (C) 2003 Free Software Foundation, Inc.
30027This config.status script is free software; the Free Software Foundation
30028gives unlimited permission to copy, distribute and modify it."
30029srcdir=$srcdir
30030INSTALL="$INSTALL"
30031_ACEOF
30032
30033cat >>$CONFIG_STATUS <<\_ACEOF
30034# If no file are specified by the user, then we need to provide default
30035# value.  By we need to know if files were specified by the user.
30036ac_need_defaults=:
30037while test $# != 0
30038do
30039  case $1 in
30040  --*=*)
30041    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30042    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30043    ac_shift=:
30044    ;;
30045  -*)
30046    ac_option=$1
30047    ac_optarg=$2
30048    ac_shift=shift
30049    ;;
30050  *) # This is not an option, so the user has probably given explicit
30051     # arguments.
30052     ac_option=$1
30053     ac_need_defaults=false;;
30054  esac
30055
30056  case $ac_option in
30057  # Handling of the options.
30058_ACEOF
30059cat >>$CONFIG_STATUS <<\_ACEOF
30060  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30061    ac_cs_recheck=: ;;
30062  --version | --vers* | -V )
30063    echo "$ac_cs_version"; exit 0 ;;
30064  --he | --h)
30065    # Conflict between --help and --header
30066    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30067Try \`$0 --help' for more information." >&5
30068echo "$as_me: error: ambiguous option: $1
30069Try \`$0 --help' for more information." >&2;}
30070   { (exit 1); exit 1; }; };;
30071  --help | --hel | -h )
30072    echo "$ac_cs_usage"; exit 0 ;;
30073  --debug | --d* | -d )
30074    debug=: ;;
30075  --file | --fil | --fi | --f )
30076    $ac_shift
30077    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30078    ac_need_defaults=false;;
30079  --header | --heade | --head | --hea )
30080    $ac_shift
30081    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30082    ac_need_defaults=false;;
30083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30084  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30085    ac_cs_silent=: ;;
30086
30087  # This is an error.
30088  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30089Try \`$0 --help' for more information." >&5
30090echo "$as_me: error: unrecognized option: $1
30091Try \`$0 --help' for more information." >&2;}
30092   { (exit 1); exit 1; }; } ;;
30093
30094  *) ac_config_targets="$ac_config_targets $1" ;;
30095
30096  esac
30097  shift
30098done
30099
30100ac_configure_extra_args=
30101
30102if $ac_cs_silent; then
30103  exec 6>/dev/null
30104  ac_configure_extra_args="$ac_configure_extra_args --silent"
30105fi
30106
30107_ACEOF
30108cat >>$CONFIG_STATUS <<_ACEOF
30109if \$ac_cs_recheck; then
30110  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30111  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30112fi
30113
30114_ACEOF
30115
30116cat >>$CONFIG_STATUS <<_ACEOF
30117#
30118# INIT-COMMANDS section.
30119#
30120
30121AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30122
30123_ACEOF
30124
30125
30126
30127cat >>$CONFIG_STATUS <<\_ACEOF
30128for ac_config_target in $ac_config_targets
30129do
30130  case "$ac_config_target" in
30131  # Handling of arguments.
30132  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30133  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30134  "src/OsiSym/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiSym/Makefile" ;;
30135  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
30136  "Examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
30137  "Applications/Makefile.Applications" ) CONFIG_FILES="$CONFIG_FILES Applications/Makefile.Applications" ;;
30138  "Applications/CNRP/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/CNRP/Makefile" ;;
30139  "Applications/MATCH/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/MATCH/Makefile" ;;
30140  "Applications/MCKP/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/MCKP/Makefile" ;;
30141  "Applications/MPP/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/MPP/Makefile" ;;
30142  "Applications/SPP/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/SPP/Makefile" ;;
30143  "Applications/SPP+CUTS/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/SPP+CUTS/Makefile" ;;
30144  "Applications/USER/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/USER/Makefile" ;;
30145  "Applications/VRP/Makefile" ) CONFIG_FILES="$CONFIG_FILES Applications/VRP/Makefile" ;;
30146  "symphony.pc" ) CONFIG_FILES="$CONFIG_FILES symphony.pc" ;;
30147  "symphony-app.pc" ) CONFIG_FILES="$CONFIG_FILES symphony-app.pc" ;;
30148  "symphony-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES symphony-uninstalled.pc" ;;
30149  "osi-sym.pc" ) CONFIG_FILES="$CONFIG_FILES osi-sym.pc:src/OsiSym/osi-sym.pc.in" ;;
30150  "osi-sym-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-sym-uninstalled.pc:src/OsiSym/osi-sym-uninstalled.pc.in" ;;
30151  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30152  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
30153  "include/config_sym.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config_sym.h" ;;
30154  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30155echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30156   { (exit 1); exit 1; }; };;
30157  esac
30158done
30159
30160# If the user did not use the arguments to specify the items to instantiate,
30161# then the envvar interface is used.  Set only those that are not.
30162# We use the long form for the default assignment because of an extremely
30163# bizarre bug on SunOS 4.1.3.
30164if $ac_need_defaults; then
30165  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30166  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30167  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30168fi
30169
30170# Have a temporary directory for convenience.  Make it in the build tree
30171# simply because there is no reason to put it here, and in addition,
30172# creating and moving files from /tmp can sometimes cause problems.
30173# Create a temporary directory, and hook for its removal unless debugging.
30174$debug ||
30175{
30176  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30177  trap '{ (exit 1); exit 1; }' 1 2 13 15
30178}
30179
30180# Create a (secure) tmp directory for tmp files.
30181
30182{
30183  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30184  test -n "$tmp" && test -d "$tmp"
30185}  ||
30186{
30187  tmp=./confstat$$-$RANDOM
30188  (umask 077 && mkdir $tmp)
30189} ||
30190{
30191   echo "$me: cannot create a temporary directory in ." >&2
30192   { (exit 1); exit 1; }
30193}
30194
30195_ACEOF
30196
30197cat >>$CONFIG_STATUS <<_ACEOF
30198
30199#
30200# CONFIG_FILES section.
30201#
30202
30203# No need to generate the scripts if there are no CONFIG_FILES.
30204# This happens for instance when ./config.status config.h
30205if test -n "\$CONFIG_FILES"; then
30206  # Protect against being on the right side of a sed subst in config.status.
30207  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30208   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30209s,@SHELL@,$SHELL,;t t
30210s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30211s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30212s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30213s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30214s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30215s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30216s,@exec_prefix@,$exec_prefix,;t t
30217s,@prefix@,$prefix,;t t
30218s,@program_transform_name@,$program_transform_name,;t t
30219s,@bindir@,$bindir,;t t
30220s,@sbindir@,$sbindir,;t t
30221s,@libexecdir@,$libexecdir,;t t
30222s,@datadir@,$datadir,;t t
30223s,@sysconfdir@,$sysconfdir,;t t
30224s,@sharedstatedir@,$sharedstatedir,;t t
30225s,@localstatedir@,$localstatedir,;t t
30226s,@libdir@,$libdir,;t t
30227s,@includedir@,$includedir,;t t
30228s,@oldincludedir@,$oldincludedir,;t t
30229s,@infodir@,$infodir,;t t
30230s,@mandir@,$mandir,;t t
30231s,@build_alias@,$build_alias,;t t
30232s,@host_alias@,$host_alias,;t t
30233s,@target_alias@,$target_alias,;t t
30234s,@DEFS@,$DEFS,;t t
30235s,@ECHO_C@,$ECHO_C,;t t
30236s,@ECHO_N@,$ECHO_N,;t t
30237s,@ECHO_T@,$ECHO_T,;t t
30238s,@LIBS@,$LIBS,;t t
30239s,@build@,$build,;t t
30240s,@build_cpu@,$build_cpu,;t t
30241s,@build_vendor@,$build_vendor,;t t
30242s,@build_os@,$build_os,;t t
30243s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
30244s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
30245s,@have_svnversion@,$have_svnversion,;t t
30246s,@SYMPHONY_SVN_REV@,$SYMPHONY_SVN_REV,;t t
30247s,@CDEFS@,$CDEFS,;t t
30248s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
30249s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
30250s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
30251s,@sol_cc_compiler@,$sol_cc_compiler,;t t
30252s,@CC@,$CC,;t t
30253s,@CFLAGS@,$CFLAGS,;t t
30254s,@LDFLAGS@,$LDFLAGS,;t t
30255s,@CPPFLAGS@,$CPPFLAGS,;t t
30256s,@ac_ct_CC@,$ac_ct_CC,;t t
30257s,@EXEEXT@,$EXEEXT,;t t
30258s,@OBJEXT@,$OBJEXT,;t t
30259s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
30260s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
30261s,@MPICC@,$MPICC,;t t
30262s,@CXXDEFS@,$CXXDEFS,;t t
30263s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
30264s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
30265s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
30266s,@CXX@,$CXX,;t t
30267s,@CXXFLAGS@,$CXXFLAGS,;t t
30268s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30269s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
30270s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
30271s,@MPICXX@,$MPICXX,;t t
30272s,@EGREP@,$EGREP,;t t
30273s,@LN_S@,$LN_S,;t t
30274s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30275s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30276s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30277s,@CYGPATH_W@,$CYGPATH_W,;t t
30278s,@PACKAGE@,$PACKAGE,;t t
30279s,@VERSION@,$VERSION,;t t
30280s,@ACLOCAL@,$ACLOCAL,;t t
30281s,@AUTOCONF@,$AUTOCONF,;t t
30282s,@AUTOMAKE@,$AUTOMAKE,;t t
30283s,@AUTOHEADER@,$AUTOHEADER,;t t
30284s,@MAKEINFO@,$MAKEINFO,;t t
30285s,@install_sh@,$install_sh,;t t
30286s,@STRIP@,$STRIP,;t t
30287s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30288s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30289s,@mkdir_p@,$mkdir_p,;t t
30290s,@AWK@,$AWK,;t t
30291s,@SET_MAKE@,$SET_MAKE,;t t
30292s,@am__leading_dot@,$am__leading_dot,;t t
30293s,@AMTAR@,$AMTAR,;t t
30294s,@am__tar@,$am__tar,;t t
30295s,@am__untar@,$am__untar,;t t
30296s,@DEPDIR@,$DEPDIR,;t t
30297s,@am__include@,$am__include,;t t
30298s,@am__quote@,$am__quote,;t t
30299s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30300s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30301s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30302s,@CCDEPMODE@,$CCDEPMODE,;t t
30303s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30304s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30305s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30306s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30307s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30308s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30309s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30310s,@MAINT@,$MAINT,;t t
30311s,@LIBTOOLM4@,$LIBTOOLM4,;t t
30312s,@have_autoconf@,$have_autoconf,;t t
30313s,@have_automake@,$have_automake,;t t
30314s,@have_svn@,$have_svn,;t t
30315s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
30316s,@AUX_DIR@,$AUX_DIR,;t t
30317s,@abs_source_dir@,$abs_source_dir,;t t
30318s,@abs_lib_dir@,$abs_lib_dir,;t t
30319s,@abs_include_dir@,$abs_include_dir,;t t
30320s,@abs_bin_dir@,$abs_bin_dir,;t t
30321s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
30322s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
30323s,@host@,$host,;t t
30324s,@host_cpu@,$host_cpu,;t t
30325s,@host_vendor@,$host_vendor,;t t
30326s,@host_os@,$host_os,;t t
30327s,@ECHO@,$ECHO,;t t
30328s,@AR@,$AR,;t t
30329s,@ac_ct_AR@,$ac_ct_AR,;t t
30330s,@RANLIB@,$RANLIB,;t t
30331s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30332s,@CPP@,$CPP,;t t
30333s,@CXXCPP@,$CXXCPP,;t t
30334s,@F77@,$F77,;t t
30335s,@FFLAGS@,$FFLAGS,;t t
30336s,@ac_ct_F77@,$ac_ct_F77,;t t
30337s,@LIBTOOL@,$LIBTOOL,;t t
30338s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
30339s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
30340s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
30341s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
30342s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
30343s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
30344s,@COIN_HAS_READLINE_TRUE@,$COIN_HAS_READLINE_TRUE,;t t
30345s,@COIN_HAS_READLINE_FALSE@,$COIN_HAS_READLINE_FALSE,;t t
30346s,@PKG_CONFIG@,$PKG_CONFIG,;t t
30347s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
30348s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
30349s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
30350s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
30351s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
30352s,@COINDEPEND_LIBS@,$COINDEPEND_LIBS,;t t
30353s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t
30354s,@COINDEPEND_DATA@,$COINDEPEND_DATA,;t t
30355s,@COINDEPEND_DEPENDENCIES@,$COINDEPEND_DEPENDENCIES,;t t
30356s,@COINDEPEND_LIBS_INSTALLED@,$COINDEPEND_LIBS_INSTALLED,;t t
30357s,@COINDEPEND_CFLAGS_INSTALLED@,$COINDEPEND_CFLAGS_INSTALLED,;t t
30358s,@COINDEPEND_DATA_INSTALLED@,$COINDEPEND_DATA_INSTALLED,;t t
30359s,@SYMPHONYLIB_CFLAGS@,$SYMPHONYLIB_CFLAGS,;t t
30360s,@SYMPHONYLIB_LIBS@,$SYMPHONYLIB_LIBS,;t t
30361s,@SYMPHONYLIB_PCLIBS@,$SYMPHONYLIB_PCLIBS,;t t
30362s,@SYMPHONYLIB_PCREQUIRES@,$SYMPHONYLIB_PCREQUIRES,;t t
30363s,@SYMPHONYLIB_DEPENDENCIES@,$SYMPHONYLIB_DEPENDENCIES,;t t
30364s,@SYMPHONYLIB_CFLAGS_INSTALLED@,$SYMPHONYLIB_CFLAGS_INSTALLED,;t t
30365s,@SYMPHONYLIB_LIBS_INSTALLED@,$SYMPHONYLIB_LIBS_INSTALLED,;t t
30366s,@COIN_HAS_COINDEPEND_TRUE@,$COIN_HAS_COINDEPEND_TRUE,;t t
30367s,@COIN_HAS_COINDEPEND_FALSE@,$COIN_HAS_COINDEPEND_FALSE,;t t
30368s,@CLP_LIBS@,$CLP_LIBS,;t t
30369s,@CLP_CFLAGS@,$CLP_CFLAGS,;t t
30370s,@CLP_DATA@,$CLP_DATA,;t t
30371s,@CLP_DEPENDENCIES@,$CLP_DEPENDENCIES,;t t
30372s,@CLP_LIBS_INSTALLED@,$CLP_LIBS_INSTALLED,;t t
30373s,@CLP_CFLAGS_INSTALLED@,$CLP_CFLAGS_INSTALLED,;t t
30374s,@CLP_DATA_INSTALLED@,$CLP_DATA_INSTALLED,;t t
30375s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t
30376s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t
30377s,@DYLP_LIBS@,$DYLP_LIBS,;t t
30378s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t
30379s,@DYLP_DATA@,$DYLP_DATA,;t t
30380s,@DYLP_DEPENDENCIES@,$DYLP_DEPENDENCIES,;t t
30381s,@DYLP_LIBS_INSTALLED@,$DYLP_LIBS_INSTALLED,;t t
30382s,@DYLP_CFLAGS_INSTALLED@,$DYLP_CFLAGS_INSTALLED,;t t
30383s,@DYLP_DATA_INSTALLED@,$DYLP_DATA_INSTALLED,;t t
30384s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t
30385s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t
30386s,@VOL_LIBS@,$VOL_LIBS,;t t
30387s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t
30388s,@VOL_DATA@,$VOL_DATA,;t t
30389s,@VOL_DEPENDENCIES@,$VOL_DEPENDENCIES,;t t
30390s,@VOL_LIBS_INSTALLED@,$VOL_LIBS_INSTALLED,;t t
30391s,@VOL_CFLAGS_INSTALLED@,$VOL_CFLAGS_INSTALLED,;t t
30392s,@VOL_DATA_INSTALLED@,$VOL_DATA_INSTALLED,;t t
30393s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t
30394s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t
30395s,@CGL_LIBS@,$CGL_LIBS,;t t
30396s,@CGL_CFLAGS@,$CGL_CFLAGS,;t t
30397s,@CGL_DATA@,$CGL_DATA,;t t
30398s,@CGL_DEPENDENCIES@,$CGL_DEPENDENCIES,;t t
30399s,@CGL_LIBS_INSTALLED@,$CGL_LIBS_INSTALLED,;t t
30400s,@CGL_CFLAGS_INSTALLED@,$CGL_CFLAGS_INSTALLED,;t t
30401s,@CGL_DATA_INSTALLED@,$CGL_DATA_INSTALLED,;t t
30402s,@COIN_HAS_CGL_TRUE@,$COIN_HAS_CGL_TRUE,;t t
30403s,@COIN_HAS_CGL_FALSE@,$COIN_HAS_CGL_FALSE,;t t
30404s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t
30405s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
30406s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t
30407s,@OSITESTS_DEPENDENCIES@,$OSITESTS_DEPENDENCIES,;t t
30408s,@OSITESTS_LIBS_INSTALLED@,$OSITESTS_LIBS_INSTALLED,;t t
30409s,@OSITESTS_CFLAGS_INSTALLED@,$OSITESTS_CFLAGS_INSTALLED,;t t
30410s,@OSITESTS_DATA_INSTALLED@,$OSITESTS_DATA_INSTALLED,;t t
30411s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t
30412s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t
30413s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
30414s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
30415s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
30416s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
30417s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
30418s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
30419s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
30420s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
30421s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
30422s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
30423s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
30424s,@NETLIB_DATA@,$NETLIB_DATA,;t t
30425s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
30426s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
30427s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
30428s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
30429s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
30430s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
30431s,@MIPLIB3_LIBS@,$MIPLIB3_LIBS,;t t
30432s,@MIPLIB3_CFLAGS@,$MIPLIB3_CFLAGS,;t t
30433s,@MIPLIB3_DATA@,$MIPLIB3_DATA,;t t
30434s,@MIPLIB3_DEPENDENCIES@,$MIPLIB3_DEPENDENCIES,;t t
30435s,@MIPLIB3_LIBS_INSTALLED@,$MIPLIB3_LIBS_INSTALLED,;t t
30436s,@MIPLIB3_CFLAGS_INSTALLED@,$MIPLIB3_CFLAGS_INSTALLED,;t t
30437s,@MIPLIB3_DATA_INSTALLED@,$MIPLIB3_DATA_INSTALLED,;t t
30438s,@COIN_HAS_MIPLIB3_TRUE@,$COIN_HAS_MIPLIB3_TRUE,;t t
30439s,@COIN_HAS_MIPLIB3_FALSE@,$COIN_HAS_MIPLIB3_FALSE,;t t
30440s,@CPX_LIBS@,$CPX_LIBS,;t t
30441s,@CPX_CFLAGS@,$CPX_CFLAGS,;t t
30442s,@CPX_DATA@,$CPX_DATA,;t t
30443s,@CPX_DEPENDENCIES@,$CPX_DEPENDENCIES,;t t
30444s,@CPX_LIBS_INSTALLED@,$CPX_LIBS_INSTALLED,;t t
30445s,@CPX_CFLAGS_INSTALLED@,$CPX_CFLAGS_INSTALLED,;t t
30446s,@CPX_DATA_INSTALLED@,$CPX_DATA_INSTALLED,;t t
30447s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t
30448s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t
30449s,@GLPK_LIBS@,$GLPK_LIBS,;t t
30450s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
30451s,@GLPK_DATA@,$GLPK_DATA,;t t
30452s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
30453s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
30454s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
30455s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
30456s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
30457s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
30458s,@MSK_LIBS@,$MSK_LIBS,;t t
30459s,@MSK_CFLAGS@,$MSK_CFLAGS,;t t
30460s,@MSK_DATA@,$MSK_DATA,;t t
30461s,@MSK_DEPENDENCIES@,$MSK_DEPENDENCIES,;t t
30462s,@MSK_LIBS_INSTALLED@,$MSK_LIBS_INSTALLED,;t t
30463s,@MSK_CFLAGS_INSTALLED@,$MSK_CFLAGS_INSTALLED,;t t
30464s,@MSK_DATA_INSTALLED@,$MSK_DATA_INSTALLED,;t t
30465s,@COIN_HAS_MSK_TRUE@,$COIN_HAS_MSK_TRUE,;t t
30466s,@COIN_HAS_MSK_FALSE@,$COIN_HAS_MSK_FALSE,;t t
30467s,@XPR_LIBS@,$XPR_LIBS,;t t
30468s,@XPR_CFLAGS@,$XPR_CFLAGS,;t t
30469s,@XPR_DATA@,$XPR_DATA,;t t
30470s,@XPR_DEPENDENCIES@,$XPR_DEPENDENCIES,;t t
30471s,@XPR_LIBS_INSTALLED@,$XPR_LIBS_INSTALLED,;t t
30472s,@XPR_CFLAGS_INSTALLED@,$XPR_CFLAGS_INSTALLED,;t t
30473s,@XPR_DATA_INSTALLED@,$XPR_DATA_INSTALLED,;t t
30474s,@COIN_HAS_XPR_TRUE@,$COIN_HAS_XPR_TRUE,;t t
30475s,@COIN_HAS_XPR_FALSE@,$COIN_HAS_XPR_FALSE,;t t
30476s,@CLP_LP_SOLVER_TRUE@,$CLP_LP_SOLVER_TRUE,;t t
30477s,@CLP_LP_SOLVER_FALSE@,$CLP_LP_SOLVER_FALSE,;t t
30478s,@GLPK_LP_SOLVER_TRUE@,$GLPK_LP_SOLVER_TRUE,;t t
30479s,@GLPK_LP_SOLVER_FALSE@,$GLPK_LP_SOLVER_FALSE,;t t
30480s,@OSL_LP_SOLVER_TRUE@,$OSL_LP_SOLVER_TRUE,;t t
30481s,@OSL_LP_SOLVER_FALSE@,$OSL_LP_SOLVER_FALSE,;t t
30482s,@CPLEX_LP_SOLVER_TRUE@,$CPLEX_LP_SOLVER_TRUE,;t t
30483s,@CPLEX_LP_SOLVER_FALSE@,$CPLEX_LP_SOLVER_FALSE,;t t
30484s,@SOPLEX_LP_SOLVER_TRUE@,$SOPLEX_LP_SOLVER_TRUE,;t t
30485s,@SOPLEX_LP_SOLVER_FALSE@,$SOPLEX_LP_SOLVER_FALSE,;t t
30486s,@XPRESS_LP_SOLVER_TRUE@,$XPRESS_LP_SOLVER_TRUE,;t t
30487s,@XPRESS_LP_SOLVER_FALSE@,$XPRESS_LP_SOLVER_FALSE,;t t
30488s,@USE_CGL_CUTS_TRUE@,$USE_CGL_CUTS_TRUE,;t t
30489s,@USE_CGL_CUTS_FALSE@,$USE_CGL_CUTS_FALSE,;t t
30490s,@USE_GMPL_TRUE@,$USE_GMPL_TRUE,;t t
30491s,@USE_GMPL_FALSE@,$USE_GMPL_FALSE,;t t
30492s,@SENSITIVITY_ANALYSIS_TRUE@,$SENSITIVITY_ANALYSIS_TRUE,;t t
30493s,@SENSITIVITY_ANALYSIS_FALSE@,$SENSITIVITY_ANALYSIS_FALSE,;t t
30494s,@ROOT_NODE_ONLY_TRUE@,$ROOT_NODE_ONLY_TRUE,;t t
30495s,@ROOT_NODE_ONLY_FALSE@,$ROOT_NODE_ONLY_FALSE,;t t
30496s,@COMPILE_FRAC_BRANCHING_TRUE@,$COMPILE_FRAC_BRANCHING_TRUE,;t t
30497s,@COMPILE_FRAC_BRANCHING_FALSE@,$COMPILE_FRAC_BRANCHING_FALSE,;t t
30498s,@DO_TESTS_TRUE@,$DO_TESTS_TRUE,;t t
30499s,@DO_TESTS_FALSE@,$DO_TESTS_FALSE,;t t
30500s,@TM_BASIS_TESTS_TRUE@,$TM_BASIS_TESTS_TRUE,;t t
30501s,@TM_BASIS_TESTS_FALSE@,$TM_BASIS_TESTS_FALSE,;t t
30502s,@TRACE_PATH_TRUE@,$TRACE_PATH_TRUE,;t t
30503s,@TRACE_PATH_FALSE@,$TRACE_PATH_FALSE,;t t
30504s,@CHECK_CUT_VALIDITY_TRUE@,$CHECK_CUT_VALIDITY_TRUE,;t t
30505s,@CHECK_CUT_VALIDITY_FALSE@,$CHECK_CUT_VALIDITY_FALSE,;t t
30506s,@STATISTICS_TRUE@,$STATISTICS_TRUE,;t t
30507s,@STATISTICS_FALSE@,$STATISTICS_FALSE,;t t
30508s,@PSEUDO_COSTS_TRUE@,$PSEUDO_COSTS_TRUE,;t t
30509s,@PSEUDO_COSTS_FALSE@,$PSEUDO_COSTS_FALSE,;t t
30510s,@DRAWGRAPH_TRUE@,$DRAWGRAPH_TRUE,;t t
30511s,@DRAWGRAPH_FALSE@,$DRAWGRAPH_FALSE,;t t
30512s,@STATICEXE_TRUE@,$STATICEXE_TRUE,;t t
30513s,@STATICEXE_FALSE@,$STATICEXE_FALSE,;t t
30514s,@SIGHANDLER_TRUE@,$SIGHANDLER_TRUE,;t t
30515s,@SIGHANDLER_FALSE@,$SIGHANDLER_FALSE,;t t
30516s,@SYM_WITH_APPL_TRUE@,$SYM_WITH_APPL_TRUE,;t t
30517s,@SYM_WITH_APPL_FALSE@,$SYM_WITH_APPL_FALSE,;t t
30518s,@PVMINCDIR@,$PVMINCDIR,;t t
30519s,@PVMLIB@,$PVMLIB,;t t
30520s,@COIN_HAS_PVM_TRUE@,$COIN_HAS_PVM_TRUE,;t t
30521s,@COIN_HAS_PVM_FALSE@,$COIN_HAS_PVM_FALSE,;t t
30522s,@SYM_COMPILE_IN_CG_TRUE@,$SYM_COMPILE_IN_CG_TRUE,;t t
30523s,@SYM_COMPILE_IN_CG_FALSE@,$SYM_COMPILE_IN_CG_FALSE,;t t
30524s,@SYM_COMPILE_IN_CP_TRUE@,$SYM_COMPILE_IN_CP_TRUE,;t t
30525s,@SYM_COMPILE_IN_CP_FALSE@,$SYM_COMPILE_IN_CP_FALSE,;t t
30526s,@SYM_COMPILE_IN_LP_TRUE@,$SYM_COMPILE_IN_LP_TRUE,;t t
30527s,@SYM_COMPILE_IN_LP_FALSE@,$SYM_COMPILE_IN_LP_FALSE,;t t
30528s,@SYM_COMPILE_IN_TM_TRUE@,$SYM_COMPILE_IN_TM_TRUE,;t t
30529s,@SYM_COMPILE_IN_TM_FALSE@,$SYM_COMPILE_IN_TM_FALSE,;t t
30530s,@SYM_PARALLEL_TRUE@,$SYM_PARALLEL_TRUE,;t t
30531s,@SYM_PARALLEL_FALSE@,$SYM_PARALLEL_FALSE,;t t
30532s,@WHATTOMAKELIBS@,$WHATTOMAKELIBS,;t t
30533s,@WHATTOINSTALLLIBS@,$WHATTOINSTALLLIBS,;t t
30534s,@WHATTOMAKEBINS@,$WHATTOMAKEBINS,;t t
30535s,@LPEXT@,$LPEXT,;t t
30536s,@CPEXT@,$CPEXT,;t t
30537s,@TMEXT@,$TMEXT,;t t
30538s,@MASTEREXT@,$MASTEREXT,;t t
30539s,@OPENMP_TRUE@,$OPENMP_TRUE,;t t
30540s,@OPENMP_FALSE@,$OPENMP_FALSE,;t t
30541s,@SYM_OPENMP_FLAGS@,$SYM_OPENMP_FLAGS,;t t
30542s,@SYM_OPENMP_LIBS@,$SYM_OPENMP_LIBS,;t t
30543s,@SYMINCDIR@,$SYMINCDIR,;t t
30544s,@SYMSRCDIR@,$SYMSRCDIR,;t t
30545s,@SYMDEFS@,$SYMDEFS,;t t
30546s,@SYMPDEFS@,$SYMPDEFS,;t t
30547s,@ARCH@,$ARCH,;t t
30548s,@COIN_HAS_CLP@,$COIN_HAS_CLP,;t t
30549s,@SYMAPPLDIR@,$SYMAPPLDIR,;t t
30550s,@CLLCFLAGS@,$CLLCFLAGS,;t t
30551s,@LIBEXT@,$LIBEXT,;t t
30552s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
30553s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
30554s,@LIBOBJS@,$LIBOBJS,;t t
30555s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30556CEOF
30557
30558_ACEOF
30559
30560  cat >>$CONFIG_STATUS <<\_ACEOF
30561  # Split the substitutions into bite-sized pieces for seds with
30562  # small command number limits, like on Digital OSF/1 and HP-UX.
30563  ac_max_sed_lines=48
30564  ac_sed_frag=1 # Number of current file.
30565  ac_beg=1 # First line for current file.
30566  ac_end=$ac_max_sed_lines # Line after last line for current file.
30567  ac_more_lines=:
30568  ac_sed_cmds=
30569  while $ac_more_lines; do
30570    if test $ac_beg -gt 1; then
30571      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30572    else
30573      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30574    fi
30575    if test ! -s $tmp/subs.frag; then
30576      ac_more_lines=false
30577    else
30578      # The purpose of the label and of the branching condition is to
30579      # speed up the sed processing (if there are no `@' at all, there
30580      # is no need to browse any of the substitutions).
30581      # These are the two extra sed commands mentioned above.
30582      (echo ':t
30583  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30584      if test -z "$ac_sed_cmds"; then
30585	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30586      else
30587	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30588      fi
30589      ac_sed_frag=`expr $ac_sed_frag + 1`
30590      ac_beg=$ac_end
30591      ac_end=`expr $ac_end + $ac_max_sed_lines`
30592    fi
30593  done
30594  if test -z "$ac_sed_cmds"; then
30595    ac_sed_cmds=cat
30596  fi
30597fi # test -n "$CONFIG_FILES"
30598
30599_ACEOF
30600cat >>$CONFIG_STATUS <<\_ACEOF
30601for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30602  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30603  case $ac_file in
30604  - | *:- | *:-:* ) # input from stdin
30605	cat >$tmp/stdin
30606	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30607	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30608  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30609	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30610  * )   ac_file_in=$ac_file.in ;;
30611  esac
30612
30613  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30614  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30616	 X"$ac_file" : 'X\(//\)[^/]' \| \
30617	 X"$ac_file" : 'X\(//\)$' \| \
30618	 X"$ac_file" : 'X\(/\)' \| \
30619	 .     : '\(.\)' 2>/dev/null ||
30620echo X"$ac_file" |
30621    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30622  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30623  	  /^X\(\/\/\)$/{ s//\1/; q; }
30624  	  /^X\(\/\).*/{ s//\1/; q; }
30625  	  s/.*/./; q'`
30626  { if $as_mkdir_p; then
30627    mkdir -p "$ac_dir"
30628  else
30629    as_dir="$ac_dir"
30630    as_dirs=
30631    while test ! -d "$as_dir"; do
30632      as_dirs="$as_dir $as_dirs"
30633      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30635	 X"$as_dir" : 'X\(//\)[^/]' \| \
30636	 X"$as_dir" : 'X\(//\)$' \| \
30637	 X"$as_dir" : 'X\(/\)' \| \
30638	 .     : '\(.\)' 2>/dev/null ||
30639echo X"$as_dir" |
30640    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30641  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30642  	  /^X\(\/\/\)$/{ s//\1/; q; }
30643  	  /^X\(\/\).*/{ s//\1/; q; }
30644  	  s/.*/./; q'`
30645    done
30646    test ! -n "$as_dirs" || mkdir $as_dirs
30647  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30648echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30649   { (exit 1); exit 1; }; }; }
30650
30651  ac_builddir=.
30652
30653if test "$ac_dir" != .; then
30654  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30655  # A "../" for each directory in $ac_dir_suffix.
30656  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30657else
30658  ac_dir_suffix= ac_top_builddir=
30659fi
30660
30661case $srcdir in
30662  .)  # No --srcdir option.  We are building in place.
30663    ac_srcdir=.
30664    if test -z "$ac_top_builddir"; then
30665       ac_top_srcdir=.
30666    else
30667       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30668    fi ;;
30669  [\\/]* | ?:[\\/]* )  # Absolute path.
30670    ac_srcdir=$srcdir$ac_dir_suffix;
30671    ac_top_srcdir=$srcdir ;;
30672  *) # Relative path.
30673    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30674    ac_top_srcdir=$ac_top_builddir$srcdir ;;
30675esac
30676
30677# Do not use `cd foo && pwd` to compute absolute paths, because
30678# the directories may not exist.
30679case `pwd` in
30680.) ac_abs_builddir="$ac_dir";;
30681*)
30682  case "$ac_dir" in
30683  .) ac_abs_builddir=`pwd`;;
30684  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30685  *) ac_abs_builddir=`pwd`/"$ac_dir";;
30686  esac;;
30687esac
30688case $ac_abs_builddir in
30689.) ac_abs_top_builddir=${ac_top_builddir}.;;
30690*)
30691  case ${ac_top_builddir}. in
30692  .) ac_abs_top_builddir=$ac_abs_builddir;;
30693  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30694  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30695  esac;;
30696esac
30697case $ac_abs_builddir in
30698.) ac_abs_srcdir=$ac_srcdir;;
30699*)
30700  case $ac_srcdir in
30701  .) ac_abs_srcdir=$ac_abs_builddir;;
30702  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30703  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30704  esac;;
30705esac
30706case $ac_abs_builddir in
30707.) ac_abs_top_srcdir=$ac_top_srcdir;;
30708*)
30709  case $ac_top_srcdir in
30710  .) ac_abs_top_srcdir=$ac_abs_builddir;;
30711  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30712  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30713  esac;;
30714esac
30715
30716
30717  case $INSTALL in
30718  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30719  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30720  esac
30721
30722  if test x"$ac_file" != x-; then
30723    { echo "$as_me:$LINENO: creating $ac_file" >&5
30724echo "$as_me: creating $ac_file" >&6;}
30725    rm -f "$ac_file"
30726  fi
30727  # Let's still pretend it is `configure' which instantiates (i.e., don't
30728  # use $as_me), people would be surprised to read:
30729  #    /* config.h.  Generated by config.status.  */
30730  if test x"$ac_file" = x-; then
30731    configure_input=
30732  else
30733    configure_input="$ac_file.  "
30734  fi
30735  configure_input=$configure_input"Generated from `echo $ac_file_in |
30736				     sed 's,.*/,,'` by configure."
30737
30738  # First look for the input files in the build tree, otherwise in the
30739  # src tree.
30740  ac_file_inputs=`IFS=:
30741    for f in $ac_file_in; do
30742      case $f in
30743      -) echo $tmp/stdin ;;
30744      [\\/$]*)
30745	 # Absolute (can't be DOS-style, as IFS=:)
30746	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30747echo "$as_me: error: cannot find input file: $f" >&2;}
30748   { (exit 1); exit 1; }; }
30749	 echo "$f";;
30750      *) # Relative
30751	 if test -f "$f"; then
30752	   # Build tree
30753	   echo "$f"
30754	 elif test -f "$srcdir/$f"; then
30755	   # Source tree
30756	   echo "$srcdir/$f"
30757	 else
30758	   # /dev/null tree
30759	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30760echo "$as_me: error: cannot find input file: $f" >&2;}
30761   { (exit 1); exit 1; }; }
30762	 fi;;
30763      esac
30764    done` || { (exit 1); exit 1; }
30765_ACEOF
30766cat >>$CONFIG_STATUS <<_ACEOF
30767  sed "$ac_vpsub
30768$extrasub
30769_ACEOF
30770cat >>$CONFIG_STATUS <<\_ACEOF
30771:t
30772/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30773s,@configure_input@,$configure_input,;t t
30774s,@srcdir@,$ac_srcdir,;t t
30775s,@abs_srcdir@,$ac_abs_srcdir,;t t
30776s,@top_srcdir@,$ac_top_srcdir,;t t
30777s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30778s,@builddir@,$ac_builddir,;t t
30779s,@abs_builddir@,$ac_abs_builddir,;t t
30780s,@top_builddir@,$ac_top_builddir,;t t
30781s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30782s,@INSTALL@,$ac_INSTALL,;t t
30783" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30784  rm -f $tmp/stdin
30785  if test x"$ac_file" != x-; then
30786    mv $tmp/out $ac_file
30787  else
30788    cat $tmp/out
30789    rm -f $tmp/out
30790  fi
30791
30792done
30793_ACEOF
30794cat >>$CONFIG_STATUS <<\_ACEOF
30795
30796#
30797# CONFIG_HEADER section.
30798#
30799
30800# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30801# NAME is the cpp macro being defined and VALUE is the value it is being given.
30802#
30803# ac_d sets the value in "#define NAME VALUE" lines.
30804ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
30805ac_dB='[	 ].*$,\1#\2'
30806ac_dC=' '
30807ac_dD=',;t'
30808# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30809ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
30810ac_uB='$,\1#\2define\3'
30811ac_uC=' '
30812ac_uD=',;t'
30813
30814for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30815  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30816  case $ac_file in
30817  - | *:- | *:-:* ) # input from stdin
30818	cat >$tmp/stdin
30819	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30820	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30821  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30822	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30823  * )   ac_file_in=$ac_file.in ;;
30824  esac
30825
30826  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30827echo "$as_me: creating $ac_file" >&6;}
30828
30829  # First look for the input files in the build tree, otherwise in the
30830  # src tree.
30831  ac_file_inputs=`IFS=:
30832    for f in $ac_file_in; do
30833      case $f in
30834      -) echo $tmp/stdin ;;
30835      [\\/$]*)
30836	 # Absolute (can't be DOS-style, as IFS=:)
30837	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30838echo "$as_me: error: cannot find input file: $f" >&2;}
30839   { (exit 1); exit 1; }; }
30840	 # Do quote $f, to prevent DOS paths from being IFS'd.
30841	 echo "$f";;
30842      *) # Relative
30843	 if test -f "$f"; then
30844	   # Build tree
30845	   echo "$f"
30846	 elif test -f "$srcdir/$f"; then
30847	   # Source tree
30848	   echo "$srcdir/$f"
30849	 else
30850	   # /dev/null tree
30851	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30852echo "$as_me: error: cannot find input file: $f" >&2;}
30853   { (exit 1); exit 1; }; }
30854	 fi;;
30855      esac
30856    done` || { (exit 1); exit 1; }
30857  # Remove the trailing spaces.
30858  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
30859
30860_ACEOF
30861
30862# Transform confdefs.h into two sed scripts, `conftest.defines' and
30863# `conftest.undefs', that substitutes the proper values into
30864# config.h.in to produce config.h.  The first handles `#define'
30865# templates, and the second `#undef' templates.
30866# And first: Protect against being on the right side of a sed subst in
30867# config.status.  Protect against being in an unquoted here document
30868# in config.status.
30869rm -f conftest.defines conftest.undefs
30870# Using a here document instead of a string reduces the quoting nightmare.
30871# Putting comments in sed scripts is not portable.
30872#
30873# `end' is used to avoid that the second main sed command (meant for
30874# 0-ary CPP macros) applies to n-ary macro definitions.
30875# See the Autoconf documentation for `clear'.
30876cat >confdef2sed.sed <<\_ACEOF
30877s/[\\&,]/\\&/g
30878s,[\\$`],\\&,g
30879t clear
30880: clear
30881s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30882t end
30883s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30884: end
30885_ACEOF
30886# If some macros were called several times there might be several times
30887# the same #defines, which is useless.  Nevertheless, we may not want to
30888# sort them, since we want the *last* AC-DEFINE to be honored.
30889uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30890sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30891rm -f confdef2sed.sed
30892
30893# This sed command replaces #undef with comments.  This is necessary, for
30894# example, in the case of _POSIX_SOURCE, which is predefined and required
30895# on some systems where configure will not decide to define it.
30896cat >>conftest.undefs <<\_ACEOF
30897s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30898_ACEOF
30899
30900# Break up conftest.defines because some shells have a limit on the size
30901# of here documents, and old seds have small limits too (100 cmds).
30902echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30903echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30904echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30905echo '  :' >>$CONFIG_STATUS
30906rm -f conftest.tail
30907while grep . conftest.defines >/dev/null
30908do
30909  # Write a limited-size here document to $tmp/defines.sed.
30910  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30911  # Speed up: don't consider the non `#define' lines.
30912  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
30913  # Work around the forget-to-reset-the-flag bug.
30914  echo 't clr' >>$CONFIG_STATUS
30915  echo ': clr' >>$CONFIG_STATUS
30916  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30917  echo 'CEOF
30918  sed -f $tmp/defines.sed $tmp/in >$tmp/out
30919  rm -f $tmp/in
30920  mv $tmp/out $tmp/in
30921' >>$CONFIG_STATUS
30922  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30923  rm -f conftest.defines
30924  mv conftest.tail conftest.defines
30925done
30926rm -f conftest.defines
30927echo '  fi # grep' >>$CONFIG_STATUS
30928echo >>$CONFIG_STATUS
30929
30930# Break up conftest.undefs because some shells have a limit on the size
30931# of here documents, and old seds have small limits too (100 cmds).
30932echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30933rm -f conftest.tail
30934while grep . conftest.undefs >/dev/null
30935do
30936  # Write a limited-size here document to $tmp/undefs.sed.
30937  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30938  # Speed up: don't consider the non `#undef'
30939  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
30940  # Work around the forget-to-reset-the-flag bug.
30941  echo 't clr' >>$CONFIG_STATUS
30942  echo ': clr' >>$CONFIG_STATUS
30943  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30944  echo 'CEOF
30945  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30946  rm -f $tmp/in
30947  mv $tmp/out $tmp/in
30948' >>$CONFIG_STATUS
30949  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30950  rm -f conftest.undefs
30951  mv conftest.tail conftest.undefs
30952done
30953rm -f conftest.undefs
30954
30955cat >>$CONFIG_STATUS <<\_ACEOF
30956  # Let's still pretend it is `configure' which instantiates (i.e., don't
30957  # use $as_me), people would be surprised to read:
30958  #    /* config.h.  Generated by config.status.  */
30959  if test x"$ac_file" = x-; then
30960    echo "/* Generated by configure.  */" >$tmp/config.h
30961  else
30962    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30963  fi
30964  cat $tmp/in >>$tmp/config.h
30965  rm -f $tmp/in
30966  if test x"$ac_file" != x-; then
30967    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30968      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30969echo "$as_me: $ac_file is unchanged" >&6;}
30970    else
30971      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30973	 X"$ac_file" : 'X\(//\)[^/]' \| \
30974	 X"$ac_file" : 'X\(//\)$' \| \
30975	 X"$ac_file" : 'X\(/\)' \| \
30976	 .     : '\(.\)' 2>/dev/null ||
30977echo X"$ac_file" |
30978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30979  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30980  	  /^X\(\/\/\)$/{ s//\1/; q; }
30981  	  /^X\(\/\).*/{ s//\1/; q; }
30982  	  s/.*/./; q'`
30983      { if $as_mkdir_p; then
30984    mkdir -p "$ac_dir"
30985  else
30986    as_dir="$ac_dir"
30987    as_dirs=
30988    while test ! -d "$as_dir"; do
30989      as_dirs="$as_dir $as_dirs"
30990      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30992	 X"$as_dir" : 'X\(//\)[^/]' \| \
30993	 X"$as_dir" : 'X\(//\)$' \| \
30994	 X"$as_dir" : 'X\(/\)' \| \
30995	 .     : '\(.\)' 2>/dev/null ||
30996echo X"$as_dir" |
30997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30998  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30999  	  /^X\(\/\/\)$/{ s//\1/; q; }
31000  	  /^X\(\/\).*/{ s//\1/; q; }
31001  	  s/.*/./; q'`
31002    done
31003    test ! -n "$as_dirs" || mkdir $as_dirs
31004  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31005echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31006   { (exit 1); exit 1; }; }; }
31007
31008      rm -f $ac_file
31009      mv $tmp/config.h $ac_file
31010    fi
31011  else
31012    cat $tmp/config.h
31013    rm -f $tmp/config.h
31014  fi
31015# Compute $ac_file's index in $config_headers.
31016_am_stamp_count=1
31017for _am_header in $config_headers :; do
31018  case $_am_header in
31019    $ac_file | $ac_file:* )
31020      break ;;
31021    * )
31022      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31023  esac
31024done
31025echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31026$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31027	 X$ac_file : 'X\(//\)[^/]' \| \
31028	 X$ac_file : 'X\(//\)$' \| \
31029	 X$ac_file : 'X\(/\)' \| \
31030	 .     : '\(.\)' 2>/dev/null ||
31031echo X$ac_file |
31032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31033  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31034  	  /^X\(\/\/\)$/{ s//\1/; q; }
31035  	  /^X\(\/\).*/{ s//\1/; q; }
31036  	  s/.*/./; q'`/stamp-h$_am_stamp_count
31037done
31038_ACEOF
31039cat >>$CONFIG_STATUS <<\_ACEOF
31040
31041#
31042# CONFIG_COMMANDS section.
31043#
31044for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31045  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31046  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31047  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31048$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31049	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31050	 X"$ac_dest" : 'X\(//\)$' \| \
31051	 X"$ac_dest" : 'X\(/\)' \| \
31052	 .     : '\(.\)' 2>/dev/null ||
31053echo X"$ac_dest" |
31054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31055  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31056  	  /^X\(\/\/\)$/{ s//\1/; q; }
31057  	  /^X\(\/\).*/{ s//\1/; q; }
31058  	  s/.*/./; q'`
31059  { if $as_mkdir_p; then
31060    mkdir -p "$ac_dir"
31061  else
31062    as_dir="$ac_dir"
31063    as_dirs=
31064    while test ! -d "$as_dir"; do
31065      as_dirs="$as_dir $as_dirs"
31066      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31068	 X"$as_dir" : 'X\(//\)[^/]' \| \
31069	 X"$as_dir" : 'X\(//\)$' \| \
31070	 X"$as_dir" : 'X\(/\)' \| \
31071	 .     : '\(.\)' 2>/dev/null ||
31072echo X"$as_dir" |
31073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31074  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31075  	  /^X\(\/\/\)$/{ s//\1/; q; }
31076  	  /^X\(\/\).*/{ s//\1/; q; }
31077  	  s/.*/./; q'`
31078    done
31079    test ! -n "$as_dirs" || mkdir $as_dirs
31080  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31081echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31082   { (exit 1); exit 1; }; }; }
31083
31084  ac_builddir=.
31085
31086if test "$ac_dir" != .; then
31087  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31088  # A "../" for each directory in $ac_dir_suffix.
31089  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31090else
31091  ac_dir_suffix= ac_top_builddir=
31092fi
31093
31094case $srcdir in
31095  .)  # No --srcdir option.  We are building in place.
31096    ac_srcdir=.
31097    if test -z "$ac_top_builddir"; then
31098       ac_top_srcdir=.
31099    else
31100       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31101    fi ;;
31102  [\\/]* | ?:[\\/]* )  # Absolute path.
31103    ac_srcdir=$srcdir$ac_dir_suffix;
31104    ac_top_srcdir=$srcdir ;;
31105  *) # Relative path.
31106    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31107    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31108esac
31109
31110# Do not use `cd foo && pwd` to compute absolute paths, because
31111# the directories may not exist.
31112case `pwd` in
31113.) ac_abs_builddir="$ac_dir";;
31114*)
31115  case "$ac_dir" in
31116  .) ac_abs_builddir=`pwd`;;
31117  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31118  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31119  esac;;
31120esac
31121case $ac_abs_builddir in
31122.) ac_abs_top_builddir=${ac_top_builddir}.;;
31123*)
31124  case ${ac_top_builddir}. in
31125  .) ac_abs_top_builddir=$ac_abs_builddir;;
31126  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31127  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31128  esac;;
31129esac
31130case $ac_abs_builddir in
31131.) ac_abs_srcdir=$ac_srcdir;;
31132*)
31133  case $ac_srcdir in
31134  .) ac_abs_srcdir=$ac_abs_builddir;;
31135  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31136  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31137  esac;;
31138esac
31139case $ac_abs_builddir in
31140.) ac_abs_top_srcdir=$ac_top_srcdir;;
31141*)
31142  case $ac_top_srcdir in
31143  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31144  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31145  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31146  esac;;
31147esac
31148
31149
31150  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31151echo "$as_me: executing $ac_dest commands" >&6;}
31152  case $ac_dest in
31153    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31154  # Strip MF so we end up with the name of the file.
31155  mf=`echo "$mf" | sed -e 's/:.*$//'`
31156  # Check whether this is an Automake generated Makefile or not.
31157  # We used to match only the files named `Makefile.in', but
31158  # some people rename them; so instead we look at the file content.
31159  # Grep'ing the first line is not enough: some people post-process
31160  # each Makefile.in and add a new line on top of each file to say so.
31161  # So let's grep whole file.
31162  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31163    dirpart=`(dirname "$mf") 2>/dev/null ||
31164$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31165	 X"$mf" : 'X\(//\)[^/]' \| \
31166	 X"$mf" : 'X\(//\)$' \| \
31167	 X"$mf" : 'X\(/\)' \| \
31168	 .     : '\(.\)' 2>/dev/null ||
31169echo X"$mf" |
31170    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31171  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31172  	  /^X\(\/\/\)$/{ s//\1/; q; }
31173  	  /^X\(\/\).*/{ s//\1/; q; }
31174  	  s/.*/./; q'`
31175  else
31176    continue
31177  fi
31178  # Extract the definition of DEPDIR, am__include, and am__quote
31179  # from the Makefile without running `make'.
31180  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31181  test -z "$DEPDIR" && continue
31182  am__include=`sed -n 's/^am__include = //p' < "$mf"`
31183  test -z "am__include" && continue
31184  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31185  # When using ansi2knr, U may be empty or an underscore; expand it
31186  U=`sed -n 's/^U = //p' < "$mf"`
31187  # Find all dependency output files, they are included files with
31188  # $(DEPDIR) in their names.  We invoke sed twice because it is the
31189  # simplest approach to changing $(DEPDIR) to its actual value in the
31190  # expansion.
31191  for file in `sed -n "
31192    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31193       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31194    # Make sure the directory exists.
31195    test -f "$dirpart/$file" && continue
31196    fdir=`(dirname "$file") 2>/dev/null ||
31197$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31198	 X"$file" : 'X\(//\)[^/]' \| \
31199	 X"$file" : 'X\(//\)$' \| \
31200	 X"$file" : 'X\(/\)' \| \
31201	 .     : '\(.\)' 2>/dev/null ||
31202echo X"$file" |
31203    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31204  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31205  	  /^X\(\/\/\)$/{ s//\1/; q; }
31206  	  /^X\(\/\).*/{ s//\1/; q; }
31207  	  s/.*/./; q'`
31208    { if $as_mkdir_p; then
31209    mkdir -p $dirpart/$fdir
31210  else
31211    as_dir=$dirpart/$fdir
31212    as_dirs=
31213    while test ! -d "$as_dir"; do
31214      as_dirs="$as_dir $as_dirs"
31215      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31216$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31217	 X"$as_dir" : 'X\(//\)[^/]' \| \
31218	 X"$as_dir" : 'X\(//\)$' \| \
31219	 X"$as_dir" : 'X\(/\)' \| \
31220	 .     : '\(.\)' 2>/dev/null ||
31221echo X"$as_dir" |
31222    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31223  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31224  	  /^X\(\/\/\)$/{ s//\1/; q; }
31225  	  /^X\(\/\).*/{ s//\1/; q; }
31226  	  s/.*/./; q'`
31227    done
31228    test ! -n "$as_dirs" || mkdir $as_dirs
31229  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31230echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31231   { (exit 1); exit 1; }; }; }
31232
31233    # echo "creating $dirpart/$file"
31234    echo '# dummy' > "$dirpart/$file"
31235  done
31236done
31237 ;;
31238  esac
31239done
31240_ACEOF
31241
31242cat >>$CONFIG_STATUS <<\_ACEOF
31243
31244{ (exit 0); exit 0; }
31245_ACEOF
31246chmod +x $CONFIG_STATUS
31247ac_clean_files=$ac_clean_files_save
31248
31249
31250# configure is writing to config.log, and then calls config.status.
31251# config.status does its own redirection, appending to config.log.
31252# Unfortunately, on DOS this fails, as config.log is still kept open
31253# by configure, so config.status won't be able to write to it; its
31254# output is simply discarded.  So we exec the FD to /dev/null,
31255# effectively closing config.log, so it can be properly (re)opened and
31256# appended to by config.status.  When coming back to configure, we
31257# need to make the FD available again.
31258if test "$no_create" != yes; then
31259  ac_cs_success=:
31260  ac_config_status_args=
31261  test "$silent" = yes &&
31262    ac_config_status_args="$ac_config_status_args --quiet"
31263  exec 5>/dev/null
31264  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31265  exec 5>>config.log
31266  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31267  # would make configure fail if this is the last instruction.
31268  $ac_cs_success || { (exit 1); exit 1; }
31269fi
31270
31271
31272  if test x"$coin_vpath_link_files" = x; then : ; else
31273    lnkcmd="$coin_link_input_cmd"
31274    if test "$lnkcmd" = cp; then
31275      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
31276echo "$as_me: Copying data files for VPATH configuration" >&6;}
31277    else
31278      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
31279echo "$as_me: Creating VPATH links for data files" >&6;}
31280    fi
31281    for file in $coin_vpath_link_files; do
31282      dir=`(dirname "./$file") 2>/dev/null ||
31283$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31284	 X"./$file" : 'X\(//\)[^/]' \| \
31285	 X"./$file" : 'X\(//\)$' \| \
31286	 X"./$file" : 'X\(/\)' \| \
31287	 .     : '\(.\)' 2>/dev/null ||
31288echo X"./$file" |
31289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31290  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31291  	  /^X\(\/\/\)$/{ s//\1/; q; }
31292  	  /^X\(\/\).*/{ s//\1/; q; }
31293  	  s/.*/./; q'`
31294      if test -d $dir; then : ; else
31295        { if $as_mkdir_p; then
31296    mkdir -p $dir
31297  else
31298    as_dir=$dir
31299    as_dirs=
31300    while test ! -d "$as_dir"; do
31301      as_dirs="$as_dir $as_dirs"
31302      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31304	 X"$as_dir" : 'X\(//\)[^/]' \| \
31305	 X"$as_dir" : 'X\(//\)$' \| \
31306	 X"$as_dir" : 'X\(/\)' \| \
31307	 .     : '\(.\)' 2>/dev/null ||
31308echo X"$as_dir" |
31309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31310  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31311  	  /^X\(\/\/\)$/{ s//\1/; q; }
31312  	  /^X\(\/\).*/{ s//\1/; q; }
31313  	  s/.*/./; q'`
31314    done
31315    test ! -n "$as_dirs" || mkdir $as_dirs
31316  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
31317echo "$as_me: error: cannot create directory $dir" >&2;}
31318   { (exit 1); exit 1; }; }; }
31319
31320      fi
31321      rm -f $file
31322      $lnkcmd $abs_source_dir/$file $file
31323    done
31324  fi
31325
31326  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
31327echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
31328  if test x$coin_projectdir = xyes; then
31329    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
31330echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
31331  else
31332    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
31333echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
31334  fi
31335else
31336  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
31337echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
31338fi
31339
31340
31341